Re: [v2 PATCH] ASoC: max98390: Fix potential crash during param fw loading

2020-06-04 Thread Mark Brown
On Thu, 4 Jun 2020 14:47:31 +0900, Steve Lee wrote: > malformed firmware file can cause out-of-bound access and crash > during dsm_param bin loading. > - add MIN/MAX param size to avoid out-of-bound access. > - read start addr and size of param and check bound. > - add condition that

[v2 PATCH] ASoC: max98390: Fix potential crash during param fw loading

2020-06-03 Thread Steve Lee
malformed firmware file can cause out-of-bound access and crash during dsm_param bin loading. - add MIN/MAX param size to avoid out-of-bound access. - read start addr and size of param and check bound. - add condition that fw->size > param_size + _PAYLOAD_OFFSET to confirm enough data.