From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E652CC7114A for ; Tue, 17 Jun 2025 05:30:23 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4bLwSG42hPz30LS; Tue, 17 Jun 2025 15:30:22 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2607:7c80:54:3::133" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1750138222; cv=none; b=Q5zq6CF1qrMo3cbPsU0qWJG2IsTLMXouqamB5sippRdOLEmKZjjPpC1lyYzeYcvSrbRilYQxaoQeCt0ltgBeSSNLUvpyRJaanwNz0MRNK9eVxcfhaJM14ROgTQ3NZzeOmFWZ2WgVFYKtHoCFSWGgAK2/aiRcGqFDptm5eio4puopIUQeO8HAhcTXx+M3Hhx5x0o8XqqZAXnL6O5Lpx7CHIJxx51+rXyhyodl7TCHzyfKQMnqwG35T60rZLGBcYL/cbxMjVibYCbLmJRYxx1VWIla+8EI8TWbCb1uMB2Fbx8UxnB009Cyiwn1tWxw6AI0/y1zizrImYdAFuCX6VhFdA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1750138222; c=relaxed/relaxed; bh=WZqvZdf+IZijbqhRUtEFRIRbPppvWHBM72Lcj7YrYLo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FpEdZvEb8KY2krYx1kHAJKLi5v3W+XmCDrAaM/z8sgQPWtIqnNnsH9YUj/3G1EjbyxHEJ39CHLoQoQbhVeLXCS958WLgE7uLknIX3ml2ukQIUbNaCU3EsomJ1Id3j+jH2x9KMZ7XayExOKZAjdXjwQZsKDOSCYipg+m94jOyOVugBQDEpbIY0Qlja4MYD2A5/LFTVPHCloa/IxF/hdwLZnGx7mkv6G+UtIrJxqs89HtMVtWld+TkOlaLVmN9aCPC1kD3plDeDIU2lcbxdXRn7R66DxDuGtJrt3iuXR/805FtY6wujzvTUPEWWgi+8pdFhF3oXW+6nh2tFSxT6f1cRg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=XKElvTOp; dkim-atps=neutral; spf=none (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=batv+4b43f024140bdadcbbf7+7968+infradead.org+hch@bombadil.srs.infradead.org; receiver=lists.ozlabs.org) smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=XKElvTOp; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=bombadil.srs.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=batv+4b43f024140bdadcbbf7+7968+infradead.org+hch@bombadil.srs.infradead.org; receiver=lists.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4bLwSF5chkz2yMD for ; Tue, 17 Jun 2025 15:30:21 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WZqvZdf+IZijbqhRUtEFRIRbPppvWHBM72Lcj7YrYLo=; b=XKElvTOpmuszk9VAFn9HgkecJM 6IAMkL5kZMnt8MjfJ1vEjVj9R5k8ljvXtW+YOI/m2edGELJCrcMgGBduoaMYBeg7G05BznhBLoX1d 0+sjC6CrRtar/13YnEZ7ojmdIvzTqG0vrsEaVHIdNS3S8RLEUQ8NfgMzeEVvr/NdCU+0MqzI/08Qs eqF9MUEWApONmkeFyH9gcOKcOLTSRuO4ITmkyjCk7uTIITEEODimR08aqVL3k19XYNVQA+9g15vli bDzJwWh1cQ8xVe4iWHcZSFe6rLm14eHrz7y9Xt3JYHTI9rryCSovcoiJGylwN91N9l5MOZHE3Cs70 w6WBhyfQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1uROtD-00000006GHz-1YxH; Tue, 17 Jun 2025 05:29:43 +0000 Date: Mon, 16 Jun 2025 22:29:43 -0700 From: Christoph Hellwig To: Lorenzo Stoakes Cc: Christoph Hellwig , Andrew Morton , "Liam R . Howlett" , Jens Axboe , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Simona Vetter , Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , David Sterba , David Howells , Marc Dionne , Alexander Viro , Christian Brauner , Jan Kara , Benjamin LaHaise , Miklos Szeredi , Amir Goldstein , Kent Overstreet , "Tigran A . Aivazian" , Kees Cook , Chris Mason , Josef Bacik , Xiubo Li , Ilya Dryomov , Jan Harkes , coda@cs.cmu.edu, Tyler Hicks , Gao Xiang , Chao Yu , Yue Hu , Jeffle Xu , Sandeep Dhavale , Hongbo Li , Namjae Jeon , Sungjong Seo , Yuezhang Mo , Theodore Ts'o , Andreas Dilger , Jaegeuk Kim , OGAWA Hirofumi , Viacheslav Dubeyko , John Paul Adrian Glaubitz , Yangtao Li , Richard Weinberger , Anton Ivanov , Johannes Berg , Mikulas Patocka , David Woodhouse , Dave Kleikamp , Trond Myklebust , Anna Schumaker , Ryusuke Konishi , Konstantin Komarov , Mark Fasheh , Joel Becker , Joseph Qi , Bob Copeland , Mike Marshall , Martin Brandenburg , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Bharath SM , Zhihao Cheng , Hans de Goede , Carlos Maiolino , Damien Le Moal , Naohiro Aota , Johannes Thumshirn , Dan Williams , Matthew Wilcox , Vlastimil Babka , Jann Horn , Pedro Falcato , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, v9fs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org, linux-aio@kvack.org, linux-unionfs@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-mm@kvack.org, linux-btrfs@vger.kernel.org, ceph-devel@vger.kernel.org, codalist@coda.cs.cmu.edu, ecryptfs@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-um@lists.infradead.org, linux-mtd@lists.infradead.org, jfs-discussion@lists.sourceforge.net, linux-nfs@vger.kernel.org, linux-nilfs@vger.kernel.org, ntfs3@lists.linux.dev, ocfs2-devel@lists.linux.dev, linux-karma-devel@lists.sourceforge.net, devel@lists.orangefs.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-xfs@vger.kernel.org, nvdimm@lists.linux.dev Subject: Re: [PATCH 03/10] fs: consistently use file_has_valid_mmap_hooks() helper Message-ID: References: X-Mailing-List: linux-erofs@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Tue, Jun 17, 2025 at 06:25:34AM +0100, Lorenzo Stoakes wrote: > > > Most notably, this updates the elf logic to allow for the ability to > > > execute binaries on filesystems which have the .mmap_prepare hook, but > > > additionally we update nested filesystems. > > > > Can you please give the function a better name before spreading it? > > file operations aren't hooks by any classic definition. > > > > can_mmap_file()? Sounds reasonable.