]> Git Repo - J-linux.git/commitdiff
Merge branch 'akpm' (patches from Andrew)
authorLinus Torvalds <[email protected]>
Wed, 17 Jul 2019 15:58:04 +0000 (08:58 -0700)
committerLinus Torvalds <[email protected]>
Wed, 17 Jul 2019 15:58:04 +0000 (08:58 -0700)
Merge more updates from Andrew Morton:
 "VM:
   - z3fold fixes and enhancements by Henry Burns and Vitaly Wool

   - more accurate reclaimed slab caches calculations by Yafang Shao

   - fix MAP_UNINITIALIZED UAPI symbol to not depend on config, by
     Christoph Hellwig

   - !CONFIG_MMU fixes by Christoph Hellwig

   - new novmcoredd parameter to omit device dumps from vmcore, by
     Kairui Song

   - new test_meminit module for testing heap and pagealloc
     initialization, by Alexander Potapenko

   - ioremap improvements for huge mappings, by Anshuman Khandual

   - generalize kprobe page fault handling, by Anshuman Khandual

   - device-dax hotplug fixes and improvements, by Pavel Tatashin

   - enable synchronous DAX fault on powerpc, by Aneesh Kumar K.V

   - add pte_devmap() support for arm64, by Robin Murphy

   - unify locked_vm accounting with a helper, by Daniel Jordan

   - several misc fixes

  core/lib:
   - new typeof_member() macro including some users, by Alexey Dobriyan

   - make BIT() and GENMASK() available in asm, by Masahiro Yamada

   - changed LIST_POISON2 on x86_64 to 0xdead000000000122 for better
     code generation, by Alexey Dobriyan

   - rbtree code size optimizations, by Michel Lespinasse

   - convert struct pid count to refcount_t, by Joel Fernandes

  get_maintainer.pl:
   - add --no-moderated switch to skip moderated ML's, by Joe Perches

  misc:
   - ptrace PTRACE_GET_SYSCALL_INFO interface

   - coda updates

   - gdb scripts, various"

[ Using merge message suggestion from Vlastimil Babka, with some editing - Linus ]

* emailed patches from Andrew Morton <[email protected]>: (100 commits)
  fs/select.c: use struct_size() in kmalloc()
  mm: add account_locked_vm utility function
  arm64: mm: implement pte_devmap support
  mm: introduce ARCH_HAS_PTE_DEVMAP
  mm: clean up is_device_*_page() definitions
  mm/mmap: move common defines to mman-common.h
  mm: move MAP_SYNC to asm-generic/mman-common.h
  device-dax: "Hotremove" persistent memory that is used like normal RAM
  mm/hotplug: make remove_memory() interface usable
  device-dax: fix memory and resource leak if hotplug fails
  include/linux/lz4.h: fix spelling and copy-paste errors in documentation
  ipc/mqueue.c: only perform resource calculation if user valid
  include/asm-generic/bug.h: fix "cut here" for WARN_ON for __WARN_TAINT architectures
  scripts/gdb: add helpers to find and list devices
  scripts/gdb: add lx-genpd-summary command
  drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl
  kernel/pid.c: convert struct pid count to refcount_t
  drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings
  select: shift restore_saved_sigmask_unless() into poll_select_copy_remaining()
  select: change do_poll() to return -ERESTARTNOHAND rather than -EINTR
  ...

1  2 
Documentation/admin-guide/kernel-parameters.txt
arch/arm64/Kconfig
arch/x86/Kconfig
fs/proc/Kconfig
init/Kconfig
lib/Kconfig.debug

index 34a363f91b468c9e588d132672308c433279bbd3,bf8221abfe0aaa77d2ec52a4819c34ab8874d5a9..a5f4004e8705ec5286ca61474b9d29cf37470180
  
        blkdevparts=    Manual partition parsing of block device(s) for
                        embedded devices based on command line input.
 -                      See Documentation/block/cmdline-partition.txt
 +                      See Documentation/block/cmdline-partition.rst
  
        boot_delay=     Milliseconds to delay each printk during boot.
                        Values larger than 10 seconds (10000) are changed to
                        [KNL, x86_64] select a region under 4G first, and
                        fall back to reserve region above 4G when '@offset'
                        hasn't been specified.
 -                      See Documentation/kdump/kdump.rst for further details.
 +                      See Documentation/admin-guide/kdump/kdump.rst for further details.
  
        crashkernel=range1:size1[,range2:size2,...][@offset]
                        [KNL] Same as above, but depends on the memory
                        in the running system. The syntax of range is
                        start-[end] where start and end are both
                        a memory unit (amount[KMG]). See also
 -                      Documentation/kdump/kdump.rst for an example.
 +                      Documentation/admin-guide/kdump/kdump.rst for an example.
  
        crashkernel=size[KMG],high
                        [KNL, x86_64] range could be above 4G. Allow kernel
                        edid/1680x1050.bin, or edid/1920x1080.bin is given
                        and no file with the same name exists. Details and
                        instructions how to build your own EDID data are
 -                      available in Documentation/EDID/howto.rst. An EDID
 +                      available in Documentation/driver-api/edid.rst. An EDID
                        data set will only be used for a particular connector,
                        if its name and a colon are prepended to the EDID
                        name. Each connector may use a unique EDID data
  
        elevator=       [IOSCHED]
                        Format: { "mq-deadline" | "kyber" | "bfq" }
 -                      See Documentation/block/deadline-iosched.txt,
 -                      Documentation/block/kyber-iosched.txt and
 -                      Documentation/block/bfq-iosched.txt for details.
 +                      See Documentation/block/deadline-iosched.rst,
 +                      Documentation/block/kyber-iosched.rst and
 +                      Documentation/block/bfq-iosched.rst for details.
  
        elfcorehdr=[size[KMG]@]offset[KMG] [IA64,PPC,SH,X86,S390]
                        Specifies physical address of start of kernel core
                        image elf header and optionally the size. Generally
                        kexec loader will pass this option to capture kernel.
 -                      See Documentation/kdump/kdump.rst for details.
 +                      See Documentation/admin-guide/kdump/kdump.rst for details.
  
        enable_mtrr_cleanup [X86]
                        The kernel tries to adjust MTRR layout from continuous
                        See also Documentation/fault-injection/.
  
        floppy=         [HW]
 -                      See Documentation/blockdev/floppy.txt.
 +                      See Documentation/admin-guide/blockdev/floppy.rst.
  
        force_pal_cache_flush
                        [IA-64] Avoid check_sal_cache_flush which may hang on
        memblock=debug  [KNL] Enable memblock debug messages.
  
        load_ramdisk=   [RAM] List of ramdisks to load from floppy
 -                      See Documentation/blockdev/ramdisk.txt.
 +                      See Documentation/admin-guide/blockdev/ramdisk.rst.
  
        lockd.nlm_grace_period=P  [NFS] Assign grace period.
                        Format: <integer>
                        /sys/module/printk/parameters/console_suspend) to
                        turn on/off it dynamically.
  
+       novmcoredd      [KNL,KDUMP]
+                       Disable device dump. Device dump allows drivers to
+                       append dump data to vmcore so you can collect driver
+                       specified debug info.  Drivers can append the data
+                       without any limit and this data is stored in memory,
+                       so this may cause significant memory stress.  Disabling
+                       device dump can help save memory but the driver debug
+                       data will be no longer available.  This parameter
+                       is only available when CONFIG_PROC_VMCORE_DEVICE_DUMP
+                       is set.
        noaliencache    [MM, NUMA, SLAB] Disables the allocation of alien
                        caches in the slab allocator.  Saves per-node memory,
                        but will impact performance.
        numa_zonelist_order= [KNL, BOOT] Select zonelist order for NUMA.
                        'node', 'default' can be specified
                        This can be set from sysctl after boot.
 -                      See Documentation/sysctl/vm.txt for details.
 +                      See Documentation/admin-guide/sysctl/vm.rst for details.
  
        ohci1394_dma=early      [HW] enable debugging via the ohci1394 driver.
                        See Documentation/debugging-via-ohci1394.txt for more
  
        pcd.            [PARIDE]
                        See header of drivers/block/paride/pcd.c.
 -                      See also Documentation/blockdev/paride.txt.
 +                      See also Documentation/admin-guide/blockdev/paride.rst.
  
        pci=option[,option...]  [PCI] various PCI subsystem options.
  
                        needed on a platform with proper driver support.
  
        pd.             [PARIDE]
 -                      See Documentation/blockdev/paride.txt.
 +                      See Documentation/admin-guide/blockdev/paride.rst.
  
        pdcchassis=     [PARISC,HW] Disable/Enable PDC Chassis Status codes at
                        boot time.
                        and performance comparison.
  
        pf.             [PARIDE]
 -                      See Documentation/blockdev/paride.txt.
 +                      See Documentation/admin-guide/blockdev/paride.rst.
  
        pg.             [PARIDE]
 -                      See Documentation/blockdev/paride.txt.
 +                      See Documentation/admin-guide/blockdev/paride.rst.
  
        pirq=           [SMP,APIC] Manual mp-table setup
                        See Documentation/x86/i386/IO-APIC.rst.
  
        prompt_ramdisk= [RAM] List of RAM disks to prompt for floppy disk
                        before loading.
 -                      See Documentation/blockdev/ramdisk.txt.
 +                      See Documentation/admin-guide/blockdev/ramdisk.rst.
  
        psi=            [KNL] Enable or disable pressure stall information
                        tracking.
        pstore.backend= Specify the name of the pstore backend to use
  
        pt.             [PARIDE]
 -                      See Documentation/blockdev/paride.txt.
 +                      See Documentation/admin-guide/blockdev/paride.rst.
  
        pti=            [X86_64] Control Page Table Isolation of user and
                        kernel address spaces.  Disabling this feature
                        See Documentation/admin-guide/md.rst.
  
        ramdisk_size=   [RAM] Sizes of RAM disks in kilobytes
 -                      See Documentation/blockdev/ramdisk.txt.
 +                      See Documentation/admin-guide/blockdev/ramdisk.rst.
  
        random.trust_cpu={on,off}
                        [KNL] Enable or disable trusting the use of the
  
        relax_domain_level=
                        [KNL, SMP] Set scheduler's default relax_domain_level.
 -                      See Documentation/cgroup-v1/cpusets.rst.
 +                      See Documentation/admin-guide/cgroup-v1/cpusets.rst.
  
        reserve=        [KNL,BUGS] Force kernel to ignore I/O ports or memory
                        Format: <base1>,<size1>[,<base2>,<size2>,...]
                        Format: <integer>
  
        sonypi.*=       [HW] Sony Programmable I/O Control Device driver
 -                      See Documentation/laptops/sonypi.txt
 +                      See Documentation/admin-guide/laptops/sonypi.rst
  
        spectre_v2=     [X86] Control mitigation of Spectre variant 2
                        (indirect branch speculation) vulnerability.
        swapaccount=[0|1]
                        [KNL] Enable accounting of swap in memory resource
                        controller if no parameter or 1 is given or disable
 -                      it if 0 is given (See Documentation/cgroup-v1/memory.rst)
 +                      it if 0 is given (See Documentation/admin-guide/cgroup-v1/memory.rst)
  
        swiotlb=        [ARM,IA-64,PPC,MIPS,X86]
                        Format: { <int> | force | noforce }
  
        vga=            [BOOT,X86-32] Select a particular video mode
                        See Documentation/x86/boot.rst and
 -                      Documentation/svga.txt.
 +                      Documentation/admin-guide/svga.rst.
                        Use vga=ask for menu.
                        This is actually a boot loader parameter; the value is
                        passed to the kernel using a special protocol.
diff --combined arch/arm64/Kconfig
index 86f81b5afd95515ed99403c27ed78e0173d22953,0758d89524d026277be1485b0a13e41cc858712e..e1ea69994e0f61fdb417b0a700e9fc46c1e7f5e6
@@@ -24,6 -24,7 +24,7 @@@ config ARM6
        select ARCH_HAS_KCOV
        select ARCH_HAS_KEEPINITRD
        select ARCH_HAS_MEMBARRIER_SYNC_CORE
+       select ARCH_HAS_PTE_DEVMAP
        select ARCH_HAS_PTE_SPECIAL
        select ARCH_HAS_SETUP_DMA_OPS
        select ARCH_HAS_SET_DIRECT_MAP
@@@ -996,7 -997,7 +997,7 @@@ config CRASH_DUM
          reserved region and then later executed after a crash by
          kdump/kexec.
  
 -        For more details see Documentation/kdump/kdump.rst
 +        For more details see Documentation/admin-guide/kdump/kdump.rst
  
  config XEN_DOM0
        def_bool y
@@@ -1142,7 -1143,7 +1143,7 @@@ config KUSER_HELPER
          the system. This permits binaries to be run on ARMv4 through
          to ARMv8 without modification.
  
 -        See Documentation/arm/kernel_user_helpers.txt for details.
 +        See Documentation/arm/kernel_user_helpers.rst for details.
  
          However, the fixed address nature of these helpers can be used
          by ROP (return orientated programming) authors when creating
diff --combined arch/x86/Kconfig
index 57d3b5d96bd296106f15ae8bd8419c3d4a649a1c,4a55bd01e918c8305e7503bf2bd60c1fc0cd1a71..1342654e8057d498db24a31258e1f8b68c5a0526
@@@ -70,6 -70,7 +70,7 @@@ config X8
        select ARCH_HAS_KCOV                    if X86_64
        select ARCH_HAS_MEMBARRIER_SYNC_CORE
        select ARCH_HAS_PMEM_API                if X86_64
+       select ARCH_HAS_PTE_DEVMAP              if X86_64
        select ARCH_HAS_PTE_SPECIAL
        select ARCH_HAS_REFCOUNT
        select ARCH_HAS_UACCESS_FLUSHCACHE      if X86_64
@@@ -80,7 -81,6 +81,6 @@@
        select ARCH_HAS_STRICT_MODULE_RWX
        select ARCH_HAS_SYNC_CORE_BEFORE_USERMODE
        select ARCH_HAS_UBSAN_SANITIZE_ALL
-       select ARCH_HAS_ZONE_DEVICE             if X86_64
        select ARCH_HAVE_NMI_SAFE_CMPXCHG
        select ARCH_MIGHT_HAVE_ACPI_PDC         if ACPI
        select ARCH_MIGHT_HAVE_PC_PARPORT
@@@ -402,7 -402,7 +402,7 @@@ config SM
          Management" code will be disabled if you say Y here.
  
          See also <file:Documentation/x86/i386/IO-APIC.rst>,
 -        <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO available at
 +        <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO available at
          <http://www.tldp.org/docs.html#howto>.
  
          If you don't know what to do here, say N.
@@@ -1959,7 -1959,7 +1959,7 @@@ config EFI_STU
            This kernel feature allows a bzImage to be loaded directly
          by EFI firmware without the use of a bootloader.
  
 -        See Documentation/efi-stub.txt for more information.
 +        See Documentation/admin-guide/efi-stub.rst for more information.
  
  config EFI_MIXED
        bool "EFI mixed-mode support"
@@@ -2057,7 -2057,7 +2057,7 @@@ config CRASH_DUM
          to a memory address not used by the main kernel or BIOS using
          PHYSICAL_START, or it must be built as a relocatable image
          (CONFIG_RELOCATABLE=y).
 -        For more details see Documentation/kdump/kdump.rst
 +        For more details see Documentation/admin-guide/kdump/kdump.rst
  
  config KEXEC_JUMP
        bool "kexec jump"
@@@ -2094,7 -2094,7 +2094,7 @@@ config PHYSICAL_STAR
          the reserved region.  In other words, it can be set based on
          the "X" value as specified in the "crashkernel=YM@XM"
          command line boot parameter passed to the panic-ed
 -        kernel. Please take a look at Documentation/kdump/kdump.rst
 +        kernel. Please take a look at Documentation/admin-guide/kdump/kdump.rst
          for more details about crash dumps.
  
          Usage of bzImage for capturing the crash dump is recommended as
diff --combined fs/proc/Kconfig
index 47d2651fd9dc4cea6a1a8407ebb98c8c3582cd92,cba429db95d940e3641d3981064622e90a6475e9..cb5629bd5fffe6e733b5f88935d2f48dd0d75e1f
@@@ -58,7 -58,8 +58,8 @@@ config PROC_VMCORE_DEVICE_DUM
          snapshot.
  
          If you say Y here, the collected device dumps will be added
-         as ELF notes to /proc/vmcore.
+         as ELF notes to /proc/vmcore. You can still disable device
+         dump using the kernel command line option 'novmcoredd'.
  
  config PROC_SYSCTL
        bool "Sysctl support (/proc/sys)" if EXPERT
@@@ -72,7 -73,7 +73,7 @@@
          interface is through /proc/sys.  If you say Y here a tree of
          modifiable sysctl entries will be generated beneath the
            /proc/sys directory. They are explained in the files
 -        in <file:Documentation/sysctl/>.  Note that enabling this
 +        in <file:Documentation/admin-guide/sysctl/>.  Note that enabling this
          option will enlarge the kernel by at least 8 KB.
  
          As it is generally a good thing, you should say Y here unless
diff --combined init/Kconfig
index 381cdfee6e0e60652f5be36846a7c3fbeb92fa41,99da78db044059a8792629baa2f7c398ecb9d4a9..bd7d650d4a996c7c10d2349a340f52c1f99c1e49
@@@ -550,7 -550,7 +550,7 @@@ config PS
          have cpu.pressure, memory.pressure, and io.pressure files,
          which aggregate pressure stalls for the grouped tasks only.
  
 -        For more details see Documentation/accounting/psi.txt.
 +        For more details see Documentation/accounting/psi.rst.
  
          Say N if unsure.
  
@@@ -821,7 -821,7 +821,7 @@@ menuconfig CGROUP
          controls or device isolation.
          See
                - Documentation/scheduler/sched-design-CFS.rst  (CFS)
 -              - Documentation/cgroup-v1/ (features for grouping, isolation
 +              - Documentation/admin-guide/cgroup-v1/ (features for grouping, isolation
                                          and resource control)
  
          Say N if unsure.
@@@ -883,7 -883,7 +883,7 @@@ config BLK_CGROU
        CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
        CONFIG_BLK_DEV_THROTTLING=y.
  
 -      See Documentation/cgroup-v1/blkio-controller.rst for more information.
 +      See Documentation/admin-guide/cgroup-v1/blkio-controller.rst for more information.
  
  config CGROUP_WRITEBACK
        bool
@@@ -1827,7 -1827,7 +1827,7 @@@ config SLAB_FREELIST_HARDENE
        help
          Many kernel heap attacks try to target slab cache metadata and
          other infrastructure. This options makes minor performance
-         sacrifies to harden the kernel slab allocator against common
+         sacrifices to harden the kernel slab allocator against common
          freelist exploit methods.
  
  config SHUFFLE_PAGE_ALLOCATOR
@@@ -1859,7 -1859,7 +1859,7 @@@ config SLUB_CPU_PARTIA
        depends on SLUB && SMP
        bool "SLUB per cpu partial cache"
        help
-         Per cpu partial caches accellerate objects allocation and freeing
+         Per cpu partial caches accelerate objects allocation and freeing
          that is local to a processor at the price of more indeterminism
          in the latency of the free. On overflow these caches will be cleared
          which requires the taking of locks that may cause latency spikes.
diff --combined lib/Kconfig.debug
index a858b55e8ac72e6f8f51af484154dec0573e89f2,c6ee805202bd6f21032bcd9cdf4bf2fe2203d1bb..bc6673ab3a08a0fd583883940f89a63e76962c99
@@@ -1139,7 -1139,7 +1139,7 @@@ config PROVE_LOCKIN
         the proof of observed correctness is also maintained for an
         arbitrary combination of these separate locking variants.
  
 -       For more details, see Documentation/locking/lockdep-design.txt.
 +       For more details, see Documentation/locking/lockdep-design.rst.
  
  config LOCK_STAT
        bool "Lock usage statistics"
        help
         This feature enables tracking lock contention points
  
 -       For more details, see Documentation/locking/lockstat.txt
 +       For more details, see Documentation/locking/lockstat.rst
  
         This also enables lock events required by "perf lock",
         subcommand of perf.
@@@ -2076,6 -2076,14 +2076,14 @@@ config TEST_STACKINI
  
          If unsure, say N.
  
+ config TEST_MEMINIT
+       tristate "Test heap/page initialization"
+       help
+         Test if the kernel is zero-initializing heap and page allocations.
+         This can be useful to test init_on_alloc and init_on_free features.
+         If unsure, say N.
  endif # RUNTIME_TESTING_MENU
  
  config MEMTEST
This page took 0.177459 seconds and 4 git commands to generate.