Re: [PATCH v5 3/7] tee: qcomtee: Allow object invokes from kernel clients

From: Harshal Dev

Date: Mon Nov 02 2026 - 08:46:54 EST


Hi Amir,

On 26-10-2026 08:45 am, Amirreza Zarrabi wrote:
> Hi Harshal,
>
> On 10/15/2026 10:39 PM, 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>
>
> Same here.
>

Ack.

Regards,
Harshal

> - Amir