RBP: 00007f04af41f1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffe8df3541f R14: 00007f04af41f300 R15: 0000000000022000 ===================================== WARNING: bad unlock balance detected! 6.17.0-rc7-next-20250923 #1 Not tainted ------------------------------------- syz-executor.1/6528 is trying to release lock (namespace_sem) at: [] namespace_unlock+0x487/0x910 but there are no more locks to release! other info that might help us debug this: no locks held by syz-executor.1/6528. stack backtrace: CPU: 0 UID: 0 PID: 6528 Comm: syz-executor.1 Not tainted 6.17.0-rc7-next-20250923 #1 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xca/0x120 print_unlock_imbalance_bug+0x118/0x130 lock_release+0x208/0x290 up_write+0x2a/0x520 namespace_unlock+0x487/0x910 copy_mnt_ns+0x910/0xab0 create_new_namespaces+0xd6/0xab0 copy_namespaces+0x45c/0x580 copy_process+0x26d4/0x7400 kernel_clone+0xea/0x7f0 __do_sys_clone3+0x1f2/0x270 do_syscall_64+0xbf/0x390 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f04b1ea9b19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f04af41f188 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f04b1fbcf60 RCX: 00007f04b1ea9b19 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 0000000020000240 RBP: 00007f04af41f1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffe8df3541f R14: 00007f04af41f300 R15: 0000000000022000 ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffffffff85f177a0, owner = 0x0, curr 0xffff888047f09b80, list empty FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 WARNING: kernel/locking/rwsem.c:1380 at up_write+0x423/0x520, CPU#0: syz-executor.1/6528 CPU: 1 UID: 0 PID: 6530 Comm: syz-executor.0 Not tainted 6.17.0-rc7-next-20250923 #1 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xfa/0x120 should_fail_ex+0x4d7/0x5e0 should_failslab+0xc2/0x120 __kmalloc_cache_noprof+0x73/0x6a0 alloc_mnt_ns+0xcb/0x380 copy_mnt_ns+0x117/0xab0 create_new_namespaces+0xd6/0xab0 copy_namespaces+0x45c/0x580 copy_process+0x26d4/0x7400 kernel_clone+0xea/0x7f0 __do_sys_clone3+0x1f2/0x270 do_syscall_64+0xbf/0x390 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fea69cd0b19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fea67246188 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007fea69de3f60 RCX: 00007fea69cd0b19 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 0000000020000240 RBP: 00007fea672461d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffc105f225f R14: 00007fea67246300 R15: 0000000000022000 Modules linked in: CPU: 0 UID: 0 PID: 6528 Comm: syz-executor.1 Not tainted 6.17.0-rc7-next-20250923 #1 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:up_write+0x423/0x520 Code: 02 00 0f 85 dd 00 00 00 48 8b 55 00 53 4d 89 f1 4d 89 f8 4c 89 e9 48 c7 c6 60 28 e8 84 48 c7 c7 80 27 e8 84 e8 de a8 e8 ff 90 <0f> 0b 90 90 59 e9 dc fc ff ff 48 89 df e8 2b 57 5f 00 e9 1a fc ff RSP: 0018:ffff888015c2f850 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffff84e826c0 RCX: ffffc900029fa000 RDX: 0000000000040000 RSI: ffffffff8139e07e RDI: 0000000000000001 RBP: ffffffff85f177a0 R08: 0000000000000001 R09: ffffed1002b85ec5 R10: 0000000000000001 R11: 57525f4755424544 R12: ffffffff85f177a8 R13: ffffffff85f177a0 R14: ffff888047f09b80 R15: 0000000000000000 FS: 00007f04af41f700(0000) GS:ffff8880e53c6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fea69de4018 CR3: 000000000bb32000 CR4: 0000000000350ef0 Call Trace: namespace_unlock+0x487/0x910 copy_mnt_ns+0x910/0xab0 create_new_namespaces+0xd6/0xab0 copy_namespaces+0x45c/0x580 copy_process+0x26d4/0x7400 kernel_clone+0xea/0x7f0 __do_sys_clone3+0x1f2/0x270 do_syscall_64+0xbf/0x390 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f04b1ea9b19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f04af41f188 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f04b1fbcf60 RCX: 00007f04b1ea9b19 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 0000000020000240 RBP: 00007f04af41f1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffe8df3541f R14: 00007f04af41f300 R15: 0000000000022000 irq event stamp: 887 hardirqs last enabled at (887): [] __call_rcu_common.constprop.0+0x4c1/0x960 hardirqs last disabled at (886): [] __call_rcu_common.constprop.0+0x56e/0x960 softirqs last enabled at (880): [] handle_softirqs+0x50c/0x770 softirqs last disabled at (575): [] __irq_exit_rcu+0xc4/0x100 ---[ end trace 0000000000000000 ]--- FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 0 CPU: 1 UID: 0 PID: 6537 Comm: syz-executor.5 Tainted: G W 6.17.0-rc7-next-20250923 #1 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xfa/0x120 should_fail_ex+0x4d7/0x5e0 strncpy_from_user+0x3b/0x2f0 getname_flags.part.0+0x8d/0x540 getname_flags+0x95/0xe0 do_sys_openat2+0x9f/0x1b0 __x64_sys_openat+0x142/0x200 do_syscall_64+0xbf/0x390 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd500872b19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd4fdde8188 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fd500985f60 RCX: 00007fd500872b19 RDX: 0000000000161c07 RSI: 0000000020000440 RDI: ffffffffffffff9c RBP: 00007fd4fdde81d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fffa24693cf R14: 00007fd4fdde8300 R15: 0000000000022000 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 UID: 0 PID: 6545 Comm: syz-executor.4 Tainted: G W 6.17.0-rc7-next-20250923 #1 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xfa/0x120 should_fail_ex+0x4d7/0x5e0 should_failslab+0xc2/0x120 kmem_cache_alloc_noprof+0x72/0x680 copy_process+0x66d2/0x7400 kernel_clone+0xea/0x7f0 __do_sys_clone3+0x1f2/0x270 do_syscall_64+0xbf/0x390 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa2c9a68b19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa2c6fde188 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007fa2c9b7bf60 RCX: 00007fa2c9a68b19 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 0000000020000240 RBP: 00007fa2c6fde1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffe6e68800f R14: 00007fa2c6fde300 R15: 0000000000022000 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 UID: 0 PID: 6554 Comm: syz-executor.5 Tainted: G W 6.17.0-rc7-next-20250923 #1 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xfa/0x120 should_fail_ex+0x4d7/0x5e0 should_failslab+0xc2/0x120 kmem_cache_alloc_noprof+0x72/0x680 alloc_empty_file+0x58/0x1e0 path_openat+0xe0/0x2880 do_filp_open+0x1e8/0x450 do_sys_openat2+0x104/0x1b0 __x64_sys_openat+0x142/0x200 do_syscall_64+0xbf/0x390 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd500872b19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd4fdde8188 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fd500985f60 RCX: 00007fd500872b19 RDX: 0000000000161c07 RSI: 0000000020000440 RDI: ffffffffffffff9c RBP: 00007fd4fdde81d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fffa24693cf R14: 00007fd4fdde8300 R15: 0000000000022000