Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 397d1533 authored by David S. Miller's avatar David S. Miller
Browse files

sparc64: Fix sparc64_set_context stack handling.



Like a signal return, we should use synchronize_user_stack() rather
than flush_user_windows().

Reported-by: default avatarIlya Malakhov <ilmalakhovthefirst@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 22be3b10
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))))