RBP: 00007f93992071d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffcd388692f R14: 00007f9399207300 R15: 0000000000022000 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: 6823 Comm: syz-executor.0 Not tainted 6.3.0-rc7-syzkaller-00043-gaf67688dca57 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:is_rec_inuse fs/ntfs3/ntfs.h:312 [inline] RIP: 0010:ni_write_inode+0x21d/0x3110 fs/ntfs3/frecord.c:3261 Code: 48 c1 ea 03 80 3c 02 00 0f 85 3d 24 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:ffffc90028187410 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc900056e3000 RDX: 0000000000000002 RSI: ffffffff82b13dda RDI: 0000000000000016 RBP: ffff88801ccb6050 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888028752b08 R13: ffff88801ccb6000 R14: ffffffff8a823cc0 R15: ffff888028752a30 FS: 00007f9399207700(0000) GS:ffff88802c700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9398515dc9 CR3: 0000000024d4d000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ntfs_evict_inode+0x8c/0xa0 fs/ntfs3/inode.c:1774 evict+0x2ed/0x6b0 fs/inode.c:665 iput_final fs/inode.c:1748 [inline] iput.part.0+0x50a/0x740 fs/inode.c:1774 iput+0x5c/0x80 fs/inode.c:1764 ntfs_new_inode+0xaa/0x130 fs/ntfs3/fsntfs.c:1686 ntfs_create_inode+0x40b/0x4140 fs/ntfs3/inode.c:1300 ntfs_atomic_open+0x494/0x5f0 fs/ntfs3/namei.c:424 atomic_open fs/namei.c:3279 [inline] lookup_open.isra.0+0xcdf/0x1400 fs/namei.c:3387 open_last_lookups fs/namei.c:3484 [inline] path_openat+0x975/0x2750 fs/namei.c:3712 do_filp_open+0x1ba/0x410 fs/namei.c:3742 do_sys_openat2+0x16d/0x4c0 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_creat fs/open.c:1440 [inline] __se_sys_creat fs/open.c:1434 [inline] __x64_sys_creat+0xcd/0x120 fs/open.c:1434 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f939848c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9399207168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f93985abf80 RCX: 00007f939848c169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f93992071d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffcd388692f R14: 00007f9399207300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:is_rec_inuse fs/ntfs3/ntfs.h:312 [inline] RIP: 0010:ni_write_inode+0x21d/0x3110 fs/ntfs3/frecord.c:3261 Code: 48 c1 ea 03 80 3c 02 00 0f 85 3d 24 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:ffffc90028187410 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc900056e3000 RDX: 0000000000000002 RSI: ffffffff82b13dda RDI: 0000000000000016 RBP: ffff88801ccb6050 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888028752b08 R13: ffff88801ccb6000 R14: ffffffff8a823cc0 R15: ffff888028752a30 FS: 00007f9399207700(0000) GS:ffff88802c700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9398515dc9 CR3: 0000000024d4d000 CR4: 0000000000150ee0 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 3d 24 00 00 jne 0x244b 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