Commit eb6a85f
committed
audio: base_fw: validate host core_id in KCPS allocation request
basefw_kcps_allocation_request() passed request->core_id from the host
IPC payload straight into core_kcps_adjust(), which uses it to index
kcps_consumption[CONFIG_CORE_COUNT]. An out-of-range core_id turns the
add-assign into an arbitrary relative write into DSP .bss.
Reject core_id >= CONFIG_CORE_COUNT at the IPC boundary, mirroring the
existing check in schedulers_info_get().
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent 689eb09 commit eb6a85f
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
347 | 353 | | |
348 | 354 | | |
349 | 355 | | |
| |||
0 commit comments