aboutsummaryrefslogtreecommitdiffstats
path: root/mmu.c
diff options
context:
space:
mode:
authorJoshua Bakita <bakitajoshua@gmail.com>2024-04-21 17:11:37 -0400
committerJoshua Bakita <bakitajoshua@gmail.com>2024-04-21 17:11:37 -0400
commit613b1589a3da73cdc5e9313d65bc7c723f574531 (patch)
tree9c0e8682dffe88846c9d0ef3c1628b0d98f03211 /mmu.c
parent6bdc90abdd034aeaff53f87951b7e89016619cde (diff)
Always dereference the post-I/O-MMU-translated address in mmu.c
Previously attempted to dereference non-I/O-MMU translated addresses, which resulted in accessing effectively arbitrary physical addresses, causing errononus results from search_page_directory() in particular.
Diffstat (limited to 'mmu.c')
-rw-r--r--mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mmu.c b/mmu.c
index 70c00f9..ea21f4e 100644
--- a/mmu.c
+++ b/mmu.c
@@ -62,7 +62,7 @@ void __iomem *pd_deref(struct nvdebug_state *g, uintptr_t addr, enum PD_TARGET p
62 if (!phys) 62 if (!phys)
63 return 0; 63 return 0;
64 64
65 return phys_to_virt(addr); 65 return phys_to_virt(phys);
66} 66}
67 67
68// Internal helper for search_page_directory(). 68// Internal helper for search_page_directory().