------------[ cut here ]------------ WARNING: CPU: 1 PID: 20586 at fs/ext4/inode.c:3497 ext4_dirty_folio+0xfc/0x130 fs/ext4/inode.c:3497 Modules linked in: CPU: 1 PID: 20586 Comm: syz-executor.1 Not tainted 6.5.0-rc7-next-20230822-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:ext4_dirty_folio+0xfc/0x130 fs/ext4/inode.c:3497 Code: 31 ff 48 c1 ed 04 83 e5 01 89 ee e8 3e 76 54 ff 40 84 ed 0f 85 70 ff ff ff e8 00 7b 54 ff 0f 0b e9 64 ff ff ff e8 f4 7a 54 ff <0f> 0b eb 86 48 89 ef e8 78 1f aa ff e9 39 ff ff ff e8 6e 1f aa ff RSP: 0018:ffffc9000dc4f890 EFLAGS: 00010287 RAX: 000000000002efcc RBX: ffffea00017fee40 RCX: ffffc90017f6c000 RDX: 0000000000040000 RSI: ffffffff8233574c RDI: ffffea00017fee68 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88803ca4ded8 R13: 0000000000000000 R14: ffffea00017fee40 R15: dffffc0000000000 FS: 00007f5c62d0d6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc4fb99d988 CR3: 000000007b136000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: folio_mark_dirty+0xc3/0x130 mm/page-writeback.c:2781 set_page_dirty_lock+0xb8/0x1b0 mm/page-writeback.c:2803 __bio_release_pages+0x22a/0x380 block/bio.c:1153 bio_release_pages include/linux/bio.h:506 [inline] __blkdev_direct_IO_simple+0x674/0x780 block/fops.c:91 blkdev_direct_IO.part.0+0x845/0x1830 block/fops.c:376 blkdev_direct_IO block/fops.c:370 [inline] blkdev_read_iter+0x29d/0x510 block/fops.c:724 call_read_iter include/linux/fs.h:1979 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x4e0/0x930 fs/read_write.c:470 ksys_read+0x12f/0x250 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5c6207cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5c62d0d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f5c6219c050 RCX: 00007f5c6207cae9 RDX: 0000000000040502 RSI: 0000000020000a00 RDI: 0000000000000005 RBP: 00007f5c620c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f5c6219c050 R15: 00007ffcb6c60708