]> www.infradead.org Git - users/jedix/linux-maple.git/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)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 11 Aug 2018 00:44:53 +0000 (20:44 -0400)
commit857f82987961d0705292e7574c57f3e2c6739bcd
tree287988b2fcbd24a2db141027936ec17f05d6f760
parent91791f67a06f69767635a88712335aa328e377ba
x86/speculation/l1tf: Invert all not present mappings

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>
Orabug: 28220674
CVE: CVE-2018-3620

(cherry picked from commit f22cc87f6c1f771b57c407555cfefd811cdd9507)

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/include/asm/pgtable-invert.h