]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Fix signal restart issues with NX and OABI compat
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 25 Oct 2009 15:39:37 +0000 (15:39 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 25 Oct 2009 15:39:37 +0000 (15:39 +0000)
commitf2f638ccdb1012d6de2f938bb933efcc94be1b4e
treeca002f2e4e6b78fd2d5747aa8d478faa5d84e9f6
parent8b9ab97941005c04bcae58a104d15a2ada0247a9
ARM: Fix signal restart issues with NX and OABI compat

The signal restarting code was placed on the user stack when OABI
compatibility is enabled.  Unfortunately, with an EABI NX executable,
this results in an attempt to run code from the non-executable stack,
which segfaults the application.

Fix this by placing the code in the vectors page, along side the
signal return code, and directing the application to that code.

Reported-by: saeed bishara <saeed.bishara@gmail.com>
Tested-by: saeed bishara <saeed.bishara@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/signal.c
arch/arm/kernel/signal.h
arch/arm/kernel/traps.c