Skip to content

INVERTv1 2

Andi Kleen historical-speck 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4INVERTv1 1arch/x86/include/asm/pgtable-invert.h+1 -12 replies
1/4INVERTv2 1arch/x86/include/asm/pgtable-invert.h+1 -10 replies
2/4INVERTv1 4arch/x86/include/asm/pgtable.h+12 -100 replies
2/4INVERTv2 4arch/x86/include/asm/pgtable.h+12 -100 replies
3/4INVERTv1 3arch/x86/mm/kmmio.c+13 -100 replies
3/4INVERTv2 3arch/x86/mm/kmmio.c+13 -103 replies
4/4INVERTv1 0arch/x86/mm/pageattr.c+4 -40 replies
4/4INVERTv2 0arch/x86/mm/pageattr.c+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [MODERATED] [PATCH 0/4] INVERTv1 2

Dave Hansen pointed out that set_memory_np didn't invert its non present PTEs. During another audit we found also a case in THP that didn't invert.

This patch kit fixes inversion for those kernel mappings.

Mostly it's interesting for guest kernels when it would allow bypassing EPT inside the same guest.

For production binary kernels without debug options only the first two patches are needed.

Andi Kleen (4):
x86/speculation/l1tf: Enable invertion for non PROTNONE !P maps x86/speculation/l1tf: Make pmd/pud_mknotpresent invert x86/speculation/l1tf: Make the mmio tracer invert x86/speculation/l1tf: Make set_memory_np invert

 arch/x86/include/asm/pgtable-invert.h |  2 +-
 arch/x86/include/asm/pgtable.h        | 22 ++++++++++++----------
 arch/x86/mm/kmmio.c                   | 23 +++++++++++++----------
 arch/x86/mm/pageattr.c                |  8 ++++----
 4 files changed, 30 insertions(+), 25 deletions(-)
Signature · 1 line
2.17.1