From: Joerg Roedel Date: Wed, 18 Jul 2018 09:41:14 +0000 (+0200) Subject: x86/pti: Allow CONFIG_PAGE_TABLE_ISOLATION for x86_32 X-Git-Tag: Ubuntu-4.15.0-48.51~72 X-Git-Url: https://git.proxmox.com/?p=mirror_ubuntu-bionic-kernel.git;a=commitdiff_plain;h=d653420532d580156c8486686899ea6a9eeb7bf0 x86/pti: Allow CONFIG_PAGE_TABLE_ISOLATION for x86_32 CVE-2017-5754 Allow PTI to be compiled on x86_32. Signed-off-by: Joerg Roedel Signed-off-by: Thomas Gleixner Tested-by: Pavel Machek Cc: "H . Peter Anvin" Cc: linux-mm@kvack.org Cc: Linus Torvalds Cc: Andy Lutomirski Cc: Dave Hansen Cc: Josh Poimboeuf Cc: Juergen Gross Cc: Peter Zijlstra Cc: Borislav Petkov Cc: Jiri Kosina Cc: Boris Ostrovsky Cc: Brian Gerst Cc: David Laight Cc: Denys Vlasenko Cc: Eduardo Valentin Cc: Greg KH Cc: Will Deacon Cc: aliguori@amazon.com Cc: daniel.gruss@iaik.tugraz.at Cc: hughd@google.com Cc: keescook@google.com Cc: Andrea Arcangeli Cc: Waiman Long Cc: "David H . Gutteridge" Cc: joro@8bytes.org Link: https://lkml.kernel.org/r/1531906876-13451-38-git-send-email-joro@8bytes.org (backported from commit 7757d607c6b31867777de42e1fb0210b9c5d8b70) [juergh: Require PAE for 32-bit PTI (from commit 61a6bd83abf2).] Signed-off-by: Juerg Haefliger Acked-by: Stefan Bader Acked-by: Tyler Hicks Signed-off-by: Khalid Elmously --- diff --git a/security/Kconfig b/security/Kconfig index 16803be979b2..ffe994d38c23 100644 --- a/security/Kconfig +++ b/security/Kconfig @@ -99,7 +99,7 @@ config SECURITY_NETWORK config PAGE_TABLE_ISOLATION bool "Remove the kernel mapping in user mode" default y - depends on X86_64 && !UML + depends on (X86_64 || X86_PAE) && !UML help This feature reduces the number of hardware side channels by ensuring that the majority of kernel addresses are not mapped