[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251228194057.pct2a4n7pnpmmcfr@skbuf>
Date: Sun, 28 Dec 2025 21:40:57 +0200
From: Vladimir Oltean <vladimir.oltean@....com>
To: Jerry Wu <w.7erry@...mail.com>
Cc: UNGLinuxDriver@...rochip.com, alexandre.belloni@...tlin.com,
andrew+netdev@...n.ch, christophe.jaillet@...adoo.fr,
claudiu.manoil@....com, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, pabeni@...hat.com
Subject: Re: [PATCH net v3] net: mscc: ocelot: Fix crash when adding
interface under a lag
On Thu, Dec 25, 2025 at 08:36:17PM +0000, Jerry Wu wrote:
> Commit 15faa1f67ab4 ("lan966x: Fix crash when adding interface under a lag")
> fixed a similar issue in the lan966x driver caused by a NULL pointer dereference.
> The ocelot_set_aggr_pgids() function in the ocelot driver has similar logic
> and is susceptible to the same crash.
>
> This issue specifically affects the ocelot_vsc7514.c frontend, which leaves
> unused ports as NULL pointers. The felix_vsc9959.c frontend is unaffected as
> it uses the DSA framework which registers all ports.
>
> Fix this by checking if the port pointer is valid before accessing it.
>
> Fixes: 528d3f190c98 ("net: mscc: ocelot: drop the use of the "lags" array")
> Signed-off-by: Jerry Wu <w.7erry@...mail.com>
> ---
Reviewed-by: Vladimir Oltean <vladimir.oltean@....com>
Thanks!
Powered by blists - more mailing lists