1. 21 Jan, 2023 3 commits
  2. 20 Jan, 2023 36 commits
    • Linus Torvalds's avatar
      Merge tag '6.2-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 4e31bada
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
      
       - important fix for packet signature calculation error
      
       - three fixes to correct DFS deadlock, and DFS refresh problem
      
       - remove an unused DFS function, and duplicate tcon refresh code
      
       - DFS cache lookup fix
      
       - uninitialized rc fix
      
      * tag '6.2-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: remove unused function
        cifs: do not include page data when checking signature
        cifs: fix return of uninitialized rc in dfs_cache_update_tgthint()
        cifs: handle cache lookup errors different than -ENOENT
        cifs: remove duplicate code in __refresh_tcon()
        cifs: don't take exclusive lock for updating target hints
        cifs: avoid re-lookups in dfs_cache_find()
        cifs: fix potential deadlock in cache_refresh_path()
      4e31bada
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v6.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 8440ffcd
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
      
       - Compilation fix for Sunplus sp7021
      
       - Add some missing headers after a cleanup to the Nomadik driver
      
       - Fix pull type and mux routes on Rockchip RK3568
      
      * tag 'pinctrl-v6.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        pinctrl: rockchip: fix mux route data for rk3568
        pinctrl: rockchip: fix reading pull type on rk3568
        pinctrl: nomadik: Add missing header(s)
        pinctrl: sp7021: fix unused function warning
      8440ffcd
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 8974efaa
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
      
       - Several hfi1 patches fixing some long standing driver bugs
      
       - Overflow when working with sg lists with elements greater than 4G
      
       - An rxe regression with object numbering after the mrs reach their
         limit
      
       - A theoretical problem with the scatterlist merging code
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        lib/scatterlist: Fix to calculate the last_pg properly
        IB/hfi1: Remove user expected buffer invalidate race
        IB/hfi1: Immediately remove invalid memory from hardware
        IB/hfi1: Fix expected receive setup error exit issues
        IB/hfi1: Reserve user expected TIDs
        IB/hfi1: Reject a zero-length user expected buffer
        RDMA/core: Fix ib block iterator counter overflow
        RDMA/rxe: Prevent faulty rkey generation
        RDMA/rxe: Fix inaccurate constants in rxe_type_info
      8974efaa
    • Linus Torvalds's avatar
      Merge tag 'block-6.2-2023-01-20' of git://git.kernel.dk/linux · edc00350
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Various little tweaks all over the place:
      
         - NVMe pull request via Christoph:
             - fix controller shutdown regression in nvme-apple (Janne Grunau)
             - fix a polling on timeout regression in nvme-pci (Keith Busch)
      
         - Fix a bug in the read request side request allocation caching
           (Pavel)
      
         - pktcdvd was brought back after we configured a NULL return on bio
           splits, make it consistent with the others (me)
      
         - BFQ refcount fix (Yu)
      
         - Block cgroup policy activation fix (Yu)
      
         - Fix for an md regression introduced in the 6.2 cycle (Adrian)"
      
      * tag 'block-6.2-2023-01-20' of git://git.kernel.dk/linux:
        nvme-pci: fix timeout request state check
        nvme-apple: only reset the controller when RTKit is running
        nvme-apple: reset controller during shutdown
        block: fix hctx checks for batch allocation
        block/rnbd-clt: fix wrong max ID in ida_alloc_max
        blk-cgroup: fix missing pd_online_fn() while activating policy
        pktcdvd: check for NULL returna fter calling bio_split_to_limits()
        block, bfq: switch 'bfqg->ref' to use atomic refcount apis
        md: fix incorrect declaration about claim_rdev in md_import_device
      edc00350
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.2-2023-01-20' of git://git.kernel.dk/linux · 9c38747f
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "Fixes for the MSG_RING opcode. Nothing really major:
      
         - Fix an overflow missing serialization around posting CQEs to the
           target ring (me)
      
         - Disable MSG_RING on a ring that isn't enabled yet. There's nothing
           really wrong with allowing it, but 1) it's somewhat odd as nobody
           can receive them yet, and 2) it means that using the right delivery
           mechanism might change. As nobody should be sending CQEs to a ring
           that isn't enabled yet, let's just disable it (Pavel)
      
         - Tweak to when we decide to post remotely or not for MSG_RING
           (Pavel)"
      
      * tag 'io_uring-6.2-2023-01-20' of git://git.kernel.dk/linux:
        io_uring/msg_ring: fix remote queue to disabled ring
        io_uring/msg_ring: fix flagging remote execution
        io_uring/msg_ring: fix missing lock on overflow for IOPOLL
        io_uring/msg_ring: move double lock/unlock helpers higher up
      9c38747f
    • Linus Torvalds's avatar
      Merge tag 'for-6.2-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 26e57507
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
      
       - fix potential out-of-bounds access to leaf data when seeking in an
         inline file
      
       - fix potential crash in quota when rescan races with disable
      
       - reimplement super block signature scratching by marking page/folio
         dirty and syncing block device, allow removing write_one_page
      
      * tag 'for-6.2-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: fix race between quota rescan and disable leading to NULL pointer deref
        btrfs: fix invalid leaf access due to inline extent during lseek
        btrfs: stop using write_one_page in btrfs_scratch_superblock
        btrfs: factor out scratching of one regular super block
      26e57507
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-fixes-6.2-rc5' of... · d9166cb3
      Linus Torvalds authored
      Merge tag 'linux-kselftest-fixes-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull Kselftest fix from Shuah Khan:
       "Fix an error seen during unconfigured LLVM builds"
      
      * tag 'linux-kselftest-fixes-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        kselftest: Fix error message for unconfigured LLVM builds
      d9166cb3
    • Linus Torvalds's avatar
      Merge tag 'thermal-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · dc181759
      Linus Torvalds authored
      Pull thermal control fix from Rafael Wysocki:
       "Modify __thermal_cooling_device_register() to make it call
        put_device() after invoking device_register() and fix up a few error
        paths calling thermal_cooling_device_destroy_sysfs() unnecessarily
        (Viresh Kumar)"
      
      * tag 'thermal-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: core: call put_device() only after device_register() fails
      dc181759
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · fe563a2c
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These update the ACPICA entry in MAINTAINERS, add a backlight handling
        quirk and fix the ACPI PRM (platform runtime) mechanism support.
      
        Specifics:
      
         - Update the ACPICA development list address in MAINTAINERS to the
           new one that does not bounce (Rafael Wysocki)
      
         - Check whether EFI runtime is available when registering the ACPI
           PRM address space handler and when running it (Ard Biesheuvel)
      
         - Add backlight=native DMI quirk for Acer Aspire 4810T to the ACPI
           video driver (Hans de Goede)"
      
      * tag 'acpi-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: PRM: Check whether EFI runtime is available
        ACPI: video: Add backlight=native DMI quirk for Acer Aspire 4810T
        MAINTAINERS: Update the ACPICA development list address
      fe563a2c
    • Linus Torvalds's avatar
      Merge tag 'mmc-v6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 1670d7e6
      Linus Torvalds authored
      Pull MMC fixes from Ulf Hansson:
      
       - sunxi-mmc: Fix clock refcount imbalance during unbind
      
       - sdhci-esdhc-imx: Fix some tuning settings
      
      * tag 'mmc-v6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: sunxi-mmc: Fix clock refcount imbalance during unbind
        mmc: sdhci-esdhc-imx: correct the tuning start tap and step setting
      1670d7e6
    • Linus Torvalds's avatar
      Merge tag 'soc-fixes-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 1ed46384
      Linus Torvalds authored
      Pull ARM SoC DT and driver fixes from Arnd Bergmann:
       "Lots of dts fixes for Qualcomm Snapdragon and NXP i.MX platforms,
        including:
      
         - A regression fix for SDHCI controllers on Inforce 6540, and another
           SDHCI fix on SM8350
      
         - Reenable cluster idle on sm8250 after the the code fix is upstream
      
         - multiple fixes for the QMP PHY binding, needing an incompatible dt
           change
      
         - The reserved memory map is updated on Xiaomi Mi 4C and Huawei Nexus
           6P, to avoid instabilities caused by use of protected memory
           regions
      
         - Fix i.MX8MP DT for missing GPC Interrupt, power-domain typo and USB
           clock error
      
         - A couple of verdin-imx8mm DT fixes for audio playback support
      
         - Fix pca9547 i2c-mux node name for i.MX and Vybrid device trees
      
         - Fix an imx93-11x11-evk uSDHC pad setting problem that causes Micron
           eMMC CMD8 CRC error in HS400ES/HS400 mode
      
        The remaining ARM and RISC-V platforms only have very few smaller dts
        bugfixes this time:
      
         - A fix for the SiFive unmatched board's PCI memory space
      
         - A revert to fix a regression with GPIO on Marvell Armada
      
         - A fix for the UART address on Marvell AC5
      
         - Missing chip-select phandles for stm32 boards
      
         - Selecting the correct clock for the sam9x60 memory controller
      
         - Amlogic based Odroid-HC4 needs a revert to restore USB
           functionality.
      
        And finally, there are some minor code fixes:
      
         - Build fixes for OMAP1, pxa, riscpc, raspberry pi firmware, and zynq
           firmware
      
         - memory controller driver fixes for an OMAP regression and older
           bugs on tegra, atmel and mvebu
      
         - reset controller fixes for ti-sci and uniphier platforms
      
         - ARM SCMI firmware fixes for a couple of rare corner cases
      
         - Qualcomm platform driver fixes for incorrect error handling and a
           backwards compatibility fix for the apr driver using older dtb
      
         - NXP i.MX SoC driver fixes for HDMI output, error handling in the
           imx8 soc-id and missing reference counting on older cpuid code"
      
      * tag 'soc-fixes-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (60 commits)
        firmware: zynqmp: fix declarations for gcc-13
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp151a-prtt1l
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp157c-emstamp-argon
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp15xx-dhcom-som
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp15xx-dhcor-som
        ARM: dts: at91: sam9x60: fix the ddr clock for sam9x60
        ARM: omap1: fix building gpio15xx
        ARM: omap1: fix !ARCH_OMAP1_ANY link failures
        firmware: raspberrypi: Fix type assignment
        arm64: dts: qcom: msm8992-libra: Fix the memory map
        arm64: dts: qcom: msm8992: Don't use sfpb mutex
        PM: AVS: qcom-cpr: Fix an error handling path in cpr_probe()
        arm64: dts: msm8994-angler: fix the memory map
        arm64: dts: marvell: AC5/AC5X: Fix address for UART1
        ARM: footbridge: drop unnecessary inclusion
        Revert "ARM: dts: armada-39x: Fix compatible string for gpios"
        Revert "ARM: dts: armada-38x: Fix compatible string for gpios"
        ARM: pxa: enable PXA310/PXA320 for DT-only build
        riscv: dts: sifive: fu740: fix size of pcie 32bit memory
        soc: qcom: apr: Make qcom,protection-domain optional again
        ...
      1ed46384
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-01-20' of git://anongit.freedesktop.org/drm/drm · ff83fec8
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Just a pretty regular week for this stage of things, amdgpu and i915,
        along with some msm and misc others.
      
        fb-helper:
         - switcheroo fix
      
        msm:
         - kexec shutdown fix
         - fix potential double free
      
        i915:
         - Reject display plane with height == 0
         - re-disable RC6p on Sandy Bridge
         - Fix hugepages' selftest
         - DG2 hw workarounds
         - switcheroo fix
      
        vc4:
         - fix a memory leak
      
        panfrost:
         - Kconfig fix
      
        amdgpu:
         - Fix display scaling
         - Fix RN/CZN power reporting on some firmware versions
         - Colorspace fixes
         - Fix resource freeing in error case in CS IOCTL
         - Fix warning on driver unload
         - GC11 fixes
         - DCN 3.1.4/5 S/G display workarounds"
      
      * tag 'drm-fixes-2023-01-20' of git://anongit.freedesktop.org/drm/drm: (24 commits)
        drm/amd/display: disable S/G display on DCN 3.1.4
        drm/amd/display: disable S/G display on DCN 3.1.5
        drm/amdgpu: allow multipipe policy on ASICs with one MEC
        drm/amdgpu: correct MEC number for gfx11 APUs
        drm/amd/display: fix issues with driver unload
        drm/amdgpu: fix amdgpu_job_free_resources v2
        drm/amd/display: Fix COLOR_SPACE_YCBCR2020_TYPE matrix
        drm/amd/display: Calculate output_color_space after pixel encoding adjustment
        drm/amdgpu: fix cleaning up reserved VMID on release
        drm/amdgpu: Correct the power calcultion for Renior/Cezanne.
        drm/amd/display: Fix set scaling doesn's work
        drm/i915: Remove unused variable
        drm/i915/dg2: Introduce Wa_18019271663
        drm/i915/dg2: Introduce Wa_18018764978
        drm/fb-helper: Set framebuffer for vga-switcheroo clients
        drm/i915: Allow switching away via vga-switcheroo if uninitialized
        drm/i915/selftests: Unwind hugepages to drop wakeref on error
        drm/i915: re-disable RC6p on Sandy Bridge
        drm/panfrost: fix GENERIC_ATOMIC64 dependency
        drm/i915/display: Check source height is > 0
        ...
      ff83fec8
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-fix-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · 35929dae
      Linus Torvalds authored
      Pull dmaengine fixes from Vinod Koul:
      
       - email address Update for Jie Hai
      
       - fix double increment of client_count in dma_chan_get()
      
       - idxd driver fixes: use after free, probe error handling and callback
         on wq disable
      
       - fix for qcom gpi driver GO tre
      
       - ptdma locking fix
      
       - tegra & imx-sdma mem leak fix
      
      * tag 'dmaengine-fix-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine:
        ptdma: pt_core_execute_cmd() should use spinlock
        dmaengine: tegra: Fix memory leak in terminate_all()
        dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()
        dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init
        dmaengine: Fix double increment of client_count in dma_chan_get()
        dmaengine: tegra210-adma: fix global intr clear
        Add exception protection processing for vd in axi_chan_handle_err function
        dmaengine: lgm: Move DT parsing after initialization
        MAINTAINERS: update Jie Hai's email address
        dmaengine: ti: k3-udma: Do conditional decrement of UDMA_CHAN_RT_PEER_BCNT_REG
        dmaengine: idxd: Do not call DMX TX callbacks during workqueue disable
        dmaengine: idxd: Prevent use after free on completion memory
        dmaengine: idxd: Let probe fail when workqueue cannot be enabled
        dmaengine: qcom: gpi: Set link_rx bit on GO TRE for rx operation
      35929dae
    • Linus Torvalds's avatar
      Merge tag 'phy-fixes-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy · aaaf919c
      Linus Torvalds authored
      Pull phy fixes from Vinod Koul:
      
       - binding fix for g12a phys
      
       - Kconfig operator precedence for TI driver
      
       - renesas: register setting
      
       - sunplus: null deref fix
      
       - rockchip-inno fix for clk_disable_unprepare()
      
       - MDM9607 init sequence revert due to regression
      
      * tag 'phy-fixes-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy:
        phy: phy-can-transceiver: Skip warning if no "max-bitrate"
        dt-bindings: phy: g12a-usb2-phy: fix compatible string documentation
        dt-bindings: phy: g12a-usb3-pcie-phy: fix compatible string documentation
        phy: freescale: imx8m-pcie: Add one missing error return
        phy: Revert "phy: qualcomm: usb28nm: Add MDM9607 init sequence"
        phy: rockchip-inno-usb2: Fix missing clk_disable_unprepare() in rockchip_usb2phy_power_on()
        phy: renesas: r8a779f0-eth-serdes: Fix register setting
        phy: usb: sunplus: Fix potential null-ptr-deref in sp_usb_phy_probe()
        phy: ti: fix Kconfig warning and operator precedence
      aaaf919c
    • Linus Torvalds's avatar
      Merge tag 'net-6.2-rc5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 5deaa985
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Including fixes from wireless, bluetooth, bpf and netfilter.
      
        Current release - regressions:
      
         - Revert "net: team: use IFF_NO_ADDRCONF flag to prevent ipv6
           addrconf", fix nsna_ping mode of team
      
         - wifi: mt76: fix bugs in Rx queue handling and DMA mapping
      
         - eth: mlx5:
            - add missing mutex_unlock in error reporter
            - protect global IPsec ASO with a lock
      
        Current release - new code bugs:
      
         - rxrpc: fix wrong error return in rxrpc_connect_call()
      
        Previous releases - regressions:
      
         - bluetooth: hci_sync: fix use of HCI_OP_LE_READ_BUFFER_SIZE_V2
      
         - wifi:
            - mac80211: fix crashes on Rx due to incorrect initialization of
              rx->link and rx->link_sta
            - mac80211: fix bugs in iTXQ conversion - Tx stalls, incorrect
              aggregation handling, crashes
            - brcmfmac: fix regression for Broadcom PCIe wifi devices
            - rndis_wlan: prevent buffer overflow in rndis_query_oid
      
         - netfilter: conntrack: handle tcp challenge acks during connection
           reuse
      
         - sched: avoid grafting on htb_destroy_class_offload when destroying
      
         - virtio-net: correctly enable callback during start_xmit, fix stalls
      
         - tcp: avoid the lookup process failing to get sk in ehash table
      
         - ipa: disable ipa interrupt during suspend
      
         - eth: stmmac: enable all safety features by default
      
        Previous releases - always broken:
      
         - bpf:
            - fix pointer-leak due to insufficient speculative store bypass
              mitigation (Spectre v4)
            - skip task with pid=1 in send_signal_common() to avoid a splat
            - fix BPF program ID information in BPF_AUDIT_UNLOAD as well as
              PERF_BPF_EVENT_PROG_UNLOAD events
            - fix potential deadlock in htab_lock_bucket from same bucket
              index but different map_locked index
      
         - bluetooth:
            - fix a buffer overflow in mgmt_mesh_add()
            - hci_qca: fix driver shutdown on closed serdev
            - ISO: fix possible circular locking dependency
            - CIS: hci_event: fix invalid wait context
      
         - wifi: brcmfmac: fixes for survey dump handling
      
         - mptcp: explicitly specify sock family at subflow creation time
      
         - netfilter: nft_payload: incorrect arithmetics when fetching VLAN
           header bits
      
         - tcp: fix rate_app_limited to default to 1
      
         - l2tp: close all race conditions in l2tp_tunnel_register()
      
         - eth: mlx5: fixes for QoS config and eswitch configuration
      
         - eth: enetc: avoid deadlock in enetc_tx_onestep_tstamp()
      
         - eth: stmmac: fix invalid call to mdiobus_get_phy()
      
        Misc:
      
         - ethtool: add netlink attr in rss get reply only if the value is not
           empty"
      
      * tag 'net-6.2-rc5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (88 commits)
        Revert "Merge branch 'octeontx2-af-CPT'"
        tcp: fix rate_app_limited to default to 1
        bnxt: Do not read past the end of test names
        net: stmmac: enable all safety features by default
        octeontx2-af: add mbox to return CPT_AF_FLT_INT info
        octeontx2-af: update cpt lf alloc mailbox
        octeontx2-af: restore rxc conf after teardown sequence
        octeontx2-af: optimize cpt pf identification
        octeontx2-af: modify FLR sequence for CPT
        octeontx2-af: add mbox for CPT LF reset
        octeontx2-af: recover CPT engine when it gets fault
        net: dsa: microchip: ksz9477: port map correction in ALU table entry register
        selftests/net: toeplitz: fix race on tpacket_v3 block close
        net/ulp: use consistent error code when blocking ULP
        octeontx2-pf: Fix the use of GFP_KERNEL in atomic context on rt
        tcp: avoid the lookup process failing to get sk in ehash table
        Revert "net: team: use IFF_NO_ADDRCONF flag to prevent ipv6 addrconf"
        MAINTAINERS: add networking entries for Willem
        net: sched: gred: prevent races when adding offloads to stats
        l2tp: prevent lockdep issue in l2tp_tunnel_register()
        ...
      5deaa985
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-prm' and 'acpi-video' · 3bdd346e
      Rafael J. Wysocki authored
      Merge an ACPI PRM (platform runtime) support fix and an ACPI backlight
      quirk for 6.2-rc5:
      
       - Check whether EFI runtime is available when registering the ACPI PRM
         address space handler and when running it (Ard Biesheuvel).
      
       - Add backlight=native DMI quirk for Acer Aspire 4810T to the ACPI
         video driver (Hans de Goede).
      
      * acpi-prm:
        ACPI: PRM: Check whether EFI runtime is available
      
      * acpi-video:
        ACPI: video: Add backlight=native DMI quirk for Acer Aspire 4810T
      3bdd346e
    • Pavel Begunkov's avatar
      io_uring/msg_ring: fix remote queue to disabled ring · 8579538c
      Pavel Begunkov authored
      IORING_SETUP_R_DISABLED rings don't have the submitter task set, so
      it's not always safe to use ->submitter_task. Disallow posting msg_ring
      messaged to disabled rings. Also add task NULL check for loosy sync
      around testing for IORING_SETUP_R_DISABLED.
      
      Cc: stable@vger.kernel.org
      Fixes: 6d043ee1 ("io_uring: do msg_ring in target task via tw")
      Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      8579538c
    • Pavel Begunkov's avatar
      io_uring/msg_ring: fix flagging remote execution · 56d8e318
      Pavel Begunkov authored
      There is a couple of problems with queueing a tw in io_msg_ring_data()
      for remote execution. First, once we queue it the target ring can
      go away and so setting IORING_SQ_TASKRUN there is not safe. Secondly,
      the userspace might not expect IORING_SQ_TASKRUN.
      
      Extract a helper and uniformly use TWA_SIGNAL without TWA_SIGNAL_NO_IPI
      tricks for now, just as it was done in the original patch.
      
      Cc: stable@vger.kernel.org
      Fixes: 6d043ee1 ("io_uring: do msg_ring in target task via tw")
      Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      56d8e318
    • Jakub Kicinski's avatar
      Revert "Merge branch 'octeontx2-af-CPT'" · 45a919bb
      Jakub Kicinski authored
      This reverts commit b4fbf0b2, reversing
      changes made to 6c977c5c.
      
      This seems like net-next material.
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      45a919bb
    • Jens Axboe's avatar
      Merge tag 'nvme-6.2-2023-01-20' of git://git.infradead.org/nvme into block-6.2 · 955bc122
      Jens Axboe authored
      Pull NVMe fixes from Christoph:
      
      "nvme fixes for Linux 6.2
      
       - fix  controller shutdown regression in nvme-apple (Janne Grunau)
       - fix a polling on timeout regression in nvme-pci (Keith Busch)"
      
      * tag 'nvme-6.2-2023-01-20' of git://git.infradead.org/nvme:
        nvme-pci: fix timeout request state check
        nvme-apple: only reset the controller when RTKit is running
        nvme-apple: reset controller during shutdown
      955bc122
    • David Morley's avatar
      tcp: fix rate_app_limited to default to 1 · 300b655d
      David Morley authored
      The initial default value of 0 for tp->rate_app_limited was incorrect,
      since a flow is indeed application-limited until it first sends
      data. Fixing the default to be 1 is generally correct but also
      specifically will help user-space applications avoid using the initial
      tcpi_delivery_rate value of 0 that persists until the connection has
      some non-zero bandwidth sample.
      
      Fixes: eb8329e0 ("tcp: export data delivery rate")
      Suggested-by: default avatarYuchung Cheng <ycheng@google.com>
      Signed-off-by: default avatarDavid Morley <morleyd@google.com>
      Signed-off-by: default avatarNeal Cardwell <ncardwell@google.com>
      Tested-by: default avatarDavid Morley <morleyd@google.com>
      Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      300b655d
    • Kees Cook's avatar
      bnxt: Do not read past the end of test names · d3e599c0
      Kees Cook authored
      Test names were being concatenated based on a offset beyond the end of
      the first name, which tripped the buffer overflow detection logic:
      
       detected buffer overflow in strnlen
       [...]
       Call Trace:
       bnxt_ethtool_init.cold+0x18/0x18
      
      Refactor struct hwrm_selftest_qlist_output to use an actual array,
      and adjust the concatenation to use snprintf() rather than a series of
      strncat() calls.
      Reported-by: default avatarNiklas Cassel <Niklas.Cassel@wdc.com>
      Link: https://lore.kernel.org/lkml/Y8F%2F1w1AZTvLglFX@x1-carbon/Tested-by: default avatarNiklas Cassel <Niklas.Cassel@wdc.com>
      Fixes: eb513658 ("bnxt_en: Add basic ethtool -t selftest support.")
      Cc: Michael Chan <michael.chan@broadcom.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Paolo Abeni <pabeni@redhat.com>
      Cc: netdev@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Reviewed-by: default avatarMichael Chan <michael.chan@broadcom.com>
      Reviewed-by: default avatarNiklas Cassel <niklas.cassel@wdc.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d3e599c0
    • Arnd Bergmann's avatar
      firmware: zynqmp: fix declarations for gcc-13 · d2c86555
      Arnd Bergmann authored
      gcc-13.0.1 reports a type mismatch for two functions:
      
      drivers/firmware/xilinx/zynqmp.c:1228:5: error: conflicting types for 'zynqmp_pm_set_rpu_mode' due to enum/integer mismatch; have 'int(u32,  enum rpu_oper_mode)' {aka 'int(unsigned int,  enum rpu_oper_mode)'} [-Werror=enum-int-mismatch]
       1228 | int zynqmp_pm_set_rpu_mode(u32 node_id, enum rpu_oper_mode rpu_mode)
            |     ^~~~~~~~~~~~~~~~~~~~~~
      In file included from drivers/firmware/xilinx/zynqmp.c:25:
      include/linux/firmware/xlnx-zynqmp.h:552:5: note: previous declaration of 'zynqmp_pm_set_rpu_mode' with type 'int(u32,  u32)' {aka 'int(unsigned int,  unsigned int)'}
        552 | int zynqmp_pm_set_rpu_mode(u32 node_id, u32 arg1);
            |     ^~~~~~~~~~~~~~~~~~~~~~
      drivers/firmware/xilinx/zynqmp.c:1246:5: error: conflicting types for 'zynqmp_pm_set_tcm_config' due to enum/integer mismatch; have 'int(u32,  enum rpu_tcm_comb)' {aka 'int(unsigned int,  enum rpu_tcm_comb)'} [-Werror=enum-int-mismatch]
       1246 | int zynqmp_pm_set_tcm_config(u32 node_id, enum rpu_tcm_comb tcm_mode)
            |     ^~~~~~~~~~~~~~~~~~~~~~~~
      include/linux/firmware/xlnx-zynqmp.h:553:5: note: previous declaration of 'zynqmp_pm_set_tcm_config' with type 'int(u32,  u32)' {aka 'int(unsigned int,  unsigned int)'}
        553 | int zynqmp_pm_set_tcm_config(u32 node_id, u32 arg1);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~
      
      Change the declaration in the header to match the function definition.
      Acked-by: default avatarMichal Simek <michal.simek@amd.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      d2c86555
    • Arnd Bergmann's avatar
      Merge tag 'at91-fixes-6.2' of... · aca5d87d
      Arnd Bergmann authored
      Merge tag 'at91-fixes-6.2' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into arm/fixes
      
      AT91 fixes for 6.2:
      
      It contains:
      - fix the clock provided via DT for DDR controller on SAM9X60
      
      * tag 'at91-fixes-6.2' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux:
        ARM: dts: at91: sam9x60: fix the ddr clock for sam9x60
      
      Link: https://lore.kernel.org/r/20230119112101.42045-1-claudiu.beznea@microchip.comSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      aca5d87d
    • Arnd Bergmann's avatar
      Merge tag 'stm32-dt-for-v6.2-fixes-1' of... · b7b07428
      Arnd Bergmann authored
      Merge tag 'stm32-dt-for-v6.2-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32 into arm/fixes
      
      STM32 DT fixes for v6.2, round 1
      
      Highlights:
      -----------
      
       -STM32MP15:
        - Fix missing chip select phandle in several stm32mp15x based boards.
      
      * tag 'stm32-dt-for-v6.2-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32:
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp151a-prtt1l
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp157c-emstamp-argon
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp15xx-dhcom-som
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp15xx-dhcor-som
      
      Link: https://lore.kernel.org/r/3fe26bf9-297b-5c78-682b-37fa6d8b6190@foss.st.comSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      b7b07428
    • Andrew Halaney's avatar
      net: stmmac: enable all safety features by default · fdfc76a1
      Andrew Halaney authored
      In the original implementation of dwmac5
      commit 8bf993a5 ("net: stmmac: Add support for DWMAC5 and implement Safety Features")
      all safety features were enabled by default.
      
      Later it seems some implementations didn't have support for all the
      features, so in
      commit 5ac712dc ("net: stmmac: enable platform specific safety features")
      the safety_feat_cfg structure was added to the callback and defined for
      some platforms to selectively enable these safety features.
      
      The problem is that only certain platforms were given that software
      support. If the automotive safety package bit is set in the hardware
      features register the safety feature callback is called for the platform,
      and for platforms that didn't get a safety_feat_cfg defined this results
      in the following NULL pointer dereference:
      
      [    7.933303] Call trace:
      [    7.935812]  dwmac5_safety_feat_config+0x20/0x170 [stmmac]
      [    7.941455]  __stmmac_open+0x16c/0x474 [stmmac]
      [    7.946117]  stmmac_open+0x38/0x70 [stmmac]
      [    7.950414]  __dev_open+0x100/0x1dc
      [    7.954006]  __dev_change_flags+0x18c/0x204
      [    7.958297]  dev_change_flags+0x24/0x6c
      [    7.962237]  do_setlink+0x2b8/0xfa4
      [    7.965827]  __rtnl_newlink+0x4ec/0x840
      [    7.969766]  rtnl_newlink+0x50/0x80
      [    7.973353]  rtnetlink_rcv_msg+0x12c/0x374
      [    7.977557]  netlink_rcv_skb+0x5c/0x130
      [    7.981500]  rtnetlink_rcv+0x18/0x2c
      [    7.985172]  netlink_unicast+0x2e8/0x340
      [    7.989197]  netlink_sendmsg+0x1a8/0x420
      [    7.993222]  ____sys_sendmsg+0x218/0x280
      [    7.997249]  ___sys_sendmsg+0xac/0x100
      [    8.001103]  __sys_sendmsg+0x84/0xe0
      [    8.004776]  __arm64_sys_sendmsg+0x24/0x30
      [    8.008983]  invoke_syscall+0x48/0x114
      [    8.012840]  el0_svc_common.constprop.0+0xcc/0xec
      [    8.017665]  do_el0_svc+0x38/0xb0
      [    8.021071]  el0_svc+0x2c/0x84
      [    8.024212]  el0t_64_sync_handler+0xf4/0x120
      [    8.028598]  el0t_64_sync+0x190/0x194
      
      Go back to the original behavior, if the automotive safety package
      is found to be supported in hardware enable all the features unless
      safety_feat_cfg is passed in saying this particular platform only
      supports a subset of the features.
      
      Fixes: 5ac712dc ("net: stmmac: enable platform specific safety features")
      Reported-by: default avatarNing Cai <ncai@quicinc.com>
      Signed-off-by: default avatarAndrew Halaney <ahalaney@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fdfc76a1
    • David S. Miller's avatar
      Merge branch 'octeontx2-af-CPT' · b4fbf0b2
      David S. Miller authored
      Srujana Challa says:
      
      ====================
      octeontx2-af: Miscellaneous changes for CPT
      
      This patchset consists of miscellaneous changes for CPT.
      - Adds a new mailbox to reset the requested CPT LF.
      - Modify FLR sequence as per HW team suggested.
      - Adds support to recover CPT engines when they gets fault.
      - Updates CPT inbound inline IPsec configuration mailbox,
        as per new generation of the OcteonTX2 chips.
      - Adds a new mailbox to return CPT FLT Interrupt info.
      
      ---
      v2:
      - Addressed a review comment.
      v1:
      - Dropped patch "octeontx2-af: Fix interrupt name strings completely"
        to submit to net.
      ---
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b4fbf0b2
    • Srujana Challa's avatar
      octeontx2-af: add mbox to return CPT_AF_FLT_INT info · 8299ffe3
      Srujana Challa authored
      CPT HW would trigger the CPT AF FLT interrupt when CPT engines
      hits some uncorrectable errors and AF is the one which receives
      the interrupt and recovers the engines.
      This patch adds a mailbox for CPT VFs to request for CPT faulted
      and recovered engines info.
      Signed-off-by: default avatarSrujana Challa <schalla@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8299ffe3
    • Srujana Challa's avatar
      octeontx2-af: update cpt lf alloc mailbox · c0688ec0
      Srujana Challa authored
      The CN10K CPT coprocessor contains a context processor
      to accelerate updates to the IPsec security association
      contexts. The context processor contains a context cache.
      This patch updates CPT LF ALLOC mailbox to config ctx_ilen
      requested by VFs. CPT_LF_ALLOC:ctx_ilen is the size of
      initial context fetch.
      Signed-off-by: default avatarSrujana Challa <schalla@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c0688ec0
    • Nithin Dabilpuram's avatar
      octeontx2-af: restore rxc conf after teardown sequence · d5b2e0a2
      Nithin Dabilpuram authored
      CN10K CPT coprocessor includes a component named RXC which
      is responsible for reassembly of inner IP packets. RXC has
      the feature to evict oldest entries based on age/threshold.
      The age/threshold is being set to minimum values to evict
      all entries at the time of teardown.
      This patch adds code to restore timeout and threshold config
      after teardown sequence is complete as it is global config.
      Signed-off-by: default avatarNithin Dabilpuram <ndabilpuram@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d5b2e0a2
    • Srujana Challa's avatar
      octeontx2-af: optimize cpt pf identification · 9adb04ff
      Srujana Challa authored
      Optimize CPT PF identification in mbox handling for faster
      mbox response by doing it at AF driver probe instead of
      every mbox message.
      Signed-off-by: default avatarSrujana Challa <schalla@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9adb04ff
    • Srujana Challa's avatar
      octeontx2-af: modify FLR sequence for CPT · 1286c50a
      Srujana Challa authored
      On OcteonTX2 platform CPT instruction enqueue is only
      possible via LMTST operations.
      The existing FLR sequence mentioned in HRM requires
      a dummy LMTST to CPT but LMTST can't be submitted from
      AF driver. So, HW team provided a new sequence to avoid
      dummy LMTST. This patch adds code for the same.
      Signed-off-by: default avatarSrujana Challa <schalla@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1286c50a
    • Srujana Challa's avatar
      octeontx2-af: add mbox for CPT LF reset · f58cf765
      Srujana Challa authored
      On OcteonTX2 SoC, the admin function (AF) is the only one with all
      priviliges to configure HW and alloc resources, PFs and it's VFs
      have to request AF via mailbox for all their needs.
      This patch adds a new mailbox for CPT VFs to request for CPT LF
      reset.
      Signed-off-by: default avatarSrujana Challa <schalla@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f58cf765
    • Srujana Challa's avatar
      octeontx2-af: recover CPT engine when it gets fault · 07ea567d
      Srujana Challa authored
      When CPT engine has uncorrectable errors, it will get halted and
      must be disabled and re-enabled. This patch adds code for the same.
      Signed-off-by: default avatarSrujana Challa <schalla@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      07ea567d
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-6.2-2023-01-19' of... · 3f30a6e6
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-6.2-2023-01-19' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-6.2-2023-01-19:
      
      amdgpu:
      - Fix display scaling
      - Fix RN/CZN power reporting on some firmware versions
      - Colorspace fixes
      - Fix resource freeing in error case in CS IOCTL
      - Fix warning on driver unload
      - GC11 fixes
      - DCN 3.1.4/5 S/G display workarounds
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230119195908.7670-1-alexander.deucher@amd.com
      3f30a6e6
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2023-01-19' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · 6bb517df
      Dave Airlie authored
      A fix for vc4 to address a memory leak when allocating a buffer, a
      Kconfig fix for panfrost and two fixes for i915 and fb-helper to
      address some bugs with vga-switcheroo.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <maxime@cerno.tech>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230119082059.h32bs7zqoxmjbcvn@houat
      6bb517df
  3. 19 Jan, 2023 1 commit