aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-03-01 00:25:32 -0500
committerSasha Levin <sasha.levin@oracle.com>2016-07-12 08:48:24 -0400
commitb9dcd3de8135838055e90bc5ef88e72fc62995cc (patch)
treee6e713970418f1ec0c6e0d44ce0cc81f44f5496e
parent0396a871c4e3fbbaabb4f2632c1d388a04b68c84 (diff)
downloadlinux-linaro-stable-b9dcd3de8135838055e90bc5ef88e72fc62995cc.tar.gz
sparc64: Fix sparc64_set_context stack handling.
[ Upstream commit 397d1533b6cce0ccb5379542e2e6d079f6936c46 ] Like a signal return, we should use synchronize_user_stack() rather than flush_user_windows(). Reported-by: Ilya Malakhov <ilmalakhovthefirst@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
-rw-r--r--arch/sparc/kernel/signal_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/signal_64.c b/arch/sparc/kernel/signal_64.c
index 1a6999868031..479e3805765d 100644
--- a/arch/sparc/kernel/signal_64.c
+++ b/arch/sparc/kernel/signal_64.c
@@ -52,7 +52,7 @@ asmlinkage void sparc64_set_context(struct pt_regs *regs)
unsigned char fenab;
int err;
- flush_user_windows();
+ synchronize_user_stack();
if (get_thread_wsaved() ||
(((unsigned long)ucp) & (sizeof(unsigned long)-1)) ||
(!__access_ok(ucp, sizeof(*ucp))))