aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJoanne Koong <[email protected]>2022-07-22 15:01:05 -0700
committerDaniel Borkmann <[email protected]>2022-07-26 13:15:33 +0200
commitbbd52178e249fe893ef4a9b87cde5b6c473b0a7c (patch)
treec1e7dbbf8cad8597dbcef6cd9533969c5b28ab80 /tools/perf/scripts/python
parent1115169f47ae45eeb04c616c404492bc8268daa0 (diff)
bpf: Fix bpf_xdp_pointer return pointer
For the case where offset + len == size, bpf_xdp_pointer should return a valid pointer to the addr because that access is permitted. We should only return NULL in the case where offset + len exceeds size. Fixes: 3f364222d032 ("net: xdp: introduce bpf_xdp_pointer utility routine") Signed-off-by: Joanne Koong <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Acked-by: Lorenzo Bianconi <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions