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: 3d17h, last: 3d15h
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 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 C 492 229d 285d 28/29 fixed on 2024/11/12 23:31
upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (4) fs C done 2667 3h40m 224d 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 fs mm 8 974d 983d 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 6 747d 797d 0/29 auto-obsoleted due to no activity on 2023/09/20 22:50

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: 1 UID: 0 PID: 1583 Comm: syz-executor494 Not tainted 6.12.30-syzkaller-g22d634eb24e3 #0 5aa5a802a358a0169efaadab5c3b9a05fad29399
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:filemap_read_folio+0xda/0x2c0 mm/filemap.c:2408
Code: 44 24 40 00 00 00 00 48 81 e3 00 02 00 00 0f 85 86 01 00 00 e8 67 ee c8 ff 48 8b 7c 24 18 4c 89 f6 4d 89 fb 41 ba 9e d4 81 14 <45> 03 53 f1 74 02 0f 0b 41 ff d3 0f 1f 00 41 89 c7 31 ff 44 89 fe
RSP: 0018:ffffc90002bbf920 EFLAGS: 00010293
RAX: ffffffff81bcb389 RBX: 0000000000000000 RCX: ffff888103b72600
RDX: 0000000000000000 RSI: ffffea0004499bc0 RDI: ffff88810efde640
RBP: ffffc90002bbf9e0 R08: ffffea0004499bc7 R09: 1ffffd4000893378
R10: 000000001481d49e R11: 0000000000000000 R12: 1ffff92000577f28
R13: 1ffffd4000893378 R14: ffffea0004499bc0 R15: 0000000000000000
FS:  00007feeb88bd6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff1 CR3: 0000000114872000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_read_cache_folio+0x2b8/0x4d0 mm/filemap.c:3898
 read_cache_folio+0x54/0x90 mm/filemap.c:3930
 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+0x132/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:0x7feeb8931ee9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 18 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:00007feeb88bd0d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007feeb89bc318 RCX: 00007feeb8931ee9
RDX: 0000200000000180 RSI: 00000000c0686611 RDI: 0000000000000003
RBP: 00007feeb89bc310 R08: 00007feeb88bd6c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007feeb89bc31c
R13: 0000000000000000 R14: 00007ffcce3f6d40 R15: 00007ffcce3f6e28
 </TASK>
Modules linked in:
CR2: fffffffffffffff1
---[ end trace 0000000000000000 ]---
RIP: 0010:filemap_read_folio+0xda/0x2c0 mm/filemap.c:2408
Code: 44 24 40 00 00 00 00 48 81 e3 00 02 00 00 0f 85 86 01 00 00 e8 67 ee c8 ff 48 8b 7c 24 18 4c 89 f6 4d 89 fb 41 ba 9e d4 81 14 <45> 03 53 f1 74 02 0f 0b 41 ff d3 0f 1f 00 41 89 c7 31 ff 44 89 fe
RSP: 0018:ffffc90002bbf920 EFLAGS: 00010293
RAX: ffffffff81bcb389 RBX: 0000000000000000 RCX: ffff888103b72600
RDX: 0000000000000000 RSI: ffffea0004499bc0 RDI: ffff88810efde640
RBP: ffffc90002bbf9e0 R08: ffffea0004499bc7 R09: 1ffffd4000893378
R10: 000000001481d49e R11: 0000000000000000 R12: 1ffff92000577f28
R13: 1ffffd4000893378 R14: ffffea0004499bc0 R15: 0000000000000000
FS:  00007feeb88bd6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff1 CR3: 0000000114872000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
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 67 ee c8 ff       	call   0xffc8ee80
  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 9e d4 81 14    	mov    $0x1481d49e,%r10d
* 2a:	45 03 53 f1          	add    -0xf(%r11),%r10d <-- trapping instruction
  2e:	74 02                	je     0x32
  30:	0f 0b                	ud2
  32:	41 ff d3             	call   *%r11
  35:	0f 1f 00             	nopl   (%rax)
  38:	41 89 c7             	mov    %eax,%r15d
  3b:	31 ff                	xor    %edi,%edi
  3d:	44 89 fe             	mov    %r15d,%esi

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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.