------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 31880 at lib/refcount.c:25 refcount_warn_saturate+0xf3/0x1b0 lib/refcount.c:25 Modules linked in: CPU: 0 PID: 31880 Comm: syz-executor Not tainted 6.6.93-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:refcount_warn_saturate+0xf3/0x1b0 lib/refcount.c:25 Code: 15 0a 01 0f 85 98 00 00 00 e8 39 41 66 fd 5b 41 5e c3 e8 30 41 66 fd c6 05 e1 00 15 0a 01 48 c7 c7 40 0f fc 8a e8 0d a5 30 fd <0f> 0b eb e0 e8 14 41 66 fd c6 05 c6 00 15 0a 01 48 c7 c7 a0 0f fc RSP: 0018:ffffc90000007848 EFLAGS: 00010246 RAX: 35e14018e65a4700 RBX: 0000000000000002 RCX: ffff88805fc38000 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc900000079d0 R08: ffff8880b8e28c13 R09: 1ffff110171c5182 R10: dffffc0000000000 R11: ffffed10171c5183 R12: ffff888067801d40 R13: dffffc0000000000 R14: ffff888067801e94 R15: ffff88806d03c000 FS: 00005555814e8500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f33e9bb6038 CR3: 0000000021c43000 CR4: 00000000003506f0 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:261 [inline] tipc_aead_encrypt net/tipc/crypto.c:821 [inline] tipc_crypto_xmit+0x17cf/0x2250 net/tipc/crypto.c:1761 tipc_bearer_xmit_skb+0x246/0x3f0 net/tipc/bearer.c:572 tipc_disc_timeout+0x581/0x6d0 net/tipc/discover.c:338 call_timer_fn+0x16e/0x530 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x52d/0x7d0 kernel/time/timer.c:2022 run_timer_softirq+0x67/0xf0 kernel/time/timer.c:2035 handle_softirqs+0x280/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xc7/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:unwind_next_frame+0x5/0x2970 arch/x86/kernel/unwind_orc.c:469 Code: b5 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 64 ff ff ff 48 89 df e8 fc a8 a3 00 e9 57 ff ff ff 0f 1f 80 00 00 00 00 f3 0f 1e fa 55 <41> 57 41 56 41 55 41 54 53 48 81 ec 98 00 00 00 49 89 fc 49 bd 00 RSP: 0018:ffffc90003c87398 EFLAGS: 00000202 RAX: 0000000000000001 RBX: ffffc90003c87460 RCX: ffff88805fc38000 RDX: dffffc0000000000 RSI: ffffffff81f21a6d RDI: ffffc90003c873a8 RBP: ffffc90003c87430 R08: ffffc90003c87470 R09: 000000000000000b R10: 0000000000000004 R11: 0000000000000000 R12: ffffffff81f21a6d R13: 1ffff92000790ea0 R14: ffffffff817462e0 R15: ffffc90003c873a8 arch_stack_walk+0x144/0x190 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122 save_stack+0xf7/0x1f0 mm/page_owner.c:128 __set_page_owner+0x1d/0x60 mm/page_owner.c:192 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 __get_free_pages+0xc/0x30 mm/page_alloc.c:4504 kasan_populate_vmalloc_pte+0x35/0x100 mm/kasan/shadow.c:323 apply_to_pte_range mm/memory.c:2603 [inline] apply_to_pmd_range mm/memory.c:2647 [inline] apply_to_pud_range mm/memory.c:2683 [inline] apply_to_p4d_range mm/memory.c:2719 [inline] __apply_to_page_range+0x84c/0xd50 mm/memory.c:2755 alloc_vmap_area+0x1b4a/0x1c70 mm/vmalloc.c:1641 __get_vm_area_node+0x162/0x370 mm/vmalloc.c:2612 __vmalloc_node_range+0x36e/0x1320 mm/vmalloc.c:3291 vmalloc_user+0x74/0x80 mm/vmalloc.c:3485 kcov_ioctl+0x58/0x630 kernel/kcov.c:714 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f33e998e52b Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007ffe20dc0900 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000080000 RCX: 00007f33e998e52b RDX: 0000000000080000 RSI: ffffffff80086301 RDI: 00000000000000da RBP: 00007f33e9bb61f8 R08: 00000000000000d9 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000003 R14: 0000000000000009 R15: 0000000000000000 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 89 d9 mov %ebx,%ecx 2: 80 e1 07 and $0x7,%cl 5: 80 c1 03 add $0x3,%cl 8: 38 c1 cmp %al,%cl a: 0f 8c 64 ff ff ff jl 0xffffff74 10: 48 89 df mov %rbx,%rdi 13: e8 fc a8 a3 00 call 0xa3a914 18: e9 57 ff ff ff jmp 0xffffff74 1d: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 24: f3 0f 1e fa endbr64 28: 55 push %rbp * 29: 41 57 push %r15 <-- trapping instruction 2b: 41 56 push %r14 2d: 41 55 push %r13 2f: 41 54 push %r12 31: 53 push %rbx 32: 48 81 ec 98 00 00 00 sub $0x98,%rsp 39: 49 89 fc mov %rdi,%r12 3c: 49 rex.WB 3d: bd .byte 0xbd