------------[ cut here ]------------ workqueue: WQ_MEM_RECLAIM dio/loop1:dio_aio_complete_work is flushing !WQ_MEM_RECLAIM events_long:flush_mdb WARNING: CPU: 1 PID: 4072 at kernel/workqueue.c:2653 check_flush_dependency+0x27c/0x330 kernel/workqueue.c:2649 Modules linked in: CPU: 1 PID: 4072 Comm: kworker/1:4 Not tainted 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: dio/loop1 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 : ffff8000201f77c0 x29: ffff8000201f77c0 x28: dfff800000000000 x27: 1fffe0001ae0a028 x26: 0000000000000000 x25: ffff800016fd2000 x24: ffff0000e8bdd400 x23: dfff800000000000 x22: ffff0000ccfcea18 x21: ffff0000e8bdd560 x20: ffff800008ffd020 x19: ffff0000c0021000 x18: 0000000000000002 x17: 0000000000000000 x16: ffff800011b54788 x15: 00000000ffffffff x14: ffff0000c227b680 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000001 x10: 0000000000000000 x9 : 5794a2f327978a00 x8 : 5794a2f327978a00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000201f6f38 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: 33672 hardirqs last enabled at (33671): [] flush_delayed_work+0xd0/0x110 kernel/workqueue.c:3238 hardirqs last disabled at (33672): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (33672): [] _raw_spin_lock_irq+0x38/0x13c kernel/locking/spinlock.c:170 softirqs last enabled at (33598): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (33598): [] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586 softirqs last disabled at (33577): [] __do_softirq kernel/softirq.c:592 [inline] softirqs last disabled at (33577): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (33577): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (33577): [] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641 ---[ end trace 05fee90a544eeb03 ]---