syzbot


BUG: unable to handle kernel NULL pointer dereference in ni_find_attr

Status: upstream: reported C repro on 2022/08/24 16:36
Reported-by: syzbot+69d15cab6309bffae739@syzkaller.appspotmail.com
First crash: 95d, last: 17d

Cause bisection: introduced by (bisect log) :
commit 6e5be40d32fb1907285277c02e74493ed43d77fe
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Fri Aug 13 14:21:30 2021 +0000

  fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

Crash: general protection fault in ni_find_attr (log)
Repro: C syz .config

Sample crash report:
loop0: detected capacity change from 0 to 75
ntfs3: loop0: RAW NTFS volume: Filesystem size 0.00 Gb > volume size 0.00 Gb. Mount in read-only
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000238
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=0000000107c58000
[0000000000000238] pgd=0800000108ac7003, p4d=0800000108ac7003, pud=0800000109389003, pmd=0000000000000000
Internal error: Oops: 96000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3028 Comm: syz-executor245 Not tainted 6.0.0-rc2-syzkaller-16440-g1c23f9e627a7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/20/2022
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ni_find_attr+0x54/0x43c fs/ntfs3/frecord.c:194
lr : ni_find_attr+0x54/0x43c fs/ntfs3/frecord.c:190
sp : ffff80001200b8f0
x29: ffff80001200b920 x28: 0000000000000000 x27: 00000000fffffffe
x26: 0000000000000000 x25: 0000000000000000 x24: ffff80001200b984
x23: 0000000000000000 x22: 0000000000000080 x21: 0000000000000000
x20: 0000000000000000 x19: 0000000000000000 x18: 00000000000000c0
x17: ffff80000dd7a698 x16: 0000000000000000 x15: 0000000000000000
x14: 0000000000000000 x13: 00000000fffffffe x12: ffff80000d5998c8
x11: ff80800008be8ec0 x10: 0000000000000000 x9 : ffff800008be8ec0
x8 : ffff0000c5569a80 x7 : 0000000000000000 x6 : ffff80001200b984
x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000080
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 ni_find_attr+0x54/0x43c fs/ntfs3/frecord.c:190
 attr_load_runs_vcn+0x6c/0x138 fs/ntfs3/attrib.c:1220
 mi_read+0x178/0x274 fs/ntfs3/record.c:151
 ntfs_read_mft fs/ntfs3/inode.c:69 [inline]
 ntfs_iget5+0x15c/0x138c fs/ntfs3/inode.c:501
 ntfs_fill_super+0x950/0x14a4 fs/ntfs/super.c:2791
 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+0x2f8/0x408 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/0x154 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:624
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:642
 el0t_64_sync+0x18c/0x190
Code: aa0103fa aa0003f3 f81f83a8 97daea83 (f9411e7b) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	aa0103fa 	mov	x26, x1
   4:	aa0003f3 	mov	x19, x0
   8:	f81f83a8 	stur	x8, [x29, #-8]
   c:	97daea83 	bl	0xffffffffff6baa18
* 10:	f9411e7b 	ldr	x27, [x19, #568] <-- trapping instruction

Crashes (61):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-arm64 2022/08/23 16:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1c23f9e627a7 cea8b0f7 .config log report syz C BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-kasan-gce-root 2022/08/29 09:02 upstream 8379c0b31fbc 07177916 .config log report syz C general protection fault in ni_find_attr
ci-upstream-gce-arm64 2022/11/09 11:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 56751c56c2a2 5fa28208 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/10/29 11:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 899d812a .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/10/28 22:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 ea12ae9b .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/10/25 12:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 45645420 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/10/15 10:14 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 ni_find_attr
ci-upstream-gce-arm64 2022/10/12 06:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 16a9c9e0 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/10/08 15:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 aea5da89 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/10/08 11:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 aea5da89 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/10/02 04:34 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 ni_find_attr
ci-upstream-gce-arm64 2022/09/29 13:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 1d385642 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/28 20:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 e2556bc3 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/24 20:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 0042f2b4 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/24 16:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 0042f2b4 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/24 07:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 0042f2b4 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/22 17:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aa49f95768a9 0042f2b4 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/21 02:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5aa266bb455b c4b8ccfd .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/20 17:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5aa266bb455b 7c41a9ba .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/14 17:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 b884348d .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/14 13:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 b884348d .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/14 02:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 b884348d .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/12 23:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 f371ed7e .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/10 12:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 356d8217 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/10 02:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 92221e2af10d 356d8217 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/08 17:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c f3027468 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/07 08:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c 5fc30c37 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/05 16:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e 922294ab .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/04 11:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e 28811d0a .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/09/02 04:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e a805568e .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/08/29 22:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 5b44472d .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/08/27 23:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 07177916 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/08/25 03:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 514514f6 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci-upstream-gce-arm64 2022/08/23 16:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1c23f9e627a7 cea8b0f7 .config log report info BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
ci2-upstream-fs 2022/11/09 04:20 upstream f141df371335 5fa28208 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/11/07 00:47 upstream 089d1c31224e 6d752409 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/29 20:28 upstream b229b6ca5abb 2a71366b .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/27 21:56 upstream b229b6ca5abb 5c716ff6 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/26 04:53 upstream 1a2dcbdde82e 2159e4d2 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/25 19:14 upstream 337a0a0b63f1 45645420 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/25 01:53 upstream 247f34f7b803 faae2fda .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/24 18:45 upstream 247f34f7b803 faae2fda .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/24 13:17 upstream 247f34f7b803 faae2fda .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/23 07:33 upstream 4da34b7d175d c0b80a55 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/22 14:28 upstream 440b7895c990 c0b80a55 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/22 12:10 upstream 440b7895c990 c0b80a55 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/21 11:32 upstream 6d36c728bc2e 63e790dd .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/21 05:50 upstream 493ffd6605b2 a0fd4dab .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/20 03:04 upstream 493ffd6605b2 b31320fc .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/18 08:46 upstream 493ffd6605b2 94744d21 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/16 21:54 upstream 493ffd6605b2 67cb024c .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/15 16:35 upstream 493ffd6605b2 67cb024c .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/14 04:09 upstream 493ffd6605b2 4954e4b2 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/14 02:28 upstream 493ffd6605b2 4954e4b2 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/12 02:39 upstream 493ffd6605b2 02b6492e .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/11 19:21 upstream 493ffd6605b2 02b6492e .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/11 05:20 upstream 493ffd6605b2 5bcf0c31 .config log report info general protection fault in ni_find_attr
ci2-upstream-fs 2022/10/10 12:19 upstream 4899a36f91a9 aea5da89 .config log report info general protection fault in ni_find_attr
ci-upstream-linux-next-kasan-gce-root 2022/09/29 03:33 linux-next aaa11ce2ffc8 e2556bc3 .config log report info general protection fault in ni_find_attr
ci-upstream-linux-next-kasan-gce-root 2022/09/28 18:20 linux-next aaa11ce2ffc8 e2556bc3 .config log report info general protection fault in ni_find_attr
* Struck through repros no longer work on HEAD.