mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch V149 00/50] x86/pti: Updated and reshuffled patch queue
@ 2017-12-16 21:23 Thomas Gleixner
  2017-12-16 21:23 ` [patch V149 01/50] x86/mm/dump_pagetables: Check PAGE_PRESENT for real Thomas Gleixner
                   ` (49 more replies)
  0 siblings, 50 replies; 53+ messages in thread
From: Thomas Gleixner @ 2017-12-16 21:23 UTC (permalink / raw)
  To: LKML
  Cc: x86, Linus Torvalds, Andy Lutomirsky, Peter Zijlstra,
	Dave Hansen, Borislav Petkov, Greg KH, keescook, hughd,
	Brian Gerst, Josh Poimboeuf, Denys Vlasenko, Rik van Riel,
	Boris Ostrovsky, Juergen Gross, David Laight, Eduardo Valentin,
	aliguori, Will Deacon, daniel.gruss

I case someone wonders. V149 is my version number of the patch queue since
this whole endeavour started. Hillarious, isn't it? But alone this
reshuffling created 22 new versions because I do that very fine grained and
archive each step in case something goes wrong. Being able to do fine
grained comparisons and eventual rollbacks of such reorganisations has
proven useful in the past and this time as well. So its V149 today.

The following series is a reorganization of the PTI patches in

    git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/pti

Its currently based on

    git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/pti

which is the upstream merge branch, but I'm going to rebase it on the
WIP.x86/pti-base branch tomorrow.

It's also available from git:

    git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/pti-upstream

The changes vs. WIP.x86/pti are:

  - Reorganization of the patch queue

  - Moved Fixes, improvements etc. which do not depend on PTI to the head of the 
    queue. Those are mostly findings of existing issues which were unearthed in the
    PTI work, reviews and discussions.

  - A new fix for the page table debug dumper

  - Folded back all the delta fixes into the proper places

  - Integrated Andys LDT mapping mechanism because the VMA based solution, which
    I would prefer is still under discussion and too many things need to be
    sorted out.

  - Added the map LDT RO patch on top of it as a separate change.

Thanks,

	tglx
---
 Documentation/admin-guide/kernel-parameters.txt |    2 
 Documentation/x86/x86_64/mm.txt                 |   27 --
 arch/powerpc/include/asm/mmu_context.h          |    5 
 arch/x86/boot/compressed/pagetable.c            |    3 
 arch/x86/entry/calling.h                        |  145 +++++++++++
 arch/x86/entry/entry_32.S                       |   12 
 arch/x86/entry/entry_64.S                       |   52 +++
 arch/x86/entry/entry_64_compat.S                |   24 +
 arch/x86/entry/vsyscall/vsyscall_64.c           |   37 ++
 arch/x86/events/intel/ds.c                      |  119 +++++----
 arch/x86/events/perf_event.h                    |   23 -
 arch/x86/include/asm/cpufeatures.h              |    3 
 arch/x86/include/asm/desc.h                     |    2 
 arch/x86/include/asm/fixmap.h                   |   41 ++-
 arch/x86/include/asm/mmu.h                      |    4 
 arch/x86/include/asm/pgtable.h                  |   26 +
 arch/x86/include/asm/pgtable_64.h               |  126 +++++++++
 arch/x86/include/asm/pgtable_64_types.h         |    8 
 arch/x86/include/asm/processor-flags.h          |    5 
 arch/x86/include/asm/processor.h                |   29 +-
 arch/x86/include/asm/stacktrace.h               |    4 
 arch/x86/include/asm/tlbflush.h                 |  310 +++++++++++++++++------
 arch/x86/include/asm/vsyscall.h                 |    1 
 arch/x86/kernel/asm-offsets.c                   |    8 
 arch/x86/kernel/asm-offsets_32.c                |    2 
 arch/x86/kernel/cpu/common.c                    |   44 ++-
 arch/x86/kernel/cpu/microcode/intel.c           |   13 
 arch/x86/kernel/dumpstack.c                     |   10 
 arch/x86/kernel/dumpstack_32.c                  |    6 
 arch/x86/kernel/dumpstack_64.c                  |   12 
 arch/x86/kernel/head_64.S                       |   30 ++
 arch/x86/kernel/ldt.c                           |  191 ++++++++++++--
 arch/x86/kernel/vmlinux.lds.S                   |    8 
 arch/x86/mm/Makefile                            |    7 
 arch/x86/mm/debug_pagetables.c                  |   80 +++++-
 arch/x86/mm/dump_pagetables.c                   |   48 +++
 arch/x86/mm/init.c                              |   80 +++---
 arch/x86/mm/pgtable.c                           |   16 +
 arch/x86/mm/tlb.c                               |   64 ++++
 arch/x86/platform/uv/tlb_uv.c                   |    2 
 b/arch/um/include/asm/mmu_context.h             |    3 
 b/arch/unicore32/include/asm/mmu_context.h      |    5 
 b/arch/x86/include/asm/intel_ds.h               |   36 ++
 b/arch/x86/include/asm/invpcid.h                |   53 ++++
 b/arch/x86/include/asm/mmu_context.h            |  109 +++++---
 b/arch/x86/include/asm/pti.h                    |   14 +
 b/arch/x86/include/uapi/asm/processor-flags.h   |    7 
 b/arch/x86/mm/pti.c                             |  315 ++++++++++++++++++++++++
 b/include/linux/pti.h                           |   11 
 include/asm-generic/mm_hooks.h                  |    5 
 init/main.c                                     |   13 
 kernel/fork.c                                   |    3 
 security/Kconfig                                |   10 
 tools/testing/selftests/x86/ldt_gdt.c           |   12 
 54 files changed, 1837 insertions(+), 388 deletions(-)

^ permalink raw reply	[flat|nested] 53+ messages in thread

end of thread, other threads:[~2017-12-17 11:09 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-16 21:23 [patch V149 00/50] x86/pti: Updated and reshuffled patch queue Thomas Gleixner
2017-12-16 21:23 ` [patch V149 01/50] x86/mm/dump_pagetables: Check PAGE_PRESENT for real Thomas Gleixner
2017-12-16 21:23 ` [patch V149 02/50] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy Thomas Gleixner
2017-12-16 21:23 ` [patch V149 03/50] x86/vsyscall/64: Warn and fail vsyscall emulation in NATIVE mode Thomas Gleixner
2017-12-16 21:23 ` [patch V149 04/50] arch: Allow arch_dup_mmap() to fail Thomas Gleixner
2017-12-16 21:23 ` [patch V149 05/50] x86/ldt: Rework locking Thomas Gleixner
2017-12-16 21:24 ` [patch V149 06/50] x86/ldt: Prevent ldt inheritance on exec Thomas Gleixner
2017-12-16 21:24 ` [patch V149 07/50] x86/mm/64: Improve the memory map documentation Thomas Gleixner
2017-12-16 21:24 ` [patch V149 08/50] x86/doc: Remove obvious weirdness Thomas Gleixner
2017-12-16 21:24 ` [patch V149 09/50] x86/entry: Remove SYSENTER_stack naming Thomas Gleixner
2017-12-16 21:24 ` [patch V149 10/50] x86/uv: Use the right tlbflush API Thomas Gleixner
2017-12-16 21:24 ` [patch V149 11/50] x86/microcode: Dont abuse the tlbflush interface Thomas Gleixner
2017-12-16 21:24 ` [patch V149 12/50] x86/mm: Use __flush_tlb_one() for kernel memory Thomas Gleixner
2017-12-16 21:24 ` [patch V149 13/50] x86/mm: Remove superfluous barriers Thomas Gleixner
2017-12-16 21:24 ` [patch V149 14/50] x86/mm: Clarify which functions are supposed to flush what Thomas Gleixner
2017-12-16 21:24 ` [patch V149 15/50] x86/mm: Move the CR3 construction functions to tlbflush.h Thomas Gleixner
2017-12-16 21:24 ` [patch V149 16/50] x86/mm: Remove hard-coded ASID limit checks Thomas Gleixner
2017-12-16 21:24 ` [patch V149 17/50] x86/mm: Put MMU to hardware ASID translation in one place Thomas Gleixner
2017-12-16 21:24 ` [patch V149 18/50] x86/mm: Create asm/invpcid.h Thomas Gleixner
2017-12-16 21:24 ` [patch V149 19/50] x86/cpufeatures: Add X86_BUG_CPU_INSECURE Thomas Gleixner
2017-12-16 21:24 ` [patch V149 20/50] x86/mm/pti: Disable global pages if PAGE_TABLE_ISOLATION=y Thomas Gleixner
2017-12-16 21:24 ` [patch V149 21/50] x86/mm/pti: Prepare the x86/entry assembly code for entry/exit CR3 switching Thomas Gleixner
2017-12-16 21:24 ` [patch V149 22/50] x86/mm/pti: Add infrastructure for page table isolation Thomas Gleixner
2017-12-16 21:24 ` [patch V149 23/50] x86/mm/pti: Add mapping helper functions Thomas Gleixner
2017-12-16 21:24 ` [patch V149 24/50] x86/mm/pti: Allow NX poison to be set in p4d/pgd Thomas Gleixner
2017-12-16 21:24 ` [patch V149 25/50] x86/mm/pti: Allocate a separate user PGD Thomas Gleixner
2017-12-16 21:24 ` [patch V149 26/50] x86/mm/pti: Populate " Thomas Gleixner
2017-12-16 21:24 ` [patch V149 27/50] x86/mm/pti: Add functions to clone kernel PMDs Thomas Gleixner
2017-12-16 21:24 ` [patch V149 28/50] x86/mm/pti: Force entry through trampoline when PTI active Thomas Gleixner
2017-12-16 21:24 ` [patch V149 29/50] x86/fixmap: Move the CPU entry area into a separate PMD Thomas Gleixner
2017-12-16 21:24 ` [patch V149 30/50] x86/mm/pti: Share cpu_entry_area PMDs Thomas Gleixner
2017-12-16 21:24 ` [patch V149 31/50] x86/entry: Align entry text section to PMD boundary Thomas Gleixner
2017-12-16 21:24 ` [patch V149 32/50] x86/mm/pti: Share entry text PMD Thomas Gleixner
2017-12-16 21:24 ` [patch V149 33/50] x86/mm/pti: Map ESPFIX into user space Thomas Gleixner
2017-12-16 21:24 ` [patch V149 34/50] x86/fixmap: Move IDT fixmap into the cpu_entry_area range Thomas Gleixner
2017-12-16 21:24 ` [patch V149 35/50] x86/fixmap: Add debugstore entries to cpu_entry_area Thomas Gleixner
2017-12-16 21:24 ` [patch V149 36/50] x86/events/intel/ds: Map debug buffers in fixmap Thomas Gleixner
2017-12-16 21:24 ` [patch V149 37/50] x86/mm/64: Make a full PGD-entry size hole in the memory map Thomas Gleixner
2017-12-17 11:07   ` Kirill A. Shutemov
2017-12-16 21:24 ` [patch V149 38/50] x86/pti: Put the LDT in its own PGD if PTI is on Thomas Gleixner
2017-12-17 11:09   ` Kirill A. Shutemov
2017-12-16 21:24 ` [patch V149 39/50] x86/pti: Map the vsyscall page if needed Thomas Gleixner
2017-12-16 21:24 ` [patch V149 40/50] x86/mm: Allow flushing for future ASID switches Thomas Gleixner
2017-12-16 21:24 ` [patch V149 41/50] x86/mm: Abstract switching CR3 Thomas Gleixner
2017-12-16 21:24 ` [patch V149 42/50] x86/mm: Use/Fix PCID to optimize user/kernel switches Thomas Gleixner
2017-12-16 21:24 ` [patch V149 43/50] x86/mm: Optimize RESTORE_CR3 Thomas Gleixner
2017-12-16 21:24 ` [patch V149 44/50] x86/mm: Use INVPCID for __native_flush_tlb_single() Thomas Gleixner
2017-12-16 21:24 ` [patch V149 45/50] x86/mm: Clarify the whole ASID/kernel PCID/user PCID naming Thomas Gleixner
2017-12-16 21:24 ` [patch V149 46/50] x86/mm/pti: Add Kconfig Thomas Gleixner
2017-12-16 21:24 ` [patch V149 47/50] x86/mm/dump_pagetables: Add page table directory Thomas Gleixner
2017-12-16 21:24 ` [patch V149 48/50] x86/mm/dump_pagetables: Check user space page table for WX pages Thomas Gleixner
2017-12-16 21:24 ` [patch V149 49/50] x86/mm/dump_pagetables: Allow dumping current pagetables Thomas Gleixner
2017-12-16 21:24 ` [patch V149 50/50] x86/ldt: Make the LDT mapping RO Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome