linux/drivers/tee/optee
Jerome Forissier c650b8dc7a tee: optee: do not check memref size on return from Secure World
When Secure World returns, it may have changed the size attribute of the
memory references passed as [in/out] parameters. The GlobalPlatform TEE
Internal Core API specification does not restrict the values that this
size can take. In particular, Secure World may increase the value to be
larger than the size of the input buffer to indicate that it needs more.

Therefore, the size check in optee_from_msg_param() is incorrect and
needs to be removed. This fixes a number of failed test cases in the
GlobalPlatform TEE Initial Configuratiom Test Suite v2_0_0_0-2017_06_09
when OP-TEE is compiled without dynamic shared memory support
(CFG_CORE_DYN_SHM=n).

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Suggested-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Jerome Forissier <jerome@forissier.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
2021-03-30 10:44:50 +02:00
..
call.c tee: optee: remove need_resched() before cond_resched() 2021-02-03 08:11:11 +01:00
core.c tee: optee: do not check memref size on return from Secure World 2021-03-30 10:44:50 +02:00
device.c tee: optee: Use UUID API for exporting the UUID 2020-10-13 08:03:18 +02:00
Kconfig tee: optee: Fix compilation issue with nommu 2020-01-23 10:55:20 +01:00
Makefile tee: optee: add TEE bus device enumeration support 2019-02-01 15:12:46 +01:00
optee_msg.h optee: sync OP-TEE headers 2021-02-02 14:50:41 +01:00
optee_private.h drivers: optee: allow op-tee to access devices on the i2c bus 2020-08-21 11:41:45 +02:00
optee_rpc_cmd.h optee: sync OP-TEE headers 2021-02-02 14:50:41 +01:00
optee_smc.h optee: sync OP-TEE headers 2021-02-02 14:50:41 +01:00
rpc.c Simplify i2c acess in OP-TEE driver 2021-02-09 16:10:49 +01:00
shm_pool.c optee: Fix multi page dynamic shm pool alloc 2020-01-03 11:21:12 +01:00
shm_pool.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
supp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00