commit | 2cd578baae174c61b35a48d9016facbcc0fffbfe | [log] [tgz] |
---|---|---|
author | Jens Wiklander <jens.wiklander@linaro.org> | Fri May 23 09:39:51 2025 +0200 |
committer | Jerome Forissier <jerome@forissier.org> | Wed Jun 04 10:38:35 2025 +0200 |
tree | 5f5a50bc25df8a1794798312dc2eab8c73141a6a | |
parent | bd8bea6f45b004aa153fa8d7922dec6a655f50e3 [diff] |
core: fix asan for CFG_WITH_PAGER=n Some fixes are needed to make CFG_CORE_SANITIZE_KADDRESS=y work both with and without CFG_DYN_CONFIG=y. Sanitizing stack addresses aren't supported with CFG_DYN_CONFIG=y since it requires extensive changes in the ASAN framework. The VCORE_FREE area is moved right before the .asan_shadow area. init_asan() calls boot_mem_init_asan() to tag access to already allocated boot memory. entry_a32.S is updated to skip allowing access to stacks in the .asan_shadow area for CFG_DYN_CONFIG=y since stacks are stored elsewhere in that configuration. entry_a64.S is updated to initialize the .asan_shadow area in the same way as in entry_a32.S. The .asan_shadow area is mapped explicitly in collect_mem_ranges() instead of relying on the now non-existent coverage of MEM_AREA_TEE_RAM_RW. CFG_DYN_CONFIG=y and CFG_WITH_PAGER=y is not yet known to work. Fixes: 1c1f8b65b5c6 ("core: mm: unify secure core and TA memory") Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
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