diff options
author | Norbert Slusarek <[email protected]> | 2021-06-12 22:18:54 +0200 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2021-06-16 12:52:18 +0200 |
commit | 5e87ddbe3942e27e939bdc02deb8579b0cbd8ecc (patch) | |
tree | 65e6bfa6d5758582377e6be43fb1d799372f6571 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 8d0caedb759683041d9db82069937525999ada53 (diff) |
can: bcm: fix infoleak in struct bcm_msg_head
On 64-bit systems, struct bcm_msg_head has an added padding of 4 bytes between
struct members count and ival1. Even though all struct members are initialized,
the 4-byte hole will contain data from the kernel stack. This patch zeroes out
struct bcm_msg_head before usage, preventing infoleaks to userspace.
Fixes: ffd980f976e7 ("[CAN]: Add broadcast manager (bcm) protocol")
Link: https://lore.kernel.org/r/trinity-7c1b2e82-e34f-4885-8060-2cd7a13769ce-1623532166177@3c-app-gmx-bs52
Cc: linux-stable <[email protected]>
Signed-off-by: Norbert Slusarek <[email protected]>
Acked-by: Oliver Hartkopp <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions