BUG: unable to handle kernel NULL pointer dereference in ntfs_check_logfile

Status: moderation: reported on 2023/09/08 10:14
Subsystems: ntfs
[Documentation on labels]
First crash: 86d, last: 86d

Sample crash report:
ntfs: volume version 3.1.
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, 48-bit VAs, pgdp=000000010e430000
[0000000000000000] pgd=080000010b5a1003, p4d=080000010b5a1003, pud=0800000106838003, pmd=0000000000000000
Internal error: Oops: 0000000086000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 15822 Comm: syz-executor.3 Not tainted 6.5.0-rc7-syzkaller-gfe4469582053 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : 0x0
lr : filemap_read_folio+0x14c/0x39c mm/filemap.c:2389
sp : ffff8000976d7300
x29: ffff8000976d7390 x28: 1fffff800099ca38 x27: 1fffff800099ca39
x26: 0000000000000000 x25: dfff800000000000 x24: 0000000000000000
x23: ffff8000976d7340 x22: 0000000000000000 x21: fffffc0004ce51c8
x20: 0000000000000000 x19: fffffc0004ce51c0 x18: ffff0001b42135a8
x17: ffff80008e09d000 x16: ffff80008a572e30 x15: 0000000000000001
x14: 1fffff800099ca38 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000040000 x10: 0000000000024e2f x9 : ffff8000a2e2c000
x8 : 0000000000024e30 x7 : 0000000000000000 x6 : ffff8000807cba64
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000807a1928
x2 : 0000000000000001 x1 : fffffc0004ce51c0 x0 : 0000000000000000
Call trace:
 do_read_cache_folio+0x114/0x548 mm/filemap.c:3696
 do_read_cache_page mm/filemap.c:3762 [inline]
 read_cache_page+0x6c/0x170 mm/filemap.c:3771
 read_mapping_page include/linux/pagemap.h:776 [inline]
 ntfs_map_page fs/ntfs/aops.h:75 [inline]
 ntfs_check_logfile+0x498/0x2838 fs/ntfs/logfile.c:532
 load_and_check_logfile+0x78/0x104 fs/ntfs/super.c:1223
 load_system_files+0x3260/0x4734 fs/ntfs/super.c:1949
 ntfs_fill_super+0x14e0/0x2314 fs/ntfs/super.c:2900
 mount_bdev+0x24c/0x328 fs/super.c:1391
 ntfs_mount+0x44/0x58 fs/ntfs/super.c:3057
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611
 vfs_get_tree+0x90/0x274 fs/super.c:1519
 do_new_mount+0x25c/0x8c8 fs/namespace.c:3335
 path_mount+0x590/0xe04 fs/namespace.c:3662
 do_mount fs/namespace.c:3675 [inline]
 __do_sys_mount fs/namespace.c:3884 [inline]
 __se_sys_mount fs/namespace.c:3861 [inline]
 __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3861
 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155
 el0_svc+0x58/0x16c arch/arm64/kernel/entry-common.c:678
 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591
Code: ???????? ???????? ???????? ???????? (????????) 
---[ end trace 0000000000000000 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/04 10:09 git:// for-kernelci fe4469582053 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_check_logfile
* Struck through repros no longer work on HEAD.