Hi Amir,
On 26-10-2026 09:21 am, Amirreza Zarrabi wrote:
Hi Harshal,
On 10/15/2026 10:39 PM, Harshal Dev wrote:
QTEE exposes certain secure services implemented either within the QTEE kernel or via pre-loaded Trusted Applications (TAs). Such always-available services can be readily accessed by TEE client drivers via QTEE's object-IPC protocol if the service is registered as a device on the TEE bus.
One such service is the EFI-variables service, implemented by the uefisecapp TA which enables kernel clients to access EFI variables at runtime.
Maintain a static list of such always-available secure services and add support for the QCOMTEE driver to register these services as devices on the TEE bus during probe.
Signed-off-by: Harshal Dev harshal.dev@oss.qualcomm.com
drivers/tee/qcomtee/call.c | 160 ++++++++++++++++++++++++++++++++++- drivers/tee/qcomtee/core.c | 9 +- drivers/tee/qcomtee/qcomtee.h | 10 +++ drivers/tee/qcomtee/qcomtee_msg.h | 1 + drivers/tee/qcomtee/qcomtee_object.h | 3 +- 5 files changed, 176 insertions(+), 7 deletions(-)
[...]
diff --git a/drivers/tee/qcomtee/core.c b/drivers/tee/qcomtee/core.c index 60fe3b5776e3..4a523a95bf0e 100644 --- a/drivers/tee/qcomtee/core.c +++ b/drivers/tee/qcomtee/core.c @@ -898,19 +898,20 @@ qcomtee_object_get_client_env(struct qcomtee_object_invoke_ctx *oic) struct qcomtee_object * qcomtee_object_get_service(struct qcomtee_object_invoke_ctx *oic,
struct qcomtee_object *client_env, u32 uid)
struct qcomtee_object *client_env, u32 uid,int *result){ struct qcomtee_arg u[3] = { 0 };
- int ret, result;
- int ret;
Please initialize *result, otherwise for instance, on mem allocation failure, qcomtee_object_do_invoke returns with errno. The caller checks the return value + result and may print garbage.
Ack, will initialize here and omit in the caller.
Regards, Harshal
- Amir