1. 01 Mar, 2022 3 commits
  2. 28 Feb, 2022 4 commits
    • Linus Torvalds's avatar
      Merge tag 'soc-fixes-5.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 719fce75
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "The code changes address mostly minor problems:
      
         - Several NXP/FSL SoC driver fixes, addressing issues with error
           handling and compilation
      
         - Fix a clock disabling imbalance in gpcv2 driver.
      
         - Arm Juno DMA coherency issue
      
         - Trivial firmware driver fixes for op-tee and scmi firmware
      
        The remaining changes address issues in the devicetree files:
      
         - A timer regression for the OMAP devkit8000, which has to use the
           alternative timer.
      
         - A hang in the i.MX8MM power domain configuration
      
         - Multiple fixes for the Rockchip RK3399 addressing issues with sound
           and eMMC
      
         - Cosmetic fixes for i.MX8ULP, RK3xxx, and Tegra124"
      
      * tag 'soc-fixes-5.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (32 commits)
        ARM: tegra: Move panels to AUX bus
        soc: imx: gpcv2: Fix clock disabling imbalance in error path
        soc: fsl: qe: Check of ioremap return value
        soc: fsl: qe: fix typo in a comment
        soc: fsl: guts: Add a missing memory allocation failure check
        soc: fsl: guts: Revert commit 3c0d64e8
        soc: fsl: Correct MAINTAINERS database (SOC)
        soc: fsl: Correct MAINTAINERS database (QUICC ENGINE LIBRARY)
        soc: fsl: Replace kernel.h with the necessary inclusions
        dt-bindings: fsl,layerscape-dcfg: add missing compatible for lx2160a
        dt-bindings: qoriq-clock: add missing compatible for lx2160a
        ARM: dts: Use 32KiHz oscillator on devkit8000
        ARM: dts: switch timer config to common devkit8000 devicetree
        tee: optee: fix error return code in probe function
        arm64: dts: imx8ulp: Set #thermal-sensor-cells to 1 as required
        arm64: dts: imx8mm: Fix VPU Hanging
        ARM: dts: rockchip: fix a typo on rk3288 crypto-controller
        ARM: dts: rockchip: reorder rk322x hmdi clocks
        firmware: arm_scmi: Remove space in MODULE_ALIAS name
        arm64: dts: agilex: use the compatible "intel,socfpga-agilex-hsotg"
        ...
      719fce75
    • Linus Torvalds's avatar
      Merge tag 'efi-urgent-for-v5.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi · 201b5c01
      Linus Torvalds authored
      Pull EFI fixes from Ard Biesheuvel:
      
       - don't treat valid hartid U32_MAX as a failure return code (RISC-V)
      
       - avoid blocking query_variable_info() call when blocking is not
         allowed
      
      * tag 'efi-urgent-for-v5.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
        efivars: Respect "block" flag in efivar_entry_set_safe()
        riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value
      201b5c01
    • Jann Horn's avatar
      efivars: Respect "block" flag in efivar_entry_set_safe() · 258dd902
      Jann Horn authored
      When the "block" flag is false, the old code would sometimes still call
      check_var_size(), which wrongly tells ->query_variable_store() that it can
      block.
      
      As far as I can tell, this can't really materialize as a bug at the moment,
      because ->query_variable_store only does something on X86 with generic EFI,
      and in that configuration we always take the efivar_entry_set_nonblocking()
      path.
      
      Fixes: ca0e30dc ("efi: Add nonblocking option to efi_query_variable_store()")
      Signed-off-by: default avatarJann Horn <jannh@google.com>
      Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
      Link: https://lore.kernel.org/r/20220218180559.1432559-1-jannh@google.com
      258dd902
    • Sunil V L's avatar
      riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value · dcf0c838
      Sunil V L authored
      The get_boot_hartid_from_fdt() function currently returns U32_MAX
      for failure case which is not correct because U32_MAX is a valid
      hartid value. This patch fixes the issue by returning error code.
      
      Cc: <stable@vger.kernel.org>
      Fixes: d7071743 ("RISC-V: Add EFI stub support.")
      Signed-off-by: default avatarSunil V L <sunilvl@ventanamicro.com>
      Reviewed-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
      Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
      dcf0c838
  3. 27 Feb, 2022 4 commits
  4. 26 Feb, 2022 22 commits
  5. 25 Feb, 2022 7 commits
    • Linus Torvalds's avatar
      Merge tag 'configfs-5.17-2022-02-25' of git://git.infradead.org/users/hch/configfs · 9137eda5
      Linus Torvalds authored
      Pull configfs fix from Christoph Hellwig:
      
       - fix a race in configfs_{,un}register_subsystem (ChenXiaoSong)
      
      * tag 'configfs-5.17-2022-02-25' of git://git.infradead.org/users/hch/configfs:
        configfs: fix a race in configfs_{,un}register_subsystem()
      9137eda5
    • Linus Torvalds's avatar
      Merge tag 'for-5.17-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · c0419188
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "This is a hopefully last batch of fixes for defrag that got broken in
        5.16, all stable material.
      
        The remaining reported problem is excessive IO with autodefrag due to
        various conditions in the defrag code not met or missing"
      
      * tag 'for-5.17-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: reduce extent threshold for autodefrag
        btrfs: autodefrag: only scan one inode once
        btrfs: defrag: don't use merged extent map for their generation check
        btrfs: defrag: bring back the old file extent search behavior
        btrfs: defrag: remove an ambiguous condition for rejection
        btrfs: defrag: don't defrag extents which are already at max capacity
        btrfs: defrag: don't try to merge regular extents with preallocated extents
        btrfs: defrag: allow defrag_one_cluster() to skip large extent which is not a target
        btrfs: prevent copying too big compressed lzo segment
      c0419188
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · ca745723
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
      
       - Older "does not even boot" regression in qib from July
      
       - Bug fixes for error unwind in rtrs
      
       - Avoid a deadlock syzkaller found in srp
      
       - Fix another UAF syzkaller found in cma
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/cma: Do not change route.addr.src_addr outside state checks
        RDMA/ib_srp: Fix a deadlock
        RDMA/rtrs-clt: Move free_permit from free_clt to rtrs_clt_close
        RDMA/rtrs-clt: Fix possible double free in error case
        IB/qib: Fix duplicate sysfs directory name
      ca745723
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · 115ccd22
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - fix an bug generating spurious interrupts in gpio-rockchip
      
       - fix a race condition in gpiod_to_irq() called by GPIO consumers
      
      * tag 'gpio-fixes-for-v5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: Return EPROBE_DEFER if gc->to_irq is NULL
        gpio: rockchip: Reset int_bothedge when changing trigger
      115ccd22
    • Jason Gunthorpe's avatar
      RDMA/cma: Do not change route.addr.src_addr outside state checks · 22e9f710
      Jason Gunthorpe authored
      If the state is not idle then resolve_prepare_src() should immediately
      fail and no change to global state should happen. However, it
      unconditionally overwrites the src_addr trying to build a temporary any
      address.
      
      For instance if the state is already RDMA_CM_LISTEN then this will corrupt
      the src_addr and would cause the test in cma_cancel_operation():
      
                 if (cma_any_addr(cma_src_addr(id_priv)) && !id_priv->cma_dev)
      
      Which would manifest as this trace from syzkaller:
      
        BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 lib/list_debug.c:26
        Read of size 8 at addr ffff8881546491e0 by task syz-executor.1/32204
      
        CPU: 1 PID: 32204 Comm: syz-executor.1 Not tainted 5.12.0-rc8-syzkaller #0
        Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
        Call Trace:
         __dump_stack lib/dump_stack.c:79 [inline]
         dump_stack+0x141/0x1d7 lib/dump_stack.c:120
         print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:232
         __kasan_report mm/kasan/report.c:399 [inline]
         kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:416
         __list_add_valid+0x93/0xa0 lib/list_debug.c:26
         __list_add include/linux/list.h:67 [inline]
         list_add_tail include/linux/list.h:100 [inline]
         cma_listen_on_all drivers/infiniband/core/cma.c:2557 [inline]
         rdma_listen+0x787/0xe00 drivers/infiniband/core/cma.c:3751
         ucma_listen+0x16a/0x210 drivers/infiniband/core/ucma.c:1102
         ucma_write+0x259/0x350 drivers/infiniband/core/ucma.c:1732
         vfs_write+0x28e/0xa30 fs/read_write.c:603
         ksys_write+0x1ee/0x250 fs/read_write.c:658
         do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
         entry_SYSCALL_64_after_hwframe+0x44/0xae
      
      This is indicating that an rdma_id_private was destroyed without doing
      cma_cancel_listens().
      
      Instead of trying to re-use the src_addr memory to indirectly create an
      any address derived from the dst build one explicitly on the stack and
      bind to that as any other normal flow would do. rdma_bind_addr() will copy
      it over the src_addr once it knows the state is valid.
      
      This is similar to commit bc0bdc5a ("RDMA/cma: Do not change
      route.addr.src_addr.ss_family")
      
      Link: https://lore.kernel.org/r/0-v2-e975c8fd9ef2+11e-syz_cma_srcaddr_jgg@nvidia.com
      Cc: stable@vger.kernel.org
      Fixes: 732d41c5 ("RDMA/cma: Make the locking for automatic state transition more clear")
      Reported-by: syzbot+c94a3675a626f6333d74@syzkaller.appspotmail.com
      Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
      22e9f710
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 4b23c6ec
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "A few small driver specific fixes"
      
      * tag 'spi-fix-v5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: rockchip: terminate dma transmission when slave abort
        spi: rockchip: Fix error in getting num-cs property
        spi: spi-zynq-qspi: Fix a NULL pointer dereference in zynq_qspi_exec_mem_op()
      4b23c6ec
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v5.17-rc5' of... · 64b5132b
      Linus Torvalds authored
      Merge tag 'regulator-fix-v5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
      
      Pull regulator fixes from Mark Brown:
       "A series of fixes for the da9121 driver"
      
      * tag 'regulator-fix-v5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: da9121: Remove surplus DA9141 parameters
        regulator: da9121: Fix DA914x voltage value
        regulator: da9121: Fix DA914x current values
      64b5132b