------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 1 PID: 4168 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 1 PID: 4168 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: 7a27924456b1ee00 RBX: 0000000000000002 RCX: ffff888074170000 RDX: 0000000000000100 RSI: 0000000000000102 RDI: 0000000000000000 RBP: ffffc90000dd0808 R08: dffffc0000000000 R09: fffff520001ba039 R10: fffff520001ba039 R11: 1ffff920001ba038 R12: ffff888079ba8000 R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000 FS: 00005555621fa500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff02459e6c0 CR3: 0000000065e54000 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:copy_present_pte mm/memory.c:-1 [inline] RIP: 0010:copy_pte_range mm/memory.c:1081 [inline] RIP: 0010:copy_pmd_range mm/memory.c:1167 [inline] RIP: 0010:copy_pud_range mm/memory.c:1204 [inline] RIP: 0010:copy_p4d_range mm/memory.c:1228 [inline] RIP: 0010:copy_page_range+0x17d3/0x3220 mm/memory.c:1301 Code: e6 00 00 08 00 31 ff e8 8b 33 cb ff 83 e3 03 eb 12 e8 a1 2f cb ff bb 01 00 00 00 4c 8b ac 24 b8 00 00 00 ff 84 9c 50 02 00 00 <4c> 8b 74 24 68 41 83 e6 28 bf 20 00 00 00 4c 89 f6 e8 57 33 cb ff RSP: 0018:ffffc90002ebf6a0 EFLAGS: 00000206 RAX: ffffffff81ac9275 RBX: 0000000000000000 RCX: ffff888074170000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90002ebf950 R08: dffffc0000000000 R09: fffff9400039ee31 R10: fffff9400039ee31 R11: 1ffffd400039ee30 R12: 00007ff0230f4000 R13: 8000000073dc6007 R14: 00fff00000000008 R15: dffffc0000000000 dup_mmap kernel/fork.c:615 [inline] dup_mm kernel/fork.c:1466 [inline] copy_mm+0xc5e/0x1370 kernel/fork.c:1518 copy_process+0x17c6/0x3e00 kernel/fork.c:2290 kernel_clone+0x219/0x930 kernel/fork.c:2679 __do_sys_clone kernel/fork.c:2796 [inline] __se_sys_clone kernel/fork.c:2780 [inline] __x64_sys_clone+0x170/0x1c0 kernel/fork.c:2780 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:0x7ff02383e193 Code: 1f 84 00 00 00 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 89 c2 85 c0 75 2c 64 48 8b 04 25 10 00 00 RSP: 002b:00007fff04eecbb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff02383e193 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001 R10: 00005555621fa7d0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 000000000002db7a R15: 00007fff04eecd50 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 00 00 add %al,(%rax) 2: 08 00 or %al,(%rax) 4: 31 ff xor %edi,%edi 6: e8 8b 33 cb ff call 0xffcb3396 b: 83 e3 03 and $0x3,%ebx e: eb 12 jmp 0x22 10: e8 a1 2f cb ff call 0xffcb2fb6 15: bb 01 00 00 00 mov $0x1,%ebx 1a: 4c 8b ac 24 b8 00 00 mov 0xb8(%rsp),%r13 21: 00 22: ff 84 9c 50 02 00 00 incl 0x250(%rsp,%rbx,4) * 29: 4c 8b 74 24 68 mov 0x68(%rsp),%r14 <-- trapping instruction 2e: 41 83 e6 28 and $0x28,%r14d 32: bf 20 00 00 00 mov $0x20,%edi 37: 4c 89 f6 mov %r14,%rsi 3a: e8 57 33 cb ff call 0xffcb3396