syzbot


BUG: unable to handle kernel paging request in attr_data_read_resident

Status: auto-obsoleted due to no activity on 2024/09/09 09:56
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+33a67f9990381cc8951c@syzkaller.appspotmail.com
First crash: 484d, last: 136d
Cause bisection: introduced by (bisect log) :
commit ad26a9c84510af7252e582e811de970433a9758f
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Fri Oct 7 17:08:06 2022 +0000

  fs/ntfs3: Fixing wrong logic in attr_set_size and ntfs_fallocate

Crash: BUG: unable to handle kernel NULL pointer dereference in attr_data_read_resident (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 6f861765464f43a71462d52026fbddfc858239a5
Author: Jan Kara <jack@suse.cz>
Date: Wed Nov 1 17:43:10 2023 +0000

  fs: Block writes to mounted block devices

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] BUG: unable to handle kernel paging request in attr_data_read_resident 0 (3) 2024/07/23 23:58
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in attr_data_read_resident ntfs3 2 589d 620d 0/28 auto-obsoleted due to no activity on 2023/06/03 13:38
Last patch testing requests (11)
Created Duration User Patch Repo Result
2024/06/20 04:21 32m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/05/29 23:30 20m retest repro upstream OK log
2024/05/29 17:02 3h53m retest repro upstream OK log
2024/05/29 16:33 23m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/05/29 15:49 25m retest repro upstream OK log
2024/05/29 15:47 22m retest repro upstream OK log
2024/03/11 01:47 24m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/03/11 01:47 23m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/03/11 01:47 21m retest repro upstream OK log
2024/02/25 22:46 44m retest repro upstream report log
2023/10/05 09:40 1h03m almaz.alexandrovich@paragon-software.com https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master report log

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512).
ntfs3: loop0: Mark volume as dirty due to NTFS errors
Unable to handle kernel paging request at virtual address dfff800000000004
KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027]
Mem abort info:
  ESR = 0x0000000096000005
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x05: level 1 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
  CM = 0, WnR = 0, TnD = 0, TagAccess = 0
  GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[dfff800000000004] address between user and kernel address ranges
Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 6239 Comm: syz-executor387 Not tainted 6.9.0-rc7-syzkaller-gfda5695d692c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : attr_data_read_resident+0xb0/0x6b0 fs/ntfs3/attrib.c:1239
lr : attr_data_read_resident+0x8c/0x6b0 fs/ntfs3/attrib.c:1236
sp : ffff80009a137500
x29: ffff80009a137500 x28: 1ffff00013426ec4 x27: ffff80009a137620
x26: dfff800000000000 x25: ffff80009a137610 x24: dfff800000000000
x23: ffff0000dbe9f600 x22: 1ffff00013426ec2 x21: 0000000000000020
x20: ffff0000d7376108 x19: 0000000000000000 x18: ffff80009a137040
x17: 000000000000cb37 x16: ffff800080288ddc x15: 0000000000000001
x14: 0000000000000000 x13: 0000000000000001 x12: ffff0000d4ec3c80
x11: 0000000000ff0100 x10: 0000000000ff0100 x9 : 0000000000000000
x8 : 0000000000000004 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000
x2 : 0000000000000080 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 attr_data_read_resident+0xb0/0x6b0 fs/ntfs3/attrib.c:1239
 ntfs_get_block_vbo+0x2b0/0xc18 fs/ntfs3/inode.c:580
 ntfs_get_block_bmap+0xa0/0xe0 fs/ntfs3/inode.c:695
 generic_block_bmap+0x11c/0x1bc fs/buffer.c:2744
 ntfs_bmap+0x30/0x40 fs/ntfs3/inode.c:702
 bmap+0xa8/0xe8 fs/inode.c:1792
 ioctl_fibmap fs/ioctl.c:77 [inline]
 file_ioctl fs/ioctl.c:328 [inline]
 do_vfs_ioctl+0x21d0/0x2ab0 fs/ioctl.c:883
 __do_sys_ioctl fs/ioctl.c:902 [inline]
 __se_sys_ioctl fs/ioctl.c:890 [inline]
 __arm64_sys_ioctl+0xe4/0x1c8 fs/ioctl.c:890
 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712
 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598
Code: 128002a0 14000120 91008275 d343fea8 (38786908) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	128002a0 	mov	w0, #0xffffffea            	// #-22
   4:	14000120 	b	0x484
   8:	91008275 	add	x21, x19, #0x20
   c:	d343fea8 	lsr	x8, x21, #3
* 10:	38786908 	ldrb	w8, [x8, x24] <-- trapping instruction

Crashes (27):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/01 09:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c 3113787f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2023/11/23 06:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 03e12510 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2023/11/03 17:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c c4ac074c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2023/06/18 23:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 177239177378 f3921d4d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2024/03/16 01:10 upstream fe46a7dd189e d615901c .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root general protection fault in attr_data_read_resident
2024/02/11 22:25 upstream 7521f258ea30 77b23aa1 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root general protection fault in attr_data_read_resident
2024/01/19 00:29 upstream 296455ade1fd 239abf84 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root general protection fault in attr_data_read_resident
2023/11/13 03:02 upstream b57b17e88bf5 6d6dbf8a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root general protection fault in attr_data_read_resident
2023/07/19 05:12 upstream 74f1456c4a5f 022df2bb .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root general protection fault in attr_data_read_resident
2024/05/15 15:45 upstream 1b294a1f3561 7e8e0c0f .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream general protection fault in attr_data_read_resident
2024/06/01 09:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2024/05/07 03:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 78186bd77b47 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2024/04/23 15:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6a71d2909427 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2024/04/23 09:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6a71d2909427 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2024/04/02 00:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2024/02/04 23:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 41bccc98fb79 a67b2c42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2024/01/11 11:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2023/11/03 16:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c c4ac074c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2023/09/15 11:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2023/06/18 22:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 177239177378 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in attr_data_read_resident
2024/04/22 01:18 upstream 3b68086599f8 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in attr_data_read_resident
2023/10/17 02:27 upstream 58720809f527 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in attr_data_read_resident
2023/10/13 02:52 upstream 401644852d0b fc170927 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in attr_data_read_resident
2023/09/24 12:36 upstream 3aba70aed91f 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in attr_data_read_resident
2023/09/24 11:56 upstream 3aba70aed91f 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in attr_data_read_resident
2024/01/21 04:48 upstream 125514880ddd 9bd8dcda .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in attr_data_read_resident
2023/08/10 03:27 upstream cacc6e22932f 13ca4cd6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in attr_data_read_resident
* Struck through repros no longer work on HEAD.