[PATCH][makedumpfile] Fix riscv64 virtual-to-physical address translation
Rui Qi
qirui.001 at bytedance.com
Wed May 6 04:57:56 PDT 2026
This patchset fixes two bugs in the riscv64 architecture support of
makedumpfile related to virtual-to-physical address translation.
Patch 1 fixes vaddr_to_paddr_riscv64() to exclude vmalloc and vmemmap
regions from the VTOP() fast path. These regions are not linearly mapped
and must go through page table walk.
Patch 2 fixes vtop_riscv64() to correctly handle huge pages when
_PAGE_LEAF is set at PGD/P4D/PUD/PMD level. The original code incorrectly
fell through to the next level, causing wrong physical address computation.
Shuan He (2):
riscv64: Fix vaddr_to_paddr for vmalloc and vmemmap regions
riscv64: Fix huge page translation in vtop_riscv64()
arch/riscv64.c | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
--
2.20.1
More information about the kexec
mailing list