syzbot


BUG: unable to handle kernel paging request in preempt_schedule_irq

Status: upstream: reported C repro on 2025/06/24 13:48
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+1d1faa577d3dc8018a10@syzkaller.appspotmail.com
First crash: 21d, last: 14d
Bug presence (1)
Date Name Commit Repro Result
2025/06/29 upstream (ToT) afa9a6f4f574 C [report] KASAN: out-of-bounds Write in end_buffer_read_sync
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 BUG: unable to handle kernel paging request in preempt_schedule_irq origin:upstream 8 C 20 4d07h 78d 0/3 upstream: reported C repro on 2025/04/28 12:49
upstream BUG: unable to handle kernel paging request in preempt_schedule_irq kernel 8 1 333d 329d 0/29 auto-obsoleted due to no activity on 2024/11/14 20:10
linux-6.6 BUG: unable to handle kernel paging request in preempt_schedule_irq 8 1 9d19h 9d19h 0/2 upstream: reported on 2025/07/06 05:27
upstream KASAN: stack-out-of-bounds Write in preempt_schedule_irq kernel 23 1 100d 95d 0/29 auto-obsoleted due to no activity on 2025/06/06 00:36

Sample crash report:
BUG: unable to handle page fault for address: ffffed11061053b7
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23ffee067 P4D 23ffee067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4894 Comm: syz-executor365 Not tainted 6.1.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:207 [inline]
RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:239 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline]
RIP: 0010:test_ti_thread_flag include/linux/thread_info.h:118 [inline]
RIP: 0010:need_resched include/linux/sched.h:2230 [inline]
RIP: 0010:preempt_schedule_irq+0xf6/0x150 kernel/sched/core.c:6876
Code: c0 0f 6f f7 bf 01 00 00 00 e8 d6 88 3f f7 65 48 8b 1d 9e 49 ea 75 48 89 df be 08 00 00 00 e8 11 2b ba f7 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 91 48 89 df e8 6b 29 ba f7 eb 87 48 c7 04 24 0e
RSP: 0018:ffffc9000465e660 EFLAGS: 00010806
RAX: 1ffff110061053b8 RBX: ffff888030829dc0 RCX: ffffffff8a1825af
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888030829dc0
RBP: ffffc9000465e700 R08: dffffc0000000000 R09: ffffed10061053b9
R10: ffffed10061053b9 R11: 1ffff110061053b8 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc00ffffffff R15: 1ffff920008cbccc
FS:  00007fbeb71af6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed11061053b7 CR3: 000000001d3b5000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 irqentry_exit+0x63/0x70 kernel/entry/common.c:439
 asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:696
RIP: 0010:debug_lockdep_rcu_enabled+0xb/0x30 kernel/rcu/update.c:280
Code: 6b 8a 48 c7 c6 60 22 6c 8a e8 31 52 3d f7 0f 0b eb d1 00 00 cc cc 00 00 cc cc 00 00 cc cc 00 31 c0 83 3d c7 ef ee 03 00 74 1d <83> 3d 52 23 ef 03 00 74 14 65 48 8b 0d 24 d8 f2 75 31 c0 83 b9 dc
RSP: 0018:ffffc9000465e7c0 EFLAGS: 00000202
RAX: 0000000000000000 RBX: ffffea0001c0d580 RCX: ffff888030829dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffc9000465e860
RBP: dffffc0000000000 R08: dffffc0000000000 R09: fffff94000381ab7
R10: fffff94000381ab7 R11: 1ffffd4000381ab6 R12: ffffc9000465e860
R13: ffffea0001c0d580 R14: ffff88806e623820 R15: ffffc9000465e860
 xa_head include/linux/xarray.h:1182 [inline]
 xas_reload+0x14f/0x470 include/linux/xarray.h:1580
 filemap_get_read_batch+0x2b3/0xa60 mm/filemap.c:2454
 filemap_get_pages mm/filemap.c:2667 [inline]
 filemap_read+0x61a/0x2f80 mm/filemap.c:2759
 generic_file_read_iter+0x115/0x670 mm/filemap.c:2914
 __kernel_read+0x2dc/0x6b0 fs/read_write.c:428
 integrity_kernel_read+0x86/0xd0 security/integrity/iint.c:228
 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline]
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
 ima_calc_file_hash+0x96b/0x17c0 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x4b3/0xac0 security/integrity/ima/ima_api.c:293
 process_measurement+0xfae/0x1a10 security/integrity/ima/ima_main.c:351
 ima_file_check+0xc2/0x100 security/integrity/ima/ima_main.c:534
 do_open fs/namei.c:3628 [inline]
 path_openat+0x2679/0x2e70 fs/namei.c:3783
 do_filp_open+0x1c1/0x3c0 fs/namei.c:3810
 do_sys_openat2+0x142/0x490 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_openat fs/open.c:1350 [inline]
 __se_sys_openat fs/open.c:1345 [inline]
 __x64_sys_openat+0x135/0x160 fs/open.c:1345
 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:0x7fbeb721c979
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 1d 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbeb71af218 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fbeb72bc6d8 RCX: 00007fbeb721c979
RDX: 0000000000143042 RSI: 00002000000000c0 RDI: 00000000ffffff9c
RBP: 00007fbeb72bc6d0 R08: 00007ffd1e96a297 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fbeb7288ba4
R13: 000000000000006e R14: 00007ffd1e96a1b0 R15: 00007ffd1e96a298
 </TASK>
Modules linked in:
CR2: ffffed11061053b7
---[ end trace 0000000000000000 ]---
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:207 [inline]
RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:239 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline]
RIP: 0010:test_ti_thread_flag include/linux/thread_info.h:118 [inline]
RIP: 0010:need_resched include/linux/sched.h:2230 [inline]
RIP: 0010:preempt_schedule_irq+0xf6/0x150 kernel/sched/core.c:6876
Code: c0 0f 6f f7 bf 01 00 00 00 e8 d6 88 3f f7 65 48 8b 1d 9e 49 ea 75 48 89 df be 08 00 00 00 e8 11 2b ba f7 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 91 48 89 df e8 6b 29 ba f7 eb 87 48 c7 04 24 0e
RSP: 0018:ffffc9000465e660 EFLAGS: 00010806
RAX: 1ffff110061053b8 RBX: ffff888030829dc0 RCX: ffffffff8a1825af
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888030829dc0
RBP: ffffc9000465e700 R08: dffffc0000000000 R09: ffffed10061053b9
R10: ffffed10061053b9 R11: 1ffff110061053b8 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc00ffffffff R15: 1ffff920008cbccc
FS:  00007fbeb71af6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed11061053b7 CR3: 000000001d3b5000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c0 0f 6f             	rorb   $0x6f,(%rdi)
   3:	f7 bf 01 00 00 00    	idivl  0x1(%rdi)
   9:	e8 d6 88 3f f7       	call   0xf73f88e4
   e:	65 48 8b 1d 9e 49 ea 	mov    %gs:0x75ea499e(%rip),%rbx        # 0x75ea49b4
  15:	75
  16:	48 89 df             	mov    %rbx,%rdi
  19:	be 08 00 00 00       	mov    $0x8,%esi
  1e:	e8 11 2b ba f7       	call   0xf7ba2b34
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	74 91                	je     0xffffffc2
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 6b 29 ba f7       	call   0xf7ba29a4
  39:	eb 87                	jmp    0xffffffc2
  3b:	48                   	rex.W
  3c:	c7                   	.byte 0xc7
  3d:	04 24                	add    $0x24,%al
  3f:	0e                   	(bad)

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/24 15:56 linux-6.1.y 58485ff1a74f e2f27c35 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/06/27 05:32 linux-6.1.y 58485ff1a74f 803ce19b .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/07/01 12:28 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/07/01 12:24 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/07/01 12:21 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/07/01 12:19 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/07/01 12:15 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/07/01 12:15 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/07/01 12:15 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/07/01 01:58 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/07/01 01:56 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/07/01 01:54 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/06/24 13:58 linux-6.1.y 58485ff1a74f e2f27c35 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
2025/06/24 13:47 linux-6.1.y 58485ff1a74f e2f27c35 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in preempt_schedule_irq
* Struck through repros no longer work on HEAD.