Commit 3e362bc
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 3f7738d commit 3e362bc
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
344 | 350 | | |
345 | 351 | | |
346 | 352 | | |
| |||
0 commit comments