]> git.baikalelectronics.ru Git - kernel.git/commit
x86/tboot: Unbreak tboot with PTI enabled
authorDave Hansen <dave.hansen@linux.intel.com>
Sat, 6 Jan 2018 17:41:14 +0000 (18:41 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 8 Jan 2018 16:29:18 +0000 (17:29 +0100)
commit9bbf05e0c9917d9636497b6ae2447a7661f9b553
treeea807ff4377f68fa4c1d66f7577895503e2c4869
parent5af28ebd3640d8d9e0bd6dd49a0d8a1536867db7
x86/tboot: Unbreak tboot with PTI enabled

This is another case similar to what EFI does: create a new set of
page tables, map some code at a low address, and jump to it.  PTI
mistakes this low address for userspace and mistakenly marks it
non-executable in an effort to make it unusable for userspace.

Undo the poison to allow execution.

Fixes: 8100adcfdf65 ("x86/mm/pti: Add Kconfig")
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Jon Masters <jcm@redhat.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Jeff Law <law@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@linux-foundation.org>
Cc: David" <dwmw@amazon.co.uk>
Cc: Nick Clifton <nickc@redhat.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20180108102805.GK25546@redhat.com
arch/x86/kernel/tboot.c