Re: [syzbot] [pm?] possible deadlock in rpm_suspend

From: Hillf Danton
Date: Fri Jan 03 2025 - 05:43:46 EST


On Mon, 30 Dec 2024 19:52:22 -0800
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 8155b4ef3466 Add linux-next specific files for 20241220
> git tree: linux-next
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16491818580000

#syz test

--- x/kernel/workqueue.c
+++ y/kernel/workqueue.c
@@ -7807,7 +7807,7 @@ void __init workqueue_init_early(void)

system_wq = alloc_workqueue("events", 0, 0);
system_highpri_wq = alloc_workqueue("events_highpri", WQ_HIGHPRI, 0);
- system_long_wq = alloc_workqueue("events_long", 0, 0);
+ system_long_wq = alloc_workqueue("events_long", WQ_MEM_RECLAIM, 0);
system_unbound_wq = alloc_workqueue("events_unbound", WQ_UNBOUND,
WQ_MAX_ACTIVE);
system_freezable_wq = alloc_workqueue("events_freezable",
--