Files
twx-linux/include/linux
Oliver Hartkopp 54a5ba5136 can: can_dropped_invalid_skb(): ensure an initialized headroom in outgoing CAN sk_buffs
commit e7153bf70c upstream.

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: d3b58c47d3 ("can: replace timestamp as unique skb attribute")
Reported-by: syzbot+b02ff0707a97e4e79ebb@syzkaller.appspotmail.com
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Tested-by: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: linux-stable <stable@vger.kernel.org> # >= v4.1
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-14 20:05:42 +01:00
..
…
…
…
…
2019-12-17 20:39:59 +01:00
…
…
…
2019-12-05 15:38:25 +01:00
…
…
…
…
…
…
…
2018-04-24 09:36:39 +02:00
…
…
…
…
2018-02-22 15:42:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-08-03 07:50:38 +02:00
…
2019-03-23 14:35:28 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-11-24 08:22:48 +01:00
…
…
…
…
…
…
2019-12-05 15:38:28 +01:00
…
2018-06-21 04:02:49 +09:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-22 15:42:24 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-12-17 20:38:50 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-12-31 12:37:21 +01:00
…
…
…
…
…
…
…
2018-02-22 15:42:23 +01:00
…
…
2017-09-25 08:56:05 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-06-11 12:21:48 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-12-05 15:38:28 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-04-17 08:37:44 +02:00
…
…
…
…
2018-11-13 11:15:11 -08:00
2019-06-17 19:52:43 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…