From: Christian Brauner <christian.brauner@ubuntu.com>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
Christian Brauner <christian@brauner.io>,
David Chinner <david@fromorbit.com>,
linux-xfs@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: Re: linux-next: manual merge of the pidfd tree with the xfs tree
Date: Wed, 27 Jan 2021 10:17:48 +0100 [thread overview]
Message-ID: <20210127091748.p75yt7sflqjypbxp@wittgenstein> (raw)
In-Reply-To: <20210127031115.GA7695@magnolia>
On Tue, Jan 26, 2021 at 07:11:15PM -0800, Darrick J. Wong wrote:
> On Wed, Jan 27, 2021 at 11:24:41AM +1100, Stephen Rothwell wrote:
> > Hi all,
> >
> > On Mon, 25 Jan 2021 17:14:14 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> > >
> > > Today's linux-next merge of the pidfd tree got a conflict in:
> > >
> > > fs/xfs/xfs_inode.c
> > >
> > > between commit:
> > >
> > > 01ea173e103e ("xfs: fix up non-directory creation in SGID directories")
> > >
> > > from the xfs tree and commit:
> > >
> > > f736d93d76d3 ("xfs: support idmapped mounts")
> > >
> > > from the pidfd tree.
> > >
> > > I fixed it up (see below) and can carry the fix as necessary. This
> > > is now fixed as far as linux-next is concerned, but any non trivial
> > > conflicts should be mentioned to your upstream maintainer when your tree
> > > is submitted for merging. You may also want to consider cooperating
> > > with the maintainer of the conflicting tree to minimise any particularly
> > > complex conflicts.
> > >
> > > diff --cc fs/xfs/xfs_inode.c
> > > index e2a1db4cee43,95b7f2ba4e06..000000000000
> > > --- a/fs/xfs/xfs_inode.c
> > > +++ b/fs/xfs/xfs_inode.c
> > > @@@ -809,13 -810,13 +810,13 @@@ xfs_init_new_inode
> > > inode->i_rdev = rdev;
> > > ip->i_d.di_projid = prid;
> > >
> > > - if (pip && XFS_INHERIT_GID(pip)) {
> > > - inode->i_gid = VFS_I(pip)->i_gid;
> > > - if ((VFS_I(pip)->i_mode & S_ISGID) && S_ISDIR(mode))
> > > - inode->i_mode |= S_ISGID;
> > > + if (dir && !(dir->i_mode & S_ISGID) &&
> > > + (mp->m_flags & XFS_MOUNT_GRPID)) {
> > > + inode->i_uid = current_fsuid();
> >
> > Looking a bit harder, I replaced the above line with
> > inode->i_uid = fsuid_into_mnt(mnt_userns);
>
> I think that looks good, though Mr. Brauner is probably better equipped
> to tell if that change is correct.
This is on top of the setgid fixup. Yes, this looks good! :)
I think what I'll do is to simply build -next for every release up until
the merge window and run the xfstests I added on the kernel. That should
reveal regressions very quickly.
>
> (He says watching kernel.org mail take nearly a day to come through...)
Yeah, it had crazy delays (> 1 day). I chased down a few missing mails
from yesterday. Jon took that opportunity to make vger behave a little
better I believe, so delivery should be faster today, hopefully.
Christian
next prev parent reply other threads:[~2021-01-27 9:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-25 6:14 Stephen Rothwell
2021-01-27 0:24 ` Stephen Rothwell
2021-01-27 3:11 ` Darrick J. Wong
2021-01-27 9:17 ` Christian Brauner [this message]
2021-02-14 21:42 ` Stephen Rothwell
2021-02-21 22:53 ` Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210127091748.p75yt7sflqjypbxp@wittgenstein \
--to=christian.brauner@ubuntu.com \
--cc=christian@brauner.io \
--cc=david@fromorbit.com \
--cc=djwong@kernel.org \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®