From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795959620; b=egOrdYnNPQ+GwyyK53QWCcnKUngGBIs6tttBWS8+Hke2U9ilo6IrCyVEJSc3aM9hAD3D 41UEJKoLKElaa7oBxZ5AP/JEJNiEFwDIayykUfrZ5IJ9hMddplZy9mCyn4+YSVtO64XW4 NsTdZkYXdO27tpGi67S+Y8DToV4yeQVzbLoGC+mfNEBeRM5CJ7SQJw55zdq5JJCl9fAGH AAa7puqsd0KvUukq0/yMgbfYdGERpM1FRLDCogFidKeJ+/5mnSgW+y7vTEwMvkCmFt1TS 8YS58zm4VlgtGLy46/nZsbzMMn9lZOfoWReNc5fyVY2NUkuoICCT8eVUqKFAioVHURg== 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=g6d+d41M+IyLuhxQpxNAsskROguqpNt8ay61kOXQGtFk8iURdkkZGpK7D9+WshO3qpSx 0+Ons1tfJrHUcCel0aG7uewrP0T1mErxrVn8JLZdPayry6aW0t5KPt8kao1JlSyCNaZWE k8o8OmlJaWBlIm5IHgX0zYbmXdjFxlBn5jtGckiVC7SnTauJugKSZpulbI9jZoekLaVP/ r1mpp9kRU2qQsxTDyUpMdPnpO5jzeLj45ey8mZFYACu2OFdPGKm6NnTKpqaasRgyjJPQQ O3hqOUTHHlv4EC18Fnq+D1O5xclwLOhVRmhIcXIZZZNWIy3Q/6ompKGMouXpaOrCw+w== 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.52 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (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 EDB48606A31C for ; Sun, 29 Nov 2026 13:40:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EDB48606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com 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 Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-3ae6b4c669fso8068009a91.0 for ; Sun, 29 Nov 2026 05:40:19 -0800 (PST) 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=ILMv9UUu/kpPA7vF61wjx3+hZkFgAeUXfZXJJuOlHdLgMQt50B3UkGYovIxO+GvW/+ I2rNvvczgsIdrF8Zq0uJqdzE5gv+f2we0gK4nyPOiLOOSQgqhmSC+nI6WjILvPP31u5K eQ/sE3psh5kt+pAd5g2nbD9VoB5cTLOo39qZkMG8S6i3mZPQVSvVIcsMmi4hAyf5VkF0 GqYIwjYRcUFauLwmSH2mygIlO5kd3PGDj8v6UW3I/uHlDLieb6/5lHJGYfJfNPf65mle TKSJdkIvf0TuFuiKnseVyHfcs0aQ1YIqIfcpXA/rbRCg40dHX+u/1qTkeYpEEt5/iOVU WZ+w== X-Forwarded-Encrypted: i=1; AL+hErFTxXz03AkcdcKA379p+q1vRovMmBIhhw3DnNUhAa923iwgTLtq1MjtjWZh4e2HjylMFCyv1pPWpbppyBg=@vger.kernel.org X-Gm-Message-State: APuU4Z/JAArYHDdsXxgKpq5SoBvrwlDhqL9kA81uYltTqEb6qpZ1eG+x qoFubAg8/GXbUvdMx3tYZYq0isiuBoHzXc7aIKbHw3nzTI7ilab50OAy X-Gm-Gg: AZFdTZfvw/jWOMd9tgW/CFfwcoq/j4E6nnjhxiZ9CMF9atiae9XR9Si2zIAGRJeOdfC NGSMcdQIU0/q4PF2JDxd/NNFN5YcIrgyTOiXq/IBnJfExNEZ1H0QCbceGuMe9ozWfZTgFkH0SFt h2DK2gpb4Mrx7nCMw4qXVZ5fh5yuWYZk8rSye58fFDkcJjsXL/g1Zq10xZZ21MD9O5H4C6QidfW ySya3NAJ8Lfk+iScNv7DFMymr07jKIAGF7yIRV6cmjVVoAZQ4YL8gpR+6xX1KkY4EUXf7pgJrTQ 9Y1Tgae+FHry58uFcEm823D8K2aZnMJOiMWkfOX6djdeDPFCesXPa5eNx58LFPez4SX1jW408D/ BFfQkxIo6ha/J9b2sC5cETmUntP6Q184hCRCBcF++Z1+JY5miNOA5Z57Yf9EIvIkpdmTtZVyy3l yOr4MeCw3pVkEghfVw7h9BfNTv4grQXfEOzClnto/3gggiwFH4Y+kDO+obJdRCjlLXTfVCo+aVX 51dRAnqKdDaZm7XNY7WfBrwhEIMfcA9p/5UNlzQdx3PtXX9k/p3AKTQDCuxh5LR7mr4NeEiAxzB solARMREFte9NPuozUfmf2pHpc6XHeI= 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) 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) From: Nguyen Ngoc Thang 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 Message-ID: <20261129134014.116386-1-ngocthang2710.1999@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <6b0b0348.8ccee5ca.1045fd.0298.GAE@google.com> References: <6b0b0348.8ccee5ca.1045fd.0298.GAE@google.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit #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