loop0: 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: 10440 Comm: syz-executor224 Not tainted 6.2.0-syzkaller-13534-gb01fe98d34f3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline] RIP: 0010:ntfs_perform_write.isra.0+0x16fc/0x30a0 fs/ntfs/file.c:1833 Code: 00 00 48 8b 44 24 40 41 89 d9 48 c7 c2 60 59 81 8a 48 c7 c7 20 5f 81 8a 48 8b 30 e8 8e 2b ff ff e9 4f ef ff ff e8 a4 07 d4 fe <0f> 0b e8 9d 07 d4 fe 48 8b 5c 24 48 31 ff 48 89 de e8 fe 03 d4 fe RSP: 0018:ffffc90004c6fa70 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880220357c0 RSI: ffffffff82b0f28c RDI: 0000000000000005 RBP: ffffc90004c6fbb8 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea0001132500 R13: ffffea0001132540 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fe9a400c700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe99bcc7000 CR3: 000000002b05b000 CR4: 0000000000350ee0 Call Trace: ntfs_file_write_iter+0x5c0/0x1e30 fs/ntfs/file.c:1917 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xe10 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:0x7fe9a4060839 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 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:00007fe9a400c2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe9a41047a0 RCX: 00007fe9a4060839 RDX: 00000000000ffe00 RSI: 0000000020004200 RDI: 0000000000000004 RBP: 00007fe9a40d0f18 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 696b72757463616d R13: 633d73726f727265 R14: 0030656c69662f2e R15: 00007fe9a41047a8 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+0x16fc/0x30a0 fs/ntfs/file.c:1833 Code: 00 00 48 8b 44 24 40 41 89 d9 48 c7 c2 60 59 81 8a 48 c7 c7 20 5f 81 8a 48 8b 30 e8 8e 2b ff ff e9 4f ef ff ff e8 a4 07 d4 fe <0f> 0b e8 9d 07 d4 fe 48 8b 5c 24 48 31 ff 48 89 de e8 fe 03 d4 fe RSP: 0018:ffffc90004c6fa70 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880220357c0 RSI: ffffffff82b0f28c RDI: 0000000000000005 RBP: ffffc90004c6fbb8 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea0001132500 R13: ffffea0001132540 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fe9a400c700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe9a40b19a8 CR3: 000000002b05b000 CR4: 0000000000350ee0