1. 25 Feb, 2022 16 commits
    • 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
    • Linus Torvalds's avatar
      Merge tag 'regmap-fix-v5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap · 0e9894e6
      Linus Torvalds authored
      Pull regmap fix from Mark Brown:
       "A fix for interrupt controllers which require the explicit
        acknowledgement of interrupts using a different register to the one
        where interrupts are reported.
      
        Urgent for the few devices this affects"
      
      * tag 'regmap-fix-v5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
        regmap-irq: Update interrupt clear register for proper reset
      0e9894e6
    • Linus Torvalds's avatar
      Merge tag 'thermal-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · e48cb5c2
      Linus Torvalds authored
      Pull thermal control fix from Rafael Wysocki:
       "Fix a memory leak in the int340x thermal driver's ACPI notify handler
        (Chuansheng Liu)"
      
      * tag 'thermal-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: int340x: fix memory leak in int3400_notify()
      e48cb5c2
    • Linus Torvalds's avatar
      Merge tag 'pm-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 2800b6d0
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "Fix the throttle IRQ handling during cpufreq initialization on
        Qualcomm platforms (Bjorn Andersson)"
      
      * tag 'pm-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq: qcom-hw: Delay enabling throttle_irq
        cpufreq: Reintroduce ready() callback
      2800b6d0
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · c4765831
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are a few small driver fixes for 5.17-rc6 for reported issues.
      
        The majority of these are IIO fixes for small things, and the other
        two are a mvmem and mtd core conflict fix.
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'char-misc-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        mtd: core: Fix a conflict between MTD and NVMEM on wp-gpios property
        nvmem: core: Fix a conflict between MTD and NVMEM on wp-gpios property
        iio: imu: st_lsm6dsx: wait for settling time in st_lsm6dsx_read_oneshot
        iio: Fix error handling for PM
        iio: addac: ad74413r: correct comparator gpio getters mask usage
        iio: addac: ad74413r: use ngpio size when iterating over mask
        iio: addac: ad74413r: Do not reference negative array offsets
        iio: adc: men_z188_adc: Fix a resource leak in an error handling path
        iio: frequency: admv1013: remove the always true condition
        iio: accel: fxls8962af: add padding to regmap for SPI
        iio:imu:adis16480: fix buffering for devices with no burst mode
        iio: adc: ad7124: fix mask used for setting AIN_BUFP & AIN_BUFM bits
        iio: adc: tsc2046: fix memory corruption by preventing array overflow
      c4765831
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.17-rc6' of... · d68ccfdb
      Linus Torvalds authored
      Merge tag 'driver-core-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core fix from Greg KH:
       "Here is a single driver core fix for 5.17-rc6. It resolves a reported
        problem when the DMA map of a device is not properly released.
      
        It has been in linux-next with no reported problems"
      
      * tag 'driver-core-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        driver core: Free DMA range map when device is released
      d68ccfdb
    • Linus Torvalds's avatar
      Merge tag 'staging-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · eae9350e
      Linus Torvalds authored
      Pull staging driver fix from Greg KH:
       "Here is a single staging driver fix for 5.17-rc6.
      
        It resolves a reported problem in the fbtft fb_st7789v.c driver that
        could cause the display to be flipped in cold weather.
      
        It has been in linux-next with no reported problems"
      
      * tag 'staging-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: fbtft: fb_st7789v: reset display before initialization
      eae9350e
    • Linus Torvalds's avatar
      Merge tag 'tty-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · d8fc3bb6
      Linus Torvalds authored
      Pull tty/serial driver fixes from Greg KH:
       "Here are some small n_gsm and sc16is7xx serial driver fixes for
        5.17-rc6.
      
        The n_gsm fixes are from Siemens as it seems they are using the line
        discipline and fixing up a number of issues they found in their
        testing. The sc16is7xx serial driver fix is for a reported problem
        with that chip.
      
        All of these have been in linux-next with no reported problems"
      
      * tag 'tty-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        sc16is7xx: Fix for incorrect data being transmitted
        tty: n_gsm: fix deadlock in gsmtty_open()
        tty: n_gsm: fix wrong modem processing in convergence layer type 2
        tty: n_gsm: fix wrong tty control line for flow control
        tty: n_gsm: fix NULL pointer access due to DLCI release
        tty: n_gsm: fix proper link termination after failed open
        tty: n_gsm: fix encoding of command/response bit
        tty: n_gsm: fix encoding of control signal octet bit DV
      d8fc3bb6
    • Linus Torvalds's avatar
      Merge tag 'usb-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 548b1af4
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are a number of small USB driver fixes for 5.17-rc6 to resolve
        reported problems and add new device ids. They include:
      
         - dwc3:
            - device mapping fix
            - new device ids
            - driver fixes
      
         - xhci driver fixes
      
         - gadget driver fixes
      
         - usb-serial driver device id updates
      
        All of these have been in linux-next with no reported problems"
      
      * tag 'usb-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: gadget: rndis: add spinlock for rndis response list
        usb: dwc3: gadget: Let the interrupt handler disable bottom halves.
        USB: gadget: validate endpoint index for xilinx udc
        USB: serial: option: add Telit LE910R1 compositions
        USB: serial: option: add support for DW5829e
        Revert "USB: serial: ch341: add new Product ID for CH341A"
        usb: dwc2: drd: fix soft connect when gadget is unconfigured
        usb: dwc3: pci: Fix Bay Trail phy GPIO mappings
        tps6598x: clear int mask on probe failure
        xhci: Prevent futile URB re-submissions due to incorrect return value.
        xhci: re-initialize the HC during resume if HCE was set
        usb: dwc3: pci: Add "snps,dis_u2_susphy_quirk" for Intel Bay Trail
        usb: dwc3: pci: add support for the Intel Raptor Lake-S
      548b1af4
    • Linus Torvalds's avatar
      Merge tag 'ata-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · 78081594
      Linus Torvalds authored
      Pull ata fixes from Damien Le Moal:
       "Two fixes for the pata_hpt37x driver, both from Sergey:
      
         - Fix a PCI register access using an incorrect size (8bits instead of
           16bits)
      
         - Make sure to always disable the primary channel as it is unused"
      
      * tag 'ata-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        ata: pata_hpt37x: disable primary channel on HPT371
        ata: pata_hpt37x: fix PCI clock detection
      78081594
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 53ab78cd
      Linus Torvalds authored
      Pull clk fixes from Stephen Boyd:
       "A couple driver fixes in the clk subsystem
      
         - Fix a hang due to bad clk parent in the Ingenic jz4725b driver
      
         - Fix SD controllers on Qualcomm MSM8994 SoCs by removing clks that
           shouldn't be touched"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: jz4725b: fix mmc0 clock gating
        clk: qcom: gcc-msm8994: Remove NoC clocks
      53ab78cd
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2022-02-25' of git://anongit.freedesktop.org/drm/drm · 5ee3d001
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular drm fixes pull, i915, amdgpu and tegra mostly, all pretty
        small.
      
        core:
         - edid: Always set RGB444
      
        tegra:
         - tegra186 suspend/resume fixes
         - syncpoint wait fix
         - build warning fix
         - eDP on older devices fix
      
        amdgpu:
         - Display FP fix
         - PCO powergating fix
         - RDNA2 OEM SKU stability fixes
         - Display PSR fix
         - PCI ASPM fix
         - Display link encoder fix for TEST_COMMIT
         - Raven2 suspend/resume fix
         - Fix a regression in virtual display support
         - GPUVM eviction fix
      
        i915:
         - Fix QGV handling on ADL-P+
         - Fix bw atomic check when switching between SAGV vs. no SAGV
         - Disconnect PHYs left connected by BIOS on disabled ports
         - Fix SAVG to no SAGV transitions on TGL+
         - Print PHY name properly on calibration error (DG2)
      
        imx:
         - dcss: Select GEM CMA helpers
      
        radeon:
         - Fix some variables's type
      
        vc4:
         - Fix codec cleanup
         - Fix PM reference counting"
      
      * tag 'drm-fixes-2022-02-25' of git://anongit.freedesktop.org/drm/drm: (24 commits)
        drm/amdgpu: check vm ready by amdgpu_vm->evicting flag
        drm/amdgpu: bypass tiling flag check in virtual display case (v2)
        Revert "drm/amdgpu: add modifiers in amdgpu_vkms_plane_init()"
        drm/amdgpu: do not enable asic reset for raven2
        drm/amd/display: Fix stream->link_enc unassigned during stream removal
        drm/amd: Check if ASPM is enabled from PCIe subsystem
        drm/edid: Always set RGB444
        drm/tegra: dpaux: Populate AUX bus
        drm/radeon: fix variable type
        drm/amd/display: For vblank_disable_immediate, check PSR is really used
        drm/amd/pm: fix some OEM SKU specific stability issues
        drm/amdgpu: disable MMHUB PG for Picasso
        drm/amd/display: Protect update_bw_bounding_box FPU code.
        drm/i915/dg2: Print PHY name properly on calibration error
        drm/i915: Fix bw atomic check when switching between SAGV vs. no SAGV
        drm/i915: Correctly populate use_sagv_wm for all pipes
        drm/i915: Disconnect PHYs left connected by BIOS on disabled ports
        drm/i915: Widen the QGV point mask
        drm/imx/dcss: i.MX8MQ DCSS select DRM_GEM_CMA_HELPER
        drm/vc4: crtc: Fix runtime_pm reference counting
        ...
      5ee3d001
  2. 24 Feb, 2022 24 commits