On Mon, Nov 30, 2026 at 02:55:10AM +0200, Cristian Ciocaltea wrote:
> The LED indexes are zero-based, so valid indexes are strictly less than > the number of LEDs, AEON_MAX_LEDS. However, the LED ops only reject > indexes greater than AEON_MAX_LEDS, which wrongly accepts an index equal > to AEON_MAX_LEDS, one past the last valid LED. > > Such an index makes VEND1_LED_REG() compute an address outside the LED > register block. A bogus LED node in the device tree can then cause > reads and writes of an unrelated vendor register. > > Reject indexes greater than or equal to AEON_MAX_LEDS so that only valid > LED indexes are accepted. > > Fixes: 830877d89edc ("net: phy: Add support for Aeonsemi AS21xxx PHYs") > Signed-off-by: Cristian Ciocaltea <cris…@collabora.com>
I'm not sure a Fixes tag is justified. Does this actually bother anybody? It requires a broken DT blob. Does mainline have one? I suggest this goes via net-next. Reviewed-by: Andrew Lunn <andr…@lunn.ch> Andrew