Searched hist:adf8325b96e4fa05b2396819664f1fe0cb31998b (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/tee/ |
| H A D | tee_svc_cryp.c | adf8325b96e4fa05b2396819664f1fe0cb31998b Wed Jun 29 20:46:23 UTC 2022 Jerome Forissier <jerome.forissier@linaro.org> core: crypto: mte: strip tag before calling vm_check_access_rights()
op_attr_bignum_to_user() lacks a call to memtag_strip_tag() before it calls vm_check_access_rights(). This results in the memory buffer not being found and the function returning TEE_ERROR_ACCESS_DENIED.
Test case: xtest pkcs11_1019 on QEMUv8, build command:
make CFG_PKCS11_TA=y CFG_USER_TA_TARGET_pkcs11=ta_arm64 MEMTAG=y run
Fixes: ef142203a36b ("core: syscalls: strip tags from user space pointers") Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
|