]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: smem: validate fields of shared structures
authorDeepak Kumar Singh <quic_deesin@quicinc.com>
Tue, 1 Mar 2022 15:18:33 +0000 (20:48 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 13 Apr 2022 02:29:58 +0000 (21:29 -0500)
commit049dad8525af019cd3c5c36eb889022450b69979
treea09ff244ed6d03a96d228335689a40db9fd7d480
parentdae4c6a4676600a4fa0a5dfb70217576df177686
soc: qcom: smem: validate fields of shared structures

Structures in shared memory that can be modified by remote
processors may have untrusted values, they should be validated
before use.

Adding proper validation before using fields of shared
structures.

Signed-off-by: Deepak Kumar Singh <quic_deesin@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1646147913-15791-2-git-send-email-quic_deesin@quicinc.com
drivers/soc/qcom/smem.c