loop0: detected capacity change from 0 to 512 EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. ext4 filesystem being mounted at /0/file1 supports timestamps until 2038-01-19 (0x7fffffff) loop0: detected capacity change from 512 to 64 EXT4-fs error (device loop0) in ext4_reserve_inode_write:6298: Out of memory EXT4-fs error (device loop0): ext4_setattr:5984: inode #18: comm syz.0.0: mark_inode_dirty error EXT4-fs error (device loop0) in ext4_setattr:6035: Out of memory EXT4-fs error (device loop0) in ext4_reserve_inode_write:6298: Out of memory EXT4-fs error (device loop0): ext4_dirty_inode:6502: inode #18: comm syz.0.0: mark_inode_dirty error EXT4-fs error (device loop0): ext4_validate_block_bitmap:441: comm syz.0.0: bg 0: block 8184: padding at end of block bitmap is not set EXT4-fs error (device loop0) in ext4_reserve_inode_write:6298: Out of memory EXT4-fs error (device loop0): ext4_dirty_inode:6502: inode #18: comm syz.0.0: mark_inode_dirty error ------------[ cut here ]------------ WARNING: fs/ext4/inode.c:3965 at ext4_dirty_folio+0x167/0x1b0 fs/ext4/inode.c:3965, CPU#0: syz.0.0/5340 Modules linked in: CPU: 0 UID: 0 PID: 5340 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:ext4_dirty_folio+0x167/0x1b0 fs/ext4/inode.c:3965 Code: af ba ab ff 49 83 3f 00 74 1a e8 04 10 44 ff 4c 89 e7 48 89 de 5b 41 5c 41 5d 41 5e 41 5f 5d e9 1f ef cf ff e8 ea 0f 44 ff 90 <0f> 0b 90 eb e0 e8 df 0f 44 ff 90 0f 0b 90 eb a7 e8 d4 0f 44 ff 48 RSP: 0018:ffffc9000a577538 EFLAGS: 00010287 RAX: ffffffff827cf776 RBX: ffffea000036f8c0 RCX: 0000000000100000 RDX: ffffc900210a2000 RSI: 000000000000a7fe RDI: 000000000000a7ff RBP: 1ffffd400006df18 R08: ffffea000036f8c7 R09: 1ffffd400006df18 R10: dffffc0000000000 R11: fffff9400006df19 R12: ffff8880121ba198 R13: 1ffffd400006df19 R14: 0000000000000001 R15: ffffea000036f8e8 FS: 00007f95903596c0(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056062993d168 CR3: 00000000410ef000 CR4: 0000000000352ef0 Call Trace: bio_set_pages_dirty+0xf3/0x170 block/bio.c:1535 __blkdev_direct_IO+0x846/0xf80 block/fops.c:249 blkdev_direct_IO+0x127e/0x1800 block/fops.c:437 blkdev_read_iter+0x23d/0x440 block/fops.c:840 aio_read+0x311/0x470 fs/aio.c:1603 __io_submit_one fs/aio.c:-1 [inline] io_submit_one+0x755/0x1430 fs/aio.c:2053 __do_sys_io_submit fs/aio.c:2112 [inline] __se_sys_io_submit+0x185/0x320 fs/aio.c:2082 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f958f58f7c9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9590359038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f958f7e5fa0 RCX: 00007f958f58f7c9 RDX: 00002000000000c0 RSI: 00000000000000ca RDI: 00007f9590338000 RBP: 00007f958f613f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f958f7e6038 R14: 00007f958f7e5fa0 R15: 00007ffdc84d9698