diff options
author | Fedor Pchelkin <pchelkin@ispras.ru> | 2022-08-05 18:02:16 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2022-08-09 10:05:06 +0300 |
commit | 8c21c54a53ab21842f5050fa090f26b03c0313d6 (patch) | |
tree | 2e7f11461b9d62a1e6798b71c4aa9f789569e532 /net/can/bcm.c | |
parent | 8ef49f7f8244424adcf4a546dba4cbbeb0b09c09 (diff) | |
download | linux-8c21c54a53ab21842f5050fa090f26b03c0313d6.tar.xz |
can: j1939: j1939_session_destroy(): fix memory leak of skbs
We need to drop skb references taken in j1939_session_skb_queue() when
destroying a session in j1939_session_destroy(). Otherwise those skbs
would be lost.
Link to Syzkaller info and repro: https://forge.ispras.ru/issues/11743.
Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
V1: https://lore.kernel.org/all/20220708175949.539064-1-pchelkin@ispras.ru
Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol")
Suggested-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/all/20220805150216.66313-1-pchelkin@ispras.ru
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/can/bcm.c')
0 files changed, 0 insertions, 0 deletions