Commit a29fea30 authored by Leo Yan's avatar Leo Yan Committed by Will Deacon
Browse files

perf: arm_spe: Prevent overflow in PERF_IDX2OFF()



Cast nr_pages to unsigned long to avoid overflow when handling large
AUX buffer sizes (>= 2 GiB).

Fixes: d5d9696b ("drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension")
Signed-off-by: default avatarLeo Yan <leo.yan@arm.com>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 105f5687
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment