]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/namespaces: second inactive namespace resurrection test
authorChristian Brauner <brauner@kernel.org>
Wed, 29 Oct 2025 12:21:09 +0000 (13:21 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 3 Nov 2025 16:41:23 +0000 (17:41 +0100)
commitc0f06da56860f185268b77cb23c4b3c85518e87a
tree63fd6863bd95f3774152fa2f72ef807696d5639f
parenta1e49d8d18ba0fc53f1a2d5453af32b6339b67cf
selftests/namespaces: second inactive namespace resurrection test

Test that socket file descriptors keep network namespaces active. Create
a network namespace, create a socket in it, then exit the namespace. The
namespace should remain active while the socket FD is held.

Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-56-2e6f823ebdc0@kernel.org
Tested-by: syzbot@syzkaller.appspotmail.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/testing/selftests/namespaces/siocgskns_test.c