diff options
| author | Joshua Bakita <bakitajoshua@gmail.com> | 2024-04-21 17:11:37 -0400 |
|---|---|---|
| committer | Joshua Bakita <bakitajoshua@gmail.com> | 2024-04-21 17:11:37 -0400 |
| commit | 613b1589a3da73cdc5e9313d65bc7c723f574531 (patch) | |
| tree | 9c0e8682dffe88846c9d0ef3c1628b0d98f03211 | |
| parent | 6bdc90abdd034aeaff53f87951b7e89016619cde (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.
| -rw-r--r-- | mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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(). |
