syzbot


BUG: unable to handle kernel NULL pointer dereference in __d_instantiate

Status: upstream: reported C repro on 2022/09/13 19:51
Subsystems: ntfs3 (incorrect?)
Reported-by: syzbot+29dc75ed37be943c610e@syzkaller.appspotmail.com
First crash: 192d, last: 20d

Cause bisection: failed (error log, bisect log)

Sample crash report:
loop0: detected capacity change from 0 to 4096
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=000000010d11c000
[0000000000000008] pgd=080000010d116003, p4d=080000010d116003, pud=080000010b3b6003, pmd=0000000000000000
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3072 Comm: syz-executor354 Not tainted 6.1.0-rc8-syzkaller-33330-ga5541c0811a0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/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 : ffff800012f4bac0
x29: ffff800012f4bac0 x28: 0000000040000000 x27: ffff0000cd0a0000
x26: ffff80000cf6e000 x25: fffffc0000000000 x24: 000000000001f000
x23: ffff0000cd0a0000 x22: 0000000000000008 x21: 0000000000000000
x20: ffff0000c05a5530 x19: ffff0000c9f48138 x18: 000000000000ba7e
x17: 000000000000b67e x16: ffff80000dbe6158 x15: ffff0000c434b480
x14: 00000000000000b8 x13: 00000000ffffffff x12: ffff0000c434b480
x11: ff808000085f41e4 x10: 0000000000000000 x9 : ffff0000c434b480
x8 : 0000000000000000 x7 : ffff8000085f4568 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/ntfs3/super.c:1269
 get_tree_bdev+0x1e8/0x2a0 fs/super.c:1324
 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1358
 vfs_get_tree+0x40/0x140 fs/super.c:1531
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x890 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/0x140 arch/arm64/kernel/syscall.c:197
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584
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

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-fs 2023/03/04 08:09 upstream 0988a0ea7919 05494336 .config console log report syz C
ci2-upstream-fs 2023/02/02 06:07 upstream 9f266ccaa2f5 05494336 .config console log report syz C
* Struck through repros no longer work on HEAD.
Crashes (84):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-gce-arm64 2022/12/18 20:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 05494336 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
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 console log report syz C [disk image] [vmlinux] 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 console log report syz C [disk image] [vmlinux] 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 console log report syz C [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci2-upstream-fs 2022/12/18 08:50 upstream f9ff5644bcc0 05494336 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/03 09:13 upstream a962b54e162c feb56351 .config strace log report syz C [disk image] [vmlinux] general protection fault in __d_instantiate
ci2-upstream-fs 2022/09/25 02:07 upstream 3db61221f4e8 0042f2b4 .config strace log report syz C general protection fault in __d_instantiate
ci-upstream-gce-arm64 2022/12/29 10:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-gce-arm64 2022/12/18 04:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] BUG: unable to handle kernel NULL pointer dereference 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 console log report info [disk image] [vmlinux] [kernel image] 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 console log report info [disk image] [vmlinux] [kernel image] 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 console log report info [disk image] [vmlinux] [kernel image] 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 console log report info [disk image] [vmlinux] 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 console log report info [disk image] [vmlinux] 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 console log report info [disk image] [vmlinux] 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 console log report info [disk image] [vmlinux] 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 console log report info [disk image] [vmlinux] 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 console log report info [disk image] [vmlinux] 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 console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __d_instantiate
ci-upstream-kasan-gce-smack-root 2022/12/19 13:03 upstream f9ff5644bcc0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/12/05 17:55 upstream 76dcd734eca2 045cbb84 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/21 08:12 upstream eb7081409f94 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/21 06:25 upstream eb7081409f94 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/20 11:34 upstream fe24a97cf254 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/20 03:39 upstream fe24a97cf254 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/19 14:28 upstream ab290eaddc4c 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/19 05:52 upstream ab290eaddc4c 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/18 14:03 upstream 84368d882b96 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/18 02:50 upstream 81ac25651a62 4ba8ab94 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/17 13:56 upstream cc675d22e422 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/16 19:43 upstream 59d0d52c30d4 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/16 00:53 upstream 81e7cfa3a9eb 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/15 12:23 upstream e01d50cbd6ee 97de9cfc .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/14 21:09 upstream 094226ad94f4 943f4cb8 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/14 17:34 upstream 094226ad94f4 943f4cb8 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/14 06:15 upstream af7a05689189 7ba4d859 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/13 22:50 upstream af7a05689189 7ba4d859 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/13 12:07 upstream fef7fd48922d f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/12 11:02 upstream 8f2975c2bb4c f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/10 22:16 upstream 1767a722a708 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/09 21:53 upstream f141df371335 bebca8b7 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/09 12:49 upstream f141df371335 5fa28208 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/08 19:09 upstream 59f2f4b8a757 060f945e .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/08 13:51 upstream 59f2f4b8a757 060f945e .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/06 15:46 upstream b208b9fbbcba 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/04 22:07 upstream ee6050c8af96 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/04 18:12 upstream ee6050c8af96 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/04 13:04 upstream ee6050c8af96 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/03 09:52 upstream b229b6ca5abb 7a2ebf95 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/03 08:47 upstream b229b6ca5abb 7a2ebf95 .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/02 23:55 upstream b229b6ca5abb 08977f5d .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/02 04:55 upstream b229b6ca5abb 08977f5d .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/11/01 07:12 upstream b229b6ca5abb a1d8560a .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/31 01:30 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/26 22:10 upstream 4dc12f37a8e9 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci-upstream-kasan-gce-smack-root 2022/10/26 08:57 upstream 4dc12f37a8e9 1984aebd .config console log report info [disk image] [vmlinux] [kernel image] general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/25 04:52 upstream 337a0a0b63f1 45645420 .config console log report info [disk image] [vmlinux] general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/23 23:29 upstream d47136c28015 23bf86af .config console log report info [disk image] [vmlinux] general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/23 16:59 upstream d47136c28015 23bf86af .config console log report info [disk image] [vmlinux] general protection fault in __d_instantiate
ci2-upstream-fs 2022/10/01 16:03 upstream ffb4d94b4314 feb56351 .config console log report info [disk image] [vmlinux] general protection fault in __d_instantiate
ci2-upstream-fs 2022/09/29 19:47 upstream c3e0e1e23c70 45fd7169 .config console log report info [disk image] [vmlinux] general protection fault in __d_instantiate
* Struck through repros no longer work on HEAD.