summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorZheng Wang <zyytlz.wz@163.com>2023-03-17 00:15:26 +0800
committerDavid S. Miller <davem@davemloft.net>2023-03-19 10:42:02 +0000
commite8d20c3ded59a092532513c9bd030d1ea66f5f44 (patch)
treea94160e25bb15a95b9554c3cb4a1edbe46edda13 /tools/perf/scripts/python/stackcollapse.py
parent25143b6a01d0cc5319edd3de22ffa2578b045550 (diff)
xirc2ps_cs: Fix use after free bug in xirc2ps_detach
In xirc2ps_probe, the local->tx_timeout_task was bounded with xirc2ps_tx_timeout_task. When timeout occurs, it will call xirc_tx_timeout->schedule_work to start the work. When we call xirc2ps_detach to remove the driver, there may be a sequence as follows: Stop responding to timeout tasks and complete scheduled tasks before cleanup in xirc2ps_detach, which will fix the problem. CPU0 CPU1 |xirc2ps_tx_timeout_task xirc2ps_detach | free_netdev | kfree(dev); | | | do_reset | //use dev Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Zheng Wang <zyytlz.wz@163.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions