------------[ cut here ]------------ workqueue: WQ_MEM_RECLAIM dio/loop2:dio_aio_complete_work is flushing !WQ_MEM_RECLAIM events_long:flush_mdb WARNING: CPU: 1 PID: 6560 at kernel/workqueue.c:3721 check_flush_dependency+0x288/0x33c kernel/workqueue.c:3717 Modules linked in: CPU: 1 UID: 0 PID: 6560 Comm: kworker/1:5 Not tainted 6.15.0-rc2-syzkaller-gc72692105976 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: dio/loop2 dio_aio_complete_work pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_flush_dependency+0x288/0x33c kernel/workqueue.c:3717 lr : check_flush_dependency+0x288/0x33c kernel/workqueue.c:3717 sp : ffff8000a3367730 x29: ffff8000a3367740 x28: dfff800000000000 x27: ffff70001466cef4 x26: ffff0000c1081408 x25: 0000000000000000 x24: ffff0000f0bef800 x23: dfff800000000000 x22: ffff8000812ab1e0 x21: ffff8000927e2000 x20: ffff0000c97aa718 x19: ffff0000c0029400 x18: 00000000ffffffff x17: ffff800092ef0000 x16: ffff80008ad9af48 x15: 0000000000000001 x14: 1fffe00036712322 x13: 0000000000000000 x12: 0000000000000000 x11: ffff600036712323 x10: 0000000000ff0100 x9 : 8e733f21858b4900 x8 : 8e733f21858b4900 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a3367078 x4 : ffff80008f3d4f00 x3 : ffff8000807abf30 x2 : 0000000000000001 x1 : 0000000100000001 x0 : 0000000000000000 Call trace: check_flush_dependency+0x288/0x33c kernel/workqueue.c:3717 (P) start_flush_work kernel/workqueue.c:4171 [inline] __flush_work+0x220/0x8c0 kernel/workqueue.c:4208 flush_work kernel/workqueue.c:4265 [inline] flush_delayed_work+0xcc/0xf8 kernel/workqueue.c:4287 hfs_file_fsync+0xe8/0x144 fs/hfs/inode.c:680 vfs_fsync_range+0x160/0x19c fs/sync.c:187 generic_write_sync include/linux/fs.h:2976 [inline] dio_complete+0x510/0x6bc fs/direct-io.c:313 dio_aio_complete_work+0x28/0x38 fs/direct-io.c:325 process_one_work+0x7e8/0x156c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 irq event stamp: 173412 hardirqs last enabled at (173411): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:85 [inline] hardirqs last enabled at (173411): [] exit_to_kernel_mode+0xc0/0xf0 arch/arm64/kernel/entry-common.c:95 hardirqs last disabled at (173412): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (173412): [] _raw_spin_lock_irq+0x28/0x70 kernel/locking/spinlock.c:170 softirqs last enabled at (173410): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (173410): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (173395): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]---