ntfs3: loop1: ino=5, "/" directory corrupted Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 19600 Comm: syz.1.2444 Not tainted 6.12.0-rc1-syzkaller-00349-g8f602276d390 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:run_is_mapped_full+0x82/0x270 fs/ntfs3/run.c:173 Code: 04 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 44 24 68 31 c0 e8 7e 69 b1 fe 48 89 d8 48 c7 44 24 30 00 00 00 00 48 c1 e8 03 <42> 80 3c 20 00 0f 85 c9 01 00 00 48 8d 7b 08 4c 8b 23 48 b8 00 00 RSP: 0018:ffffc900092f7848 EFLAGS: 00010256 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc9000f68a000 RDX: 0000000000040000 RSI: ffffffff82dc16c2 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f0bf3c956c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b3371aff8 CR3: 0000000051be4000 CR4: 0000000000350ef0 Call Trace: attr_load_runs+0xb5/0x360 fs/ntfs3/attrib.c:69 attr_set_size+0xdc2/0x2ca0 fs/ntfs3/attrib.c:502 ntfs_create_inode+0x32a8/0x3f20 fs/ntfs3/inode.c:1675 ntfs_symlink+0xe3/0x130 fs/ntfs3/namei.c:197 vfs_symlink fs/namei.c:4615 [inline] vfs_symlink+0x3eb/0x660 fs/namei.c:4599 do_symlinkat+0x263/0x310 fs/namei.c:4641 __do_sys_symlinkat fs/namei.c:4657 [inline] __se_sys_symlinkat fs/namei.c:4654 [inline] __x64_sys_symlinkat+0x93/0xc0 fs/namei.c:4654 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0bf2f7dff9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f0bf3c95038 EFLAGS: 00000246 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 00007f0bf3136058 RCX: 00007f0bf2f7dff9 RDX: 0000000020000c80 RSI: 0000000000000008 RDI: 0000000020000300 RBP: 00007f0bf2ff0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0bf3136058 R15: 00007ffcb9e2f248 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:run_is_mapped_full+0x82/0x270 fs/ntfs3/run.c:173 Code: 04 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 44 24 68 31 c0 e8 7e 69 b1 fe 48 89 d8 48 c7 44 24 30 00 00 00 00 48 c1 e8 03 <42> 80 3c 20 00 0f 85 c9 01 00 00 48 8d 7b 08 4c 8b 23 48 b8 00 00 RSP: 0018:ffffc900092f7848 EFLAGS: 00010256 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc9000f68a000 RDX: 0000000000040000 RSI: ffffffff82dc16c2 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f0bf3c956c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1a3f2656c0 CR3: 0000000051be4000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 04 00 add $0x0,%al 2: f3 f3 f3 65 48 8b 04 repz repz repz mov %gs:0x28,%rax 9: 25 28 00 00 00 e: 48 89 44 24 68 mov %rax,0x68(%rsp) 13: 31 c0 xor %eax,%eax 15: e8 7e 69 b1 fe call 0xfeb16998 1a: 48 89 d8 mov %rbx,%rax 1d: 48 c7 44 24 30 00 00 movq $0x0,0x30(%rsp) 24: 00 00 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 0f 85 c9 01 00 00 jne 0x1fe 35: 48 8d 7b 08 lea 0x8(%rbx),%rdi 39: 4c 8b 23 mov (%rbx),%r12 3c: 48 rex.W 3d: b8 .byte 0xb8