------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 1 PID: 8049 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 1 PID: 8049 Comm: syz-executor Not tainted 5.15.185-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 40 6b 59 8a e8 dd 27 bb 05 0f 0b eb e0 e8 04 42 9c fd c6 05 ae 8f 79 09 01 48 c7 c7 80 6a 59 8a e8 c1 27 bb 05 <0f> 0b eb c4 e8 e8 41 9c fd c6 05 93 8f 79 09 01 48 c7 c7 e0 6a 59 RSP: 0018:ffffc90000dd06a8 EFLAGS: 00010246 RAX: a81be7f16f334e00 RBX: 0000000000000002 RCX: ffff8880758b5940 RDX: 0000000000000100 RSI: 0000000000000100 RDI: 0000000000000000 RBP: ffffc90000dd0808 R08: dffffc0000000000 R09: fffff520001ba039 R10: fffff520001ba039 R11: 1ffff920001ba038 R12: ffff88807aef1a80 R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000 FS: 0000555590104500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d17af354e8 CR3: 000000007df9e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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:252 [inline] tipc_aead_encrypt net/tipc/crypto.c:832 [inline] tipc_crypto_xmit+0x1949/0x2560 net/tipc/crypto.c:1772 tipc_crypto_clone_msg+0x91/0x160 net/tipc/crypto.c:1667 tipc_crypto_xmit+0x1ac5/0x2560 net/tipc/crypto.c:1728 tipc_bearer_xmit_skb+0x228/0x3c0 net/tipc/bearer.c:574 tipc_disc_timeout+0x568/0x6b0 net/tipc/discover.c:338 call_timer_fn+0x16c/0x530 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x525/0x7c0 kernel/time/timer.c:1767 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780 handle_softirqs+0x328/0x820 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:kernel_wait4+0x1/0x270 kernel/exit.c:1718 Code: df e8 b3 41 75 00 44 8b 03 4c 89 f7 4c 89 fe 4c 89 e2 4c 89 e9 5b 41 5c 41 5d 41 5e 41 5f 5d e9 25 fc ff ff 0f 1f 44 00 00 55 <48> 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec e0 00 00 RSP: 0018:ffffc90003dffd90 EFLAGS: 00000246 RAX: ffffffff81480844 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000040000001 RSI: 00007ffeeb8bf57c RDI: 00000000ffffffff RBP: ffffc90003dfff10 R08: dffffc0000000000 R09: ffffc90003dffde0 R10: 0000000000000000 R11: 0000000000000008 R12: 1ffff920007bffb8 R13: 0000000000000000 R14: 0000000040000001 R15: dffffc0000000000 __do_sys_wait4 kernel/exit.c:1779 [inline] __se_sys_wait4 kernel/exit.c:1775 [inline] __x64_sys_wait4+0x130/0x1e0 kernel/exit.c:1775 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fbc9c67bb97 Code: 89 7c 24 10 48 89 4c 24 18 e8 45 1b 03 00 4c 8b 54 24 18 8b 54 24 14 41 89 c0 48 8b 74 24 08 8b 7c 24 10 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 89 44 24 10 e8 95 1b 03 00 8b 44 RSP: 002b:00007ffeeb8bf510 EFLAGS: 00000293 ORIG_RAX: 000000000000003d RAX: ffffffffffffffda RBX: 00000000000000ca RCX: 00007fbc9c67bb97 RDX: 0000000040000001 RSI: 00007ffeeb8bf57c RDI: 00000000ffffffff RBP: 00007ffeeb8bf57c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000001388 R13: 00000000000927c0 R14: 0000000000076da0 R15: 00007ffeeb8bf5d0 ---------------- Code disassembly (best guess): 0: df e8 fucomip %st(0),%st 2: b3 41 mov $0x41,%bl 4: 75 00 jne 0x6 6: 44 8b 03 mov (%rbx),%r8d 9: 4c 89 f7 mov %r14,%rdi c: 4c 89 fe mov %r15,%rsi f: 4c 89 e2 mov %r12,%rdx 12: 4c 89 e9 mov %r13,%rcx 15: 5b pop %rbx 16: 41 5c pop %r12 18: 41 5d pop %r13 1a: 41 5e pop %r14 1c: 41 5f pop %r15 1e: 5d pop %rbp 1f: e9 25 fc ff ff jmp 0xfffffc49 24: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 29: 55 push %rbp * 2a: 48 89 e5 mov %rsp,%rbp <-- trapping instruction 2d: 41 57 push %r15 2f: 41 56 push %r14 31: 41 55 push %r13 33: 41 54 push %r12 35: 53 push %rbx 36: 48 83 e4 e0 and $0xffffffffffffffe0,%rsp 3a: 48 rex.W 3b: 81 .byte 0x81 3c: ec in (%dx),%al 3d: e0 00 loopne 0x3f