]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit53270df173ec6fa8d486704d398bec457c234cfa
treea7326ffbc1e345d44bb3ebdede8f74e147951406
parenta3079e9139cd68a2ce172277272f72e0aa13bdb1
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