loop5: detected capacity change from 0 to 4096 ntfs: volume version 3.1. ------------[ cut here ]------------ kernel BUG at fs/ntfs/file.c:493! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9610 Comm: syz-executor.5 Not tainted 6.4.0-rc7-syzkaller-00226-ga92b7d26c743 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline] RIP: 0010:ntfs_perform_write.isra.0+0x16ff/0x30a0 fs/ntfs/file.c:1833 Code: 00 00 48 8b 44 24 40 41 89 d9 48 c7 c2 60 57 81 8a 48 c7 c7 20 5d 81 8a 48 8b 30 e8 7b 2b ff ff e9 44 ef ff ff e8 71 e7 d6 fe <0f> 0b e8 6a e7 d6 fe 48 8b 5c 24 48 31 ff 48 89 de e8 9b e3 d6 fe RSP: 0018:ffffc9000406fa78 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880569c0100 RSI: ffffffff82ac83cf RDI: 0000000000000005 RBP: ffffc9000406fbb8 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea000540b600 R13: ffffea000540b600 R14: 0000000000000e00 R15: dffffc0000000000 FS: 00007efd2c242700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020058000 CR3: 00000000229d1000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ntfs_file_write_iter+0x5c0/0x1e30 fs/ntfs/file.c:1917 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x945/0xd50 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 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:0x7efd2b48c389 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:00007efd2c242168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007efd2b5abf80 RCX: 00007efd2b48c389 RDX: 00000000000ffe00 RSI: 0000000020004200 RDI: 0000000000000004 RBP: 00007efd2b4d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffccaaca94f R14: 00007efd2c242300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline] RIP: 0010:ntfs_perform_write.isra.0+0x16ff/0x30a0 fs/ntfs/file.c:1833 Code: 00 00 48 8b 44 24 40 41 89 d9 48 c7 c2 60 57 81 8a 48 c7 c7 20 5d 81 8a 48 8b 30 e8 7b 2b ff ff e9 44 ef ff ff e8 71 e7 d6 fe <0f> 0b e8 6a e7 d6 fe 48 8b 5c 24 48 31 ff 48 89 de e8 9b e3 d6 fe RSP: 0018:ffffc9000406fa78 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880569c0100 RSI: ffffffff82ac83cf RDI: 0000000000000005 RBP: ffffc9000406fbb8 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea000540b600 R13: ffffea000540b600 R14: 0000000000000e00 R15: dffffc0000000000 FS: 00007efd2c242700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb9f81a8000 CR3: 00000000229d1000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400