misc: fastrpc: check before loading process to the DSP
authorJeya R <jeyr@codeaurora.org>
Mon, 14 Feb 2022 16:09:56 +0000 (16:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 13:11:00 +0000 (14:11 +0100)
commit7f1f481263c3ce5387d4fd5ad63ddaa8a295aab2
tree6d5fc35a3e6e3857b7b063932a9fc7e95232db8a
parent3abe3ab3cdab71b2073ba6331edc0b2994643133
misc: fastrpc: check before loading process to the DSP

Reject session if DSP domain is secure, device node is non-secure and signed
PD is requested. Secure device node can access DSP without any restriction.

Unsigned PD offload is only allowed for the DSP domain that can support
unsigned offloading.

Signed-off-by: Jeya R <jeyr@codeaurora.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220214161002.6831-7-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/fastrpc.c
include/uapi/misc/fastrpc.h