BUG: workqueue lockup in ovs_dp_masks_rebalance

Status: moderation: reported on 2026/11/25 20:23
Subsystems: openvswitch
Labels: prio:low
[Documentation on labels]
Reported-by: syzbot+d102394ddbcbba6f6776@syzkaller.appspotmail.com
First crash: 1h44m, last: 1h44m
✨ AI-generated root cause summary:

The report shows a 46-second workqueue lockup on CPU 1's normal-priority per-CPU pool (pool 6) preceded by "sched: DL replenish lagged too much" from replenish_dl_entity() in kernel/sched/deadline.c. Both in-flight workers on CPU 1 (ovs_dp_masks_rebalance and wg_packet_tx_worker) are in TASK_RUNNING state and were cleanly preempted via preempt_schedule_common() -> __schedule() -> __switch_to(), meaning neither is deadlocked or currently executingβ€”both have simply been starved of CPU 1 for 46 seconds while CPU 0 (pool 2) and unbound pool 8 continued making progress. Because show_cpu_pool_busy_workers() in kernel/workqueue.c checks task_is_running() (which tests __state == TASK_RUNNING rather than whether the task is actually running on the CPU), it skipped trigger_single_cpu_backtrace(1). Without CPU 1's actual backtrace, the exact offending task, non-preemptible loop, scheduler/dl_server misbehavior, or hypervisor vCPU-1 stall cannot be determined conclusively from this report alone.

▶ ▼ ✨ Full AI root cause analysis
Based on kernel commit a7e632493acf:

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.

▶ ▼ ✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
5a076422 bisect-cause πŸƒ BUG: workqueue lockup in ovs_dp_masks_rebalance 2026/11/25 20:42 2026/11/25 20:42 9ed6ae4a
94d7d36f assessment-security DenialOfService: βœ… Exploitable: ❌ FilesystemTrigger: ❌ FuzzingArtifact: ❌ MemoryCorruption: ❌ NetworkNeedsSetup: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ BUG: workqueue lockup in ovs_dp_masks_rebalance 2026/11/25 19:27 2026/11/25 19:27 2026/11/25 20:22 9ed6ae4a

Sample crash report:
sched: DL replenish lagged too much
BUG: workqueue lockup - pool cpus=1 node=0 flags=0x0 nice=0 stuck for 46s!
Showing busy workqueues and worker pools:
workqueue events: flags=0x100
  pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=5 refcnt=6
    pending: 5*nsim_dev_hwstats_traffic_work
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=17 refcnt=18
    in-flight: 1101:ovs_dp_masks_rebalance for 46s
    pending: 2*psi_avgs_work, 2*nsim_dev_hwstats_traffic_work, free_obj_work, 3*psi_avgs_work, ovs_dp_masks_rebalance, delayed_vfree_work, reg_todo, drm_fb_helper_damage_work, 3*rht_deferred_worker, key_garbage_collector
workqueue events_unbound: flags=0x2
  pwq 8: cpus=0-1 flags=0x4 nice=0 active=19 refcnt=20
    in-flight: 40:cfg80211_wiphy_work for 59s cfg80211_wiphy_work ,14:nsim_dev_trap_report_work for 8s ,915:cfg80211_wiphy_work for 42s cfg80211_wiphy_work ,6361:cfg80211_wiphy_work for 54s cfg80211_wiphy_work ,3863:cfg80211_wiphy_work for 38s cfg80211_wiphy_work ,6346:cfg80211_wiphy_work for 56s cfg80211_wiphy_work ,6354:cfg80211_wiphy_work for 57s cfg80211_wiphy_work ,6367:cfg80211_wiphy_work for 54s cfg80211_wiphy_work ,3569:cfg80211_wiphy_work for 44s cfg80211_wiphy_work
    pending: 2*nsim_dev_trap_report_work
  pwq 8: cpus=0-1 flags=0x4 nice=0 active=9 refcnt=10
    in-flight: 6345:nsim_dev_trap_report_work for 2s ,1140:cfg80211_wiphy_work for 23s cfg80211_wiphy_work ,6362:nsim_dev_trap_report_work for 1s ,12:nsim_dev_trap_report_work for 0s ,6360:cfg80211_wiphy_work for 12s cfg80211_wiphy_work ,6359:nsim_dev_trap_report_work for 5s
    pending: toggle_allocation_gate
workqueue events_power_efficient: flags=0x82
  pwq 8: cpus=0-1 flags=0x4 nice=0 active=1 refcnt=2
    pending: fb_flashcursor
  pwq 8: cpus=0-1 flags=0x4 nice=0 active=3 refcnt=4
    in-flight: 6370:neigh_periodic_work for 4s
    pending: neigh_periodic_work, gc_worker
workqueue events_dfl_long: flags=0x2
  pwq 8: cpus=0-1 flags=0x4 nice=0 active=5 refcnt=6
    in-flight: 6344:defense_work_handler for 0s
    pending: 4*defense_work_handler
workqueue mm_percpu_wq: flags=0x108
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
    pending: vmstat_update
workqueue writeback: flags=0x4a
  pwq 8: cpus=0-1 flags=0x4 nice=0 active=1 refcnt=2
    in-flight: 41:wb_workfn for 51s
workqueue bat_events: flags=0x6000a
  pwq 8: cpus=0-1 flags=0x4 nice=0 active=1 refcnt=30
    pending: batadv_tt_purge
    inactive: batadv_bla_periodic_work, batadv_dat_purge, 2*batadv_tt_purge, 2*batadv_bla_periodic_work, 2*batadv_dat_purge, batadv_tt_purge, batadv_dat_purge, batadv_bla_periodic_work, 2*batadv_iv_send_outstanding_bat_ogm_packet, 2*batadv_purge_orig, 4*batadv_mcast_mla_update, batadv_iv_send_outstanding_bat_ogm_packet, batadv_purge_orig, 2*batadv_iv_send_outstanding_bat_ogm_packet, batadv_purge_orig, 2*batadv_iv_send_outstanding_bat_ogm_packet
workqueue wg-crypt-wg0: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=2 refcnt=3
    pending: wg_packet_tx_worker, wg_packet_encrypt_worker
workqueue wg-kex-wg1: flags=0x6
  pwq 8: cpus=0-1 flags=0x4 nice=0 active=1 refcnt=2
    in-flight: 5782:wg_packet_handshake_send_worker for 2s
workqueue wg-crypt-wg1: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
    pending: wg_packet_tx_worker
workqueue wg-kex-wg2: flags=0x124
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
    pending: wg_packet_handshake_receive_worker
workqueue wg-kex-wg0: flags=0x124
  pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2
    in-flight: 11:wg_packet_handshake_receive_worker for 3s
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
    pending: wg_packet_handshake_receive_worker
workqueue wg-crypt-wg0: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=2 refcnt=3
    pending: wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg0: flags=0x6
  pwq 8: cpus=0-1 flags=0x4 nice=0 active=1 refcnt=2
    in-flight: 6355:wg_packet_handshake_send_worker for 5s
workqueue wg-crypt-wg0: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=2 refcnt=3
    pending: wg_packet_tx_worker, wg_packet_encrypt_worker
workqueue wg-crypt-wg1: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=3 refcnt=4
    pending: wg_packet_encrypt_worker, wg_packet_tx_worker, wg_packet_decrypt_worker
workqueue wg-crypt-wg1: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=3 refcnt=4
    pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg2: flags=0x124
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
    pending: wg_packet_handshake_receive_worker
workqueue wg-crypt-wg2: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=3 refcnt=4
    pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg2: flags=0x124
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
    pending: wg_packet_handshake_receive_worker
workqueue wg-crypt-wg2: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=3 refcnt=4
    pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg0: flags=0x124
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
    pending: wg_packet_handshake_receive_worker
workqueue wg-crypt-wg0: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=2 refcnt=3
    in-flight: 4866:wg_packet_tx_worker for 46s
    pending: wg_packet_encrypt_worker
workqueue wg-crypt-wg1: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=2 refcnt=3
    pending: wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg2: flags=0x124
  pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3
    in-flight: 4826:wg_packet_handshake_receive_worker for 27s wg_packet_handshake_receive_worker
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
    pending: wg_packet_handshake_receive_worker
workqueue wg-crypt-wg2: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=3 refcnt=4
    pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue bond1: flags=0x2000a
  pwq 8: cpus=0-1 flags=0x4 nice=0 active=1 refcnt=5
    pending: bond_mii_monitor
    inactive: bond_alb_monitor
workqueue wg-kex-wg0: flags=0x124
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
    pending: wg_packet_handshake_receive_worker
workqueue wg-crypt-wg0: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=3 refcnt=4
    pending: wg_packet_encrypt_worker, wg_packet_tx_worker, wg_packet_decrypt_worker
workqueue wg-crypt-wg1: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=3 refcnt=4
    pending: wg_packet_encrypt_worker, wg_packet_decrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg2: flags=0x124
  pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2
    in-flight: 1220:wg_packet_handshake_receive_worker for 9s
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
    pending: wg_packet_handshake_receive_worker
workqueue wg-crypt-wg2: flags=0x128
  pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=2 refcnt=3
    pending: wg_packet_encrypt_worker, wg_packet_tx_worker
pool 2: cpus=0 node=0 flags=0x0 nice=0 hung=0s workers=9 idle: 4888 4825 4726 9 4843 1167
pool 6: cpus=1 node=0 flags=0x0 nice=0 hung=46s workers=5 idle: 26 24 1024
pool 8: cpus=0-1 flags=0x4 nice=0 hung=0s workers=30 idle: 6348 6368 6356 3899 6363 6366 84 6364 6369 6365
Showing backtraces of busy workers in stalled worker pools:
pool 6:
task:kworker/1:3     state:R  running task     stack:0     pid:1101  tgid:1101  ppid:2      task_flags:0x4208060 flags:0x00000010
Workqueue: events ovs_dp_masks_rebalance
Call trace:
 __switch_to+0x2b4/0x6e4 arch/arm64/kernel/process.c:792 (T)
 context_switch kernel/sched/core.c:5583 [inline]
 __schedule+0x1368/0x2b50 kernel/sched/core.c:7382
 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7561
 preempt_schedule+0x60/0x78 kernel/sched/core.c:7585
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline]
 _raw_spin_unlock_irqrestore+0x94/0x98 kernel/locking/spinlock.c:221
 spin_unlock_irqrestore include/linux/spinlock.h:425 [inline]
 __slab_free+0x194/0x1d0 mm/slub.c:5924
 ___cache_free+0x80/0x94 mm/slub.c:6702
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0xb4/0x120 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x118/0x124 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x2c/0x88 mm/kasan/common.c:361
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4720 [inline]
 slab_alloc_node mm/slub.c:5033 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kmalloc_noprof+0x2e8/0x6c8 mm/slub.c:5556
 _kmalloc_noprof include/linux/slab.h:995 [inline]
 ovs_flow_masks_rebalance+0xec/0x99c net/openvswitch/flow_table.c:1112
 ovs_dp_masks_rebalance+0x64/0x11c net/openvswitch/datapath.c:2618
 process_one_work kernel/workqueue.c:3495 [inline]
 process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3578
 worker_thread+0x798/0xbd0 kernel/workqueue.c:3659
 kthread+0x304/0x3d4 kernel/kthread.c:436
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854
pool 6:
task:kworker/1:4     state:R  running task     stack:0     pid:4866  tgid:4866  ppid:2      task_flags:0x4208060 flags:0x00000010
Workqueue: wg-crypt-wg0 wg_packet_tx_worker
Call trace:
 __switch_to+0x2b4/0x6e4 arch/arm64/kernel/process.c:792 (T)
 context_switch kernel/sched/core.c:5583 [inline]
 __schedule+0x1368/0x2b50 kernel/sched/core.c:7382
 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7561
 preempt_schedule kernel/sched/core.c:7585 [inline]
 class_preempt_destructor include/linux/preempt.h:496 [inline]
 try_to_wake_up+0x700/0xfe0 kernel/sched/core.c:4495
 wake_up_process+0x18/0x24 kernel/sched/core.c:4620
 process_one_work kernel/workqueue.c:3463 [inline]
 process_scheduled_works+0x744/0x1250 kernel/workqueue.c:3578
 worker_thread+0x798/0xbd0 kernel/workqueue.c:3659
 kthread+0x304/0x3d4 kernel/kthread.c:436
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/25 19:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a7e632493acf 5570221e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: workqueue lockup in ovs_dp_masks_rebalance
* Struck through repros no longer work on HEAD.