------------[ cut here ]------------ WARNING: fs/ext4/inode.c:3965 at ext4_dirty_folio+0x167/0x1b0 fs/ext4/inode.c:3965, CPU#0: syz.0.0/5338 Modules linked in: CPU: 0 UID: 0 PID: 5338 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:ffffc9000e57f960 EFLAGS: 00010293 RAX: ffffffff827cf776 RBX: ffffea00013aa680 RCX: ffff88801eefc980 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 1ffffd40002754d0 R08: ffffea00013aa687 R09: 1ffffd40002754d0 R10: dffffc0000000000 R11: fffff940002754d1 R12: ffff88800095ee98 R13: 1ffffd40002754d1 R14: 0000000000000001 R15: ffffea00013aa6a8 FS: 00005555702df500(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558edf39b168 CR3: 0000000044301000 CR4: 0000000000352ef0 Call Trace: folio_mark_dirty_lock+0xa8/0xe0 mm/page-writeback.c:2841 set_page_dirty_lock+0x5e/0x140 mm/folio-compat.c:51 qp_release_pages+0x7c/0x380 drivers/misc/vmw_vmci/vmci_queue_pair.c:638 qp_host_unregister_user_memory+0x158/0x1d0 drivers/misc/vmw_vmci/vmci_queue_pair.c:728 vmci_qp_broker_detach+0x5ea/0xf10 drivers/misc/vmw_vmci/vmci_queue_pair.c:2152 ctx_free_ctx drivers/misc/vmw_vmci/vmci_context.c:424 [inline] kref_put include/linux/kref.h:65 [inline] vmci_ctx_put+0x603/0xbf0 drivers/misc/vmw_vmci/vmci_context.c:477 vmci_host_close+0x98/0x160 drivers/misc/vmw_vmci/vmci_host.c:143 __fput+0x44c/0xa70 fs/file_table.c:468 task_work_run+0x1d4/0x260 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xef/0x4e0 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x2c1/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9646f8f7c9 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:00007ffce1ae8538 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f96471e7da0 RCX: 00007f9646f8f7c9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f96471e7da0 R08: 0000000000028c7c R09: 0000001ee1ae882f R10: 0000000000dd714c R11: 0000000000000246 R12: 0000000000012ada R13: 00007f96471e6090 R14: ffffffffffffffff R15: 00007ffce1ae8650