linaro-swg / optee_examples

OP-TEE Sample Applications
Other
163 stars 140 forks source link

secure_storage: use private buffers #78

Closed jforissier closed 3 years ago

jforissier commented 3 years ago

TEE_ReadObjectData() and TEE_WriteObjectData() data buffers have [out] and [in] attributes and therefore "SHALL not reside in a block of shared memory owned by a client of the Trusted Application" [1]. Fix this by allocating temporary buffers from the heap.

[1] TEE Internal Core API Specification v1.1

Signed-off-by: Jerome Forissier jerome@forissier.org

jenswi-linaro commented 3 years ago

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>