loop0: detected capacity change from 0 to 4096 ntfs: volume version 3.1. ------------[ cut here ]------------ kernel BUG at fs/ntfs/inode.c:2536! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5599 Comm: syz-executor.0 Not tainted 6.2.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:ntfs_truncate+0x2116/0x2170 fs/ntfs/inode.c:2536 Code: 4d 39 ff e9 6c f7 ff ff 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 0f 8c 0a f9 ff ff 48 8b 3c 24 e8 51 4d 39 ff e9 fc f8 ff ff 0f 0b <0f> 0b 0f 0b 0f 0b 0f 0b 0f 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 RSP: 0018:ffffc90004c8faf0 EFLAGS: 00010282 RAX: 00000000ffffffe4 RBX: ffff888072e439c0 RCX: 1ffff1100deb4c03 RDX: 0000000000000000 RSI: dffffc0000000000 RDI: ffff88806f5a6174 RBP: 0000000000000000 R08: 1ffff1100deb4c2e R09: ffff88806f5a6164 R10: ffff88806f5a6000 R11: ffff88806f5a6018 R12: ffff888072e43a50 R13: dffffc0000000000 R14: ffff888072e439c0 R15: ffff888072e43a10 FS: 00007feb16ffe700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562e6901d528 CR3: 000000007bd3d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ntfs_truncate_vfs fs/ntfs/inode.c:2862 [inline] ntfs_setattr+0x1f4/0x2a0 fs/ntfs/inode.c:2914 notify_change+0x907/0xbc0 fs/attr.c:482 do_truncate+0x1a8/0x2b0 fs/open.c:65 vfs_truncate+0x1c5/0x270 fs/open.c:111 do_sys_truncate+0xa5/0x130 fs/open.c:134 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7feb17c8c0a9 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:00007feb16ffe168 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007feb17dabf80 RCX: 00007feb17c8c0a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040 RBP: 00007feb17ce7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc57be422f R14: 00007feb16ffe300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ntfs_truncate+0x2116/0x2170 fs/ntfs/inode.c:2536 Code: 4d 39 ff e9 6c f7 ff ff 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 0f 8c 0a f9 ff ff 48 8b 3c 24 e8 51 4d 39 ff e9 fc f8 ff ff 0f 0b <0f> 0b 0f 0b 0f 0b 0f 0b 0f 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 RSP: 0018:ffffc90004c8faf0 EFLAGS: 00010282 RAX: 00000000ffffffe4 RBX: ffff888072e439c0 RCX: 1ffff1100deb4c03 RDX: 0000000000000000 RSI: dffffc0000000000 RDI: ffff88806f5a6174 RBP: 0000000000000000 R08: 1ffff1100deb4c2e R09: ffff88806f5a6164 R10: ffff88806f5a6000 R11: ffff88806f5a6018 R12: ffff888072e43a50 R13: dffffc0000000000 R14: ffff888072e439c0 R15: ffff888072e43a10 FS: 00007feb16ffe700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562e6901d528 CR3: 000000007bd3d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400