syz.0.0: attempt to access beyond end of device loop0: rw=524288, sector=32, nr_sectors = 8 limit=0 syz.0.0: attempt to access beyond end of device loop0: rw=12288, sector=40, nr_sectors = 8 limit=0 EXT4-fs error (device loop0): ext4_get_inode_loc:4573: inode #18: block 5: comm syz.0.0: unable to read itable block EXT4-fs (loop0): previous I/O error to superblock detected syz.0.0: attempt to access beyond end of device loop0: rw=145409, sector=0, nr_sectors = 8 limit=0 Buffer I/O error on dev loop0, logical block 0, lost sync page write EXT4-fs error (device loop0) in ext4_reserve_inode_write:5837: IO failure syz.0.0: attempt to access beyond end of device loop0: rw=145409, sector=0, nr_sectors = 8 limit=0 Buffer I/O error on dev loop0, logical block 0, lost sync page write EXT4-fs (loop0): I/O error while writing superblock EXT4-fs error (device loop0): ext4_dirty_inode:6041: inode #18: comm syz.0.0: mark_inode_dirty error Buffer I/O error on dev loop0, logical block 0, lost sync page write EXT4-fs (loop0): I/O error while writing superblock ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5316 at fs/ext4/inode.c:3587 ext4_dirty_folio+0x162/0x1a0 fs/ext4/inode.c:3587 Modules linked in: CPU: 0 UID: 0 PID: 5316 Comm: syz.0.0 Not tainted 6.13.0-rc6-syzkaller #0 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+0x162/0x1a0 fs/ext4/inode.c:3587 Code: d4 71 aa ff 48 83 3b 00 74 1a e8 b9 0d 44 ff 4c 89 e7 4c 89 fe 5b 41 5c 41 5d 41 5e 41 5f 5d e9 54 23 ce ff e8 9f 0d 44 ff 90 <0f> 0b 90 eb e0 e8 94 0d 44 ff 90 0f 0b 90 eb a7 e8 89 0d 44 ff 4c RSP: 0018:ffffc9000d42f4e8 EFLAGS: 00010283 RAX: ffffffff825b7681 RBX: ffffea000133e1e8 RCX: 0000000000100000 RDX: ffffc9000eed3000 RSI: 000000000000efc0 RDI: 000000000000efc1 RBP: 1ffffd4000267c38 R08: ffffffff825b75b6 R09: 1ffffd4000267c38 R10: dffffc0000000000 R11: fffff94000267c39 R12: ffff888043f171c8 R13: ffffea000133e1c8 R14: 0000000000000001 R15: ffffea000133e1c0 FS: 00007fc141bd46c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000280 CR3: 0000000033c98000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bio_set_pages_dirty+0x16f/0x230 block/bio.c:1505 __blkdev_direct_IO+0x6e9/0xf50 block/fops.c:235 blkdev_direct_IO+0xf03/0x13d0 block/fops.c:385 blkdev_read_iter+0x230/0x430 block/fops.c:760 aio_read+0x363/0x500 fs/aio.c:1602 io_submit_one+0x884/0x18a0 fs/aio.c:2052 __do_sys_io_submit fs/aio.c:2111 [inline] __se_sys_io_submit+0x171/0x2e0 fs/aio.c:2081 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc140d85d29 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:00007fc141bd4038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007fc140f76080 RCX: 00007fc140d85d29 RDX: 00000000200000c0 RSI: 00000000000000ca RDI: 00007fc141bb3000 RBP: 00007fc140e01b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc140f76080 R15: 00007ffc39eec578