• Ingo Molnar's avatar
    x86/asm/entry/64: Simplify 'old_rsp' usage · 9854dd74
    Ingo Molnar authored
    Remove all manipulations of PER_CPU(old_rsp) in C code:
    
     - it is not used on SYSRET return anymore, and system entries
       are atomic, so updating it from the fork and context switch
       paths is pointless.
    
     - Tweak a few related comments as well: we no longer have a
       "partial stack frame" on entry, ever.
    
    Based on (split out of) patch from Denys Vlasenko.
    
    Originally-from: Denys Vlasenko <dvlasenk@redhat.com>
    Tested-by: default avatarBorislav Petkov <bp@alien8.de>
    Acked-by: default avatarBorislav Petkov <bp@alien8.de>
    Cc: Alexei Starovoitov <ast@plumgrid.com>
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Denys Vlasenko <dvlasenk@redhat.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: Steven Rostedt <rostedt@goodmis.org>
    Cc: Will Drewry <wad@chromium.org>
    Link: http://lkml.kernel.org/r/1426599779-8010-2-git-send-email-dvlasenk@redhat.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    9854dd74
processor.h 23.7 KB