🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20471

Re: [PATCH net-next v2] net: bcmgenet: reject undersized RX classification rule buffers

#20471
From: Nicolai Buchwitz
Date: Sun, 22 Nov 2026 16:46
29 lines
9366 bytes
Hi Artemii

On 22.11.2026 09:22, Artemii Mashanov wrote:
> The rule list can grow between ETHTOOL_GRXCLSRLCNT and
> ETHTOOL_GRXCLSRLALL. If the supplied array is too small,
> bcmgenet_get_rxnfc() currently reports success with only the rule
> locations that fit.
> 
> Return -EMSGSIZE when another location cannot fit so callers can
> detect an incomplete dump. On success, continue reporting the number
> of locations copied.
> 
> Signed-off-by: Artemii Mashanov <ralerrdirsardx@gmail.com>
> ---
> Changes in v2:
>   - Retarget to net-next as requested by Nicolai.
>   - Clarify the commit message and drop the Fixes and test lines.
>   - No code changes.
> 
> v1: 
> https://lore.kernel.org/netdev/20261121001550.732679-1-ralerrdirsardx@gmail.com/

> [...]

Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>

Thanks,
Nicolai
Technical Details
Message-ID: <d1b3a04e0226d857415c1e72110e0168@tipi-net.de>
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-368753-linux-kernel-netdev=dewy.ru
References: <20261122091748.18292-1-ralerrdirsardx@gmail.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-368753-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2] net: bcmgenet: reject undersized RX
 classification rule buffers
Date: Sun, 22 Nov 2026 17:46:35 +0100
Organization: Usenet Network
Message-ID: <d1b3a04e0226d857415c1e72110e0168@tipi-net.de>
References: <20261122091748.18292-1-ralerrdirsardx@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3679611"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:7J/jizXOGUJZsSoHeOE8wMDjkwI= sha256:/8IgQWc7Ne5dxCM9SKqcC5VwTXXcUKZdbc0FYSujiSg=
	sha1:bstNF6xKtudrKt1TbgpN08GVC88= sha256:tBUaLHaaJtdRVHetZKbKBK/bbTnAP/kLy/wevPDXdOU=
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 E483C125D7F; Sun, 22 Nov 2026 19:46:56 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 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, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=tipi-net.de
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 nFeWaJ8O5g9s;
	Sun, 22 Nov 2026 19:46:53 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-368753-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id D7FB4125D7A; Sun, 22 Nov 2026 19:46:44 +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 6F8C42B79F; Sun, 22 Nov 2026 16:46:43 +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=1795366001;
	b=5pdCONc+m87bUxwORii4V452dZHmdrcyaZugI9JDkwpzrUZd5l4bQDDsxjuQPpGzdTxS
	 8wqCCmihW9iHGB0+2l25LZ5Lq/6sJiV9jibG0hrZ9KODKLQgMB34t+aXLrM1hXRW6xIww
	 VLovzKW/Kgz6fNuq7hMQFDhSMOovgWclhdHQ/qPhn3GCMQAw36EBSFhYVERgWm0RS3VPt
	 e1NVCdw5DeLI0I6SzqVZU+xAKEQjFUoi/VFceDzYsnfr5gvKoCDIYrzLKe3nyt31AR1AN
	 w3BPaA2eqNTU+efv6xTHJMGl6Oc7ipjx+8xBZx1qwq2rACTNUBQZDeC1wiUZeNOjtvw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795366001;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=kvebEYYRpBibXTgS+DExvB7j4D0K7uBYjg5knaplyCw=;
	b=0qLY2QYyA8aJuD+Jzu/vDBo94/mHm7Phb7wPKFRfAdV+IhPIIbLfD0qyLKJ6DQVAZ5aC
	 3keoFfnquMN2RqFGVgTKp/dvyDZ0kPlLTErIk6Cr5L8Z65BryWhNGfgCtAZVfGFf0Yb4G
	 pqYYUMGwNo+UqOfsBBPAKnKOMNHWtpdyqWd8WKdujBEXCkaqzPmthlc1smKc15lZ5Du+L
	 +WFwgTznclomNBHs4hKfdXcGOtwrAsqbc9Gfaig1ASYe0jpk09SVy/R8svDNH6m4XC5pS
	 w8oRkVB8Vn2J4GX8nMA3GgbL2zaxgnWUQhMJv+aN4RjUCbs00qIsoxgt+NgkAtIxiuQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=QcAyzoY3;
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	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 29D04606A333;
	Sun, 22 Nov 2026 16:46:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=QcAyzoY3
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795366000;
	b=nl1gvgYIF3RPUbw1TIYdpcG5n+p4ezkMaJiDJmvo/9ka10R0Jk7d3wsgQP0/TlDVI55S
	 QTwCZ1o1tLlvLVIoRdjCjYSK1QdzBNv+R14D/8GSsDWKi42eItWM3Jrk5GO12Q0/3Llia
	 J/YWSDeoM1hK3GWfwUvfCVFQFxsVWWeMg3uvK/aOZUsR03cmkt4+M0SHY5KA/0U4dR0J2
	 vTFyszwAJ0XwFvZT/Bagxs6qiPblBW5jvzmGjCyyk028LjnKeDI3ySEgmyADOO0BwxqYE
	 HJFiYh9IQMqdb49KdnDSQBnRLr7h0Gewf9RIWk+/TYCV//80kOeuKWq7WGReyrw4cgw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795366000;
	h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=kvebEYYRpBibXTgS+DExvB7j4D0K7uBYjg5knaplyCw=;
	b=GzNuLSe3RIUxtgMKO8Cv2YnQrMa5X5RAlkvi7FK6sJLa2y6Vf5b0ytl/rjkSNdAWec/Q
	 AHFQdKOpT5IhozzUGifPtGvNvkwGTnm0V+imI5GWnWYdCyvkB0JVqhLMBoYCCvToujVoF
	 L+pRmIbfrOmxTF7qQTPY7Cx/17mSDItnyKYaD/wc4JyXMwt+af1nlKWX+TcQkHvZ1357j
	 w1+6wT/34Lxl/7YbBZ7sYEJDhINXz6oUuKURA+4OF0qxnAfa0s8EJJaTot0EkF6hVE4qR
	 hRv9PlLqTBpn7EsC/F2vuqhSVJSxDjhjaEgCz7UyiYR2YZy+OuCFgS4gV5NNzPKqNsA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=QcAyzoY3;
	arc=none smtp.remote-ip=194.13.80.246
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(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 C9389606A320
	for <netdev@vger.kernel.org>; Sun, 22 Nov 2026 16:46:39 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C9389606A320
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 18107A157F;
	Sun, 22 Nov 2026 17:46:35 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1795365997; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=kvebEYYRpBibXTgS+DExvB7j4D0K7uBYjg5knaplyCw=;
	b=QcAyzoY3KDt3s0WUG84t5JVayXocmtRV3c7ffhKWsrGqLdLcROvcp1oXcMnP3+s9YEbZw2
	D1SF5m74J2XcH/54Sna7HLZxo2QpDlfE170nIE7QDiH/MSiH449FnwuvSE4TW22lDgG7hu
	R7t+ykbhqaibbNW8AHcq1xe+VWIrwrVg+nbPBmTv7O38tkkt2ERleMuT43UVMQbP3G2Or4
	td1PR5kuIuQ6vFr883JA2LKofKJVtugXS0OTp3vAuOWh4Zr+ze6o4tan9+z2dH1Dp2OTsM
	WLGgEmrnE3GmnZ2wfuZ5JZn2+kezECLkzlT2hOVRK7WmpCXAqsHhjIUHPQqwXQ==
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-Cc: netdev@vger.kernel.org, Doug Berger <opendmb@gmail.com>, Florian
 Fainelli <florian.fainelli@broadcom.com>, Broadcom internal kernel review
 list <bcm-kernel-feedback-list@broadcom.com>, Andrew Lunn
 <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric
 Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni
 <pabeni@redhat.com>
X-In-Reply-To: <20261122091748.18292-1-ralerrdirsardx@gmail.com>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3