Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp268770ybl; Tue, 7 Jan 2020 19:01:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxpqMNurpf/HH0wZkUryJuj/xj+oiPzUPZ55RjCS0TI0IgiNXZdaxpwzNcjdHuL7BT2PO5K X-Received: by 2002:aca:4587:: with SMTP id s129mr1352379oia.124.1578452474951; Tue, 07 Jan 2020 19:01:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578452474; cv=none; d=google.com; s=arc-20160816; b=JN07Q+E6IfGnbXBP8IJCgxDWJh/ncy0JHG8n11OfDfDZihKfPIvoNWCbLlAwekxa1K Kp9C/FAN+IUucw0hsPKyaEgJ9/0oiBFenSyyF8F8BTmhMHUiEw1r26H9VEGZfCxrrJ2a DubR/zOYpLHafKTZ6TBJyS+07GmtA/o4epqMdVCHBKhocvyGvDNqGcM2IHYOVXrEACqj LPfcAa1sS6b5lM/UJHxf3qO0jQZGUlh5QkKgHJMu1o5Aa71HjBYfANm9BvAANn9Wpmpb ghXo9O/c5Uac0ScQe3+v8mmcq6a+9IK80yB7Ie2kgPOztoRTP1J6m4xRyDW1WvJXsU38 1PYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=n5VWvnDvG9pudxqtufd0172zH7ZSRPeAN+0qAAfFfp4=; b=sb+UK0tt+YUwBSIojdy60FXcY62rujUFroqXbQ9Mo/i3Wwn9NNNNnr7J+mc1xs7aWD nVcYiWi188c0uIT4HhTo08BJ8CGkAPbwr0KAnHCFkcgFJruL0a2Y0xBZWaXZLFLnWAPa ENDNjQ6k2VytE+U/fJNEzOFzT4TsU2KXNzDvP5YNqmutLMbSbO1hFldT/a86PCFoANix gl3qA4hILTw49OssTH32RThNzeVg1HkEfQU5YWUo9MKyPbJ0rtkJJOmkkaCLZH75vKOq +Dj9GginzhzU7eCLy8RdzUeFa3dHL8EuI4EfTpvmNgcswJDUWNxJ1RVNhr0eOWOXDJ69 Pd6A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x22si941034otp.107.2020.01.07.19.01.01; Tue, 07 Jan 2020 19:01:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726276AbgAHDAQ (ORCPT + 99 others); Tue, 7 Jan 2020 22:00:16 -0500 Received: from fieldses.org ([173.255.197.46]:53894 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbgAHDAP (ORCPT ); Tue, 7 Jan 2020 22:00:15 -0500 Received: by fieldses.org (Postfix, from userid 2815) id 2AD691C81; Tue, 7 Jan 2020 22:00:15 -0500 (EST) Date: Tue, 7 Jan 2020 22:00:15 -0500 From: "J. Bruce Fields" To: Chris Down 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: <20200108030015.GB5476@fieldses.org> References: <20191220024936.GA380394@chrisdown.name> <20191220213052.GB7476@magnolia> <20191221101652.GA494948@chrisdown.name> <20200107173530.GC944@fieldses.org> <20200107174407.GA666424@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200107174407.GA666424@chrisdown.name> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 07, 2020 at 05:44:07PM +0000, Chris Down wrote: > 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, Oh, of course, I'm not objecting to this patchset at all, it's a "why not also do this?" question. > since this demonstrably fixes issues encountered in production, and > extending a user-facing APIs is likely to be a much more extensive > discussion. Though if it's a question of just a new implementation of an existing ioctl, I doubt it's such a big deal. (Not that I'm volunteering to write the patch.) --b.