🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #432

Re: [PATCH net] net: usb: r8153_ecm: reject short register reads

#432
From: patchwork-bot+netdevbpf
Date: Thu, 08 Oct 2026 02:30
27 lines
6449 bytes
Hello:

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

On Mon,  5 Oct 2026 01:59:43 -0400 you wrote:
> pla_read_word() and pla_write_word() read four bytes into an
> uninitialized stack variable, but only check usbnet_read_cmd() for
> negative return values. The helper can also return a non-negative
> length smaller than requested, leaving part or all of tmp
> uninitialized.
> 
> pla_read_word() may then derive the register value from uninitialized
> bytes. pla_write_word() may include uninitialized bytes in the buffer
> sent to the device during its read-modify-write operation.
> 
> [...]

Here is the summary with links:
  - [net] net: usb: r8153_ecm: reject short register reads
    https://git.kernel.org/netdev/net-next/c/802f46305787

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179142661227.3776717.15877279078660669633.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-342663-linux-kernel-netdev=dewy.ru
References: <20261005055943.35180-1-xinsheng.zhu.ny@gmail.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-342663-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: usb: r8153_ecm: reject short register reads
Date: Thu, 08 Oct 2026 02:30:12 +0000
Organization: Usenet Network
Message-ID: <179142661227.3776717.15877279078660669633.git-patchwork-notify@kernel.org>
References: <20261005055943.35180-1-xinsheng.zhu.ny@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="785486"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:FYimjM6T/zxXYNXHzWmB7Tdvc4U= sha256:1S8jgsy79TKzS3d4qaRvItOiCVG3drDwsMNfug2FsYE=
	sha1:9uKSpofCfuWmqcToGcYttc4OIKw= sha256:uVza4P7tRD5jFIYEbXGeMJSpNEfqnAs6mfdRQtTuGOg=
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 995DF10F2BC; Thu,  8 Oct 2026 05:30:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.741
X-Spam-Status: No, score=-3.741 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.241, 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 Bnqhq7_Aooiy;
	Thu,  8 Oct 2026 05:30:37 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-342663-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 4C8DC10F24F; Thu,  8 Oct 2026 05:30:34 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sto.lore.kernel.org (Postfix) with ESMTP id 9863D604BB7; Thu,  8 Oct 2026 02:30:25 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B6101C3F0C;
	Thu,  8 Oct 2026 02:30:16 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="REKLYEGH"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5F803A5E70;
	Thu,  8 Oct 2026 02:30:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791426616; cv=none; b=ZODbOqn8xoq/JsqOYdeZIDqsRAFZtkYGNycxZ4DdMxENc8qoXum6txi6p4S1aTXtV2zDZM8+motWYL/ksTuXO+tQx+LPvsYOyjeC8YJlz9gaTjxmQUEdHjm0ZLS79w2PTqA/bMMRHlnZWPMWOqGgWxmGUeN0Gs5mZpykO9d/kAk=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791426616; c=relaxed/simple;
	bh=JjnQ2NmHnO714o5ECuJkVXspoErwbcNIRDk9bhBZCHw=;
	h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc; b=ouuuh3JE/iad5cNs5PzFJhUzaLpAiQoE1+7FDU1fLlKRdcamzpW2kLoV5sirsQKkSyeDliKbJQ5pkWlk2SllohOGyA7Ed1Qw+mZfbjdwuBJqJXhD2x8jOXC+7wR03n+306EvHQJG6DkSAlK36jkf60Nd418jiGJKb4VTsytrUHs=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=REKLYEGH; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE17E1F00893;
	Thu,  8 Oct 2026 02:30:13 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1791426613;
	bh=Cyvp8J8O/UX74ofdZh4G/na0YJdI+aB9VUs9pqWXgKQ=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=REKLYEGH738E4/6a7AA78ohMSP+ASotQsNber6/lrZgWMch+wqU4CvM438ePi0fjb
	 s7wC/zgG+3JTr8iNyOTnVbamFh61eGJHOfJwDZmcFlUQbh5K1OjJYKAy33aBDP7+dC
	 dlWNV/h4A8WuWxfsvY0GSbcvhBtS6Q4mvDJBqtwjR+qT1xUWQHlBIhezlTJkH4+Cis
	 i5exNp9e0NBxcRNJfOenacy8JoIKskOdBUm8w8/ygR2ikNyfIvxLoJT+unvWkaK/Wj
	 eLQ92MbzhzqKyvWbMIFqgyEoV03LQKmB1CIL8MBSHZf3eFi4EY5uO/6yR0e0oEuCxG
	 T3vTBI2hkA2nA==
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 B42D63809A09;
	Thu,  8 Oct 2026 02:30:13 +0000 (UTC)
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261005055943.35180-1-xinsheng.zhu.ny@gmail.com>
X-Cc: netdev@vger.kernel.org, linux-usb@vger.kernel.org,
 linux-kernel@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com