invalid opcode in __traceiter_sched_switch

Status: upstream: reported C repro on 2025/04/26 06:10
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+9586fa657641e1a1be2f@syzkaller.appspotmail.com
First crash: 461d, last: 6d11h
Fix bisection: the issue occurs on the latest tested release (bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2025/04/27 lts (merge base) 420102835862 C [report] invalid opcode in __traceiter_sched_switch
2025/04/27 upstream (ToT) 5bc1018675ec C Didn't crash
Last patch testing requests (7)
Created Duration User Patch Repo Result
2026/06/06 19:07 13m retest repro android14-6.1 log
2026/06/06 19:07 13m retest repro android14-6.1 log
2026/06/06 19:07 17m retest repro android14-6.1 log
2026/06/06 19:07 14m retest repro android14-6.1 log
2026/03/16 14:01 6m retest repro android14-6.1 error
2026/03/16 14:01 6m retest repro android14-6.1 error
2026/03/16 14:01 6m retest repro android14-6.1 error

Sample crash report:
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fbe73625fac R14: 00007fbe73625fa0 R15: 00007fbe73625fa0
 </TASK>
CFI failure at __traceiter_sched_switch+0x9b/0xd0 include/trace/events/sched.h:222 (target: tp_stub_func+0x0/0x10; expected type: 0xee1f7a69)
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 373 Comm: syz.2.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
RIP: 0010:__traceiter_sched_switch+0x9b/0xd0 include/trace/events/sched.h:222
Code: 80 3c 30 00 74 05 e8 a4 f8 6a 00 49 8b 7d 08 44 89 e6 48 8b 55 c8 48 8b 4d c0 44 8b 45 d4 41 ba 97 85 e0 11 45 03 57 fc 74 02 <0f> 0b 41 ff d7 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74
RSP: 0018:ffffc90000797670 EFLAGS: 00010096
RAX: 1ffff110225272b6 RBX: ffff8881129395a8 RCX: ffff88810e499440
RDX: ffff8881149b2880 RSI: 0000000000000000 RDI: ffffffff87104c40
RBP: ffffc900007976b0 R08: 0000000000000002 R09: 1ffffffff0f25bcd
R10: 00000000b720eca3 R11: fffffbfff0f25bce R12: 0000000000000000
R13: ffff8881129395a8 R14: dffffc0000000000 R15: ffffffff817284a0
FS:  00005555837a3500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbe73273780 CR3: 000000012efe3000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 trace_sched_switch include/trace/events/sched.h:222 [inline]
 __schedule+0x1224/0x14b0 kernel/sched/core.c:6752
 schedule+0xbd/0x170 kernel/sched/core.c:6831
 schedule_timeout+0xba/0x340 kernel/time/timer.c:1996
 do_wait_for_common kernel/sched/completion.c:85 [inline]
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common+0x364/0x640 kernel/sched/completion.c:117
 wait_for_completion+0x18/0x20 kernel/sched/completion.c:138
 __synchronize_srcu+0x173/0x200 kernel/rcu/srcutree.c:1243
 synchronize_srcu+0x1c5/0x1d0 kernel/rcu/srcutree.c:-1
 tracepoint_synchronize_unregister include/linux/tracepoint.h:93 [inline]
 perf_trace_event_unreg+0xd8/0x1c0 kernel/trace/trace_event_perf.c:168
 perf_trace_destroy+0xbe/0x180 kernel/trace/trace_event_perf.c:241
 tp_perf_event_destroy+0x15/0x20 kernel/events/core.c:10055
 _free_event+0x9b7/0xcd0 kernel/events/core.c:5045
 put_event kernel/events/core.c:5139 [inline]
 perf_event_release_kernel+0x7ab/0x830 kernel/events/core.c:5264
 perf_release+0x3b/0x40 kernel/events/core.c:5274
 __fput+0x1fd/0x8f0 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x1e1/0x250 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+0x87/0xd0 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:82
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fbe7339de59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcc4a8cc38 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00007fbe73625fa0 RCX: 00007fbe7339de59
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007ffcc4a8cca0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fbe73625fac R14: 00007fbe73625fa0 R15: 00007fbe73625fa0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__traceiter_sched_switch+0x9b/0xd0 include/trace/events/sched.h:222
Code: 80 3c 30 00 74 05 e8 a4 f8 6a 00 49 8b 7d 08 44 89 e6 48 8b 55 c8 48 8b 4d c0 44 8b 45 d4 41 ba 97 85 e0 11 45 03 57 fc 74 02 <0f> 0b 41 ff d7 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74
RSP: 0018:ffffc90000797670 EFLAGS: 00010096
RAX: 1ffff110225272b6 RBX: ffff8881129395a8 RCX: ffff88810e499440
RDX: ffff8881149b2880 RSI: 0000000000000000 RDI: ffffffff87104c40
RBP: ffffc900007976b0 R08: 0000000000000002 R09: 1ffffffff0f25bcd
R10: 00000000b720eca3 R11: fffffbfff0f25bce R12: 0000000000000000
R13: ffff8881129395a8 R14: dffffc0000000000 R15: ffffffff817284a0
FS:  00005555837a3500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbe73273780 CR3: 000000012efe3000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (517):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/02 02:14 android14-6.1 0e7d68a6004f 27192279 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2025/11/13 09:01 android14-6.1 c638897860ca 07e030de .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2025/08/05 05:33 android14-6.1 3b4ff5af8d36 f5bcc8dc .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2025/04/26 06:29 android14-6.1 70d648657b1e c6b4fb39 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2025/04/26 06:02 android14-6.1 70d648657b1e c6b4fb39 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/07/25 04:17 android14-6.1 92668decd5e0 492bab15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/07/06 14:19 android14-6.1 2c70030ce6de 88b240e4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/07/02 19:29 android14-6.1 cf4093a4ac64 2b70b115 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/07/02 18:28 android14-6.1 cf4093a4ac64 2b70b115 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/07/01 22:37 android14-6.1 0e7d68a6004f 27192279 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/05/21 00:32 android14-6.1 f0cde4aa89eb 41b8c833 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/05/19 13:16 android14-6.1 047b9b395380 223544dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/05/19 01:50 android14-6.1 6b66c1fa1434 9f74d399 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/05/07 01:26 android14-6.1 2f67b6088692 f250db59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/05/06 05:23 android14-6.1 bc1567eb8cde 26da2c66 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/05/05 12:47 android14-6.1 1e4e23ff0f90 06e69a27 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/04/30 13:22 android14-6.1 50f84c5884c7 a7464baf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/04/25 04:59 android14-6.1 7250043ddd18 9c2d0995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/04/10 03:09 android14-6.1 b1e92db6a41f 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/04/08 01:13 android14-6.1 0a2e62b2578f 2c961e87 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/03/31 14:08 android14-6.1 f5931d57f029 aeea1c72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/03/27 22:00 android14-6.1 340d91616269 74a13a23 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/03/17 09:49 android14-6.1 299d5eca2e4a c01bca74 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/03/02 13:53 android14-6.1 6bfa51973214 b9dd6534 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/02/27 03:38 android14-6.1 6bfa51973214 a2f13f71 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/02/20 07:10 android14-6.1 edbe3e111301 17d780d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/02/09 11:58 android14-6.1 c9e2710a7bd0 df949cd9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/02/07 19:24 android14-6.1 c9e2710a7bd0 4c131dc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/02/01 02:38 android14-6.1 defbecba6f63 6b8752f2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/01/25 22:15 android14-6.1 5b3c238664a9 55756628 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/01/19 07:43 android14-6.1 37a76cbe8f87 20d37d28 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/01/16 12:58 android14-6.1 bf8e7530ab29 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/16 11:58 android14-6.1 bf8e7530ab29 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/16 10:12 android14-6.1 bf8e7530ab29 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/15 19:20 android14-6.1 2683d39c884b d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/15 11:19 android14-6.1 2683d39c884b d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/14 12:35 android14-6.1 2683d39c884b d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/01/13 03:02 android14-6.1 4472ce9a8930 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/12 13:07 android14-6.1 4472ce9a8930 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/11 21:25 android14-6.1 4472ce9a8930 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/11 09:49 android14-6.1 4472ce9a8930 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/10 19:49 android14-6.1 68876f5c7044 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/09 06:05 android14-6.1 c663e91b6cbf d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/01/09 04:09 android14-6.1 c663e91b6cbf d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in __traceiter_sched_switch
2026/01/08 08:05 android14-6.1 f912635e6d91 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/02 14:44 android14-6.1 5e6db7045704 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2026/01/01 01:20 android14-6.1 5e6db7045704 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2025/12/28 19:02 android14-6.1 5e6db7045704 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2025/12/28 04:48 android14-6.1 5e6db7045704 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2025/12/28 02:21 android14-6.1 5e6db7045704 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2025/12/27 16:19 android14-6.1 5e6db7045704 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2025/12/27 09:47 android14-6.1 5e6db7045704 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
2025/12/27 09:42 android14-6.1 5e6db7045704 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in __traceiter_sched_switch
* Struck through repros no longer work on HEAD.