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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F39F2CD98E3 for ; Wed, 11 Oct 2023 01:27:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344615AbjJKB1C (ORCPT ); Tue, 10 Oct 2023 21:27:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344484AbjJKB1B (ORCPT ); Tue, 10 Oct 2023 21:27:01 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 408A78F; Tue, 10 Oct 2023 18:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=umkGY9vZvZGbLfMQqDCxm3Pw6ERI7CheDFT0ZxkT/ls=; b=o2/UHabBCEu+Y6IUsFuqCeoIYd FetVkMxVp9EQz+vT4PBgVJAngY5lNhc+qbxFZk1vT7SXaFCp+JO1HwqlaDr9O49Ds6wjDRHU94plC FYh0IRvbjTzpX/5ryHQCEtGPAFxzCO/6fTalNF0PWH1uslqRKCQvEjwZC4EgfFRTyJmiDZcu+PPuF 3AeFklnyt6byAK1KkIFqJ9jzf5Tr02FdhHJbwMVR2bqYHA1HOF8kTGv1FTmS2nrjXarjYGceHXo/y 56ypL0SPrbm0k0uCXMP8kQuycEXE4JGEnb/VVl4XRxpIn2DY0kHRFZ0J8nrfG3yLKVn1mrpmgvkUA h9jV7MKg==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1qqNzv-0006tb-0D; Wed, 11 Oct 2023 01:26:51 +0000 Date: Wed, 11 Oct 2023 02:26:51 +0100 From: Al Viro To: Amir Goldstein Cc: Miklos Szeredi , Christian Brauner , Paul Moore , James Morris , "Serge E . Hallyn" , Mimi Zohar , linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v3 3/3] fs: store real path instead of fake path in backing file f_path Message-ID: <20231011012651.GS800259@ZenIV> References: <20231009153712.1566422-4-amir73il@gmail.com> <20231010165504.GP800259@ZenIV> <20231010174146.GQ800259@ZenIV> <20231010182141.GR800259@ZenIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: On Tue, Oct 10, 2023 at 09:28:41PM +0300, Amir Goldstein wrote: > > with making vm_user_file() do this: > > file = vma->vm_file; > > if (file && unlikely(file->f_mode & FMODE_BACKING)) > > file = backing_file(file)->user_file; > > return file; > > > > Voila. Two-commit series, considerably smaller than your > > variant... > > > > Yap. looks very nice. > I will try that out tomorrow. > > Anyway, it doesn't hurt to have the current version in linux-next > for the night to see if the change from fake f_path to real f_path > has any unexpected outcomes. There is an obvious problem with that approach - refcounts don't mix with loops ;-/ Sorry about the noise - this really won't work.