------------[ cut here ]------------ WARNING: CPU: 2 PID: 27456 at fs/ext4/inode.c:3521 ext4_dirty_folio+0xf8/0x120 fs/ext4/inode.c:3521 Modules linked in: CPU: 2 PID: 27456 Comm: kworker/2:5 Not tainted 6.4.0-rc7-syzkaller-00072-gdad9774deaf1 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Workqueue: events bio_dirty_fn RIP: 0010:ext4_dirty_folio+0xf8/0x120 fs/ext4/inode.c:3521 Code: 1b 31 ff 48 c1 eb 03 83 e3 01 89 de e8 f1 85 58 ff 84 db 0f 85 72 ff ff ff e8 04 8a 58 ff 0f 0b e9 66 ff ff ff e8 f8 89 58 ff <0f> 0b eb 88 48 89 df e8 2c 55 ab ff e9 3d ff ff ff e8 22 55 ab ff RSP: 0018:ffffc9000604fc20 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff88801c3ea400 RSI: ffffffff822bbd18 RDI: ffffea0000a124e8 RBP: ffffea0000a124c0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000005 R12: ffff88802a30a2d8 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88802c800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6fed6beabc CR3: 000000004f943000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: folio_mark_dirty+0xc5/0x140 mm/page-writeback.c:2800 set_page_dirty_lock+0xb5/0x1b0 mm/page-writeback.c:2822 __bio_release_pages+0x417/0x550 block/bio.c:1171 bio_release_pages include/linux/bio.h:492 [inline] bio_dirty_fn+0xc1/0xe0 block/bio.c:1517 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308