]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ns: initialize ns_list_node for initial namespaces
authorChristian Brauner <brauner@kernel.org>
Wed, 29 Oct 2025 12:20:21 +0000 (13:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:49 +0000 (14:02 +0100)
commite31c902d785411eb4a246fba2e8a32aa59d33ce2
tree79f5ba776662b7f026301adcea430d995ee1f19b
parentad804f43873aa290dbe7463454359b256b414e49
ns: initialize ns_list_node for initial namespaces

[ Upstream commit 3dd50c58664e2684bd610a57bf3ab713cbb0ea91 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/ns_common.h