Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ns: initialize ns_list_node for initial namespaces

Make sure that the list is always initialized for initial namespaces.

Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-8-2e6f823ebdc0@kernel.org
Fixes: 885fc8ac0a4d ("nstree: make iterator generic")
Tested-by: syzbot@syzkaller.appspotmail.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>

+1
+1
include/linux/ns_common.h
··· 127 127 .ops = to_ns_operations(&nsname), \ 128 128 .stashed = NULL, \ 129 129 .__ns_ref = REFCOUNT_INIT(refs), \ 130 + .ns_list_node = LIST_HEAD_INIT(nsname.ns.ns_list_node), \ 130 131 } 131 132 132 133 #define ns_common_init(__ns) \