summaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorZhang Changzhong <zhangchangzhong@huawei.com>2021-10-28 16:38:26 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-11-06 17:29:24 +0100
commita79305e156db3d24fcd8eb649cdb3c3b2350e5c2 (patch)
treedfa72eff682fe57d5bf1892986b557b64361903e /net/dsa
parentcan: j1939: j1939_tp_cmd_recv(): ignore abort message in the BAM transport (diff)
downloadlinux-a79305e156db3d24fcd8eb649cdb3c3b2350e5c2.tar.xz
linux-a79305e156db3d24fcd8eb649cdb3c3b2350e5c2.zip
can: j1939: j1939_can_recv(): ignore messages with invalid source address
According to SAE-J1939-82 2015 (A.3.6 Row 2), a receiver should never send TP.CM_CTS to the global address, so we can add a check in j1939_can_recv() to drop messages with invalid source address. Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol") Link: https://lore.kernel.org/all/1635431907-15617-3-git-send-email-zhangchangzhong@huawei.com Cc: stable@vger.kernel.org Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com> Acked-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions