diff --git a/core/mm/core_mmu.c b/core/mm/core_mmu.c index e548b6c8f1c..5e1acf0d61e 100644 --- a/core/mm/core_mmu.c +++ b/core/mm/core_mmu.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -2339,7 +2340,7 @@ paddr_t virt_to_phys(void *va) if (!arch_va2pa_helper(va, &pa)) pa = 0; - check_pa_matches_va(va, pa); + check_pa_matches_va(memtag_strip_tag(va), pa); return pa; }