Searched hist:"5 a9d570a8d7ff1cf7adfcf332c4a1ea0e539481b" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/tee/ |
| H A D | fs_htree.c | 5a9d570a8d7ff1cf7adfcf332c4a1ea0e539481b Fri Oct 03 06:47:42 UTC 2025 Ox Yeh <ox.yeh@mediatek.com> core: fs_htree: re-init hash tree when both tag and counter are zero
Creating and update a hash tree involves several RPC commands. If a power loss occurs during the creation flow, it may result in a hash tree with an incomplete header and a counter value of 0. If attempting to read this file subsequently leads to a TEE_ERROR_CORRUPT_OBJECT error.
Instead of returning TEE_ERROR_CORRUPT_OBJECT, continue the initialization flow to support subsequent functionality.
Link: https://github.com/OP-TEE/optee_os/issues/7512 Fixes: 50a814981d8b ("core: provide a hash tree for secure storage")
Signed-off-by: Ox Yeh <ox.yeh@mediatek.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
|