aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2017-12-14 21:07:24 +0100
committerAlexei Starovoitov <[email protected]>2017-12-15 09:19:35 -0800
commit87338c8e2cbb317b5f757e6172f94e2e3799cd20 (patch)
tree5190b98815efc7a2c96a8a49c3b443ab9565fcc5 /tools/perf/scripts/python/export-to-postgresql.py
parent6d59b7dbf72ed20d0138e2f9b75ca3d4a9d4faca (diff)
bpf, ppc64: do not reload skb pointers in non-skb context
The assumption of unconditionally reloading skb pointers on BPF helper calls where bpf_helper_changes_pkt_data() holds true is wrong. There can be different contexts where the helper would enforce a reload such as in case of XDP. Here, we do have a struct xdp_buff instead of struct sk_buff as context, thus this will access garbage. JITs only ever need to deal with cached skb pointer reload when ld_abs/ind was seen, therefore guard the reload behind SEEN_SKB. Fixes: 156d0e290e96 ("powerpc/ebpf/jit: Implement JIT compiler for extended BPF") Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Naveen N. Rao <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Tested-by: Sandipan Das <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions