Skip to content

RFC Use global pages with PTI

Dave Hansen lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10x86/mm: factor out pageattr _PAGE_GLOBAL settingarch/x86/mm/pageattr.c+24 -440 replies
2/10x86/mm: undo double _PAGE_PSE clearingarch/x86/mm/pageattr.c+6 -30 replies
3/10x86/mm: introduce "default" kernel PTE maskarch/x86/include/asm/pgtable_types.h arch/x86/mm/init.c arch/x86/mm/init_32.c +1 more+32 -144 replies
4/10x86/espfix: use kernel-default PTE maskarch/x86/kernel/espfix_64.c+1 -14 replies
5/10x86/mm: do not auto-massage page protectionsarch/x86/include/asm/pgtable.h arch/x86/kernel/head64.c arch/x86/kernel/ldt.c +5 more+66 -122 replies
6/10x86/mm: remove extra filtering in pageattr codearch/x86/mm/pageattr.c+2 -40 replies
7/10x86/mm: comment _PAGE_GLOBAL mysteryarch/x86/kernel/head_64.S+10 -10 replies
8/10x86/mm: do not forbid _PAGE_RW before init for __ro_after_initarch/x86/mm/pageattr.c+4 -21 reply
9/10x86/pti: enable global pages for shared areasarch/x86/mm/cpu_entry_area.c arch/x86/mm/pti.c+17 -20 replies
10/10x86/pti: clear _PAGE_GLOBAL for kernel imagearch/x86/mm/init.c arch/x86/mm/pageattr.c arch/x86/mm/pti.c+36 -100 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchKees Cook
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10A-b
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC][PATCH 00/10] Use global pages with PTI

The later verions of the KAISER pathces (pre-PTI) allowed the user/kernel shared areas to be GLOBAL. The thought was that this would reduce the TLB overhead of keeping two copies of these mappings.

During the switch over to PTI, we seem to have lost our ability to have GLOBAL mappings. This adds them back.

Cc Andrea Arcangeli <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Kees Cook <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Juergen Gross <[email protected]>
Cc Nadav Amit <[email protected]>