syzbot


KASAN: slab-out-of-bounds Read in ntfs_fill_super

Status: upstream: reported C repro on 2022/10/01 14:27
Reported-by: syzbot+bd6d0c83fe8442ad6ef5@syzkaller.appspotmail.com
First crash: 56d, last: 13d

Cause bisection: failed (bisect log)

Sample crash report:
ntfs3: loop5: RAW NTFS volume: Filesystem size 0.00 Gb > volume size 0.00 Gb. Mount in read-only
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 3634 Comm: syz-executor307 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:ntfs_init_from_boot fs/ntfs3/super.c:844 [inline]
RIP: 0010:ntfs_fill_super+0x13b3/0x37f0 fs/ntfs3/super.c:935
Code: 48 c1 ea 03 80 3c 02 00 0f 85 a6 20 00 00 48 8b 04 24 4c 89 e2 48 c1 ea 03 4c 89 a0 80 00 00 00 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e a6 20 00 00 49 8d 7c 24 04 41
RSP: 0018:ffffc900040dfbc8 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: ffff88807be74000 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff82ac1571 RDI: ffff88807d756080
RBP: ffff88807d756000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 46203a656d756c6f R12: 0000000000000010
R13: 0000000000000000 R14: 00000000000001ff R15: ffff8880733a2ae0
FS:  0000555555a6b300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ee12339000 CR3: 0000000026269000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 get_tree_bdev+0x440/0x760 fs/super.c:1323
 vfs_get_tree+0x89/0x2f0 fs/super.c:1530
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1326/0x1e20 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]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd08c0d311a
Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc712f0548 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fd08c0d311a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffc712f0560
RBP: 00007ffc712f0560 R08: 00007ffc712f05a0 R09: 0000555555a6b2c0
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000005
R13: 00007ffc712f05a0 R14: 0000000000000037 R15: 0000000020000728
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ntfs_init_from_boot fs/ntfs3/super.c:844 [inline]
RIP: 0010:ntfs_fill_super+0x13b3/0x37f0 fs/ntfs3/super.c:935
Code: 48 c1 ea 03 80 3c 02 00 0f 85 a6 20 00 00 48 8b 04 24 4c 89 e2 48 c1 ea 03 4c 89 a0 80 00 00 00 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e a6 20 00 00 49 8d 7c 24 04 41
RSP: 0018:ffffc900040dfbc8 EFLAGS: 00010212

RAX: dffffc0000000000 RBX: ffff88807be74000 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff82ac1571 RDI: ffff88807d756080
RBP: ffff88807d756000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 46203a656d756c6f R12: 0000000000000010
R13: 0000000000000000 R14: 00000000000001ff R15: ffff8880733a2ae0
FS:  0000555555a6b300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ee12339000 CR3: 0000000026269000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	48 c1 ea 03          	shr    $0x3,%rdx
   4:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   8:	0f 85 a6 20 00 00    	jne    0x20b4
   e:	48 8b 04 24          	mov    (%rsp),%rax
  12:	4c 89 e2             	mov    %r12,%rdx
  15:	48 c1 ea 03          	shr    $0x3,%rdx
  19:	4c 89 a0 80 00 00 00 	mov    %r12,0x80(%rax)
  20:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  27:	fc ff df
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	74 08                	je     0x3a
  32:	3c 03                	cmp    $0x3,%al
  34:	0f 8e a6 20 00 00    	jle    0x20e0
  3a:	49 8d 7c 24 04       	lea    0x4(%r12),%rdi
  3f:	41                   	rex.B

Crashes (16):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/10/20 15:31 upstream 55be6084c8e0 b31320fc .config log report syz C general protection fault in ntfs_fill_super
ci2-upstream-fs 2022/10/10 17:12 upstream 493ffd6605b2 5bcf0c31 .config log report syz C general protection fault in ntfs_fill_super
ci-upstream-kasan-gce-root 2022/10/12 17:17 upstream 55be6084c8e0 89b5a509 .config log report info KASAN: slab-out-of-bounds Read in ntfs_fill_super
ci-upstream-kasan-gce-root 2022/10/10 19:43 upstream 4899a36f91a9 aea5da89 .config log report info KASAN: slab-out-of-bounds Read in ntfs_fill_super
ci-upstream-kasan-gce-root 2022/10/01 08:59 upstream ffb4d94b4314 feb56351 .config log report info KASAN: slab-out-of-bounds Read in ntfs_fill_super
ci2-upstream-fs 2022/11/13 05:49 upstream fef7fd48922d f42ee5d8 .config log report info KASAN: slab-out-of-bounds Write in ntfs_fill_super
ci2-upstream-fs 2022/10/23 07:03 upstream 4da34b7d175d c0b80a55 .config log report info general protection fault in ntfs_fill_super
ci2-upstream-fs 2022/10/17 20:44 upstream 493ffd6605b2 94744d21 .config log report info general protection fault in ntfs_fill_super
ci2-upstream-fs 2022/10/11 07:06 upstream 493ffd6605b2 5bcf0c31 .config log report info general protection fault in ntfs_fill_super
ci2-upstream-fs 2022/10/10 15:41 upstream 493ffd6605b2 5bcf0c31 .config log report info general protection fault in ntfs_fill_super
ci2-upstream-fs 2022/10/10 05:02 upstream 4899a36f91a9 aea5da89 .config log report info general protection fault in ntfs_fill_super
ci2-upstream-fs 2022/10/07 21:40 upstream 4c86114194e6 79a59635 .config log report info KASAN: stack-out-of-bounds Read in ntfs_fill_super
ci2-upstream-fs 2022/10/07 13:11 upstream 4c86114194e6 79a59635 .config log report info KASAN: stack-out-of-bounds Read in ntfs_fill_super
ci2-upstream-fs 2022/10/07 06:37 upstream 833477fce7a1 80b58a42 .config log report info KASAN: stack-out-of-bounds Read in ntfs_fill_super
ci2-upstream-fs 2022/10/07 03:17 upstream 833477fce7a1 80b58a42 .config log report info KASAN: stack-out-of-bounds Read in ntfs_fill_super
ci2-upstream-fs 2022/10/06 20:29 upstream 833477fce7a1 80b58a42 .config log report info KASAN: stack-out-of-bounds Read in ntfs_fill_super
* Struck through repros no longer work on HEAD.