ntfs: volume version 3.1.
------------[ cut here ]------------
kernel BUG at fs/ntfs/inode.c:2536!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5012 Comm: syz-executor227 Not tainted 6.5.0-rc7-syzkaller-00004-gf7757129e3de #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:ntfs_truncate+0x1078/0x2ae0 fs/ntfs/inode.c:2536
Code: 0b e8 ec 5e d1 fe 0f 0b c7 85 58 ff ff ff 00 00 00 00 c7 45 80 ff ff ff ff e9 68 f5 ff ff e8 cf 5e d1 fe 0f 0b e8 c8 5e d1 fe <0f> 0b 48 c7 45 90 00 00 00 00 48 c7 45 c0 00 00 00 00 eb 93 48 89
RSP: 0018:ffffc900033bfbb8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888071f14720 RCX: 0000000000000000
RDX: ffff88807a4d8180 RSI: ffffffff82b3c1f8 RDI: 0000000000000005
RBP: ffffc900033bfc90 R08: 0000000000000005 R09: 00000000ffffffff
R10: 00000000ffffffff R11: 0000000000000003 R12: dffffc0000000000
R13: ffff88807c390160 R14: 00000000ffffffff R15: 0000000000000000
FS: 0000555556eb8380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa62f4c9008 CR3: 00000000177b2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ntfs_truncate_vfs fs/ntfs/inode.c:2862 [inline]
ntfs_setattr+0x39a/0x560 fs/ntfs/inode.c:2914
notify_change+0x670/0x1160 fs/attr.c:483
do_truncate+0x15c/0x220 fs/open.c:66
vfs_truncate+0x3eb/0x4d0 fs/open.c:112
do_sys_truncate+0x153/0x190 fs/open.c:135
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa62f4305f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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:00007fffe784b7c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007fffe784b9a8 RCX: 00007fa62f4305f9
RDX: 00007fa62f42f8f0 RSI: 0000000000000000 RDI: 0000000020000040
RBP: 00007fa62f4c2610 R08: 000000000001f1cf R09: 0000000000000000
R10: 00007fffe784b690 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffe784b998 R14: 0000000000000001 R15: 0000000000000001
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ntfs_truncate+0x1078/0x2ae0 fs/ntfs/inode.c:2536
Code: 0b e8 ec 5e d1 fe 0f 0b c7 85 58 ff ff ff 00 00 00 00 c7 45 80 ff ff ff ff e9 68 f5 ff ff e8 cf 5e d1 fe 0f 0b e8 c8 5e d1 fe <0f> 0b 48 c7 45 90 00 00 00 00 48 c7 45 c0 00 00 00 00 eb 93 48 89
RSP: 0018:ffffc900033bfbb8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888071f14720 RCX: 0000000000000000
RDX: ffff88807a4d8180 RSI: ffffffff82b3c1f8 RDI: 0000000000000005
RBP: ffffc900033bfc90 R08: 0000000000000005 R09: 00000000ffffffff
R10: 00000000ffffffff R11: 0000000000000003 R12: dffffc0000000000
R13: ffff88807c390160 R14: 00000000ffffffff R15: 0000000000000000
FS: 0000555556eb8380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055dfe3297e20 CR3: 00000000177b2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400