diff options
author | Vincent Mailhol <mailhol.vincent@wanadoo.fr> | 2021-01-20 14:41:37 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2021-01-20 15:33:28 +0300 |
commit | 50aca891d7a554db0901b245167cd653d73aaa71 (patch) | |
tree | d589e8c849157ba2f152b1610ec99510c91c61ac /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 75854cad5d80976f6ea0f0431f8cedd3bcc475cb (diff) | |
download | linux-50aca891d7a554db0901b245167cd653d73aaa71.tar.xz |
can: peak_usb: fix use after free bugs
After calling peak_usb_netif_rx_ni(skb), dereferencing skb is unsafe.
Especially, the can_frame cf which aliases skb memory is accessed
after the peak_usb_netif_rx_ni().
Reordering the lines solves the issue.
Fixes: 0a25e1f4f185 ("can: peak_usb: add support for PEAK new CANFD USB adapters")
Link: https://lore.kernel.org/r/20210120114137.200019-4-mailhol.vincent@wanadoo.fr
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions