]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arm64: mmu: Place guard page after mapping of kernel image
authorWill Deacon <will.deacon@arm.com>
Mon, 24 Jul 2017 10:46:09 +0000 (11:46 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 28 Jul 2017 09:32:14 +0000 (10:32 +0100)
commit92bbd16e500c85bc210ba48caecbfbdb721bb5b4
tree0acd7880c40cc9ff9aa25cfab242d9ba528db6cd
parenta3287c41ff405025bc57b165a0f6cd698bbbc1be
arm64: mmu: Place guard page after mapping of kernel image

The vast majority of virtual allocations in the vmalloc region are followed
by a guard page, which can help to avoid overruning on vma into another,
which may map a read-sensitive device.

This patch adds a guard page to the end of the kernel image mapping (i.e.
following the data/bss segments).

Cc: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/mmu.c