Article View: linux.kernel.netdev
Article #20221Re: [PATCH net] net: bcmgenet: reject undersized RX classification rule buffers
From: Nicolai Buchwitz
Date: Sat, 21 Nov 2026 20:48
Date: Sat, 21 Nov 2026 20:48
27 lines
9340 bytes
9340 bytes
Hi Artemii Thanks for your patch. On 21.11.2026 01:15, Artemii Mashanov wrote: > bcmgenet_get_rxnfc() returns success with an incomplete list of RX > classification rules when ETHTOOL_GRXCLSRLALL receives fewer slots > than the number of installed rules. > > Return -EMSGSIZE when the next rule cannot fit in the caller's > buffer. On success, report the actual number of copied rules. The loop already stops at rule_cnt, so nothing overflows. The short list only can happen if a rule is added between the count and dump ioctls - and then ethtool -n just shows one rule fewer. Fine as a cleanup, but please resend for net-next without the Fixes tag. > The source-extracted ASan/UBSan regression tests passed. Please drop this line, it doesn't apply to the kernel change. > [...] Thanks, Nicolai
Technical Details
Message-ID:
<d4450968850aec1ae27961fd02db2ebb@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-368443-linux-kernel-netdev=dewy.ruReferences:
<20261121001550.732679-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-368443-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: bcmgenet: reject undersized RX classification rule buffers Date: Sat, 21 Nov 2026 21:48:25 +0100 Organization: Usenet Network Message-ID: <d4450968850aec1ae27961fd02db2ebb@tipi-net.de> References: <20261121001550.732679-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="3489846"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:zCV699NIuCA+DCAgcH+bQgBu314= sha256:CwwNiTo1AVEstqAflnUZp/NlDEeZLOkfxA/ZtF6kTBE= sha1:R87cnqgLVNn49BcEfX5hGFVurts= sha256:J9Jxz/SgtScc+ZLdJDBMYcF7NfG6ogmgcD0UPzELykc= 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 ECC78115BE9; Sat, 21 Nov 2026 23:48:55 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 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] 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 ipEyDvKRNpNY; Sat, 21 Nov 2026 23:48:52 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-368443-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 DC0DE115BBB; Sat, 21 Nov 2026 23:48:42 +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 8EFD0331C3; Sat, 21 Nov 2026 20:48:41 +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=1795294119; b=xk4bXdAZcas9MhhkwEIGJgfXAzQk4dYV+eeY+qXaM88B0MZMuPCPwi6RNEDs9i0req+A kBu+AmC//UItHAW2eqX8VqX+w/Gdrkl/DY4CaAvtx8VWI7m0FXDeE21R+Kv51AfDT4YC3 YN46KwXtp/wt+6+nIA6+5MX9YzGycYTDy+9g1rcoHJiCS5MAfk3hE2PORJOLhnP6hQ7Ol pdtcOAOPywv0iMj6k2FIDGPHYcthG+ZmBtiTjkwXoTb5PRcV5X2G7IsHMlLSbieLwFjx+ h2ip5gH+n5IuYDtba0Vd9XyyLqR1XElM7Ud2clcwC4LUjV1+t3Vineis4hIDxKus2uQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294119; 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=Cu8M8myR27197bFUTzm/cb9kFMHIioPDvWEVg0mEDBc=; b=2cKCTRB4ZICThyNTwJi+/vClyok6w/IjXGha7Jz4djyaffVAjbhpRAGOAy/3ldVAc9yA OU6T49kr/yQbjQzlLpTVBGdoFIPeLSV2+NZwfB69nqTdeGLioSehCt6cMGiXAr7x2dSrn rkFyCKb4uzPKI0qsj9xdJgMQFlwGdnj7wDBsvW8WBOVp0DAkVwv4YijFpOjPnOg+MqcvF va1G3MmNffoRl0nxGggs/7QcPCDVxV2qtEO7B5KJEARq75YRGGoBcT25yXvc2cuWPldS8 ZG5hIjXt+IZhYx64Iivdj9a2plgXyiURJzdZ53zY8RPGAZkrgfSnNGkUxzxLUTvoClw== 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=Yo4wWPvO; 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 4AD37606A335; Sat, 21 Nov 2026 20:48:39 +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=Yo4wWPvO 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=1795294118; b=Oi+6DCFAkHEaDWorYvL/x90nq491fXDudGoxn7bzjM/M3/IWcDW+lN4KIsi0bKLE8wBw xOiytIJxtL4pSuGn/LL7muGYyhGmzxZnOFN10OA+mWFOHqWNNHX5ha5oZqS5gRwjvLmGC x5+dI1TEofW14yw5fLFfczBPbZfIbNgTZA1a4CCRwfzXCPkKtaKeNZCMQkZzbIj6+kDA2 FA5NAyX/xqeX6Di9kN3JwQj5CY2M1My/EO+Bh86OKxUh3+UTAyRvNcU5itoaSjoyK/d9b DAHtvVwRf7yTY6CGzJ8F71V+gBz6qjn9uQNsk1hO73yjJnLYGicKzXwar/rHoQRfUPw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294118; 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=Cu8M8myR27197bFUTzm/cb9kFMHIioPDvWEVg0mEDBc=; b=pvfYHwKjdWlRQz3Ey2n0rMRyhaIF0tijjuS+HLHD58eIKK1vEGAkhFaDFzGy1CiSP84U wNlj4wRoJF4/+NER1JWBy5PhhirwaaKFIn7KtKZPVlgDXMqXVOK1El9aXufiEj8FeRBuS wz4AozrpevxFgiFw/LTZ57fyY6B0TVA3o7sdKq0B35eWsNov51l13/1FIIp537pfwutTp ldd8dfjSxobxUeRwnuHR1h79dekI6A5/akjGQbh1FZNNBI2EhI04cA+zOagymm78Zm9E4 vfqGmcKkPzncuCa2U+n16ivklYBVrXAmSx199jOMp2SUjcrYGqDLOGhEYzR7+K2OwVA== 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=Yo4wWPvO; 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) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3454B606A320 for <netdev@vger.kernel.org>; Sat, 21 Nov 2026 20:48:36 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3454B606A320 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 D4D1DA08C5; Sat, 21 Nov 2026 21:48:25 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1795294108; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Cu8M8myR27197bFUTzm/cb9kFMHIioPDvWEVg0mEDBc=; b=Yo4wWPvOoAGkMVe/QWu3eAYRP9JFDQlBhE5ARVhRu7M31zjXdQVQ+arPNZX4AeWrpF4xZz 7mKrITeuEAdidPySwEnnBjNT3yzRZxvhMMYlfn9HHMWSQDho9QjTAGsXlIW6/K8R32o/jX u6TirxDk2QJDtZa2JlaId3mMsJMBpyVj87Cs7n7KvxEdEJuJCbYKMcLVugtFCgAzMLA7Wm iQ8mLMbnyEBdG3+hAEJzMbP692RHPe8rqYc6N1VQ0OYlTKqp2vad/ibTiZE2+tZzig8q7+ 0SVOniY9Q2A2p6eUoCKVvy1ZdZxxSYhX/FaCQXDIlffIZLlCmXNNTrKi7vzj+w== 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: <20261121001550.732679-1-ralerrdirsardx@gmail.com> X-Sender: nb@tipi-net.de X-Last-TLS-Session-Version: TLSv1.3