Merge branch 'linus' into x86/mm to pick up fixes and to fix conflicts
authorIngo Molnar <mingo@kernel.org>
Sat, 26 Aug 2017 07:19:13 +0000 (09:19 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 26 Aug 2017 07:19:13 +0000 (09:19 +0200)
Conflicts:
arch/x86/kernel/head64.c
arch/x86/mm/mmap.c

Signed-off-by: Ingo Molnar <mingo@kernel.org>
20 files changed:
1  2 
arch/x86/Kconfig
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/elf.h
arch/x86/include/asm/io.h
arch/x86/include/asm/mmu_context.h
arch/x86/include/asm/processor.h
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/head64.c
arch/x86/kernel/ksysfs.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
arch/x86/mm/init.c
arch/x86/mm/mmap.c
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_init.c
include/linux/compiler-gcc.h
include/linux/compiler.h
include/linux/dma-mapping.h

Simple merge
Simple merge
Simple merge
Simple merge
index 14b3cdccf4f9074b9d0b5db32799eeb51072e511,265c907d7d4c9b8c69e24792a20c5a3dfb6c95ee..d25d9f4abb15a1e06e83e6e4ebac1ef9f2c70c04
@@@ -300,11 -292,8 +300,11 @@@ static inline unsigned long __get_curre
  {
        unsigned long cr3 = __pa(this_cpu_read(cpu_tlbstate.loaded_mm)->pgd);
  
 +      if (static_cpu_has(X86_FEATURE_PCID))
 +              cr3 |= this_cpu_read(cpu_tlbstate.loaded_mm_asid);
 +
        /* For now, be very restrictive about when this can be called. */
-       VM_WARN_ON(in_nmi() || !in_atomic());
+       VM_WARN_ON(in_nmi() || preemptible());
  
        VM_BUG_ON(cr3 != __read_cr3());
        return cr3;
Simple merge
Simple merge
Simple merge
index 925b2928f377935333d7b115e3662cfec3d016df,9ba79543d9ee9f1ee19bce38955467afa04b125f..6a193b93fd952d59b4bca8a2071859edf8bcfcb6
@@@ -99,11 -92,10 +100,13 @@@ unsigned long __head __startup_64(unsig
         * creates a bunch of nonsense entries but that is fine --
         * it avoids problems around wraparound.
         */
-       pud = fixup_pointer(early_dynamic_pgts[next_early_pgt++], physaddr);
-       pmd = fixup_pointer(early_dynamic_pgts[next_early_pgt++], physaddr);
 +
+       next_pgt_ptr = fixup_pointer(&next_early_pgt, physaddr);
+       pud = fixup_pointer(early_dynamic_pgts[(*next_pgt_ptr)++], physaddr);
+       pmd = fixup_pointer(early_dynamic_pgts[(*next_pgt_ptr)++], physaddr);
 +      pgtable_flags = _KERNPG_TABLE_NOENC + sme_get_me_mask();
 +
        if (IS_ENABLED(CONFIG_X86_5LEVEL)) {
                p4d = fixup_pointer(early_dynamic_pgts[next_early_pgt++], physaddr);
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index c15a50a70b24614bd5740d1d38e4279d8e921a21,a88cfbfbd0781a4d20c398d7ca1b30f50f05be43..a9967982684649155cfcdc921d5247c8fbfe70d6
@@@ -50,9 -50,8 +50,8 @@@ unsigned long task_size_64bit(int full_
  static unsigned long stack_maxrandom_size(unsigned long task_size)
  {
        unsigned long max = 0;
-       if ((current->flags & PF_RANDOMIZE) &&
-               !(current->personality & ADDR_NO_RANDOMIZE)) {
+       if (current->flags & PF_RANDOMIZE) {
 -              max = (-1UL) & __STACK_RND_MASK(task_size == tasksize_32bit());
 +              max = (-1UL) & __STACK_RND_MASK(task_size == task_size_32bit());
                max <<= PAGE_SHIFT;
        }
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge