Home
last modified time | relevance | path

Searched hist:f0ab1c64777339e3ae508eb13347e0e4518b5d03 (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/include/kernel/
H A Dtee_ta_manager.hf0ab1c64777339e3ae508eb13347e0e4518b5d03 Wed Oct 07 10:37:10 UTC 2020 Jens Wiklander <jens.wiklander@linaro.org> core: refactor locking during user TA load

tee_ta_init_user_ta_session() unlocks tee_ta_mutex while loading ldelf
and the user TA. This avoids a window where deadlock can occur in case
pgt_alloc() goes to sleep.

A new condition variable, tee_ta_init_cv, is added to signal that a TA
has changed state while initializing.

tee_ta_init_session_with_context waits for a TA context be fully
initialized before assigning it to another session.

This also simplifies tee_ta_try_set_busy() since it now doesn't have to
handle the case where it has to wait for a TA context to be fully
initialized.

Reviewed-by: Jerome Forissier <jerome@forissier.org>
Suggested-by: Opensource <opensource@sequiturlabs.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/core/kernel/
H A Dtee_ta_manager.cf0ab1c64777339e3ae508eb13347e0e4518b5d03 Wed Oct 07 10:37:10 UTC 2020 Jens Wiklander <jens.wiklander@linaro.org> core: refactor locking during user TA load

tee_ta_init_user_ta_session() unlocks tee_ta_mutex while loading ldelf
and the user TA. This avoids a window where deadlock can occur in case
pgt_alloc() goes to sleep.

A new condition variable, tee_ta_init_cv, is added to signal that a TA
has changed state while initializing.

tee_ta_init_session_with_context waits for a TA context be fully
initialized before assigning it to another session.

This also simplifies tee_ta_try_set_busy() since it now doesn't have to
handle the case where it has to wait for a TA context to be fully
initialized.

Reviewed-by: Jerome Forissier <jerome@forissier.org>
Suggested-by: Opensource <opensource@sequiturlabs.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>