ntfs3: loop0: Mark volume as dirty due to NTFS errors ntfs3: loop0: Failed to load $Extend. general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 10884 Comm: syz-executor.0 Not tainted 6.1.0-rc3-syzkaller-00158-gee6050c8af96 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:d_flags_for_inode fs/dcache.c:1980 [inline] RIP: 0010:__d_instantiate+0x4fe/0x720 fs/dcache.c:1998 Code: 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 ba 95 ea ff 48 8b 1b 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 94 95 ea ff 48 83 3b 00 0f 85 aa 01 RSP: 0018:ffffc90015b87a68 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000 RDX: ffff8880305457c0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000008000 R08: ffffffff81f13e62 R09: fffff52002b70f48 R10: fffff52002b70f49 R11: 1ffff92002b70f48 R12: 1ffff1100e5327aa R13: ffff888032cf02f0 R14: 0000000000000008 R15: ffff888072993d52 FS: 00007fad33465700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9340b59fc0 CR3: 000000007673e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: d_instantiate fs/dcache.c:2036 [inline] d_make_root+0x9b/0xd0 fs/dcache.c:2071 ntfs_fill_super+0x3ed6/0x42a0 fs/ntfs3/super.c:1269 get_tree_bdev+0x400/0x620 fs/super.c:1324 vfs_get_tree+0x88/0x270 fs/super.c:1531 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fad3268cada Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fad33464f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000bc0 RCX: 00007fad3268cada RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fad33464fe0 RBP: 00007fad33465020 R08: 00007fad33465020 R09: 0000000020000000 R10: 0000000000210c0a R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 00007fad33464fe0 R15: 0000000020003580 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:d_flags_for_inode fs/dcache.c:1980 [inline] RIP: 0010:__d_instantiate+0x4fe/0x720 fs/dcache.c:1998 Code: 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 ba 95 ea ff 48 8b 1b 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 94 95 ea ff 48 83 3b 00 0f 85 aa 01 RSP: 0018:ffffc90015b87a68 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000 RDX: ffff8880305457c0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000008000 R08: ffffffff81f13e62 R09: fffff52002b70f48 R10: fffff52002b70f49 R11: 1ffff92002b70f48 R12: 1ffff1100e5327aa R13: ffff888032cf02f0 R14: 0000000000000008 R15: ffff888072993d52 FS: 00007fad33465700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9340b59fc0 CR3: 000000007673e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: df 80 3c 08 00 74 filds 0x7400083c(%rax) 6: 08 48 89 or %cl,-0x77(%rax) 9: df e8 fucomip %st(0),%st b: ba 95 ea ff 48 mov $0x48ffea95,%edx 10: 8b 1b mov (%rbx),%ebx 12: 48 83 c3 08 add $0x8,%rbx 16: 48 89 d8 mov %rbx,%rax 19: 48 c1 e8 03 shr $0x3,%rax 1d: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 24: fc ff df * 27: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2b: 74 08 je 0x35 2d: 48 89 df mov %rbx,%rdi 30: e8 94 95 ea ff callq 0xffea95c9 35: 48 83 3b 00 cmpq $0x0,(%rbx) 39: 0f .byte 0xf 3a: 85 .byte 0x85 3b: aa stos %al,%es:(%rdi) 3c: 01 .byte 0x1