aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTong Zhang <[email protected]>2022-06-26 21:33:48 -0700
committerJakub Kicinski <[email protected]>2022-06-27 21:48:51 -0700
commit8ee9d82cd0a45e7d050ade598c9f33032a0f2891 (patch)
treed2896ac471cd98f1f94936393ae659a0364b7f75 /tools/perf/scripts/python
parenta8fc8cb5692aebb9c6f7afd4265366d25dcd1d01 (diff)
epic100: fix use after free on rmmod
epic_close() calls epic_rx() and uses dma buffer, but in epic_remove_one() we already freed the dma buffer. To fix this issue, reorder function calls like in the .probe function. BUG: KASAN: use-after-free in epic_rx+0xa6/0x7e0 [epic100] Call Trace: epic_rx+0xa6/0x7e0 [epic100] epic_close+0xec/0x2f0 [epic100] unregister_netdev+0x18/0x20 epic_remove_one+0xaa/0xf0 [epic100] Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Reported-by: Yilun Wu <[email protected]> Signed-off-by: Tong Zhang <[email protected]> Reviewed-by: Francois Romieu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions