------------[ cut here ]------------ workqueue: WQ_MEM_RECLAIM dio/loop5:dio_aio_complete_work is flushing !WQ_MEM_RECLAIM events_long:flush_mdb WARNING: CPU: 1 PID: 6549 at kernel/workqueue.c:3723 check_flush_dependency+0x288/0x33c kernel/workqueue.c:3719 Modules linked in: CPU: 1 UID: 0 PID: 6549 Comm: kworker/1:4 Not tainted 6.16.0-rc1-syzkaller-g19272b37aa4f #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: dio/loop5 dio_aio_complete_work pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_flush_dependency+0x288/0x33c kernel/workqueue.c:3719 lr : check_flush_dependency+0x288/0x33c kernel/workqueue.c:3719 sp : ffff8000a3ce7730 x29: ffff8000a3ce7740 x28: dfff800000000000 x27: ffff70001479cef4 x26: ffff0000c1081408 x25: 0000000000000000 x24: ffff0000cf84a800 x23: dfff800000000000 x22: ffff8000812cd2a4 x21: ffff800092b05000 x20: ffff0000d1055418 x19: ffff0000c0029400 x18: 00000000ffffffff x17: ffff800093215000 x16: ffff80008ae5617c x15: 0000000000000001 x14: 1fffe000338078e2 x13: 0000000000000000 x12: 0000000000000000 x11: ffff6000338078e3 x10: 0000000000ff0100 x9 : f5cc008a8f122000 x8 : f5cc008a8f122000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a3ce7078 x4 : ffff80008f657060 x3 : ffff8000807bb518 x2 : 0000000000000001 x1 : 0000000100000001 x0 : 0000000000000000 Call trace: check_flush_dependency+0x288/0x33c kernel/workqueue.c:3719 (P) start_flush_work kernel/workqueue.c:4173 [inline] __flush_work+0x220/0x8c0 kernel/workqueue.c:4210 flush_work kernel/workqueue.c:4267 [inline] flush_delayed_work+0xcc/0xf8 kernel/workqueue.c:4289 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:3027 [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/0x155c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3402 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 irq event stamp: 151162 hardirqs last enabled at (151161): [] flush_delayed_work+0xac/0xf8 kernel/workqueue.c:4288 hardirqs last disabled at (151162): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (151162): [] _raw_spin_lock_irq+0x28/0x70 kernel/locking/spinlock.c:170 softirqs last enabled at (151102): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (151102): [] ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline] softirqs last enabled at (151102): [] wg_packet_decrypt_worker+0x90c/0x994 drivers/net/wireguard/receive.c:499 softirqs last disabled at (151100): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (151100): [] ptr_ring_consume_bh include/linux/ptr_ring.h:365 [inline] softirqs last disabled at (151100): [] wg_packet_decrypt_worker+0x5e8/0x994 drivers/net/wireguard/receive.c:499 ---[ end trace 0000000000000000 ]---