RBP: 00007f6a4b4131d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffc4a74fc4f R14: 00007f6a4b413300 R15: 0000000000022000 ===================================== WARNING: bad unlock balance detected! 6.17.0-rc7-next-20250922 #1 Not tainted ------------------------------------- syz-executor.1/5813 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/5813. stack backtrace: CPU: 0 UID: 0 PID: 5813 Comm: syz-executor.1 Not tainted 6.17.0-rc7-next-20250922 #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:0x7f6a4de9db19 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:00007f6a4b413188 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f6a4dfb0f60 RCX: 00007f6a4de9db19 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00000000200002c0 RBP: 00007f6a4b4131d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffc4a74fc4f R14: 00007f6a4b413300 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 0xffff888047700000, list empty EXT4-fs (loop3): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. WARNING: kernel/locking/rwsem.c:1380 at up_write+0x423/0x520, CPU#0: syz-executor.1/5813 Modules linked in: CPU: 0 UID: 0 PID: 5813 Comm: syz-executor.1 Not tainted 6.17.0-rc7-next-20250922 #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 fe a8 e8 ff 90 <0f> 0b 90 90 59 e9 dc fc ff ff 48 89 df e8 3b 58 5f 00 e9 1a fc ff RSP: 0018:ffff888049e07850 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffff84e826c0 RCX: ffffc900035f8000 RDX: 0000000000040000 RSI: ffffffff8139e07e RDI: 0000000000000001 RBP: ffffffff85f177a0 R08: 0000000000000001 R09: ffffed10093c0ec5 R10: 0000000000000001 R11: 57525f4755424544 R12: ffffffff85f177a8 R13: ffffffff85f177a0 R14: ffff888047700000 R15: 0000000000000000 FS: 00007f6a4b413700(0000) GS:ffff8880e53c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 000000000cc8a000 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:0x7f6a4de9db19 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:00007f6a4b413188 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f6a4dfb0f60 RCX: 00007f6a4de9db19 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00000000200002c0 RBP: 00007f6a4b4131d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffc4a74fc4f R14: 00007f6a4b413300 R15: 0000000000022000 irq event stamp: 1017 hardirqs last enabled at (1017): [] __call_rcu_common.constprop.0+0x4c1/0x960 hardirqs last disabled at (1016): [] __call_rcu_common.constprop.0+0x56e/0x960 softirqs last enabled at (1010): [] handle_softirqs+0x50c/0x770 softirqs last disabled at (513): [] __irq_exit_rcu+0xc4/0x100 ---[ end trace 0000000000000000 ]--- EXT4-fs (loop7): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none.