kernel_samsung_a53x/drivers/net/dsa/mv88e6xxx
Joseph Huang 2230f96d6c net: dsa: mv88e6xxx: Fix out-of-bound access
[ Upstream commit 528876d867a23b5198022baf2e388052ca67c952 ]

If an ATU violation was caused by a CPU Load operation, the SPID could
be larger than DSA_MAX_PORTS (the size of mv88e6xxx_chip.ports[] array).

Fixes: 75c05a74e745 ("net: dsa: mv88e6xxx: Fix counting of ATU violations")
Signed-off-by: Joseph Huang <Joseph.Huang@garmin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20240819235251.1331763-1-Joseph.Huang@garmin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:48 +01:00
..
chip.c net: dsa: mv88e6xxx: Limit chip-wide frame size config to CPU ports 2024-11-23 23:20:11 +01:00
chip.h net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path 2024-11-18 12:13:14 +01:00
devlink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devlink.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global1.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global1_atu.c net: dsa: mv88e6xxx: Fix out-of-bound access 2024-11-23 23:20:48 +01:00
global1_vtu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global2_avb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global2_scratch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwtstamp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwtstamp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile net: dsa: mv88e6xxx: replace ATU violation prints with trace points 2024-11-23 23:20:48 +01:00
phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
port.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
port.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
port_hidden.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ptp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
serdes.c net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path 2024-11-18 12:13:14 +01:00
serdes.h net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path 2024-11-18 12:13:14 +01:00
smi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.c net: dsa: mv88e6xxx: replace ATU violation prints with trace points 2024-11-23 23:20:48 +01:00
trace.h net: dsa: mv88e6xxx: replace ATU violation prints with trace points 2024-11-23 23:20:48 +01:00