[PATCH 04/12] ASoC: SOF: imx: imx8: Bar index is only valid for IRAM and SRAM types

Péter Ujfalusi peter.ujfalusi at linux.intel.com
Wed Sep 15 15:10:33 CEST 2021



On 15/09/2021 16:00, Mark Brown wrote:
> On Wed, Sep 15, 2021 at 03:21:08PM +0300, Peter Ujfalusi wrote:
>> i.MX8 only uses SOF_FW_BLK_TYPE_IRAM (1) and SOF_FW_BLK_TYPE_SRAM (3)
>> bars, everything else is left as 0 in sdev->bar[] array.
>>
>> If a broken or purposefully crafted firmware image is loaded with other
>> types of FW_BLK_TYPE then a kernel crash can be triggered.
> 
> This is a fix which should have been at the start of the series.

The same is true for the next patch for imx8m, I'll move it ahead in the v2.

-- 
Péter


More information about the Alsa-devel mailing list