Skip to contentSkip to conversation

linux-next: manual merge of the pidfd tree with the overlayfs tree

DISCUSSION Stephen Rothwell 1 participant 2 messages Jan 25, 2021 – Feb 4, 2021 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the pidfd tree got a conflict in:

fs/overlayfs/inode.c

between commit:

9c09be9e71c4 ("ovl: perform vfs_getxattr() with mounter creds")

from the overlayfs tree and commit:

c7c7a1a18af4 ("xattr: handle 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.

Signature · 18 lines
Cheers,
Stephen Rothwell

diff --cc fs/overlayfs/inode.c
index cf41bcb664bc,e78d45dfeaee..000000000000
--- a/fs/overlayfs/inode.c
+++ b/fs/overlayfs/inode.c
@@@ -352,9 -354,7 +354,9 @@@ int ovl_xattr_set(struct dentry *dentry
  		goto out;
  
  	if (!value && !upperdentry) {
 +		old_cred = ovl_override_creds(dentry->d_sb);
- 		err = vfs_getxattr(realdentry, name, NULL, 0);
+ 		err = vfs_getxattr(&init_user_ns, realdentry, name, NULL, 0);
 +		revert_creds(old_cred);
  		if (err < 0)
  			goto out_drop_write;
  	}
#1 lore raw

Hi all,

Quoted 28 lines · On Mon, 25 Jan 2021 17:07:16 +1100 Stephen Rothwell <[email protected]>…

Today's linux-next merge of the pidfd tree got a conflict in:

fs/overlayfs/inode.c

between commit:

9c09be9e71c4 ("ovl: perform vfs_getxattr() with mounter creds")

from the overlayfs tree and commit:

c7c7a1a18af4 ("xattr: handle 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.

fs/overlayfs/inode.c +0 -0
diff --cc fs/overlayfs/inode.c
index cf41bcb664bc,e78d45dfeaee..000000000000

fs/overlayfs/inode.c

Quoted 10 lines
fs/overlayfs/inode.c +1 -1
@@@ -352,9 -354,7 +354,9 @@@ int ovl_xattr_set(struct dentry *dentry
  		goto out;
 
  	if (!value && !upperdentry) {
 +		old_cred = ovl_override_creds(dentry->d_sb);
- 		err = vfs_getxattr(realdentry, name, NULL, 0);
+ 		err = vfs_getxattr(&init_user_ns, realdentry, name, NULL, 0);
 +		revert_creds(old_cred);
  		if (err < 0)
  			goto out_drop_write;
  	}

This is now a conflict between the pidfd tree and Linus' tree.

Signature · 2 lines
Cheers,
Stephen Rothwell