diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2011-08-18 15:04:09 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 09:14:54 -0400 |
commit | 9b25fcbdc64369f4cce41e73fc0f57f3fd367d20 (patch) | |
tree | 6248094684197d5c4f5dadf152cfcd4d4f712276 /arch/um/os-Linux | |
parent | adcfb9852d8f2ddba908da0d023c280e23a40452 (diff) |
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.c | 4 |
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) | |||
255 | 255 | ||
256 | set_sigstack((void *) STUB_DATA, UM_KERN_PAGE_SIZE); | 256 | set_sigstack((void *) STUB_DATA, UM_KERN_PAGE_SIZE); |
257 | sigemptyset(&sa.sa_mask); | 257 | sigemptyset(&sa.sa_mask); |
258 | sa.sa_flags = SA_ONSTACK | SA_NODEFER; | 258 | sa.sa_flags = SA_ONSTACK | SA_NODEFER | SA_SIGINFO; |
259 | sa.sa_handler = (void *) v; | 259 | sa.sa_sigaction = (void *) v; |
260 | sa.sa_restorer = NULL; | 260 | sa.sa_restorer = NULL; |
261 | if (sigaction(SIGSEGV, &sa, NULL) < 0) { | 261 | if (sigaction(SIGSEGV, &sa, NULL) < 0) { |
262 | printk(UM_KERN_ERR "userspace_tramp - setting SIGSEGV " | 262 | printk(UM_KERN_ERR "userspace_tramp - setting SIGSEGV " |