syzbot


BUG: unable to handle kernel NULL pointer dereference in ni_find_attr

Status: fixed on 2023/02/24 13:51
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+69d15cab6309bffae739@syzkaller.appspotmail.com
Fix commit: 2681631c2973 fs/ntfs3: Add null pointer check to attr_load_runs_vcn
First crash: 660d, last: 524d
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
  
Fix bisection: fixed by (bisect log) :
commit 2681631c29739509eec59cc0b34e977bb04c6cf1
Author: Edward Lo <edward.lo@ambergroup.io>
Date: Sat Aug 6 17:05:18 2022 +0000

  fs/ntfs3: Add null pointer check to attr_load_runs_vcn

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] BUG: unable to handle kernel NULL pointer dereference in ni_find_attr 1 (4) 2023/02/06 10:20
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: slab-out-of-bounds Read in ni_find_attr 1 427d 427d 0/3 auto-obsoleted due to no activity on 2023/08/11 10:25

Sample crash report:
loop0: detected capacity change from 0 to 4096
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=000000010b506000
[0000000000000238] pgd=080000010b5f7003, p4d=080000010b5f7003, pud=080000010bb5b003, pmd=0000000000000000
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3079 Comm: syz-executor754 Not tainted 6.1.0-rc6-syzkaller-32662-g6d464646530f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/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 : ffff80000fb9b840
x29: ffff80000fb9b870 x28: 0000000000000000 x27: 00000000fffffffe
x26: 0000000000000000 x25: 0000000000000000 x24: ffff80000fb9b8d4
x23: 0000000000000000 x22: 0000000000000080 x21: 0000000000000000
x20: 0000000000000000 x19: 0000000000000000 x18: 0000000000000027
x17: ffff80000dda8198 x16: 0000000000000000 x15: 0000000000000000
x14: 0000000000000000 x13: 00000000fffffffe x12: ffff80000d59ee98
x11: ff80800008bf2cb4 x10: 0000000000000000 x9 : ffff800008bf2cb4
x8 : ffff0000c678cec0 x7 : 0000000000000000 x6 : ffff80000fb9b8d4
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
 mi_get+0x70/0x168 fs/ntfs3/record.c:85
 ni_load_mi_ex fs/ntfs3/frecord.c:148 [inline]
 ni_load_mi fs/ntfs3/frecord.c:178 [inline]
 ni_enum_attr_ex+0x144/0x29c fs/ntfs3/frecord.c:268
 ntfs_read_mft fs/ntfs3/inode.c:114 [inline]
 ntfs_iget5+0xf44/0x138c fs/ntfs3/inode.c:501
 ntfs_fill_super+0xb70/0x14a4 fs/ntfs3/super.c:994
 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/0x164 arch/arm64/kernel/syscall.c:206
 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: aa0103fa aa0003f3 f81f83a8 97dacb2a (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:	97dacb2a 	bl	0xffffffffff6b2cb4
* 10:	f9411e7b 	ldr	x27, [x19, #568] <-- trapping instruction

Crashes (81):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/28 09:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 74a66371 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/08/23 16:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1c23f9e627a7 cea8b0f7 .config console log report syz C ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/12/15 22:54 upstream 041fae9c105a 6f9c033e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root general protection fault in ni_find_attr
2022/08/29 09:02 upstream 8379c0b31fbc 07177916 .config strace log report syz C ci-upstream-kasan-gce-root general protection fault in ni_find_attr
2022/11/29 04:30 upstream b7b275e60bcd ca9683b8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in ni_find_attr
2023/01/06 13:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 247f34f7b803 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2023/01/06 11:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 247f34f7b803 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2023/01/05 23:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 247f34f7b803 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2023/01/04 08:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2023/01/03 03:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2023/01/02 10:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2023/01/01 15:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/12/31 06:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/12/27 08:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/12/26 23:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/12/26 09:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/12/25 18:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/12/25 04:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/12/25 02:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/12/24 19:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/12/24 11:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/12/22 16:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 c692fab1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/11/09 11:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 56751c56c2a2 5fa28208 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/10/29 11:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 899d812a .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/10/28 22:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 ea12ae9b .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/10/25 12:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 45645420 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/10/15 10:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/10/12 06:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 16a9c9e0 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/09/10 12:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 356d8217 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/09/10 02:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 92221e2af10d 356d8217 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/09/08 17:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c f3027468 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/09/07 08:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c 5fc30c37 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/09/05 16:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e 922294ab .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/09/04 11:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e 28811d0a .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/09/02 04:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e a805568e .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/08/29 22:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 5b44472d .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/08/27 23:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 07177916 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/08/25 03:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 514514f6 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/08/23 16:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1c23f9e627a7 cea8b0f7 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ni_find_attr
2022/11/09 04:20 upstream f141df371335 5fa28208 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in ni_find_attr
2022/11/07 00:47 upstream 089d1c31224e 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/29 20:28 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/27 21:56 upstream b229b6ca5abb 5c716ff6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/26 04:53 upstream 1a2dcbdde82e 2159e4d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/25 19:14 upstream 337a0a0b63f1 45645420 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/25 01:53 upstream 247f34f7b803 faae2fda .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/24 18:45 upstream 247f34f7b803 faae2fda .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/24 13:17 upstream 247f34f7b803 faae2fda .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/23 07:33 upstream 4da34b7d175d c0b80a55 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/22 14:28 upstream 440b7895c990 c0b80a55 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/22 12:10 upstream 440b7895c990 c0b80a55 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/21 11:32 upstream 6d36c728bc2e 63e790dd .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/21 05:50 upstream 493ffd6605b2 a0fd4dab .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/20 03:04 upstream 493ffd6605b2 b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/18 08:46 upstream 493ffd6605b2 94744d21 .config console log report info ci2-upstream-fs general protection fault in ni_find_attr
2022/10/16 21:54 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/15 16:35 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/14 04:09 upstream 493ffd6605b2 4954e4b2 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/10/14 02:28 upstream 493ffd6605b2 4954e4b2 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ni_find_attr
2022/09/29 03:33 linux-next aaa11ce2ffc8 e2556bc3 .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root general protection fault in ni_find_attr
* Struck through repros no longer work on HEAD.