]> git.hungrycats.org Git - linux/commit
x86/speculation/l1tf: Invert all not present mappings
authorAndi Kleen <ak@linux.intel.com>
Tue, 7 Aug 2018 22:09:36 +0000 (15:09 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 3 Oct 2018 03:10:05 +0000 (04:10 +0100)
commit13948a9f275c7d945589737c6f29241b97930630
treea031da0c830236e570c401be7b5a0d3d7302aec8
parentb3dc998f1ca71c91f0b0e077a360405f0550a511
x86/speculation/l1tf: Invert all not present mappings

commit f22cc87f6c1f771b57c407555cfefd811cdd9507 upstream.

For kernel mappings PAGE_PROTNONE is not necessarily set for a non present
mapping, but the inversion logic explicitely checks for !PRESENT and
PROT_NONE.

Remove the PROT_NONE check and make the inversion unconditional for all not
present mappings.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/include/asm/pgtable-invert.h