Hi
On Fri, Sep 18, 2026 at 06:57:04AM +0000, chenhaixiang (A) wrote:
When percpu data is in vmalloc area (pcpu_page_first_chunk fallback
on
large NUMA systems), arm64_kvtop() cannot translate vmalloc addresses
during POST_GDB because vt->vmalloc_start is not yet initialized by
vm_init(). Moving the stack init functions to POST_VM ensures
vt->vmalloc_start and vt->kernel_pgd are ready before readmem calls.
Signed-off-by: Chen Haixiang <chenhaixiang3(a)h-partners.com>
---
arm64.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arm64.c b/arm64.c
index d177092..654b972 100644
--- a/arm64.c
+++ b/arm64.c
@@ -787,7 +787,9 @@ arm64_init(int when)
*/
if(!machdep->machspec->CONFIG_ARM64_KERNELPACMASK)
arm64_recalc_KERNELPACMASK();
+ break;
+ case POST_VM:
arm64_irq_stack_init();
arm64_overflow_stack_init();
arm64_stackframe_init();
--
2.41.0
Thanks for the patch, Acked and applied.