]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86/speculation/l1tf: Make pmd/pud_mknotpresent() invert
authorAndi Kleen <ak@linux.intel.com>
Tue, 7 Aug 2018 22:09:37 +0000 (15:09 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 9 Aug 2018 16:05:05 +0000 (18:05 +0200)
commitd76c928d8eb0372bc628b758b4233fc03f64706c
tree219e3d0d7d3b2120aad595b816624bfb53d598b2
parent1920d4a1d4ff27ebfd34a99eca67c3c470c8c524
x86/speculation/l1tf: Make pmd/pud_mknotpresent() invert

Some cases in THP like:
  - MADV_FREE
  - mprotect
  - split

mark the PMD non present for temporarily to prevent races. The window for
an L1TF attack in these contexts is very small, but it wants to be fixed
for correctness sake.

Use the proper low level functions for pmd/pud_mknotpresent() to address
this.

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/include/asm/pgtable.h