RBP: 00007f4aeb65a090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f4aea9b5fa0 R15: 00007ffc3fd4a8e8 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: 1 PID: 1480 Comm: syz.2.293 Not tainted 6.1.134-syzkaller-00012-g646380b087a5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 RIP: 0010:__traceiter_kfree+0x34/0x50 include/trace/events/kmem.h:94 Code: 8b 3d 80 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:ffffc90007957c00 EFLAGS: 00010213 RAX: ffffffff81710320 RBX: ffff88811dab0180 RCX: ffff888117e08000 RDX: ffff88811dab0180 RSI: ffffffff8180d9f5 RDI: ffffc90007e66000 RBP: ffffc90007957c18 R08: dffffc0000000000 R09: ffffed1022fc1001 R10: 000000001ebd94fb R11: 1ffff11022fc1000 R12: 1ffff11023b56033 R13: dffffc0000000000 R14: ffffffff8180d9f5 R15: ffff888132fbfd40 FS: 00007f4aeb65a6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000cef030 CR3: 00000001100a3000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0xc9/0xf0 mm/slab_common.c:977 bpf_raw_tp_link_dealloc+0x15/0x20 kernel/bpf/syscall.c:3176 bpf_link_free+0x321/0x390 kernel/bpf/syscall.c:2740 bpf_link_put kernel/bpf/syscall.c:2762 [inline] bpf_link_release+0x15f/0x170 kernel/bpf/syscall.c:2771 __fput+0x1fc/0x8f0 fs/file_table.c:320 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1db/0x240 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f4aea78e969 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4aeb65a038 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f4aea9b5fa0 RCX: 00007f4aea78e969 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000004 RBP: 00007f4aeb65a090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f4aea9b5fa0 R15: 00007ffc3fd4a8e8 Modules linked in: ---[ end trace 0000000000000000 ]---