------------[ cut here ]------------ workqueue: WQ_MEM_RECLAIM dio/loop0:dio_aio_complete_work is flushing !WQ_MEM_RECLAIM events_long:flush_mdb WARNING: CPU: 1 PID: 4275 at kernel/workqueue.c:2653 check_flush_dependency+0x2b0/0x350 kernel/workqueue.c:2649 Modules linked in: CPU: 1 PID: 4275 Comm: kworker/1:8 Not tainted 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: dio/loop0 dio_aio_complete_work RIP: 0010:check_flush_dependency+0x2b0/0x350 kernel/workqueue.c:2649 Code: 74 08 4c 89 ff e8 10 06 70 00 49 8b 17 48 8b 0c 24 48 81 c1 60 01 00 00 48 c7 c7 40 4d 0a 8a 4c 89 e6 4d 89 f0 e8 d0 36 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:ffffc90004d5f8f8 EFLAGS: 00010046 RAX: 404480abb4ac7900 RBX: dffffc0000000000 RCX: ffff888027761dc0 RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000 RBP: 0000000000000008 R08: dffffc0000000000 R09: ffffed1017224f24 R10: ffffed1017224f24 R11: 1ffff11017224f23 R12: ffff888065f6e960 R13: ffff888065f6e9c0 R14: ffffffff822e6da0 R15: ffff888024f35118 FS: 0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000646fb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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