------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 0 PID: 11367 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25
Modules linked in:
CPU: 0 PID: 11367 Comm: syz.3.1758 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:ffffc90000007688 EFLAGS: 00010246
RAX: 9068da7dedc64000 RBX: 0000000000000002 RCX: ffff88802f36d940
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900000077e8 R08: dffffc0000000000 R09: fffff52000000e61
R10: fffff52000000e61 R11: 1ffff92000000e60 R12: ffff888059a7d4c0
R13: dffffc0000000000 R14: 0000000000000002 R15: ffff88802fdfe048
FS: 00007f0abab8d6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc788e334e8 CR3: 0000000072866000 CR4: 00000000003506f0
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_crypto_clone_msg+0x91/0x160 net/tipc/crypto.c:1656
tipc_crypto_xmit+0x1928/0x2300 net/tipc/crypto.c:1717
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:memset+0x3/0x40 mm/kasan/shadow.c:43
Code: ed eb d7 00 00 cc cc 89 f6 48 8b 0c 24 31 d2 e9 a3 ec ff ff 0f 1f 00 89 f6 48 8b 0c 24 ba 01 00 00 00 e9 90 ec ff ff 55 41 56 <53> 48 89 d3 89 f5 49 89 fe 48 8b 4c 24 18 48 89 d6 ba 01 00 00 00
RSP: 0018:ffffc90004e37728 EFLAGS: 00000246
RAX: 1ffff1100f01238a RBX: ffffc90004e37870 RCX: 0000000000080000
RDX: 0000000000000020 RSI: 0000000000000000 RDI: ffffc90004e377e0
RBP: ffffc90004e378d0 R08: dffffc0000000000 R09: ffffc90004e37980
R10: fffff520009c6f40 R11: 1ffff920009c6f30 R12: ffffc90004e37860
R13: 1ffff920009c6ef8 R14: ffffc90004e37820 R15: 7fffffffffffffff
__unix_dgram_recvmsg+0x175/0xd70 net/unix/af_unix.c:2429
____sys_recvmsg+0x292/0x580 net/socket.c:-1
___sys_recvmsg+0x1b2/0x510 net/socket.c:2780
do_recvmmsg+0x359/0x7d0 net/socket.c:2874
----------------
Code disassembly (best guess):
0: ed in (%dx),%eax
1: eb d7 jmp 0xffffffda
3: 00 00 add %al,(%rax)
5: cc int3
6: cc int3
7: 89 f6 mov %esi,%esi
9: 48 8b 0c 24 mov (%rsp),%rcx
d: 31 d2 xor %edx,%edx
f: e9 a3 ec ff ff jmp 0xffffecb7
14: 0f 1f 00 nopl (%rax)
17: 89 f6 mov %esi,%esi
19: 48 8b 0c 24 mov (%rsp),%rcx
1d: ba 01 00 00 00 mov $0x1,%edx
22: e9 90 ec ff ff jmp 0xffffecb7
27: 55 push %rbp
28: 41 56 push %r14
* 2a: 53 push %rbx <-- trapping instruction
2b: 48 89 d3 mov %rdx,%rbx
2e: 89 f5 mov %esi,%ebp
30: 49 89 fe mov %rdi,%r14
33: 48 8b 4c 24 18 mov 0x18(%rsp),%rcx
38: 48 89 d6 mov %rdx,%rsi
3b: ba 01 00 00 00 mov $0x1,%edx