------------[ cut here ]------------ workqueue: WQ_MEM_RECLAIM dio/loop3:dio_aio_complete_work is flushing !WQ_MEM_RECLAIM events_long:flush_mdb WARNING: CPU: 1 PID: 5167 at kernel/workqueue.c:2729 check_flush_dependency+0x29b/0x3f0 kernel/workqueue.c:2729 Modules linked in: CPU: 1 PID: 5167 Comm: kworker/1:4 Not tainted 6.3.0-rc6-syzkaller-00016-g0d3eb744aed4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: dio/loop3 dio_aio_complete_work RIP: 0010:check_flush_dependency+0x29b/0x3f0 kernel/workqueue.c:2729 Code: 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 3f 01 00 00 48 8b 53 18 49 8d b6 60 01 00 00 4d 89 e0 48 c7 c7 c0 67 4b 8a e8 75 e3 f8 ff <0f> 0b e9 e8 fd ff ff e8 19 5e 30 00 65 4c 8b 2c 25 80 b8 03 00 4c RSP: 0018:ffffc9000478fa60 EFLAGS: 00010086 RAX: 0000000000000000 RBX: ffff88802a40f500 RCX: 0000000000000000 RDX: ffff8880213357c0 RSI: ffffffff814b6237 RDI: 0000000000000001 RBP: ffff888012471400 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff82502670 R13: 0000000000000000 R14: ffff88802b3cf400 R15: ffffc9000478fb00 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020710000 CR3: 000000003c040000 CR4: 0000000000350ee0 Call Trace: start_flush_work kernel/workqueue.c:3133 [inline] __flush_work+0x281/0xb60 kernel/workqueue.c:3173 hfs_file_fsync+0x108/0x1a0 fs/hfs/inode.c:683 vfs_fsync_range+0x13e/0x230 fs/sync.c:188 generic_write_sync include/linux/fs.h:2452 [inline] dio_complete+0x796/0xa80 fs/direct-io.c:309 process_one_work+0x991/0x15c0 kernel/workqueue.c:2390 worker_thread+0x669/0x1090 kernel/workqueue.c:2537 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308