diff options
| author | Valentina Fernandez <valentina.fernandezalanis@microchip.com> | 2025-11-13 13:49:22 +0000 |
|---|---|---|
| committer | Jassi Brar <jassisinghbrar@gmail.com> | 2026-01-18 14:19:11 -0600 |
| commit | f7c330a8c83c9b0332fd524097eaf3e69148164d (patch) | |
| tree | c146a0dbbc813c41e2956970e81c5b65b4bf02ce /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | d96ebba37b7d08a4d7d5f4b992b4400e6e7b8fa1 (diff) | |
mailbox: mchp-ipc-sbi: fix out-of-bounds access in mchp_ipc_get_cluster_aggr_irq()
The cluster_cfg array is dynamically allocated to hold per-CPU
configuration structures, with its size based on the number of online
CPUs. Previously, this array was indexed using hartid, which may be
non-contiguous or exceed the bounds of the array, leading to
out-of-bounds access.
Switch to using cpuid as the index, as it is guaranteed to be within
the valid range provided by for_each_online_cpu().
Signed-off-by: Valentina Fernandez <valentina.fernandezalanis@microchip.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
