------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 1 PID: 15357 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 1 PID: 15357 Comm: syz.7.2079 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: 0000:ffffc90000dd06a8 EFLAGS: 00010246 RAX: cf9086d83e265300 RBX: 0000000000000002 RCX: ffff88802069d940 RDX: 0000000000000100 RSI: 0000000000000101 RDI: 0000000000000000 RBP: ffffc90000dd0808 R08: dffffc0000000000 R09: fffff520001ba039 R10: fffff520001ba039 R11: 1ffff920001ba038 R12: ffff888079141a80 R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000 FS: 000055556d689500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c38e2d4 CR3: 00000000494e0000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000097 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:native_save_fl arch/x86/include/asm/irqflags.h:35 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:106 [inline] RIP: 0010:lock_is_held_type+0x64/0x190 kernel/locking/lockdep.c:5662 Code: 00 00 00 65 48 8b 1d 5b 00 61 76 83 bb ec 0a 00 00 00 0f 85 df 00 00 00 41 89 f7 49 89 fe 48 c7 04 24 00 00 00 00 9c 8f 04 24 <4c> 8b 2c 24 fa 48 c7 c7 c0 1f 0b 8a e8 4b 0e 00 00 65 ff 05 64 09 RSP: 0000:ffffc90003fffa58 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88802069d940 RCX: cf9086d83e265300 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8c11bfa0 RBP: 00000000ffffffff R08: dffffc0000000000 R09: fffff9400039b63f R10: fffff9400039b63f R11: 1ffffd400039b63e R12: ffff888074afd4a8 R13: 1ffff920007fff80 R14: ffffffff8c11bfa0 R15: 00000000ffffffff xa_entry include/linux/xarray.h:1182 [inline] xas_reload+0x19c/0x470 include/linux/xarray.h:1558 next_uptodate_page+0x2a5/0x8b0 mm/filemap.c:3259 next_map_page mm/filemap.c:3296 [inline] filemap_map_pages+0xebd/0x1390 mm/filemap.c:3352 do_fault_around mm/memory.c:4243 [inline] do_read_fault mm/memory.c:4258 [inline] do_fault mm/memory.c:4392 [inline] handle_pte_fault mm/memory.c:4650 [inline] __handle_mm_fault mm/memory.c:4785 [inline] handle_mm_fault+0x2580/0x43c0 mm/memory.c:4883 do_user_addr_fault+0x489/0xc80 arch/x86/mm/fault.c:1357 handle_page_fault arch/x86/mm/fault.c:1445 [inline] exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1501 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606 RIP: 0033:0x7f0459f6bc8d Code: ff 48 83 e8 01 48 89 ee bf 01 00 00 00 48 c1 e0 0e 48 c1 ee 06 48 01 c8 48 89 e9 81 e6 ff 3f 00 00 48 c1 e9 03 83 e1 07 d3 e7 <40> 84 bc 06 20 20 00 00 0f 85 11 fd ff ff e9 c0 fd ff ff e8 7b 2b RSP: 002b:00007ffffaf5b510 EFLAGS: 00010202 RAX: 000000110c38c000 RBX: 00007f045ade2720 RCX: 0000000000000006 RDX: 0000000000000d30 RSI: 00000000000002b4 RDI: 0000000000000040 RBP: ffffffff8400ad30 R08: 00007f045a2b3038 R09: 00007f045a29f000 R10: 00007f04596fc008 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff8400a169 R15: 000000000000116e ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 65 48 add %ah,0x48(%rbp) 5: 8b 1d 5b 00 61 76 mov 0x7661005b(%rip),%ebx # 0x76610066 b: 83 bb ec 0a 00 00 00 cmpl $0x0,0xaec(%rbx) 12: 0f 85 df 00 00 00 jne 0xf7 18: 41 89 f7 mov %esi,%r15d 1b: 49 89 fe mov %rdi,%r14 1e: 48 c7 04 24 00 00 00 movq $0x0,(%rsp) 25: 00 26: 9c pushf 27: 8f 04 24 pop (%rsp) * 2a: 4c 8b 2c 24 mov (%rsp),%r13 <-- trapping instruction 2e: fa cli 2f: 48 c7 c7 c0 1f 0b 8a mov $0xffffffff8a0b1fc0,%rdi 36: e8 4b 0e 00 00 call 0xe86 3b: 65 gs 3c: ff .byte 0xff 3d: 05 .byte 0x5 3e: 64 fs 3f: 09 .byte 0x9