projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22be3b1
)
sparc64: Fix sparc64_set_context stack handling.
author
David S. Miller
<davem@davemloft.net>
Tue, 1 Mar 2016 05:25:32 +0000
(
00:25
-0500)
committer
David S. Miller
<davem@davemloft.net>
Tue, 1 Mar 2016 05:25:32 +0000
(
00:25
-0500)
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>
arch/sparc/kernel/signal_64.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc/kernel/signal_64.c
b/arch/sparc/kernel/signal_64.c
index d88beff47bab3eb74fece39e282f7c701ab84868..39aaec173f66ebce88fe7953c99b412f5b07cc3d 100644
(file)
--- 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))))