From: Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
To: syzbot+a262610586e32d5c8d7a@syzkaller.appspotmail.com
Cc: aconole@redhat.com, echaudro@redhat.com, i.maximets@ovn.org,
netdev@vger.kernel.org, dev@openvswitch.org,
linux-kernel@vger.kernel.org
Subject: Re: [syzbot] [openvswitch?] BUG: workqueue lockup in ovs_dp_masks_rebalance
Date: Sun, 29 Nov 2026 20:40:13 +0700 [thread overview]
Message-ID: <20261129134014.116386-1-ngocthang2710.1999@gmail.com> (raw)
In-Reply-To: <6b0b0348.8ccee5ca.1045fd.0298.GAE@google.com>
#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
prev parent reply other threads:[~2026-11-29 13:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 16:37 syzbot
2026-11-29 13:40 ` Nguyen Ngoc Thang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261129134014.116386-1-ngocthang2710.1999@gmail.com \
--to=ngocthang2710.1999@gmail.com \
--cc=aconole@redhat.com \
--cc=dev@openvswitch.org \
--cc=echaudro@redhat.com \
--cc=i.maximets@ovn.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=syzbot+a262610586e32d5c8d7a@syzkaller.appspotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®