loop0: detected capacity change from 0 to 4096 ntfs3: loop0: Different NTFS' sector size (2048) and media sector size (512) 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: 3608 Comm: syz-executor361 Not tainted 6.1.0-rc1-next-20221021-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:is_rec_inuse fs/ntfs3/ntfs.h:313 [inline] RIP: 0010:ni_write_inode+0x219/0x3140 fs/ntfs3/frecord.c:3246 Code: 48 c1 ea 03 80 3c 02 00 0f 85 19 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:ffffc90003a9f8b8 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000002 RSI: ffffffff82a7e806 RDI: 0000000000000016 RBP: ffff88801daaa050 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000008c001 R12: ffff888070474ce8 R13: ffff88801daaa000 R14: ffffffff8a030560 R15: ffff888070474c10 FS: 00005555557f6300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff01ad8000 CR3: 000000001f978000 CR4: 00000000003506f0 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_create+0x3b/0x80 fs/ntfs3/namei.c:101 vfs_create fs/namei.c:3115 [inline] vfs_create+0x3e9/0x670 fs/namei.c:3101 do_mknodat+0x3d9/0x530 fs/namei.c:3964 __do_sys_mknod fs/namei.c:3997 [inline] __se_sys_mknod fs/namei.c:3995 [inline] __x64_sys_mknod+0x11a/0x170 fs/namei.c:3995 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:0x7fb14a083ff9 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:00007fff01ad7458 EFLAGS: 00000246 ORIG_RAX: 0000000000000085 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fb14a083ff9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200001c0 RBP: 00007fff01ad7480 R08: 0000000000000002 R09: 00007fff01ad7490 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 00007fb14a0c8358 R14: 00007fb14a0c81b0 R15: 0030656c69662f2e Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:is_rec_inuse fs/ntfs3/ntfs.h:313 [inline] RIP: 0010:ni_write_inode+0x219/0x3140 fs/ntfs3/frecord.c:3246 Code: 48 c1 ea 03 80 3c 02 00 0f 85 19 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:ffffc90003a9f8b8 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000002 RSI: ffffffff82a7e806 RDI: 0000000000000016 RBP: ffff88801daaa050 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000008c001 R12: ffff888070474ce8 R13: ffff88801daaa000 R14: ffffffff8a030560 R15: ffff888070474c10 FS: 00005555557f6300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff01ad8000 CR3: 000000001f978000 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 19 20 00 00 jne 0x2027 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