aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRichard Palethorpe <rpalethorpe@suse.com>2020-04-01 12:06:39 +0200
committerDavid S. Miller <davem@davemloft.net>2020-04-01 11:22:35 -0700
commitb9258a2cece4ec1f020715fe3554bc2e360f6264 (patch)
treec3f4ccfcf5a08a328d39a1f839e1b482e57cc7bc /tools/perf/scripts/python
parentnet: phy: at803x: fix clock sink configuration on ATH8030 and ATH8035 (diff)
downloadlinux-b9258a2cece4ec1f020715fe3554bc2e360f6264.tar.gz
linux-b9258a2cece4ec1f020715fe3554bc2e360f6264.zip
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: a1044e36e457 ("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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions