From: Richard Palethorpe <rpalethorpe@xxxxxxxx> Date: Wed, 1 Apr 2020 12:06:39 +0200 > 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@xxxxxxxx> > Fixes: a1044e36e457 ("can: add slcan driver for serial/USB-serial CAN adapters") > Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx> Applied and queued up for -stable, thanks.