]> git.baikalelectronics.ru Git - kernel.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)
commit8bb38435f0f0bbcd603f7513e1e957898f8797f3
tree0acd7880c40cc9ff9aa25cfab242d9ba528db6cd
parent1a01bafcfb5e2e50c111ff8f660b36f93e937dbf
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