summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOliver Hartkopp <socketcan@hartkopp.net>2022-11-04 08:50:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-25 17:42:10 +0100
commitd0513b095e1ef1469718564dec3fb3348556d0a8 (patch)
tree3c4088bd3f95e78bdc6bc6d4237deaf35edfa09e /scripts
parentd8971f410739a864c537e0ac29344a7b6c450232 (diff)
downloadlinux-d0513b095e1ef1469718564dec3fb3348556d0a8.tar.gz
linux-d0513b095e1ef1469718564dec3fb3348556d0a8.tar.bz2
linux-d0513b095e1ef1469718564dec3fb3348556d0a8.zip
can: j1939: j1939_send_one(): fix missing CAN header initialization
commit 3eb3d283e8579a22b81dd2ac3987b77465b2a22f upstream. The read access to struct canxl_frame::len inside of a j1939 created skbuff revealed a missing initialization of reserved and later filled elements in struct can_frame. This patch initializes the 8 byte CAN header with zero. Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol") Cc: Oleksij Rempel <o.rempel@pengutronix.de> Link: https://lore.kernel.org/linux-can/20221104052235.GA6474@pengutronix.de Reported-by: syzbot+d168ec0caca4697e03b1@syzkaller.appspotmail.com Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> Link: https://lore.kernel.org/all/20221104075000.105414-1-socketcan@hartkopp.net Cc: stable@vger.kernel.org Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions