aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorRichard Palethorpe <[email protected]>2020-04-01 12:06:39 +0200
committerDavid S. Miller <[email protected]>2020-04-01 11:22:35 -0700
commitb9258a2cece4ec1f020715fe3554bc2e360f6264 (patch)
treec3f4ccfcf5a08a328d39a1f839e1b482e57cc7bc /scripts/bpf_helpers_doc.py
parentb1f4c209d84057b6d40b939b6e4404854271d797 (diff)
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 <[email protected]> Fixes: a1044e36e457 ("can: add slcan driver for serial/USB-serial CAN adapters") Reviewed-by: Kees Cook <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Acked-by: Marc Kleine-Budde <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions