Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp498510ybl; Tue, 7 Jan 2020 09:45:39 -0800 (PST) X-Google-Smtp-Source: APXvYqytD0MKhpA7qlntRP3aqeVqeY6nm/O6TDAHXa3m/HOXn8F587z7f41Rlc8A+jjHyOqeJ2VU X-Received: by 2002:a05:6830:15a:: with SMTP id j26mr920721otp.137.1578419139046; Tue, 07 Jan 2020 09:45:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578419139; cv=none; d=google.com; s=arc-20160816; b=n3Pt0ysEdesZzbxyAVGLxbc8Xqqyzjvouo3+zCAuLRKFCp8BjZ1UlWRR7E0z0HeQtj SIOP6EmPO8sduVU/cJ+dQlAORe0U9q3/mph2+2cvcm3aICBBMBwvpR0NUHgAzdPMtTve ORRbhD6EOXn6GLc5gGth0do3ANFDnpKxNo5bkJ9GxFshEyEVbh2GL98o2i+sMtLdmX1Q ZDJlTXYQTY0h8TqEFowqw3JfyhlntSDleJAUqH49C2rJ2gKEAQSiioTBslwIzCyoAN0y 7VCJSJg0DzdVhaXGGrzKP1euD/2dMFPrQEiv5MNzLDb2LIak1ZuXqUDUIf3F4Wd3WFjW 2ofg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8eqMnrGTPiMzUvhdb0Z8uXo41jdrtgsf6hpzBK0nlMQ=; b=aS4vOb5Pjrw1Y1zqCoaz/qxAeANAfDKnqnFPHpqSlxTD4OQWZgYehKrL8nVBxFjBk1 Fc3OkRRG8JnpCn/5mfoHyn7+VjUgpgzGkVrdM0hyRTjgSx4qCztPmyY8reYH9WqQp0T+ ejKszt7xdnf2nHbQGObAwj9kRlTGtYO/KN33mB0p88dBFtqfmjsljMZT3ZUATuYZSvJJ ERkJJOpNHv5wghKkxDt1IpCtZM7aWPD2a3zEJ8G4/2hlUn1+c+1+Cx4wAjENtZaC4z8h vluUnVIBJ95w9dQli6xHdkwtgB6ffNRIjAcGEO0lIc3WnLEJMQBBPVa8af0ZLZoryGTt 72jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b="P/XrLA3s"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y22si209534oti.269.2020.01.07.09.45.25; Tue, 07 Jan 2020 09:45:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b="P/XrLA3s"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728429AbgAGRoK (ORCPT + 99 others); Tue, 7 Jan 2020 12:44:10 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39518 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728292AbgAGRoK (ORCPT ); Tue, 7 Jan 2020 12:44:10 -0500 Received: by mail-wr1-f65.google.com with SMTP id y11so381760wrt.6 for ; Tue, 07 Jan 2020 09:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8eqMnrGTPiMzUvhdb0Z8uXo41jdrtgsf6hpzBK0nlMQ=; b=P/XrLA3sWbGycnyupfzOxWdJivC6ceAXPPCxrnLUPh+TduZx5ndkDZmQXFSHrof9j/ tQD9SaAE/CdOr3P0R5dH+i1X2R95TWzLK/Jp8GKp77O7/YBGVPPkFEYnAgDIzrogEDyu S+xg3zJZWVZX3XvTEenCiAzsGCh+QTqRMY1+o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8eqMnrGTPiMzUvhdb0Z8uXo41jdrtgsf6hpzBK0nlMQ=; b=kL5NTPpbAfjb/SfgQ4yxKS+HgVNlVoasnx0J+jJfY9Htscho3rNrSB4QZmU8xOTtIJ zxJEDQO42ydRalKeZinqvKzqilxMKHRbV2y/fN2EheFRHtXGJ9DuEkz9h/Y6viYP6Fu4 QimoyYpKizbT2Z3KYjxWjw9Aat562Eux65qufLWYs3HDeWQ05W8R1sYtZxj0i/jrFVS+ nSQmvQIQ8o2ypMv8gj971jmZlmJUo/a3ybcBeSc2wDYaQpcvYiYBJJA6eLY0xJUXFTED TX2uSUVWH9Vhhj2eu9AH8CVs625rHbT6GIiB+GebPBq4Jieg3PHTg3O9rThN2S64gbHn qg6Q== X-Gm-Message-State: APjAAAXAzhQgHR0s7dgK18wv/fdhfGDmJPy8KMN8Nm9eMyfgrJlgmYrM YDdI6V9jsV5CCU+Jb1Y82D0ZVA== X-Received: by 2002:adf:82f3:: with SMTP id 106mr225820wrc.69.1578419048428; Tue, 07 Jan 2020 09:44:08 -0800 (PST) Received: from localhost ([2620:10d:c092:180::1:2344]) by smtp.gmail.com with ESMTPSA id u1sm413118wmc.5.2020.01.07.09.44.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 09:44:08 -0800 (PST) Date: Tue, 7 Jan 2020 17:44:07 +0000 From: Chris Down To: "J. Bruce Fields" Cc: "Darrick J. Wong" , linux-fsdevel@vger.kernel.org, Al Viro , Jeff Layton , Johannes Weiner , Tejun Heo , linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH] fs: inode: Reduce volatile inode wraparound risk when ino_t is 64 bit Message-ID: <20200107174407.GA666424@chrisdown.name> References: <20191220024936.GA380394@chrisdown.name> <20191220213052.GB7476@magnolia> <20191221101652.GA494948@chrisdown.name> <20200107173530.GC944@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200107173530.GC944@fieldses.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org J. Bruce Fields writes: >I thought that (dev, inum) was supposed to be unique from creation to >last unlink (and last close), and (dev, inum, generation) was supposed >to be unique for all time. Sure, but I mean, we don't really protect against even the first case. >> I didn't mention generation because, even though it's set on tmpfs >> (to prandom_u32()), it's not possible to evaluate it from userspace >> since `ioctl` returns ENOTTY. We can't ask userspace applications to >> introspect on an inode attribute that they can't even access :-) > >Is there any reason not to add IOC_GETVERSION support to tmpfs? > >I wonder if statx should return it too? We can, but that seems like a tangential discussion/patch series. For the second case especially, that's something we should do separately from this patchset, since this demonstrably fixes issues encountered in production, and extending a user-facing APIs is likely to be a much more extensive discussion. (Also, this one in particular has advanced quite a lot since this v1 patch :-))