An improper locking bug(e.g., deadlock) on the lock ltc_ecc_fp_lock
ycaibb opened this issue · comments
Hi, developers, thank you for your checking. It seems the lock ltc_ecc_fp_lock is not released correctly when cache_entry == NULL in the function ltc_ecc_fp_save_state?
libtomcrypt/src/math/fp/ltc_ecc_fp_mulmod.c
Lines 1412 to 1433 in 673f5ce
btw. referring to OP-TEE/optee_os#4842 would have been nice :)
looks fine, I'll apply the patch you posted to optee
Can you please check whether #626 correctly fixes this?
It looks good to me.