------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 1 PID: 14102 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 1 PID: 14102 Comm: syz.2.2811 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: 7099c2e234b6a900 RBX: 0000000000000002 RCX: ffff88802c961dc0 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc900001e0990 R08: dffffc0000000000 R09: fffff5200003c095 R10: fffff5200003c095 R11: 1ffff9200003c094 R12: ffff888073259c40 R13: dffffc0000000000 R14: 0000000000000002 R15: ffff888057437448 FS: 00007fbecfdcf6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2da16ff8 CR3: 000000005d02c000 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: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:check_region_inline mm/kasan/generic.c:169 [inline] RIP: 0010:kasan_check_range+0xd/0x290 mm/kasan/generic.c:189 Code: c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 00 00 cc cc 00 00 cc cc 00 00 cc cc b0 01 48 85 f6 0f 84 a4 01 00 00 41 57 <41> 56 53 49 89 f8 49 01 f0 0f 82 57 02 00 00 49 89 f8 49 c1 e8 2f RSP: 0018:ffffc90003227a50 EFLAGS: 00000202 RAX: ffffffff88123201 RBX: 0000000000000010 RCX: ffffffff88123231 RDX: 0000000000000001 RSI: 0000000000000010 RDI: ffffc90003227d70 RBP: 0000000000000000 R08: 0000000000000000 R09: fffff52000644f63 R10: fffff52000644f63 R11: 1ffff92000644f5c R12: ffffc90003227d20 R13: dffffc0000000000 R14: ffffc90003227d70 R15: 1ffff92000644f58 memset+0x1e/0x40 mm/kasan/shadow.c:44 __copy_msghdr net/socket.c:2437 [inline] copy_msghdr_from_user net/socket.c:2452 [inline] recvmsg_copy_msghdr net/socket.c:2704 [inline] ___sys_recvmsg+0x411/0x510 net/socket.c:2776 do_recvmmsg+0x359/0x7d0 net/socket.c:2874 __sys_recvmmsg net/socket.c:2953 [inline] __do_sys_recvmmsg net/socket.c:2976 [inline] __se_sys_recvmmsg net/socket.c:2969 [inline] __x64_sys_recvmmsg+0x18d/0x240 net/socket.c:2969 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:0x7fbecef8e929 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbecfdcf038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007fbecf1b6080 RCX: 00007fbecef8e929 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000006 RBP: 00007fbecf010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fbecf1b6080 R15: 00007ffc58aa7c48 ---------------- Code disassembly (best guess): 0: c3 ret 1: 0f 0b ud2 3: b8 ea ff ff ff mov $0xffffffea,%eax 8: c3 ret 9: 0f 0b ud2 b: b8 ea ff ff ff mov $0xffffffea,%eax 10: c3 ret 11: 00 00 add %al,(%rax) 13: cc int3 14: cc int3 15: 00 00 add %al,(%rax) 17: cc int3 18: cc int3 19: 00 00 add %al,(%rax) 1b: cc int3 1c: cc int3 1d: b0 01 mov $0x1,%al 1f: 48 85 f6 test %rsi,%rsi 22: 0f 84 a4 01 00 00 je 0x1cc 28: 41 57 push %r15 * 2a: 41 56 push %r14 <-- trapping instruction 2c: 53 push %rbx 2d: 49 89 f8 mov %rdi,%r8 30: 49 01 f0 add %rsi,%r8 33: 0f 82 57 02 00 00 jb 0x290 39: 49 89 f8 mov %rdi,%r8 3c: 49 c1 e8 2f shr $0x2f,%r8