syzbot


invalid opcode in __traceiter_kfree

Status: upstream: reported C repro on 2025/05/10 02:48
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+54a46cf75290474f3686@syzkaller.appspotmail.com
First crash: 134d, last: 7d20h
Bug presence (2)
Date Name Commit Repro Result
2025/05/19 lts (merge base) 420102835862 C [report] invalid opcode in __traceiter_kfree
2025/05/19 upstream (ToT) a5806cd506af C Didn't crash
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/06/07 08:11 6m retest repro android14-6.1 report log

Sample crash report:
RBP: 00007ffceb5082b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f9c6cdb5fa0 R14: 00007f9c6cdb5fa0 R15: 0000000000000003
 </TASK>
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: 435 Comm: syz.6.19 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__traceiter_kfree+0x34/0x50 include/trace/events/kmem.h:94
Code: 8b 3d 60 5b 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:ffffc90000e87c00 EFLAGS: 00010213
RAX: ffffffff817123b0 RBX: ffff888116940480 RCX: ffff888119641440
RDX: ffff888116940480 RSI: ffffffff8180fd15 RDI: ffffc90000a6b000
RBP: ffffc90000e87c18 R08: dffffc0000000000 R09: ffffed10233e1a01
R10: 000000001ebd94fb R11: ffffffff8180fd00 R12: 1ffff11022d28093
R13: dffffc0000000000 R14: ffffffff8180fd15 R15: ffff888116aa3310
FS:  0000555592788500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b34063fff CR3: 00000001185e3000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 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:3179
 bpf_link_free+0x321/0x390 kernel/bpf/syscall.c:2743
 bpf_link_put kernel/bpf/syscall.c:2765 [inline]
 bpf_link_release+0x15f/0x170 kernel/bpf/syscall.c:2774
 __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:0x7f9c6cb8ebe9
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:00007ffceb508258 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f9c6cdb5fa0 RCX: 00007f9c6cb8ebe9
RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000000
RBP: 00007ffceb5082b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f9c6cdb5fa0 R14: 00007f9c6cdb5fa0 R15: 0000000000000003
 </TASK>
Modules linked in:

Crashes (34):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/23 17:07 android14-6.1 397bc5b3eca0 bf27483f .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/05/10 02:39 android14-6.1 646380b087a5 77908e5f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/09/07 12:32 android14-6.1 499d2a0ffd4f d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/09/01 21:24 android14-6.1 684ae9bac393 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/08/31 10:31 android14-6.1 02ca81000485 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/08/27 21:44 android14-6.1 47b374a18638 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/08/27 12:50 android14-6.1 47b374a18638 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/08/23 16:36 android14-6.1 397bc5b3eca0 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/08/17 16:25 android14-6.1 87b9d836c3d8 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/08/13 06:30 android14-6.1 c750dc582629 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/08/09 11:16 android14-6.1 c750dc582629 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/08/06 08:07 android14-6.1 39e817cf9025 ffe1dd46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_kfree
2025/08/05 01:01 android14-6.1 3b4ff5af8d36 f5bcc8dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_kfree
2025/08/05 00:38 android14-6.1 3b4ff5af8d36 f5bcc8dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_kfree
2025/08/03 15:01 android14-6.1 3b4ff5af8d36 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/08/01 05:20 android14-6.1 42472e1a4913 0c075d67 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/07/20 22:35 android14-6.1 145c7fad733f 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/07/19 14:19 android14-6.1 145c7fad733f 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/07/12 04:21 android14-6.1 e2deb0b42a3a 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/07/08 22:11 android14-6.1 fa7e0538663e 4d9fdfa4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/07/06 17:15 android14-6.1 7011769d221c 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/07/05 05:26 android14-6.1 7011769d221c d869b261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/06/15 05:01 android14-6.1 6246d345f550 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/06/14 23:09 android14-6.1 6246d345f550 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_kfree
2025/06/14 21:07 android14-6.1 6246d345f550 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_kfree
2025/05/24 01:57 android14-6.1 3c6d0251e1fb f8cc0c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_kfree
2025/05/24 01:56 android14-6.1 3c6d0251e1fb f8cc0c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_kfree
2025/05/24 01:54 android14-6.1 3c6d0251e1fb f8cc0c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_kfree
2025/05/22 08:07 android14-6.1 3c6d0251e1fb 0919b50b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_kfree
2025/05/18 21:04 android14-6.1 a0fa2316cce1 f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/05/18 17:47 android14-6.1 a0fa2316cce1 f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/05/18 10:06 android14-6.1 a0fa2316cce1 f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/05/10 02:15 android14-6.1 646380b087a5 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
2025/05/04 02:41 android14-6.1 0c1a07d9c284 b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_kfree
* Struck through repros no longer work on HEAD.