diff options
author | 2022-08-05 18:02:16 +0300 | |
---|---|---|
committer | 2022-08-09 09:05:06 +0200 | |
commit | 8c21c54a53ab21842f5050fa090f26b03c0313d6 (patch) | |
tree | 2e7f11461b9d62a1e6798b71c4aa9f789569e532 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | can: j1939: j1939_sk_queue_activate_next_locked(): replace WARN_ON_ONCE with netdev_warn_once() (diff) | |
download | linux-dev-8c21c54a53ab21842f5050fa090f26b03c0313d6.tar.xz linux-dev-8c21c54a53ab21842f5050fa090f26b03c0313d6.zip |
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 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions