]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86/mm/pat: Make set_memory_np() L1TF safe
authorAndi Kleen <ak@linux.intel.com>
Tue, 7 Aug 2018 22:09:39 +0000 (15:09 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 9 Aug 2018 16:05:06 +0000 (18:05 +0200)
commit368bbd5d1d7ca06391b0c23c09f8c1bfc1d60edc
treef9acaeb7bf88f309d38c4788980a631e6999e178
parentd76c928d8eb0372bc628b758b4233fc03f64706c
x86/mm/pat: Make set_memory_np() L1TF safe

set_memory_np() is used to mark kernel mappings not present, but it has
it's own open coded mechanism which does not have the L1TF protection of
inverting the address bits.

Replace the open coded PTE manipulation with the L1TF protecting low level
PTE routines.

Passes the CPA self test.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
CVE-2018-3620
CVE-2018-3646

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/x86/mm/pageattr.c