commit | bc9618c0b6e6585ada3efcab4ce5ba155507d777 | [log] [tgz] |
---|---|---|
author | Anton Rybakov <a.rybakov@omp.ru> | Mon May 17 14:18:03 2021 +0300 |
committer | Jérôme Forissier <jerome@forissier.org> | Mon Jun 07 14:42:01 2021 +0200 |
tree | e0e440e8fc53a91d7ffc6287a8e3945eb0bbae89 | |
parent | 42d2ab27f8c057b5b6e952ab0ec802516a255b4a [diff] |
core_mmu: fix implicit behavior of core_mmu_add_mapping() In core_mmu_add_mapping() requested physical address rounded up/down to granule size (0x100000), which leads to establishing of virtual mappings with overlapped physical counterparts. If two virtual mappings overlaps due to such roundings, then following phys_to_virt() can implicitly return result of virtual address from unexpected mapping. This patch fix such behavior by returning virtual address of newly established mapping. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Anton Rybakov <a.rybakov@omp.ru>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers