ARM: poison the vectors page
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 4 Jul 2013 10:00:23 +0000 (11:00 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 31 Jul 2013 20:30:57 +0000 (21:30 +0100)
commitf928d4f2a86f46b030fa0850385b4391fc2b5918
treea7326ffbc1e345d44bb3ebdede8f74e147951406
parent3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b
ARM: poison the vectors page

Fill the empty regions of the vectors page with an exception generating
instruction.  This ensures that any inappropriate branch to the vector
page is appropriately trapped, rather than just encountering some code
to execute.  (The vectors page was filled with zero before, which
corresponds with the "andeq r0, r0, r0" instruction - a no-op.)

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/kernel/traps.c