🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6938

Re: [PATCH] net: sparx5/lan969x: do not read past skb->len when injecting a frame

#6938
From: patchwork-bot+netdevbpf
Date: Fri, 23 Oct 2026 21:00
26 lines
8968 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 21 Oct 2026 12:48:26 +0200 you wrote:
> sparx5_inject() writes the frame to the injection FIFO one 32-bit word
> at a time, and pads frames shorter than 60 bytes with zero words.
> 
> Before this patch, the last word is loaded whole even when skb->len is
> not a multiple of four, so 1 to 3 bytes past the end of the frame are
> read. For a frame shorter than 60 bytes those bytes are also
> transmitted, as VLD_BYTES marks the whole last word valid and the
> padding starts at the next word.
> 
> [...]

Here is the summary with links:
  - net: sparx5/lan969x: do not read past skb->len when injecting a frame
    https://git.kernel.org/netdev/net/c/9642ce6cb51e

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179278922406.1268720.4078185766615858241.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351238-linux-kernel-netdev=dewy.ru
References: <20261021-sparx5-inject-tail-bytes-v1-1-7dcc035c8ddf@microchip.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351238-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] net: sparx5/lan969x: do not read past skb->len when
 injecting a frame
Date: Fri, 23 Oct 2026 21:00:24 +0000
Organization: Usenet Network
Message-ID: <179278922406.1268720.4078185766615858241.git-patchwork-notify@kernel.org>
References: <20261021-sparx5-inject-tail-bytes-v1-1-7dcc035c8ddf@microchip.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="611450"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:QOJMDON8fDwkS4nL/xkL6CFJmq0= sha256:1LnpEJIAsW+c7zZDzZr3NPv2spPGgW2v5Gn6xIZIZ6I=
	sha1:2GhRIE3Lf34BdL8nWWH4jbVFjNY= sha256:ewaotSENOnmU66EB9Ft4sjJBPGj1PUXEHvyhPAtbNd0=
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 9442611158F; Sat, 24 Oct 2026 00:03:15 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.739
X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, 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 1TcK6ODXxvH9;
	Sat, 24 Oct 2026 00:03:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351238-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 22ED0111578; Sat, 24 Oct 2026 00:03:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 37C9A3E68A; Fri, 23 Oct 2026 21:00:37 +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=1792789237;
	b=a9WKEXCSoPfeZm+1PeuIQkIqLNJ8tp3qIwMkDblosquskYk/8y29l1m0emj1Oh2ovOeo
	 ZI0B+0+jEijPnOUqppIfhvdrcVCzK+RT5J5DAmCh2wv4rAM3BkqPx1pmFjUSV76tBjRxH
	 PPTpWNyI+UKz8TL5v2NIMaawwMjq9aAXjYgEKRwrHGNDhf+dqajyDvsGIhU+tL24ZwP1Q
	 vzPUnFXLbGscFzFTIQn03ClFtP2HCfrLPCzAiaKXQ38DCa4i+/Zq567Z52mjm9PhNVTaW
	 2k67fA5NW5zmL7r8B8o/yKSCXMxaeBdSxe9jGJIL7uGbYtQG0aIRJUr6hVMLOXm4uiw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792789237;
	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=wMxatn9ZBgj5mTbs6ATeEIyXX0vaFfQVORNtXX+SfPY=;
	b=a/a9LTa9RRexVbvlPSVBEdb0cVz+xsvqLobJMhXhLS3mk4oWjMahzXS9BcpCopsyuAo3
	 lVHw290+SryUAdJjuBHPAbU09BkoDON8B0OC6ipyoilehcLRnq0eHGsfKszX4AsJE0WYs
	 TohRaRZsll5x8NzSENt25bNS6LRlVtDxmrmKesyEV0DxFv31+JgBf3/RZ2vYt+oGrSVvr
	 JDEa5NUA5ItYiiNy/M6aIoTfWrVkifI4krREWfoIsgycJ6dJmgnAsQ4zYfAS+nUHU3s3H
	 kZ2zvY45Eb/AdAv8rJWHXcgnAGm3vZMF6puAyNJXrz6W5YIWW8MPCbMhVuxRNkA1yPw==
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=Twk5Chpi;
	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 06BDE606A324;
	Fri, 23 Oct 2026 21:00:37 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Twk5Chpi
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=1792789226;
	b=p0hWUlQ3zYf5YpdCBL6SAUJDNaK0iTnXkQqzLRPKgnhH9sCw8uxrlN8+CrNznCbtGSaD
	 Tevyp+HZBrZZo7LVbba9HlhjL0rBa8C2lbPXDzJoliVoPgxGlTCH3cUxSNGGU0r+ii/g4
	 0+FHb19QyWMRewn43iPddKsEqKlMxqSuGd9UB4ACMKrwdpvull5shz294s1NXZAph60KC
	 Q3dEFyIoxNzhoLmpwI7rcQsKqKfjS3aiWNELOSwxLDg+KknZ94hJQz3GWRDQphOE+n+w1
	 Elv8TQTBjUtEwnM8EbwWEBA91hIFpYIMy8vpm3/cvNUGh2JfEobnhqsR6rh2BAkdDFA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792789226;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=wMxatn9ZBgj5mTbs6ATeEIyXX0vaFfQVORNtXX+SfPY=;
	b=zTwIWP0l4qQ/UfGgXTka8CLOkLiqXmCc0G9LS279i4wUIzxc6WKkaDNOjsF2eq9XckYW
	 CXeu0W7+C9cV/4aiYhM4Lf+1gvYyDJDX9i/nVJOCuwt2Tqd9luyMC5hERlR/BVSVSzpSj
	 Ck8faHgk8QDjpfpvTzaM8SODa6sahec/3NfCHOx45Pbyw9qSNbfxn1HM3AC9SgHBs3zkI
	 revouiLh4PSK7trcTui7MNxa9h16HoCVsVLDWCs0EzKC2RsjUyil94sqB4mojF5EqDio3
	 Qhr8zoxcjmafx9gZZh9jSz2DWSX1lBU0bgoG9xteG8CCKt6ADvWrQ8yp3wufdnz8vyQ==
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=Twk5Chpi;
	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 DCBC4606A336;
	Fri, 23 Oct 2026 21:00:25 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A8651F031E0;
	Fri, 23 Oct 2026 21:00:25 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792789225;
	bh=wMxatn9ZBgj5mTbs6ATeEIyXX0vaFfQVORNtXX+SfPY=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=Twk5ChpiEY7kvnfQzH1fP0t11NZBt/4OZAUPgaTYOicR84dfvLo0W3MDNoLFQiOV1
	 rJ7wx5x/ZnOhk0lm6IJIL1iO1wcShildb4EOEzIEyFPu50t+I8xVBsv0upailKrgJx
	 2+5KFkaPVAjPijNF17lATASjFV8a7rQ3DSZ7e2LLj+X35Jl6ILlreBJNejt8gkDxAl
	 3c5VfputP/93/LWJUFOBjUZCQ7UcJJh1qPoXWPW6f+HiF+NDkSWK7gV1gwZJkXLaPh
	 X5LaOo4+gcid3UM+bCiOUPCs9mX6VlypoQS73evK9UjpTu2/K0hoxuubl1qDGlyUV0
	 Jcc7DI34f+coA==
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 815FD391B157;
	Fri, 23 Oct 2026 21:00:25 +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:  <20261021-sparx5-inject-tail-bytes-v1-1-7dcc035c8ddf@microchip.com>
X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, Steen.Hegelund@microchip.com,
 UNGLinuxDriver@microchip.com, bjarni.jonasson@microchip.com,
 lars.povlsen@microchip.com, steen.hegelund@microchip.com,
 netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
 linux-kernel@vger.kernel.org