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: 1 PID: 27597 Comm: syz.8.7185 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:__traceiter_sched_switch+0x9b/0xd0 include/trace/events/sched.h:222 Code: 80 3c 30 00 74 05 e8 b4 7e 69 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:ffffc90000e9f2b0 EFLAGS: 00010096 RAX: 1ffff11021137109 RBX: ffff8881089b8840 RCX: ffff888112919440 RDX: ffff888127d45100 RSI: 0000000000000001 RDI: ffffc90000d99000 RBP: ffffc90000e9f2f0 R08: 0000000000000000 R09: ffffed1024fa8a21 R10: 00000000b720eca3 R11: 1ffff11024fa8a20 R12: 0000000000000001 R13: ffff8881089b8840 R14: dffffc0000000000 R15: ffffffff81713fc0 FS: 00007f33b74846c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f33b7483f98 CR3: 00000001675ff000 CR4: 00000000003506a0 Call Trace: trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x1263/0x14e0 kernel/sched/core.c:6747 preempt_schedule_irq+0x9b/0x110 kernel/sched/core.c:7062 raw_irqentry_exit_cond_resched+0x29/0x30 kernel/entry/common.c:396 irqentry_exit+0x37/0x40 kernel/entry/common.c:439 sysvec_call_function_single+0x61/0xc0 arch/x86/kernel/smp.c:262 asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:699 RIP: 0010:should_resched arch/x86/include/asm/preempt.h:103 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x61/0x80 kernel/locking/spinlock.c:194 Code: 48 83 3d 31 85 f9 01 00 74 30 e8 1e 0d 00 00 90 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 e8 d6 67 57 fc 65 8b 05 d7 1f 0e 7b <85> c0 74 05 5b 41 5e 5d c3 e8 95 2c 0c fc eb f4 0f 0b 66 2e 0f 1f RSP: 0018:ffffc90000e9f5a0 EFLAGS: 00000257 RAX: 0000000000000000 RBX: 0000000000000a06 RCX: 0000000000000000 RDX: ffffc900011c7698 RSI: 0000000000000a06 RDI: 00000000ffffffff RBP: ffffc90000e9f5b0 R08: dffffc0000000000 R09: ffffed1024fa8a21 R10: ffffed1024fa8a21 R11: 1ffff11024fa8a20 R12: ffff888129d8b600 R13: 0000000000000010 R14: 0000000000000001 R15: 0000000000000000 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] __wake_up_common_lock kernel/sched/wait.c:141 [inline] __wake_up_sync_key+0x166/0x280 kernel/sched/wait.c:212 __unix_dgram_recvmsg+0x496/0xd70 net/unix/af_unix.c:2480 unix_dgram_recvmsg+0xc7/0xe0 net/unix/af_unix.c:2550 ____sys_recvmsg+0x2a0/0x590 net/socket.c:-1 ___sys_recvmsg+0x1b2/0x510 net/socket.c:2770 do_recvmmsg+0x359/0x7a0 net/socket.c:2864 __sys_recvmmsg net/socket.c:2943 [inline] __do_sys_recvmmsg net/socket.c:2966 [inline] __se_sys_recvmmsg net/socket.c:2959 [inline] __x64_sys_recvmmsg+0x18d/0x240 net/socket.c:2959 x64_sys_call+0x3e7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300 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:0x7f33b658f749 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:00007f33b7484038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f33b67e6090 RCX: 00007f33b658f749 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000004 RBP: 00007f33b6613f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f33b67e6128 R14: 00007f33b67e6090 R15: 00007ffe300166b8 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 b4 7e 69 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:ffffc90000e9f2b0 EFLAGS: 00010096 RAX: 1ffff11021137109 RBX: ffff8881089b8840 RCX: ffff888112919440 RDX: ffff888127d45100 RSI: 0000000000000001 RDI: ffffc90000d99000 RBP: ffffc90000e9f2f0 R08: 0000000000000000 R09: ffffed1024fa8a21 R10: 00000000b720eca3 R11: 1ffff11024fa8a20 R12: 0000000000000001 R13: ffff8881089b8840 R14: dffffc0000000000 R15: ffffffff81713fc0 FS: 00007f33b74846c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f33b7483f98 CR3: 00000001675ff000 CR4: 00000000003506a0 ---------------- Code disassembly (best guess): 0: 48 83 3d 31 85 f9 01 cmpq $0x0,0x1f98531(%rip) # 0x1f98539 7: 00 8: 74 30 je 0x3a a: e8 1e 0d 00 00 call 0xd2d f: 90 nop 10: f7 c3 00 02 00 00 test $0x200,%ebx 16: 74 01 je 0x19 18: fb sti 19: bf 01 00 00 00 mov $0x1,%edi 1e: e8 d6 67 57 fc call 0xfc5767f9 23: 65 8b 05 d7 1f 0e 7b mov %gs:0x7b0e1fd7(%rip),%eax # 0x7b0e2001 * 2a: 85 c0 test %eax,%eax <-- trapping instruction 2c: 74 05 je 0x33 2e: 5b pop %rbx 2f: 41 5e pop %r14 31: 5d pop %rbp 32: c3 ret 33: e8 95 2c 0c fc call 0xfc0c2ccd 38: eb f4 jmp 0x2e 3a: 0f 0b ud2 3c: 66 data16 3d: 2e cs 3e: 0f .byte 0xf 3f: 1f (bad)