🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24154

Re: [syzbot] [openvswitch?] BUG: workqueue lockup in ovs_dp_masks_rebalance

#24154
From: Nguyen Ngoc Thang
Date: Sun, 29 Nov 2026 13:40
42 lines
12689 bytes
#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
Technical Details
Message-ID: <20261129134014.116386-1-ngocthang2710.1999@gmail.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373504-linux-kernel-netdev=dewy.ru
References: <6b0b0348.8ccee5ca.1045fd.0298.GAE@google.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373504-linux-kernel-netdev=dewy.ru
From: ngocthang2710.1999@gmail.com (Nguyen Ngoc Thang)
Newsgroups: linux.kernel.netdev
Subject: Re: [syzbot] [openvswitch?] BUG: workqueue lockup in ovs_dp_masks_rebalance
Date: Sun, 29 Nov 2026 20:40:13 +0700
Organization: Usenet Network
Message-ID: <20261129134014.116386-1-ngocthang2710.1999@gmail.com>
References: <6b0b0348.8ccee5ca.1045fd.0298.GAE@google.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1176869"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:7PzX/+OiF4BibE7kMo5qkkiyHH4= sha256:auAWrAwTP1MAe2YmJboVGZoG53crulfqnZuPpLMBPvI=
	sha1:jT5yFp1J1LNYNB1FVZsqVXiKNrE= sha256:4OYHPhrXufAyySz8RfaV650E43HpDjlzlLpEu+Paqdc=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 7DF69125F9A; Sun, 29 Nov 2026 16:40:42 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id jeunww3S5McX;
	Sun, 29 Nov 2026 16:40:39 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373504-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id E6C17125F94; Sun, 29 Nov 2026 16:40:28 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 6CDD0242F4; Sun, 29 Nov 2026 13:40:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795959621;
	b=si3FgJKOySCcUOqLiPUSXszRa2SLeNvBBrTxLrnybwkUHoEmqI6PlJT8lSxn5EYIsZH7
	 wWdbSQ12fD9AKONA5xinu44OW9zQmgd9jW+/BKbAPW51FqFGeNr5opAgi3HNLNAVSM7+H
	 zn2H+PIPOVQiWVFSoU8TiMLDfew6Q6ZlwT2U0s0cohz/uSeVCpMYFwjxUEFPb5jX6AIAE
	 S28GTaZR8q1FKmky+Ra4qNzdYIf5oZ+/pgcb2tUo1fxikwuquqW6Xm2UsIEoipd6xSlbJ
	 jDGpXUTRCjtLsIOd6i8EsLO9MCdwEOJMnWSDABYAUYPy+ky0icEOcAcA0ofPcTeFWiw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795959621;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-ID:
	 X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding;
	bh=BVWZfnfoBsPVq5HtDzs49BLJPZOblp3rXTnloC64goI=;
	b=SyxG3frz2TxdzpH1fxuAZHAkOTyo6VStCx88+X8hWe55OWYUZnCBbEYoVr2OvmwDmaYT
	 tmHuAw8mNaD+1uD5/hzia8ZUFKKIGefJLvRiRgMw01lv8MlG6Pbt9iA9dkRJOpCVcENH5
	 nr4Sd1Zj1UFwY65Yt+wODX4ocqzuHWQrJpN+xQ/Crbzege87NB3IGWcP/321vJZQM3bvF
	 8LhqhcLGDicO1p29pWS6mB0KdFniR2JW7ihSX/U/A4CmvAW0qTCjDNU9QzJ7Tg2CQX3R4
	 zxXw3qvVZALoSDpdw1IktAUt6YxySRTyPXnXR5Cx5wtp92cTOQCX3EqVhaqK3OkaB0g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=rMyQF8uj;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 36BB9606A685;
	Sun, 29 Nov 2026 13:40:21 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=rMyQF8uj
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.47
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795959620;
	b=nOVN3WRwo9Z2tsUwDpQSB71Mca266k5aj9poR7MV4urPyCO6ra9w/kAN/VS5ih5pZahf
	 RE5i7ZyiDBSgsIbQuOVo+zxZUwo2oDREiRb/R/Q0ggsvNuG9Vn+N2r6iqLplL7ZFK72LT
	 EVQjoIHB/29NhtWmvI+PQhqW47pvZkfvkuvm6YTeCp6UIe643yLo/fHcL9GQS5X0XFJH9
	 7qPaCr5bKevk5qteWFZENfcjOmWPViMwJ1631Z1VvJrNrVldUN+VGH3H7hSpYeaqFJujk
	 7iGhiY3sUx36ud5a+6FLwarMa2CXaq2Bs9+M82fc7/5XvaIuoxfUeRw/58UmFfM5PjA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795959620;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
	 MIME-Version:Content-Transfer-Encoding;
	bh=BVWZfnfoBsPVq5HtDzs49BLJPZOblp3rXTnloC64goI=;
	b=udMr5lvULnTO1fXxk6AdcohOZRpRW01XAyVUkExH6RnAzBs2AUx8xko9j5ySY4dsMtqy
	 M+b3JbnOobIZstslEqSx3j7XD5a6y0RQwGnH9gbjHXMbM0BpCLlG5XXahIPWIb7j0d0w8
	 BK8ePFi2CjodiKbj7RPDb53PVCkwx34kGOHe0eOBwrTxlkOtSKfRaiOdgmVevRFWMCI8b
	 NZMpbYbrtxdyBeBzSyRN9Nkw4HSl0rMAH/i1xOaqZVrn2gxUfgnNN7QOVjFvAPiUIEEzj
	 gV/7V8v6ghUzEfSjYbYH7owy4/fSppLJ8yVbHh2w3GIXKkA0zFiJFfJD/Z7eVX432vA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=rMyQF8uj;
	arc=none smtp.remote-ip=209.85.216.47
X-Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11A35606A32C
	for <netdev@vger.kernel.org>; Sun, 29 Nov 2026 13:40:19 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 11A35606A32C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-3b44bdcea8aso5535612a91.1
        for <netdev@vger.kernel.org>; Sun, 29 Nov 2026 05:40:19 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1795959619; x=1796564419; darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=BVWZfnfoBsPVq5HtDzs49BLJPZOblp3rXTnloC64goI=;
        b=rMyQF8ujsDM0q95ccNRLCq5IDZBnChEc6bSMborKhrXiNIP2Poy0hugxcHCLWU2ywI
         Cq6WNM+6gogUNzEwZdzvGyl54vw+dmU6vzjrbr1lsZiUetrlW3PYkCuk1WavsSZDCoPT
         bZqVyBjd3LNjJ4+jMHuPahE74vHKBJSJaAbu0ER/2ZVE91v9+LN5gMgub27qePWaAbWo
         /smCNHNIJt6g9at1L0/8LTYYjSqIfNeuAKGaUaX/Gpl41ZLzZI0KC2O34VXxWYeDJncM
         +N1NJxEme3QttNdaw312a4WSfuOGImUiPk8xD1Ny0P33hawMWzBD7K9LYX20ou/NbHUY
         OEEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1795959619; x=1796564419;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
         :to:cc:subject:date:message-id:reply-to:content-type;
        bh=BVWZfnfoBsPVq5HtDzs49BLJPZOblp3rXTnloC64goI=;
        b=DswbVTh9CE/T45iHyugaATkSGZXzpB6Yn1mc/ZcnInZ+dwybM0HMKd8eV1/Qn7QK/f
         ynm5BESXidA/2Ms5x3de7pehc2W7VZg00qZBQmc7hpHnFira0yJDvTM9f7LhjLE7k233
         WxCYhmPAidz1H5vZKBkSgbPQhtZhQ3hVncqqFQ0I0rUAXOLE6D5VLPg3RxSwC+Rrz2hX
         xHnB8JVyYf40InXnPiwWAIJt5lfrz7M1rmvKNXYN3Fbnqfk7mgP0J07TPxBjd8StbThF
         XJu55fA48+P0jxcnc4t8E9isDZaGsKxjX/2xmyplpWkA4X/nsjOY4FO6+K3w2qaFhhcY
         vYog==
X-Forwarded-Encrypted: i=1; AL+hErEASt/a6TMRSX3TEZOv8j25rdCK9BVIfAN/hxb4TGOI1i/rXRofOUaO6cJ5aHD7HCVICFHlq4U=@vger.kernel.org
X-Gm-Message-State: APuU4Z++ybmndlhA3avDkTAcXuTqjXVI8P35jXBmPU3w3lSUIxs1e80W
	Ee96Ag8i1LOeWYFTRY2i23jO/1o6cqcj9qZu8xlIvMUeDHww/hDne1sv
X-Gm-Gg: AZFdTZev/cKq3MZ92ptAXRX9TcNIeBFEohjZa6JFroHu23owP0PtmeTM2GglrsJkg4l
	osgU5D/99TqdqJFrelXvdxOp+BtugWNs9HV+tp403eWQxBFV09lxHDT9OhjLAZ/f+wMZQHjwQCG
	1h/qckK0R+JkcXH2FLFPDGQV9dkgJ79999iGqaN33nLSqqis76FsTaSXrLEiBmD0phsQ/iJ54mM
	sdZimn67eIibxn7S7bt1n1a4pGtrY4phqVlJz6IEQbBrtF7lQHSsOFKnI1yc+pScePuybaxSurt
	cH8Xhxgztslo/MmAPtdRwld3nCdGA8WnWbyjU/A0aTD137bJjw8mXMvMI049yO3pdVlz27l1ToR
	ty9uxxTTiqlgC9+VHkWne6Gzm6piiYT6+INNdsF0s7BYKFk00DVSUprNNc/n08mUa2pArVLG9eB
	8Q6/058NqnyqmXV9ao2k61Wq5ZdocS9UgRGrqICpfIdJSbdeFukjFD77yKSahvVZnd12H5Weu5/
	g7R1mr1skmsls5InKw8+i3ZmX+YwtuNdmxb7itErPTHxp9YBp1bIScowSc8iOYnPmIQn2G0oZL+
	FqzHtgrpMfWbivAD3kGjlJ16oqAIxqU=
X-Received: by 2002:a17:90a:e54a:b0:3b0:9310:b255 with SMTP id 98e67ed59e1d1-3b41c961506mr14393461a91.36.1795959619184;
        Sun, 29 Nov 2026 05:40:19 -0800 (PST)
X-Received: from thangnn-ASUS.. ([2a09:bac5:d459:2e1e::498:15])
        by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b457a58d04sm20797724a91.0.2026.11.29.05.40.16
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Sun, 29 Nov 2026 05:40:18 -0800 (PST)
X-Cc: aconole@redhat.com,
	echaudro@redhat.com,
	i.maximets@ovn.org,
	netdev@vger.kernel.org,
	dev@openvswitch.org,
	linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.43.0
X-In-Reply-To: <6b0b0348.8ccee5ca.1045fd.0298.GAE@google.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list