1. 09 Apr, 2022 31 commits
  2. 08 Apr, 2022 9 commits
    • Jens Axboe's avatar
      io_uring: fix race between timeout flush and removal · e677edbc
      Jens Axboe authored
      io_flush_timeouts() assumes the timeout isn't in progress of triggering
      or being removed/canceled, so it unconditionally removes it from the
      timeout list and attempts to cancel it.
      
      Leave it on the list and let the normal timeout cancelation take care
      of it.
      
      Cc: stable@vger.kernel.org # 5.5+
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      e677edbc
    • Douglas Miller's avatar
      RDMA/hfi1: Fix use-after-free bug for mm struct · 2bbac98d
      Douglas Miller authored
      Under certain conditions, such as MPI_Abort, the hfi1 cleanup code may
      represent the last reference held on the task mm.
      hfi1_mmu_rb_unregister() then drops the last reference and the mm is freed
      before the final use in hfi1_release_user_pages().  A new task may
      allocate the mm structure while it is still being used, resulting in
      problems. One manifestation is corruption of the mmap_sem counter leading
      to a hang in down_write().  Another is corruption of an mm struct that is
      in use by another task.
      
      Fixes: 3d2a9d64 ("IB/hfi1: Ensure correct mm is used at all times")
      Link: https://lore.kernel.org/r/20220408133523.122165.72975.stgit@awfm-01.cornelisnetworks.com
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarDouglas Miller <doug.miller@cornelisnetworks.com>
      Signed-off-by: default avatarDennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
      2bbac98d
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-bus' · 87ad2360
      Rafael J. Wysocki authored
      * acpi-bus:
        ACPI: bus: Eliminate acpi_bus_get_device()
      87ad2360
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.18-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 1a3b1bba
      Linus Torvalds authored
      Pull NFS client fixes from Trond Myklebust:
       "Stable fixes:
      
         - SUNRPC: Ensure we flush any closed sockets before xs_xprt_free()
      
        Bugfixes:
      
         - Fix an Oopsable condition due to SLAB_ACCOUNT setting in the
           NFSv4.2 xattr code.
      
         - Fix for open() using an file open mode of '3' in NFSv4
      
         - Replace readdir's use of xxhash() with hash_64()
      
         - Several patches to handle malloc() failure in SUNRPC"
      
      * tag 'nfs-for-5.18-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        SUNRPC: Move the call to xprt_send_pagedata() out of xprt_sock_sendmsg()
        SUNRPC: svc_tcp_sendmsg() should handle errors from xdr_alloc_bvec()
        SUNRPC: Handle allocation failure in rpc_new_task()
        NFS: Ensure rpc_run_task() cannot fail in nfs_async_rename()
        NFSv4/pnfs: Handle RPC allocation errors in nfs4_proc_layoutget
        SUNRPC: Handle low memory situations in call_status()
        SUNRPC: Handle ENOMEM in call_transmit_status()
        NFSv4.2: Fix missing removal of SLAB_ACCOUNT on kmem_cache allocation
        SUNRPC: Ensure we flush any closed sockets before xs_xprt_free()
        NFS: Replace readdir's use of xxhash() with hash_64()
        SUNRPC: handle malloc failure in ->request_prepare
        NFSv4: fix open failure with O_ACCMODE flag
        Revert "NFSv4: Handle the special Linux file open access mode"
      1a3b1bba
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · c0aa5338
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "The two main things to note are:
      
         (1) The bulk of the diffstat is us reverting a horrible bodge we had
             in place to ease the merging of maple tree during the merge
             window (which turned out not to be needed, but anyway)
      
         (2) The TLB invalidation fix is done in core code, as suggested by
             (and Acked-by) Peter.
      
        Summary:
      
         - Revert temporary bodge in MTE coredumping to ease maple tree integration
      
         - Fix stack frame size warning reported with 64k pages
      
         - Fix stop_machine() race with instruction text patching
      
         - Ensure alternatives patching routines are not instrumented
      
         - Enable Spectre-BHB mitigation for Cortex-A78AE
      
         - Fix hugetlb TLB invalidation when contiguous hint is used
      
         - Minor perf driver fixes
      
         - Fix some typos"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        perf/imx_ddr: Fix undefined behavior due to shift overflowing the constant
        arm64: Add part number for Arm Cortex-A78AE
        arm64: patch_text: Fixup last cpu should be master
        tlb: hugetlb: Add more sizes to tlb_remove_huge_tlb_entry
        arm64: alternatives: mark patch_alternative() as `noinstr`
        perf: MARVELL_CN10K_DDR_PMU should depend on ARCH_THUNDER
        perf: qcom_l2_pmu: fix an incorrect NULL check on list iterator
        arm64: Fix comments in macro __init_el2_gicv3
        arm64: fix typos in comments
        arch/arm64: Fix topology initialization for core scheduling
        arm64: mte: Fix the stack frame size warning in mte_dump_tag_range()
        Revert "arm64: Change elfcore for_each_mte_vma() to use VMA iterator"
      c0aa5338
    • Linus Torvalds's avatar
      Merge tag 'folio-5.18e' of git://git.infradead.org/users/willy/pagecache · d66b6985
      Linus Torvalds authored
      Pull folio fixes from Matthew Wilcox:
       "Fewer bug reports than I was expecting from enabling large folios.
      
        One that doesn't show up on x86 but does on arm64, one that shows up
        with hugetlbfs memory failure testing and one that shows up with page
        migration, which it turns out I wasn't testing because my last NUMA
        machine died. Need to set up a qemu fake NUMA machine so I don't skip
        testing that in future.
      
        Summary:
      
         - Remove the migration code's assumptions about large pages being PMD
           sized
      
         - Don't call pmd_page() on a non-leaf PMD
      
         - Fix handling of hugetlbfs pages in page_vma_mapped_walk"
      
      * tag 'folio-5.18e' of git://git.infradead.org/users/willy/pagecache:
        mm/rmap: Fix handling of hugetlbfs pages in page_vma_mapped_walk
        mm/mempolicy: Use vma_alloc_folio() in new_page()
        mm: Add vma_alloc_folio()
        mm/migrate: Use a folio in migrate_misplaced_transhuge_page()
        mm/migrate: Use a folio in alloc_migration_target()
        mm/huge_memory: Avoid calling pmd_page() on a non-leaf PMD
      d66b6985
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · d00c50b3
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "A small collection of fixes that have arrived since the merge window,
        the most noticable one is a fix for unmapping messages when the
        mapping was done with the struct device supplied to do the mapping
        overridden"
      
      * tag 'spi-fix-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: bcm-qspi: fix MSPI only access with bcm_qspi_exec_mem_op()
        spi: cadence-quadspi: fix protocol setup for non-1-1-X operations
        spi: core: add dma_map_dev for __spi_unmap_msg()
        spi: mxic: Fix an error handling path in mxic_spi_probe()
        spi: rpc-if: Fix RPM imbalance in probe error path
      d00c50b3
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v5.18-rc1' of... · 98849765
      Linus Torvalds authored
      Merge tag 'regulator-fix-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
      
      Pull regulator fixes from Mark Brown:
       "A few small driver specific fixes for v5.18, plus an update to the
        MAINTAINERS file"
      
      * tag 'regulator-fix-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        MAINTAINERS: Fix reviewer info for a few ROHM ICs
        regulator: atc260x: Fix missing active_discharge_on setting
        regulator: rtq2134: Fix missing active_discharge_on setting
        regulator: wm8994: Add an off-on delay for WM8994 variant
      98849765
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 0ccab014
      Linus Torvalds authored
      Pull MMC updates from Ulf Hansson:
       "MMC core:
         - Improve API to make it clear that mmc_hw_reset() is for cards
         - Fixup support for writeback-cache for eMMC and SD
         - Check for errors after writes on SPI
      
        MMC host:
         - renesas_sdhi: A couple of fixes of TAP settings for eMMC HS400 mode
         - mmci_stm32: Fixup check of all elements in sg list
         - sdhci-xenon: Revert unnecessary fix for annoying 1.8V regulator warning"
      
      * tag 'mmc-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: core: improve API to make clear mmc_hw_reset is for cards
        mmc: renesas_sdhi: don't overwrite TAP settings when HS400 tuning is complete
        mmc: renesas_sdhi: special 4tap settings only apply to HS400
        mmc: core: Fixup support for writeback-cache for eMMC and SD
        mmc: block: Check for errors after write on SPI
        mmc: mmci: stm32: correctly check all elements of sg list
        Revert "mmc: sdhci-xenon: fix annoying 1.8V regulator warning"
      0ccab014