Messages in this thread | | | From | Luiz Angelo Daros de Luca <> | Date | Thu, 16 Mar 2023 14:41:20 -0300 | Subject | Re: [PATCH net 1/2] net: dsa: realtek: fix out-of-bounds access |
| |
> The probe function sets priv->chip_data to (void *)priv + sizeof(*priv) > with the expectation that priv has enough trailing space. > > However, only realtek-smi actually allocated this chip_data space. > Do likewise in realtek-mdio to fix out-of-bounds accesses. > > Fixes: aac94001067d ("net: dsa: realtek: add new mdio interface for drivers") > Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
My bad. Thanks for the fix, Ahmad.
Reviewed-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
| |