RBP: 00007f78b80531d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fff94e134af R14: 00007f78b8053300 R15: 0000000000022000 ===================================== WARNING: bad unlock balance detected! 6.17.0-rc7-next-20250923 #1 Not tainted ------------------------------------- syz-executor.3/6869 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.3/6869. stack backtrace: CPU: 0 UID: 0 PID: 6869 Comm: syz-executor.3 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:0x7f78baaddb19 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:00007f78b8053188 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f78babf0f60 RCX: 00007f78baaddb19 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 0000000020000240 RBP: 00007f78b80531d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fff94e134af R14: 00007f78b8053300 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 0xffff88801e218000, list empty WARNING: kernel/locking/rwsem.c:1380 at up_write+0x423/0x520, CPU#0: syz-executor.3/6869 Modules linked in: CPU: 0 UID: 0 PID: 6869 Comm: syz-executor.3 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:ffff88804aac7850 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffff84e826c0 RCX: ffffc90004c2b000 RDX: 0000000000040000 RSI: ffffffff8139e07e RDI: 0000000000000001 RBP: ffffffff85f177a0 R08: 0000000000000001 R09: ffffed1009558ec5 R10: 0000000000000001 R11: 0000000000000001 R12: ffffffff85f177a8 R13: ffffffff85f177a0 R14: ffff88801e218000 R15: 0000000000000000 FS: 00007f78b8053700(0000) GS:ffff8880e53c6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f78b8052f78 CR3: 0000000048650000 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:0x7f78baaddb19 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:00007f78b8053188 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f78babf0f60 RCX: 00007f78baaddb19 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 0000000020000240 RBP: 00007f78b80531d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fff94e134af R14: 00007f78b8053300 R15: 0000000000022000 irq event stamp: 401 hardirqs last enabled at (401): [] __call_rcu_common.constprop.0+0x4c1/0x960 hardirqs last disabled at (400): [] __call_rcu_common.constprop.0+0x56e/0x960 softirqs last enabled at (394): [] handle_softirqs+0x50c/0x770 softirqs last disabled at (351): [] __irq_exit_rcu+0xc4/0x100 ---[ end trace 0000000000000000 ]--- FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 0 CPU: 0 UID: 0 PID: 6879 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_fail_alloc_page+0xe0/0x110 prepare_alloc_pages+0x1af/0x500 __alloc_frozen_pages_noprof+0x17f/0x1f20 alloc_pages_mpol+0xed/0x340 vma_alloc_folio_noprof+0xe9/0x440 do_wp_page+0x13fe/0x3430 __handle_mm_fault+0xe05/0x3320 handle_mm_fault+0x2c3/0x9b0 do_user_addr_fault+0x3cc/0x12b0 exc_page_fault+0xb0/0x180 asm_exc_page_fault+0x26/0x30 RIP: 0010:__put_user_nocheck_4+0x3/0x10 Code: d9 0f 01 cb 89 01 31 c9 0f 01 ca e9 17 e7 02 00 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 01 cb <89> 01 31 c9 0f 01 ca e9 f1 e6 02 00 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffff88801b1efa00 EFLAGS: 00050216 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000020004030 RDX: 0000000000040000 RSI: ffffffff83be5e3b RDI: 0000000000000005 RBP: ffff88801b1efda0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000020004030 R14: 0000000000000000 R15: 0000000000000000 ____sys_recvmsg+0x2f6/0x670 ___sys_recvmsg+0xf1/0x190 do_recvmmsg+0x2c5/0x6f0 __x64_sys_recvmmsg+0x211/0x260 do_syscall_64+0xbf/0x390 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff705a3db19 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:00007ff702fb3188 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007ff705b50f60 RCX: 00007ff705a3db19 RDX: 000000000000050a RSI: 0000000020002e40 RDI: 0000000000000003 RBP: 00007ff702fb31d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fffc7d2336f R14: 00007ff702fb3300 R15: 0000000000022000 FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 0 CPU: 0 UID: 0 PID: 6890 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 _copy_from_user+0x30/0xd0 copy_msghdr_from_user+0x88/0x150 ___sys_recvmsg+0xbb/0x190 do_recvmmsg+0x2c5/0x6f0 __x64_sys_recvmmsg+0x211/0x260 do_syscall_64+0xbf/0x390 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff705a3db19 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:00007ff702fb3188 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007ff705b50f60 RCX: 00007ff705a3db19 RDX: 000000000000050a RSI: 0000000020002e40 RDI: 0000000000000003 RBP: 00007ff702fb31d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fffc7d2336f R14: 00007ff702fb3300 R15: 0000000000022000 FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 0 CPU: 0 UID: 0 PID: 6916 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 _copy_from_user+0x30/0xd0 copy_msghdr_from_user+0x88/0x150 ___sys_recvmsg+0xbb/0x190 do_recvmmsg+0x2c5/0x6f0 __x64_sys_recvmmsg+0x211/0x260 do_syscall_64+0xbf/0x390 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff705a3db19 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:00007ff702fb3188 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007ff705b50f60 RCX: 00007ff705a3db19 RDX: 000000000000050a RSI: 0000000020002e40 RDI: 0000000000000003 RBP: 00007ff702fb31d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fffc7d2336f R14: 00007ff702fb3300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: d9 0f (bad) (%rdi) 2: 01 cb add %ecx,%ebx 4: 89 01 mov %eax,(%rcx) 6: 31 c9 xor %ecx,%ecx 8: 0f 01 ca clac b: e9 17 e7 02 00 jmpq 0x2e727 10: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: 90 nop 26: 90 nop 27: 0f 01 cb stac * 2a: 89 01 mov %eax,(%rcx) <-- trapping instruction 2c: 31 c9 xor %ecx,%ecx 2e: 0f 01 ca clac 31: e9 f1 e6 02 00 jmpq 0x2e727 36: 90 nop 37: 90 nop 38: 90 nop 39: 90 nop 3a: 90 nop 3b: 90 nop 3c: 90 nop 3d: 90 nop 3e: 90 nop 3f: 90 nop