linux-stable/drivers/net/can
Marc Kleine-Budde 826120c9ba can: dev: can_put_echo_skb(): don't crash kernel if can_priv::echo_skb is accessed out of bounds
[ Upstream commit 6411959c10 ]

If the "struct can_priv::echoo_skb" is accessed out of bounds, this
would cause a kernel crash. Instead, issue a meaningful warning
message and return with an error.

Fixes: a6e4bc5304 ("can: make the number of echo skb's configurable")
Link: https://lore.kernel.org/all/20231005-can-dev-fix-can-restart-v2-5-91b5c1fd922c@pengutronix.de
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:08:15 +01:00
..
c_can
cc770
dev can: dev: can_put_echo_skb(): don't crash kernel if can_priv::echo_skb is accessed out of bounds 2023-11-20 11:08:15 +01:00
ifi_canfd
m_can
mscan
peak_canfd
rcar
sja1000
softing
spi
usb can: gs_usb: gs_usb_receive_bulk_callback(): count RX overflow errors also in case of OOM 2023-09-19 12:22:32 +02:00
at91_can.c
flexcan.c
grcan.c
janz-ican3.c
Kconfig
kvaser_pciefd.c can: kvaser_pciefd: Disable interrupts in probe error path 2023-05-24 17:36:54 +01:00
led.c
Makefile
pch_can.c
slcan.c
sun4i_can.c
ti_hecc.c
vcan.c
vxcan.c net: validate veth and vxcan peer ifindexes 2023-08-30 16:18:14 +02:00
xilinx_can.c