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)
commitf1383348ad0fe0d568dfd37f2552b0b4f044dbe5
treea09ff244ed6d03a96d228335689a40db9fd7d480
parent20bb6c9de1b7e13f11d2ffe73686f4449c426807
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