syzbot


BUG: unable to handle kernel paging request in filemap_read_folio

Status: premoderation: reported C repro on 2025/06/26 02:40
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+7eaa776ff182fa1991e2@syzkaller.appspotmail.com
First crash: 113d, last: 8d19h
Bug presence (2)
Date Name Commit Repro Result
2025/06/28 lts (merge base) e0e2f7824338 C [report] BUG: unable to handle kernel paging request in filemap_read_folio
2025/06/28 upstream (ToT) aaf724ed6926 C [report] BUG: unable to handle kernel paging request in filemap_read_folio
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (3) erofs 10 C 492 338d 395d 28/29 fixed on 2024/11/12 23:31
upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (4) fs 10 C done 4278 2h26m 334d 0/29 upstream: reported C repro on 2024/11/16 23:40
upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio mm fs 10 8 1083d 1092d 0/29 auto-obsoleted due to no activity on 2023/02/26 19:26
upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (2) fs 10 6 857d 907d 0/29 auto-obsoleted due to no activity on 2023/09/20 22:50
Last patch testing requests (7)
Created Duration User Patch Repo Result
2025/10/08 12:37 13m retest repro android16-6.12 report log
2025/10/08 12:37 16m retest repro android16-6.12 report log
2025/10/08 12:37 19m retest repro android16-6.12 report log
2025/09/20 23:15 7m retest repro android16-6.12 report log
2025/07/26 00:44 8m retest repro android16-6.12 report log
2025/07/26 00:44 10m retest repro android16-6.12 report log
2025/07/26 00:44 12m retest repro android16-6.12 report log

Sample crash report:
BUG: unable to handle page fault for address: fffffffffffffff1
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 72ac067 P4D 72ac067 PUD 72ae067 PMD 0 
Oops: Oops: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 379 Comm: syz.2.17 Not tainted syzkaller #0 73b2ef142dafea13a051d13948dec704a9c677a1
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:filemap_read_folio+0xda/0x2c0 mm/filemap.c:2411
Code: 44 24 40 00 00 00 00 48 81 e3 00 02 00 00 0f 85 86 01 00 00 e8 e7 e1 c8 ff 48 8b 7c 24 18 4c 89 f6 4d 89 fb 41 ba 1b aa 8a 2a <45> 03 53 f1 74 02 0f 0b 2e e8 74 47 43 1e 41 89 c7 31 ff 44 89 fe
RSP: 0018:ffffc90000e1f920 EFLAGS: 00010293
RAX: ffffffff81bd0229 RBX: 0000000000000000 RCX: ffff88810c375f00
RDX: 0000000000000000 RSI: ffffea00049a7240 RDI: ffff8881112b1500
RBP: ffffc90000e1f9e0 R08: ffffea00049a7247 R09: 1ffffd4000934e48
R10: 000000002a8aaa1b R11: 0000000000000000 R12: 1ffff920001c3f28
R13: 1ffffd4000934e48 R14: ffffea00049a7240 R15: 0000000000000000
FS:  000055559083f500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff1 CR3: 0000000115448000 CR4: 00000000003526b0
Call Trace:
 <TASK>
 do_read_cache_folio+0x2b8/0x4d0 mm/filemap.c:3901
 read_cache_folio+0x54/0x90 mm/filemap.c:3933
 freader_get_folio+0x471/0x700 lib/buildid.c:77
 freader_fetch+0xa4/0x590 lib/buildid.c:120
 __build_id_parse+0x131/0x790 lib/buildid.c:305
 build_id_parse+0x2e/0x40 lib/buildid.c:359
 do_procmap_query fs/proc/task_mmu.c:546 [inline]
 procfs_procmap_ioctl+0x7f6/0xd10 fs/proc/task_mmu.c:625
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0x135/0x1b0 fs/ioctl.c:893
 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:893
 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x58/0xf0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7fcfa358ebe9
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:00007ffd0f4d9ff8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fcfa37c5fa0 RCX: 00007fcfa358ebe9
RDX: 0000200000000180 RSI: 00000000c0686611 RDI: 0000000000000003
RBP: 00007fcfa3611e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcfa37c5fa0 R14: 00007fcfa37c5fa0 R15: 0000000000000003
 </TASK>
Modules linked in:
CR2: fffffffffffffff1
---[ end trace 0000000000000000 ]---
RIP: 0010:filemap_read_folio+0xda/0x2c0 mm/filemap.c:2411
Code: 44 24 40 00 00 00 00 48 81 e3 00 02 00 00 0f 85 86 01 00 00 e8 e7 e1 c8 ff 48 8b 7c 24 18 4c 89 f6 4d 89 fb 41 ba 1b aa 8a 2a <45> 03 53 f1 74 02 0f 0b 2e e8 74 47 43 1e 41 89 c7 31 ff 44 89 fe
RSP: 0018:ffffc90000e1f920 EFLAGS: 00010293
RAX: ffffffff81bd0229 RBX: 0000000000000000 RCX: ffff88810c375f00
RDX: 0000000000000000 RSI: ffffea00049a7240 RDI: ffff8881112b1500
RBP: ffffc90000e1f9e0 R08: ffffea00049a7247 R09: 1ffffd4000934e48
R10: 000000002a8aaa1b R11: 0000000000000000 R12: 1ffff920001c3f28
R13: 1ffffd4000934e48 R14: ffffea00049a7240 R15: 0000000000000000
FS:  000055559083f500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff1 CR3: 0000000115448000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
   0:	44 24 40             	rex.R and $0x40,%al
   3:	00 00                	add    %al,(%rax)
   5:	00 00                	add    %al,(%rax)
   7:	48 81 e3 00 02 00 00 	and    $0x200,%rbx
   e:	0f 85 86 01 00 00    	jne    0x19a
  14:	e8 e7 e1 c8 ff       	call   0xffc8e200
  19:	48 8b 7c 24 18       	mov    0x18(%rsp),%rdi
  1e:	4c 89 f6             	mov    %r14,%rsi
  21:	4d 89 fb             	mov    %r15,%r11
  24:	41 ba 1b aa 8a 2a    	mov    $0x2a8aaa1b,%r10d
* 2a:	45 03 53 f1          	add    -0xf(%r11),%r10d <-- trapping instruction
  2e:	74 02                	je     0x32
  30:	0f 0b                	ud2
  32:	2e e8 74 47 43 1e    	cs call 0x1e4347ac
  38:	41 89 c7             	mov    %eax,%r15d
  3b:	31 ff                	xor    %edi,%edi
  3d:	44 89 fe             	mov    %r15d,%esi

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/05 02:14 android16-6.12 3a1f856821c2 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/06/26 04:15 android16-6.12 22d634eb24e3 26d77996 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/06/26 03:12 android16-6.12 22d634eb24e3 26d77996 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/06/26 03:42 android16-6.12 22d634eb24e3 26d77996 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/09/22 17:26 android16-6.12 e13e0acd4125 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/09 18:12 android16-6.12 acad0cd51d10 f4e5e155 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/08 01:18 android16-6.12 f6ca783ba264 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/07 07:19 android16-6.12 e2bf362ee23b 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/06 17:43 android16-6.12 e2bf362ee23b 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/06 04:20 android16-6.12 e2bf362ee23b 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/05 13:52 android16-6.12 e2bf362ee23b 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/03 20:10 android16-6.12 e2bf362ee23b 115ceea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/03 15:45 android16-6.12 06ca12d7d229 115ceea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/03 06:36 android16-6.12 06ca12d7d229 115ceea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/02 21:01 android16-6.12 969c904869b3 bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/02 15:44 android16-6.12 c40c54e66959 bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/07/01 12:57 android16-6.12 648383294760 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
2025/06/26 02:39 android16-6.12 22d634eb24e3 26d77996 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: unable to handle kernel paging request in filemap_read_folio
* Struck through repros no longer work on HEAD.