summaryrefslogtreecommitdiffstats
path: root/arch/um/Makefile-skas
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2015-07-03 12:44:19 -0700
committerIngo Molnar <mingo@kernel.org>2015-07-07 10:58:30 +0200
commit5e99cb7c35ca0580da8e892f91c655d35ecf8798 (patch)
tree3d8c48af3e328fc6691757dbfa2adec2f596caeb /arch/um/Makefile-skas
parent5e5c684a2c78b98dcba3d6fce56773a375f63980 (diff)
downloadblackbird-obmc-linux-5e99cb7c35ca0580da8e892f91c655d35ecf8798.tar.gz
blackbird-obmc-linux-5e99cb7c35ca0580da8e892f91c655d35ecf8798.zip
x86/entry/64/compat: Fix bad fast syscall arg failure path
If user code does SYSCALL32 or SYSENTER without a valid stack, then our attempt to determine the syscall args will result in a failed uaccess fault. Previously, we would try to recover by jumping to the syscall exit code, but we'd run the syscall exit work even though we never made it to the syscall entry work. Clean it up by treating the failure path as a non-syscall entry and exit pair. This fixes strace's output when running the syscall_arg_fault test. Without this fix, strace would get out of sync and would fail to associate syscall entries with syscall exits. Signed-off-by: Andy Lutomirski <luto@kernel.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Denys Vlasenko <vda.linux@googlemail.com> 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: Rik van Riel <riel@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: paulmck@linux.vnet.ibm.com Link: http://lkml.kernel.org/r/903010762c07a3d67df914fea2da84b52b0f8f1d.1435952415.git.luto@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/um/Makefile-skas')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud