aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMark Rutland <[email protected]>2018-05-03 17:04:59 +0100
committerDaniel Borkmann <[email protected]>2018-05-04 01:16:11 +0200
commit9ef09e35e521bf0df5325cc9cffa726a8f5f3c1b (patch)
treeeb370cdca5ac43b3ed7e9ce1e0e8ab14a54a673b /tools/perf/scripts/python/export-to-sqlite.py
parenta8d7aa17bbc970971ccdf71988ea19230ab368b1 (diff)
bpf: fix possible spectre-v1 in find_and_alloc_map()
It's possible for userspace to control attr->map_type. Sanitize it when using it as an array index to prevent an out-of-bounds value being used under speculation. Found by smatch. Signed-off-by: Mark Rutland <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Dan Carpenter <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Acked-by: David S. Miller <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions