loop0: detected capacity change from 0 to 4096 ntfs3: loop0: Different NTFS' sector size (1024) and media sector size (512) ntfs3: loop0: Mark volume as dirty due to NTFS errors ntfs3: loop0: Failed to load $Extend. general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 1 PID: 5253 Comm: syz-executor146 Not tainted 6.1.0-rc4-next-20221111-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:is_rec_inuse fs/ntfs3/ntfs.h:313 [inline] RIP: 0010:ni_write_inode+0x219/0x3120 fs/ntfs3/frecord.c:3246 Code: 48 c1 ea 03 80 3c 02 00 0f 85 22 20 00 00 49 8b 9f d0 fd ff ff 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 16 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 4e RSP: 0018:ffffc90003a9f8d8 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000002 RSI: ffffffff82a9ac86 RDI: 0000000000000016 RBP: ffff88807ea7a050 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888074d59948 R13: ffff88807ea7a000 R14: ffffffff8a234460 R15: ffff888074d59870 FS: 0000555557357300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdabe055130 CR3: 000000007642a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ntfs_evict_inode+0x88/0xa0 fs/ntfs3/inode.c:1760 evict+0x2ed/0x6b0 fs/inode.c:664 iput_final fs/inode.c:1747 [inline] iput.part.0+0x59b/0x880 fs/inode.c:1773 iput+0x58/0x70 fs/inode.c:1763 ntfs_new_inode+0xa6/0x120 fs/ntfs3/fsntfs.c:1660 ntfs_create_inode+0x3fd/0x3dc0 fs/ntfs3/inode.c:1294 ntfs_symlink+0x3f/0x90 fs/ntfs3/namei.c:191 vfs_symlink fs/namei.c:4400 [inline] vfs_symlink+0x365/0x5b0 fs/namei.c:4385 do_symlinkat+0x24c/0x2c0 fs/namei.c:4429 __do_sys_symlinkat fs/namei.c:4446 [inline] __se_sys_symlinkat fs/namei.c:4443 [inline] __x64_sys_symlinkat+0x93/0xc0 fs/namei.c:4443 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:0x7fdabdf7d5e9 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe4e3d7ea8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fdabdf7d5e9 RDX: 0000000020001d80 RSI: 0000000000000003 RDI: 0000000020000140 RBP: 00007ffe4e3d7ed0 R08: 0000000000000002 R09: 00007ffe4e3d7ee0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00007fdabdfc1b40 R14: 00007fdabdfc1538 R15: 00007fdabdfc13b0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:is_rec_inuse fs/ntfs3/ntfs.h:313 [inline] RIP: 0010:ni_write_inode+0x219/0x3120 fs/ntfs3/frecord.c:3246 Code: 48 c1 ea 03 80 3c 02 00 0f 85 22 20 00 00 49 8b 9f d0 fd ff ff 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 16 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 4e RSP: 0018:ffffc90003a9f8d8 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000002 RSI: ffffffff82a9ac86 RDI: 0000000000000016 RBP: ffff88807ea7a050 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888074d59948 R13: ffff88807ea7a000 R14: ffffffff8a234460 R15: ffff888074d59870 FS: 0000555557357300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdabdf52220 CR3: 000000007642a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- 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 22 20 00 00 jne 0x2030 e: 49 8b 9f d0 fd ff ff mov -0x230(%r15),%rbx 15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1c: fc ff df 1f: 48 8d 7b 16 lea 0x16(%rbx),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction 2e: 48 89 f8 mov %rdi,%rax 31: 83 e0 07 and $0x7,%eax 34: 83 c0 01 add $0x1,%eax 37: 38 d0 cmp %dl,%al 39: 7c 08 jl 0x43 3b: 84 d2 test %dl,%dl 3d: 0f .byte 0xf 3e: 85 .byte 0x85 3f: 4e rex.WRX