aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2022-03-09 22:13:45 +0000
committerJakub Kicinski <[email protected]>2022-03-11 00:09:29 +0000
commite0ae713023a9d09d6e1b454bdc8e8c1dd32c586e (patch)
tree20e9bb4b586ec66b5627d487283c9176600ae8e8 /tools/perf/scripts/python/check-perf-trace.py
parentice: Fix race condition during interface enslave (diff)
downloadkernel-e0ae713023a9d09d6e1b454bdc8e8c1dd32c586e.tar.gz
kernel-e0ae713023a9d09d6e1b454bdc8e8c1dd32c586e.zip
xdp: xdp_mem_allocator can be NULL in trace_mem_connect().
Since the commit mentioned below __xdp_reg_mem_model() can return a NULL pointer. This pointer is dereferenced in trace_mem_connect() which leads to segfault. The trace points (mem_connect + mem_disconnect) were put in place to pair connect/disconnect using the IDs. The ID is only assigned if __xdp_reg_mem_model() does not return NULL. That connect trace point is of no use if there is no ID. Skip that connect trace point if xdp_alloc is NULL. [ Toke Høiland-Jørgensen delivered the reasoning for skipping the trace point ] Fixes: 4a48ef70b93b8 ("xdp: Allow registering memory model without rxq reference") Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Acked-by: Toke Høiland-Jørgensen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions