commit | 9901df47d96ff3117ee4abc4d3fd5afb001088b5 | [log] [tgz] |
---|---|---|
author | Weizhao Jiang <weizhaoj@amazon.com> | Wed Mar 29 16:07:34 2023 -0700 |
committer | Jérôme Forissier <jerome@forissier.org> | Sat Apr 01 11:36:56 2023 +0200 |
tree | bcead7af1eb670d90096485e2361c98386338711 | |
parent | 66370233e62b57e1fcbf18a95dd9412f12703da1 [diff] |
core: dump_ta_memstats(): check TA initialization completion before accessing it Problem: In some concurrent cases, TA dump will try to dump a TA which has not completed TA initialization and the TA stack pointer isn't set. That causes a data abort when accessing its stack. Solution: Check the user TA initialization is completed or not. If it is still being initialized, return TEE_ERROR_BAD_STATE. https://github.com/OP-TEE/optee_os/issues/5905 Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Weizhao Jiang <weizhaoj@amazon.com> Signed-off-by: Weizhao Jiang <weizhaoj@amazon.com>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers