1. 18 Dec, 2019 3 commits
    • 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 6 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
    • Linus Torvalds's avatar
      Merge tag 'usb-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · a1b85b3b
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are some small USB driver fixes for reported issues for 5.5-rc2
      
        There's the usual gadget and xhci fixes, as well as some other
        problems that syzbot has been finding during it's fuzzing runs. Full
        details are in the shortlog.
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'usb-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (21 commits)
        usb: dwc3: pci: add ID for the Intel Comet Lake -H variant
        xhci: make sure interrupts are restored to correct state
        xhci: handle some XHCI_TRUST_TX_LENGTH quirks cases as default behaviour.
        xhci: Increase STS_HALT timeout in xhci_suspend()
        usb: xhci: only set D3hot for pci device
        xhci: fix USB3 device initiated resume race with roothub autosuspend
        xhci: Fix memory leak in xhci_add_in_port()
        USB: Fix incorrect DMA allocations for local memory pool drivers
        usb: gadget: fix wrong endpoint desc
        usb: dwc3: ep0: Clear started flag on completion
        usb: dwc3: gadget: Clear started flag for non-IOC
        usb: dwc3: gadget: Fix logical condition
        USB: atm: ueagle-atm: add missing endpoint check
        USB: adutux: fix interface sanity check
        USB: idmouse: fix interface sanity checks
        USB: serial: io_edgeport: fix epic endpoint lookup
        usb: mon: Fix a deadlock in usbmon between mmap and read
        usb: common: usb-conn-gpio: Don't log an error on probe deferral
        usb: core: urb: fix URB structure initialization function
        usb: typec: fix use after free in typec_register_port()
        ...
      a1b85b3b
    • Linus Torvalds's avatar
      Merge tag 's390-5.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 81d55984
      Linus Torvalds authored
      Pull s390 updates from Vasily Gorbik:
      
       - Add support for KASAN_VMALLOC feature.
      
       - Remove the last user of problematic diag 0x44 call.
      
       - Adjust sampling interval and avoid sample data block overflow
         condition on pressure in perf code.
      
       - Prefer EOPNOTSUPP over ENOTSUPP and comments fixes.
      
      * tag 's390-5.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/kasan: add KASAN_VMALLOC support
        s390: remove last diag 0x44 caller
        s390/uv: use EOPNOTSUPP instead of ENOTSUPP
        s390/cpum_sf: Avoid SBD overflow condition in irq handler
        s390/cpum_sf: Adjust sampling interval to avoid hitting sample limits
        s390/test_unwind: fix spelling mistake "reqister" -> "register"
        s390/spinlock: remove confusing comment in arch_spin_lock_wait
      81d55984