projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e974c2
)
hexagon: don't leave ->uc_stack uninitialized
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 23 Dec 2012 07:46:34 +0000
(
02:46
-0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 3 Feb 2013 23:15:58 +0000
(18:15 -0500)
it's used on rt_sigreturn(2)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/hexagon/kernel/signal.c
patch
|
blob
|
history
diff --git
a/arch/hexagon/kernel/signal.c
b/arch/hexagon/kernel/signal.c
index 46ebd4794663c05e8061eea1571eda055f104366..60fa2ca3202be2060f2b9065a51447ab0c34d6d9 100644
(file)
--- a/
arch/hexagon/kernel/signal.c
+++ b/
arch/hexagon/kernel/signal.c
@@
-125,6
+125,7
@@
static int setup_rt_frame(int signr, struct k_sigaction *ka, siginfo_t *info,
err |= __put_user(0x5400c004, &frame->tramp[1]);
err |= setup_sigcontext(regs, &frame->uc.uc_mcontext);
err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set));
+ err |= __save_altstack(&frame->uc.uc_stack, user_stack_pointer(regs));
if (err)
goto sigsegv;