EXT4-fs error (device loop5) in ext4_reserve_inode_write:5909: Corrupt filesystem EXT4-fs error (device loop5): ext4_dirty_inode:6113: inode #15: comm syz-executor.5: mark_inode_dirty error EXT4-fs warning (device loop5): ext4_da_update_reserve_space:372: ext4_da_update_reserve_space: ino 15, used 1 with only 0 reserved data blocks ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5842 at fs/ext4/inode.c:373 ext4_da_update_reserve_space+0x419/0x730 fs/ext4/inode.c:369 Modules linked in: CPU: 0 PID: 5842 Comm: syz-executor.5 Not tainted 6.3.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:ext4_da_update_reserve_space+0x419/0x730 fs/ext4/inode.c:373 Code: 4c 89 ff 48 c7 c6 0d 7a 82 8c ba 74 01 00 00 48 c7 c1 00 3c fc 8a 49 c7 c0 0d 7a 82 8c 41 55 41 54 e8 9b bb 0e 00 48 83 c4 10 <0f> 0b 48 bd 00 00 00 00 00 fc ff df 0f b6 04 2b 84 c0 0f 85 8f 01 RSP: 0018:ffffc9000c7ff090 EFLAGS: 00010286 RAX: 20dc73c0099a6000 RBX: 1ffff1100605338e RCX: 20dc73c0099a6000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff888030299700 R08: ffffffff816df7fc R09: fffff520018ffd61 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: 0000000000000000 R14: ffff8880302996c0 R15: ffff88802f5f4000 FS: 00007f17b87fe700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc6637dcfc0 CR3: 000000001d127000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_map_blocks+0xb64/0x1cf0 fs/ext4/inode.c:672 mpage_map_one_extent fs/ext4/inode.c:2421 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2474 [inline] ext4_do_writepages+0x189f/0x3d20 fs/ext4/inode.c:2876 ext4_writepages+0x1e5/0x290 fs/ext4/inode.c:2964 do_writepages+0x3a6/0x670 mm/page-writeback.c:2551 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:390 __filemap_fdatawrite_range mm/filemap.c:423 [inline] file_write_and_wait_range+0x20f/0x300 mm/filemap.c:781 ext4_sync_file+0x22a/0xbb0 fs/ext4/fsync.c:151 generic_write_sync include/linux/fs.h:2452 [inline] ext4_buffered_write_iter+0x30a/0x3a0 fs/ext4/file.c:296 ext4_file_write_iter+0x1d6/0x1930 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7b2/0xbb0 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f17b9c8c169 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:00007f17b87fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f17b9dabf80 RCX: 00007f17b9c8c169 RDX: 000000000000cf00 RSI: 0000000020000200 RDI: 0000000000000008 RBP: 00007f17b9ce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd5fa00daf R14: 00007f17b87fe300 R15: 0000000000022000