Article View: linux.kernel.netdev
Article #14518Re: [PATCH net-next v2 2/5] hv_netvsc: hold the VF's instance lock when installing XDP on it
From: netdev-bot+sashiko
Date: Wed, 11 Nov 2026 10:48
Date: Wed, 11 Nov 2026 10:48
47 lines
9735 bytes
9735 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The stable Cc trailer contradicts the rest of the commit
"hv_netvsc: hold the VF's instance lock when installing XDP on it".
--
hv_netvsc: hold the VF's instance lock when installing XDP on it
netvsc_bpf() runs with only RTNL held, so the VF's ndo_bpf() is called
without the VF's instance lock. That trips the lockdep assertion in
dev_get_min_mp_channel_count() and can race with memory provider binding.
This patch takes the VF's ops lock around netvsc_vf_setxdp() in
netvsc_bpf(), and adds an assertion in netvsc_vf_setxdp().
> Reported by Sashiko during core rework, the race was not reproduced.
>
> Cc: stable+noautosel@kernel.org # LLM report + LLM fix, untested
> Fixes: 3ec523304976 ("hv_netvsc: fix potential deadlock in netvsc_vf_setxdp()")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> Tested-by: Kameron Carr <kameroncarr@linux.microsoft.com>
> Tested-by: Erni Sri Satya Vennela <ernis@linux.microsoft.com>
[Severity: Low]
This isn't a bug, but the stable trailer still says "untested". The same
commit carries two Tested-by: tags.
The v2 changelog says:
> v2:
> - commit msg: say that the race was not reproduced, rather than that
> the fix is untested, as functional testing covered it
The body was updated to say "the race was not reproduced". The comment on
the Cc: stable+noautosel trailer, which stable maintainers read when they
decide on the backport, was not changed.
Should the trailer be updated to match, for example to something like
"LLM report + LLM fix, race not reproduced"?
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261109194843.1353592-1-kuba%40kernel.org
Technical Details
Message-ID:
<179439412975.2199510.3527577405382153114@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361012-linux-kernel-netdev=dewy.ruReferences:
<20261109194843.1353592-3-kuba@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361012-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 2/5] hv_netvsc: hold the VF's instance lock when installing XDP on it Date: Wed, 11 Nov 2026 10:48:49 +0000 Organization: Usenet Network Message-ID: <179439412975.2199510.3527577405382153114@kernel.org> References: <20261109194843.1353592-3-kuba@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="836323"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:hVu0lfnUPMoVJ5eAyLCm2HQe/0I= sha256:PO4saLR3nuNFfwoFSqF3VB5hSaMpDOxjLA1ds+c4vrY= sha1:nqNwVqRv9+UI55kS/+YqccEEO7s= sha256:1Q34W+1X4OnrQIQ2IEmWCzACRhMyPMGrcV783PcefJo= 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 B0260113EC3; Wed, 11 Nov 2026 14:03:22 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org 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 tDlkf7tqbK8a; Wed, 11 Nov 2026 14:03:15 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-361012-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 5BCA8113E72; Wed, 11 Nov 2026 14:03:06 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 624F82B6A6; Wed, 11 Nov 2026 10:49:02 +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=1794394132; b=o8A4oQmg4YgQnHFEXpQQOCVsEeFUDfQPSDT54/Zio2WLqC6Si+OW/PIKx40qYwReFcJG Jsob95MwZYpcmGityAFs3/wGwZuDz4X/PmwMBnzLfpFuv3UlUP6DhpLOzGdn7qw4x9Rq0 RoM+LdLNKSPyIP+5btQjKUSCSJo6FLnjedpHbv2EgedTl5Duo++NDDY0tJuE2gm3zEGIt wTT1L7976Yvv4J2mnFcyGLFSPsbpBmj/SXpPLMFglbxkHZ/lkYuWoxrXZmmLmB9Ju/e4B luS+B135+1zvrpOe1gVyJjyoBL317qwwbjTvWGjCnIk5TX9Rz8QGSucnKgFGyxIZjmQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794394132; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=RqF08vHGuWiH65DocbzobUsEjzFU0GtZ5sZ7q95NlpI=; b=SqKtipi5QEjMAPpU+ir8Fb1cgYBARWWLGLHVQkQbbSQ6pHIUORK5QJHuxUoFFJ3BjCsY 1KwuAA7YscH9BklytyqouiS+neNgfkhmDX7FVvCgh5jsElS/bLGdXyGHeJxF54bxQhbE1 roGKkW5XGAB/z/VInp8+MLnUBe/PyFXpxZNMYOjLWU1+jQVa/CGG3YoLXqdjtORsAWQkZ vqBASCzGBI0s6uP60meYRTiA9Nzzd68oTS7KD4zRSTFlyFeSAqbx7l5HwB8oK7gn48Rqo hmKElPN61FvjZ8UtNFjVCFNBqMdKtqVc7OgXhct76LdaY66D+x+GqxB1UxB/3GbmQFw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=M4DTNuvX; 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 16DE2606A897; Wed, 11 Nov 2026 10:48:52 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=M4DTNuvX X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794394131; b=4Wg8P83A2nrk+iiNzJC8j6OC6JfIKQyZKOR93GTzGvWlWXu4pLgM+kdiJOwl1wSPjgf4 lXmDFI7oShCqMxpQ3nKDeXIf9X1ItWymbX1xIzPSecfEyh7KGgu+i+jYucZMwcSSzcqLN CuH8kTmjssr+621XSHDW9wr+YyTpP0FbFDGB4CuahFuozzHhbWSUSjCx+5QMmBiNt66Eg +D3pAvh87KmqGpJwkJn9Xgfx265tXJ8Q1FEM8Q3ZZERpy3m3Hp/kVER3wWdMjj1yQajRP H3369c94AiAVK0MlXhCvzYCIoIekJaOoqESi/czjraYy/HVM0WzdN8S6d5CoG7XEE4Q== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794394131; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=RqF08vHGuWiH65DocbzobUsEjzFU0GtZ5sZ7q95NlpI=; b=TzC0QzO5zK/IFPBqAg7/qgcfCPFN+vJC0jnfOQazaZkiKKTQXWVJ/MdqCS5UBF7J+FXR GR4BwpO80hpjoZRMJAY0USunfZAs3ISVXlmsqCn5uctlBktn/bb5EaOoBoRtIdObUMnON ejTKXZYflSNaMAtZq3mvD5UxyGSG+BW/KaXgoJyQ9v0hk9y5h3/YsvGcQZ6HoZXfE08dN 1btMbNSep0aUWXyXnE8haiQkjG0IWhlkwTQyGKvth+br7Eq4YnjlphHIPagp/kczR7xt/ wzCssWQj49lw0A73SckcuR3N5XzlMsspU4VpHlYubaNJNnA87MHkzkXKiQLOKE5bgZw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=M4DTNuvX; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37AA1606A886 for <netdev@vger.kernel.org>; Wed, 11 Nov 2026 10:48:50 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33DA71F00A0E; Wed, 11 Nov 2026 10:48:50 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794394130; bh=RqF08vHGuWiH65DocbzobUsEjzFU0GtZ5sZ7q95NlpI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=M4DTNuvXq7TdsnCMIzZLwac1TkEWutEotzKYOnj52KZhCYF9NpW0kTXrwVBnrXm8p D5qTXrrH5TIy+PoiBmcHkwOGIMEG027bSXbynRJl+uC/Q3uJ7VxMbniKOuosaMnavH V8vO/bEBxZMJylDNR1JPT4rKuqTcojouFsrmJo3SFku7Jd+J7F6T0HAENwILDJOYRl mQJYpcplkC+sf+BSw82OnhqXKl/tA1upYomsiY8i2P3TcHhW+NQy/WAR0VhwNZY6qd Nsq7DHVhW4RFydpSuYXzJSEqUlZ9sOyjxviGozBQ6VaZTFatxofNNKN+IXecInUvax pKc+JyMMevXDQ== X-Cc: davem@davemloft.net, netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, kameroncarr@linux.microsoft.com, ernis@linux.microsoft.com X-In-Reply-To: <20261109194843.1353592-3-kuba@kernel.org> X-sashiko-severity: Low 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