commit 46f63d2a58e6af1d5a3d03d0aea315fdb3a9da22
Author: wentao.sun <wentao.sun@amlogic.com>
Date: Tue Jul 9 11:12:34 2024 +0800
core: mm: strip the tag of VA when check_pa_matches_va [1/1]
PD#RSP-6432
Problem:
When CFG_TEE_CORE_DEBUG=y and CFG_MEMTAG=y, core will crash, if there are
some modules call virt_to_phys() or core_vbuf_is() and so on.
Because the MM can not find map by the tagged VA, so strip the tag of
VA when check_pa_matches_va().
Solution:
strip the tag of VA when check_pa_matches_va
Verify:
Android U + S6
Suggested-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Change-Id: I440743886c05810fc85c77b88c373cff8efd3236
Signed-off-by: wentao.sun <wentao.sun@amlogic.com>
Change-Id: Ie591581473286700031be47386d82d11707706c5
25 files changed