From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796006254; b=TL8tnSAOngcSbPtJqaXmiKDq9IJmMLN6oQPI292mXRl/lZvmQAuhx83WMzCytoqbV7rv nJ0kXD/VaELGk/OvPlXnW5NDDHENnQVjqIbLbDSce/B+/0Yx/cFM9DrYAGJ013poSUxPL djXEgl3OQqnctkr2gh97BNVdHMWKaXFakHtFhv7uCbdgYI3y/umrg0+LJN0W+vuaqh15m Yn7XYY+cxwktP9xcWxbm2r0rjJc7EqwKzluBsRO/eXFQl/dVtIKLMdVQj9GW5uQgRL1dN GOOL7hyM40gCbVMQXTdR+NGSmL+8cDszb6mc09CXkTwCTDdz5wlowjnGs1As2qmGJ9A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796006254; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=6bhCQNhL3R1YJnA/9xwZzOojV5QZj1eGNjPz+24TASU=; b=H2aVrNHjOEZEyOjt6sYsD1pv4thpccRcnA+rMEkHWyQRQ3VQtvQzLldI2yVzxNv7tf1r nW9Ymr9PB+Nw01GkWH4obCc4EOfX96RMgH3zs4f8JfIWxes1J3MuLdiZBTw1S6KMAfvna pGy/WPGSI9fB9m57Rk44xTW74934aKwf/PvwOx9pDIMS+gFRuLxaUbXEKklex9FOwgDTJ vdIc4GLlEfaOMr4vAAF/TJZPELl8FE9UqsmRGE1Ba95x9HGYPO/ytrI5BpjP3e/eAaJuo gYVxDa8b3xjJKL0yefbVgK45eDU7DbITz8/Ltpvj1IQ+1eKckJoQA0uYOc5AwVqLJ8A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=IUs0kavj; arc=none smtp.remote-ip=156.67.10.101 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68904606A31C for ; Mon, 30 Nov 2026 02:37:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 68904606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=IUs0kavj DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=6bhCQNhL3R1YJnA/9xwZzOojV5QZj1eGNjPz+24TASU=; b=IUs0kavj0UyBB+A7gUbgWN4Wjs LPicSC1ziVrFdXhOcoqJAWfyO1NoMgDe7S0txs0a3anqQssS3XyBc8FebqfiswHbwkReZH1rI/hMe 9FNjh4TitKnDW+Tasjnfp9207yGvNyuw80kx1G33Kbq6rXyTz7G8QqCKGTkAcgI97VH0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xXrGW-002G65-PL; Mon, 30 Nov 2026 03:37:16 +0100 Date: Mon, 30 Nov 2026 03:37:16 +0100 From: Andrew Lunn To: Cristian Ciocaltea Cc: Christian Marangi , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kernel@collabora.com, netdev@vger.kernel.org Subject: Re: [PATCH net 03/14] net: phy: as21xxx: Fix LED index bounds check Message-ID: References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-3-1bd2eae6ccbc@collabora.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261130-as21xxx-fixes-v1-3-1bd2eae6ccbc@collabora.com> 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 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 Andrew