summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2021-01-07 15:31:19 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-14 09:44:20 +0200
commit08b601cb7aef23342c4ab1cd8f28449c7a2f7103 (patch)
tree80b64357434fd3327006720d08f2655ede499094 /drivers/acpi/cppc_acpi.c
parent001c8e83646ad3b847b18f6ac55a54367d917d74 (diff)
downloadlinux-stable-08b601cb7aef23342c4ab1cd8f28449c7a2f7103.tar.gz
linux-stable-08b601cb7aef23342c4ab1cd8f28449c7a2f7103.tar.bz2
linux-stable-08b601cb7aef23342c4ab1cd8f28449c7a2f7103.zip
soc: qcom: mdt_loader: Validate that p_filesz < p_memsz
[ Upstream commit 84168d1b54e76a1bcb5192991adde5176abe02e3 ] The code validates that segments of p_memsz bytes of a segment will fit in the provided memory region, but does not validate that p_filesz bytes will, which means that an incorrectly crafted ELF header might write beyond the provided memory region. Fixes: 051fb70fd4ea ("remoteproc: qcom: Driver for the self-authenticating Hexagon v5") Reviewed-by: Sibi Sankar <sibis@codeaurora.org> Link: https://lore.kernel.org/r/20210107233119.717173-1-bjorn.andersson@linaro.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions