aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJohannes Krude <[email protected]>2020-02-12 20:32:27 +0100
committerDaniel Borkmann <[email protected]>2020-02-17 16:53:49 +0100
commite20d3a055a457a10a4c748ce5b7c2ed3173a1324 (patch)
tree8b7f7817b287bdc7c722cc0a075b516d347dd307 /tools/perf/scripts/python/export-to-sqlite.py
parenteecd618b45166fdddea3b6366b18479c2be0e11c (diff)
bpf, offload: Replace bitwise AND by logical AND in bpf_prog_offload_info_fill
This if guards whether user-space wants a copy of the offload-jited bytecode and whether this bytecode exists. By erroneously doing a bitwise AND instead of a logical AND on user- and kernel-space buffer-size can lead to no data being copied to user-space especially when user-space size is a power of two and bigger then the kernel-space buffer. Fixes: fcfb126defda ("bpf: add new jited info fields in bpf_dev_offload and bpf_prog_info") Signed-off-by: Johannes Krude <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions