summaryrefslogtreecommitdiffstats
path: root/Documentation/zorro.txt
diff options
context:
space:
mode:
authorRabin Vincent <rabin@rab.in>2014-05-24 17:38:01 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-05-25 23:44:27 +0100
commit483a6c9d447f625b991fa04a1530493d893984db (patch)
tree1b7396010f4ddc8dc31e57cd05a5e6601493076f /Documentation/zorro.txt
parentfbebf59778600488147744cdf7d7c20d22531025 (diff)
downloadlinux-483a6c9d447f625b991fa04a1530493d893984db.tar.gz
linux-483a6c9d447f625b991fa04a1530493d893984db.tar.bz2
linux-483a6c9d447f625b991fa04a1530493d893984db.zip
ARM: 8064/1: fix v7-M signal return
According to the ARM ARM, the behaviour is UNPREDICTABLE if the PC read from the exception return stack is not half word aligned. See the pseudo code for ExceptionReturn() and PopStack(). The signal handler's address has the bit 0 set, and setup_return() directly writes this to regs->ARM_pc. Current hardware happens to discard this bit, but QEMU's emulation doesn't and this makes processes crash. Mask out bit 0 before the exception return in order to get predictable behaviour. Fixes: 19c4d593f0b4 ("ARM: ARMv7-M: Add support for exception handling") Cc: stable@kernel.org Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'Documentation/zorro.txt')
0 files changed, 0 insertions, 0 deletions