Searched hist:b2f0c846a4b0bb813018626ac6d8c3a07ebac95e (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/kernel/ |
| H A D | ree_fs_ta.c | b2f0c846a4b0bb813018626ac6d8c3a07ebac95e Wed Sep 17 09:40:36 UTC 2025 Ox Yeh <ox.yeh@mediatek.com> core: ree_fs: initialize ta_ver.db when its size is zero
Creating and writing db_hdr involves several RPC commands. If a power loss occurs during the creation flow, it may result in a db file with an empty db_hdr. Attempting to read this file subsequently leads to a TEE_ERROR_BAD_STATE error.
Instead of returning TEE_ERROR_BAD_STATE, continue the db_hdr initialization flow to support subsequent functionality.
Link: https://github.com/OP-TEE/optee_os/issues/7513 Fixes: 183398139c9c ("core: enable rollback protection for REE-FS TAs")
Signed-off-by: Ox Yeh <ox.yeh@mediatek.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
|