Re: [PATCH v5 3/7] tee: qcomtee: Allow object invokes from kernel clients
From: Kuldeep Singh
Date: Fri Oct 16 2026 - 09:00:55 EST
On 15-10-2026 17:09, Harshal Dev wrote:
> From: Amirreza Zarrabi <amirreza.zarrabi@xxxxxxxxxxxxxxxx>
>
> QCOMTEE currently treats UBUF parameters as userspace addresses and
> applies userspace restrictions when invoking the root object. This is
> not suitable for object invocation requests issued by kernel clients.
>
> Use the kernel_ctx flag to distinguish kernel client requests from
> userspace requests. For kernel contexts, do not mark UBUF parameters as
> user addresses, and allow permitted root-object operations to proceed
> without applying the userspace-only checks.
>
> This allows in-kernel users of tee_client_object_invoke_func() to issue
> object invocation requests through the qcomtee backend.
>
> Co-developed-by: Harshal Dev <harshal.dev@xxxxxxxxxxxxxxxx>
> Signed-off-by: Harshal Dev <harshal.dev@xxxxxxxxxxxxxxxx>
> Acked-by: Sumit Garg <sumit.garg@xxxxxxxxxxxxxxxx>
> Reviewed-by: Amirreza Zarrabi <amirreza.zarrabi@xxxxxxxxxxxxxxxx>
> Signed-off-by: Amirreza Zarrabi <amirreza.zarrabi@xxxxxxxxxxxxxxxx>
Tested-by: Kuldeep Singh <kuldeep.singh@xxxxxxxxxxxxxxxx> #on Glymur-crd
--
Regards
Kuldeep