This fixes an early KASAN initialization panic in pmap_san_enter_early_alloc_4k, when a non-default value
is specified for KSTACK_PAGES in the build config file.
Sponsored by: Juniper Networks, Inc.
Differential D51676
amd64/pmap: include opt_kstack_pages.h khng on Aug 1 2025, 4:00 PM. Authored by Tags None Referenced Files
Details
This fixes an early KASAN initialization panic in pmap_san_enter_early_alloc_4k, when a non-default value Sponsored by: Juniper Networks, Inc.
Diff Detail
Event TimelineComment Actions But that use of KSTACK_PAGES matches the definition of BOOTSTACK_SIZE in amd64/locore.S, which also doesn't include opt_kstack_pages.h. So both files should include it. Comment Actions It should be fine. KSTACK_PAGES is defined in ${OBJTOP}/sys/GENERIC-KASAN/assym.inc rather. |