]> git.hungrycats.org Git - linux/commit
x86/speculation/l1tf: Protect NUMA-balance entries against L1TF
authorBen Hutchings <ben@decadent.org.uk>
Sat, 29 Sep 2018 15:31:50 +0000 (16:31 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 3 Oct 2018 03:10:05 +0000 (04:10 +0100)
commita3129ae750bdf515e6bd437e08d2ad73dcb2476c
tree810ff82e06d9bbabd27d30dc9e479443537ab970
parent1fb3a36c0e333e2810c9aa4715c0e2080dad5a19
x86/speculation/l1tf: Protect NUMA-balance entries against L1TF

NUMA balancing has its own functions that manipulated the PRESENT flag
in PTEs and PMDs.  These were not affected by the changes in commit
6b28baca9b1f "x86/speculation/l1tf: Protect PROT_NONE PTEs against
speculation".

This is not a problem upstream because NUMA balancing was changed to
use {pte,pmd}_modify() in Linux 4.0.

Override the generic implementations for x86 with implementations
that do the same inversion as {pte,pmd}_modify().

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: x86@kernel.org
Cc: Mel Gorman <mgorman@suse.de>
arch/x86/include/asm/pgtable.h