syzbot


BUG: unable to handle kernel NULL pointer dereference in __d_instantiate

Status: upstream: reported C repro on 2022/09/13 19:51
Reported-by: syzbot+29dc75ed37be943c610e@syzkaller.appspotmail.com
First crash: 74d, last: 5d17h

Cause bisection: failed (bisect log)

Sample crash report:
ntfs3: loop0: RAW NTFS volume: Filesystem size 0.00 Gb > volume size 0.00 Gb. Mount in read-only
ntfs3: loop0: failed to read volume at offset 0x120000
ntfs3: loop0: Failed to load $Extend.
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
Mem abort info:
  ESR = 0x0000000096000006
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x06: level 2 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000006
  CM = 0, WnR = 0
user pgtable: 4k pages, 48-bit VAs, pgdp=000000010966a000
[0000000000000008] pgd=08000001096bb003, p4d=08000001096bb003, pud=0800000104957003, pmd=0000000000000000
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 3030 Comm: syz-executor407 Not tainted 6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : d_flags_for_inode fs/dcache.c:1980 [inline]
pc : __d_instantiate+0x2a0/0x2e4 fs/dcache.c:1998
lr : d_flags_for_inode fs/dcache.c:1979 [inline]
lr : __d_instantiate+0x80/0x2e4 fs/dcache.c:1998
sp : ffff8000126fbac0
x29: ffff8000126fbac0 x28: 0000000040000000 x27: ffff0000cb620000
x26: ffff80000cf00000 x25: fffffc0000000000 x24: 000000000001f000
x23: ffff0000cb620000 x22: 0000000000000008 x21: 0000000000000000
x20: ffff0000ca8f4e48 x19: ffff0000c9903c30 x18: 00000000000000c0
x17: ffff80000dd0b198 x16: ffff80000db49158 x15: ffff0000c5e24f80
x14: 00000000000000b8 x13: 00000000ffffffff x12: ffff0000c5e24f80
x11: ff808000085e0c80 x10: 0000000000000000 x9 : ffff0000c5e24f80
x8 : 0000000000000000 x7 : ffff8000085e1004 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 d_flags_for_inode fs/dcache.c:1980 [inline]
 __d_instantiate+0x2a0/0x2e4 fs/dcache.c:1998
 d_instantiate fs/dcache.c:2036 [inline]
 d_make_root+0x64/0xa8 fs/dcache.c:2071
 ntfs_fill_super+0x1420/0x14a4 fs/ntfs/super.c:180
 get_tree_bdev+0x1e8/0x2a0 fs/super.c:1323
 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1358
 vfs_get_tree+0x40/0x140 fs/super.c:1530
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x914 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2c4/0x3c4 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: 79000688 52a00417 17ffff83 f9401288 (f9400508) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	79000688 	strh	w8, [x20, #2]
   4:	52a00417 	mov	w23, #0x200000              	// #2097152
   8:	17ffff83 	b	0xfffffffffffffe14
   c:	f9401288 	ldr	x8, [x20, #32]
* 10:	f9400508 	ldr	x8, [x8, #8] <-- trapping instruction

Crashes (77):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-arm64 2022/10/02 21:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config log report syz C BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/09/24 21:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 0042f2b4 .config log report syz C BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/09/13 15:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 a08652b0 .config log report syz C BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci2-upstream-fs 2022/10/03 09:13 upstream a962b54e162c feb56351 .config log report syz C general protection fault in __d_instantiate
ci2-upstream-fs 2022/09/25 02:07 upstream 3db61221f4e8 0042f2b4 .config log report syz C general protection fault in __d_instantiate
ci-upstream-gce-arm64 2022/11/15 04:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9e4ce762f0e7 943f4cb8 .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/11/12 15:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/11/11 04:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/10/16 20:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/10/11 12:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2b253ced .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/10/01 03:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/09/26 14:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 d59ba983 .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/09/21 17:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 4a4a085d97ce 380f82fb .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/09/19 11:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/09/19 08:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/09/17 22:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/09/13 15:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 a08652b0 .config log report info BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci2-upstream-fs 2022/11/21 08:12 upstream eb7081409f94 5bb70014 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/21 06:25 upstream eb7081409f94 5bb70014 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/20 11:34 upstream fe24a97cf254 5bb70014 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/20 03:39 upstream fe24a97cf254 5bb70014 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/19 14:28 upstream ab290eaddc4c 5bb70014 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/19 05:52 upstream ab290eaddc4c 5bb70014 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/18 14:03 upstream 84368d882b96 5bb70014 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/18 02:50 upstream 81ac25651a62 4ba8ab94 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/17 13:56 upstream cc675d22e422 3a127a31 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/16 19:43 upstream 59d0d52c30d4 3a127a31 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/16 00:53 upstream 81e7cfa3a9eb 3a127a31 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/15 12:23 upstream e01d50cbd6ee 97de9cfc .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/14 21:09 upstream 094226ad94f4 943f4cb8 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/14 17:34 upstream 094226ad94f4 943f4cb8 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/14 06:15 upstream af7a05689189 7ba4d859 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/13 22:50 upstream af7a05689189 7ba4d859 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/13 12:07 upstream fef7fd48922d f42ee5d8 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/12 11:02 upstream 8f2975c2bb4c f42ee5d8 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/10 22:16 upstream 1767a722a708 3ead01ad .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/09 21:53 upstream f141df371335 bebca8b7 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/09 12:49 upstream f141df371335 5fa28208 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/08 19:09 upstream 59f2f4b8a757 060f945e .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/08 13:51 upstream 59f2f4b8a757 060f945e .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/06 15:46 upstream b208b9fbbcba 6d752409 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/04 22:07 upstream ee6050c8af96 6d752409 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/04 18:12 upstream ee6050c8af96 6d752409 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/04 13:04 upstream ee6050c8af96 6d752409 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/03 09:52 upstream b229b6ca5abb 7a2ebf95 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/03 08:47 upstream b229b6ca5abb 7a2ebf95 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/02 23:55 upstream b229b6ca5abb 08977f5d .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/02 04:55 upstream b229b6ca5abb 08977f5d .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/01 07:12 upstream b229b6ca5abb a1d8560a .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/31 01:30 upstream b229b6ca5abb 2a71366b .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/26 22:10 upstream 4dc12f37a8e9 86777b7f .config log report info general protection fault in __d_instantiate
ci-upstream-kasan-gce-smack-root 2022/10/26 08:57 upstream 4dc12f37a8e9 1984aebd .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/25 04:52 upstream 337a0a0b63f1 45645420 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/23 23:29 upstream d47136c28015 23bf86af .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/23 16:59 upstream d47136c28015 23bf86af .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/22 19:14 upstream 440b7895c990 c0b80a55 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/20 01:16 upstream 493ffd6605b2 b31320fc .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/19 14:18 upstream 493ffd6605b2 b31320fc .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/19 09:21 upstream 493ffd6605b2 b31320fc .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/18 02:45 upstream 493ffd6605b2 94744d21 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/18 02:27 upstream 493ffd6605b2 94744d21 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/17 21:29 upstream 493ffd6605b2 94744d21 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/17 00:32 upstream 493ffd6605b2 67cb024c .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/15 12:14 upstream 493ffd6605b2 67cb024c .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/14 14:42 upstream 493ffd6605b2 4954e4b2 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/14 10:52 upstream 493ffd6605b2 4954e4b2 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/11 13:01 upstream 493ffd6605b2 5bcf0c31 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/09 06:21 upstream a6afa4199d3d aea5da89 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/09 01:16 upstream a6afa4199d3d aea5da89 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/07 17:04 upstream 4c86114194e6 79a59635 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/07 05:47 upstream 833477fce7a1 80b58a42 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/02 21:14 upstream b357fd1c2afc feb56351 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/01 22:07 upstream ffb4d94b4314 feb56351 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/01 16:03 upstream ffb4d94b4314 feb56351 .config log report info general protection fault in __d_instantiate
ci2-upstream-fs 2022/09/29 19:47 upstream c3e0e1e23c70 45fd7169 .config log report info general protection fault in __d_instantiate
* Struck through repros no longer work on HEAD.