------------[ cut here ]------------ WARNING: ./include/linux/ns_common.h:255 at __ns_ref_put include/linux/ns_common.h:255 [inline], CPU#0: syz.0.1074/10721 WARNING: ./include/linux/ns_common.h:255 at put_user_ns include/linux/user_namespace.h:189 [inline], CPU#0: syz.0.1074/10721 WARNING: ./include/linux/ns_common.h:255 at put_cred_rcu+0x2c5/0x340 kernel/cred.c:61, CPU#0: syz.0.1074/10721 Modules linked in: CPU: 0 UID: 0 PID: 10721 Comm: syz.0.1074 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:__ns_ref_put include/linux/ns_common.h:255 [inline] RIP: 0010:put_user_ns include/linux/user_namespace.h:189 [inline] RIP: 0010:put_cred_rcu+0x2c5/0x340 kernel/cred.c:61 Code: 5c 41 5d 41 5e 41 5f 5d e9 b8 25 8e 00 e8 13 a7 32 00 4c 89 e7 be 03 00 00 00 e8 a6 02 02 03 e9 b8 fe ff ff e8 fc a6 32 00 90 <0f> 0b 90 eb 9f e8 f1 a6 32 00 4c 89 ff be 03 00 00 00 e8 84 02 02 RSP: 0018:ffffc90000007ba8 EFLAGS: 00010246 RAX: ffffffff818ed934 RBX: ffff888026c414a0 RCX: ffff888025fabd00 RDX: 0000000000000100 RSI: 0000000000000004 RDI: 0000000000000000 RBP: 0000000000000004 R08: ffff88806add8193 R09: 1ffff1100d5bb032 R10: dffffc0000000000 R11: ffffed100d5bb033 R12: dffffc0000000000 R13: ffff888026c41400 R14: ffff88806add8000 R15: ffff88806add8190 FS: 00007f17e8d626c0(0000) GS:ffff888125ec2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f434f1b3ad8 CR3: 000000005fee2000 CR4: 00000000003526f0 Call Trace: rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xcab/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x286/0x870 kernel/softirq.c:626 __do_softirq kernel/softirq.c:660 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:727 irq_exit_rcu+0x9/0x30 kernel/softirq.c:743 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1052 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1052 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:lock_acquire+0x175/0x360 kernel/locking/lockdep.c:5872 Code: 00 00 00 00 9c 8f 44 24 30 f7 44 24 30 00 02 00 00 0f 85 cd 00 00 00 f7 44 24 08 00 02 00 00 74 01 fb 65 48 8b 05 9b 9e d7 10 <48> 3b 44 24 58 0f 85 f2 00 00 00 48 83 c4 60 5b 41 5c 41 5d 41 5e RSP: 0018:ffffc90003217b60 EFLAGS: 00000206 RAX: c6cbba011bf55c00 RBX: 0000000000000000 RCX: c6cbba011bf55c00 RDX: 0000000000000000 RSI: ffffffff8d96e376 RDI: ffffffff8bbf41e0 RBP: ffffffff84461d4c R08: 0000000000000000 R09: ffffffff84461d4c R10: ffffc90003217ca0 R11: fffff52000642f9e R12: 0000000000000002 R13: ffffffff8e5e9b38 R14: 0000000000000001 R15: 0000000000000246 srcu_lock_acquire include/linux/srcu.h:185 [inline] srcu_read_lock include/linux/srcu.h:277 [inline] tomoyo_read_lock security/tomoyo/common.h:1110 [inline] tomoyo_path_number_perm+0x1dc/0x5a0 security/tomoyo/file.c:722 security_file_ioctl+0xcb/0x2d0 security/security.c:2435 __do_sys_ioctl fs/ioctl.c:591 [inline] __se_sys_ioctl+0x47/0x170 fs/ioctl.c:583 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:0x7f17e7f8f2cb Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007f17e8d62050 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f17e81e6128 RCX: 00007f17e7f8f2cb RDX: 0000000000000000 RSI: 0000000000006364 RDI: 00000000000000d9 RBP: 0000000000000000 R08: 0000000000000000 R09: 00007fff673f1cc7 R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000001 R13: 00007f17e81e6128 R14: 00007fff673f1be0 R15: 00007fff673f1cc8 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 00 add %al,(%rax) 4: 9c pushf 5: 8f 44 24 30 pop 0x30(%rsp) 9: f7 44 24 30 00 02 00 testl $0x200,0x30(%rsp) 10: 00 11: 0f 85 cd 00 00 00 jne 0xe4 17: f7 44 24 08 00 02 00 testl $0x200,0x8(%rsp) 1e: 00 1f: 74 01 je 0x22 21: fb sti 22: 65 48 8b 05 9b 9e d7 mov %gs:0x10d79e9b(%rip),%rax # 0x10d79ec5 29: 10 * 2a: 48 3b 44 24 58 cmp 0x58(%rsp),%rax <-- trapping instruction 2f: 0f 85 f2 00 00 00 jne 0x127 35: 48 83 c4 60 add $0x60,%rsp 39: 5b pop %rbx 3a: 41 5c pop %r12 3c: 41 5d pop %r13 3e: 41 5e pop %r14