]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: perf: fix array out of bounds access in armpmu_map_hw_event()
authorWill Deacon <will.deacon@arm.com>
Tue, 20 Aug 2013 10:47:39 +0000 (11:47 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 20 Aug 2013 11:05:57 +0000 (12:05 +0100)
commit3b543615cbe292fad0cf8ee9a36fb7d92353c1e4
treef208c1d84324fc007b6bb19595ce8756ebe39047
parented880b9baffd6d96a1025a205af229851349ff5d
arm64: perf: fix array out of bounds access in armpmu_map_hw_event()

This is a port of e7f25c11fe12 ("ARM: 7810/1: perf: Fix array out of
bounds access in armpmu_map_hw_event()") to arm64, which fixes an oops
in the arm64 perf backend found as a result of Vince's fuzzing tool.

Cc: <stable@vger.kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/perf_event.c