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> Git-commit: 19accfd3 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ARM: use linker magic for vectors and vector stubs Use linker magic to create the vectors and vector stubs: we can tell the linker to place them at an appropriate VMA, but keep the LMA within the kernel. This gets rid of some unnecessary symbol manipulation, and have the linker calculate the relocations appropriately. Change-Id: I694f6b651e60fccd7e3c818f981a3883f9c212de Cc: <stable@vger.kernel.org> Acked-by:
Nicolas Pitre <nico@linaro.org> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk> Git-commit: b9b32bf7 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git [joonwoop@codeaurora.org: squashed 19accfd3 and b9b32bf7 because 19accfd3 broke build] CRs-fixed: 561044 Signed-off-by:
Joonwoo Park <joonwoop@codeaurora.org>
Loading
Please sign in to comment