Re: [PATCH v5 1/7] tee: qcomtee: Track the object invocation context

From: Kuldeep Singh

Date: Fri Oct 16 2026 - 08:58:52 EST


On 15-10-2026 17:09, Harshal Dev wrote:
> QCOMTEE needs to distinguish between object invocations arriving from
> kernel clients and user-space clients in order to correctly marshal
> UBUF parameters and decide whether certain operations should be permitted.
>
> Introduce an enum tee_object_invoke_origin to allow clients to indicate
> the context of the TEE object invocation, and add a kernel_ctx flag to the
> QCOMTEE context so the TEE back-end can track it.
>
> Reviewed-by: Sumit Garg <sumit.garg@xxxxxxxxxxxxxxxx>
> Reviewed-by: Amirreza Zarrabi <amirreza.zarrabi@xxxxxxxxxxxxxxxx>
> Signed-off-by: Harshal Dev <harshal.dev@xxxxxxxxxxxxxxxx>

Tested-by: Kuldeep Singh <kuldeep.singh@xxxxxxxxxxxxxxxx> #on Glymur-crd

--
Regards
Kuldeep