mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
When ADSP OS is loaded from adsp.elf, it loads two sections : adsp os and the vector table. The vector table is copied to a local buffer before writing to the EVP registers. There is a probability that, if the adsp.elf is hacked / modified by an attacker, it can write to other APE register spaces. Hence, the destination address obtained from the elf is checked with evp base before copying. Also, this fixes out of array-bound writing to evp buffer. Bug 1684844 Change-Id: I8981dc5a5db8e0c0653ff46a1576df2c82e420be Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/1118936 (cherry picked from commit 9f7120e03e66b5f6e2bf67f09063da20945be238) Reviewed-on: http://git-master/r/1458894 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1537317 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit