[PATCHv3] arch: arm64: fix KERNEL_SEGMENT_COUNT error
Catalin Marinas
catalin.marinas at arm.com
Fri May 1 09:18:00 PDT 2026
On Thu, 30 Apr 2026 16:58:08 +0800, zhaoyang.huang wrote:
> During debug of a kernel panic, we find that the pte_t of the final
> part of [data, end] segment got overflow to the next page of
> init_pg_end[1] which is the gap page before early_init_stack[2].
> This should be introduced by the KERNEL_SEGMENT_COUNT's value is 5
> which should be 6 as map_segment are called 6 times for the segments
> of (text, stext, rodata, inittext, initdata, data+bss)
>
> [...]
I tweaked the commit log since KERNEL_SEGMENT_COUNT is correct as 5. I
also changed the code comment a bit in case anyone wonders why the
EARLY_IDMAP_EXTRA_PAGES is like that.
Applied to arm64 (for-next/fixes), thanks!
[1/1] arch: arm64: fix KERNEL_SEGMENT_COUNT error
https://git.kernel.org/arm64/c/4d8e74ad4585
More information about the linux-arm-kernel
mailing list