🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22648

Re: [PATCH net] ncsi: Initialize vid in set_one_vid() to handle concurrent VLAN removal

#22648
From: patchwork-bot+netdevbpf
Date: Wed, 25 Nov 2026 16:00
24 lines
8755 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Thu, 19 Nov 2026 09:10:09 -0800 you wrote:
> set_one_vid() checks list_empty(&ndp->vlan_vids) before acquiring
> nc->lock and rcu_read_lock(). If ncsi_vlan_rx_kill_vid() removes the
> last VLAN entry in that window, list_for_each_entry_rcu() executes
> zero iterations and leaves vid uninitialized on the stack. The
> subsequent 'if (!vid)' check can then proceed and program stack
> garbage into ncf->vids[index] and an NCSI_PKT_CMD_SVF command packet.
> 
> [...]

Here is the summary with links:
  - [net] ncsi: Initialize vid in set_one_vid() to handle concurrent VLAN removal
    https://git.kernel.org/netdev/net-next/c/e20f88c4f08b

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179562240502.773214.12173450041451654164.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371509-linux-kernel-netdev=dewy.ru
References: <20261119171009.1534335-1-irogers@google.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371509-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] ncsi: Initialize vid in set_one_vid() to handle
 concurrent VLAN removal
Date: Wed, 25 Nov 2026 16:00:05 +0000
Organization: Usenet Network
Message-ID: <179562240502.773214.12173450041451654164.git-patchwork-notify@kernel.org>
References: <20261119171009.1534335-1-irogers@google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="248720"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:JZEPwnb7Um+bD/RSP7TAlUL9RrU= sha256:X9Do473xP/FZmbYEssNbjbk4hGq15U3YFjM9V+jczo8=
	sha1:1ChdMA6yuaT7VcSs+fbkWl6CmH8= sha256:6n8ZYbqhqzmOXdcWoIwIzOt0fkgDhr/fWlp4YsJxjDc=
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 41074125E82; Wed, 25 Nov 2026 19:00:27 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[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]
	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 yyPvzWbHUHAe;
	Wed, 25 Nov 2026 19:00:23 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-371509-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id C0AD7125E77; Wed, 25 Nov 2026 19:00:14 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 760603AF60; Wed, 25 Nov 2026 16:00:13 +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=1795622408;
	b=pZhDdcEmwwcEBNXhp+eTeucV7CDtbuVQnEfQSLGrJAkuV6tGQuRhSvdiGnElgB6NvLTr
	 E6yK4GRQXQcClYtTm9DStESpvUy22pQJI/mwiO+mOSYZPwTC3pYQQOIhbMkSa+Y877+dQ
	 sggptt1hatudqhZ6O12pBglzosoQJ77b6a2JGTgxfWeykIDK1mrvV6FVb7y45kGyGUFB1
	 lUQmpLU++1QR5XmmTn+NBho639FKYHSDytCi0+IfKuFm2QIfKWYV57sasvB3bRz25dNcj
	 cUoOlbtIL666GDj5UzkSGnJBuJTiGXEBuR0JCm8mDog642h7ftN6AP4WGGkoNbVAM6Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795622408;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=QAaHSZ7sMw5VUlTsCKc7k41y1p2NOueXz2lrjbHzvGo=;
	b=BinskN8VrnvyM+fSJQDcbzKateTD0qqwUybXSNzwF1yFMJVGLGnzlgIuP6hAw+ur2/IR
	 J4s2ryfRwJ5l+uT+7QIzbPOke7BN7wMkWWU1EZvkBir3xnLXgg6dL0bz6YPCFYLhSzGbJ
	 cSdqCa2dtln2tQ/OYcOgGgNEi+YlifExP2k8je7LNju5KthU2tsTIO138tGSwkrIvAff2
	 R42Ro1f9QzVwNoknJDVi9Hh7HcJHxBsVgU8VI2rxFKS6gJMFrpXTDZIsrgxSwECnsU9Uf
	 I7JpmujTNrN0MrWHl3/vJwTMH9DrCW/q4D6yQ0PAKW2P6PZH3N3oorh48jzJWjHPM8Q==
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=gVD7JS00;
	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 36AF2606A338;
	Wed, 25 Nov 2026 16:00:08 +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=gVD7JS00
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=1795622407;
	b=ggAWWsBTgd+udDkZXcYhDRMiIrryH8KvLhnRnvCpBvUePUvrkc9a3magQ0PKswtbF4q1
	 A4y9Uy5CBUMk8Z6M3veasV1ieFk3vvD6oOq7PbJkYDE9mreQL9ZbBoaJjufSbBFqHa2Yk
	 q9xiegN/tMjRm2LC3PRGj/Q5T9HE/QF3co7GBHZd3IkjLcO5+Yc52mUZbhs8mAvX9g6Fr
	 nZXeL4ncPa9+sxqEbrKvCNP9CK7vg+EfXDt+hv4VXJk7PXk1fZqHJNBuSlIkWSvuwlrYd
	 giz095UQs9cFnVV4lmHkGc06t+mmfULKuIL07xYEIolO4nz5Iktq7Mkj4TDPkrLGLHA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795622407;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=QAaHSZ7sMw5VUlTsCKc7k41y1p2NOueXz2lrjbHzvGo=;
	b=Px4OhSeuYOWTLaO9p4sTPFYfelH48+sZJ2zT4BCv03/GvgOFuaEHpz2YAMLmEjH0mAvk
	 iv0hbpy/MNclmD4qnHhQhZRHmSTuP8gfS/HjqUQwZ/WRDiuOPtIPPyyVEXCoKBN8LbLsF
	 b8ZElJEutHMnVDrRKM29+5QOmSup3o0rCXsw8TE6gYMeVa1D+OxNknr32Jsnx0RD6k0J4
	 PAYGHjCXvlxQsGserxGijs6ZU7WdgsTq/2WNLf7EnW3xhn0LYK1Mp4CR9FpifIGNJ7GJR
	 06o1cHpIBfXt5q17FB1XCBBH7j6DpCPWpVrmZ/mocnpaXJCN0WWAOqSgCdasaUDNhug==
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=gVD7JS00;
	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 53814606A32A;
	Wed, 25 Nov 2026 16:00:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8086B1F000C6;
	Wed, 25 Nov 2026 16:00:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795622406;
	bh=QAaHSZ7sMw5VUlTsCKc7k41y1p2NOueXz2lrjbHzvGo=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=gVD7JS00ZFP1Kv/R8gr3EKQWnODMrTPWuer6Rh+p5A0QFvINzAuRQhip2b3MgE7o3
	 2FZryKHYsgXVEd460sTW/r6OP0dfKEfST6f5eWlCqru4eTlMjYgxhbwwrKV5nDehsP
	 cDPL2MoH+es0b1VC2fozucNxM87Ti5fU0V4MzuIzDGnTj+IOZPFymerwe9wp5kp26l
	 xc+rn5zZgzVRuXpHNPgshLjb2zoMLwZ6jHuKqb+kcfE9eAVvLgnLMTfp0g1rE7zmji
	 FexHXwvVh23gfuTTyC3ftKZAaGI5bAoVG52xn/FkZiUki7T1ATA1nmd4xmPv+VG+Ek
	 xHhW5go2vfn9A==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 773CA3808209;
	Wed, 25 Nov 2026 16:00:06 +0000 (UTC)
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
X-In-Reply-To: <20261119171009.1534335-1-irogers@google.com>
X-Cc: sam@mendozajonas.com, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, fercerpav@gmail.com, horms@kernel.org,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev,
 elkin@google.com