“28503cbbf32246466d45cb48c938d20c08b3ca1e”上不存在“test/git@gitcode.net:openanolis/dragonwell8_jdk.git”
soc: qcom: mdt_loader: Detect truncated read of segments
stable inclusion from stable-5.10.37 commit d97cb4365747fdd36a7eacee2b89a80e6785ea97 bugzilla: 51868 CVE: NA -------------------------------- [ Upstream commit 0648c55e ] Given that no validation of how much data the firmware loader read in for a given segment truncated segment files would best case result in a hash verification failure, without any indication of what went wrong. Improve this by validating that the firmware loader did return the amount of data requested. Fixes: 445c2410 ("soc: qcom: mdt_loader: Use request_firmware_into_buf()") Reviewed-by: NSibi Sankar <sibis@codeaurora.org> Link: https://lore.kernel.org/r/20210107232526.716989-1-bjorn.andersson@linaro.orgSigned-off-by: NBjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录