summary refs log tree commit diff
path: root/kernel/backtracetest.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2019-12-06 12:50:16 +0100
committerPeter Zijlstra <peterz@infradead.org>2019-12-17 13:32:46 +0100
commit1e69a0efc0bd0e02b8327e7186fbb4a81878ea0b (patch)
tree8eeccf5d120c1eb9346e1959225383a02c3f69d7 /kernel/backtracetest.c
parent57e04eeda515ee979fec3bc3d64c408feae18acc (diff)
downloadlinux-1e69a0efc0bd0e02b8327e7186fbb4a81878ea0b.tar.gz
perf/x86: Fix potential out-of-bounds access
UBSAN reported out-of-bound accesses for x86_pmu.event_map(), it's
arguments should be < x86_pmu.max_events. Make sure all users observe
this constraint.

Reported-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Meelis Roos <mroos@linux.ee>
Diffstat (limited to 'kernel/backtracetest.c')
0 files changed, 0 insertions, 0 deletions