Searched hist:"470 d46257be737fc3befce4782b7de4222656d25" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/kernel/ |
| H A D | tpm.c | 470d46257be737fc3befce4782b7de4222656d25 Tue Aug 12 07:50:15 UTC 2025 Joseph Lo <josephl@nvidia.com> core: tpm: fix TPM log area zeroing condition to avoid manifest DT write fault
Change the condition for zeroing TPM event log address in device tree from CFG_CORE_SEL1_SPMC to CFG_CORE_FFA. When CFG_CORE_FFA is enabled, the device tree comes from the manifest DT which is mapped as read-only, not from the external device tree. Attempting to zero the tpm_event_log_addr property in the manifest DT would cause a write permission fault exception.
The fix prevents this fault by ensuring the zeroing operation only occurs when using the external device tree (CFG_CORE_FFA=n), where write access is permitted.
Signed-off-by: Joseph Lo <josephl@nvidia.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
|