[PATCH net-next v4 0/2] net: pcs: rzn1-miic: Validate dtb configuration values
From: Kyle Hendry via B4 Relay
Date: Wed Oct 14 2026 - 11:37:53 EST
This series addresses issues found when reviewing another fix:
https://lore.kernel.org/netdev/20260915-rzn1-miic-fix-array-v5-1-b7173fd5b97d@xxxxxxxxxxxxxxxxxxxx/
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@xxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxx/
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@xxxxxxxxxxxxxxxxxxxx
Signed-off-by: Kyle Hendry <khendry@xxxxxxxxxxxxxxxxxxxx>
---
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@xxxxxxxxxxxxxxxxxxxx>