]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
x86/entry/64: Remove the restore_c_regs_and_iret label
authorAndy Lutomirski <luto@kernel.org>
Thu, 2 Nov 2017 07:58:58 +0000 (00:58 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Sat, 6 Jan 2018 12:22:47 +0000 (13:22 +0100)
commit629c8b858cbe72e88e7f44a8f10e1b434ab80721
tree04081d24dc2d72def7e025aae12c40d7a769dd3d
parent20ddf08f867d3d96788299cd2fb7676590d64250
x86/entry/64: Remove the restore_c_regs_and_iret label

CVE-2017-5754

The only user was the 64-bit opportunistic SYSRET failure path, and
that path didn't really need it.  This change makes the
opportunistic SYSRET code a bit more straightforward and gets rid of
the label.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Cc: Borislav Petkov <bpetkov@suse.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dave Hansen <dave.hansen@intel.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/be3006a7ad3326e3458cf1cc55d416252cbe1986.1509609304.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(cherry picked from commit 9da78ba6b47b46428cfdfc0851511ab29c869798)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/x86/entry/entry_64.S