Skip to content
Commit 1e69a0ef authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

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: default avatarMeelis Roos <mroos@linux.ee>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: default avatarMeelis Roos <mroos@linux.ee>
parent 57e04eed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment