Technical Root Cause Analysis
1. Verified Crash / Stall Mechanism
wq_watchdog_timer_fn() (kernel/workqueue.c:8153) detected that normal-priority per-CPU worker pool pool 6 (cpus=1 node=0 flags=0x0 nice=0) made no forward progress (pool->last_progress_ts) for 46 seconds while pool->worklist remained non-empty (events, wg-crypt-wg0, mm_percpu_wq, etc. have pending items on pwq 6).
In contrast, pool 2 (cpus=0) and pool 8 (cpus=0-1) both report hung=0s, and unbound work items (events_unbound, events_dfl_long, wg-kex-*) started at intervals down to 0sβ12s before the dump. This rules out a whole-VM pause and confirms jiffies and CPU 0 continued progressing normally while CPU 1 stalled.
2. State of the Reported Workers on CPU 1 (pool 6)
pool 6 has 5 workers: 3 idle (26, 24, 1024) and 2 busy (1101 and 4866), both marked in-flight for 46s:
kworker/1:3 (pid 1101) running ovs_dp_masks_rebalance() (net/openvswitch/datapath.c:2608) -> ovs_flow_masks_rebalance() (net/openvswitch/flow_table.c:1103) -> kmalloc_objs() -> kasan_quarantine_reduce() -> __slab_free() -> _raw_spin_unlock_irqrestore() -> preempt_schedule() -> preempt_schedule_common() -> __schedule(SM_PREEMPT) -> context_switch() -> __switch_to() (arch/arm64/kernel/process.c:792).
- It holds only the sleepable
ovs_mutex (ovs_lock()) and was cleanly preempted immediately after re-enabling interrupts and preemption in spin_unlock_irqrestore().
kworker/1:4 (pid 4866) in process_one_work() (kernel/workqueue.c:3463) -> wake_up_process() -> try_to_wake_up() -> preempt_schedule() -> preempt_schedule_common() -> __schedule(SM_PREEMPT) -> context_switch() -> __switch_to().
- Because
wg-crypt-wg0 has WQ_CPU_INTENSIVE (flags=0x128), process_one_work() set WORKER_CPU_INTENSIVE (WORKER_NOT_RUNNING), dropped pool->lock, and called wake_up_process(wake_task) under preemptible rcu_read_lock() (CONFIG_PREEMPT_RCU=y) before even invoking wg_packet_tx_worker(). It was cleanly preempted on exit from try_to_wake_up().
This rules out a lockup or infinite loop inside ovs_dp_masks_rebalance(), wg_packet_tx_worker(), or kasan_quarantine_reduce(): both workers were switched out via cpu_switch_to() 46 seconds earlier and remained in TASK_RUNNING (state: R) waiting to be scheduled back onto CPU 1.
3. Why Workqueue Did Not Wake Idle Workers or Dump CPU 1
- Because
1101 and 4866 were preempted rather than sleeping via schedule(), wq_worker_sleeping() (kernel/workqueue.c:1521) was not called and worker->sleeping remained 0. Thus pool->nr_running remained non-zero (2), keeping need_more_worker(pool) (kernel/workqueue.c:989) false so the 3 idle workers were not woken (and would similarly be unable to run on CPU 1 if CPU 1 is starved).
- In
show_cpu_pool_busy_workers() (kernel/workqueue.c:8054), the loop checks task_is_running(worker->task) (kernel/workqueue.c:8068), which only checks task->__state == TASK_RUNNING rather than whether the worker is actually executing on the CPU (task_curr()). Because 1101 and 4866 are TASK_RUNNING, found_running was set to true, causing show_cpu_pool_busy_workers() to skip trigger_single_cpu_backtrace(1) (kernel/workqueue.c:8101).
4. Relationship to sched: DL replenish lagged too much and Inconclusive Trigger
Immediately prior to the workqueue lockup, replenish_dl_entity() (kernel/sched/deadline.c:845-848) logged:
printk_deferred_once("sched: DL replenish lagged too much\n");
This occurs when a SCHED_DEADLINE task or dl_server (such as rq->fair_server, which is initialized with 50ms/1000ms bandwidth in sched_init_dl_servers() to prevent CFS starvation) still has dl_se->deadline < rq_clock(rq) after advancing by dl_period while dl_se->runtime <= 0.
Because show_cpu_pool_busy_workers() skipped trigger_single_cpu_backtrace(1) and the 46-second stall fell below the configured RCU CPU stall (CONFIG_RCU_CPU_STALL_TIMEOUT=100), softlockup (watchdog_thresh=55 -> 110s), and CSD lockup (smp.csd_lock_timeout=100000) thresholds, the report does not record what was occupying CPU 1 during those 46 seconds. Consistent causes include:
- A task or interrupt/softirq handler on CPU 1 spinning in a non-preemptible or IRQ-disabled section (which would also delay
dl_task_timer/dl_server_timer replenishment and prevent 1101/4866 from running);
- Starvation of CFS tasks on CPU 1 by an RT/DL workload if
fair_server was disabled or failed to preempt; or
- Host-side vCPU-1 preemption/starvation of the guest CPU 1 thread while vCPU 0 continued running (since
kvm_check_and_clear_guest_paused() is a no-op stub on arm64 in include/asm-generic/kvm_para.h).
Without CPU 1's backtrace or a reproducer, the exact offending code path running on CPU 1 remains inconclusive.