Searched hist:e41da76be30cb735fa5c6a2408fa70aeb65f34c3 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/pta/ |
| H A D | attestation.c | e41da76be30cb735fa5c6a2408fa70aeb65f34c3 Wed Jul 26 07:56:14 UTC 2023 Jerome Forissier <jerome.forissier@linaro.org> pta: attestation: exclude memory regions without VM_FLAG_READONLY
When selecting which memory region of a TA should be hashed, exclude those without VM_FLAG_READONLY in their flag field instead of requiring the absence of TEE_MATTR_UW in attr. This makes the code more consistent and fixes an issue triggered by commit 52e7b1a67f8f ("core: use user-access functions in ldelf interaction"). With that commit, an additional region is mapped read-only (i.e., no TEE_MATTR_UW) but does not have a fixed content for the TA. It can be excluded easily since it does not have the VM_FLAG_READONLY flag.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
|