exynos-linux-stable/drivers/net/can
Richard Palethorpe 925c631e84 slcan: Don't transmit uninitialized stack data in padding
[ Upstream commit b9258a2cece4ec1f020715fe3554bc2e360f6264 ]

struct can_frame contains some padding which is not explicitly zeroed in
slc_bump. This uninitialized data will then be transmitted if the stack
initialization hardening feature is not enabled (CONFIG_INIT_STACK_ALL).

This commit just zeroes the whole struct including the padding.

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Fixes: a1044e36e4 ("can: add slcan driver for serial/USB-serial CAN adapters")
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: linux-can@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: security@kernel.org
Cc: wg@grandegger.com
Cc: mkl@pengutronix.de
Cc: davem@davemloft.net
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-13 10:32:55 +02:00
..
c_can can: c_can: D_CAN: c_can_chip_config(): perform a sofware reset on open 2019-12-05 15:34:09 +01:00
cc770 can: cc770: Fix use after free in cc770_tx_interrupt() 2018-03-28 18:39:24 +02:00
ifi_canfd can: ifi: Check core revision upon probe 2018-03-28 18:39:23 +02:00
m_can can: fix handling of unmodifiable configuration options 2016-05-09 11:07:28 +02:00
mscan can: mscan: mscan_rx_poll(): fix rx path lockup when returning from polling to irq mode 2020-01-14 20:04:28 +01:00
rcar can: rcar_can: Fix erroneous registration 2018-12-13 09:20:25 +01:00
sja1000 can: sja1000: force the string buffer NULL-terminated 2019-09-06 10:19:33 +02:00
softing
spi can: mcp251x: mcp251x_hw_reset(): allow more time after a reset 2019-10-17 13:42:05 -07:00
usb can: gs_usb: gs_usb_probe(): use descriptors of current altsetting 2020-01-14 20:04:28 +01:00
at91_can.c can: at91_can: RX queue could get stuck at high bus load 2016-06-20 09:32:40 +02:00
bfin_can.c can: remove obsolete assignment for CAN protocol error type 2015-11-23 09:37:38 +01:00
dev.c can: dev: call netif_carrier_off() in register_candev() 2019-09-06 10:19:32 +02:00
flexcan.c can: flexcan: disable completely the ECC mechanism 2019-11-12 19:16:10 +01:00
grcan.c can: grcan: don't touch skb after netif_rx() 2015-07-15 09:04:27 +02:00
janz-ican3.c can: janz-ican3: error handling for CAL/CANopen firmware 2016-05-09 11:07:28 +02:00
Kconfig can: rcar_can: Move Renesas CAN driver to rcar dir 2016-06-17 15:39:48 +02:00
led.c
Makefile can: rcar_can: Move Renesas CAN driver to rcar dir 2016-06-17 15:39:48 +02:00
pch_can.c can: fix assignment of error location in CAN error messages 2015-11-23 09:37:34 +01:00
slcan.c slcan: Don't transmit uninitialized stack data in padding 2020-04-13 10:32:55 +02:00
sun4i_can.c can: sun4i: handle overrun in RX FIFO 2017-11-15 15:53:20 +01:00
ti_hecc.c can: ti_hecc: Fix napi poll return value for repoll 2017-12-14 09:28:09 +01:00
vcan.c can: replace timestamp as unique skb attribute 2015-07-12 21:13:22 +02:00
xilinx_can.c can: xilinx_can: fix RX overflow interrupt not being enabled 2018-07-28 07:49:13 +02:00