OpenCloudOS-Kernel/drivers/net/can
Richard Palethorpe b9258a2cec slcan: Don't transmit uninitialized stack data in padding
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>
2020-04-01 11:22:35 -07:00
..
c_can can: c_can: c_can_plaform: fix checkpatch warnings 2019-11-11 21:58:08 +01:00
cc770 remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
ifi_canfd can: ifi: use devm_platform_ioremap_resource() to simplify code 2019-11-11 21:58:09 +01:00
m_can can: tcan4x5x: tcan4x5x_parse_config(): fix inconsistent IS_ERR and PTR_ERR 2020-01-02 15:34:26 +01:00
mscan can: mscan: mscan_rx_poll(): fix rx path lockup when returning from polling to irq mode 2020-01-02 15:34:27 +01:00
peak_canfd can: peak_canfd: provide hw timestamps in rx skbs 2019-11-11 21:58:09 +01:00
rcar can: rcar: use devm_platform_ioremap_resource() to simplify code 2019-11-11 21:58:10 +01:00
sja1000 remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
softing remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
spi can: mcp251x: only reset hardware as required 2019-11-11 21:57:28 +01:00
usb can: gs_usb: gs_usb_probe(): use descriptors of current altsetting 2020-01-02 15:34:27 +01:00
Kconfig can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices 2019-07-24 10:31:53 +02:00
Makefile can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices 2019-07-24 10:31:53 +02:00
at91_can.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
dev.c can: add missing attribute validation for termination 2020-03-03 13:28:48 -08:00
flexcan.c can: flexcan: poll MCR_LPM_ACK instead of GPR ACK for stop mode acknowledgment 2019-12-08 12:21:35 +01:00
grcan.c can: grcan: use devm_platform_ioremap_resource() to simplify code 2019-11-11 21:58:09 +01:00
janz-ican3.c net: Remove dev_err() usage after platform_get_irq() 2019-07-30 14:37:35 -07:00
kvaser_pciefd.c can: kvaser_pciefd: the PWM generator is running at the bus frequency of the system. 2019-09-03 10:23:57 +02:00
led.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
pch_can.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 340 2019-06-05 17:37:07 +02:00
rx-offload.c can: rx-offload: Prepare for CAN FD support 2019-11-11 21:58:10 +01:00
slcan.c slcan: Don't transmit uninitialized stack data in padding 2020-04-01 11:22:35 -07:00
sun4i_can.c can: sun4i: use devm_platform_ioremap_resource() to simplify code 2019-11-11 21:58:10 +01:00
ti_hecc.c can: rx-offload: Prepare for CAN FD support 2019-11-11 21:58:10 +01:00
vcan.c can: make use of preallocated can_ml_priv for per device struct can_dev_rcv_lists 2019-09-04 13:29:15 +02:00
vxcan.c can: make use of preallocated can_ml_priv for per device struct can_dev_rcv_lists 2019-09-04 13:29:15 +02:00
xilinx_can.c can: xilinx_can: Fix missing Rx can packets on CANFD2.0 2019-12-08 11:52:02 +01:00