1. 18 Dec, 2019 5 commits
    • Yang Shi's avatar
      mm: vmscan: protect shrinker idr replace with CONFIG_MEMCG · 42a9a53b
      Yang Shi authored
      Since commit 0a432dcb ("mm: shrinker: make shrinker not depend on
      memcg kmem"), shrinkers' idr is protected by CONFIG_MEMCG instead of
      CONFIG_MEMCG_KMEM, so it makes no sense to protect shrinker idr replace
      with CONFIG_MEMCG_KMEM.
      
      And in the CONFIG_MEMCG && CONFIG_SLOB case, shrinker_idr contains only
      shrinker, and it is deferred_split_shrinker.  But it is never actually
      called, since idr_replace() is never compiled due to the wrong #ifdef.
      The deferred_split_shrinker all the time is staying in half-registered
      state, and it's never called for subordinate mem cgroups.
      
      Link: http://lkml.kernel.org/r/1575486978-45249-1-git-send-email-yang.shi@linux.alibaba.com
      Fixes: 0a432dcb ("mm: shrinker: make shrinker not depend on memcg kmem")
      Signed-off-by: default avatarYang Shi <yang.shi@linux.alibaba.com>
      Reviewed-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
      Acked-by: default avatarMichal Hocko <mhocko@suse.com>
      Cc: Johannes Weiner <hannes@cmpxchg.org>
      Cc: Shakeel Butt <shakeelb@google.com>
      Cc: Roman Gushchin <guro@fb.com>
      Cc: <stable@vger.kernel.org>	[5.4+]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      42a9a53b
    • Daniel Axtens's avatar
      kasan: don't assume percpu shadow allocations will succeed · 253a496d
      Daniel Axtens authored
      syzkaller and the fault injector showed that I was wrong to assume that
      we could ignore percpu shadow allocation failures.
      
      Handle failures properly.  Merge all the allocated areas back into the
      free list and release the shadow, then clean up and return NULL.  The
      shadow is released unconditionally, which relies upon the fact that the
      release function is able to tolerate pages not being present.
      
      Also clean up shadows in the recovery path - currently they are not
      released, which leaks a bit of memory.
      
      Link: http://lkml.kernel.org/r/20191205140407.1874-3-dja@axtens.net
      Fixes: 3c5c3cfb ("kasan: support backing vmalloc space with real shadow memory")
      Signed-off-by: default avatarDaniel Axtens <dja@axtens.net>
      Reported-by: syzbot+82e323920b78d54aaed5@syzkaller.appspotmail.com
      Reported-by: syzbot+59b7daa4315e07a994f1@syzkaller.appspotmail.com
      Reviewed-by: default avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
      Cc: Dmitry Vyukov <dvyukov@google.com>
      Cc: Alexander Potapenko <glider@google.com>
      Cc: Qian Cai <cai@lca.pw>
      Cc: Uladzislau Rezki (Sony) <urezki@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      253a496d
    • Daniel Axtens's avatar
      kasan: use apply_to_existing_page_range() for releasing vmalloc shadow · e218f1ca
      Daniel Axtens authored
      kasan_release_vmalloc uses apply_to_page_range to release vmalloc
      shadow.  Unfortunately, apply_to_page_range can allocate memory to fill
      in page table entries, which is not what we want.
      
      Also, kasan_release_vmalloc is called under free_vmap_area_lock, so if
      apply_to_page_range does allocate memory, we get a sleep in atomic bug:
      
      	BUG: sleeping function called from invalid context at mm/page_alloc.c:4681
      	in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 15087, name:
      
      	Call Trace:
      	 __dump_stack lib/dump_stack.c:77 [inline]
      	 dump_stack+0x199/0x216 lib/dump_stack.c:118
      	 ___might_sleep.cold.97+0x1f5/0x238 kernel/sched/core.c:6800
      	 __might_sleep+0x95/0x190 kernel/sched/core.c:6753
      	 prepare_alloc_pages mm/page_alloc.c:4681 [inline]
      	 __alloc_pages_nodemask+0x3cd/0x890 mm/page_alloc.c:4730
      	 alloc_pages_current+0x10c/0x210 mm/mempolicy.c:2211
      	 alloc_pages include/linux/gfp.h:532 [inline]
      	 __get_free_pages+0xc/0x40 mm/page_alloc.c:4786
      	 __pte_alloc_one_kernel include/asm-generic/pgalloc.h:21 [inline]
      	 pte_alloc_one_kernel include/asm-generic/pgalloc.h:33 [inline]
      	 __pte_alloc_kernel+0x1d/0x200 mm/memory.c:459
      	 apply_to_pte_range mm/memory.c:2031 [inline]
      	 apply_to_pmd_range mm/memory.c:2068 [inline]
      	 apply_to_pud_range mm/memory.c:2088 [inline]
      	 apply_to_p4d_range mm/memory.c:2108 [inline]
      	 apply_to_page_range+0x77d/0xa00 mm/memory.c:2133
      	 kasan_release_vmalloc+0xa7/0xc0 mm/kasan/common.c:970
      	 __purge_vmap_area_lazy+0xcbb/0x1f30 mm/vmalloc.c:1313
      	 try_purge_vmap_area_lazy mm/vmalloc.c:1332 [inline]
      	 free_vmap_area_noflush+0x2ca/0x390 mm/vmalloc.c:1368
      	 free_unmap_vmap_area mm/vmalloc.c:1381 [inline]
      	 remove_vm_area+0x1cc/0x230 mm/vmalloc.c:2209
      	 vm_remove_mappings mm/vmalloc.c:2236 [inline]
      	 __vunmap+0x223/0xa20 mm/vmalloc.c:2299
      	 __vfree+0x3f/0xd0 mm/vmalloc.c:2356
      	 __vmalloc_area_node mm/vmalloc.c:2507 [inline]
      	 __vmalloc_node_range+0x5d5/0x810 mm/vmalloc.c:2547
      	 __vmalloc_node mm/vmalloc.c:2607 [inline]
      	 __vmalloc_node_flags mm/vmalloc.c:2621 [inline]
      	 vzalloc+0x6f/0x80 mm/vmalloc.c:2666
      	 alloc_one_pg_vec_page net/packet/af_packet.c:4233 [inline]
      	 alloc_pg_vec net/packet/af_packet.c:4258 [inline]
      	 packet_set_ring+0xbc0/0x1b50 net/packet/af_packet.c:4342
      	 packet_setsockopt+0xed7/0x2d90 net/packet/af_packet.c:3695
      	 __sys_setsockopt+0x29b/0x4d0 net/socket.c:2117
      	 __do_sys_setsockopt net/socket.c:2133 [inline]
      	 __se_sys_setsockopt net/socket.c:2130 [inline]
      	 __x64_sys_setsockopt+0xbe/0x150 net/socket.c:2130
      	 do_syscall_64+0xfa/0x780 arch/x86/entry/common.c:294
      	 entry_SYSCALL_64_after_hwframe+0x49/0xbe
      
      Switch to using the apply_to_existing_page_range() helper instead, which
      won't allocate memory.
      
      [akpm@linux-foundation.org: s/apply_to_existing_pages/apply_to_existing_page_range/]
      Link: http://lkml.kernel.org/r/20191205140407.1874-2-dja@axtens.net
      Fixes: 3c5c3cfb ("kasan: support backing vmalloc space with real shadow memory")
      Signed-off-by: default avatarDaniel Axtens <dja@axtens.net>
      Reported-by: default avatarDmitry Vyukov <dvyukov@google.com>
      Reviewed-by: default avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
      Cc: Alexander Potapenko <glider@google.com>
      Cc: Qian Cai <cai@lca.pw>
      Cc: Uladzislau Rezki (Sony) <urezki@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e218f1ca
    • Daniel Axtens's avatar
      mm/memory.c: add apply_to_existing_page_range() helper · be1db475
      Daniel Axtens authored
      apply_to_page_range() takes an address range, and if any parts of it are
      not covered by the existing page table hierarchy, it allocates memory to
      fill them in.
      
      In some use cases, this is not what we want - we want to be able to
      operate exclusively on PTEs that are already in the tables.
      
      Add apply_to_existing_page_range() for this.  Adjust the walker
      functions for apply_to_page_range to take 'create', which switches them
      between the old and new modes.
      
      This will be used in KASAN vmalloc.
      
      [akpm@linux-foundation.org: reduce code duplication]
      [akpm@linux-foundation.org: s/apply_to_existing_pages/apply_to_existing_page_range/]
      [akpm@linux-foundation.org: initialize __apply_to_page_range::err]
      Link: http://lkml.kernel.org/r/20191205140407.1874-1-dja@axtens.netSigned-off-by: default avatarDaniel Axtens <dja@axtens.net>
      Cc: Dmitry Vyukov <dvyukov@google.com>
      Cc: Uladzislau Rezki (Sony) <urezki@gmail.com>
      Cc: Alexander Potapenko <glider@google.com>
      Cc: Daniel Axtens <dja@axtens.net>
      Cc: Qian Cai <cai@lca.pw>
      Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      be1db475
    • Andrey Ryabinin's avatar
      kasan: fix crashes on access to memory mapped by vm_map_ram() · d98c9e83
      Andrey Ryabinin authored
      With CONFIG_KASAN_VMALLOC=y any use of memory obtained via vm_map_ram()
      will crash because there is no shadow backing that memory.
      
      Instead of sprinkling additional kasan_populate_vmalloc() calls all over
      the vmalloc code, move it into alloc_vmap_area(). This will fix
      vm_map_ram() and simplify the code a bit.
      
      [aryabinin@virtuozzo.com: v2]
        Link: http://lkml.kernel.org/r/20191205095942.1761-1-aryabinin@virtuozzo.comLink: http://lkml.kernel.org/r/20191204204534.32202-1-aryabinin@virtuozzo.com
      Fixes: 3c5c3cfb ("kasan: support backing vmalloc space with real shadow memory")
      Signed-off-by: default avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
      Reported-by: default avatarDmitry Vyukov <dvyukov@google.com>
      Reviewed-by: default avatarUladzislau Rezki (Sony) <urezki@gmail.com>
      Cc: Daniel Axtens <dja@axtens.net>
      Cc: Alexander Potapenko <glider@google.com>
      Cc: Daniel Axtens <dja@axtens.net>
      Cc: Qian Cai <cai@lca.pw>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d98c9e83
  2. 17 Dec, 2019 12 commits
    • Linus Torvalds's avatar
      Merge tag 'for-5.5-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 2187f215
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "A mix of regression fixes and regular fixes for stable trees:
      
         - fix swapped error messages for qgroup enable/rescan
      
         - fixes for NO_HOLES feature with clone range
      
         - fix deadlock between iget/srcu lock/synchronize srcu while freeing
           an inode
      
         - fix double lock on subvolume cross-rename
      
         - tree log fixes
            * fix missing data checksums after replaying a log tree
            * also teach tree-checker about this problem
            * skip log replay on orphaned roots
      
         - fix maximum devices constraints for RAID1C -3 and -4
      
         - send: don't print warning on read-only mount regarding orphan
           cleanup
      
         - error handling fixes"
      
      * tag 'for-5.5-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: send: remove WARN_ON for readonly mount
        btrfs: do not leak reloc root if we fail to read the fs root
        btrfs: skip log replay on orphaned roots
        btrfs: handle ENOENT in btrfs_uuid_tree_iterate
        btrfs: abort transaction after failed inode updates in create_subvol
        Btrfs: fix hole extent items with a zero size after range cloning
        Btrfs: fix removal logic of the tree mod log that leads to use-after-free issues
        Btrfs: make tree checker detect checksum items with overlapping ranges
        Btrfs: fix missing data checksums after replaying a log tree
        btrfs: return error pointer from alloc_test_extent_buffer
        btrfs: fix devs_max constraints for raid1c3 and raid1c4
        btrfs: tree-checker: Fix error format string for size_t
        btrfs: don't double lock the subvol_sem for rename exchange
        btrfs: handle error in btrfs_cache_block_group
        btrfs: do not call synchronize_srcu() in inode_tree_del
        Btrfs: fix cloning range with a hole when using the NO_HOLES feature
        btrfs: Fix error messages in qgroup_rescan_init
      2187f215
    • Linus Torvalds's avatar
      early init: fix error handling when opening /dev/console · 2d3145f8
      Linus Torvalds authored
      The comment says "this should never fail", but it definitely can fail
      when you have odd initial boot filesystems, or kernel configurations.
      
      So get the error handling right: filp_open() returns an error pointer.
      Reported-by: default avatarJesse Barnes <jsbarnes@google.com>
      Reported-by: default avataryouling 257 <youling257@gmail.com>
      Fixes: 8243186f ("fs: remove ksys_dup()")
      Cc: Dominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2d3145f8
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v5.5-rc2' of... · 58d90a04
      Linus Torvalds authored
      Merge tag 'regulator-fix-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
      
      Pull regulator fixes from Mark Brown:
       "A small set of fixes for mostly minor issues here, the only real code
        ones are Wen Yang's fixes for error handling in the core and Christian
        Marussi's list_voltage() change which is a fix for disruptively bad
        performance for regulators with continuous voltage control (which are
        rare)"
      
      * tag 'regulator-fix-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: rn5t618: fix module aliases
        regulator: max77650: add of_match table
        regulator: core: avoid unneeded .list_voltage calls
        regulator: s5m8767: Fix a warning message
        regulator: core: fix regulator_register() error paths to properly release rdev
        regulator: fix use after free issue
      58d90a04
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · a922f1a9
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "A relatively large set of fixes here, the biggest part of it is for
        fallout from the GPIO descriptor rework that affected several of the
        devices with usable native chip select support. There's also some new
        PCI IDs for Intel Jasper Lake devices.
      
        The conversion to platform_get_irq() in the fsl driver is an
        incremental fix for build errors introduced on SPARC by the earlier
        fix for error handling in probe in that driver"
      
      * tag 'spi-fix-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: fsl: use platform_get_irq() instead of of_irq_to_resource()
        spi: nxp-fspi: Ensure width is respected in spi-mem operations
        spi: spi-ti-qspi: Fix a bug when accessing non default CS
        spi: fsl: don't map irq during probe
        spi: spi-cavium-thunderx: Add missing pci_release_regions()
        spi: sprd: Fix the incorrect SPI register
        gpiolib: of: Make of_gpio_spi_cs_get_count static
        spi: fsl: Handle the single hardwired chipselect case
        gpio: Handle counting of Freescale chipselects
        spi: fsl: Fix GPIO descriptor support
        spi: dw: Correct handling of native chipselect
        spi: cadence: Correct handling of native chipselect
        spi: pxa2xx: Add support for Intel Jasper Lake
      a922f1a9
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 9065e063
      Linus Torvalds authored
      Pull x86 fix from Ingo Molnar:
       "Fix kexec booting with certain EFI memory map layouts"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/efi: Update e820 with reserved EFI boot services data to fix kexec breakage
      9065e063
    • Linus Torvalds's avatar
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 2abf1932
      Linus Torvalds authored
      Pull timer fixes from Ingo Molnar:
       "Add HPET quirks for the Intel 'Coffee Lake H' and 'Ice Lake' platforms"
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/intel: Disable HPET on Intel Ice Lake platforms
        x86/intel: Disable HPET on Intel Coffee Lake H platforms
      2abf1932
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4340ebd1
      Linus Torvalds authored
      Pull scheduler fix from Ingo Molnar:
       "Fix the guest-nice cpustat values in /proc"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/cputime, proc/stat: Fix incorrect guest nice cpustat value
      4340ebd1
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 89c683cd
      Linus Torvalds authored
      Pull perf tooling fixes from Ingo  Molnar:
       "These are all perf tooling changes: most of them are fixes.
      
        Note that the large CPU count related fixes go beyond regression
        fixes, but the IPI-flood symptoms are severe enough that I think
        justifies their inclusion"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (38 commits)
        perf vendor events s390: Remove name from L1D_RO_EXCL_WRITES description
        perf vendor events s390: Fix counter long description for DTLB1_GPAGE_WRITES
        libtraceevent: Allow custom libdir path
        perf header: Fix false warning when there are no duplicate cache entries
        perf metricgroup: Fix printing event names of metric group with multiple events
        perf/x86/pmu-events: Fix Kernel_Utilization metric
        perf top: Do not bail out when perf_env__read_cpuid() returns ENOSYS
        perf arch: Make the default get_cpuid() return compatible error
        tools headers kvm: Sync linux/kvm.h with the kernel sources
        tools headers UAPI: Update tools's copy of drm.h headers
        tools headers UAPI: Sync drm/i915_drm.h with the kernel sources
        perf inject: Fix processing of ID index for injected instruction tracing
        perf report: Bail out --mem-mode if mem info is not available
        perf report: Make -F more strict like -s
        perf report/top TUI: Replace pr_err() with ui__error()
        libtraceevent: Copy pkg-config file to output folder when using O=
        libtraceevent: Fix lib installation with O=
        perf kvm: Clarify the 'perf kvm' -i and -o command line options
        tools arch x86: Sync asm/cpufeatures.h with the kernel sources
        perf beauty: Add CLEAR_SIGHAND support for clone's flags arg
        ...
      89c683cd
    • Linus Torvalds's avatar
      Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 9e8a0d5f
      Linus Torvalds authored
      Pull locking fixes from Ingo Molnar:
       "Tone down mutex debugging complaints, and annotate/fix spinlock
        debugging data accesses for KCSAN"
      
      * 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        Revert "locking/mutex: Complain upon mutex API misuse in IRQ contexts"
        locking/spinlock/debug: Fix various data races
      9e8a0d5f
    • Linus Torvalds's avatar
      Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · a114a18c
      Linus Torvalds authored
      Pull EFI fixes from Ingo Molnar:
       "Protect presistent EFI memory reservations from kexec, fix EFIFB early
        console, EFI stub graphics output fixes and other misc fixes."
      
      * 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi: Don't attempt to map RCI2 config table if it doesn't exist
        efi/earlycon: Remap entire framebuffer after page initialization
        efi: Fix efi_loaded_image_t::unload type
        efi/gop: Fix memory leak in __gop_query32/64()
        efi/gop: Return EFI_SUCCESS if a usable GOP was found
        efi/gop: Return EFI_NOT_FOUND if there are no usable GOPs
        efi/memreserve: Register reservations as 'reserved' in /proc/iomem
      a114a18c
    • Ingo Molnar's avatar
      Merge tag 'perf-urgent-for-mingo-5.5-20191216' of... · 57e04eed
      Ingo Molnar authored
      Merge tag 'perf-urgent-for-mingo-5.5-20191216' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
      
      Pull perf/urgent fixes:
      
      perf top:
      
       Arnaldo Carvalho de Melo:
      
       - Do not bail out when perf_env__read_cpuid() returns ENOSYS, which
         has been reported happening on aarch64.
      
      perf metricgroup:
      
        Kajol Jain:
      
        - Fix printing event names of metric group with multiple events
      
      vendor events:
      
      x86:
      
        Ravi Bangoria:
      
        - Fix Kernel_Utilization metric.
      
      s390:
      
        Ed Maste:
      
        - Fix counter long description for DTLB1_GPAGE_WRITES and L1D_RO_EXCL_WRITES.
      
      perf header:
      
        Michael Petlan:
      
        - Fix false warning when there are no duplicate cache entries
      
      libtraceevent:
      
        Sudip Mukherjee:
      
        - Allow custom libdir path
      
      API headers:
      
        Arnaldo Carvalho de Melo:
      
        - Sync linux/kvm.h with the kernel sources.
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      57e04eed
    • Linus Torvalds's avatar
      Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · ea200dec
      Linus Torvalds authored
      Pull ARM SoC fixes from Olof Johansson:
       "I didn't get a batch in this weekend, so here's what we queued up last
        week and today.
      
         - A couple of defconfigs add back debugfs -- it used to be implicitly
           enabled through CONFIG_TRACING, but 0e4a459f ("tracing:
           Remove unnecessary DEBUG_FS dependency") removed that.
      
         - The rest are mostly minor fixlets of the usual kind; some DT
           tweaks, a headerfile refactor that needs a build fix now, etc"
      
      * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (30 commits)
        ARM: bcm: Add missing sentinel to bcm2711_compat[]
        ARM: shmobile: defconfig: Restore debugfs support
        bus: ti-sysc: Fix missing reset delay handling
        ARM: imx: Fix boot crash if ocotp is not found
        ARM: imx_v6_v7_defconfig: Explicitly restore CONFIG_DEBUG_FS
        ARM: dts: imx6ul-evk: Fix peripheral regulator
        arm64: dts: ls1028a: fix reboot node
        ARM: mmp: include the correct cputype.h
        ARM: dts: am437x-gp/epos-evm: fix panel compatible
        arm64: dts: ls1028a: fix typo in TMU calibration data
        ARM: imx: Correct ocotp id for serial number support of i.MX6ULL/ULZ SoCs
        ARM: dts: bcm283x: Fix critical trip point
        ARM: omap2plus_defconfig: Add back DEBUG_FS
        ARM: omap2plus_defconfig: enable NET_SWITCHDEV
        ARM: dts: am335x-sancloud-bbe: fix phy mode
        bus: ti-sysc: Fix missing force mstandby quirk handling
        reset: Do not register resource data for missing resets
        reset: Fix {of,devm}_reset_control_array_get kerneldoc return types
        reset: brcmstb: Remove resource checks
        dt-bindings: reset: Fix brcmstb-reset example
        ...
      ea200dec
  3. 16 Dec, 2019 13 commits
  4. 15 Dec, 2019 6 commits
    • Linus Torvalds's avatar
      Linux 5.5-rc2 · d1eef1c6
      Linus Torvalds authored
      d1eef1c6
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 9603e221
      Linus Torvalds authored
      Pull rdma fixes from Doug Ledford:
       "A small collection of -rc fixes. Mostly. One API addition, but that's
        because we wanted to use it in a fix. There's also a bug fix that is
        going to render the 5.5 kernel's soft-RoCE driver incompatible with
        all soft-RoCE versions prior, but it's required to actually implement
        the protocol according to the RoCE spec and required in order for the
        soft-RoCE driver to be able to successfully work with actual RoCE
        hardware.
      
        Summary:
      
         - Update Steve Wise info
      
         - Fix for soft-RoCE crc calculations (will break back compatibility,
           but only with the soft-RoCE driver, which has had this bug since it
           was introduced and it is an on-the-wire bug, but will make
           soft-RoCE fully compatible with real RoCE hardware)
      
         - cma init fixup
      
         - counters oops fix
      
         - fix for mlx4 init/teardown sequence
      
         - fix for mkx5 steering rules
      
         - introduce a cleanup API, which isn't a fix, but we want to use it
           in the next fix
      
         - fix for mlx5 memory management that uses API in previous patch"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        IB/mlx5: Fix device memory flows
        IB/core: Introduce rdma_user_mmap_entry_insert_range() API
        IB/mlx5: Fix steering rule of drop and count
        IB/mlx4: Follow mirror sequence of device add during device removal
        RDMA/counter: Prevent auto-binding a QP which are not tracked with res
        rxe: correctly calculate iCRC for unaligned payloads
        Update mailmap info for Steve Wise
        RDMA/cma: add missed unregister_pernet_subsys in init failure
      9603e221
    • Linus Torvalds's avatar
      Merge tag 'riscv/for-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 1522d9da
      Linus Torvalds authored
      Pull RISC-V fixes from Paul Walmsley:
       "Two minor build fixes:
      
         - Fix builds of the ELF loader when built with 'make -j1' (nommu
           only)
      
         - Fix CONFIG_SOC_SIFIVE builds when CONFIG_TTY is disabled (found
           during randconfig testing)"
      
      * tag 'riscv/for-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: only select serial sifive if TTY is enabled
        riscv: Fix build dependency for loader
      1522d9da
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.5b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · b01d7cb4
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
       "Two fixes: one for a resource accounting bug in some configurations
        and a fix for another patch which went into rc1"
      
      * tag 'for-linus-5.5b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/balloon: fix ballooned page accounting without hotplug enabled
        xen-blkback: prevent premature module unload
      b01d7cb4
    • Linus Torvalds's avatar
      Merge branch 'remove-ksys-mount-dup' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux · 2e6d3045
      Linus Torvalds authored
      Pull ksys_mount() and ksys_dup() removal from Dominik Brodowski:
       "This small series replaces all in-kernel calls to the
        userspace-focused ksys_mount() and ksys_dup() with calls to
        kernel-centric functions:
      
        For each replacement of ksys_mount() with do_mount(), one needs to
        verify that the first and third parameter (char *dev_name, char *type)
        are strings allocated in kernelspace and that the fifth parameter
        (void *data) is either NULL or refers to a full page (only occurence
        in init/do_mounts.c::do_mount_root()). The second and fourth
        parameters (char *dir_name, unsigned long flags) are passed by
        ksys_mount() to do_mount() unchanged, and therefore do not require
        particular care.
      
        Moreover, instead of pretending to be userspace, the opening of
        /dev/console as stdin/stdout/stderr can be implemented using in-kernel
        functions as well. Thereby, ksys_dup() can be removed for good"
      
      [ This doesn't get rid of the special "kernel init runs with KERNEL_DS"
        case, but it at least removes _some_ of the users of "treat kernel
        pointers as user pointers for our magical init sequence".
      
        One day we'll hopefully be rid of it all, and can initialize our
        init_thread addr_limit to USER_DS.    - Linus ]
      
      * 'remove-ksys-mount-dup' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux:
        fs: remove ksys_dup()
        init: unify opening /dev/console as stdin/stdout/stderr
        init: use do_mount() instead of ksys_mount()
        initrd: use do_mount() instead of ksys_mount()
        devtmpfs: use do_mount() instead of ksys_mount()
      2e6d3045
    • Linus Torvalds's avatar
      Merge tag 'Wimplicit-fallthrough-5.5-rc2' of... · 510c9788
      Linus Torvalds authored
      Merge tag 'Wimplicit-fallthrough-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
      
      Pull fall through fix from Gustavo Silva:
       "Fix compile error on sh by marking expected switch fall-through"
      
      * tag 'Wimplicit-fallthrough-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
        sh: kgdb: Mark expected switch fall-throughs
      510c9788
  5. 14 Dec, 2019 4 commits
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 07c4b9e9
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "24 fixes, all in drivers. The lion's share (16) are qla2xxx and the
        rest are iscsi (3), ufs (2), smarpqi, lpfc and libsas"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (24 commits)
        scsi: iscsi: Avoid potential deadlock in iscsi_if_rx func
        scsi: iscsi: Fix a potential deadlock in the timeout handler
        scsi: smartpqi: Update attribute name to `driver_version`
        scsi: libsas: stop discovering if oob mode is disconnected
        scsi: ufs: Disable autohibern8 feature in Cadence UFS
        scsi: iscsi: qla4xxx: fix double free in probe
        scsi: ufs: Give an unique ID to each ufs-bsg
        scsi: qla2xxx: Add debug dump of LOGO payload and ELS IOCB
        scsi: qla2xxx: Ignore PORT UPDATE after N2N PLOGI
        scsi: qla2xxx: Don't defer relogin unconditonally
        scsi: qla2xxx: Send Notify ACK after N2N PLOGI
        scsi: qla2xxx: Configure local loop for N2N target
        scsi: qla2xxx: Fix PLOGI payload and ELS IOCB dump length
        scsi: qla2xxx: Don't call qlt_async_event twice
        scsi: qla2xxx: Allow PLOGI in target mode
        scsi: qla2xxx: Change discovery state before PLOGI
        scsi: qla2xxx: Drop superfluous INIT_WORK of del_work
        scsi: qla2xxx: Initialize free_work before flushing it
        scsi: qla2xxx: Use explicit LOGO in target mode
        scsi: qla2xxx: Ignore NULL pointer in tcm_qla2xxx_free_mcmd
        ...
      07c4b9e9
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · f61cf8de
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are six small fixes for some reported char/misc driver issues:
      
         - fix build warnings with new 'awk' with the raid6 code
      
         - four interconnect driver bugfixes
      
         - binder fix for reported problem
      
        All of these except the binder fix have been in linux-next with no
        reported issues. The binder fix is "new" but Todd says it is good as
        he has tested it :)"
      
      * tag 'char-misc-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        binder: fix incorrect calculation for num_valid
        interconnect: qcom: msm8974: Walk the list safely on node removal
        interconnect: qcom: qcs404: Walk the list safely on node removal
        interconnect: qcom: sdm845: Walk the list safely on node removal
        interconnect: qcom: Fix Kconfig indentation
        lib: raid6: fix awk build warnings
      f61cf8de
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · 894554c1
      Linus Torvalds authored
      Pull driver core fixes from Greg KH:
       "Here are two small driver core fixes to resolve some reported issues
      
        The first is to handle the much-reported (by the build systems)
        problem that superH does not boot anymore.
      
        The second handles an issue in the new platform logic that a number of
        people ran into with the automated tests in kbuild
      
        Both of these have been in linux-next with no reported issues"
      
      * tag 'driver-core-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        drivers: Fix boot problem on SuperH
        of/platform: Unconditionally pause/resume sync state during kernel init
      894554c1
    • Linus Torvalds's avatar
      Merge tag 'staging-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · aff2a525
      Linus Torvalds authored
      Pull staging/IIO fixes from Greg KH:
       "Here are a number of small staging and IIO driver fixes for reported
        issues for 5.5-rc2
      
        Nothing major, a bunch of tiny IIO driver issues resolved, and some
        staging driver fixes for things that people ran into with 5.5-rc1.
        Full details are in the shortlog.
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'staging-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (28 commits)
        fbtft: Fix the initialization from property algorithm
        staging: rtl8712: fix interface sanity check
        staging: rtl8188eu: fix interface sanity check
        staging: gigaset: add endpoint-type sanity check
        staging: gigaset: fix illegal free on probe errors
        staging: gigaset: fix general protection fault on probe
        staging: vchiq: call unregister_chrdev_region() when driver registration fails
        staging: exfat: fix multiple definition error of `rename_file'
        staging/wlan-ng: add CRC32 dependency in Kconfig
        staging: hp100: Fix build error without ETHERNET
        staging: fbtft: Do not hardcode SPI CS polarity inversion
        staging: exfat: properly support discard in clr_alloc_bitmap()
        staging/octeon: Mark Ethernet driver as BROKEN
        iio: adc: max9611: Fix too short conversion time delay
        iio: ad7949: fix channels mixups
        iio: imu: st_lsm6dsx: do not power-off accel if events are enabled
        iio: imu: st_lsm6dsx: track hw FIFO buffering with fifo_mask
        iio: imu: st_lsm6dsx: fix decimation factor estimation
        iio: imu: inv_mpu6050: fix temperature reporting using bad unit
        iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting
        ...
      aff2a525