]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/entry/64: Clean up and document espfix64 stack setup
authorAndy Lutomirski <luto@kernel.org>
Mon, 12 Sep 2016 22:05:51 +0000 (15:05 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 13 Sep 2016 18:34:16 +0000 (20:34 +0200)
commit85063fac1f72419eec4349621fe829b07f9acb1e
treea8cfff2b57faf887bb18c7c54c3814234688e1e4
parent1ef0199a1a698d82ecd39d11d1daa3f4ab006c75
x86/entry/64: Clean up and document espfix64 stack setup

The espfix64 setup code was a bit inscrutible and contained an
unnecessary push of RAX.  Remove that push, update all the stack
offsets to match, and document the whole mess.

Reported-By: Borislav Petkov <bp@alien8.de>
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: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/e5459eb10cf1175c8b36b840bc425f210d045f35.1473717910.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/entry/entry_64.S