loop0: detected capacity change from 0 to 264192 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: 0 PID: 3609 Comm: syz-executor447 Not tainted 6.0.0-rc6-syzkaller-00210-gbf682942cd26 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 RIP: 0010:is_rec_inuse fs/ntfs3/ntfs.h:313 [inline] RIP: 0010:ni_write_inode+0x216/0x3280 fs/ntfs3/frecord.c:3232 Code: 48 c1 ea 03 80 3c 02 00 0f 85 fa 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 0d RSP: 0018:ffffc90003bcf410 EFLAGS: 00010213 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000002 RSI: ffffffff82a5c153 RDI: 0000000000000016 RBP: ffff888025462050 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880743af928 R13: ffff888025462000 R14: ffffffff8a22be80 R15: ffff8880743af850 FS: 0000555556cfd300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8798d77f8c CR3: 0000000070068000 CR4: 0000000000350ef0 Call Trace: ntfs_evict_inode+0x88/0xa0 fs/ntfs3/inode.c:1744 evict+0x2ed/0x6b0 fs/inode.c:665 iput_final fs/inode.c:1748 [inline] iput.part.0+0x55d/0x810 fs/inode.c:1774 iput+0x58/0x70 fs/inode.c:1764 ntfs_new_inode+0xa6/0x120 fs/ntfs3/fsntfs.c:1660 ntfs_create_inode+0x385/0x3d10 fs/ntfs3/inode.c:1278 ntfs_create+0x3b/0x80 fs/ntfs3/namei.c:100 lookup_open.isra.0+0xf05/0x12a0 fs/namei.c:3413 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x996/0x28f0 fs/namei.c:3688 do_filp_open+0x1b6/0x400 fs/namei.c:3718 do_sys_openat2+0x16d/0x4c0 fs/open.c:1313 do_sys_open fs/open.c:1329 [inline] __do_sys_openat fs/open.c:1345 [inline] __se_sys_openat fs/open.c:1340 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1340 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:0x7f8798cfe0e9 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:00007ffd1acd0768 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f8798cfe0e9 RDX: 000000000000275a RSI: 0000000020000280 RDI: 00000000ffffff9c RBP: 00007ffd1acd0790 R08: 0000000000000002 R09: 00007ffd1acd07a0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 00007ffd1acd07d0 R14: 00007ffd1acd07b0 R15: 0000000000000003 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:is_rec_inuse fs/ntfs3/ntfs.h:313 [inline] RIP: 0010:ni_write_inode+0x216/0x3280 fs/ntfs3/frecord.c:3232 Code: 48 c1 ea 03 80 3c 02 00 0f 85 fa 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 0d RSP: 0018:ffffc90003bcf410 EFLAGS: 00010213 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000002 RSI: ffffffff82a5c153 RDI: 0000000000000016 RBP: ffff888025462050 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880743af928 R13: ffff888025462000 R14: ffffffff8a22be80 R15: ffff8880743af850 FS: 0000555556cfd300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8798d77f8c CR3: 0000000070068000 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 fa 20 00 00 jne 0x2108 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: 0d .byte 0xd