aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorToshiaki Makita <[email protected]>2018-07-13 13:24:38 +0900
committerDavid S. Miller <[email protected]>2018-07-16 13:38:29 -0700
commit6e8cfd6d9d8049e2fd5b2de8a328519dc58ea1e6 (patch)
tree29bab783321200f51b5e37d0f6c22bb78c873890 /tools/perf/scripts/python/call-graph-from-sql.py
parent9f80a0723bf0401da63b75709a0e3f31cd4b9446 (diff)
tun: Fix use-after-free on XDP_TX
On XDP_TX we need to free up the frame only when tun_xdp_tx() returns a negative value. A positive value indicates that the packet is successfully enqueued to the ptr_ring, so freeing the page causes use-after-free. Fixes: 735fc4054b3a ("xdp: change ndo_xdp_xmit API to support bulking") Signed-off-by: Toshiaki Makita <[email protected]> Acked-by: Jason Wang <[email protected]> Acked-by: Jesper Dangaard Brouer <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions