aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorOliver Hartkopp <[email protected]>2019-12-07 19:34:18 +0100
committerMarc Kleine-Budde <[email protected]>2020-01-02 15:34:27 +0100
commite7153bf70c3496bac00e7e4f395bb8d8394ac0ea (patch)
tree916e307b02f8f88d6db4ce4878104be0f4cd31f4 /lib/mpi/mpiutil.c
parent93bdc0eb0b4bb5e7094fd4a95f4a394e4a927e09 (diff)
can: can_dropped_invalid_skb(): ensure an initialized headroom in outgoing CAN sk_buffs
KMSAN sysbot detected a read access to an untinitialized value in the headroom of an outgoing CAN related sk_buff. When using CAN sockets this area is filled appropriately - but when using a packet socket this initialization is missing. The problematic read access occurs in the CAN receive path which can only be triggered when the sk_buff is sent through a (virtual) CAN interface. So we check in the sending path whether we need to perform the missing initializations. Fixes: d3b58c47d330d ("can: replace timestamp as unique skb attribute") Reported-by: [email protected] Signed-off-by: Oliver Hartkopp <[email protected]> Tested-by: Oliver Hartkopp <[email protected]> Cc: linux-stable <[email protected]> # >= v4.1 Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions