🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #3279

[PATCH net-next v4 0/2] net: pcs: rzn1-miic: Validate dtb configuration values

#3279
From: Kyle Hendry via B4 Relay
Date: Wed, 14 Oct 2026 15:32
38 lines
7831 bytes
This series addresses issues found when reviewing another fix:
https://lore.kernel.org/netdev/20260915-rzn1-miic-fix-array-v5-1-b7173fd5b97d@reliablecontrols.com/

Invalid values from the dtb could cause out of bounds array access. Checking
the values as they're parsed should prevent this.

Changes in v4:
- Remove unnecessary else
- Link to v3: https://lore.kernel.org/r/20261006-miic-validate-dtb-v3-v3-0-68617b3dca5c@reliablecontrols.com

Changes in v3:
- Squash patches changing miic_port_max
- Change name of miic_port_max to miic_port_last
- Remove fixes tags
- Add another check for configuration value of miic-switch-portin
- Link to v2: https://lore.kernel.org/r/20260928-miic-validate-dtb-v2-0-1ee3d33748e9@reliablecontrols.com/

Changes in v2:
- Simplify fixes by making miic_port_max the last documented port number
- Add fixes tags
- Link to v1: https://lore.kernel.org/r/20260925-miic-validate-dtb-v1-0-3a6db9bb75ec@reliablecontrols.com

Signed-off-by: Kyle Hendry <khendry@reliablecontrols.com>
---
Kyle Hendry (2):
      net: pcs: rzn1-miic: Update port numbering for RZ/T2H
      net: pcs: rzn1-miic: Validate dtb configuration values

 drivers/net/pcs/pcs-rzn1-miic.c | 42 ++++++++++++++++++++++++++++++++++-------
 1 file changed, 35 insertions(+), 7 deletions(-)
---
base-commit: 05b5019b01fb9443b09ae4ed34af1135a80a84c8
change-id: 20261005-miic-validate-dtb-v3-cf31820cb1e9

Best regards,
-- 
Kyle Hendry <khendry@reliablecontrols.com>
Technical Details
Message-ID: <20261014-miic-validate-dtb-v3-v4-0-b7da71b3a106@reliablecontrols.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346335-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346335-linux-kernel-netdev=dewy.ru
From: devnull+khendry.reliablecontrols.com@kernel.org (Kyle Hendry via B4 Relay)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v4 0/2] net: pcs: rzn1-miic: Validate dtb
 configuration values
Date: Wed, 14 Oct 2026 08:32:36 -0700
Organization: Usenet Network
Message-ID: <20261014-miic-validate-dtb-v3-v4-0-b7da71b3a106@reliablecontrols.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2324083"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:vaXEa6Z8tI4ZIPTx5fz0gd8/Mzk= sha256:cEZ2EdEx6XZNBv59CnCS3WLWvqHsiiifuXOcRnX9Ao0=
	sha1:zgkWYVP81UtzzsIAre8xUdBIoRY= sha256:+VAeoLGm6D2l78DHzWCUT6VFrnjodGiWSYpmRnLXJak=
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 D9997110134; Wed, 14 Oct 2026 18:34:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.44
X-Spam-Status: No, score=-1.44 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	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 az_PUhO9mdEU;
	Wed, 14 Oct 2026 18:34:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-346335-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 2238F110105; Wed, 14 Oct 2026 18:34:11 +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 0FBE160E462; Wed, 14 Oct 2026 15:33:45 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 40DBD55931D;
	Wed, 14 Oct 2026 15:33:42 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X/KqMZTE"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201])
	(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 0E14A551998;
	Wed, 14 Oct 2026 15:33:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791992022; cv=none; b=Fly+rCVwn4KpLEaNkUZ/ZqQ8QSpFPceTKSnXPI/sqt2mDtnD+Y5Bif52w7KrvXhcCmcOjyfzXWDaQ+EqBiScp8Xa0h9E/7qUC38VzAO8jhPGYxe6ywUPvoiUU7FbneBtyfwLOqTLUM0xUsezkEvrYaPS8URNUl1YoH+jPtzL/8c=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791992022; c=relaxed/simple;
	bh=mK7HAM4nMy4eEc0HHmNewb99Ljc1vlTbcL9mEAk0cf8=;
	h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Yy8cvZxWBVZTF3AGmKEUQNET+eiHqtvkF+ZSl2p9FlXTkuvZWqF3nOhj/F1PkazcJjDFE3+iW75nO59AhztZS2J7yBTTN0R/hw2PJbwnTKzFG35q8rgcBg+CIxkStWmU9GXzEMwAUrM4tLg4WM2tY5wKlWK4wAyaoTIAP5Wqa4s=
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=X/KqMZTE; arc=none smtp.client-ip=10.30.226.201
X-Received: by smtp.kernel.org (Postfix) with ESMTPS id 8E906C2BCF7;
	Wed, 14 Oct 2026 15:33:41 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;
	s=k20201202; t=1791992021;
	bh=mK7HAM4nMy4eEc0HHmNewb99Ljc1vlTbcL9mEAk0cf8=;
	h=From:Subject:Date:To:Cc:Reply-To:From;
	b=X/KqMZTE8v6giUeHvOPGuTfBy0B8Dmnx0UiAzPpAbkQNO5e5zyZGt0ZvRt6+OAy9H
	 zidE8Kh/VWeoFjbgVk1PYIj++QWm2HJQW/O4E1ysGGGC03Oc9RGvFQAxTN2nhESqYh
	 /Y0X7XqmI/iBj5LKtVzF39wp5NJdMMMIvtHUbAVlABk1XYfwQQeL9f5LtrX3TozvIz
	 1059mfX7QDdQRe/lXj5I235bNDPmwcsMEkK2TTtECaBwtet3n7/oiMeY4s937YhxIE
	 kWT0aXIcFDtYHqZoN1ycQl9nU08regIYzF7Js184P38buKOut70OdStlBjt9d0+w8e
	 OApv3dzXHR+1g==
X-Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1])
	by smtp.lore.kernel.org (Postfix) with ESMTP id 64AFDCC6B1A;
	Wed, 14 Oct 2026 15:33:41 +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-B4-Tracking: v=1; b=H4sIAJSgz2oC/22NywrCMBREf6XctZG0sbG68j+kizxu7YU0kSSES
 um/G4pLYTaHYc5skDASJrg3G0QslCj4CpdTA2ZW/oWMbGXoeCdbznu2EBlWlCOrMjKbNSuCmUm
 0Q8eNbvEGdfqOONF6aJ/gMTOPa4axNjOlHOLn+Cvi6H9q+V9dw5kcZHvVwhrVm0dER0o7NMHnG
 Fw6m7DAuO/7F8fWy9XNAAAA
X-Cc: linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, 
 linux-kernel@vger.kernel.org, Kyle Hendry <khendry@reliablecontrols.com>, 
 Simon Horman <horms@kernel.org>
X-Mailer: b4 0.13.0
X-Developer-Signature: v=1; a=ed25519-sha256; t=1791992021; l=1495;
 i=khendry@reliablecontrols.com; s=20260813; h=from:subject:message-id;
 bh=mK7HAM4nMy4eEc0HHmNewb99Ljc1vlTbcL9mEAk0cf8=;
 b=iQkkI44ZNIWO2ba6mqSz9/slYIXSk9aYbVZBhy9HGZyz/1OfIshgOsbZG7CieLxdkoQN2coYy
 IgVCN2TP9zUCtQh6vccqZ25NReIH+WqzHB9rCh5473buUPLgBj2H+5r
X-Developer-Key: i=khendry@reliablecontrols.com; a=ed25519;
 pk=gbK6oghz3qBlBiaGCsEzALLOtj5VklmsuolHQNhDV5M=
X-Endpoint-Received: by B4 Relay for khendry@reliablecontrols.com/20260813
 with auth_id=946
X-Original-From: Kyle Hendry <khendry@reliablecontrols.com>
X-Reply-To: khendry@reliablecontrols.com