| commit | 06db73b3f3fdb8d23eceaedbc46c49c0b45fd1e2 | [log] [tgz] |
|---|---|---|
| author | Jens Wiklander <jens.wiklander@linaro.org> | Tue Jan 11 15:48:04 2022 +0100 |
| committer | Jérôme Forissier <jerome@forissier.org> | Tue Jan 11 19:55:23 2022 +0100 |
| tree | 022bdc923ea569a80d884903fd9a1110107ee2b8 | |
| parent | f6e05d3d614e5abffd1bc34561d4724773c063be [diff] |
libteec: copy out partial shadow buffer Without dynamic shared memory enabled (CFG_CORE_DYN_SHM=n) temporary memrefs uses a shadow buffer to transport data to and from the kernel. Prior to this patch in case the out length of such a buffer is larger than the initial size then no copy out is performed even though some relevant data may be available. Fix this by copying out as much data as the shadow buffer can hold. Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Tested-by: Jerome Forissier <jerome@forissier.org> Fixes: https://github.com/OP-TEE/optee_os/issues/5101 Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the non-secure side implementation of the OP-TEE project making up the client library and tee-supplicant.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_client.
// OP-TEE core maintainers