Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp483282imm; Wed, 18 Jul 2018 05:44:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfGYqG3acWNdMBqVxQWx//AWm53r7PwsJM3JLOwS+cMcl8aGrgtj6Tw0sBVD9quxRqKAuXe X-Received: by 2002:a63:6cc8:: with SMTP id h191-v6mr5701745pgc.359.1531917881962; Wed, 18 Jul 2018 05:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531917881; cv=none; d=google.com; s=arc-20160816; b=JXp/bkTXz/n9f9wrBsU42fEwhfUndr35sTdJVRHPKGenVA6VtCS432YMuoih1wAR5J qZ2lx/Swp5usPKS03/gESsTPY9qZ8od57BNR8jyFqciNqY92WoF7QRoZBwSd+nm4S5qQ RnwAsZf+FZP+4NIo5+ist2Y3wYhdCgWuC9nlgM5vgrLoyrgAD6iE2sNwERgPX4Wo7Xnw R5T5n95pFt7nPmSN99jojJuJO8bxwudShPjScrEA128iZMu4nfuqIym+Ss6bkukSIDxN hD7CjZaiJKaldmRnhxrklrOksHewrxNbBWPO3VLj0EcQ/DIPhNJLe0WGxn66sZHXk+sa TLWQ== 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:arc-authentication-results; bh=pHcB5gXmfZ2VggNKVDddbOqMj3pNOh2AEkkoSQEhYXs=; b=JYX7KOsiMaA6aQWhkyN18ye+mmSMCyqcsS0Ksk3FDX/86h4fDrtX8xcD9/9k5/T025 HjPzWYRYbgW3rRqJqx41a3984ZppYrVvwmRyttg6QHUCShH/J4pBxDT0CY96dl4YliIc s/L24JdCnM1lI5DsR4sRCxGdMp1V5c4NBSbScxYhaU6+JyjD3ioIScn/UOmXNLaF0pgy yEIUVbR2dYusEK8USfzXYUyuxQ1KKesJFZsdbA01CnJoIRwnmM9K5LXftOL4DmgmHPUk vUQDG3Q6rQ/CP/WS/gsAUfY+TeTGHCz9DYsc8WQex/f3gEMdRN67ayx7165GNduVlRbf q3ng== 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 f17-v6si649676pgl.59.2018.07.18.05.44.27; Wed, 18 Jul 2018 05:44:41 -0700 (PDT) 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 S1730511AbeGRNVb (ORCPT + 99 others); Wed, 18 Jul 2018 09:21:31 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:56610 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbeGRNVb (ORCPT ); Wed, 18 Jul 2018 09:21:31 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fflnw-0002BN-Sg; Wed, 18 Jul 2018 12:43:40 +0000 Date: Wed, 18 Jul 2018 13:43:40 +0100 From: Al Viro To: Miklos Szeredi Cc: Stephen Rothwell , linux-fsdevel , Linux Kernel Mailing List , Linus Torvalds Subject: Re: vfs / overlayfs conflict resolution for linux-next Message-ID: <20180718124340.GS30522@ZenIV.linux.org.uk> References: <20180711152555.GR30522@ZenIV.linux.org.uk> <20180711161540.GS30522@ZenIV.linux.org.uk> <20180712124326.GA19272@ZenIV.linux.org.uk> <20180712155337.GU30522@ZenIV.linux.org.uk> <20180718025636.GA26175@ZenIV.linux.org.uk> <20180718132955.2bf185b7@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 18, 2018 at 02:10:32PM +0200, Miklos Szeredi wrote: > On Wed, Jul 18, 2018 at 9:25 AM, Miklos Szeredi wrote: > > On Wed, Jul 18, 2018 at 5:29 AM, Stephen Rothwell wrote: > >> Hi Al, > >> > >> On Wed, 18 Jul 2018 03:56:37 +0100 Al Viro wrote: > >>> > >>> ... and now it even builds. Said that, I would really like to hear something > >>> from you - I can duplicate the entire overlayfs-next and merge it into > >>> my #for-next and ask Steven to use that instead of your tree, but I very > >>> much dislike going over your head like that. > >>> > >>> I realize that you'd been away for a while and probably are digging yourself > >>> from under the piles of mail, but it's getting late in the cycle and I want > >>> to get #for-next into reasonably sane shape. Please, look through that > >>> thing and respond. > > In "ovl: stack file ops" this: > > AV: make it use open_with_fake_path(), don't mess with override_creds > > Maybe it's the way to go, but looks broken as is; e.g. NFS does call > current_creds() from its open method to get the credentials to work > with. It *is* broken. For now leave override_creds() as in your variant, but we really want to deal with that crap eventually. > Okay, so ->open() is a file op, and file ops should use file->f_cred, > but how are we going to enforce this? I'd say we cut down on the use of current_cred() when deep in call chain...