CFI failure at __traceiter_kfree+0x34/0x50 include/trace/events/kmem.h:94 (target: tp_stub_func+0x0/0x10; expected type: 0x8682d211) invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 2415 Comm: syz.2.713 Not tainted 6.1.134-syzkaller-00039-g3c6d0251e1fb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__traceiter_kfree+0x34/0x50 include/trace/events/kmem.h:94 Code: 8b 3d 38 5c ca 05 4d 85 ff 74 2e 48 89 d3 49 89 f6 49 8b 07 49 8b 7f 08 4c 89 f6 48 89 da 41 ba ef 2d 7d 79 44 03 50 fc 74 02 <0f> 0b ff d0 49 83 7f 18 00 4d 8d 7f 18 75 d8 31 c0 5b 41 5e 41 5f RSP: 0018:ffffc900000079d8 EFLAGS: 00010213 RAX: ffffffff817104f0 RBX: ffff888135754c80 RCX: 0000000000000100 RDX: ffff888135754c80 RSI: ffffffff8289af33 RDI: ffffffff870584b0 RBP: ffffc900000079f0 R08: 0000000000000004 R09: 0000000000000003 R10: 000000001ebd94fb R11: 1ffff92000000f30 R12: dead000000000122 R13: dffffc0000000000 R14: ffffffff8289af33 R15: ffff8881099c7290 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffd88f0000 CR3: 0000000006e0f000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0xc9/0xf0 mm/slab_common.c:977 ref_tracker_free+0x4d3/0x7c0 lib/ref_tracker.c:153 netdev_tracker_free include/linux/netdevice.h:4104 [inline] netdev_put include/linux/netdevice.h:4121 [inline] fib_nh_common_release+0x4e/0x260 net/ipv4/fib_semantics.c:215 fib6_nh_release+0x208/0x220 net/ipv6/route.c:3704 fib6_info_destroy_rcu+0xc2/0x1c0 net/ipv6/ip6_fib.c:176 rcu_do_batch+0x515/0xb90 kernel/rcu/tree.c:2297 rcu_core+0x5a5/0xe70 kernel/rcu/tree.c:2557 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2574 handle_softirqs+0x1d7/0x600 kernel/softirq.c:624 __do_softirq kernel/softirq.c:662 [inline] invoke_softirq kernel/softirq.c:479 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:711 irq_exit_rcu+0x9/0x10 kernel/softirq.c:723 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:on_stack arch/x86/include/asm/stacktrace.h:55 [inline] RIP: 0010:update_stack_state+0x189/0x480 arch/x86/kernel/unwind_frame.c:228 Code: 48 8b 8d 60 ff ff ff e8 45 e0 f7 ff 85 c0 0f 85 2f 01 00 00 48 8b 85 40 ff ff ff 42 80 3c 28 00 74 08 4c 89 f7 e8 e7 39 7f 00 <4d> 8b 3e 48 8b 85 48 ff ff ff 42 80 3c 28 00 74 0c 48 8b bd 70 ff RSP: 0018:ffffc9000dc5f0f8 EFLAGS: 00000246 RAX: 1ffff92001b8be4a RBX: ffffc9000dc5f248 RCX: 1ffff92001b8be4b RDX: 1ffff92001b8be4c RSI: 1ffff92001b8be4a RDI: ffffc9000dc5f2a0 RBP: ffffc9000dc5f1b8 R08: ffffc9000dc5f310 R09: ffffc9000dc5f308 R10: 000000000000000d R11: 1ffff92001b8be49 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffc9000dc5f250 R15: ffffc9000dc5ff10 unwind_next_frame+0x3d5/0x700 arch/x86/kernel/unwind_frame.c:315 arch_stack_walk+0x124/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x98/0xe0 kernel/stacktrace.c:122 save_stack+0xf3/0x1e0 mm/page_owner.c:147 __reset_page_owner+0x54/0x190 mm/page_owner.c:168 reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1545 [inline] free_pcp_prepare mm/page_alloc.c:1619 [inline] free_unref_page_prepare+0x742/0x750 mm/page_alloc.c:3581 free_unref_page_list+0xba/0x7c0 mm/page_alloc.c:3729 release_pages+0xad1/0xb20 mm/swap.c:1043 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:315 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu+0x101/0x1e0 mm/mmu_gather.c:261 zap_pte_range mm/memory.c:1547 [inline] zap_pmd_range mm/memory.c:1596 [inline] zap_pud_range mm/memory.c:1625 [inline] zap_p4d_range mm/memory.c:1646 [inline] unmap_page_range+0x20c6/0x2310 mm/memory.c:1667 unmap_single_vma mm/memory.c:1713 [inline] unmap_vmas+0x31c/0x430 mm/memory.c:1753 exit_mmap+0x263/0xa40 mm/mmap.c:3346 __mmput+0x93/0x320 kernel/fork.c:1297 mmput+0x4b/0x150 kernel/fork.c:1320 exit_mm kernel/exit.c:568 [inline] do_exit+0x979/0x2650 kernel/exit.c:864 do_group_exit+0x210/0x2d0 kernel/exit.c:1027 __do_sys_exit_group kernel/exit.c:1038 [inline] __se_sys_exit_group kernel/exit.c:1036 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1036 x64_sys_call+0x7b4/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:232 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:0x7fe9c238e969 Code: Unable to access opcode bytes at 0x7fe9c238e93f. RSP: 002b:00007fff2c9eb3c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fe9c238e969 RDX: 0000000000000064 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fff2c9eb42c R08: 0000001d2c9eb4bf R09: 00000000000927c0 R10: 0000000000000224 R11: 0000000000000246 R12: 0000000000000085 R13: 00000000000927c0 R14: 00000000000186f7 R15: 00007fff2c9eb480 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__traceiter_kfree+0x34/0x50 include/trace/events/kmem.h:94 Code: 8b 3d 38 5c ca 05 4d 85 ff 74 2e 48 89 d3 49 89 f6 49 8b 07 49 8b 7f 08 4c 89 f6 48 89 da 41 ba ef 2d 7d 79 44 03 50 fc 74 02 <0f> 0b ff d0 49 83 7f 18 00 4d 8d 7f 18 75 d8 31 c0 5b 41 5e 41 5f RSP: 0018:ffffc900000079d8 EFLAGS: 00010213 RAX: ffffffff817104f0 RBX: ffff888135754c80 RCX: 0000000000000100 RDX: ffff888135754c80 RSI: ffffffff8289af33 RDI: ffffffff870584b0 RBP: ffffc900000079f0 R08: 0000000000000004 R09: 0000000000000003 R10: 000000001ebd94fb R11: 1ffff92000000f30 R12: dead000000000122 R13: dffffc0000000000 R14: ffffffff8289af33 R15: ffff8881099c7290 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffd88f0000 CR3: 0000000006e0f000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: 48 8b 8d 60 ff ff ff mov -0xa0(%rbp),%rcx 7: e8 45 e0 f7 ff call 0xfff7e051 c: 85 c0 test %eax,%eax e: 0f 85 2f 01 00 00 jne 0x143 14: 48 8b 85 40 ff ff ff mov -0xc0(%rbp),%rax 1b: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 20: 74 08 je 0x2a 22: 4c 89 f7 mov %r14,%rdi 25: e8 e7 39 7f 00 call 0x7f3a11 * 2a: 4d 8b 3e mov (%r14),%r15 <-- trapping instruction 2d: 48 8b 85 48 ff ff ff mov -0xb8(%rbp),%rax 34: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 39: 74 0c je 0x47 3b: 48 rex.W 3c: 8b .byte 0x8b 3d: bd .byte 0xbd 3e: 70 ff jo 0x3f