------------[ cut here ]------------ workqueue: WQ_MEM_RECLAIM dio/loop6:dio_aio_complete_work is flushing !WQ_MEM_RECLAIM events_long:flush_mdb WARNING: CPU: 0 PID: 4700 at kernel/workqueue.c:2653 check_flush_dependency+0x27c/0x330 kernel/workqueue.c:2649 Modules linked in: CPU: 0 PID: 4700 Comm: kworker/0:12 Not tainted 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: dio/loop6 dio_aio_complete_work pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_flush_dependency+0x27c/0x330 kernel/workqueue.c:2649 lr : check_flush_dependency+0x27c/0x330 kernel/workqueue.c:2649 sp : ffff8000209377c0 x29: ffff8000209377c0 x28: dfff800000000000 x27: 1fffe0001a05fe28 x26: 0000000000000000 x25: ffff800016fd2000 x24: ffff0000e5e9e400 x23: dfff800000000000 x22: ffff0000cf05e818 x21: ffff0000e5e9e560 x20: ffff800008ffd020 x19: ffff0000c0021000 x18: 0000000000000002 x17: 0000000000000000 x16: ffff800011b54788 x15: 00000000ffffffff x14: ffff0000d39f0000 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000001 x10: 0000000000000000 x9 : f81c88ed64340b00 x8 : f81c88ed64340b00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800020936f38 x4 : ffff800014c4fec0 x3 : ffff8000085597fc x2 : 0000000000000001 x1 : 0000000100000001 x0 : 000000000000006b Call trace: check_flush_dependency+0x27c/0x330 kernel/workqueue.c:2649 start_flush_work+0x194/0x7d0 kernel/workqueue.c:3053 __flush_work+0x11c/0x1c0 kernel/workqueue.c:3093 flush_work kernel/workqueue.c:3115 [inline] flush_delayed_work+0xe4/0x110 kernel/workqueue.c:3239 hfs_file_fsync+0xec/0x148 fs/hfs/inode.c:684 vfs_fsync_range+0x168/0x188 fs/sync.c:188 generic_write_sync include/linux/fs.h:2989 [inline] dio_complete+0x4f0/0x68c fs/direct-io.c:310 dio_aio_complete_work+0x28/0x38 fs/direct-io.c:322 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 irq event stamp: 271688 hardirqs last enabled at (271687): [] flush_delayed_work+0xd0/0x110 kernel/workqueue.c:3238 hardirqs last disabled at (271688): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (271688): [] _raw_spin_lock_irq+0x38/0x13c kernel/locking/spinlock.c:170 softirqs last enabled at (271622): [] local_bh_enable+0xc/0x2c include/linux/bottom_half.h:31 softirqs last disabled at (271618): [] local_bh_disable+0xc/0x2c include/linux/bottom_half.h:18 ---[ end trace 2ab36c9b4ce3691e ]---