selftests/x86/sigreturn: Use CX, not AX, as the scratch register
authorAndy Lutomirski <luto@kernel.org>
Mon, 12 Sep 2016 22:05:50 +0000 (15:05 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 13 Sep 2016 18:34:15 +0000 (20:34 +0200)
commit1ef0199a1a698d82ecd39d11d1daa3f4ab006c75
tree5c03bf0b6dfef1e84a9bc78041c30138d4d55024
parent5a8ff54c260ecfed3de9b8d1272eb87826935df8
selftests/x86/sigreturn: Use CX, not AX, as the scratch register

RAX is handled specially in ESPFIX64.  Use CX as our scratch
register so that, if something goes wrong with RAX handling, we'll
notice.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/9ceeb24ea56925586c330dc46306f757ddea9fb5.1473717910.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/testing/selftests/x86/sigreturn.c