------------[ cut here ]------------ workqueue: WQ_MEM_RECLAIM dio/loop2:dio_aio_complete_work is flushing !WQ_MEM_RECLAIM events_long:flush_mdb WARNING: CPU: 0 PID: 4292 at kernel/workqueue.c:2653 check_flush_dependency+0x2b0/0x350 kernel/workqueue.c:2649 Modules linked in: CPU: 0 PID: 4292 Comm: kworker/0:10 Not tainted 5.15.182-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Workqueue: dio/loop2 dio_aio_complete_work RIP: 0010:check_flush_dependency+0x2b0/0x350 kernel/workqueue.c:2649 Code: 74 08 4c 89 ff e8 60 03 70 00 49 8b 17 48 8b 0c 24 48 81 c1 60 01 00 00 48 c7 c7 40 4b 0a 8a 4c 89 e6 4d 89 f0 e8 f0 39 49 08 <0f> 0b eb a1 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c a6 fd ff ff 4c RSP: 0018:ffffc900030ff8f8 EFLAGS: 00010046 RAX: 85db37e135926a00 RBX: dffffc0000000000 RCX: ffff88802334bb80 RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000 RBP: 0000000000000008 R08: dffffc0000000000 R09: ffffed1017204f24 R10: ffffed1017204f24 R11: 1ffff11017204f23 R12: ffff888058ce8560 R13: ffff888058ce85c0 R14: ffffffff822e67c0 R15: ffff88802aa1dd18 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560e46209950 CR3: 000000007955c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> start_flush_work+0x2b4/0x820 kernel/workqueue.c:3053 __flush_work+0x10e/0x1b0 kernel/workqueue.c:3093 flush_work kernel/workqueue.c:3115 [inline] flush_delayed_work+0x121/0x170 kernel/workqueue.c:3239 hfs_file_fsync+0xed/0x140 fs/hfs/inode.c:684 generic_write_sync include/linux/fs.h:2989 [inline] dio_complete+0x5ae/0x720 fs/direct-io.c:310 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 </TASK>