[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250620121122.344c1d0d@canb.auug.org.au>
Date: Fri, 20 Jun 2025 12:11:22 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: David Miller <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, Christian Brauner <brauner@...nel.org>
Cc: Jeff Layton <jlayton@...nel.org>, Networking <netdev@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, Linux Next
Mailing List <linux-next@...r.kernel.org>
Subject: linux-next: manual merge of the net-next tree with the vfs-brauner
tree
Hi all,
Today's linux-next merge of the net-next tree got a conflict in:
net/core/net_namespace.c
between commit:
9b0240b3ccc3 ("netns: use stable inode number for initial mount ns")
from the vfs-brauner tree and commit:
8f2079f8da5b ("net: add symlinks to ref_tracker_dir for netns")
from the net-next 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.
--
Cheers,
Stephen Rothwell
diff --cc net/core/net_namespace.c
index 03cf87d3b380,d0f607507ee8..000000000000
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@@ -796,11 -821,10 +821,15 @@@ static __net_init int net_ns_net_init(s
#ifdef CONFIG_NET_NS
net->ns.ops = &netns_operations;
#endif
- ret = ns_alloc_inum(&net->ns);
+ if (net == &init_net) {
+ net->ns.inum = PROC_NET_INIT_INO;
- return 0;
++ ret = 0;
++ } else {
++ ret = ns_alloc_inum(&net->ns);
+ }
- return ns_alloc_inum(&net->ns);
+ if (!ret)
+ net_ns_net_debugfs(net);
+ return ret;
}
static __net_exit void net_ns_net_exit(struct net *net)
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists