x86/asm/entry/32: Fix fallout from the R9 trick removal in the SYSCALL code
authorDenys Vlasenko <dvlasenk@redhat.com>
Tue, 9 Jun 2015 18:54:07 +0000 (20:54 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 10 Jun 2015 06:42:12 +0000 (08:42 +0200)
commitaee4b013a71666f11ffeac11ab45bb7c6e0e394d
treedebcc68d5bf9ee8468183f0433a41837388db513
parent9b47feb708e50e6114b4b4193eee67f2e5af9d05
x86/asm/entry/32: Fix fallout from the R9 trick removal in the SYSCALL code

I put %ebp restoration code too late. Under strace, it is not
reached and %ebp is not restored upon return to userspace.

This is the fix. Run-tested.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Drewry <wad@chromium.org>
Link: http://lkml.kernel.org/r/1433876051-26604-1-git-send-email-dvlasenk@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/entry/entry_64_compat.S