aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <[email protected]>2015-01-10 23:00:08 +0100
committerAndy Lutomirski <[email protected]>2015-01-13 14:10:31 -0800
commit6c3176a21652e506ca7efb8fa37a651a3c513bb5 (patch)
tree288f66f11fec3e7fe06c5b6be88deced858b8498
parentaf9cfe270dd133f2f40c287e8d41919bb8d063e3 (diff)
x86: ia32entry.S: fix wrong symbolic constant usage: R11->ARGOFFSET
The values of these two constants are the same, the meaning is different. Acked-by: Borislav Petkov <[email protected]> CC: Linus Torvalds <[email protected]> CC: Oleg Nesterov <[email protected]> CC: "H. Peter Anvin" <[email protected]> CC: Borislav Petkov <[email protected]> CC: Frederic Weisbecker <[email protected]> CC: X86 ML <[email protected]> CC: Alexei Starovoitov <[email protected]> CC: Will Drewry <[email protected]> CC: Kees Cook <[email protected]> CC: [email protected] Signed-off-by: Denys Vlasenko <[email protected]> Signed-off-by: Andy Lutomirski <[email protected]>
-rw-r--r--arch/x86/ia32/ia32entry.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S
index 82e8a1d44658..156ebcab4ada 100644
--- a/arch/x86/ia32/ia32entry.S
+++ b/arch/x86/ia32/ia32entry.S
@@ -179,8 +179,8 @@ sysenter_dispatch:
sysexit_from_sys_call:
andl $~TS_COMPAT,TI_status+THREAD_INFO(%rsp,RIP-ARGOFFSET)
/* clear IF, that popfq doesn't enable interrupts early */
- andl $~0x200,EFLAGS-R11(%rsp)
- movl RIP-R11(%rsp),%edx /* User %eip */
+ andl $~0x200,EFLAGS-ARGOFFSET(%rsp)
+ movl RIP-ARGOFFSET(%rsp),%edx /* User %eip */
CFI_REGISTER rip,rdx
RESTORE_ARGS 0,24,0,0,0,0
xorq %r8,%r8