x86/tlb: Unexport per-CPU tlbstate
Status from this message: The following commit has been merged into the x86/mm branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest16 patches 1 replyApplied
- v115 patches 18 repliesSuperseded
Changes in v2 from the cover letter
- Reduced the number of exports by uninlining __flush_tlb_all() (Christoph)
- Addressed fallout reported by 0-day
- Picked up acks/reviewed tags
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | x86/tlb: Uninline __get_current_cr3_fast()arch/ arch/ | +21 | 1 reply | |
| 2/16 | x86/cpu: Uninline CR4 accessorsarch/ arch/ arch/ | +40 | 0 replies | |
| 3/16 | x86/cr4: Sanitize CR4.PCE updatearch/ arch/ arch/ | +25 | 0 replies | |
| 4/16 | x86/alternatives: Move temporary_mm helpers into Carch/ arch/ | +55 | 0 replies | |
| 5/16 | x86/tlb: Move __flush_tlb() out of linearch/ arch/ arch/ +4 more | +45 | 0 replies | |
| 6/16 | x86/tlb: Move __flush_tlb_global() out of linearch/ arch/ arch/ +1 more | +44 | 0 replies | |
| 7/16 | x86/tlb: Move __flush_tlb_one_user() out of linearch/ arch/ arch/ +2 more | +59 | 0 replies | |
| 8/16 | x86/tlb: Move __flush_tlb_one_kernel() out of linearch/ arch/ arch/ +5 more | +40 | 0 replies | |
| 9/16 | x86/tlb: Move flush_tlb_others() out of linearch/ arch/ arch/ | +17 | 0 replies | |
| 10/16 | x86/tlb: Move __flush_tlb_all() out of linearch/ arch/ | +23 | 0 replies | |
| 11/16 | x86/tlb: Move paravirt_tlb_remove_table() to the usage sitearch/ arch/ | +8 | 0 replies | |
| 12/16 | x86/tlb: Move cr4_set_bits_and_update_boot() to the usage sitearch/ arch/ | +13 | 0 replies | |
| 13/16 | x86/tlb: Uninline nmi_uaccess_okay()arch/ arch/ | +33 | 0 replies | |
| 14/16 | x86/tlb: Move PCID helpers where they are usedarch/ arch/ | +126 | 0 replies | |
| 15/16 | xen/privcmd: Remove unneeded asm/tlb.h includedrivers/ | +0 | 0 replies | |
| 16/16 | x86/tlb: Restrict access to tlbstatearch/ arch/ | +49 | 0 replies |
Reviews trailers per patch
15 of 16 patches have a Reviewed-by or Acked-by.
| Patch | Alexandre Chartre | Peter Zijlstra (Intel) | Andy Lutomirski |
|---|---|---|---|
| 1/16 | R-b | A-b | A-b |
| 2/16 | R-b | A-b | |
| 3/16 | R-b | A-b | |
| 4/16 | R-b | A-b | |
| 5/16 | R-b | A-b | |
| 6/16 | R-b | A-b | |
| 7/16 | R-b | A-b | |
| 8/16 | R-b | A-b | |
| 9/16 | R-b | A-b | |
| 10/16 | |||
| 11/16 | R-b | A-b | |
| 12/16 | R-b | A-b | |
| 13/16 | R-b | A-b | |
| 14/16 | R-b | A-b | |
| 15/16 | R-b | A-b | |
| 16/16 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [patch V2 00/16] x86/tlb: Unexport per-CPU tlbstate
The per-CPU tlbstate contains sensitive information which should be really only accessible in core code. It is exported to modules because some inline functions which are required by KVM need access to it.
The first version can be found here:
https://lore.kernel.org/r/[email protected]
Changes vs. V1:
- Reduced the number of exports by uninlining __flush_tlb_all() (Christoph)
- Addressed fallout reported by 0-day
- Picked up acks/reviewed tags
I left the LKDTM part alone for now and decided to keep the __flush_tlb_all() export for SVM as moving that errata handling to builtin code would required two exports in turn.
The series is also available from git:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel x86/tlb
Thanks,
tglx
8<-----------------
arch/x86/events/core.c | 11 arch/x86/include/asm/mmu_context.h | 88 ------- arch/x86/include/asm/paravirt.h | 12 - arch/x86/include/asm/pgtable_32.h | 2 arch/x86/include/asm/tlbflush.h | 441 +++---------------------------------- arch/x86/kernel/alternative.c | 55 ++++ arch/x86/kernel/cpu/common.c | 25 ++ arch/x86/kernel/cpu/mtrr/generic.c | 4 arch/x86/kernel/paravirt.c | 21 - arch/x86/kernel/process.c | 11 arch/x86/mm/init.c | 14 + arch/x86/mm/init_64.c | 2 arch/x86/mm/ioremap.c | 2 arch/x86/mm/kmmio.c | 2 arch/x86/mm/mem_encrypt.c | 2 arch/x86/mm/pat/set_memory.c | 2 arch/x86/mm/pgtable.c | 8 arch/x86/mm/pgtable_32.c | 2 arch/x86/mm/tlb.c | 384 +++++++++++++++++++++++++++++++- arch/x86/platform/uv/tlb_uv.c | 4 drivers/xen/privcmd.c | 1 21 files changed, 556 insertions(+), 537 deletions(-)