summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2017-01-24 03:06:26 +0300
committerDavid S. Miller <davem@davemloft.net>2017-01-24 22:46:05 +0300
commit4faf940dd869c36436ff6f0a0b20369fdf5da68b (patch)
tree32530874eaca2c6d4678ee0bb8f82b1fc6f429ec /tools/perf/util/scripting-engines/trace-event-python.c
parent187024144c6e0c82bc32ebb46f3cd0585264833e (diff)
downloadlinux-4faf940dd869c36436ff6f0a0b20369fdf5da68b.tar.xz
bpf: simplify __is_valid_access test on cb
The __is_valid_access() test for cb[] from 62c7989b24db ("bpf: allow b/h/w/dw access for bpf's cb in ctx") was done unnecessarily complex, we can just simplify it the same way as recent fix from 2d071c643f1c ("bpf, trace: make ctx access checks more robust") did. Overflow can never happen as size is 1/2/4/8 depending on access. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions