From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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...