syzbot


BUG: unable to handle kernel NULL pointer dereference in read_cache_folio

Status: upstream: reported C repro on 2024/09/26 14:51
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+4089e577072948ac5531@syzkaller.appspotmail.com
First crash: 331d, last: 88d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [fs?] BUG: unable to handle kernel NULL pointer dereference in read_cache_folio 1 (10) 2024/11/11 02:34
[PATCH v1] Fix NULL pointer dereference in read_cache_folio 6 (6) 2024/10/15 11:57
Last patch testing requests (13)
Created Duration User Patch Repo Result
2025/08/01 15:26 28m retest repro upstream OK log
2025/05/23 15:09 16m retest repro upstream report log
2025/03/14 14:50 13m retest repro upstream report log
2025/01/03 14:37 12m retest repro upstream report log
2024/10/25 14:24 12m gianf.trad@gmail.com upstream report log
2024/10/15 11:01 29m gianf.trad@gmail.com patch upstream OK log
2024/10/14 22:25 0m gianf.trad@gmail.com patch upstream error
2024/10/14 21:21 0m s323713@studenti.polito.it patch upstream error
2024/10/14 21:13 0m gianf.trad@gmail.com patch upstream error
2024/10/12 23:28 27m gianf.trad@gmail.com patch upstream OK log
2024/10/06 19:03 13m retest repro upstream report log
2024/09/30 08:32 27m s323713@studenti.polito.it patch upstream OK log
2024/09/29 22:29 28m gianf.trad@gmail.com patch upstream OK log

Sample crash report:
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
Mem abort info:
  ESR = 0x0000000086000006
  EC = 0x21: IABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x06: level 2 translation fault
user pgtable: 4k pages, 52-bit VAs, pgdp=00000000442e5180
[0000000000000000] pgd=0800000045911403, p4d=080000007877c403, pud=080000006dcfd403, pmd=0000000000000000
Internal error: Oops: 0000000086000006 [#1]  SMP
Modules linked in:
CPU: 1 UID: 0 PID: 18649 Comm: syz.1.3853 Not tainted 6.15.0-rc2-syzkaller-00471-g119009db2674 #0 PREEMPT 
Hardware name: linux,dummy-virt (DT)
pstate: 61402809 (nZCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=-c)
pc : 0x0
lr : filemap_read_folio+0x44/0xf4 mm/filemap.c:2401
sp : ffff800089273ad0
x29: ffff800089273ad0 x28: 0000000020ffd000 x27: 000000000000041a
x26: 0000000000000000 x25: 0000000000000000 x24: 0000000002100cca
x23: faf000000c8f0600 x22: 0000000000000000 x21: faf000000c8f0600
x20: 0000000000000000 x19: ffffc1ffc1287740 x18: ffff800089273c30
x17: 0000000000000000 x16: 0000000000000000 x15: 0000000020000180
x14: 0000000000000000 x13: 0000000000000003 x12: 000000000006f374
x11: 0000000000000000 x10: ffff80008205a0c8 x9 : 0000000000000881
x8 : fff07ffffd032000 x7 : fff000007f8cfd40 x6 : 0000000000000001
x5 : ffffc1ffc1287740 x4 : 0000000000000000 x3 : fbf000000583c900
x2 : 0000000000000000 x1 : ffffc1ffc1287740 x0 : faf000000c8f0600
Call trace:
 0x0 (P)
 do_read_cache_folio+0x190/0x2a0 mm/filemap.c:3885
 read_cache_folio+0x14/0x20 mm/filemap.c:3917
 freader_get_folio+0x1bc/0x214 lib/buildid.c:77
 freader_fetch+0x44/0x164 lib/buildid.c:120
 __build_id_parse.isra.0+0x98/0x2a8 lib/buildid.c:305
 build_id_parse+0x18/0x24 lib/buildid.c:359
 do_procmap_query+0x5dc/0x71c fs/proc/task_mmu.c:534
 procfs_procmap_ioctl+0x2c/0x44 fs/proc/task_mmu.c:613
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl fs/ioctl.c:892 [inline]
 __arm64_sys_ioctl+0xb4/0xe8 fs/ioctl.c:892
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x48/0x110 arch/arm64/kernel/syscall.c:49
 el0_svc_common.constprop.0+0x40/0xe0 arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x1c/0x28 arch/arm64/kernel/syscall.c:151
 el0_svc+0x30/0xe0 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x10c/0x138 arch/arm64/kernel/entry-common.c:762
 el0t_64_sync+0x1a4/0x1a8 arch/arm64/kernel/entry.S:600
Code: ???????? ???????? ???????? ???????? (????????) 
---[ end trace 0000000000000000 ]---

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/20 14:51 upstream 119009db2674 2a20f901 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
2024/09/22 19:03 upstream 88264981f208 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
2024/09/22 19:02 upstream 88264981f208 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
2024/09/22 16:01 upstream 88264981f208 6f888b75 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
2024/09/22 14:42 upstream 88264981f208 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
2024/09/22 14:42 upstream 88264981f208 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
2024/10/20 05:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d2b1b3bccef6 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
2024/10/17 03:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 77a9c08f0659 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
2024/10/15 14:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d8bce6e34be 14943bb8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
2024/10/15 14:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d8bce6e34be 14943bb8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
2024/10/15 14:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d8bce6e34be 14943bb8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
2024/10/15 14:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d8bce6e34be 14943bb8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in read_cache_folio
* Struck through repros no longer work on HEAD.