syzbot


BUG: unable to handle kernel paging request in mi_init

Status: moderation: reported on 2025/01/03 03:13
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+d8ec598e67e7669e3304@syzkaller.appspotmail.com
First crash: 6d04h, last: 6d04h

Sample crash report:
loop0: detected capacity change from 0 to 4096
=======================================================
WARNING: The mand mount option has been deprecated and
         and is ignored by this kernel. Remove the mand
         option from the mount to silence this warning.
=======================================================
BUG: unable to handle page fault for address: ffffed11088b175b
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 5ffcd067 P4D 5ffcd067 PUD 0 
Oops: Oops: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5315 Comm: syz.0.0 Not tainted 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:mi_init+0x86/0xe0 fs/ntfs3/record.c:105
Code: 89 f0 48 c1 e8 03 42 0f b6 04 20 84 c0 75 5d 41 8b 3e be 40 0c 00 00 e8 08 ca 00 ff 48 89 c5 48 83 c3 20 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 5b 4d 0c ff 48 89 2b 31 c9 48 85
RSP: 0018:ffffc9000d41f690 EFLAGS: 00010a06
RAX: 1ffff110088b175c RBX: ffff88804458bae0 RCX: 0000000000000800
RDX: 0000000000000400 RSI: ffffffff8c5fb0c0 RDI: ffffffff8c5fb080
RBP: ffff888045a68000 R08: 0000000000000c40 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff2854931 R12: dffffc00ffffffff
R13: ffff888040f56000 R14: ffff888040f56030 R15: 000000000000000a
FS:  00007f28d7a876c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed11088b175b CR3: 00000000329fc000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ntfs_read_mft fs/ntfs3/inode.c:54 [inline]
 ntfs_iget5+0x372/0x37b0 fs/ntfs3/inode.c:537
 ntfs_fill_super+0x3e8e/0x4730 fs/ntfs3/super.c:1477
 get_tree_bdev_flags+0x48c/0x5c0 fs/super.c:1636
 vfs_get_tree+0x90/0x2b0 fs/super.c:1814
 do_new_mount+0x2be/0xb40 fs/namespace.c:3507
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4057 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f28d6b874ca
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f28d7a86e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f28d7a86ef0 RCX: 00007f28d6b874ca
RDX: 000000002001f700 RSI: 0000000020000000 RDI: 00007f28d7a86eb0
RBP: 000000002001f700 R08: 00007f28d7a86ef0 R09: 0000000001008040
R10: 0000000001008040 R11: 0000000000000246 R12: 0000000020000000
R13: 00007f28d7a86eb0 R14: 000000000001f729 R15: 0000000020000340
 </TASK>
Modules linked in:
CR2: ffffed11088b175b
---[ end trace 0000000000000000 ]---
RIP: 0010:mi_init+0x86/0xe0 fs/ntfs3/record.c:105
Code: 89 f0 48 c1 e8 03 42 0f b6 04 20 84 c0 75 5d 41 8b 3e be 40 0c 00 00 e8 08 ca 00 ff 48 89 c5 48 83 c3 20 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 5b 4d 0c ff 48 89 2b 31 c9 48 85
RSP: 0018:ffffc9000d41f690 EFLAGS: 00010a06
RAX: 1ffff110088b175c RBX: ffff88804458bae0 RCX: 0000000000000800
RDX: 0000000000000400 RSI: ffffffff8c5fb0c0 RDI: ffffffff8c5fb080
RBP: ffff888045a68000 R08: 0000000000000c40 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff2854931 R12: dffffc00ffffffff
R13: ffff888040f56000 R14: ffff888040f56030 R15: 000000000000000a
FS:  00007f28d7a876c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed11088b175b CR3: 00000000329fc000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 f0                	mov    %esi,%eax
   2:	48 c1 e8 03          	shr    $0x3,%rax
   6:	42 0f b6 04 20       	movzbl (%rax,%r12,1),%eax
   b:	84 c0                	test   %al,%al
   d:	75 5d                	jne    0x6c
   f:	41 8b 3e             	mov    (%r14),%edi
  12:	be 40 0c 00 00       	mov    $0xc40,%esi
  17:	e8 08 ca 00 ff       	call   0xff00ca24
  1c:	48 89 c5             	mov    %rax,%rbp
  1f:	48 83 c3 20          	add    $0x20,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 5b 4d 0c ff       	call   0xff0c4d94
  39:	48 89 2b             	mov    %rbp,(%rbx)
  3c:	31 c9                	xor    %ecx,%ecx
  3e:	48                   	rex.W
  3f:	85                   	.byte 0x85

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/30 03:02 upstream 4099a71718b0 d3ccff63 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in mi_init
* Struck through repros no longer work on HEAD.