diff options
author | 2018-05-04 02:13:57 +0200 | |
---|---|---|
committer | 2018-05-03 19:29:35 -0700 | |
commit | d0f1a451e33d9ca834422622da30aa68daade56b (patch) | |
tree | 1990205f87f77c7b165ac2af26a09b539bcbeb2c /tools/perf/scripts/python/stackcollapse.py | |
parent | bpf: fix possible spectre-v1 in find_and_alloc_map() (diff) | |
download | linux-dev-d0f1a451e33d9ca834422622da30aa68daade56b.tar.xz linux-dev-d0f1a451e33d9ca834422622da30aa68daade56b.zip |
bpf: use array_index_nospec in find_prog_type
Commit 9ef09e35e521 ("bpf: fix possible spectre-v1 in find_and_alloc_map()")
converted find_and_alloc_map() over to use array_index_nospec() to sanitize
map type that user space passes on map creation, and this patch does an
analogous conversion for progs in find_prog_type() as it's also passed from
user space when loading progs as attr->prog_type.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions