Skip to contentSkip to conversation

linux-next: manual merge of the vfs-brauner tree with the mm-nonmm-unstable tree

PATCH Stephen Rothwell 2 participants 2 messages Nov 20, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the vfs-brauner tree got a semantic conflict in:

kernel/fork.c

between commit:

42d3299e85f8 ("unshare: fix nsproxy leak on set_cred_ucounts() error path")

from the mm-nonmm-unstable tree and commit:

cefd55bd2159 ("nsproxy: fix free_nsproxy() and simplify create_new_namespaces()")

from the vfs-brauner tree.

I fixed it up (I applied the following fix patch) 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.

From: Stephen Rothwell <[email protected]>
Date: Thu, 20 Nov 2025 11:20:10 +1100
Subject: [PATCH] fix up for "nsproxy: fix free_nsproxy() and simplify create_new_namespaces()"

from the vfs-brauner tree interacting with "unshare: fix nsproxy leak on set_cred_ucounts() error path" from the mm-nonmm-unstable tree.

---
 kernel/fork.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/fork.c +1 -1
index 829d6518f352..adef2595182b 100644
@@ -3136,7 +3136,7 @@ int ksys_unshare(unsigned long unshare_flags)
 		err = set_cred_ucounts(new_cred);
 		if (err) {
 			if (new_nsproxy)
-				free_nsproxy(new_nsproxy);
+				deactivate_nsproxy(new_nsproxy);
 			goto bad_unshare_cleanup_cred;
 		}
 	}
Signature · 5 lines
2.51.1

-- 
Cheers,
Stephen Rothwell
maintainer
#1 lore raw
Quoted 7 lines · On Thu, 20 Nov 2025 11:44:55 +1100 Stephen Rothwell <[email protected]>…

Today's linux-next merge of the vfs-brauner tree got a semantic conflict in:

kernel/fork.c

between commit:

Quoted 7 lines

42d3299e85f8 ("unshare: fix nsproxy leak on set_cred_ucounts() error path")

from the mm-nonmm-unstable tree and commit:

cefd55bd2159 ("nsproxy: fix free_nsproxy() and simplify create_new_namespaces()")

from the vfs-brauner tree.

Thanks. I'll send the mm.git patch to Christian. I'll then drop it and forget all about it!