------------[ cut here ]------------
workqueue: WQ_MEM_RECLAIM dio/loop0:dio_aio_complete_work is flushing !WQ_MEM_RECLAIM events_long:flush_mdb
WARNING: CPU: 0 PID: 7 at kernel/workqueue.c:2653 check_flush_dependency+0x2a6/0x340 kernel/workqueue.c:2649
Modules linked in:
CPU: 0 PID: 7 Comm: kworker/0:0 Not tainted 5.15.161-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: dio/loop0 dio_aio_complete_work
RIP: 0010:check_flush_dependency+0x2a6/0x340 kernel/workqueue.c:2649
Code: 08 4c 89 e7 e8 0b 34 77 00 49 8b 14 24 49 81 c7 60 01 00 00 48 c7 c7 e0 65 8a 8a 4c 89 ee 4c 89 f9 4c 8b 04 24 e8 ea 0d f9 ff <0f> 0b eb 9f 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c b1 fd ff ff 48 89
RSP: 0018:ffffc90000cc78f8 EFLAGS: 00010046
RAX: 38860da8c92b2600 RBX: ffff8880795515c0 RCX: ffff8880129c3b80
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: 0000000000000008 R08: ffffffff8166835c R09: ffffed1017344f24
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888011dc5d18
R13: ffff888079551560 R14: dffffc0000000000 R15: ffff888011c71160
FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000739c1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
start_flush_work+0x1a0/0x820 kernel/workqueue.c:3053
__flush_work+0x112/0x1a0 kernel/workqueue.c:3093
flush_work kernel/workqueue.c:3115 [inline]
flush_delayed_work+0x14b/0x1a0 kernel/workqueue.c:3239
hfs_file_fsync+0xe9/0x140 fs/hfs/inode.c:681
generic_write_sync include/linux/fs.h:2984 [inline]
dio_complete+0x57e/0x6e0 fs/direct-io.c:310
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300
</TASK>