Commit 08c7ead
perf/arm-cmn: Reject unsupported hardware configurations
[ Upstream commit 36c0de0 ]
So far we've been fairly lax about accepting both unknown CMN models
(at least with a warning), and unknown revisions of those which we
do know, as although things do frequently change between releases,
typically enough remains the same to be somewhat useful for at least
some basic bringup checks. However, we also make assumptions of the
maximum supported sizes and numbers of things in various places, and
there's no guarantee that something new might not be bigger and lead
to nasty array overflows. Make sure we only try to run on things that
actually match our assumptions and so will not risk memory corruption.
We have at least always failed on completely unknown node types, so
update that error message for clarity and consistency too.
Cc: stable@vger.kernel.org
Fixes: 7819e05 ("perf/arm-cmn: Revamp model detection")
Reviewed-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 500778d commit 08c7ead
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2422 | 2422 | | |
2423 | 2423 | | |
2424 | 2424 | | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
2425 | 2434 | | |
2426 | 2435 | | |
2427 | 2436 | | |
| |||
2471 | 2480 | | |
2472 | 2481 | | |
2473 | 2482 | | |
2474 | | - | |
| 2483 | + | |
2475 | 2484 | | |
2476 | 2485 | | |
2477 | 2486 | | |
| |||
2499 | 2508 | | |
2500 | 2509 | | |
2501 | 2510 | | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
2502 | 2515 | | |
2503 | 2516 | | |
2504 | 2517 | | |
| |||
0 commit comments