mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
coresight: trbe: Prevent overflow in PERF_IDX2OFF()
[ Upstream commit105f56877f] Cast nr_pages to unsigned long to avoid overflow when handling large AUX buffer sizes (>= 2 GiB). Fixes:3fbf7f011f("coresight: sink: Add TRBE driver") Signed-off-by: Leo Yan <leo.yan@arm.com> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
a64fa670fa
commit
637f28a25b
1 changed files with 2 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue