syzbot


general protection fault in check_preempt_wakeup

Status: upstream: reported syz repro on 2025/09/08 01:28
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+45bac349b462937a3203@syzkaller.appspotmail.com
First crash: 6d06h, last: 3d17h
Bug presence (2)
Date Name Commit Repro Result
2025/09/10 linux-5.15.y (ToT) de9476bb4f1b syz [report] general protection fault in check_preempt_wakeup
2025/09/10 upstream (ToT) 9dd1835ecda5 syz Didn't crash
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in check_preempt_wakeup mm 2 4 2159d 2276d 0/29 auto-closed as invalid on 2020/01/14 14:47

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000000f: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000078-0x000000000000007f]
CPU: 0 PID: 5084 Comm: syz.2.237 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:is_same_group kernel/sched/fair.c:391 [inline]
RIP: 0010:find_matching_se kernel/sched/fair.c:428 [inline]
RIP: 0010:check_preempt_wakeup+0x3ab/0xb20 kernel/sched/fair.c:7418
Code: 8b 3f 49 83 c4 70 4c 89 e0 48 c1 e8 03 80 3c 28 00 74 08 4c 89 e7 e8 b4 91 66 00 4d 8b 24 24 4d 8d 6f 78 4c 89 e8 48 c1 e8 03 <80> 3c 28 00 74 08 4c 89 ef e8 97 91 66 00 49 8b 5d 00 4d 8d 6c 24
RSP: 0018:ffffc90000007ba0 EFLAGS: 00010006
RAX: 000000000000000f RBX: ffff8880b913a3c0 RCX: ffffffff81559c47
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888029ea9dc0
RBP: dffffc0000000000 R08: dffffc0000000000 R09: ffffed10053d53b9
R10: ffffed10053d53b9 R11: 1ffff110053d53b8 R12: 0000000000000000
R13: 0000000000000078 R14: ffff888029ea9dc0 R15: 0000000000000000
FS:  00007f8facfad6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000004cf000 CR3: 000000001e5a9000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 check_preempt_curr+0xd2/0x270 kernel/sched/core.c:2116
 ttwu_do_wakeup+0x27/0x4f0 kernel/sched/core.c:3580
 ttwu_queue kernel/sched/core.c:3842 [inline]
 try_to_wake_up+0x618/0x1050 kernel/sched/core.c:4165
 hrtimer_wakeup+0x4a/0x60 kernel/time/hrtimer.c:1944
 __run_hrtimer kernel/time/hrtimer.c:1690 [inline]
 __hrtimer_run_queues+0x53d/0xc40 kernel/time/hrtimer.c:1754
 hrtimer_interrupt+0x3bb/0x8d0 kernel/time/hrtimer.c:1816
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x137/0x4a0 arch/x86/kernel/apic/apic.c:1114
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:__pkru_allows_read arch/x86/include/asm/pkru.h:21 [inline]
RIP: 0010:__pkru_allows_pkey arch/x86/include/asm/pgtable.h:1348 [inline]
RIP: 0010:arch_vma_access_permitted arch/x86/include/asm/mmu_context.h:217 [inline]
RIP: 0010:access_error arch/x86/mm/fault.c:1066 [inline]
RIP: 0010:do_user_addr_fault+0x6e1/0xc80 arch/x86/mm/fault.c:1339
Code: df 80 3c 08 00 4c 8b 3c 24 74 08 48 89 ef e8 46 4b 87 00 48 8b 6d 00 e9 94 05 00 00 e8 08 e5 42 00 31 c9 0f 01 ee 89 44 24 14 <48> c1 ed 1f 83 e5 1e 48 89 e9 bd 01 00 00 00 48 89 4c 24 40 d3 e5
RSP: 0018:ffffc90004d97920 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88801f0e0d68 RCX: ffff888029ea9dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000008100077 R08: dffffc0000000000 R09: ffffed100fe88c58
R10: ffffed100fe88c58 R11: 1ffff1100fe88c57 R12: ffff88801f0e0d68
R13: 0000000000000215 R14: 0000000000000003 R15: 00002000004cf000
 handle_page_fault arch/x86/mm/fault.c:1445 [inline]
 exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1501
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x40 arch/x86/lib/copy_user_64.S:206
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 90 90 90 90 90 90 90 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 01 ca c3 90 90 90 90 90 90 90 90 90 90 89 d1 83 f8
RSP: 0018:ffffc90004d97aa0 EFLAGS: 00050206
RAX: ffffffff83d8fe01 RBX: 00002000004ceeff RCX: 0000000000000e80
RDX: 0000000000001000 RSI: ffff88800edb7180 RDI: 00002000004cf000
RBP: 0000000000001000 R08: dffffc0000000000 R09: ffffed1001db7000
R10: 0000000000000000 R11: 0000000000000200 R12: ffff88800edb7000
R13: 0000000000001000 R14: 00007ffffffff000 R15: 00002000004cfe80
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline]
 copyout lib/iov_iter.c:157 [inline]
 copy_page_to_iter_iovec lib/iov_iter.c:228 [inline]
 __copy_page_to_iter lib/iov_iter.c:861 [inline]
 copy_page_to_iter+0x49e/0x910 lib/iov_iter.c:889
 process_vm_rw_pages mm/process_vm_access.c:45 [inline]
 process_vm_rw_single_vec mm/process_vm_access.c:117 [inline]
 process_vm_rw_core mm/process_vm_access.c:215 [inline]
 process_vm_rw+0x7e1/0xb00 mm/process_vm_access.c:283
 __do_sys_process_vm_readv mm/process_vm_access.c:295 [inline]
 __se_sys_process_vm_readv mm/process_vm_access.c:291 [inline]
 __x64_sys_process_vm_readv+0xdc/0xf0 mm/process_vm_access.c:291
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f8fad93dbe9
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:00007f8facfad038 EFLAGS: 00000246 ORIG_RAX: 0000000000000136
RAX: ffffffffffffffda RBX: 00007f8fadb74fa0 RCX: 00007f8fad93dbe9
RDX: 0000000000000002 RSI: 0000200000008400 RDI: 0000000000000078
RBP: 00007f8fad9c0e19 R08: 0000000000000286 R09: 0000000000000000
R10: 0000200000008640 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8fadb75038 R14: 00007f8fadb74fa0 R15: 00007ffd7de55a08
 </TASK>
Modules linked in:
---[ end trace d9620b26ea4a1961 ]---
RIP: 0010:is_same_group kernel/sched/fair.c:391 [inline]
RIP: 0010:find_matching_se kernel/sched/fair.c:428 [inline]
RIP: 0010:check_preempt_wakeup+0x3ab/0xb20 kernel/sched/fair.c:7418
Code: 8b 3f 49 83 c4 70 4c 89 e0 48 c1 e8 03 80 3c 28 00 74 08 4c 89 e7 e8 b4 91 66 00 4d 8b 24 24 4d 8d 6f 78 4c 89 e8 48 c1 e8 03 <80> 3c 28 00 74 08 4c 89 ef e8 97 91 66 00 49 8b 5d 00 4d 8d 6c 24
RSP: 0018:ffffc90000007ba0 EFLAGS: 00010006
RAX: 000000000000000f RBX: ffff8880b913a3c0 RCX: ffffffff81559c47
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888029ea9dc0
RBP: dffffc0000000000 R08: dffffc0000000000 R09: ffffed10053d53b9
R10: ffffed10053d53b9 R11: 1ffff110053d53b8 R12: 0000000000000000
R13: 0000000000000078 R14: ffff888029ea9dc0 R15: 0000000000000000
FS:  00007f8facfad6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000004cf000 CR3: 000000001e5a9000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8b 3f                	mov    (%rdi),%edi
   2:	49 83 c4 70          	add    $0x70,%r12
   6:	4c 89 e0             	mov    %r12,%rax
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
  11:	74 08                	je     0x1b
  13:	4c 89 e7             	mov    %r12,%rdi
  16:	e8 b4 91 66 00       	call   0x6691cf
  1b:	4d 8b 24 24          	mov    (%r12),%r12
  1f:	4d 8d 6f 78          	lea    0x78(%r15),%r13
  23:	4c 89 e8             	mov    %r13,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	4c 89 ef             	mov    %r13,%rdi
  33:	e8 97 91 66 00       	call   0x6691cf
  38:	49 8b 5d 00          	mov    0x0(%r13),%rbx
  3c:	4d                   	rex.WRB
  3d:	8d                   	.byte 0x8d
  3e:	6c                   	insb   (%dx),%es:(%rdi)
  3f:	24                   	.byte 0x24

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/08 01:27 linux-5.15.y 7a6c2d093c45 d291dd2d .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in check_preempt_wakeup
* Struck through repros no longer work on HEAD.