ARM: poison the vectors page
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 4 Jul 2013 10:00:23 +0000 (11:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 01:35:19 +0000 (18:35 -0700)
commitbde516f7a535b9bafa00e54a06c6538b9eb830e5
tree10194217536668a78a99924607f67ba4bf88571a
parentdc51cd2570468bb7bcf1815a60929023316ca868
ARM: poison the vectors page

commit f928d4f2a86f46b030fa0850385b4391fc2b5918 upstream.

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.)

Acked-by Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kernel/traps.c