syzbot


BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (4)

Status: upstream: reported C repro on 2024/11/16 23:40
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+09b7d050e4806540153d@syzkaller.appspotmail.com
First crash: 5d02h, last: 1h22m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [fs?] BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (4) 1 (3) 2024/11/17 00:37
Similar bugs (3)
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 5d06h 61d 28/28 fixed on 2024/11/12 23:31
upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio fs mm 8 750d 759d 0/28 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 524d 573d 0/28 auto-obsoleted due to no activity on 2023/09/20 22:50
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/11/17 00:18 17m hdanton@sina.com patch upstream OK log

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 32263067 P4D 32263067 PUD 32264067 PMD 0 
Oops: Oops: 0010 [#1] PREEMPT SMP KASAN NOPTI
CPU: 3 UID: 0 PID: 5935 Comm: syz-executor262 Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc900036a79c8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81c26c1f
RDX: ffff8880289da440 RSI: ffffea0000e995c0 RDI: ffff888029a421c0
RBP: ffffea0000e995c0 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff961d8908 R12: 1ffff920006d4f3a
R13: ffff888029a421c0 R14: 0000000000000000 R15: dffffc0000000000
FS:  000055557e035380(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000031818000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 filemap_read_folio+0xc6/0x2a0 mm/filemap.c:2367
 do_read_cache_folio+0x263/0x5c0 mm/filemap.c:3825
 freader_get_folio+0x337/0x8e0 lib/buildid.c:77
 freader_fetch+0xc2/0x5f0 lib/buildid.c:120
 __build_id_parse.isra.0+0xed/0x7a0 lib/buildid.c:305
 do_procmap_query+0xd62/0x1030 fs/proc/task_mmu.c:534
 procfs_procmap_ioctl+0x7d/0xb0 fs/proc/task_mmu.c:613
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl fs/ioctl.c:893 [inline]
 __x64_sys_ioctl+0x18f/0x220 fs/ioctl.c:893
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5f4c4436e9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffde11efd68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffde11efd70 RCX: 00007f5f4c4436e9
RDX: 0000000020000180 RSI: 00000000c0686611 RDI: 0000000000000004
RBP: 00007f5f4c4b6610 R08: 0000000000000000 R09: 65732f636f72702f
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffde11effa8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0000000000000000 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc900036a79c8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81c26c1f
RDX: ffff8880289da440 RSI: ffffea0000e995c0 RDI: ffff888029a421c0
RBP: ffffea0000e995c0 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff961d8908 R12: 1ffff920006d4f3a
R13: ffff888029a421c0 R14: 0000000000000000 R15: dffffc0000000000
FS:  000055557e035380(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000031818000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (51):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/13 00:01 upstream 3022e9d00ebe c819f227 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/18 00:23 upstream f66d6acccbc0 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/17 12:00 upstream 4a5df3796467 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/17 02:30 upstream e8bdb3c8be08 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/17 00:15 upstream e8bdb3c8be08 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 21:09 upstream e8bdb3c8be08 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 19:01 upstream e8bdb3c8be08 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 10:30 upstream f868cd251776 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 07:15 upstream f868cd251776 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 05:44 upstream f868cd251776 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 05:35 upstream f868cd251776 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 05:34 upstream f868cd251776 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 05:34 upstream f868cd251776 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 05:07 upstream f868cd251776 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 05:07 upstream f868cd251776 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 05:06 upstream f868cd251776 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 05:06 upstream f868cd251776 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 05:05 upstream f868cd251776 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/16 05:05 upstream f868cd251776 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 23:10 upstream f868cd251776 eeafb645 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 21:41 upstream f868cd251776 eeafb645 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 21:40 upstream f868cd251776 eeafb645 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 21:40 upstream f868cd251776 eeafb645 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 16:41 upstream cfaaa7d010d1 eeafb645 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 16:17 upstream cfaaa7d010d1 eeafb645 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 12:06 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 10:52 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 10:26 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 09:09 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 09:08 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/15 03:45 upstream cfaaa7d010d1 f6ede3a3 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/14 22:46 upstream cfaaa7d010d1 77f3eeb7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/14 17:50 upstream 0a9b9d17f3a7 77f3eeb7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/14 14:32 upstream 0a9b9d17f3a7 77f3eeb7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/14 08:25 upstream 0a9b9d17f3a7 a8c99394 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/14 08:24 upstream 0a9b9d17f3a7 a8c99394 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/14 07:38 upstream 0a9b9d17f3a7 a8c99394 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/14 05:53 upstream 0a9b9d17f3a7 a8c99394 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/13 22:55 upstream f1b785f4c787 4dfba277 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/13 12:07 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/13 11:56 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/13 11:26 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/13 07:46 upstream 3022e9d00ebe 62026c85 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/13 07:11 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/13 07:11 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/13 05:22 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/13 03:50 upstream 3022e9d00ebe 62026c85 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2024/11/12 23:35 upstream 3022e9d00ebe c819f227 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
* Struck through repros no longer work on HEAD.