Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: OP-TEE/optee_os#5101 Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
- Loading branch information