* [syzbot] [openvswitch?] BUG: workqueue lockup in ovs_dp_masks_rebalance
@ 2026-11-28 16:37 syzbot
2026-11-29 13:40 ` Nguyen Ngoc Thang
0 siblings, 1 reply; 2+ messages in thread
From: syzbot @ 2026-11-28 16:37 UTC (permalink / raw)
To: aconole, dev, echaudro, i.maximets, linux-kernel, luto, netdev,
peterz, syzkaller-bugs, tglx
Hello,
syzbot found the following issue on:
HEAD commit: 3fdeb5ad9354 Merge branch 'for-next/core' into for-kernelci
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=153faa73580000
kernel config: https://syzkaller.appspot.com/x/.config?x=be66ed143fccf867
dashboard link: https://syzkaller.appspot.com/bug?extid=a262610586e32d5c8d7a
compiler: Debian clang version 22.1.8 (1~deb13u5), Debian LLD 22.1.8
userspace arch: arm64
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17f10903580000
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 analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=a262610586e32d5c8d7a
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a262610586e32d5c8d7a@syzkaller.appspotmail.com
BUG: workqueue lockup - pool cpus=1 node=0 flags=0x0 nice=0 stuck for 10s!
Showing busy workqueues and worker pools:
workqueue events: flags=0x100
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2
in-flight: 876:request_firmware_work_func for 102s
pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=9 refcnt=10
in-flight: 1103:ovs_dp_masks_rebalance for 10s
pending: pcpu_balance_workfn, 7*ovs_dp_masks_rebalance
workqueue mm_percpu_wq: flags=0x108
pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
pending: vmstat_update
pool 2: cpus=0 node=0 flags=0x0 nice=0 hung=0s workers=6 idle: 10 4913 11 4795 4551
pool 6: cpus=1 node=0 flags=0x0 nice=0 hung=10s workers=6 idle: 4824 25 877 27 4901
Showing backtraces of busy workers in stalled worker pools:
pool 6:
task:kworker/1:3 state:R running task stack:0 pid:1103 tgid:1103 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:5584 [inline]
__schedule+0x13a0/0x2bd4 kernel/sched/core.c:7386
preempt_schedule_irq+0x74/0x174 kernel/sched/core.c:7666
irqentry_exit_cond_resched+0x30/0x40 kernel/entry/common.c:145
irqentry_exit_to_kernel_mode_preempt+0x44/0x54 include/linux/irq-entry-common.h:453
arm64_exit_to_kernel_mode_preempt+0x1c/0x38 arch/arm64/kernel/entry-common.c:108
__el1_irq arch/arm64/kernel/entry-common.c:572 [inline]
el1_interrupt+0x4c/0x60 arch/arm64/kernel/entry-common.c:582
el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:587
el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:602
check_kcov_mode+0xc/0x54 kernel/kcov.c:179 (P)
do_cmp lib/sort.c:159 [inline]
__sort_r+0x304/0x4d0 lib/sort.c:259
sort+0xb0/0x100 lib/sort.c:342
ovs_flow_masks_rebalance+0x47c/0x99c net/openvswitch/flow_table.c:1155
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
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [syzbot] [openvswitch?] BUG: workqueue lockup in ovs_dp_masks_rebalance
2026-11-28 16:37 [syzbot] [openvswitch?] BUG: workqueue lockup in ovs_dp_masks_rebalance syzbot
@ 2026-11-29 13:40 ` Nguyen Ngoc Thang
0 siblings, 0 replies; 2+ messages in thread
From: Nguyen Ngoc Thang @ 2026-11-29 13:40 UTC (permalink / raw)
To: syzbot+a262610586e32d5c8d7a
Cc: aconole, echaudro, i.maximets, netdev, dev, linux-kernel
#syz invalid
This is CPU starvation of the per-CPU kworker on CPU 1. It is not an
openvswitch bug. ovs_dp_masks_rebalance() is simply the work item that
happened to be in flight when the watchdog fired.
The C reproducer is not a plain user of OVS. As root it:
- sets workqueue.watchdog_thresh to 10s,
- disables RT throttling (sched_rt_runtime_us = -1),
- shrinks the CPU 1 fair_server runtime to 5ms,
- pins a busy-looping SCHED_FIFO task and 10 nice -20 busy loops
to CPU 1.
A nice 0 kworker on that CPU gets almost no CPU time after that, so
any work item that needs more than a few ms of CPU stalls the pool.
The 11/25 crash without a reproducer looks the same. The syzkaller
program set SCHED_FIFO/SCHED_RR priority on its threads, the log shows
"sched: DL replenish lagged too much", and pool 6 has wg_packet_tx_worker
in flight for 46s next to the OVS work.
I ran the reproducer in QEMU (x86_64, 2 vCPUs, KASAN) on
4f069ab1ec24 with the same OVS load: 400 datapaths x 200 masks,
8 child netns, packet churn. Each run lasts ~90s:
mode lockups rebalance duration
as-is (RT spinner + hogs) 5-6 (victim varies)
10 nice -20 hogs, no RT 0-2 ~28-40 s wall
no hogs, no RT, same OVS load 0 ~70-90 ms
In the as-is run, the stalled work item was request_firmware_work_func
/ mld, not OVS. The pool dump reports 8 ovs_dp_masks_rebalance works as
pending, and the stall only follows which work is on CPU 1. With the
CPU hogs removed, one rebalance pass over 80000 masks takes about 80ms
under KASAN, and no lockup is reported.
Adding cond_resched() or splitting the work in OVS would not change
anything. The kernel is fully preemptible here and the worker is
already preempted (preempt_schedule_irq in the trace). The worker is
simply never picked again because of the scheduling policy root chose.
Thanks,
Nguyen Ngoc Thang
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-29 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 16:37 [syzbot] [openvswitch?] BUG: workqueue lockup in ovs_dp_masks_rebalance syzbot
2026-11-29 13:40 ` Nguyen Ngoc Thang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®