Files
linux/drivers
Andrew Lunn 949c6744ef net: phy: marvell: Fix buffer overrun with stats counters
[ Upstream commit fdfdf86720 ]

marvell_get_sset_count() returns how many statistics counters there
are. If the PHY supports fibre, there are 3, otherwise two.

marvell_get_strings() does not make this distinction, and always
returns 3 strings. This then often results in writing past the end
of the buffer for the strings.

Fixes: 2170fef78a ("Marvell phy: add field to get errors from fiber link.")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 12:37:45 +09:00
..
2023-05-12 16:27:16 +09:00
2023-05-15 10:39:04 +09:00
2018-02-25 11:05:55 +01:00
2017-09-09 17:39:41 +02:00
2023-05-15 12:17:13 +09:00
2018-05-25 17:06:35 +02:00
2023-05-15 10:37:00 +09:00
2023-05-15 09:23:01 +09:00
2023-05-15 09:51:46 +09:00
2023-05-15 12:37:15 +09:00
2023-05-15 08:28:33 +09:00
2023-05-15 12:23:27 +09:00