loop0: detected capacity change from 0 to 4096 EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback. ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2722! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 3599 Comm: syz-executor861 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:ext4_writepages+0x23d0/0x3b60 fs/ext4/inode.c:2722 Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 d4 22 fe ff 83 c0 01 89 84 24 bc 00 00 00 e9 42 e5 ff ff e8 f0 3b 60 ff <0f> 0b e8 e9 3b 60 ff 44 0f b6 a4 24 e3 00 00 00 89 5c 24 08 e9 e9 RSP: 0018:ffffc90002eff4b0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888020b23a80 RSI: ffffffff821a7b20 RDI: 0000000000000007 RBP: ffff888072c43c80 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 1ffffffff1fc7c2c R12: 0000000000000001 R13: ffff888072c43ee0 R14: ffffc90002effa00 R15: ffff888022f30000 FS: 0000555556c10300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004571f0 CR3: 000000007e8c0000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x1ab/0x690 mm/page-writeback.c:2468 filemap_fdatawrite_wbc mm/filemap.c:388 [inline] filemap_fdatawrite_wbc+0x143/0x1b0 mm/filemap.c:378 __filemap_fdatawrite_range+0xb4/0xf0 mm/filemap.c:421 file_write_and_wait_range+0xb2/0x120 mm/filemap.c:773 ext4_sync_file+0x21a/0xfd0 fs/ext4/fsync.c:151 vfs_fsync_range+0x13a/0x220 fs/sync.c:188 generic_write_sync include/linux/fs.h:2865 [inline] ext4_buffered_write_iter+0x27d/0x330 fs/ext4/file.c:277 ext4_file_write_iter+0x43c/0x1520 fs/ext4/file.c:679 call_write_iter include/linux/fs.h:2188 [inline] new_sync_write+0x315/0x4d0 fs/read_write.c:504 vfs_write+0x7c0/0xac0 fs/read_write.c:591 ksys_write+0x127/0x250 fs/read_write.c:644 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fa3606a4069 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc3d475f98 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fa3606a4069 RDX: 0000000000000016 RSI: 0000000020002580 RDI: 0000000000000007 RBP: 00007fa360663860 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa3606638f0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_writepages+0x23d0/0x3b60 fs/ext4/inode.c:2722 Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 d4 22 fe ff 83 c0 01 89 84 24 bc 00 00 00 e9 42 e5 ff ff e8 f0 3b 60 ff <0f> 0b e8 e9 3b 60 ff 44 0f b6 a4 24 e3 00 00 00 89 5c 24 08 e9 e9 RSP: 0018:ffffc90002eff4b0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888020b23a80 RSI: ffffffff821a7b20 RDI: 0000000000000007 RBP: ffff888072c43c80 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 1ffffffff1fc7c2c R12: 0000000000000001 R13: ffff888072c43ee0 R14: ffffc90002effa00 R15: ffff888022f30000 FS: 0000555556c10300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004571f0 CR3: 000000007e8c0000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400