------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 1 PID: 4374 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 1 PID: 4374 Comm: udevd Not tainted 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Code: 09 01 48 c7 c7 a0 d2 be 8a e8 ad 30 45 fd 0f 0b eb e0 e8 f4 1d 79 fd c6 05 fa 72 e2 09 01 48 c7 c7 e0 d1 be 8a e8 91 30 45 fd <0f> 0b eb c4 e8 d8 1d 79 fd c6 05 df 72 e2 09 01 48 c7 c7 40 d2 be RSP: 0018:ffffc900001e0828 EFLAGS: 00010246 RAX: fff562a292a19c00 RBX: 0000000000000002 RCX: ffff88802d0abb80 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc900001e0990 R08: dffffc0000000000 R09: fffff5200003c095 R10: fffff5200003c095 R11: 1ffff9200003c094 R12: ffff88807b401c40 R13: dffffc0000000000 R14: 0000000000000002 R15: ffff888056220848 FS: 00007fde3129c880(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc644bfef98 CR3: 0000000077335000 CR4: 00000000003506e0 Call Trace: __refcount_add include/linux/refcount.h:-1 [inline] __refcount_inc include/linux/refcount.h:250 [inline] refcount_inc include/linux/refcount.h:267 [inline] get_net include/net/net_namespace.h:257 [inline] tipc_aead_encrypt net/tipc/crypto.c:821 [inline] tipc_crypto_xmit+0x17a9/0x2300 net/tipc/crypto.c:1761 tipc_bearer_xmit_skb+0x242/0x3f0 net/tipc/bearer.c:574 tipc_disc_timeout+0x568/0x6b0 net/tipc/discover.c:338 call_timer_fn+0x1a0/0x670 kernel/time/timer.c:1504 expire_timers kernel/time/timer.c:1549 [inline] __run_timers+0x525/0x7c0 kernel/time/timer.c:1820 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:strscpy+0x64/0x1c0 lib/string.c:234 Code: 45 31 ed 49 83 ff 08 0f 83 94 00 00 00 4c 01 eb 4d 01 ec 45 31 f6 4d 39 f7 0f 84 ca 00 00 00 4b 8d 3c 34 48 89 f8 48 c1 e8 03 <0f> b6 04 10 84 c0 75 29 43 0f b6 2c 34 4a 8d 3c 33 48 89 f8 48 c1 RSP: 0018:ffffc90004a9f500 EFLAGS: 00000a03 RAX: 1ffff11005a15886 RBX: ffff88801bd6b160 RCX: ffff88802d0abb80 RDX: dffffc0000000000 RSI: ffff88802d0ac430 RDI: ffff88802d0ac435 RBP: 0000000000000064 R08: ffffffff8f7cd048 R09: ffffffff8f7cd058 R10: ffffffff8f7cd050 R11: ffffffff8f7cd043 R12: ffff88802d0ac430 R13: 0000000000000000 R14: 0000000000000005 R15: 0000000000000006 strscpy include/linux/fortify-string.h:274 [inline] __set_page_owner_handle+0x22f/0x3c0 mm/page_owner.c:175 __set_page_owner+0x41/0x60 mm/page_owner.c:195 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x87/0x2c0 mm/slub.c:1992 ___slab_alloc+0xbc6/0x1220 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa0/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] tomoyo_realpath_from_path+0xdf/0x5d0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x1fd/0x550 security/tomoyo/file.c:822 security_inode_getattr+0xcf/0x120 security/security.c:1361 vfs_getattr+0x26/0x3a0 fs/stat.c:158 vfs_fstat fs/stat.c:183 [inline] __do_sys_newfstat fs/stat.c:447 [inline] __se_sys_newfstat fs/stat.c:444 [inline] __x64_sys_newfstat+0x102/0x1c0 fs/stat.c:444 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fde30b11ad7 Code: 73 01 c3 48 8b 0d 21 f3 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 05 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 f1 f2 0d 00 f7 d8 64 89 02 b8 RSP: 002b:00007ffd8aad7c88 EFLAGS: 00000207 ORIG_RAX: 0000000000000005 RAX: ffffffffffffffda RBX: 0000559d2bd56af0 RCX: 00007fde30b11ad7 RDX: 0000000000000000 RSI: 00007ffd8aad7cf0 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000207 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000009 ---------------- Code disassembly (best guess): 0: 45 31 ed xor %r13d,%r13d 3: 49 83 ff 08 cmp $0x8,%r15 7: 0f 83 94 00 00 00 jae 0xa1 d: 4c 01 eb add %r13,%rbx 10: 4d 01 ec add %r13,%r12 13: 45 31 f6 xor %r14d,%r14d 16: 4d 39 f7 cmp %r14,%r15 19: 0f 84 ca 00 00 00 je 0xe9 1f: 4b 8d 3c 34 lea (%r12,%r14,1),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 75 29 jne 0x5b 32: 43 0f b6 2c 34 movzbl (%r12,%r14,1),%ebp 37: 4a 8d 3c 33 lea (%rbx,%r14,1),%rdi 3b: 48 89 f8 mov %rdi,%rax 3e: 48 rex.W 3f: c1 .byte 0xc1