syzbot


WARNING in __ns_tree_remove (8)

Status: upstream: reported syz repro on 2025/09/22 07:44
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+a709c87b450d0d76fdb1@syzkaller.appspotmail.com
First crash: 2d05h, last: 1h28m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] WARNING in __ns_tree_remove (8) 0 (1) 2025/09/22 07:44
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __ns_tree_remove (2) kernel -1 C inconclusive 10 4d18h 6d01h 0/29 closed as invalid on 2025/09/17 23:05
upstream WARNING in __ns_tree_remove kernel -1 1 6d11h 6d11h 0/29 closed as invalid on 2025/09/16 03:38

Sample crash report:
------------[ cut here ]------------
WARNING: kernel/nstree.c:115 at __ns_tree_remove+0x28d/0x330 kernel/nstree.c:115, CPU#0: syz.2.780/9341
Modules linked in:
CPU: 0 UID: 0 PID: 9341 Comm: syz.2.780 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:__ns_tree_remove+0x28d/0x330 kernel/nstree.c:115
Code: 0f 85 a4 00 00 00 48 8b 04 24 ff 00 48 8b 7c 24 18 48 83 c4 30 5b 41 5c 41 5d 41 5e 41 5f 5d e9 79 92 f9 09 e8 54 f5 31 00 90 <0f> 0b 90 e9 cc fd ff ff e8 46 f5 31 00 90 0f 0b 90 e9 ee fd ff ff
RSP: 0018:ffffc9000e427708 EFLAGS: 00010293
RAX: ffffffff818de3cc RBX: ffff88805df2c820 RCX: ffff88805bd15ac0
RDX: 0000000000000000 RSI: ffff88805df2c820 RDI: ffff88805df2c820
RBP: dffffc0000000000 R08: ffffffff8e1efb53 R09: 1ffffffff1c3df6a
R10: dffffc0000000000 R11: fffffbfff1c3df6b R12: ffff88805df2c820
R13: 1ffff1100bbe5903 R14: ffff88805df2c800 R15: ffffffff8e1ea3c0
FS:  00007fb7a87da6c0(0000) GS:ffff8881259e7000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffaa6095e8 CR3: 0000000031e7e000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 mnt_ns_tree_remove fs/namespace.c:165 [inline]
 free_mnt_ns+0xd1/0x110 fs/namespace.c:4066
 namespace_unlock+0x529/0x760 fs/namespace.c:1710
 class_namespace_excl_destructor fs/namespace.c:96 [inline]
 copy_mnt_ns+0x6e0/0x870 fs/namespace.c:4172
 create_new_namespaces+0xd1/0x720 kernel/nsproxy.c:78
 copy_namespaces+0x438/0x4b0 kernel/nsproxy.c:175
 copy_process+0x1733/0x3c00 kernel/fork.c:2199
 kernel_clone+0x21e/0x840 kernel/fork.c:2624
 __do_sys_clone kernel/fork.c:2765 [inline]
 __se_sys_clone kernel/fork.c:2749 [inline]
 __x64_sys_clone+0x18b/0x1e0 kernel/fork.c:2749
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb7a798ec29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb7a87d9fe8 EFLAGS: 00000206 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007fb7a7bd6090 RCX: 00007fb7a798ec29
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000000a5000
RBP: 00007fb7a7a11e41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 00007fb7a7bd6128 R14: 00007fb7a7bd6090 R15: 00007fff04cb79a8
 </TASK>

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/20 08:16 linux-next 846bd2225ec3 67c37560 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/22 11:53 linux-next 846bd2225ec3 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/22 11:47 linux-next 846bd2225ec3 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/22 06:29 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/21 21:54 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/21 10:49 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/21 07:44 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/21 02:36 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/21 00:19 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/20 18:55 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/20 14:44 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/20 12:48 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/20 12:27 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/20 11:40 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/20 11:38 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
2025/09/20 11:37 linux-next 846bd2225ec3 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ns_tree_remove
* Struck through repros no longer work on HEAD.