x86_64/vsyscall: Restore orig_ax after vsyscall seccomp
authorAndy Lutomirski <luto@amacapital.net>
Tue, 4 Nov 2014 23:36:50 +0000 (15:36 -0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 10 Nov 2014 09:46:35 +0000 (10:46 +0100)
commit26893107aa717cd11010f0c278d02535defa1ac9
tree1acd1b0f36e54540999c69b1ec8404e3f2fbdb5c
parent07114f0f1cda8b2ef6e884d0c7b268a32cce7903
x86_64/vsyscall: Restore orig_ax after vsyscall seccomp

The vsyscall emulation code sets orig_ax for seccomp's benefit,
but it forgot to set it back.

I'm not sure that this is observable at all, but it could cause
confusion to various /proc or ptrace users, and it's possible
that it could cause minor artifacts if a signal were to be
delivered on return from vsyscall emulation.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/cdc6a564517a4df09235572ee5f530ccdcf933f7.1415144089.git.luto@amacapital.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/vsyscall_64.c