summaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2011-08-18 20:04:09 +0100
committerRichard Weinberger <richard@nod.at>2011-11-02 14:14:54 +0100
commit9b25fcbdc64369f4cce41e73fc0f57f3fd367d20 (patch)
tree6248094684197d5c4f5dadf152cfcd4d4f712276 /arch/um/os-Linux
parentadcfb9852d8f2ddba908da0d023c280e23a40452 (diff)
downloadblackbird-op-linux-9b25fcbdc64369f4cce41e73fc0f57f3fd367d20.tar.gz
blackbird-op-linux-9b25fcbdc64369f4cce41e73fc0f57f3fd367d20.zip
um: switch stub_segv_handler to SA_SIGINFO variant, get rid of magic crap in there
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/os-Linux')
-rw-r--r--arch/um/os-Linux/skas/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/os-Linux/skas/process.c b/arch/um/os-Linux/skas/process.c
index 2a72bfcd7aba..f481d745e231 100644
--- a/arch/um/os-Linux/skas/process.c
+++ b/arch/um/os-Linux/skas/process.c
@@ -255,8 +255,8 @@ static int userspace_tramp(void *stack)
set_sigstack((void *) STUB_DATA, UM_KERN_PAGE_SIZE);
sigemptyset(&sa.sa_mask);
- sa.sa_flags = SA_ONSTACK | SA_NODEFER;
- sa.sa_handler = (void *) v;
+ sa.sa_flags = SA_ONSTACK | SA_NODEFER | SA_SIGINFO;
+ sa.sa_sigaction = (void *) v;
sa.sa_restorer = NULL;
if (sigaction(SIGSEGV, &sa, NULL) < 0) {
printk(UM_KERN_ERR "userspace_tramp - setting SIGSEGV "
OpenPOWER on IntegriCloud