]> 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)
commit25f8e2ca7f5b4c1b4f402354dae02bac92cabae0
tree0acd7880c40cc9ff9aa25cfab242d9ba528db6cd
parentecc47a055005cd5b521798799c90d3fe3f75f883
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