]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: Move fixmap and kasan page tables to end of kernel image
authorArd Biesheuvel <ardb@kernel.org>
Fri, 29 May 2026 15:02:00 +0000 (17:02 +0200)
committerWill Deacon <will@kernel.org>
Tue, 2 Jun 2026 15:29:15 +0000 (16:29 +0100)
commit382a03e12ebad387fad616da78b99720ea3ee683
tree7d2e0c4dbcce194616b8761157bfb7451a388eae
parent28becb2c1d741259b2f12737e0a3828fe59700d9
arm64: Move fixmap and kasan page tables to end of kernel image

Move the fixmap and kasan page tables out of the BSS section, and place
them at the end of the image, right before the init_pg_dir section where
some of the other statically allocated page tables live.

These page tables are currently the only data objects in vmlinux that
are meant to be accessed via the kernel image's linear alias, and so
placing them together allows the remainder of the data/bss section to be
remapped read-only or unmapped entirely.

Reviewed-by: Kevin Brodsky <kevin.brodsky@arm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/mmu.h
arch/arm64/kernel/vmlinux.lds.S
arch/arm64/mm/fixmap.c
arch/arm64/mm/kasan_init.c