ARM: move vector stubs
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 4 Jul 2013 10:40:32 +0000 (11:40 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 31 Jul 2013 20:31:36 +0000 (21:31 +0100)
commit19accfd373847ac3d10623c5d20f948846299741
tree682dd44ea1710afbb7e61a24185ffa4c9a0fb0da
parent5b43e7a383d69381ffe53423e46dd0fafae07da3
ARM: move vector stubs

Move the machine vector stubs into the page above the vector page,
which we can prevent from being visible to userspace.  Also move
the reset stub, and place the swi vector at a location that the
'ldr' can get to it.

This hides pointers into the kernel which could give valuable
information to attackers, and reduces the number of exploitable
instructions at a fixed address.

Cc: <stable@vger.kernel.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/kernel/entry-armv.S
arch/arm/kernel/traps.c
arch/arm/mm/mmu.c