[PATCH 0/2] Fix tee: optee: add dynamic shared memory support

From: Jens Wiklander
Date: Thu Dec 28 2017 - 10:39:58 EST


These two patches complements the previously posted patchset
"tee: optee: add dynamic shared memory support"

Tests are added to see that the registered shared memory cache attributes
are compatible with OP-TEE in secure world. Under normal circumstances they
will be compatible, but if memory has been previously mapped from a device
with special page attributes it could lead to trouble.


Jens Wiklander (2):
tee: add start argument to shm_register callback
tee: optee: check type of registered shared memory

drivers/tee/optee/call.c | 50 +++++++++++++++++++++++++++++++++++----
drivers/tee/optee/optee_private.h | 6 +++--
drivers/tee/tee_shm.c | 2 +-
include/linux/tee_drv.h | 3 ++-
4 files changed, 53 insertions(+), 8 deletions(-)