Skip to contentSkip to conversation

Linux 6.18.36

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Jun 19 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.18.36 kernel.

All users of the 6.18 kernel series must upgrade.

The updated 6.18.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.18.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Documentation/ABI/testing/sysfs-fs-erofs                                |   14 -
 Documentation/arch/arm64/silicon-errata.rst                             |   46 +++
 Makefile                                                                |    5 
 arch/arm/Kconfig                                                        |    2 
 arch/arm/boot/dts/microchip/sam9x7.dtsi                                 |    6 
 arch/arm/include/asm/io.h                                               |   15 -
 arch/arm/kernel/entry-armv.S                                            |    2 
 arch/arm/mach-socfpga/platsmp.c                                         |    1 
 arch/arm/mm/alignment.c                                                 |    6 
 arch/arm/mm/fault.c                                                     |  100 +++++--
 arch/arm64/Kconfig                                                      |   38 ++
 arch/arm64/Makefile                                                     |    3 
 arch/arm64/boot/dts/qcom/x1-dell-thena.dtsi                             |    7 
 arch/arm64/include/asm/cputype.h                                        |    4 
 arch/arm64/kernel/cpu_errata.c                                          |   34 ++
 arch/arm64/kvm/at.c                                                     |    6 
 arch/arm64/kvm/hyp/include/hyp/switch.h                                 |    2 
 arch/arm64/mm/mmu.c                                                     |    1 
 arch/x86/Makefile                                                       |    4 
 arch/x86/Makefile.um                                                    |    8 
 arch/x86/kvm/svm/sev.c                                                  |   27 +
 arch/x86/kvm/vmx/vmx.c                                                  |    9 
 arch/x86/kvm/x86.c                                                      |    7 
 block/blk-zoned.c                                                       |   32 +-
 drivers/accel/amdxdna/aie2_ctx.c                                        |    3 
 drivers/accel/ivpu/ivpu_fw_log.c                                        |    5 
 drivers/accel/ivpu/ivpu_ipc.c                                           |    2 
 drivers/accel/ivpu/ivpu_ms.c                                            |    7 
 drivers/base/bus.c                                                      |   11 
 drivers/block/zram/zram_drv.c                                           |    2 
 drivers/clk/qcom/dispcc-sc8280xp.c                                      |    4 
 drivers/clk/qcom/dispcc-x1e80100.c                                      |    2 
 drivers/clk/samsung/clk-gs101.c                                         |    2 
 drivers/cpufreq/amd-pstate.h                                            |    1 
 drivers/firmware/samsung/exynos-acpm.c                                  |   13 
 drivers/gpio/gpio-mvebu.c                                               |    4 
 drivers/gpio/gpio-rockchip.c                                            |    4 
 drivers/gpio/gpio-zynq.c                                                |    1 
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c                                  |    4 
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c                                 |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c                                 |    6 
 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c                   |    2 
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c                        |   49 ++-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c               |    5 
 drivers/gpu/drm/amd/display/dc/basics/vector.c                          |    4 
 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c                       |   15 -
 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c                      |   81 +++--
 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.h                |    5 
 drivers/gpu/drm/amd/display/dc/dc_dp_types.h                            |    2 
 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c                      |   10 
 drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c                |   10 
 drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c                     |    3 
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c                    |   32 +-
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c                    |   32 +-
 drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c                    |    3 
 drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c                    |    1 
 drivers/gpu/drm/drm_gem.c                                               |   75 ++---
 drivers/gpu/drm/drm_ioctl.c                                             |    3 
 drivers/gpu/drm/hyperv/hyperv_drm_drv.c                                 |    5 
 drivers/gpu/drm/hyperv/hyperv_drm_modeset.c                             |   15 -
 drivers/gpu/drm/i915/display/intel_dp.c                                 |   11 
 drivers/gpu/drm/i915/gem/i915_gem_phys.c                                |   19 +
 drivers/gpu/drm/imx/dcss/dcss-scaler.c                                  |    3 
 drivers/gpu/drm/v3d/v3d_gem.c                                           |    8 
 drivers/gpu/drm/v3d/v3d_perfmon.c                                       |   24 +
 drivers/gpu/drm/v3d/v3d_sched.c                                         |   17 +
 drivers/gpu/drm/vc4/vc4_validate_shaders.c                              |   13 
 drivers/gpu/drm/virtio/virtgpu_drv.c                                    |    5 
 drivers/gpu/drm/virtio/virtgpu_submit.c                                 |    4 
 drivers/gpu/drm/xe/display/xe_display.c                                 |   11 
 drivers/gpu/drm/xe/xe_guc_submit.c                                      |    2 
 drivers/gpu/drm/xe/xe_range_fence.c                                     |    2 
 drivers/hv/channel_mgmt.c                                               |    1 
 drivers/hv/hyperv_vmbus.h                                               |    3 
 drivers/hv/vmbus_drv.c                                                  |   37 ++
 drivers/i2c/busses/i2c-imx-lpi2c.c                                      |   53 ++-
 drivers/i2c/busses/i2c-imx.c                                            |   15 -
 drivers/i2c/busses/i2c-qcom-cci.c                                       |    2 
 drivers/i2c/busses/i2c-stm32f7.c                                        |    6 
 drivers/i2c/busses/i2c-tegra.c                                          |   53 ++-
 drivers/i2c/i2c-dev.c                                                   |    9 
 drivers/infiniband/core/Makefile                                        |    2 
 drivers/infiniband/core/iter.c                                          |   43 +++
 drivers/infiniband/core/ucaps.c                                         |    8 
 drivers/infiniband/core/umem.c                                          |   16 +
 drivers/infiniband/core/umem_dmabuf.c                                   |   77 ++++-
 drivers/infiniband/core/uverbs_std_types_dmah.c                         |    5 
 drivers/infiniband/core/verbs.c                                         |   38 --
 drivers/infiniband/hw/bnxt_re/qplib_res.c                               |    2 
 drivers/infiniband/hw/cxgb4/mem.c                                       |    2 
 drivers/infiniband/hw/efa/efa_verbs.c                                   |    2 
 drivers/infiniband/hw/erdma/erdma_verbs.c                               |    2 
 drivers/infiniband/hw/hns/hns_roce_alloc.c                              |    2 
 drivers/infiniband/hw/hns/hns_roce_mr.c                                 |    4 
 drivers/infiniband/hw/ionic/ionic_ibdev.h                               |    2 
 drivers/infiniband/hw/irdma/main.h                                      |    2 
 drivers/infiniband/hw/irdma/verbs.c                                     |    4 
 drivers/infiniband/hw/mana/mana_ib.h                                    |    2 
 drivers/infiniband/hw/mlx4/mr.c                                         |    5 
 drivers/infiniband/hw/mlx5/mem.c                                        |    1 
 drivers/infiniband/hw/mlx5/mr.c                                         |    4 
 drivers/infiniband/hw/mlx5/umr.c                                        |    1 
 drivers/infiniband/hw/mthca/mthca_provider.c                            |    2 
 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c                             |    2 
 drivers/infiniband/hw/qedr/verbs.c                                      |    2 
 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h                               |    2 
 drivers/infiniband/sw/rxe/rxe_verbs.c                                   |    5 
 drivers/infiniband/ulp/isert/ib_isert.c                                 |    6 
 drivers/infiniband/ulp/srp/ib_srp.c                                     |   30 +-
 drivers/input/keyboard/atkbd.c                                          |   15 +
 drivers/iommu/dma-iommu.c                                               |   19 -
 drivers/md/dm-cache-policy-smq.c                                        |   12 
 drivers/misc/fastrpc.c                                                  |  107 ++++---
 drivers/mmc/core/mmc.c                                                  |    4 
 drivers/mmc/host/dw_mmc-rockchip.c                                      |   17 +
 drivers/mmc/host/litex_mmc.c                                            |   20 +
 drivers/mmc/host/renesas_sdhi_internal_dmac.c                           |    1 
 drivers/mmc/host/sdhci.c                                                |    1 
 drivers/net/bonding/bond_main.c                                         |    4 
 drivers/net/ethernet/airoha/airoha_eth.c                                |    5 
 drivers/net/ethernet/amazon/ena/ena_com.c                               |    5 
 drivers/net/ethernet/amd/pcnet32.c                                      |    4 
 drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c                      |   14 -
 drivers/net/ethernet/broadcom/bnxt/bnxt.c                               |    2 
 drivers/net/ethernet/freescale/fec_main.c                               |    3 
 drivers/net/ethernet/ibm/emac/core.c                                    |    9 
 drivers/net/ethernet/intel/ice/ice_dpll.c                               |    2 
 drivers/net/ethernet/intel/idpf/idpf_ptp.c                              |    2 
 drivers/net/ethernet/marvell/mv643xx_eth.c                              |    2 
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c                         |   67 ++--
 drivers/net/ethernet/marvell/octeontx2/af/rvu.c                         |    2 
 drivers/net/ethernet/marvell/octeontx2/af/rvu.h                         |    1 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c                     |   36 +-
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c                  |    2 
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c                    |    2 
 drivers/net/ethernet/mediatek/mtk_eth_soc.c                             |    2 
 drivers/net/ethernet/mellanox/mlx4/cq.c                                 |    9 
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c                           |    6 
 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c                        |   10 
 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c                       |   13 
 drivers/net/ethernet/mellanox/mlx5/core/irq_affinity.c                  |    5 
 drivers/net/ethernet/mellanox/mlx5/core/vport.c                         |   72 +++--
 drivers/net/ethernet/microchip/lan743x_main.c                           |   32 ++
 drivers/net/ethernet/microchip/lan743x_main.h                           |    1 
 drivers/net/ethernet/realtek/rtase/rtase_main.c                         |    7 
 drivers/net/ethernet/wangxun/libwx/wx_type.h                            |    4 
 drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c                          |  140 +++++-----
 drivers/net/ethernet/wangxun/txgbe/txgbe_aml.h                          |    2 
 drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c                      |    5 
 drivers/net/ethernet/wangxun/txgbe/txgbe_main.c                         |   12 
 drivers/net/ethernet/wangxun/txgbe/txgbe_type.h                         |   13 
 drivers/net/hyperv/netvsc.c                                             |   19 +
 drivers/net/mctp/mctp-usb.c                                             |   28 +-
 drivers/net/phy/phy_device.c                                            |    6 
 drivers/net/phy/sfp.c                                                   |    1 
 drivers/net/tap.c                                                       |    2 
 drivers/net/tun.c                                                       |    1 
 drivers/net/usb/r8152.c                                                 |    7 
 drivers/net/vxlan/vxlan_vnifilter.c                                     |    5 
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c                            |    6 
 drivers/net/wireless/intel/iwlwifi/pcie/drv.c                           |   56 ++--
 drivers/nvmem/core.c                                                    |   12 
 drivers/nvmem/layouts/onie-tlv.c                                        |    3 
 drivers/pinctrl/pinctrl-mcp23s08_spi.c                                  |    6 
 drivers/pmdomain/imx/gpc.c                                              |    2 
 drivers/pmdomain/ti/ti_sci_pm_domains.c                                 |    2 
 drivers/ptp/ptp_vclock.c                                                |   14 -
 drivers/slimbus/qcom-ngd-ctrl.c                                         |  122 +++++---
 drivers/soc/qcom/ice.c                                                  |   57 +++-
 drivers/spi/spi-cadence-quadspi.c                                       |    5 
 drivers/spi/spi-rzv2h-rspi.c                                            |    3 
 drivers/staging/rtl8723bs/core/rtw_mlme.c                               |   10 
 drivers/tee/optee/supp.c                                                |  107 +++++--
 drivers/tee/qcomtee/core.c                                              |    6 
 drivers/tee/tee_shm.c                                                   |    2 
 drivers/thunderbolt/property.c                                          |    6 
 drivers/thunderbolt/xdomain.c                                           |   14 -
 drivers/usb/serial/io_ti.c                                              |   11 
 drivers/usb/serial/kl5kusb105.c                                         |    4 
 drivers/usb/serial/option.c                                             |    3 
 fs/erofs/internal.h                                                     |    5 
 fs/erofs/super.c                                                        |    3 
 fs/erofs/sysfs.c                                                        |    2 
 fs/erofs/zdata.c                                                        |   35 --
 fs/fcntl.c                                                              |    8 
 fs/fhandle.c                                                            |   16 +
 fs/fuse/dev.c                                                           |   13 
 fs/mount.h                                                              |   10 
 fs/namespace.c                                                          |    6 
 fs/qnx6/dir.c                                                           |    8 
 fs/smb/server/oplock.c                                                  |   15 -
 fs/smb/server/smb2pdu.c                                                 |   11 
 fs/xfs/scrub/cow_repair.c                                               |   12 
 include/hyperv/hvgdk.h                                                  |   10 
 include/hyperv/hvgdk_mini.h                                             |    1 
 include/hyperv/hvhdk.h                                                  |    1 
 include/linux/cfi.h                                                     |    1 
 include/linux/hugetlb.h                                                 |    8 
 include/linux/hyperv.h                                                  |   72 +++--
 include/linux/mlx5/vport.h                                              |    4 
 include/linux/mm.h                                                      |    8 
 include/linux/tracepoint.h                                              |    8 
 include/net/act_api.h                                                   |    1 
 include/net/bluetooth/l2cap.h                                           |    1 
 include/net/ip_vs.h                                                     |    3 
 include/net/netfilter/nf_conntrack_helper.h                             |    1 
 include/net/sock.h                                                      |    1 
 include/net/tc_act/tc_pedit.h                                           |    1 
 include/rdma/ib_umem.h                                                  |   48 +--
 include/rdma/ib_verbs.h                                                 |   48 ---
 include/rdma/iter.h                                                     |   88 ++++++
 include/uapi/linux/tee.h                                                |    1 
 io_uring/io_uring.c                                                     |    2 
 io_uring/kbuf.c                                                         |    1 
 io_uring/net.c                                                          |    3 
 ipc/shm.c                                                               |   10 
 kernel/dma/debug.c                                                      |    2 
 kernel/dma/direct.c                                                     |    2 
 kernel/futex/requeue.c                                                  |    6 
 kernel/locking/rtmutex.c                                                |    3 
 kernel/locking/rtmutex_api.c                                            |    2 
 kernel/pid.c                                                            |    8 
 kernel/sched/ext.c                                                      |   10 
 kernel/signal.c                                                         |    1 
 kernel/time/time.c                                                      |    2 
 kernel/time/timer_migration.c                                           |    8 
 kernel/trace/trace_probe.c                                              |    2 
 mm/cma.c                                                                |    7 
 mm/cma_debug.c                                                          |    3 
 mm/damon/lru_sort.c                                                     |    4 
 mm/damon/ops-common.c                                                   |    4 
 mm/damon/reclaim.c                                                      |    4 
 mm/huge_memory.c                                                        |    4 
 mm/hugetlb.c                                                            |   69 ++--
 mm/list_lru.c                                                           |   21 -
 mm/memcontrol.c                                                         |    5 
 mm/memory-failure.c                                                     |   19 -
 mm/mincore.c                                                            |   10 
 net/6lowpan/iphc.c                                                      |    4 
 net/802/garp.c                                                          |    2 
 net/802/mrp.c                                                           |    9 
 net/bluetooth/bnep/core.c                                               |   50 ++-
 net/bluetooth/hci_sync.c                                                |    5 
 net/bluetooth/hci_sysfs.c                                               |    6 
 net/bluetooth/iso.c                                                     |   61 +++-
 net/bluetooth/l2cap_core.c                                              |   46 +++
 net/bluetooth/mgmt.c                                                    |   17 -
 net/bluetooth/rfcomm/core.c                                             |   67 +++-
 net/bluetooth/rfcomm/sock.c                                             |   26 +
 net/bluetooth/sco.c                                                     |   20 +
 net/bridge/netfilter/ebt_dnat.c                                         |    4 
 net/bridge/netfilter/ebt_redirect.c                                     |   16 -
 net/bridge/netfilter/ebt_snat.c                                         |    3 
 net/bridge/netfilter/nft_meta_bridge.c                                  |    2 
 net/core/filter.c                                                       |   15 -
 net/core/gro.c                                                          |    5 
 net/core/netdev-genl.c                                                  |    4 
 net/core/skbuff.c                                                       |    6 
 net/core/sock.c                                                         |   13 
 net/devlink/core.c                                                      |    2 
 net/hsr/hsr_framereg.c                                                  |    4 
 net/ieee802154/6lowpan/tx.c                                             |    5 
 net/ipv4/inet_fragment.c                                                |    3 
 net/ipv4/ip_fragment.c                                                  |    3 
 net/ipv4/ip_options.c                                                   |    4 
 net/ipv4/netfilter/arp_tables.c                                         |   15 -
 net/ipv4/netfilter/ip_tables.c                                          |   15 -
 net/ipv4/netfilter/nf_nat_h323.c                                        |    2 
 net/ipv4/netfilter/nft_fib_ipv4.c                                       |    2 
 net/ipv4/udp.c                                                          |    8 
 net/ipv6/addrconf.c                                                     |    6 
 net/ipv6/anycast.c                                                      |   16 -
 net/ipv6/ip6_vti.c                                                      |    3 
 net/ipv6/mcast.c                                                        |    8 
 net/ipv6/netfilter/ip6_tables.c                                         |   15 -
 net/ipv6/netfilter/ip6t_eui64.c                                         |    7 
 net/ipv6/netfilter/nft_fib_ipv6.c                                       |    2 
 net/ipv6/sit.c                                                          |    1 
 net/l2tp/l2tp_ppp.c                                                     |   82 +++--
 net/mac80211/mlme.c                                                     |    9 
 net/mac80211/tests/chan-mode.c                                          |    1 
 net/mac80211/tx.c                                                       |    4 
 net/mptcp/options.c                                                     |   73 ++---
 net/mptcp/pm.c                                                          |   15 -
 net/mptcp/pm_userspace.c                                                |   14 -
 net/mptcp/protocol.c                                                    |    4 
 net/mptcp/protocol.h                                                    |    7 
 net/mptcp/sockopt.c                                                     |   15 -
 net/netfilter/ipset/ip_set_bitmap_ipmac.c                               |    5 
 net/netfilter/ipset/ip_set_hash_ipmac.c                                 |    9 
 net/netfilter/ipset/ip_set_hash_mac.c                                   |    5 
 net/netfilter/ipvs/ip_vs_ctl.c                                          |   13 
 net/netfilter/ipvs/ip_vs_proto_sctp.c                                   |   18 -
 net/netfilter/ipvs/ip_vs_proto_tcp.c                                    |   21 -
 net/netfilter/ipvs/ip_vs_proto_udp.c                                    |   20 -
 net/netfilter/ipvs/ip_vs_sched.c                                        |   14 -
 net/netfilter/nf_conntrack_helper.c                                     |   19 +
 net/netfilter/nf_conntrack_irc.c                                        |    4 
 net/netfilter/nf_log_syslog.c                                           |   12 
 net/netfilter/nf_nat_core.c                                             |    2 
 net/netfilter/nf_nat_sip.c                                              |    1 
 net/netfilter/nf_synproxy_core.c                                        |   24 +
 net/netfilter/nfnetlink_log.c                                           |   23 +
 net/netfilter/nfnetlink_queue.c                                         |   64 ++++
 net/netfilter/nft_ct.c                                                  |    8 
 net/netfilter/nft_ct_fast.c                                             |    2 
 net/netfilter/nft_exthdr.c                                              |    3 
 net/netfilter/nft_fib.c                                                 |    6 
 net/netfilter/nft_tunnel.c                                              |    2 
 net/netfilter/xt_NFQUEUE.c                                              |    2 
 net/netfilter/xt_mac.c                                                  |    4 
 net/netlabel/netlabel_unlabeled.c                                       |   30 --
 net/openvswitch/datapath.c                                              |    1 
 net/phonet/pn_dev.c                                                     |    2 
 net/qrtr/af_qrtr.c                                                      |    4 
 net/rds/ib_cm.c                                                         |    1 
 net/rds/ib_send.c                                                       |    2 
 net/rds/info.c                                                          |    2 
 net/rxrpc/input.c                                                       |   26 +
 net/sched/act_api.c                                                     |    7 
 net/sched/act_pedit.c                                                   |   77 ++---
 net/sctp/bind_addr.c                                                    |   11 
 net/sctp/diag.c                                                         |   17 -
 net/sctp/input.c                                                        |    8 
 net/sctp/sm_make_chunk.c                                                |   12 
 net/sctp/sm_statefuns.c                                                 |    6 
 net/sctp/stream.c                                                       |    6 
 net/smc/af_smc.c                                                        |   17 -
 net/socket.c                                                            |   11 
 net/unix/af_unix.c                                                      |   11 
 net/vmw_vsock/virtio_transport_common.c                                 |   11 
 net/vmw_vsock/vmci_transport.c                                          |    4 
 net/wireless/nl80211.c                                                  |    3 
 net/wireless/scan.c                                                     |    9 
 net/xdp/xsk.c                                                           |   11 
 net/xfrm/espintcp.c                                                     |    4 
 net/xfrm/xfrm_iptfs.c                                                   |   11 
 net/xfrm/xfrm_policy.c                                                  |   13 
 scripts/Makefile.compiler                                               |    2 
 scripts/generate_rust_target.rs                                         |    8 
 sound/core/pcm_native.c                                                 |    7 
 sound/core/seq/seq_dummy.c                                              |   15 -
 sound/core/timer.c                                                      |   17 -
 sound/soc/codecs/wm_adsp.c                                              |    3 
 sound/soc/fsl/fsl_sai.c                                                 |    2 
 sound/soc/sof/amd/acp-ipc.c                                             |    4 
 sound/soc/sof/amd/acp.h                                                 |    2 
 tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc |    2 
 tools/testing/selftests/kselftest_harness.h                             |    1 
 tools/testing/selftests/net/mptcp/mptcp_join.sh                         |    4 
 tools/verification/rv/src/in_kernel.c                                   |   65 ++--
 tools/verification/rvgen/__main__.py                                    |   10 
 tools/verification/rvgen/rvgen/ltl2ba.py                                |    9 
 virt/kvm/kvm_main.c                                                     |    3 
 354 files changed, 3145 insertions(+), 1581 deletions(-)

Adrian Korwel (2):
USB: serial: io_ti: fix heap overflow in get_manuf_info()
USB: serial: io_ti: fix heap overflow in build_i2c_fw_hdr()

Adrian Moreno (1):
net: openvswitch: fix possible kfree_skb of ERR_PTR

Akhil R (1):
i2c: tegra: Fix NOIRQ suspend/resume

Aleksandr Nogikh (1):
signal: clear JOBCTL_PENDING_MASK for caller in zap_other_threads()

Alexander A. Klimov (1):
drm/vc4: fix krealloc() memory leak

Alice Ryhl (2):
rust: arm64: set uwtable llvm module flag for CONFIG_UNWIND_TABLES
rust: kasan/kbuild: fix rustc-option when cross-compiling

Alistair Popple (1):
arm64: mm: call pagetable dtor when freeing hot-removed page tables

Alok Tiwari (1):
idpf: fix mailbox capability for set device clock time

Amirreza Zarrabi (1):
tee: optee: prevent use-after-free when the client exits before the supplicant

Amit Matityahu (1):
timers/migration: Fix livelock in tmigr_handle_remote_up()

Anandu Krishnan E (1):
misc: fastrpc: fix use-after-free of fastrpc_user in workqueue context

Andre Heider (1):
nvmem: layouts: onie-tlv: fix hang on unknown types

Andrew Martin (1):
drm/amdkfd: Fix buffer overflow in SDMA queue checkpoint/restore on GFX11

Andrzej Kacprowski (3):
accel/ivpu: Add bounds checks for firmware log indices accel/ivpu: Add buffer overflow check in MS get_info_ioctl accel/ivpu: Fix signed integer truncation in IPC receive

Andy Roulin (2):
vxlan: vnifilter: send notification on VNI add
vxlan: vnifilter: fix spurious notification on VNI update

Anton Leontev (1):
hv_netvsc: use kmap_local_page in netvsc_copy_to_send_buf

Arnd Bergmann (1):
tee: fix tee_ioctl_object_invoke_arg padding

Arpith Kalaginanavoor (1):
fs/qnx6: fix pointer arithmetic in directory iteration

Arthur Kiyanovski (1):
net: ena: PHC: Add missing barrier

Bartosz Golaszewski (4):
net: mv643xx: fix OF node refcount
nvmem: core: fix use-after-free bugs in error paths
pmdomain: imx: fix OF node refcount
slimbus: qcom-ngd-ctrl: fix OF node refcount

Bharath Reddy (1):
Bluetooth: fix memory leak in error path of hci_alloc_dev()

Bjorn Andersson (7):
slimbus: qcom-ngd-ctrl: Fix up platform_driver registration
slimbus: qcom-ngd-ctrl: Fix probe error path ordering
slimbus: qcom-ngd-ctrl: Register callbacks after creating the ngd
slimbus: qcom-ngd-ctrl: Initialize controller resources in controller
slimbus: qcom-ngd-ctrl: Correct PDR and SSR cleanup ownership
slimbus: qcom-ngd-ctrl: Balance pm_runtime enablement for NGD
slimbus: qcom-ngd-ctrl: Avoid ABBA on tx_lock/ctrl->lock

Breno Leitao (1):
rds: mark snapshot pages dirty in rds_info_getsockopt()

Carlos Song (2):
i2c: imx-lpi2c: fix resource leaks switching to devm_dma_request_chan()
i2c: imx: fix clock and pinctrl state inconsistency in runtime PM

Chancel Liu (1):
ASoC: fsl_sai: Fix 32 slots TDM broken by integer shift UB in xMR write

Chenguang Zhao (1):
netlabel: validate unlabeled address and mask attribute lengths

Chih Kai Hsu (1):
r8152: handle the return value of usb_reset_device()

Christian A. Ehrhardt (1):
io_uring/wait: fix min_timeout behavior

Christian Brauner (1):
pidfd: refuse access to tasks that have started exiting harder

Christian König (2):
drm/amdgpu: fix waiting for all submissions for userptrs drm/amdgpu: restart the CS if some parts of the VM are still invalidated

Clément Léger (1):
io_uring/net: inherit IORING_CQE_F_BUF_MORE across bundle recv retries

Cryolitia PukNgae (1):
Input: atkbd - skip deactivate for HONOR BCC-N's internal keyboard

Cunlong Li (1):
zram: fix use-after-free in zram_bvec_write_partial()

Damien Le Moal (1):
block: fix handling of dead zone write plugs

David Carlier (1):
mm/hugetlb: restore reservation on error in hugetlb folio copy paths

David Howells (1):
rxrpc: Fix the ACK parser to extract the SACK table for parsing

David Thompson (1):
net: lan743x: permit VLAN-tagged packets up to configured MTU

Davide Ornaghi (2):
netfilter: nft_meta_bridge: fix stale stack leak via IIFHWADDR register
netfilter: nft_fib: fix stale stack leak via the OIFNAME register

Davidlohr Bueso (1):
locking/rtmutex: Skip remove_waiter() when waiter is not enqueued

Dawei Feng (1):
octeontx2-af: fix memory leak in rvu_setup_hw_resources()

Deepanshu Kartikey (1):
wifi: mac80211: limit injected antenna index in ieee80211_parse_tx_radiotap

Dexuan Cui (1):
hyperv: Clean up and fix the guest ID comment in hvgdk.h

Dmitry Osipenko (1):
drm/virtio: Fix driver removal with disabled KMS

Dongli Zhang (1):
KVM: VMX: Update SVI during runtime APICv activation

Dragos Tatulea (2):
net/mlx5: Fix slab-out-of-bounds in mlx5_query_nic_vport_mac_list net/mlx5e: xsk: Fix DMA and xdp_frame leak on XDP_TX xmit failure

Dudu Lu (1):
Bluetooth: bnep: fix incorrect length parsing in bnep_rx_frame() extension handling

Emmanuel Grumbach (2):
wifi: iwlwifi: mvm: don't support the reset handshake for old firmwares
wifi: iwlwifi: pcie: simplify the resume flow if fast resume is not used

Eric Dumazet (6):
ipv4: restrict IPOPT_SSRR and IPOPT_LSRR options
ieee802154: 6lowpan: only accept IPv6 packets in lowpan_xmit()
tcp: restrict SO_ATTACH_FILTER to priv users
ip6_vti: set netns_immutable on the fallback device.
ip6_vti: fix incorrect tunnel matching in vti6_tnl_lookup() vsock/virtio: fix potential unbounded skb queue

Eva Kurchatova (1):
tracing: Fix CFI violation in probestub being called by tprobes

Fedor Pchelkin (1):
wifi: fix leak if split 6 GHz scanning fails

Felix Gu (1):
spi: rzv2h-rspi: Fix SPDR read access width for 16-bit RX

Fernando Fernandez Mancera (2):
netfilter: xt_NFQUEUE: prefer raw_smp_processor_id
netfilter: synproxy: add mutex to guard hook reference counting

Florian Westphal (3):
netfilter: conntrack_irc: fix possible out-of-bounds read
netfilter: revalidate bridge ports
netfilter: nft_exthdr: fix register tracking for F_PRESENT flag

Fushuai Wang (1):
net/mlx5: Use effective affinity mask for IRQ selection

Gabriele Monaco (6):
tools/rv: Ensure monitor name and desc are NUL-terminated tools/rv: Fix substring match bug in monitor name search tools/rv: Fix substring match when listing container monitors tools/rv: Fix cleanup after failed trace setup verification/rvgen: Fix options shared among commands verification/rvgen: Fix ltl2k writing True as a literal

Gao Xiang (2):
erofs: tidy up synchronous decompression
erofs: fix use-after-free on sbi->sync_decompress

Geetha sowjanya (1):
octeontx2-pf: Fix NDC sync operation errors

Geliang Tang (1):
selftests: harness: fix pidfd leak in __wait_for_test

Georgiy Osokin (1):
tee: shm: fix shm leak in register_shm_helper()

Gil Portnoy (2):
ksmbd: fix NULL-deref of opinfo->conn in oplock/lease break notifiers
ksmbd: fix use-after-free of a deferred file_lock on double SMB2_CANCEL

Greg Kroah-Hartman (1):

      Linux 6.18.36

Guangshuo Li (1):
dm cache policy smq: check allocation under invalidate lock

Guillermo Rodríguez (1):
i2c: stm32f7: fix timing computation ignoring i2c-analog-filter

HanQuan (1):
net: add pskb_may_pull() to skb_gro_receive_list()

Hans de Goede (1):
clk: qcom: x1e80100-dispcc: Stop disp_cc_mdss_mdp_clk_src from getting parked

Harry Wentland (7):
drm/amd/display: Reject gpio_bitshift >= 32 in bios_parser_get_gpio_pin_info() drm/amd/display: Bound VBIOS record-chain walk loops drm/amd/display: Clamp HDMI HDCP2 rx_id_list read to buffer size drm/amd/display: Clamp VBIOS HDMI retimer register count to array size drm/amd/display: Fix NULL deref and buffer over-read in SDP debugfs drm/amd/display: Fix out-of-bounds read in dp_get_eq_aux_rd_interval() drm/amd/display: Use krealloc_array() in dal_vector_reserve()

Harshal Dev (1):
soc: qcom: ice: Allow explicit votes on 'iface' clock for ICE

Heiko Stuebner (1):
mmc: dw_mmc-rockchip: Add missing private data for very old controllers

HyeongJun An (1):
USB: serial: kl5kusb105: fix bulk-out buffer overflow

Hyunwoo Kim (2):
KVM: arm64: Take the SRCU lock for page table walks in fault injection and AT emulation
inet: frags: fix use-after-free caused by the fqdir_pre_exit() flush

Ido Schimmel (2):
ipv6: mcast: Fix use-after-free when processing MLD queries
ipv6: Fix a potential NPD in cleanup_prefix_route()

Inochi Amaoto (2):
mmc: litex_mmc: Use DIV_ROUND_UP for more accurate clock calculation
mmc: litex_mmc: Set mandatory idle clocks before CMD0

Jack Wu (1):
USB: serial: option: add usb-id for Dell Wireless DW5826e-m

Jacob Moroni (3):
RDMA/umem: Add ib_umem_dmabuf_get_pinned_and_lock helper RDMA/umem: Move umem dmabuf revoke logic into helper function RDMA/umem: Add helpers for umem dmabuf revoke lock

Jakub Kicinski (1):
netdev: fix double-free in netdev_nl_bind_rx_doit()

Jamal Hadi Salim (1):
net/sched: act_api: use RCU with deferred freeing for action lifecycle

Jani Nikula (1):
drm/xe/display: fix oops in suspend/shutdown without display

Jann Horn (3):
fhandle: fix UAF due to unlocked ->mnt_ns read in may_decode_fh()
fuse: reject fuse_notify() pagecache ops on directories
fuse: limit FUSE_NOTIFY_RETRIEVE to uptodate folios

Jason Gunthorpe (4):
RDMA/core: Validate the passed in fops for ib_get_ucaps() iommu/dma: Do not try to iommu_map a 0 length region in swiotlb
RDMA: During rereg_mr ensure that REREG_ACCESS is compatible RDMA/umem: Fix truncation for block sizes >= 4G

Jason Xing (1):
xsk: cache csum_start/csum_offset to fix TOCTOU in xsk_skb_metadata()

Jens Axboe (1):
io_uring/kbuf: don't truncate end buffer for bundles

Jeremy Kerr (2):
net: mctp: usb: fix race between urb completion and rx_retry cancellation
net: mctp: usb: don't fail mctp_usb_rx_queue on a deferred submission

Ji'an Zhou (2):
ALSA: PCM: Fix wait queue list corruption in snd_pcm_drain() on linked streams futex/requeue: Prevent NULL pointer dereference in remove_waiter() on self-deadlock

Jianyu Li (1):
af_unix: Fix inq_len update problem in partial read

Jiawen Wu (4):
net: txgbe: optimize the flow to setup PHY for AML devices
net: txgbe: support CR modules for AML devices
net: txgbe: rename the SFP related
net: txgbe: initialize module info buffer

Jiayuan Chen (2):
netfilter: nft_ct: bail out on template ct in get eval
ipv6: anycast: insert aca into global hash under idev->lock

Jisheng Zhang (1):
mmc: sdhci: add signal voltage switch in sdhci_resume_host

Joey Gouly (1):
KVM: arm64: Restore POR_EL0 access to host EL0

Johan Hovold (2):
spi: cadence-quadspi: fix unclocked access on unbind driver core: reject devices with unregistered buses

Johannes Berg (1):
wifi: mac80211: tests: mark HT check strict

Jonas Jelonek (1):
net: sfp: initialize i2c_block_size at adapter configure time

Joonas Lahtinen (1):
drm/i915/gem: Fix phys BO pread/pwrite with offset

Judith Mendez (1):
pinctrl: mcp23s08: Read spi-present-mask as u8 not u32

Julian Anastasov (2):
ipvs: clear the svc scheduler ptr early on edit
ipvs: skip ipv6 extension headers for csum checks

Junrui Luo (1):
misc: fastrpc: fix DMA address corruption due to find_vma misuse

Justin Lai (2):
rtase: Avoid sleeping in get_stats64()
rtase: Reset TX subqueue when clearing TX ring

Kamal Dasu (1):
mmc: core: Fix host controller programming for fixed driver type

Karl Mehltretter (2):
ARM: 9474/1: io: avoid KASAN instrumentation of raw halfword I/O
ARM: 9475/1: entry: use byte load for KASAN VMAP stack shadow

Kendall Willis (1):
pmdomain: ti_sci: add wakeup constraint to parent devices of wakeup source

Kuan-Wei Chiu (1):
clk: samsung: gs101: Fix missing USI7_USI DIV clock in peric0_clk_regs

Kuniyuki Iwashima (3):
bpf: Free reuseport cBPF prog after RCU grace period.
net: Annotate sk->sk_write_space() for UDP SOCKMAP.
hsr: Remove WARN_ONCE() in hsr_addr_is_self().

Kurt Kanzenbach (1):
ptp: vclock: Switch from RCU to SRCU

Kyle Meyer (1):
bnxt_en: Fix NULL pointer dereference

Kyle Zeng (4):
ALSA: seq: dummy: fix UMP event stack overread
ipv6: sit: reload inner IPv6 header after GSO offloads
net: guard timestamp cmsgs to real error queue skbs
netfilter: x_tables: avoid leaking percpu counter pointers

Lad Prabhakar (1):
mmc: renesas_sdhi: Add OF entry for RZ/G2H SoC

Lee Jones (1):
l2tp: pppol2tp: hold reference to session in pppol2tp_ioctl()

Leon Romanovsky (1):
RDMA: Move DMA block iterator logic into dedicated files

Leorize (1):
drm/amd/display: add missing CSC entries for BT.2020 for DCE IPs

Li RongQing (2):
dma-mapping: direct: fix missing mapping for THRU_HOST_BRIDGE segments
dma-debug: fix physical address retrieval in debug_dma_sync_sg_for_device

Lizhi Hou (1):
accel/amdxdna: Fix mm_struct reference leak in aie2_populate_range()

Lorenzo Bianconi (2):
net: airoha: Fix use-after-free in metadata dst teardown
net: ethernet: mtk_eth_soc: Fix use-after-free in metadata dst teardown

Lorenzo Stoakes (1):
mm/hugetlb: avoid false positive lockdep assertion

Luiz Augusto von Dentz (2):
Bluetooth: ISO: Fix not releasing hdev reference on iso_conn_big_sync
Bluetooth: MGMT: Fix backward compatibility with userspace

Manivannan Sadhasivam (2):
soc: qcom: ice: Return -ENODEV if the ICE platform device is not found
soc: qcom: ice: Fix race between qcom_ice_probe() and of_qcom_ice_get()

Marco Scardovi (1):
gpio: rockchip: fix generic IRQ chip leak on remove

Mark Bloch (1):
devlink: Release nested relation on devlink free

Mark Rutland (3):
arm64: cputype: Add C1-Ultra definitions
arm64: cputype: Add C1-Premium definitions
arm64: errata: Mitigate TLBI errata on various Arm CPUs

Masami Hiramatsu (Google) (1):
tracing/probes: Point the error offset correctly for eprobe argument error

Matthieu Baerts (NGI0) (3):
mptcp: sockopt: check timestamping ret value
mptcp: sockopt: set sockopt on all subflows
mptcp: add-addr: always drop other suboptions

Maxime Chevallier (1):
net: phy: clean the sfp upstream if phy probing fails

Maíra Canal (4):
drm/v3d: Wait for pending L2T flush before cleaning caches drm/v3d: Fix global performance monitor reference counting drm/v3d: Fix vaddr leak when indirect CSD has zeroed workgroups drm/v3d: Skip CSD when it has zeroed workgroups

Michael Bommarito (9):
sctp: fix uninit-value in __sctp_rcv_asconf_lookup()
Bluetooth: L2CAP: reject BR/EDR signaling packets over MTUsig RDMA/srp: bound SRP_RSP sense copy by the received length IB/isert: Reject login PDUs shorter than ISER_HEADERS_LEN
thunderbolt: Reject zero-length property entries in validator
thunderbolt: Bound root directory content to block size
thunderbolt: Clamp XDomain response data copy to allocation size
thunderbolt: Validate XDomain request packet size before type cast
thunderbolt: Limit XDomain response copy to actual frame size

Michael Kelley (2):
Drivers: hv: vmbus: Provide option to skip VMBus unload on panic drm/hyperv: During panic do VMBus unload after frame buffer is flushed

Miguel Ojeda (1):

      rust: x86: support Rust >= 1.98.0 target spec

Mihai Sain (1):
ARM: dts: microchip: sam9x7: fix GMAC clock configuration

Mingyu Wang (3):
i2c: dev: prevent integer overflow in I2C_TIMEOUT ioctl
net: qrtr: fix refcount saturation and potential UAF in qrtr_port_remove fs/fcntl: fix SOFTIRQ-unsafe lock order in fasync signaling

Muchun Song (2):
mm/cma: fix reserved page leak on activation failure mm/cma_debug: fix invalid accesses for inactive CMA areas

Muhammad Bilal (1):
drm/amdkfd: fix NULL dereference in get_queue_ids()

Mukesh Ojha (1):
misc: fastrpc: Fix NULL pointer dereference in rpmsg callback

Nathan Chancellor (2):
ARM: Do not select HAVE_RUST when KASAN is enabled
cfi: Include uaccess.h for get_kernel_nofault()

Naveen Kumar Chaudhary (1):
time: Fix off-by-one in settimeofday() usec validation

Nicolò Coccia (1):
net/smc: fix sleep-inside-lock in __smc_setsockopt() causing local DoS

Nikita Zhandarovich (1):
drm/i915/edp: Check supported link rates DPCD read

Nikolay Kuratov (1):
net/mlx5: Reorder completion before putting command entry in cmd_work_handler

Nithin Dabilpuram (1):
octeontx2-af: npc: Fix CPT channel mask in npc_install_flow

Oscar Maes (1):
pcnet32: stop holding device spin lock during napi_complete_done

Paolo Abeni (3):
mptcp: fix retransmission loop when csum is enabled
mptcp: close TOCTOU race while computing rcv_wnd
mptcp: allow subflow rcv wnd to shrink

Pengyu Luo (1):

      clk: qcom: dispcc-sc8280xp: Don't park mdp_clk_src at registration time

Petr Oros (1):
ice: fix missing priority callbacks for U.FL DPLL pins

Priya Hosur (1):
drm/amd/pm: smu_v14_0_0: use SoftMin for gfxclk in set_soft_freq_limited_range

Raf Dickson (1):
vsock/vmci: fix sk_ack_backlog leak on failed handshake

Rajat Gupta (1):
net/sched: fix pedit partial COW leading to page cache corruption

Randy Dunlap (1):
RDMA/umem: fix kernel-doc warnings

Richard Fitzgerald (1):
ASoC: wm_adsp: Fix NULL dereference when removing firmware controls

Rio Liu (1):
wifi: mac80211: skip ieee80211_verify_sta_ht_mcs_support check in non-strict mode

Robertus Diawan Chris (1):
tee: qcomtee: add missing va_end in early return qcomtee_object_user_init()

Roman Kisel (1):
Drivers: hv: VMBus protocol version 6.0

Rosen Penev (1):
net: ibm: emac: Fix use-after-free during device removal

Ruoyu Wang (1):
gpio: zynq: fix runtime PM leak on remove

Russell King (Oracle) (4):
ARM: group is_permission_fault() with is_translation_fault()
ARM: allow __do_kernel_fault() to report execution of memory faults
ARM: fix hash_name() fault
ARM: fix branch predictor hardening

Salman Alghamdi (1):
staging: rtl8723bs: fix buffer over-read in rtw_update_protection

Sanghyun Park (1):
xfrm: policy: fix use-after-free on inexact bin in xfrm_policy_bysel_ctx()

Santosh Kalluri (1):
net: phonet: free phonet_device after RCU grace period

Sean Christopherson (2):
KVM: Don't WARN if memory is dirtied without a vCPU when the VM is dying
KVM: SEV: Decouple the need to sync the GHCB SA from the need to free the SA

Sechang Lim (1):

      udp: clear skb->dev before running a sockmap verdict

SeongJae Park (3):
mm/damon/ops-common: call folio_test_lru() after folio_get() mm/damon/lru_sort: handle ctx allocation failure mm/damon/reclaim: handle ctx allocation failure

SeungJu Cheon (3):
Bluetooth: RFCOMM: validate skb length in MCC handlers
Bluetooth: ISO: Fix data-race on iso_pi fields in hci_get_route calls
Bluetooth: SCO: Fix data-race on sco_pi fields in sco_connect

Shakeel Butt (2):
memcg: use round-robin victim selection in refill_stock mm/list_lru: drain before clearing xarray entry on reparent

Shanker Donthineni (1):
arm64: errata: Mitigate TLBI errata on NVIDIA Olympus CPU

Simona Vetter (1):
drm/gem: Try to fix change_handle ioctl, attempt 4

Stefano Garzarella (2):
vsock/virtio: fix skb overhead accounting to preserve full buf_alloc vsock/virtio: fix skb overhead overflow on 32-bit builds

Suman Ghosh (1):
octeontx2-af: Fix initialization of mcam's entry2target_pffunc field

Takao Sato (1):
xfrm: iptfs: preserve shared-frag marker in iptfs_consume_frags()

Takashi Iwai (2):
ALSA: timer: Forcibly close timer instances at closing
ALSA: timer: Fix UAF at snd_timer_user_params()

Tangudu Tilak Tirumalesh (1):
drm/xe: Clear pending_disable before signaling suspend fence

Tao Cui (2):
mptcp: pm: fix extra_subflows underflow on userspace PM subflow creation
selftests: mptcp: add test for extra_subflows underflow on userspace PM

Tapio Reijonen (1):
net: fec: fix pinctrl default state restore order on resume

Tejun Heo (1):
sched_ext: Don't warn on NULL cgrp_moving_from in scx_cgroup_move_task()

Til Kaiser (4):
net: mvpp2: sync RX data at the hardware packet offset
net: mvpp2: limit XDP frame size to the RX buffer
net: mvpp2: refill RX buffers before XDP or skb use
net: mvpp2: build skb from XDP-adjusted data on XDP_PASS

Tristan Madani (2):
netfilter: nft_tunnel: fix use-after-free on object destroy
xfrm: iptfs: fix ABBA deadlock in iptfs_destroy_state()

Tudor Ambarus (1):
firmware: samsung: acpm: Fix mailbox channel leak on probe error

Usama Arif (1):
mm/mincore: handle non-swap entries before !CONFIG_SWAP guard

Val Packett (1):
arm64: dts: qcom: x1-dell-thena: remove i2c20 (battery SMBus) and reserve its pins

Vijendar Mukunda (1):
ASoC: SOF: amd: fix for ipc flags check

Vikas Gupta (1):
bnge: fix context mem iteration

Vitaly Prosyak (1):

      drm/amdgpu: set noretry=1 as default for GFX 10.1.x (Navi10/12/14)

Vladimir Zapolskiy (1):
i2c: qcom-cci: Fix NULL pointer dereference in cci_remove()

Wei Liu (1):
mshv: add a missing padding field

Weiming Shi (3):
tap: free page on error paths in tap_get_user_xdp()
net/rds: fix NULL deref in rds_ib_send_cqe_handler() on masked atomic completion
netfilter: nf_conntrack: destroy stale expectfn expectations on unregister

Wentao Liang (2):
drm/xe: fix refcount leak in xe_range_fence_insert()
drm/virtio: fix dma_fence refcount leak on error in virtio_gpu_dma_fence_wait()

Will Deacon (1):
arm64: errata: Mitigate TLBI errata on Microsoft Azure Cobalt 100 CPU

Wupeng Ma (1):
mm/memory-failure: fix hugetlb_lock AA deadlock in get_huge_page_for_hwpoison

Wyatt Feng (2):
xfrm: espintcp: do not reuse an in-progress partial send
sctp: stream: fully roll back denied add-stream state

Xiang Mei (2):
tun: zero the whole vnet header in tun_put_user()
netfilter: nf_log: validate MAC header was set before dumping it

Xin Long (3):
sctp: validate cached peer INIT chunk length in COOKIE_ECHO processing
sctp: purge outqueue on stale COOKIE-ECHO handling
sctp: validate embedded INIT chunk and address list lengths in cookie

Yang Wang (2):
drm/amd/pm: fix smu13 power limit default/cap calculation drm/amd/pm: mark metrics.energy_accumulator is invalid for smu 14.0.2

Yao Sang (1):
net/mlx4: avoid GCC 10 __bad_copy_from() false positive

Yicong Hui (1):
drm/imx: Fix three kernel-doc warnings in dcss-scaler.c

Yilin Zhu (1):
ipc/shm: serialize orphan cleanup with shm_nattch updates

Yiming Qian (1):
netfilter: bridge: make ebt_snat ARP rewrite writable

Yin Tirui (2):
mm/huge_memory: update file PMD counter before folio_put() mm/huge_memory: update file PUD counter before folio_put()

Yingjie Gao (2):
xfs: fix error returns in CoW fork repair
xfs: fix rtgroup cleanup in CoW fork repair

Yishai Hadas (1):
RDMA/core: Validate cpu_id against nr_cpu_ids in DMAH alloc

Yizhou Zhao (3):
6lowpan: fix off-by-one in multicast context address compression
net: garp: fix unsigned integer underflow in garp_pdu_parse_attr net/802/mrp: fix vector attribute parsing in mrp_pdu_parse_vecattr

Yuho Choi (1):
ARM: socfpga: Fix OF node refcount leak in SMP setup

Yun Zhou (1):
gpio: mvebu: fix NULL pointer dereference in suspend/resume

Yuqi Xu (3):
Bluetooth: hci_sync: reject oversized Broadcast Announcement prepend
wifi: nl80211: reject oversized EMA RNR lists
net: rds: clear i_sends on setup unwind

Zeyu WANG (1):
Input: atkbd - add DMI quirk for Lenovo Yoga Air 14 (83QK)

Zhan Xusheng (1):
cpufreq/amd-pstate: drop stale @epp_cached kdoc

Zhang Cen (3):
Bluetooth: RFCOMM: hold listener socket in rfcomm_connect_ind()
Bluetooth: MGMT: validate advertising TLV before type checks
Bluetooth: bnep: reject short frames before parsing

Zhao Zhang (1):
sctp: diag: reject stale associations in dump_one path

ZhaoJinming (2):
net: airoha: Add NULL check for of_reserved_mem_lookup() in airoha_qdma_init_hfwd_queues()
net: bonding: fix NULL pointer dereference in bond_do_ioctl()

Zhengchuan Liang (1):
netfilter: require Ethernet MAC header before using eth_hdr()

Zhenghang Xiao (2):
xfrm: iptfs: fix use-after-free on first_skb in __input_process_payload
misc: fastrpc: fix use-after-free race in fastrpc_map_create

author maintainer
#1 lore raw
Documentation/ABI/testing/sysfs-fs-erofs +9 -5
index 76d9808ed581..b9243c7f28d7 100644
@@ -10,12 +10,16 @@ Description:	Shows all enabled kernel features.
 What:		/sys/fs/erofs/<disk>/sync_decompress
 Date:		November 2021
 Contact:	"Huang Jianan" <[email protected]>
-Description:	Control strategy of sync decompression:
+Description:	Control strategy of synchronous decompression. Synchronous
+		decompression tries to decompress in the reader thread for
+		synchronous reads and small asynchronous reads (<= 12 KiB):
 
-		- 0 (default, auto): enable for readpage, and enable for
-		  readahead on atomic contexts only.
-		- 1 (force on): enable for readpage and readahead.
-		- 2 (force off): disable for all situations.
+		- 0 (auto, default): apply to synchronous reads only, but will
+		                     switch to 1 (force on) if any decompression
+		                     request is detected in atomic contexts;
+		- 1 (force on): apply to synchronous reads and small
+		                asynchronous reads;
+		- 2 (force off): disable synchronous decompression completely.
 
 What:		/sys/fs/erofs/<disk>/drop_caches
 Date:		November 2024
Documentation/arch/arm64/silicon-errata.rst +46 -0

123 lines not on this page · raw message

Makefile +3 -2
index 0b24b388e16c..7f5abef39fd3 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 18
-SUBLEVEL = 35
+SUBLEVEL = 36
 EXTRAVERSION =
 NAME = Baby Opossum Posse
 
@@ -603,6 +603,7 @@ KBUILD_RUSTFLAGS := $(rust_common_flags) \
 		    -Crelocation-model=static \
 		    -Zfunction-sections=n \
 		    -Wclippy::float_arithmetic
+KBUILD_RUSTFLAGS_OPTION_CHKS :=
 
 KBUILD_AFLAGS_KERNEL :=
 KBUILD_CFLAGS_KERNEL :=
@@ -639,7 +640,7 @@ export KBUILD_USERCFLAGS KBUILD_USERLDFLAGS
 
 export KBUILD_CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS KBUILD_LDFLAGS
 export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE
-export KBUILD_RUSTFLAGS RUSTFLAGS_KERNEL RUSTFLAGS_MODULE
+export KBUILD_RUSTFLAGS RUSTFLAGS_KERNEL RUSTFLAGS_MODULE KBUILD_RUSTFLAGS_OPTION_CHKS
 export KBUILD_AFLAGS AFLAGS_KERNEL AFLAGS_MODULE
 export KBUILD_AFLAGS_MODULE KBUILD_CFLAGS_MODULE KBUILD_RUSTFLAGS_MODULE KBUILD_LDFLAGS_MODULE
 export KBUILD_AFLAGS_KERNEL KBUILD_CFLAGS_KERNEL KBUILD_RUSTFLAGS_KERNEL
arch/arm/Kconfig +1 -1
index 70cd3b5b5a05..e481254e3645 100644
@@ -134,7 +134,7 @@ config ARM
 	select MMU_GATHER_RCU_TABLE_FREE if SMP && ARM_LPAE
 	select HAVE_REGS_AND_STACK_ACCESS_API
 	select HAVE_RSEQ
-	select HAVE_RUST if CPU_LITTLE_ENDIAN && CPU_32v7
+	select HAVE_RUST if CPU_LITTLE_ENDIAN && CPU_32v7 && !KASAN
 	select HAVE_STACKPROTECTOR
 	select HAVE_SYSCALL_TRACEPOINTS
 	select HAVE_UID16
arch/arm/boot/dts/microchip/sam9x7.dtsi +3 -3
index d242d7a934d0..c680a5033b6b 100644
@@ -990,9 +990,9 @@ gmac: ethernet@f802c000 {
 				     <62 IRQ_TYPE_LEVEL_HIGH 3>,	/* Queue 3 */
 				     <63 IRQ_TYPE_LEVEL_HIGH 3>,	/* Queue 4 */
 				     <64 IRQ_TYPE_LEVEL_HIGH 3>;	/* Queue 5 */
-			clocks = <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_GCK 24>, <&pmc PMC_TYPE_GCK 67>;
-			clock-names = "hclk", "pclk", "tx_clk", "tsu_clk";
-			assigned-clocks = <&pmc PMC_TYPE_GCK 67>;
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_GCK 24>;
+			clock-names = "hclk", "pclk", "tsu_clk";
+			assigned-clocks = <&pmc PMC_TYPE_GCK 24>;
 			assigned-clock-rates = <266666666>;
 			status = "disabled";
 		};
arch/arm/include/asm/io.h +13 -2
index bae5edf348ef..e6bd9e79737c 100644
@@ -56,8 +56,19 @@ void __raw_readsl(const volatile void __iomem *addr, void *data, int longlen);
  * the bus. Rather than special-case the machine, just let the compiler
  * generate the access for CPUs prior to ARMv6.
  */
-#define __raw_readw(a)         (__chk_io_ptr(a), *(volatile unsigned short __force *)(a))
-#define __raw_writew(v,a)      ((void)(__chk_io_ptr(a), *(volatile unsigned short __force *)(a) = (v)))
+#define __raw_writew __raw_writew
+static __no_kasan_or_inline void __raw_writew(u16 val, volatile void __iomem *addr)
+{
+	__chk_io_ptr(addr);
+	*(volatile unsigned short __force *)addr = val;
+}
+
+#define __raw_readw __raw_readw
+static __no_kasan_or_inline u16 __raw_readw(const volatile void __iomem *addr)
+{
+	__chk_io_ptr(addr);
+	return *(const volatile unsigned short __force *)addr;
+}
 #else
 /*
  * When running under a hypervisor, we want to avoid I/O accesses with
arch/arm/kernel/entry-armv.S +1 -1
index ef6a657c8d13..a3d050ce9b79 100644
@@ -567,7 +567,7 @@ ENTRY(__switch_to)
 	@ are using KASAN
 	mov_l	r2, KASAN_SHADOW_OFFSET
 	add	r2, r2, ip, lsr #KASAN_SHADOW_SCALE_SHIFT
-	ldr	r2, [r2]
+	ldrb	r2, [r2]
 #endif
 #endif
 
arch/arm/mach-socfpga/platsmp.c +1 -0
index 201191cf68f3..349e6c54518e 100644
@@ -78,6 +78,7 @@ static void __init socfpga_smp_prepare_cpus(unsigned int max_cpus)
 	}
 
 	socfpga_scu_base_addr = of_iomap(np, 0);
+	of_node_put(np);
 	if (!socfpga_scu_base_addr)
 		return;
 	scu_enable(socfpga_scu_base_addr);
arch/arm/mm/alignment.c +5 -1
index 3c6ddb1afdc4..812380f30ae3 100644
@@ -19,10 +19,11 @@
 #include <linux/init.h>
 #include <linux/sched/signal.h>
 #include <linux/uaccess.h>
+#include <linux/unaligned.h>
 
 #include <asm/cp15.h>
 #include <asm/system_info.h>
-#include <linux/unaligned.h>
+#include <asm/system_misc.h>
 #include <asm/opcodes.h>
 
 #include "fault.h"
@@ -809,6 +810,9 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
 	int thumb2_32b = 0;
 	int fault;
 
+	if (addr >= TASK_SIZE && user_mode(regs))
+		harden_branch_predictor();
+
 	if (interrupts_enabled(regs))
 		local_irq_enable();
 
arch/arm/mm/fault.c +75 -25

157 lines not on this page · raw message

arch/arm64/Kconfig +38 -0
index 840a945cb4ac..9e834f0f8dd0 100644
@@ -1166,6 +1166,44 @@ config ARM64_ERRATUM_4193714
 
 	  If unsure, say Y.
 
+config ARM64_ERRATUM_4118414
+	bool "Various: Completion of affected memory accesses might not be guaranteed by completion of a TLBI"
+	default y
+	select ARM64_WORKAROUND_REPEAT_TLBI
+	help
+	  This option adds a workaround for the following errata:
+
+	  * ARM C1-Premium erratum 4193780
+	  * ARM C1-Ultra erratum 4193780
+	  * ARM Cortex-A76 erratum 4193800
+	  * ARM Cortex-A76AE erratum 4193801
+	  * ARM Cortex-A77 erratum 4193798
+	  * ARM Cortex-A78 erratum 4193791
+	  * ARM Cortex-A78AE erratum 4193793
+	  * ARM Cortex-A78C erratum 4193794
+	  * ARM Cortex-A710 erratum 4193788
+	  * ARM Cortex-X1 erratum 4193791
+	  * ARM Cortex-X1C erratum 4193792
+	  * ARM Cortex-X2 erratum 4193788
+	  * ARM Cortex-X3 erratum 4193786
+	  * ARM Cortex-X4 erratum 4118414
+	  * ARM Cortex-X925 erratum 4193781
+	  * ARM Neoverse-N1 erratum 4193800
+	  * ARM Neoverse-N2 erratum 4193789
+	  * ARM Neoverse-V1 erratum 4193790
+	  * ARM Neoverse-V2 erratum 4193787
+	  * ARM Neoverse-V3 erratum 4193784
+	  * ARM Neoverse-V3AE erratum 4193784
+	  * Microsoft Azure Cobalt 100 4193789
+	  * NVIDIA Olympus erratum T410-OLY-1029
+
+	  On affected cores, some memory accesses might not be completed by
+	  broadcast TLB invalidation.
+
+	  This issue is also known as CVE-2025-10263.
+
+	  If unsure, say Y.
+
 config CAVIUM_ERRATUM_22375
 	bool "Cavium erratum 22375, 24313"
 	default y
arch/arm64/Makefile +3 -0
index 73a10f65ce8b..6b005c8fef70 100644
@@ -63,6 +63,9 @@ else
 KBUILD_CFLAGS	+= -fasynchronous-unwind-tables
 KBUILD_AFLAGS	+= -fasynchronous-unwind-tables
 KBUILD_RUSTFLAGS += -Cforce-unwind-tables=y -Zuse-sync-unwind=n
+# Work around rustc bug on compilers without
+# https://github.com/rust-lang/rust/pull/156973.
+KBUILD_RUSTFLAGS += $(if $(call rustc-min-version,109800),,-Zllvm_module_flag=uwtable:u32:2:max)
 endif
 
 ifeq ($(CONFIG_STACKPROTECTOR_PER_TASK),y)
arch/arm64/boot/dts/qcom/x1-dell-thena.dtsi +1 -6
index 847b678f040c..5b5a10a31a25 100644
@@ -982,12 +982,6 @@ &i2c8 {
 	status = "okay";
 };
 
-&i2c20 {
-	clock-frequency = <400000>;
-
-	status = "okay";
-};
-
 &lpass_tlmm {
 	spkr_01_sd_n_active: spkr-01-sd-n-active-state {
 		pins = "gpio12";
@@ -1306,6 +1300,7 @@ right_tweeter: speaker@0,1 {
 &tlmm {
 	gpio-reserved-ranges = <44 4>,  /* SPI11 (TPM) */
 			       <76 4>,  /* SPI19 (TZ Protected) */
+			       <80 2>,  /* I2C20 (Battery SMBus) */
 			       <238 1>; /* UFS Reset */
 
 	cam_rgb_default: cam-rgb-default-state {
arch/arm64/include/asm/cputype.h +4 -0
index 18f98fb7ee78..78dc7314e7e5 100644
@@ -97,8 +97,10 @@
 #define ARM_CPU_PART_CORTEX_X925	0xD85
 #define ARM_CPU_PART_CORTEX_A725	0xD87
 #define ARM_CPU_PART_CORTEX_A720AE	0xD89
+#define ARM_CPU_PART_C1_ULTRA		0xD8C
 #define ARM_CPU_PART_NEOVERSE_N3	0xD8E
 #define ARM_CPU_PART_C1_PRO		0xD8B
+#define ARM_CPU_PART_C1_PREMIUM		0xD90
 
 #define APM_CPU_PART_XGENE		0x000
 #define APM_CPU_VAR_POTENZA		0x00
@@ -189,8 +191,10 @@
 #define MIDR_CORTEX_X925 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X925)
 #define MIDR_CORTEX_A725 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A725)
 #define MIDR_CORTEX_A720AE MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A720AE)
+#define MIDR_C1_ULTRA MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_C1_ULTRA)
 #define MIDR_NEOVERSE_N3 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_N3)
 #define MIDR_C1_PRO MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_C1_PRO)
+#define MIDR_C1_PREMIUM MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_C1_PREMIUM)
 #define MIDR_THUNDERX	MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX)
 #define MIDR_THUNDERX_81XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_81XX)
 #define MIDR_THUNDERX_83XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_83XX)
arch/arm64/kernel/cpu_errata.c +32 -2
index 6c8c4301d9c6..30595bdadee9 100644
@@ -316,7 +316,37 @@ static const struct arm64_cpu_capabilities arm64_repeat_tlbi_list[] = {
 		ERRATA_MIDR_RANGE(MIDR_CORTEX_A510, 0, 0, 1, 1),
 	},
 #endif
-	{},
+#ifdef CONFIG_ARM64_ERRATUM_4118414
+	{
+		ERRATA_MIDR_RANGE_LIST(((const struct midr_range[]) {
+			MIDR_ALL_VERSIONS(MIDR_C1_PREMIUM),
+			MIDR_ALL_VERSIONS(MIDR_C1_ULTRA),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_A76),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_A76AE),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_A77),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_A78),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_A78AE),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_A78C),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_A710),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_X1),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_X1C),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_X2),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_X3),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_X4),
+			MIDR_ALL_VERSIONS(MIDR_CORTEX_X925),
+			MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N1),
+			MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N2),
+			MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V1),
+			MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V2),
+			MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V3),
+			MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V3AE),
+			MIDR_ALL_VERSIONS(MIDR_NVIDIA_OLYMPUS),
+			MIDR_ALL_VERSIONS(MIDR_MICROSOFT_AZURE_COBALT_100),
+			{}
+		})),
+	},
+#endif
+	{}
 };
 #endif
 
@@ -669,7 +699,7 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
 #endif
 #ifdef CONFIG_ARM64_WORKAROUND_REPEAT_TLBI
 	{
-		.desc = "Qualcomm erratum 1009, or ARM erratum 1286807, 2441009",
+		.desc = "Broken broadcast TLBI completion",
 		.capability = ARM64_WORKAROUND_REPEAT_TLBI,
 		.type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
 		.matches = cpucap_multi_entry_cap_matches,
arch/arm64/kvm/at.c +4 -2
index be26d5aa668c..e6de6aac6ede 100644
@@ -1528,7 +1528,8 @@ void __kvm_at_s12(struct kvm_vcpu *vcpu, u32 op, u64 vaddr)
 	/* Do the stage-2 translation */
 	ipa = (par & GENMASK_ULL(47, 12)) | (vaddr & GENMASK_ULL(11, 0));
 	out.esr = 0;
-	ret = kvm_walk_nested_s2(vcpu, ipa, &out);
+	scoped_guard(srcu, &vcpu->kvm->srcu)
+		ret = kvm_walk_nested_s2(vcpu, ipa, &out);
 	if (ret < 0)
 		return;
 
@@ -1623,7 +1624,8 @@ int __kvm_find_s1_desc_level(struct kvm_vcpu *vcpu, u64 va, u64 ipa, int *level)
 	}
 
 	/* Walk the guest's PT, looking for a match along the way */
-	ret = walk_s1(vcpu, &wi, &wr, va);
+	scoped_guard(srcu, &vcpu->kvm->srcu)
+		ret = walk_s1(vcpu, &wi, &wr, va);
 	switch (ret) {
 	case -EINTR:
 		/* We interrupted the walk on a match, return the level */
arch/arm64/kvm/hyp/include/hyp/switch.h +2 -0
index c5d5e5b86eaf..018f930d40dc 100644
@@ -183,6 +183,8 @@ static inline void __deactivate_cptr_traps_vhe(struct kvm_vcpu *vcpu)
 		val |= CPACR_EL1_ZEN;
 	if (cpus_have_final_cap(ARM64_SME))
 		val |= CPACR_EL1_SMEN;
+	if (cpus_have_final_cap(ARM64_HAS_S1POE))
+		val |= CPACR_EL1_E0POE;
 
 	write_sysreg(val, cpacr_el1);
 }
arch/arm64/mm/mmu.c +1 -0
index 56be3d8a459c..ada93622ccf2 100644
@@ -1447,6 +1447,7 @@ static void free_hotplug_page_range(struct page *page, size_t size,
 
 static void free_hotplug_pgtable_page(struct page *page)
 {
+	pagetable_dtor(page_ptdesc(page));
 	free_hotplug_page_range(page, PAGE_SIZE, NULL);
 }
 
arch/x86/Makefile +4 -0
index 1a27efcf3c20..5aa6d5f4c197 100644
@@ -79,6 +79,10 @@ KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mno-sse4a
 KBUILD_RUSTFLAGS += --target=$(objtree)/scripts/target.json
 KBUILD_RUSTFLAGS += -Ctarget-feature=-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-avx,-avx2
 
+# The target.json file is not available when invoking rustc-option, so use the
+# built-in target when checking whether flags are supported instead.
+KBUILD_RUSTFLAGS_OPTION_CHKS += --target=x86_64-unknown-none
+
 #
 # CFLAGS for compiling floating point code inside the kernel.
 #
arch/x86/Makefile.um +8 -0
index 19c13afa474e..9adecd65639f 100644
@@ -14,6 +14,14 @@ endif
 
 KBUILD_RUSTFLAGS += --target=$(objtree)/scripts/target.json
 
+# The target.json file is not available when invoking rustc-option, so use the
+# built-in target when checking whether flags are supported instead.
+ifeq ($(CONFIG_X86_32),y)
+KBUILD_RUSTFLAGS_OPTION_CHKS += --target=i686-unknown-linux-gnu
+else
+KBUILD_RUSTFLAGS_OPTION_CHKS += --target=x86_64-unknown-linux-gnu
+endif
+
 ifeq ($(CONFIG_X86_32),y)
 START := 0x8048000
 
arch/x86/kvm/svm/sev.c +14 -13
index aa9ef645cfa6..6d4574eb8a4c 100644
@@ -3540,20 +3540,17 @@ void sev_es_unmap_ghcb(struct vcpu_svm *svm)
 	if (!svm->sev_es.ghcb)
 		return;
 
-	if (svm->sev_es.ghcb_sa_free) {
-		/*
-		 * The scratch area lives outside the GHCB, so there is a
-		 * buffer that, depending on the operation performed, may
-		 * need to be synced, then freed.
-		 */
-		if (svm->sev_es.ghcb_sa_sync) {
-			kvm_write_guest(svm->vcpu.kvm,
-					svm->sev_es.sw_scratch,
-					svm->sev_es.ghcb_sa,
-					svm->sev_es.ghcb_sa_len);
-			svm->sev_es.ghcb_sa_sync = false;
-		}
+	/*
+	 * If the scratch area lives outside the GHCB, there's a buffer that,
+	 * depending on the operation performed, may need to be synced.
+	 */
+	if (svm->sev_es.ghcb_sa_sync) {
+		kvm_write_guest(svm->vcpu.kvm, svm->sev_es.sw_scratch,
+				svm->sev_es.ghcb_sa, svm->sev_es.ghcb_sa_len);
+		svm->sev_es.ghcb_sa_sync = false;
+	}
 
+	if (svm->sev_es.ghcb_sa_free) {
 		kvfree(svm->sev_es.ghcb_sa);
 		svm->sev_es.ghcb_sa = NULL;
 		svm->sev_es.ghcb_sa_free = false;
@@ -3633,6 +3630,8 @@ static int setup_vmgexit_scratch(struct vcpu_svm *svm, bool sync, u64 min_len)
 		goto e_scratch;
 	}
 
+	WARN_ON_ONCE(svm->sev_es.ghcb_sa_sync || svm->sev_es.ghcb_sa_free);
+
 	if ((scratch_gpa_beg & PAGE_MASK) == control->ghcb_gpa) {
 		/* Scratch area begins within GHCB */
 		ghcb_scratch_beg = control->ghcb_gpa +
@@ -3654,6 +3653,8 @@ static int setup_vmgexit_scratch(struct vcpu_svm *svm, bool sync, u64 min_len)
 		scratch_va = (void *)svm->sev_es.ghcb;
 		scratch_va += (scratch_gpa_beg - control->ghcb_gpa);
 
+		svm->sev_es.ghcb_sa_sync = false;
+		svm->sev_es.ghcb_sa_free = false;
 		svm->sev_es.ghcb_sa_len = ghcb_scratch_end - scratch_gpa_beg;
 	} else {
 		/* GHCB v2 requires the scratch area to be within the GHCB. */
arch/x86/kvm/vmx/vmx.c +0 -9
index c084f48e2b0b..b7798ced7b50 100644
@@ -6886,15 +6886,6 @@ void vmx_hwapic_isr_update(struct kvm_vcpu *vcpu, int max_isr)
 	 * VM-Exit, otherwise L1 with run with a stale SVI.
 	 */
 	if (is_guest_mode(vcpu)) {
-		/*
-		 * KVM is supposed to forward intercepted L2 EOIs to L1 if VID
-		 * is enabled in vmcs12; as above, the EOIs affect L2's vAPIC.
-		 * Note, userspace can stuff state while L2 is active; assert
-		 * that VID is disabled if and only if the vCPU is in KVM_RUN
-		 * to avoid false positives if userspace is setting APIC state.
-		 */
-		WARN_ON_ONCE(vcpu->wants_to_run &&
-			     nested_cpu_has_vid(get_vmcs12(vcpu)));
 		to_vmx(vcpu)->nested.update_vmcs01_hwapic_isr = true;
 		return;
 	}
arch/x86/kvm/x86.c +7 -0
index ad2b7158b9c8..a21ebe04aa23 100644
@@ -10950,9 +10950,16 @@ void __kvm_vcpu_update_apicv(struct kvm_vcpu *vcpu)
 	 * pending. At the same time, KVM_REQ_EVENT may not be set as APICv was
 	 * still active when the interrupt got accepted. Make sure
 	 * kvm_check_and_inject_events() is called to check for that.
+	 *
+	 * Update SVI when APICv gets enabled, otherwise SVI won't reflect the
+	 * highest bit in vISR and the next accelerated EOI in the guest won't
+	 * be virtualized correctly (the CPU uses SVI to determine which vISR
+	 * vector to clear).
 	 */
 	if (!apic->apicv_active)
 		kvm_make_request(KVM_REQ_EVENT, vcpu);
+	else
+		kvm_apic_update_hwapic_isr(vcpu);
 
 out:
 	preempt_enable();
block/blk-zoned.c +27 -5
index 59b7a1d14af5..5c16cf96b97c 100644
@@ -505,6 +505,28 @@ static void disk_mark_zone_wplug_dead(struct blk_zone_wplug *zwplug)
 	}
 }
 
+static inline bool disk_check_zone_wplug_dead(struct blk_zone_wplug *zwplug)
+{
+	if (!(zwplug->flags & BLK_ZONE_WPLUG_DEAD))
+		return false;
+
+	/*
+	 * If a new write is received right after a zone reset completes and
+	 * while the disk_zone_wplugs_worker() thread has not yet released the
+	 * reference on the zone write plug after processing the last write to
+	 * the zone, then the new write BIO will see the zone write plug marked
+	 * as dead. This case is however a false positive and a perfectly valid
+	 * pattern. In such case, restore the zone write plug to a live one.
+	 */
+	if (!zwplug->wp_offset && bio_list_empty(&zwplug->bio_list)) {
+		zwplug->flags &= ~BLK_ZONE_WPLUG_DEAD;
+		refcount_inc(&zwplug->ref);
+		return false;
+	}
+
+	return true;
+}
+
 static void blk_zone_wplug_bio_work(struct work_struct *work);
 
 /*
@@ -1027,12 +1049,12 @@ static bool blk_zone_wplug_handle_write(struct bio *bio, unsigned int nr_segs)
 	}
 
 	/*
-	 * If we got a zone write plug marked as dead, then the user is issuing
-	 * writes to a full zone, or without synchronizing with zone reset or
-	 * zone finish operations. In such case, fail the BIO to signal this
-	 * invalid usage.
+	 * Check if we got a zone write plug marked as dead. If yes, then the
+	 * user is likely issuing writes to a full zone, or without
+	 * synchronizing with zone reset or zone finish operations. In such
+	 * case, fail the BIO to signal this invalid usage.
 	 */
-	if (zwplug->flags & BLK_ZONE_WPLUG_DEAD) {
+	if (disk_check_zone_wplug_dead(zwplug)) {
 		spin_unlock_irqrestore(&zwplug->lock, flags);
 		disk_put_zone_wplug(zwplug);
 		bio_io_error(bio);
drivers/accel/amdxdna/aie2_ctx.c +3 -0
index 4610f491f088..80de2906a26f 100644
@@ -828,6 +828,7 @@ static int aie2_populate_range(struct amdxdna_gem_obj *abo)
 
 		if (ret == -EBUSY) {
 			amdxdna_umap_put(mapp);
+			mmput(mm);
 			goto again;
 		}
 
@@ -838,11 +839,13 @@ static int aie2_populate_range(struct amdxdna_gem_obj *abo)
 	if (mmu_interval_read_retry(&mapp->notifier, mapp->range.notifier_seq)) {
 		up_write(&xdna->notifier_lock);
 		amdxdna_umap_put(mapp);
+		mmput(mm);
 		goto again;
 	}
 	mapp->invalid = false;
 	up_write(&xdna->notifier_lock);
 	amdxdna_umap_put(mapp);
+	mmput(mm);
 	goto again;
 
 put_mm:
drivers/accel/ivpu/ivpu_fw_log.c +5 -0
index 337c906b0210..275baf844b56 100644
@@ -98,6 +98,11 @@ static void fw_log_print_buffer(struct vpu_tracing_buffer_header *log, const cha
 	u32 log_start = only_new_msgs ? READ_ONCE(log->read_index) : 0;
 	u32 log_end = READ_ONCE(log->write_index);
 
+	if (log_start >= data_size)
+		log_start = 0;
+	if (log_end > data_size)
+		log_end = data_size;
+
 	if (log->wrap_count == log->read_wrap_count) {
 		if (log_end <= log_start) {
 			drm_printf(p, "==== %s \"%s\" log empty ====\n", prefix, log->name);
drivers/accel/ivpu/ivpu_ipc.c +1 -1
index 5f00809d448a..7fea203eef32 100644
@@ -276,7 +276,7 @@ int ivpu_ipc_receive(struct ivpu_device *vdev, struct ivpu_ipc_consumer *cons,
 	if (ipc_buf)
 		memcpy(ipc_buf, rx_msg->ipc_hdr, sizeof(*ipc_buf));
 	if (rx_msg->jsm_msg) {
-		u32 size = min_t(int, rx_msg->ipc_hdr->data_size, sizeof(*jsm_msg));
+		u32 size = min(rx_msg->ipc_hdr->data_size, sizeof(*jsm_msg));
 
 		if (rx_msg->jsm_msg->result != VPU_JSM_STATUS_SUCCESS) {
 			ivpu_err(vdev, "IPC resp result error: %d\n", rx_msg->jsm_msg->result);
drivers/accel/ivpu/ivpu_ms.c +7 -0
index 2a043baf10ca..c527630b829c 100644
@@ -282,6 +282,13 @@ int ivpu_ms_get_info_ioctl(struct drm_device *dev, void *data, struct drm_file *
 	if (ret)
 		goto unlock;
 
+	if (info_size > ivpu_bo_size(bo)) {
+		ivpu_warn_ratelimited(vdev, "MS info overflow: %#llx > %#zx\n",
+				      info_size, ivpu_bo_size(bo));
+		ret = -EOVERFLOW;
+		goto unlock;
+	}
+
 	if (args->buffer_size < info_size) {
 		ret = -ENOSPC;
 		goto unlock;
drivers/base/bus.c +9 -2
index 2653670f962f..e5e700429f53 100644
@@ -506,10 +506,10 @@ static const struct attribute_group driver_override_dev_group = {
  */
 int bus_add_device(struct device *dev)
 {
-	struct subsys_private *sp = bus_to_subsys(dev->bus);
+	struct subsys_private *sp;
 	int error;
 
-	if (!sp) {
+	if (!dev->bus) {
 		/*
 		 * This is a normal operation for many devices that do not
 		 * have a bus assigned to them, just say that all went
@@ -518,6 +518,13 @@ int bus_add_device(struct device *dev)
 		return 0;
 	}
 
+	sp = bus_to_subsys(dev->bus);
+	if (!sp) {
+		pr_err("%s: cannot add device '%s' to unregistered bus '%s'\n",
+		       __func__, dev_name(dev), dev->bus->name);
+		return -EINVAL;
+	}
+
 	/*
 	 * Reference in sp is now incremented and will be dropped when
 	 * the device is removed from the bus
drivers/block/zram/zram_drv.c +1 -1
index dc6a53c9166a..f51dd3378429 100644
@@ -1915,7 +1915,7 @@ static int zram_bvec_write_partial(struct zram *zram, struct bio_vec *bvec,
 	if (!page)
 		return -ENOMEM;
 
-	ret = zram_read_page(zram, page, index, bio);
+	ret = zram_read_page(zram, page, index, NULL);
 	if (!ret) {
 		memcpy_from_bvec(page_address(page) + offset, bvec);
 		ret = zram_write_page(zram, page, index);
drivers/clk/qcom/dispcc-sc8280xp.c +2 -2
index e91dfed0f37e..acc927c2142a 100644
@@ -977,7 +977,7 @@ static struct clk_rcg2 disp0_cc_mdss_mdp_clk_src = {
 		.name = "disp0_cc_mdss_mdp_clk_src",
 		.parent_data = disp0_cc_parent_data_5,
 		.num_parents = ARRAY_SIZE(disp0_cc_parent_data_5),
-		.ops = &clk_rcg2_shared_ops,
+		.ops = &clk_rcg2_shared_no_init_park_ops,
 	},
 };
 
@@ -991,7 +991,7 @@ static struct clk_rcg2 disp1_cc_mdss_mdp_clk_src = {
 		.name = "disp1_cc_mdss_mdp_clk_src",
 		.parent_data = disp1_cc_parent_data_5,
 		.num_parents = ARRAY_SIZE(disp1_cc_parent_data_5),
-		.ops = &clk_rcg2_shared_ops,
+		.ops = &clk_rcg2_shared_no_init_park_ops,
 	},
 };
 
drivers/clk/qcom/dispcc-x1e80100.c +1 -1
index 40069eba41f2..5c00a0f84489 100644
@@ -580,7 +580,7 @@ static struct clk_rcg2 disp_cc_mdss_mdp_clk_src = {
 		.parent_data = disp_cc_parent_data_6,
 		.num_parents = ARRAY_SIZE(disp_cc_parent_data_6),
 		.flags = CLK_SET_RATE_PARENT,
-		.ops = &clk_rcg2_shared_ops,
+		.ops = &clk_rcg2_shared_no_init_park_ops,
 	},
 };
 
drivers/clk/samsung/clk-gs101.c +1 -1
index 70b26db9b95a..cd2bf64e08c5 100644
@@ -3602,7 +3602,7 @@ static const unsigned long peric0_clk_regs[] __initconst = {
 	CLK_CON_DIV_DIV_CLK_PERIC0_USI4_USI,
 	CLK_CON_DIV_DIV_CLK_PERIC0_USI5_USI,
 	CLK_CON_DIV_DIV_CLK_PERIC0_USI6_USI,
-	CLK_CON_DIV_DIV_CLK_PERIC0_USI6_USI,
+	CLK_CON_DIV_DIV_CLK_PERIC0_USI7_USI,
 	CLK_CON_DIV_DIV_CLK_PERIC0_USI8_USI,
 	CLK_CON_BUF_CLKBUF_PERIC0_IP,
 	CLK_CON_GAT_CLK_BLK_PERIC0_UID_PERIC0_CMU_PERIC0_IPCLKPORT_PCLK,
drivers/cpufreq/amd-pstate.h +0 -1
index cb45fdca27a6..75136d2250c1 100644
@@ -76,7 +76,6 @@ struct amd_aperf_mperf {
  * @hw_prefcore: check whether HW supports preferred core featue.
  * 		  Only when hw_prefcore and early prefcore param are true,
  * 		  AMD P-State driver supports preferred core featue.
- * @epp_cached: Cached CPPC energy-performance preference value
  * @policy: Cpufreq policy value
  *
  * The amd_cpudata is key private data for each CPU thread in AMD P-State, and
drivers/firmware/samsung/exynos-acpm.c +8 -5
index 6572cd7be9d1..d3bd4bafe281 100644
@@ -523,10 +523,11 @@ static int acpm_achan_alloc_cmds(struct acpm_chan *achan)
 
 /**
  * acpm_free_mbox_chans() - free mailbox channels.
- * @acpm:	pointer to driver data.
+ * @data:	pointer to driver data.
  */
-static void acpm_free_mbox_chans(struct acpm_info *acpm)
+static void acpm_free_mbox_chans(void *data)
 {
+	struct acpm_info *acpm = data;
 	int i;
 
 	for (i = 0; i < acpm->num_chans; i++)
@@ -554,6 +555,10 @@ static int acpm_channels_init(struct acpm_info *acpm)
 	if (!acpm->chans)
 		return -ENOMEM;
 
+	ret = devm_add_action_or_reset(dev, acpm_free_mbox_chans, acpm);
+	if (ret)
+		return dev_err_probe(dev, ret, "Failed to add mbox free action.\n");
+
 	chans_shmem = acpm->sram_base + readl(&shmem->chans);
 
 	for (i = 0; i < acpm->num_chans; i++) {
@@ -575,10 +580,8 @@ static int acpm_channels_init(struct acpm_info *acpm)
 		cl->dev = dev;
 
 		achan->chan = mbox_request_channel(cl, 0);
-		if (IS_ERR(achan->chan)) {
-			acpm_free_mbox_chans(acpm);
+		if (IS_ERR(achan->chan))
 			return PTR_ERR(achan->chan);
-		}
 	}
 
 	return 0;
drivers/gpio/gpio-mvebu.c +2 -2
index ac799fced950..a7018e8ed88b 100644
@@ -997,7 +997,7 @@ static int mvebu_gpio_suspend(struct platform_device *pdev, pm_message_t state)
 		BUG();
 	}
 
-	if (IS_REACHABLE(CONFIG_PWM))
+	if (IS_REACHABLE(CONFIG_PWM) && mvchip->mvpwm)
 		mvebu_pwm_suspend(mvchip);
 
 	return 0;
@@ -1049,7 +1049,7 @@ static int mvebu_gpio_resume(struct platform_device *pdev)
 		BUG();
 	}
 
-	if (IS_REACHABLE(CONFIG_PWM))
+	if (IS_REACHABLE(CONFIG_PWM) && mvchip->mvpwm)
 		mvebu_pwm_resume(mvchip);
 
 	return 0;
drivers/gpio/gpio-rockchip.c +3 -1
index 1ef0ba956cfd..46dd9085d9c8 100644
@@ -802,8 +802,10 @@ static void rockchip_gpio_remove(struct platform_device *pdev)
 	struct rockchip_pin_bank *bank = platform_get_drvdata(pdev);
 
 	irq_set_chained_handler_and_data(bank->irq, NULL, NULL);
-	if (bank->domain)
+	if (bank->domain) {
+		irq_domain_remove_generic_chips(bank->domain);
 		irq_domain_remove(bank->domain);
+	}
 	gpiochip_remove(&bank->gpio_chip);
 }
 
drivers/gpio/gpio-zynq.c +1 -0
index 0ffd76e8951f..c2e4a79cd6d8 100644
@@ -1017,6 +1017,7 @@ static void zynq_gpio_remove(struct platform_device *pdev)
 	gpiochip_remove(&gpio->chip);
 	device_set_wakeup_capable(&pdev->dev, 0);
 	pm_runtime_disable(&pdev->dev);
+	pm_runtime_put_noidle(&pdev->dev);
 }
 
 static struct platform_driver zynq_gpio_driver = {
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +3 -1
index 2f6a96af7fb1..8669e2fd6eff 100644
@@ -1282,6 +1282,7 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p,
 {
 	struct amdgpu_fpriv *fpriv = p->filp->driver_priv;
 	struct amdgpu_job *leader = p->gang_leader;
+	struct amdgpu_vm *vm = &fpriv->vm;
 	struct amdgpu_bo_list_entry *e;
 	struct drm_gem_object *gobj;
 	unsigned long index;
@@ -1327,7 +1328,8 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p,
 							e->range);
 		e->range = NULL;
 	}
-	if (r) {
+
+	if (r || !list_empty(&vm->invalidated)) {
 		r = -EAGAIN;
 		mutex_unlock(&p->adev->notifier_lock);
 		return r;
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +1 -1
index 6d5f90512a74..b97eb1fef73d 100644
@@ -953,7 +953,7 @@ void amdgpu_gmc_noretry_set(struct amdgpu_device *adev)
 				gc_ver == IP_VERSION(9, 4, 3) ||
 				gc_ver == IP_VERSION(9, 4, 4) ||
 				gc_ver == IP_VERSION(9, 5, 0) ||
-				gc_ver >= IP_VERSION(10, 3, 0));
+				gc_ver >= IP_VERSION(10, 1, 0));
 
 	if (!amdgpu_sriov_xnack_support(adev))
 		gmc->noretry = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c +4 -2
index 621c57cf24bd..ccda3b58a455 100644
@@ -69,6 +69,7 @@ static bool amdgpu_hmm_invalidate_gfx(struct mmu_interval_notifier *mni,
 {
 	struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier);
 	struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev);
+	struct amdgpu_bo *vm_root = bo->vm_bo->vm->root.bo;
 	long r;
 
 	if (!mmu_notifier_range_blockable(range))
@@ -79,8 +80,9 @@ static bool amdgpu_hmm_invalidate_gfx(struct mmu_interval_notifier *mni,
 	mmu_interval_set_seq(mni, cur_seq);
 
 	amdgpu_vm_bo_invalidate(bo, false);
-	r = dma_resv_wait_timeout(bo->tbo.base.resv, DMA_RESV_USAGE_BOOKKEEP,
-				  false, MAX_SCHEDULE_TIMEOUT);
+	r = dma_resv_wait_timeout(vm_root->tbo.base.resv,
+				  DMA_RESV_USAGE_BOOKKEEP, false,
+				  MAX_SCHEDULE_TIMEOUT);
 	mutex_unlock(&adev->notifier_lock);
 	if (r <= 0)
 		DRM_ERROR("(%ld) failed to wait for user bo\n", r);
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1 -1
index b0466a04ec4b..fa183a9db09b 100644
@@ -3293,7 +3293,7 @@ static void copy_context_work_handler(struct work_struct *work)
 static uint32_t *get_queue_ids(uint32_t num_queues, uint32_t *usr_queue_id_array)
 {
 	if (!usr_queue_id_array)
-		return NULL;
+		return num_queues ? ERR_PTR(-EINVAL) : NULL;
 
 	if (num_queues > KFD_MAX_NUM_OF_QUEUES_PER_PROCESS)
 		return ERR_PTR(-EINVAL);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c +41 -8

71 lines not on this page · raw message

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +5 -0
index 00dac862b665..8d452dbd4eef 100644
@@ -1339,8 +1339,13 @@ static ssize_t dp_sdp_message_debugfs_write(struct file *f, const char __user *b
 	if (size == 0)
 		return 0;
 
+	if (!connector->base.state || !connector->base.state->crtc)
+		return -ENODEV;
+
 	acrtc_state = to_dm_crtc_state(connector->base.state->crtc->state);
 
+	write_size = min_t(size_t, size, sizeof(data));
+
 	r = copy_from_user(data, buf, write_size);
 
 	write_size -= r;
drivers/gpu/drm/amd/display/dc/basics/vector.c +2 -2
index b413a672c2c0..cb77fc0ac762 100644
@@ -288,8 +288,8 @@ bool dal_vector_reserve(struct vector *vector, uint32_t capacity)
 	if (capacity <= vector->capacity)
 		return true;
 
-	new_container = krealloc(vector->container,
-				 capacity * vector->struct_size, GFP_KERNEL);
+	new_container = krealloc_array(vector->container,
+				       capacity, vector->struct_size, GFP_KERNEL);
 
 	if (new_container) {
 		vector->container = new_container;
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c +10 -5
index c800c603bf70..ec2a49fe04f3 100644
@@ -220,6 +220,7 @@ static enum bp_result bios_parser_get_i2c_info(struct dc_bios *dcb,
 	ATOM_COMMON_RECORD_HEADER *header;
 	ATOM_I2C_RECORD *record;
 	struct bios_parser *bp = BP_FROM_DCB(dcb);
+	int i;
 
 	if (!info)
 		return BP_RESULT_BADINPUT;
@@ -232,7 +233,7 @@ static enum bp_result bios_parser_get_i2c_info(struct dc_bios *dcb,
 	offset = le16_to_cpu(object->usRecordOffset)
 			+ bp->object_info_tbl_offset;
 
-	for (;;) {
+	for (i = 0; i < BIOS_MAX_NUM_RECORD; i++) {
 		header = GET_IMAGE(ATOM_COMMON_RECORD_HEADER, offset);
 
 		if (!header)
@@ -291,11 +292,12 @@ static enum bp_result bios_parser_get_device_tag_record(
 {
 	ATOM_COMMON_RECORD_HEADER *header;
 	uint32_t offset;
+	int i;
 
 	offset = le16_to_cpu(object->usRecordOffset)
 			+ bp->object_info_tbl_offset;
 
-	for (;;) {
+	for (i = 0; i < BIOS_MAX_NUM_RECORD; i++) {
 		header = GET_IMAGE(ATOM_COMMON_RECORD_HEADER, offset);
 
 		if (!header)
@@ -868,6 +870,7 @@ static ATOM_HPD_INT_RECORD *get_hpd_record(struct bios_parser *bp,
 {
 	ATOM_COMMON_RECORD_HEADER *header;
 	uint32_t offset;
+	int i;
 
 	if (!object) {
 		BREAK_TO_DEBUGGER(); /* Invalid object */
@@ -877,7 +880,7 @@ static ATOM_HPD_INT_RECORD *get_hpd_record(struct bios_parser *bp,
 	offset = le16_to_cpu(object->usRecordOffset)
 			+ bp->object_info_tbl_offset;
 
-	for (;;) {
+	for (i = 0; i < BIOS_MAX_NUM_RECORD; i++) {
 		header = GET_IMAGE(ATOM_COMMON_RECORD_HEADER, offset);
 
 		if (!header)
@@ -1572,6 +1575,7 @@ static ATOM_ENCODER_CAP_RECORD_V2 *get_encoder_cap_record(
 {
 	ATOM_COMMON_RECORD_HEADER *header;
 	uint32_t offset;
+	int i;
 
 	if (!object) {
 		BREAK_TO_DEBUGGER(); /* Invalid object */
@@ -1581,7 +1585,7 @@ static ATOM_ENCODER_CAP_RECORD_V2 *get_encoder_cap_record(
 	offset = le16_to_cpu(object->usRecordOffset)
 					+ bp->object_info_tbl_offset;
 
-	for (;;) {
+	for (i = 0; i < BIOS_MAX_NUM_RECORD; i++) {
 		header = GET_IMAGE(ATOM_COMMON_RECORD_HEADER, offset);
 
 		if (!header)
@@ -2671,6 +2675,7 @@ static enum bp_result update_slot_layout_info(struct dc_bios *dcb,
 					      unsigned int record_offset)
 {
 	unsigned int j;
+	unsigned int n;
 	struct bios_parser *bp;
 	ATOM_BRACKET_LAYOUT_RECORD *record;
 	ATOM_COMMON_RECORD_HEADER *record_header;
@@ -2680,7 +2685,7 @@ static enum bp_result update_slot_layout_info(struct dc_bios *dcb,
 	record = NULL;
 	record_header = NULL;
 
-	for (;;) {
+	for (n = 0; n < BIOS_MAX_NUM_RECORD; n++) {
 
 		record_header = GET_IMAGE(ATOM_COMMON_RECORD_HEADER, record_offset);
 		if (record_header == NULL) {
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +54 -27

291 lines not on this page · raw message

drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.h +5 -0
index ab162f2fe577..19fd7aea18f1 100644
@@ -37,4 +37,9 @@ void bios_set_scratch_critical_state(struct dc_bios *bios, bool state);
 
 #define GET_IMAGE(type, offset) ((type *) bios_get_image(&bp->base, offset, sizeof(type)))
 
+/* Upper bound on the number of records in a VBIOS record chain. Prevents
+ * unbounded looping if the VBIOS image is malformed and lacks a terminator.
+ */
+#define BIOS_MAX_NUM_RECORD 256
+
 #endif
drivers/gpu/drm/amd/display/dc/dc_dp_types.h +1 -1
index db669ccb1d58..22fb29c8729f 100644
@@ -1188,7 +1188,7 @@ struct dc_lttpr_caps {
 	union dp_main_link_channel_coding_lttpr_cap main_link_channel_coding;
 	union dp_128b_132b_supported_lttpr_link_rates supported_128b_132b_rates;
 	union dp_alpm_lttpr_cap alpm;
-	uint8_t aux_rd_interval[MAX_REPEATER_CNT - 1];
+	uint8_t aux_rd_interval[MAX_REPEATER_CNT];
 	uint8_t lttpr_ieee_oui[3]; // Always read from closest LTTPR to host
 	uint8_t lttpr_device_id[6]; // Always read from closest LTTPR to host
 };
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c +9 -1
index 1ab5ae9b5ea5..23b35393bf42 100644
@@ -110,7 +110,15 @@ static const struct out_csc_color_matrix global_color_matrix[] = {
 { COLOR_SPACE_YCBCR601_LIMITED, { 0xE00, 0xF447, 0xFDB9, 0x1000, 0x991,
 	0x12C9, 0x3A6, 0x200, 0xFB47, 0xF6B9, 0xE00, 0x1000} },
 { COLOR_SPACE_YCBCR709_LIMITED, { 0xE00, 0xF349, 0xFEB7, 0x1000, 0x6CE, 0x16E3,
-	0x24F, 0x200, 0xFCCB, 0xF535, 0xE00, 0x1000} }
+	0x24F, 0x200, 0xFCCB, 0xF535, 0xE00, 0x1000} },
+{ COLOR_SPACE_2020_RGB_FULLRANGE,
+	{ 0x2000, 0, 0, 0, 0, 0x2000, 0, 0, 0, 0, 0x2000, 0} },
+{ COLOR_SPACE_2020_RGB_LIMITEDRANGE,
+	{ 0x1B67, 0, 0, 0x201, 0, 0x1B67, 0, 0x201, 0, 0, 0x1B67, 0x201} },
+{ COLOR_SPACE_2020_YCBCR_LIMITED, { 0x1000, 0xF149, 0xFEB7, 0x1004, 0x0868,
+	0x15B2, 0x01E6, 0x201, 0xFB88, 0xF478, 0x1000, 0x1004} },
+{ COLOR_SPACE_2020_YCBCR_FULL, { 0x1000, 0xF149, 0xFEB7, 0x1004, 0x0868, 0x15B2,
+	0x01E6, 0x201, 0xFB88, 0xF478, 0x1000, 0x1004} }
 };
 
 static bool setup_scaling_configuration(
drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c +9 -1
index e096d2b95ef9..f7b2be02333c 100644
@@ -88,7 +88,15 @@ static const struct out_csc_color_matrix global_color_matrix[] = {
 { COLOR_SPACE_YCBCR601_LIMITED, { 0xE00, 0xF447, 0xFDB9, 0x1000, 0x991,
 	0x12C9, 0x3A6, 0x200, 0xFB47, 0xF6B9, 0xE00, 0x1000} },
 { COLOR_SPACE_YCBCR709_LIMITED, { 0xE00, 0xF349, 0xFEB7, 0x1000, 0x6CE, 0x16E3,
-	0x24F, 0x200, 0xFCCB, 0xF535, 0xE00, 0x1000} }
+	0x24F, 0x200, 0xFCCB, 0xF535, 0xE00, 0x1000} },
+{ COLOR_SPACE_2020_RGB_FULLRANGE,
+	{ 0x2000, 0, 0, 0, 0, 0x2000, 0, 0, 0, 0, 0x2000, 0} },
+{ COLOR_SPACE_2020_RGB_LIMITEDRANGE,
+	{ 0x1B67, 0, 0, 0x201, 0, 0x1B67, 0, 0x201, 0, 0, 0x1B67, 0x201} },
+{ COLOR_SPACE_2020_YCBCR_LIMITED, { 0x1000, 0xF149, 0xFEB7, 0x1004, 0x0868,
+	0x15B2, 0x01E6, 0x201, 0xFB88, 0xF478, 0x1000, 0x1004} },
+{ COLOR_SPACE_2020_YCBCR_FULL, { 0x1000, 0xF149, 0xFEB7, 0x1004, 0x0868, 0x15B2,
+	0x01E6, 0x201, 0xFB88, 0xF478, 0x1000, 0x1004} }
 };
 
 enum csc_color_mode {
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c +2 -1
index 2e6408579194..4d262cb987ed 100644
@@ -529,7 +529,8 @@ enum mod_hdcp_status mod_hdcp_read_rx_id_list(struct mod_hdcp *hdcp)
 	} else {
 		status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_REPEATER_AUTH_SEND_RECEIVERID_LIST,
 				hdcp->auth.msg.hdcp2.rx_id_list,
-				hdcp->auth.msg.hdcp2.rx_id_list_size);
+				MIN(hdcp->auth.msg.hdcp2.rx_id_list_size,
+				    sizeof(hdcp->auth.msg.hdcp2.rx_id_list)));
 	}
 	return status;
 }
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +17 -15
index 75b542e03e2d..96a2b5ab87d8 100644
@@ -2468,28 +2468,30 @@ static int smu_v13_0_0_enable_mgpu_fan_boost(struct smu_context *smu)
 }
 
 static int smu_v13_0_0_get_power_limit(struct smu_context *smu,
-						uint32_t *current_power_limit,
-						uint32_t *default_power_limit,
-						uint32_t *max_power_limit,
-						uint32_t *min_power_limit)
+				       uint32_t *current_power_limit,
+				       uint32_t *default_power_limit,
+				       uint32_t *max_power_limit,
+				       uint32_t *min_power_limit)
 {
 	struct smu_table_context *table_context = &smu->smu_table;
 	struct smu_13_0_0_powerplay_table *powerplay_table =
 		(struct smu_13_0_0_powerplay_table *)table_context->power_play_table;
 	PPTable_t *pptable = table_context->driver_pptable;
 	SkuTable_t *skutable = &pptable->SkuTable;
-	uint32_t power_limit, od_percent_upper = 0, od_percent_lower = 0;
-	uint32_t msg_limit = skutable->MsgLimits.Power[PPT_THROTTLER_PPT0][POWER_SOURCE_AC];
-
-	if (smu_v13_0_get_current_power_limit(smu, &power_limit))
-		power_limit = smu->adev->pm.ac_power ?
+	uint32_t pp_limit = smu->adev->pm.ac_power ?
 			      skutable->SocketPowerLimitAc[PPT_THROTTLER_PPT0] :
 			      skutable->SocketPowerLimitDc[PPT_THROTTLER_PPT0];
+	uint32_t power_limit = 0, od_percent_upper = 0, od_percent_lower = 0;
+	int ret;
+
+	if (current_power_limit) {
+		ret = smu_v13_0_get_current_power_limit(smu, &power_limit);
+		if (ret)
+			*current_power_limit = pp_limit;
+	}
 
-	if (current_power_limit)
-		*current_power_limit = power_limit;
 	if (default_power_limit)
-		*default_power_limit = power_limit;
+		*default_power_limit = pp_limit;
 
 	if (powerplay_table) {
 		if (smu->od_enabled &&
@@ -2503,15 +2505,15 @@ static int smu_v13_0_0_get_power_limit(struct smu_context *smu,
 	}
 
 	dev_dbg(smu->adev->dev, "od percent upper:%d, od percent lower:%d (default power: %d)\n",
-					od_percent_upper, od_percent_lower, power_limit);
+		od_percent_upper, od_percent_lower, pp_limit);
 
 	if (max_power_limit) {
-		*max_power_limit = msg_limit * (100 + od_percent_upper);
+		*max_power_limit = pp_limit * (100 + od_percent_upper);
 		*max_power_limit /= 100;
 	}
 
 	if (min_power_limit) {
-		*min_power_limit = power_limit * (100 - od_percent_lower);
+		*min_power_limit = pp_limit * (100 - od_percent_lower);
 		*min_power_limit /= 100;
 	}
 
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +18 -14
index f355ede317d8..0843fa0f5e2a 100644
@@ -2429,28 +2429,32 @@ static int smu_v13_0_7_enable_mgpu_fan_boost(struct smu_context *smu)
 }
 
 static int smu_v13_0_7_get_power_limit(struct smu_context *smu,
-						uint32_t *current_power_limit,
-						uint32_t *default_power_limit,
-						uint32_t *max_power_limit,
-						uint32_t *min_power_limit)
+				       uint32_t *current_power_limit,
+				       uint32_t *default_power_limit,
+				       uint32_t *max_power_limit,
+				       uint32_t *min_power_limit)
 {
 	struct smu_table_context *table_context = &smu->smu_table;
 	struct smu_13_0_7_powerplay_table *powerplay_table =
 		(struct smu_13_0_7_powerplay_table *)table_context->power_play_table;
 	PPTable_t *pptable = table_context->driver_pptable;
 	SkuTable_t *skutable = &pptable->SkuTable;
-	uint32_t power_limit, od_percent_upper = 0, od_percent_lower = 0;
-	uint32_t msg_limit = skutable->MsgLimits.Power[PPT_THROTTLER_PPT0][POWER_SOURCE_AC];
-
-	if (smu_v13_0_get_current_power_limit(smu, &power_limit))
-		power_limit = smu->adev->pm.ac_power ?
+	uint32_t pp_limit = smu->adev->pm.ac_power ?
 			      skutable->SocketPowerLimitAc[PPT_THROTTLER_PPT0] :
 			      skutable->SocketPowerLimitDc[PPT_THROTTLER_PPT0];
+	uint32_t power_limit = 0, od_percent_upper = 0, od_percent_lower = 0;
+	int ret;
+
+	if (current_power_limit) {
+		ret = smu_v13_0_get_current_power_limit(smu, &power_limit);
+		if (ret)
+			power_limit = pp_limit;
 
-	if (current_power_limit)
 		*current_power_limit = power_limit;
+	}
+
 	if (default_power_limit)
-		*default_power_limit = power_limit;
+		*default_power_limit = pp_limit;
 
 	if (powerplay_table) {
 		if (smu->od_enabled &&
@@ -2464,15 +2468,15 @@ static int smu_v13_0_7_get_power_limit(struct smu_context *smu,
 	}
 
 	dev_dbg(smu->adev->dev, "od percent upper:%d, od percent lower:%d (default power: %d)\n",
-					od_percent_upper, od_percent_lower, power_limit);
+		od_percent_upper, od_percent_lower, pp_limit);
 
 	if (max_power_limit) {
-		*max_power_limit = msg_limit * (100 + od_percent_upper);
+		*max_power_limit = pp_limit * (100 + od_percent_upper);
 		*max_power_limit /= 100;
 	}
 
 	if (min_power_limit) {
-		*min_power_limit = power_limit * (100 - od_percent_lower);
+		*min_power_limit = pp_limit * (100 - od_percent_lower);
 		*min_power_limit /= 100;
 	}
 
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c +2 -1
index fe00c84b1cc6..44cce9b636ca 100644
@@ -1221,7 +1221,8 @@ static int smu_v14_0_0_set_soft_freq_limited_range(struct smu_context *smu,
 	switch (clk_type) {
 	case SMU_GFXCLK:
 	case SMU_SCLK:
-		msg_set_min = SMU_MSG_SetHardMinGfxClk;
+		/* SoftMin lets PMFW throttle gfxclk; HardMin would override SoftMax. */
+		msg_set_min = SMU_MSG_SetSoftMinGfxclk;
 		msg_set_max = SMU_MSG_SetSoftMaxGfxClk;
 		break;
 	case SMU_FCLK:
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c +0 -1
index 3924429e1120..969be5ad0681 100644
@@ -2222,7 +2222,6 @@ static ssize_t smu_v14_0_2_get_gpu_metrics(struct smu_context *smu,
 					       metrics->Vcn1ActivityPercentage);
 
 	gpu_metrics->average_socket_power = metrics->AverageSocketPower;
-	gpu_metrics->energy_accumulator = metrics->EnergyAccumulator;
 
 	if (metrics->AverageGfxActivity <= SMU_14_0_2_BUSY_THRESHOLD)
 		gpu_metrics->average_gfxclk_frequency = metrics->AverageGfxclkFrequencyPostDs;
drivers/gpu/drm/drm_gem.c +35 -40

113 lines not on this page · raw message

drivers/gpu/drm/drm_ioctl.c +2 -1
index d8a24875a7ba..e81ec3eb516b 100644
@@ -653,7 +653,8 @@ static const struct drm_ioctl_desc drm_ioctls[] = {
 	DRM_IOCTL_DEF(DRM_IOCTL_GEM_CLOSE, drm_gem_close_ioctl, DRM_RENDER_ALLOW),
 	DRM_IOCTL_DEF(DRM_IOCTL_GEM_FLINK, drm_gem_flink_ioctl, DRM_AUTH),
 	DRM_IOCTL_DEF(DRM_IOCTL_GEM_OPEN, drm_gem_open_ioctl, DRM_AUTH),
-	DRM_IOCTL_DEF(DRM_IOCTL_GEM_CHANGE_HANDLE, drm_gem_change_handle_ioctl, DRM_RENDER_ALLOW),
+	/* see drm_gem.c:drm_gem_change_handle_ioctl for why this is invalid */
+	DRM_IOCTL_DEF(DRM_IOCTL_GEM_CHANGE_HANDLE, drm_invalid_op, DRM_RENDER_ALLOW),
 
 	DRM_IOCTL_DEF(DRM_IOCTL_MODE_GETRESOURCES, drm_mode_getresources, 0),
 
drivers/gpu/drm/hyperv/hyperv_drm_drv.c +5 -0
index 0d49f168a919..dad8fd5cb1d3 100644
@@ -149,6 +149,10 @@ static int hyperv_vmbus_probe(struct hv_device *hdev,
 		goto err_free_mmio;
 	}
 
+	/* If DRM panic path is stubbed out VMBus code must do the unload */
+	if (IS_ENABLED(CONFIG_DRM_PANIC))
+		vmbus_set_skip_unload(true);
+
 	drm_client_setup(dev, NULL);
 
 	return 0;
@@ -168,6 +172,7 @@ static void hyperv_vmbus_remove(struct hv_device *hdev)
 	struct drm_device *dev = hv_get_drvdata(hdev);
 	struct hyperv_drm_device *hv = to_hv(dev);
 
+	vmbus_set_skip_unload(false);
 	drm_dev_unplug(dev);
 	drm_atomic_helper_shutdown(dev);
 	vmbus_close(hdev->channel);
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c +8 -7
index 945b9482bcb3..86696a9a32c5 100644
@@ -204,15 +204,16 @@ static void hyperv_plane_panic_flush(struct drm_plane *plane)
 	struct hyperv_drm_device *hv = to_hv(plane->dev);
 	struct drm_rect rect;
 
-	if (!plane->state || !plane->state->fb)
-		return;
+	if (plane->state && plane->state->fb) {
+		rect.x1 = 0;
+		rect.y1 = 0;
+		rect.x2 = plane->state->fb->width;
+		rect.y2 = plane->state->fb->height;
 
-	rect.x1 = 0;
-	rect.y1 = 0;
-	rect.x2 = plane->state->fb->width;
-	rect.y2 = plane->state->fb->height;
+		hyperv_update_dirt(hv->hdev, &rect);
+	}
 
-	hyperv_update_dirt(hv->hdev, &rect);
+	vmbus_initiate_unload(true);
 }
 
 static const struct drm_plane_helper_funcs hyperv_plane_helper_funcs = {
drivers/gpu/drm/i915/display/intel_dp.c +9 -2
index a44fbac1e5e2..c7886b364770 100644
@@ -4372,10 +4372,17 @@ intel_edp_set_sink_rates(struct intel_dp *intel_dp)
 
 	if (intel_dp->edp_dpcd[0] >= DP_EDP_14) {
 		__le16 sink_rates[DP_MAX_SUPPORTED_RATES];
+		int ret;
 		int i;
 
-		drm_dp_dpcd_read(&intel_dp->aux, DP_SUPPORTED_LINK_RATES,
-				 sink_rates, sizeof(sink_rates));
+		ret = drm_dp_dpcd_read_data(&intel_dp->aux,
+					    DP_SUPPORTED_LINK_RATES,
+					    sink_rates, sizeof(sink_rates));
+		if (ret < 0) {
+			drm_dbg_kms(display->drm,
+				    "Unable to read eDP supported link rates, using default rates\n");
+			memset(sink_rates, 0, sizeof(sink_rates));
+		}
 
 		for (i = 0; i < ARRAY_SIZE(sink_rates); i++) {
 			int rate;
drivers/gpu/drm/i915/gem/i915_gem_phys.c +15 -4
index f9e7cab140f8..5d46ea97744a 100644
@@ -17,6 +17,17 @@
 #include "i915_gem_tiling.h"
 #include "i915_scatterlist.h"
 
+/* Abuse scatterlist to store pointer instead of struct page. */
+static inline void __set_phys_vaddr(struct scatterlist *sg, void *vaddr)
+{
+	sg_assign_page(sg, (struct page *)vaddr);
+}
+
+static inline void *__get_phys_vaddr(struct scatterlist *sg)
+{
+	return (void *)sg_page(sg);
+}
+
 static int i915_gem_object_get_pages_phys(struct drm_i915_gem_object *obj)
 {
 	struct address_space *mapping = obj->base.filp->f_mapping;
@@ -57,7 +68,7 @@ static int i915_gem_object_get_pages_phys(struct drm_i915_gem_object *obj)
 	sg->offset = 0;
 	sg->length = obj->base.size;
 
-	sg_assign_page(sg, (struct page *)vaddr);
+	__set_phys_vaddr(sg, vaddr);
 	sg_dma_address(sg) = dma;
 	sg_dma_len(sg) = obj->base.size;
 
@@ -98,7 +109,7 @@ i915_gem_object_put_pages_phys(struct drm_i915_gem_object *obj,
 			       struct sg_table *pages)
 {
 	dma_addr_t dma = sg_dma_address(pages->sgl);
-	void *vaddr = sg_page(pages->sgl);
+	void *vaddr = __get_phys_vaddr(pages->sgl);
 
 	__i915_gem_object_release_shmem(obj, pages, false);
 
@@ -138,7 +149,7 @@ i915_gem_object_put_pages_phys(struct drm_i915_gem_object *obj,
 int i915_gem_object_pwrite_phys(struct drm_i915_gem_object *obj,
 				const struct drm_i915_gem_pwrite *args)
 {
-	void *vaddr = sg_page(obj->mm.pages->sgl) + args->offset;
+	void *vaddr = __get_phys_vaddr(obj->mm.pages->sgl) + args->offset;
 	char __user *user_data = u64_to_user_ptr(args->data_ptr);
 	struct drm_i915_private *i915 = to_i915(obj->base.dev);
 	int err;
@@ -169,7 +180,7 @@ int i915_gem_object_pwrite_phys(struct drm_i915_gem_object *obj,
 int i915_gem_object_pread_phys(struct drm_i915_gem_object *obj,
 			       const struct drm_i915_gem_pread *args)
 {
-	void *vaddr = sg_page(obj->mm.pages->sgl) + args->offset;
+	void *vaddr = __get_phys_vaddr(obj->mm.pages->sgl) + args->offset;
 	char __user *user_data = u64_to_user_ptr(args->data_ptr);
 	int err;
 
drivers/gpu/drm/imx/dcss/dcss-scaler.c +3 -0
index 32c3f46b21da..5c7f8d952ec1 100644
@@ -166,6 +166,7 @@ static int exp_approx_q(int x)
  * dcss_scaler_gaussian_filter() - Generate gaussian prototype filter.
  * @fc_q: fixed-point cutoff frequency normalized to range [0, 1]
  * @use_5_taps: indicates whether to use 5 taps or 7 taps
+ * @phase0_identity: whether to override phase 0 coefficients with identity filter
  * @coef: output filter coefficients
  */
 static void dcss_scaler_gaussian_filter(int fc_q, bool use_5_taps,
@@ -262,7 +263,9 @@ static void dcss_scaler_nearest_neighbor_filter(bool use_5_taps,
  * @src_length: length of input
  * @dst_length: length of output
  * @use_5_taps: 0 for 7 taps per phase, 1 for 5 taps
+ * @phase0_identity: whether to override phase 0 coefficients with identity filter
  * @coef: output coefficients
+ * @nn_interpolation: whether to use nearest neighbor instead of gaussian filter
  */
 static void dcss_scaler_filter_design(int src_length, int dst_length,
 				      bool use_5_taps, bool phase0_identity,
drivers/gpu/drm/v3d/v3d_gem.c +8 -0
index bb110d35f749..ab29dde22361 100644
@@ -212,6 +212,14 @@ v3d_clean_caches(struct v3d_dev *v3d)
 
 	trace_v3d_cache_clean_begin(dev);
 
+	/* GFXH-1897: Ensure pending flushes complete before writing L2TCACTL */
+	if (v3d->ver < V3D_GEN_71) {
+		if (wait_for(!(V3D_CORE_READ(core, V3D_CTL_L2TCACTL) &
+			       V3D_L2TCACTL_L2TFLS), 100)) {
+			drm_err(dev, "Timeout waiting for L2T clean\n");
+		}
+	}
+
 	V3D_CORE_WRITE(core, V3D_CTL_L2TCACTL, V3D_L2TCACTL_TMUWCF);
 	if (wait_for(!(V3D_CORE_READ(core, V3D_CTL_L2TCACTL) &
 		       V3D_L2TCACTL_TMUWCF), 100)) {
drivers/gpu/drm/v3d/v3d_perfmon.c +19 -5
index 9a3fe5255874..1c0b957e403f 100644
@@ -313,8 +313,11 @@ static int v3d_perfmon_idr_del(int id, void *elem, void *data)
 	if (perfmon == v3d->active_perfmon)
 		v3d_perfmon_stop(v3d, perfmon, false);
 
-	/* If the global perfmon is being destroyed, set it to NULL */
-	cmpxchg(&v3d->global_perfmon, perfmon, NULL);
+	/* If the global perfmon is being destroyed, clean it and release
+	 * the reference stashed in v3d_perfmon_set_global_ioctl().
+	 */
+	if (cmpxchg(&v3d->global_perfmon, perfmon, NULL) == perfmon)
+		v3d_perfmon_put(perfmon);
 
 	v3d_perfmon_put(perfmon);
 
@@ -481,16 +484,27 @@ int v3d_perfmon_set_global_ioctl(struct drm_device *dev, void *data,
 
 	/* If the request is to clear the global performance monitor */
 	if (req->flags & DRM_V3D_PERFMON_CLEAR_GLOBAL) {
-		if (!v3d->global_perfmon)
+		struct v3d_perfmon *old;
+
+		/* DRM_V3D_PERFMON_CLEAR_GLOBAL doesn't check if
+		 * v3d->global_perfmon == perfmon. Therefore, there
+		 * is no need to keep perfmon's reference.
+		 */
+		v3d_perfmon_put(perfmon);
+
+		old = xchg(&v3d->global_perfmon, NULL);
+		if (!old)
 			return -EINVAL;
 
-		xchg(&v3d->global_perfmon, NULL);
+		v3d_perfmon_put(old);
 
 		return 0;
 	}
 
-	if (cmpxchg(&v3d->global_perfmon, NULL, perfmon))
+	if (cmpxchg(&v3d->global_perfmon, NULL, perfmon)) {
+		v3d_perfmon_put(perfmon);
 		return -EBUSY;
+	}
 
 	return 0;
 }
drivers/gpu/drm/v3d/v3d_sched.c +14 -3
index e0cbd12c51c9..670805645c4d 100644
@@ -377,6 +377,16 @@ v3d_csd_job_run(struct drm_sched_job *sched_job)
 		return NULL;
 	}
 
+	/* The HW interprets a workgroup size of 0 as 65536; however, the
+	 * user-space driver exposes a maximum of 65535. Therefore, a 0 in
+	 * any dimension means that we have no workgroups and the compute
+	 * shader should not be dispatched.
+	 */
+	if (!V3D_GET_FIELD(job->args.cfg[0], V3D_CSD_QUEUED_CFG0_NUM_WGS_X) ||
+	    !V3D_GET_FIELD(job->args.cfg[1], V3D_CSD_QUEUED_CFG1_NUM_WGS_Y) ||
+	    !V3D_GET_FIELD(job->args.cfg[2], V3D_CSD_QUEUED_CFG2_NUM_WGS_Z))
+		return NULL;
+
 	v3d->queue[V3D_CSD].active_job = &job->base;
 
 	v3d_invalidate_caches(v3d);
@@ -427,13 +437,13 @@ v3d_rewrite_csd_job_wg_counts_from_indirect(struct v3d_cpu_job *job)
 
 	wg_counts = (uint32_t *)(bo->vaddr + indirect_csd->offset);
 
-	if (wg_counts[0] == 0 || wg_counts[1] == 0 || wg_counts[2] == 0)
-		return;
-
 	args->cfg[0] = wg_counts[0] << V3D_CSD_CFG012_WG_COUNT_SHIFT;
 	args->cfg[1] = wg_counts[1] << V3D_CSD_CFG012_WG_COUNT_SHIFT;
 	args->cfg[2] = wg_counts[2] << V3D_CSD_CFG012_WG_COUNT_SHIFT;
 
+	if (wg_counts[0] == 0 || wg_counts[1] == 0 || wg_counts[2] == 0)
+		goto unmap_bo;
+
 	num_batches = DIV_ROUND_UP(indirect_csd->wg_size, 16) *
 		      (wg_counts[0] * wg_counts[1] * wg_counts[2]);
 
@@ -453,6 +463,7 @@ v3d_rewrite_csd_job_wg_counts_from_indirect(struct v3d_cpu_job *job)
 		}
 	}
 
+unmap_bo:
 	v3d_put_bo_vaddr(indirect);
 	v3d_put_bo_vaddr(bo);
 }
drivers/gpu/drm/vc4/vc4_validate_shaders.c +7 -6
index 2d74e786914c..7ce3ec0906c3 100644
@@ -288,15 +288,16 @@ static bool require_uniform_address_uniform(struct vc4_validated_shader_info *va
 {
 	uint32_t o = validated_shader->num_uniform_addr_offsets;
 	uint32_t num_uniforms = validated_shader->uniforms_size / 4;
+	u32 *offsets;
 
-	validated_shader->uniform_addr_offsets =
-		krealloc(validated_shader->uniform_addr_offsets,
-			 (o + 1) *
-			 sizeof(*validated_shader->uniform_addr_offsets),
-			 GFP_KERNEL);
-	if (!validated_shader->uniform_addr_offsets)
+	offsets = krealloc_array(validated_shader->uniform_addr_offsets,
+				 o + 1,
+				 sizeof(*validated_shader->uniform_addr_offsets),
+				 GFP_KERNEL);
+	if (!offsets)
 		return false;
 
+	validated_shader->uniform_addr_offsets = offsets;
 	validated_shader->uniform_addr_offsets[o] = num_uniforms;
 	validated_shader->num_uniform_addr_offsets++;
 
drivers/gpu/drm/virtio/virtgpu_drv.c +4 -1
index 71c6ccad4b99..d9556e1b67b1 100644
@@ -123,7 +123,10 @@ static void virtio_gpu_remove(struct virtio_device *vdev)
 	struct drm_device *dev = vdev->priv;
 
 	drm_dev_unplug(dev);
-	drm_atomic_helper_shutdown(dev);
+
+	if (drm_core_check_feature(dev, DRIVER_ATOMIC))
+		drm_atomic_helper_shutdown(dev);
+
 	virtio_gpu_deinit(dev);
 	drm_dev_put(dev);
 }
drivers/gpu/drm/virtio/virtgpu_submit.c +3 -1
index 7d34cf83f5f2..409ecdb0d680 100644
@@ -65,8 +65,10 @@ static int virtio_gpu_dma_fence_wait(struct virtio_gpu_submit *submit,
 
 	dma_fence_unwrap_for_each(f, &itr, fence) {
 		err = virtio_gpu_do_fence_wait(submit, f);
-		if (err)
+		if (err) {
+			dma_fence_put(itr.chain);
 			return err;
+		}
 	}
 
 	return 0;
drivers/gpu/drm/xe/display/xe_display.c +9 -2
index 19e691fccf8c..2ca957294b85 100644
@@ -109,6 +109,15 @@ int xe_display_init_early(struct xe_device *xe)
 
 	intel_display_driver_early_probe(display);
 
+	intel_display_device_info_runtime_init(display);
+
+	/* Display may have been disabled at runtime init */
+	if (!intel_display_device_present(display)) {
+		xe->info.probe_display = false;
+		unset_display_features(xe);
+		return 0;
+	}
+
 	/* Early display init.. */
 	intel_opregion_setup(display);
 
@@ -122,8 +131,6 @@ int xe_display_init_early(struct xe_device *xe)
 
 	intel_bw_init_hw(display);
 
-	intel_display_device_info_runtime_init(display);
-
 	err = intel_display_driver_probe_noirq(display);
 	if (err)
 		goto err_opregion;
drivers/gpu/drm/xe/xe_guc_submit.c +1 -1
index ecee50d82710..b846fe013538 100644
@@ -2179,8 +2179,8 @@ static void handle_sched_done(struct xe_guc *guc, struct xe_exec_queue *q,
 		xe_gt_assert(guc_to_gt(guc), exec_queue_pending_disable(q));
 
 		if (q->guc->suspend_pending) {
-			suspend_fence_signal(q);
 			clear_exec_queue_pending_disable(q);
+			suspend_fence_signal(q);
 		} else {
 			if (exec_queue_banned(q) || check_timeout) {
 				smp_wmb();
drivers/gpu/drm/xe/xe_range_fence.c +2 -0
index 372378e89e98..3d8fa194a7b0 100644
@@ -77,6 +77,8 @@ int xe_range_fence_insert(struct xe_range_fence_tree *tree,
 	} else if (err == 0) {
 		xe_range_fence_tree_insert(rfence, &tree->root);
 		return 0;
+	} else {
+		dma_fence_put(fence);
 	}
 
 free:
drivers/hv/channel_mgmt.c +1 -0
index 65dd299e2944..fd1d675ae37a 100644
@@ -944,6 +944,7 @@ void vmbus_initiate_unload(bool crash)
 	else
 		vmbus_wait_for_unload();
 }
+EXPORT_SYMBOL_GPL(vmbus_initiate_unload);
 
 static void vmbus_setup_channel_state(struct vmbus_channel *channel,
 				      struct vmbus_channel_offer_channel *offer)
drivers/hv/hyperv_vmbus.h +2 -1
index 0b450e53161e..34943de7d6ac 100644
@@ -333,6 +333,8 @@ extern const struct vmbus_channel_message_table_entry
 
 /* General vmbus interface */
 
+bool vmbus_is_confidential(void);
+
 struct hv_device *vmbus_device_create(const guid_t *type,
 				      const guid_t *instance,
 				      struct vmbus_channel *channel);
@@ -374,7 +376,6 @@ void hv_vss_deinit(void);
 int hv_vss_pre_suspend(void);
 int hv_vss_pre_resume(void);
 void hv_vss_onchannelcallback(void *context);
-void vmbus_initiate_unload(bool crash);
 
 static inline void hv_poll_channel(struct vmbus_channel *channel,
 				   void (*cb)(void *))
drivers/hv/vmbus_drv.c +30 -7
index 3ab62277b6be..8a090e2a28f9 100644
@@ -57,19 +57,41 @@ static long __percpu *vmbus_evt;
 int vmbus_irq;
 int vmbus_interrupt;
 
+/*
+ * If the Confidential VMBus is used, the data on the "wire" is not
+ * visible to either the host or the hypervisor.
+ */
+static bool is_confidential;
+
+bool vmbus_is_confidential(void)
+{
+	return is_confidential;
+}
+EXPORT_SYMBOL_GPL(vmbus_is_confidential);
+
+static bool skip_vmbus_unload;
+
+/*
+ * Allow a VMBus framebuffer driver to specify that in the case of a panic,
+ * it will do the VMbus unload operation once it has flushed any dirty
+ * portions of the framebuffer to the Hyper-V host.
+ */
+void vmbus_set_skip_unload(bool skip)
+{
+	skip_vmbus_unload = skip;
+}
+EXPORT_SYMBOL_GPL(vmbus_set_skip_unload);
+
 /*
  * The panic notifier below is responsible solely for unloading the
  * vmbus connection, which is necessary in a panic event.
- *
- * Notice an intrincate relation of this notifier with Hyper-V
- * framebuffer panic notifier exists - we need vmbus connection alive
- * there in order to succeed, so we need to order both with each other
- * [see hvfb_on_panic()] - this is done using notifiers' priorities.
  */
 static int hv_panic_vmbus_unload(struct notifier_block *nb, unsigned long val,
 			      void *args)
 {
-	vmbus_initiate_unload(true);
+	if (!skip_vmbus_unload)
+		vmbus_initiate_unload(true);
+
 	return NOTIFY_DONE;
 }
 static struct notifier_block hyperv_panic_vmbus_unload_block = {
@@ -2850,7 +2872,8 @@ static void hv_crash_handler(struct pt_regs *regs)
 {
 	int cpu;
 
-	vmbus_initiate_unload(true);
+	if (!skip_vmbus_unload)
+		vmbus_initiate_unload(true);
 	/*
 	 * In crash handler we can't schedule synic cleanup for all CPUs,
 	 * doing the cleanup for current CPU only. This should be sufficient
drivers/i2c/busses/i2c-imx-lpi2c.c +32 -21

87 lines not on this page · raw message

drivers/i2c/busses/i2c-imx.c +12 -3
index a208fefd3c3b..28313d0fad37 100644
@@ -1892,9 +1892,15 @@ static void i2c_imx_remove(struct platform_device *pdev)
 static int i2c_imx_runtime_suspend(struct device *dev)
 {
 	struct imx_i2c_struct *i2c_imx = dev_get_drvdata(dev);
+	int ret;
+
+	ret = pinctrl_pm_select_sleep_state(dev);
+	if (ret)
+		return ret;
 
 	clk_disable(i2c_imx->clk);
-	return pinctrl_pm_select_sleep_state(dev);
+
+	return 0;
 }
 
 static int i2c_imx_runtime_resume(struct device *dev)
@@ -1907,10 +1913,13 @@ static int i2c_imx_runtime_resume(struct device *dev)
 		return ret;
 
 	ret = clk_enable(i2c_imx->clk);
-	if (ret)
+	if (ret) {
 		dev_err(dev, "can't enable I2C clock, ret=%d\n", ret);
+		pinctrl_pm_select_sleep_state(dev);
+		return ret;
+	}
 
-	return ret;
+	return 0;
 }
 
 static int i2c_imx_suspend(struct device *dev)
drivers/i2c/busses/i2c-qcom-cci.c +1 -1
index e631d79baf14..9d83358f2ae2 100644
@@ -663,8 +663,8 @@ static void cci_remove(struct platform_device *pdev)
 		if (cci->master[i].cci) {
 			i2c_del_adapter(&cci->master[i].adap);
 			of_node_put(cci->master[i].adap.dev.of_node);
+			cci_halt(cci, i);
 		}
-		cci_halt(cci, i);
 	}
 
 	disable_irq(cci->irq);
drivers/i2c/busses/i2c-stm32f7.c +3 -3
index dc69ed934ec8..905aa9ab64e1 100644
@@ -694,6 +694,9 @@ static int stm32f7_i2c_setup_timing(struct stm32f7_i2c_dev *i2c_dev,
 	if (!of_property_read_bool(i2c_dev->dev->of_node, "i2c-digital-filter"))
 		i2c_dev->dnf_dt = STM32F7_I2C_DNF_DEFAULT;
 
+	i2c_dev->analog_filter = of_property_read_bool(i2c_dev->dev->of_node,
+						       "i2c-analog-filter");
+
 	do {
 		ret = stm32f7_i2c_compute_timing(i2c_dev, setup,
 						 &i2c_dev->timing);
@@ -715,9 +718,6 @@ static int stm32f7_i2c_setup_timing(struct stm32f7_i2c_dev *i2c_dev,
 		return ret;
 	}
 
-	i2c_dev->analog_filter = of_property_read_bool(i2c_dev->dev->of_node,
-						       "i2c-analog-filter");
-
 	dev_dbg(i2c_dev->dev, "I2C Speed(%i), Clk Source(%i)\n",
 		setup->speed_freq, setup->clock_src);
 	dev_dbg(i2c_dev->dev, "I2C Rise(%i) and Fall(%i) Time\n",
drivers/i2c/busses/i2c-tegra.c +30 -23

83 lines not on this page · raw message

drivers/i2c/i2c-dev.c +5 -4
index e9577f920286..c8715df8b08b 100644
@@ -487,12 +487,13 @@ static long i2cdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 		client->adapter->retries = arg;
 		break;
 	case I2C_TIMEOUT:
-		if (arg > INT_MAX)
+		/*
+		 * For historical reasons, user-space sets the timeout value in
+		 * units of 10 ms.
+		 */
+		if (arg > INT_MAX / 10)
 			return -EINVAL;
 
-		/* For historical reasons, user-space sets the timeout
-		 * value in units of 10 ms.
-		 */
 		client->adapter->timeout = msecs_to_jiffies(arg * 10);
 		break;
 	default:
drivers/infiniband/core/Makefile +1 -1
index f483e0c12444..48922e0ede56 100644
@@ -12,7 +12,7 @@ ib_core-y :=			packer.o ud_header.o verbs.o cq.o rw.o sysfs.o \
 				roce_gid_mgmt.o mr_pool.o addr.o sa_query.o \
 				multicast.o mad.o smi.o agent.o mad_rmpp.o \
 				nldev.o restrack.o counters.o ib_core_uverbs.o \
-				trace.o lag.o
+				trace.o lag.o iter.o
 
 ib_core-$(CONFIG_SECURITY_INFINIBAND) += security.o
 ib_core-$(CONFIG_CGROUP_RDMA) += cgroup.o
drivers/infiniband/core/iter.c new file +43 -0

43 lines not on this page · raw message

drivers/infiniband/core/ucaps.c +3 -5
index de5cb8bf0a61..c02e0da40597 100644
@@ -82,14 +82,12 @@ static int get_ucap_from_devt(dev_t devt, u64 *idx_mask)
 
 static int get_devt_from_fd(unsigned int fd, dev_t *ret_dev)
 {
-	struct file *file;
+	CLASS(fd, f)(fd);
 
-	file = fget(fd);
-	if (!file)
+	if (fd_empty(f) || fd_file(f)->f_op != &ucaps_cdev_fops)
 		return -EBADF;
 
-	*ret_dev = file_inode(file)->i_rdev;
-	fput(file);
+	*ret_dev = file_inode(fd_file(f))->i_rdev;
 	return 0;
 }
 
drivers/infiniband/core/umem.c +16 -0
index c5b686394760..fd3a774904f8 100644
@@ -326,3 +326,19 @@ int ib_umem_copy_from(void *dst, struct ib_umem *umem, size_t offset,
 		return 0;
 }
 EXPORT_SYMBOL(ib_umem_copy_from);
+
+/*
+ * Called during rereg mr if the driver is able to re-use a umem for
+ * IB_MR_REREG_ACCESS.
+ */
+int ib_umem_check_rereg(struct ib_umem *umem, int flags, int new_access_flags)
+{
+	if (!umem)
+		return 0;
+
+	if ((flags & IB_MR_REREG_ACCESS) && !(flags & IB_MR_REREG_TRANS))
+		if (ib_access_writable(new_access_flags) && !umem->writable)
+			return -EACCES;
+	return 0;
+}
+EXPORT_SYMBOL(ib_umem_check_rereg);
drivers/infiniband/core/umem_dmabuf.c +59 -18

110 lines not on this page · raw message

drivers/infiniband/core/uverbs_std_types_dmah.c +5 -0
index 453ce656c6f2..97101e093826 100644
@@ -47,6 +47,11 @@ static int UVERBS_HANDLER(UVERBS_METHOD_DMAH_ALLOC)(
 		if (ret)
 			goto err;
 
+		if (dmah->cpu_id >= nr_cpu_ids) {
+			ret = -EINVAL;
+			goto err;
+		}
+
 		if (!cpumask_test_cpu(dmah->cpu_id, current->cpus_ptr)) {
 			ret = -EPERM;
 			goto err;
drivers/infiniband/core/verbs.c +0 -38
index d279e301f5a1..bc1878da55cd 100644
@@ -3096,44 +3096,6 @@ int rdma_init_netdev(struct ib_device *device, u32 port_num,
 }
 EXPORT_SYMBOL(rdma_init_netdev);
 
-void __rdma_block_iter_start(struct ib_block_iter *biter,
-			     struct scatterlist *sglist, unsigned int nents,
-			     unsigned long pgsz)
-{
-	memset(biter, 0, sizeof(struct ib_block_iter));
-	biter->__sg = sglist;
-	biter->__sg_nents = nents;
-
-	/* Driver provides best block size to use */
-	biter->__pg_bit = __fls(pgsz);
-}
-EXPORT_SYMBOL(__rdma_block_iter_start);
-
-bool __rdma_block_iter_next(struct ib_block_iter *biter)
-{
-	unsigned int block_offset;
-	unsigned int delta;
-
-	if (!biter->__sg_nents || !biter->__sg)
-		return false;
-
-	biter->__dma_addr = sg_dma_address(biter->__sg) + biter->__sg_advance;
-	block_offset = biter->__dma_addr & (BIT_ULL(biter->__pg_bit) - 1);
-	delta = BIT_ULL(biter->__pg_bit) - block_offset;
-
-	while (biter->__sg_nents && biter->__sg &&
-	       sg_dma_len(biter->__sg) - biter->__sg_advance <= delta) {
-		delta -= sg_dma_len(biter->__sg) - biter->__sg_advance;
-		biter->__sg_advance = 0;
-		biter->__sg = sg_next(biter->__sg);
-		biter->__sg_nents--;
-	}
-	biter->__sg_advance += delta;
-
-	return true;
-}
-EXPORT_SYMBOL(__rdma_block_iter_next);
-
 /**
  * rdma_alloc_hw_stats_struct - Helper function to allocate dynamic struct
  *   for the drivers.
drivers/infiniband/hw/bnxt_re/qplib_res.c +1 -1
index 4d674a3aee1a..d321acb07335 100644
@@ -46,7 +46,7 @@
 #include <linux/if_vlan.h>
 #include <linux/vmalloc.h>
 #include <rdma/ib_verbs.h>
-#include <rdma/ib_umem.h>
+#include <rdma/iter.h>
 
 #include "roce_hsi.h"
 #include "qplib_res.h"
drivers/infiniband/hw/cxgb4/mem.c +1 -1
index dcdfe250bdbe..40dd6ac5f91a 100644
@@ -32,9 +32,9 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <rdma/ib_umem.h>
 #include <linux/atomic.h>
 #include <rdma/ib_user_verbs.h>
+#include <rdma/iter.h>
 
 #include "iw_cxgb4.h"
 
drivers/infiniband/hw/efa/efa_verbs.c +1 -1
index 5cab7dd70aeb..0bb3389d761f 100644
@@ -9,9 +9,9 @@
 #include <linux/log2.h>
 
 #include <rdma/ib_addr.h>
-#include <rdma/ib_umem.h>
 #include <rdma/ib_user_verbs.h>
 #include <rdma/ib_verbs.h>
+#include <rdma/iter.h>
 #include <rdma/uverbs_ioctl.h>
 #define UVERBS_MODULE_NAME efa_ib
 #include <rdma/uverbs_named_ioctl.h>
drivers/infiniband/hw/erdma/erdma_verbs.c +1 -1
index 109a3f3de911..058edc42de58 100644
@@ -12,7 +12,7 @@
 #include <linux/vmalloc.h>
 #include <net/addrconf.h>
 #include <rdma/erdma-abi.h>
-#include <rdma/ib_umem.h>
+#include <rdma/iter.h>
 #include <rdma/uverbs_ioctl.h>
 
 #include "erdma.h"
drivers/infiniband/hw/hns/hns_roce_alloc.c +1 -1
index 6ee911f6885b..c21004814c3c 100644
@@ -32,7 +32,7 @@
  */
 
 #include <linux/vmalloc.h>
-#include <rdma/ib_umem.h>
+#include <rdma/iter.h>
 #include "hns_roce_device.h"
 
 void hns_roce_buf_free(struct hns_roce_dev *hr_dev, struct hns_roce_buf *buf)
drivers/infiniband/hw/hns/hns_roce_mr.c +4 -0
index 31cb8699e198..a14e40289233 100644
@@ -300,6 +300,10 @@ struct ib_mr *hns_roce_rereg_user_mr(struct ib_mr *ibmr, int flags, u64 start,
 		goto err_out;
 	}
 
+	ret = ib_umem_check_rereg(mr->pbl_mtr.umem, flags, mr_access_flags);
+	if (ret)
+		goto err_out;
+
 	mailbox = hns_roce_alloc_cmd_mailbox(hr_dev);
 	ret = PTR_ERR_OR_ZERO(mailbox);
 	if (ret)
drivers/infiniband/hw/ionic/ionic_ibdev.h +1 -1
index 82fda1e3cdb6..63828240d659 100644
@@ -4,9 +4,9 @@
 #ifndef _IONIC_IBDEV_H_
 #define _IONIC_IBDEV_H_
 
-#include <rdma/ib_umem.h>
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_pack.h>
+#include <rdma/iter.h>
 #include <rdma/uverbs_ioctl.h>
 
 #include <rdma/ionic-abi.h>
drivers/infiniband/hw/irdma/main.h +1 -1
index 65ce4924dbfa..0c16045a34be 100644
@@ -36,8 +36,8 @@
 #include <rdma/rdma_cm.h>
 #include <rdma/iw_cm.h>
 #include <rdma/ib_user_verbs.h>
-#include <rdma/ib_umem.h>
 #include <rdma/ib_cache.h>
+#include <rdma/iter.h>
 #include <rdma/uverbs_ioctl.h>
 #include "osdep.h"
 #include "defs.h"
drivers/infiniband/hw/irdma/verbs.c +4 -0
index c399aa07bcae..ebf328c9ba92 100644
@@ -3749,6 +3749,10 @@ static struct ib_mr *irdma_rereg_user_mr(struct ib_mr *ib_mr, int flags,
 	if (flags & ~(IB_MR_REREG_TRANS | IB_MR_REREG_PD | IB_MR_REREG_ACCESS))
 		return ERR_PTR(-EOPNOTSUPP);
 
+	ret = ib_umem_check_rereg(iwmr->region, flags, new_access);
+	if (ret)
+		return ERR_PTR(ret);
+
 	ret = irdma_hwdereg_mr(ib_mr);
 	if (ret)
 		return ERR_PTR(ret);
drivers/infiniband/hw/mana/mana_ib.h +1 -1
index 9d36232ed880..339062e70e27 100644
@@ -8,7 +8,7 @@
 
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_mad.h>
-#include <rdma/ib_umem.h>
+#include <rdma/iter.h>
 #include <rdma/mana-abi.h>
 #include <rdma/uverbs_ioctl.h>
 #include <linux/dmapool.h>
drivers/infiniband/hw/mlx4/mr.c +5 -0
index 94464f1694d9..56ff98a7ea03 100644
@@ -33,6 +33,7 @@
 
 #include <linux/slab.h>
 #include <rdma/ib_user_verbs.h>
+#include <rdma/iter.h>
 
 #include "mlx4_ib.h"
 
@@ -208,6 +209,10 @@ struct ib_mr *mlx4_ib_rereg_user_mr(struct ib_mr *mr, int flags, u64 start,
 	struct mlx4_mpt_entry **pmpt_entry = &mpt_entry;
 	int err;
 
+	err = ib_umem_check_rereg(mmr->umem, flags, mr_access_flags);
+	if (err)
+		return ERR_PTR(err);
+
 	/* Since we synchronize this call and mlx4_ib_dereg_mr via uverbs,
 	 * we assume that the calls can't run concurrently. Otherwise, a
 	 * race exists.
drivers/infiniband/hw/mlx5/mem.c +1 -0
index af321f6ef7f5..75d5b5672b5c 100644
@@ -31,6 +31,7 @@
  */
 
 #include <rdma/ib_umem_odp.h>
+#include <rdma/iter.h>
 #include "mlx5_ib.h"
 
 /*
drivers/infiniband/hw/mlx5/mr.c +4 -0
index 325fa04cbe8a..47f720c0be59 100644
@@ -1895,6 +1895,10 @@ struct ib_mr *mlx5_ib_rereg_user_mr(struct ib_mr *ib_mr, int flags, u64 start,
 	if (flags & ~(IB_MR_REREG_TRANS | IB_MR_REREG_PD | IB_MR_REREG_ACCESS))
 		return ERR_PTR(-EOPNOTSUPP);
 
+	err = ib_umem_check_rereg(mr->umem, flags, new_access_flags);
+	if (err)
+		return ERR_PTR(err);
+
 	if (!(flags & IB_MR_REREG_ACCESS))
 		new_access_flags = mr->access_flags;
 	if (!(flags & IB_MR_REREG_PD))
drivers/infiniband/hw/mlx5/umr.c +1 -0
index 4e562e0dd9e1..29488fba21a0 100644
@@ -2,6 +2,7 @@
 /* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. */
 
 #include <rdma/ib_umem_odp.h>
+#include <rdma/iter.h>
 #include "mlx5_ib.h"
 #include "umr.h"
 #include "wr.h"
drivers/infiniband/hw/mthca/mthca_provider.c +1 -1
index e095873b381b..04d395cdb6c9 100644
@@ -35,8 +35,8 @@
  */
 
 #include <rdma/ib_smi.h>
-#include <rdma/ib_umem.h>
 #include <rdma/ib_user_verbs.h>
+#include <rdma/iter.h>
 #include <rdma/uverbs_ioctl.h>
 
 #include <linux/sched.h>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +1 -1
index 954a50d5c34d..b1180a58e14d 100644
@@ -45,9 +45,9 @@
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_user_verbs.h>
 #include <rdma/iw_cm.h>
-#include <rdma/ib_umem.h>
 #include <rdma/ib_addr.h>
 #include <rdma/ib_cache.h>
+#include <rdma/iter.h>
 #include <rdma/uverbs_ioctl.h>
 
 #include "ocrdma.h"
drivers/infiniband/hw/qedr/verbs.c +1 -1
index ab9bf0922979..cb06c5d894b8 100644
@@ -39,9 +39,9 @@
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_user_verbs.h>
 #include <rdma/iw_cm.h>
-#include <rdma/ib_umem.h>
 #include <rdma/ib_addr.h>
 #include <rdma/ib_cache.h>
+#include <rdma/iter.h>
 #include <rdma/uverbs_ioctl.h>
 
 #include <linux/qed/common_hsi.h>
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h +1 -1
index 763ddc6f25d1..23e547d4b3a7 100644
@@ -53,8 +53,8 @@
 #include <linux/pci.h>
 #include <linux/semaphore.h>
 #include <linux/workqueue.h>
-#include <rdma/ib_umem.h>
 #include <rdma/ib_verbs.h>
+#include <rdma/iter.h>
 #include <rdma/vmw_pvrdma-abi.h>
 
 #include "pvrdma_ring.h"
drivers/infiniband/sw/rxe/rxe_verbs.c +5 -0
index 38d8c408320f..23304765decf 100644
@@ -1332,6 +1332,7 @@ static struct ib_mr *rxe_rereg_user_mr(struct ib_mr *ibmr, int flags,
 	struct rxe_mr *mr = to_rmr(ibmr);
 	struct rxe_pd *old_pd = to_rpd(ibmr->pd);
 	struct rxe_pd *pd = to_rpd(ibpd);
+	int err;
 
 	/* for now only support the two easy cases:
 	 * rereg_pd and rereg_access
@@ -1341,6 +1342,10 @@ static struct ib_mr *rxe_rereg_user_mr(struct ib_mr *ibmr, int flags,
 		return ERR_PTR(-EOPNOTSUPP);
 	}
 
+	err = ib_umem_check_rereg(mr->umem, flags, access);
+	if (err)
+		return ERR_PTR(err);
+
 	if (flags & IB_MR_REREG_PD) {
 		rxe_put(old_pd);
 		rxe_get(pd);
drivers/infiniband/ulp/isert/ib_isert.c +6 -0
index 42977a5326ee..640634f96d72 100644
@@ -1385,6 +1385,12 @@ isert_login_recv_done(struct ib_cq *cq, struct ib_wc *wc)
 	ib_dma_sync_single_for_cpu(ib_dev, isert_conn->login_desc->dma_addr,
 			ISER_RX_SIZE, DMA_FROM_DEVICE);
 
+	if (unlikely(wc->byte_len < ISER_HEADERS_LEN)) {
+		isert_dbg("login request length %u is too short\n",
+			  wc->byte_len);
+		return;
+	}
+
 	isert_conn->login_req_len = wc->byte_len - ISER_HEADERS_LEN;
 
 	if (isert_conn->conn) {
drivers/infiniband/ulp/srp/ib_srp.c +24 -6
index 23ed2fc688f0..7b696a07e603 100644
@@ -1930,7 +1930,8 @@ static int srp_post_recv(struct srp_rdma_ch *ch, struct srp_iu *iu)
 	return ib_post_recv(ch->qp, &wr, NULL);
 }
 
-static void srp_process_rsp(struct srp_rdma_ch *ch, struct srp_rsp *rsp)
+static void srp_process_rsp(struct srp_rdma_ch *ch, struct srp_rsp *rsp,
+			    u32 byte_len)
 {
 	struct srp_target_port *target = ch->target;
 	struct srp_request *req;
@@ -1971,10 +1972,27 @@ static void srp_process_rsp(struct srp_rdma_ch *ch, struct srp_rsp *rsp)
 		scmnd->result = rsp->status;
 
 		if (rsp->flags & SRP_RSP_FLAG_SNSVALID) {
-			memcpy(scmnd->sense_buffer, rsp->data +
-			       be32_to_cpu(rsp->resp_data_len),
-			       min_t(int, be32_to_cpu(rsp->sense_data_len),
-				     SCSI_SENSE_BUFFERSIZE));
+			u32 resp_len = be32_to_cpu(rsp->resp_data_len);
+			u32 sense_len = be32_to_cpu(rsp->sense_data_len);
+
+			/*
+			 * The sense data starts resp_data_len bytes past the
+			 * response data area; both lengths come from the
+			 * target-controlled response.  Copy the sense data
+			 * only if it has not been truncated, that is, only if
+			 * the full sense region fits within the bytes actually
+			 * received.  Otherwise the copy source would run past
+			 * the receive buffer (sized to the target-chosen
+			 * max_ti_iu_len), reading out of bounds.
+			 */
+			if (sizeof(*rsp) + (u64)resp_len + sense_len <= byte_len)
+				memcpy(scmnd->sense_buffer,
+				       rsp->data + resp_len,
+				       min(sense_len, SCSI_SENSE_BUFFERSIZE));
+			else
+				shost_printk(KERN_ERR, target->scsi_host,
+					     "dropping truncated sense data (resp_data_len %u sense_data_len %u, %u bytes received)\n",
+					     resp_len, sense_len, byte_len);
 		}
 
 		if (unlikely(rsp->flags & SRP_RSP_FLAG_DIUNDER))
@@ -2084,7 +2102,7 @@ static void srp_recv_done(struct ib_cq *cq, struct ib_wc *wc)
 
 	switch (opcode) {
 	case SRP_RSP:
-		srp_process_rsp(ch, iu->buf);
+		srp_process_rsp(ch, iu->buf, wc->byte_len);
 		break;
 
 	case SRP_CRED_REQ:
drivers/input/keyboard/atkbd.c +15 -0
index 6c999d89ee4b..8eeac27dec54 100644
@@ -1937,6 +1937,21 @@ static const struct dmi_system_id atkbd_dmi_quirk_table[] __initconst = {
 		},
 		.callback = atkbd_deactivate_fixup,
 	},
+	{
+		/* Lenovo Yoga Air 14 (83QK) */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "83QK"),
+		},
+		.callback = atkbd_deactivate_fixup,
+	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "HONOR"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "BCC-N"),
+		},
+		.callback = atkbd_deactivate_fixup,
+	},
 	{ }
 };
 
drivers/iommu/dma-iommu.c +13 -6
index f1fb27681b0b..b0dca7e7429a 100644
@@ -1894,12 +1894,18 @@ static int iommu_dma_iova_link_swiotlb(struct device *dev,
 			return 0;
 	}
 
+	/*
+	 * After removing the partial head and tail, there may be no aligned
+	 * middle left to map.  The tail still gets bounced below.
+	 */
 	size -= iova_end_pad;
-	error = __dma_iova_link(dev, addr + mapped, phys + mapped, size, dir,
-			attrs);
-	if (error)
-		goto out_unmap;
-	mapped += size;
+	if (size) {
+		error = __dma_iova_link(dev, addr + mapped, phys + mapped,
+				size, dir, attrs);
+		if (error)
+			goto out_unmap;
+		mapped += size;
+	}
 
 	if (iova_end_pad) {
 		error = iommu_dma_iova_bounce_and_link(dev, addr + mapped,
@@ -1912,7 +1918,8 @@ static int iommu_dma_iova_link_swiotlb(struct device *dev,
 	return 0;
 
 out_unmap:
-	dma_iova_unlink(dev, state, 0, mapped, dir, attrs);
+	if (mapped)
+		dma_iova_unlink(dev, state, offset, mapped, dir, attrs);
 	return error;
 }
 
drivers/md/dm-cache-policy-smq.c +8 -4
index 76a35cce8502..7f661e8cbcc2 100644
@@ -1590,18 +1590,22 @@ static int smq_invalidate_mapping(struct dm_cache_policy *p, dm_cblock_t cblock)
 	struct smq_policy *mq = to_smq_policy(p);
 	struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock));
 	unsigned long flags;
-
-	if (!e->allocated)
-		return -ENODATA;
+	int r = 0;
 
 	spin_lock_irqsave(&mq->lock, flags);
+	if (!e->allocated) {
+		r = -ENODATA;
+		goto out;
+	}
 	// FIXME: what if this block has pending background work?
 	del_queue(mq, e);
 	h_remove(&mq->table, e);
 	free_entry(&mq->cache_alloc, e);
+
+out:
 	spin_unlock_irqrestore(&mq->lock, flags);
 
-	return 0;
+	return r;
 }
 
 static uint32_t smq_get_hint(struct dm_cache_policy *p, dm_cblock_t cblock)
drivers/misc/fastrpc.c +68 -39

60 lines not on this page · raw message

drivers/mmc/core/mmc.c +3 -1
index 49f568f9a7d3..f9f083d18be5 100644

Lines of this file are not shown. View the raw message.

drivers/mmc/host/dw_mmc-rockchip.c +17 -0
index ff6a52d85e52..32233f46cc5e 100644

Lines of this file are not shown. View the raw message.

drivers/mmc/host/litex_mmc.c +17 -3
index d2f19c2dc673..3655542ca998 100644

Lines of this file are not shown. View the raw message.

drivers/mmc/host/renesas_sdhi_internal_dmac.c +1 -0
index 9e3ed0bcddd6..6816d491b0bf 100644

Lines of this file are not shown. View the raw message.

drivers/mmc/host/sdhci.c +1 -0
index fec9329e1edb..d06c5a13ef91 100644

Lines of this file are not shown. View the raw message.

drivers/net/bonding/bond_main.c +2 -2
index 2132acff2e52..00df78d497fa 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/airoha/airoha_eth.c +4 -1
index 9781a6fc9bf9..5bf725a78592 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/amazon/ena/ena_com.c +5 -0
index 8c86789d867a..297fb36ab8c1 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/amd/pcnet32.c +3 -1
index 9eaefa0f5e80..b465bb774321 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c +10 -4
index 2994f10446a6..0042d7d6ff9b 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bnxt/bnxt.c +1 -1
index d02ccf79e3b6..6c78fc85eafa 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/freescale/fec_main.c +1 -2
index f30e8fabfade..a2cf8cbe2539 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/ibm/emac/core.c +8 -1
index 417dfa18daae..4e503b3d0d2d 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/ice/ice_dpll.c +2 -0
index 14048ac5eff5..81267bae0e5c 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/idpf/idpf_ptp.c +1 -1
index 31c5593550e1..1063c1a96ee5 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/mv643xx_eth.c +1 -1
index 0ab52c57c648..e8485defd6cf 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +41 -26

67 lines not on this page · raw message

drivers/net/ethernet/marvell/octeontx2/af/rvu.c +1 -1
index 8530df8b3fda..ad733f4da3c1 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/octeontx2/af/rvu.h +1 -0
index b58283341923..914ba2b691ec 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +18 -18
index e28675fe1890..65aa6aeab8e7 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c +1 -1
index b56395ac5a74..e0262fcedd89 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +1 -1
index bbf25769f499..fa23d42d1318 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mediatek/mtk_eth_soc.c +1 -1
index 0f676bd72832..065f969ee44e 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx4/cq.c +8 -1
index e130e7259275..5c55971abbf0 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx5/core/cmd.c +4 -2
index 722282cebce9..61003d15cd71 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c +8 -2
index 5d51600935a6..5322964214b2 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +3 -10
index 49bc409d7dbb..c38deabcb7b9 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx5/core/irq_affinity.c +4 -1
index 14d339eceb92..cc63b091b70e 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx5/core/vport.c +54 -18

72 lines not on this page · raw message

drivers/net/ethernet/microchip/lan743x_main.c +32 -0
index 09d255e78f6c..ab2f3c92b3fa 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/microchip/lan743x_main.h +1 -0
index 02a28b709163..b977256b7420 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/realtek/rtase/rtase_main.c +5 -2
index ef13109c49cf..55105d34bc79 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/wangxun/libwx/wx_type.h +1 -3
index 2f8319e03182..f040b014f2dd 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c +72 -68

140 lines not on this page · raw message

drivers/net/ethernet/wangxun/txgbe/txgbe_aml.h +1 -1
index 25d4971ca0d9..7c8fa48e68d3 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c +3 -2
index e285b088c7b2..d7f905359458 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/wangxun/txgbe/txgbe_main.c +6 -6
index 1377ea90a8c2..4d20b178af23 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/wangxun/txgbe/txgbe_type.h +7 -6
index be78f8f61a79..4d77da720eba 100644

Lines of this file are not shown. View the raw message.

drivers/net/hyperv/netvsc.c +15 -4
index 60a4629fe6ba..073f2b7bd3c0 100644

Lines of this file are not shown. View the raw message.

drivers/net/mctp/mctp-usb.c +18 -10
index 3b5dff144177..fade65f2f269 100644

Lines of this file are not shown. View the raw message.

drivers/net/phy/phy_device.c +6 -0
index 78cf05a17f8f..26b08e3dbd1d 100644

Lines of this file are not shown. View the raw message.

drivers/net/phy/sfp.c +1 -0
index c62e3f364ea7..25223cfe017b 100644

Lines of this file are not shown. View the raw message.

drivers/net/tap.c +2 -0
index 6fd3b14273b3..b51ce7af1b20 100644

Lines of this file are not shown. View the raw message.

drivers/net/tun.c +1 -0
index 9a767da38c71..d27c3229465a 100644

Lines of this file are not shown. View the raw message.

drivers/net/usb/r8152.c +6 -1
index d61074178279..8cf4e81f8f88 100644

Lines of this file are not shown. View the raw message.

drivers/net/vxlan/vxlan_vnifilter.c +2 -3
index adc89e651e27..215e82876662 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/intel/iwlwifi/mvm/ops.c +6 -0
index 5ebd046371f5..8e6913c7712f 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/intel/iwlwifi/pcie/drv.c +32 -24

56 lines not on this page · raw message

drivers/nvmem/core.c +5 -7
index ff68fd5ad3d6..d2eb5c7dbdd9 100644

Lines of this file are not shown. View the raw message.

drivers/nvmem/layouts/onie-tlv.c +2 -1
index 0967a32319a2..8b0f3c1b8a0e 100644

Lines of this file are not shown. View the raw message.

drivers/pinctrl/pinctrl-mcp23s08_spi.c +3 -3
index 54f61c8cb1c0..76d4c135db11 100644

Lines of this file are not shown. View the raw message.

drivers/pmdomain/imx/gpc.c +1 -1
index de695f1944ab..42e50c9b4fb9 100644

Lines of this file are not shown. View the raw message.

drivers/pmdomain/ti/ti_sci_pm_domains.c +1 -1
index e5d1934f78d9..641d69c9a304 100644

Lines of this file are not shown. View the raw message.

drivers/ptp/ptp_vclock.c +9 -5
index 64c950456517..295a64bdd846 100644

Lines of this file are not shown. View the raw message.

drivers/slimbus/qcom-ngd-ctrl.c +77 -45

122 lines not on this page · raw message

drivers/soc/qcom/ice.c +47 -10

57 lines not on this page · raw message

drivers/spi/spi-cadence-quadspi.c +3 -2
index d61bc678b6f8..0a32e28eefd5 100644

Lines of this file are not shown. View the raw message.

drivers/spi/spi-rzv2h-rspi.c +2 -1
index dcc431ba60a9..c981dd3c0dba 100644

Lines of this file are not shown. View the raw message.

drivers/staging/rtl8723bs/core/rtw_mlme.c +8 -2
index 80f9cee1fb4a..f2b5455591fd 100644

Lines of this file are not shown. View the raw message.

drivers/tee/optee/supp.c +74 -33

107 lines not on this page · raw message

drivers/tee/qcomtee/core.c +4 -2
index ecd04403591c..10717434275b 100644

Lines of this file are not shown. View the raw message.

drivers/tee/tee_shm.c +1 -1
index 898707ca21a8..6d2f2c4e3471 100644

Lines of this file are not shown. View the raw message.

drivers/thunderbolt/property.c +6 -0
index bbd26d99c406..dc6fde468722 100644

Lines of this file are not shown. View the raw message.

drivers/thunderbolt/xdomain.c +11 -3
index 9d220ba544ec..458476907eab 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/io_ti.c +11 -0
index 7d0584b2a234..bae3c72f777c 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/kl5kusb105.c +2 -2
index d36155b6d2bf..8c7585b3271f 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/option.c +3 -0
index c8f0d2bbfc1b..2f6be5e1f01f 100644

Lines of this file are not shown. View the raw message.

fs/erofs/internal.h +1 -4
index f7f622836198..87edbb4366d1 100644

Lines of this file are not shown. View the raw message.

fs/erofs/super.c +1 -2
index f5f5d19459ec..e6725e9847be 100644

Lines of this file are not shown. View the raw message.

fs/erofs/sysfs.c +1 -1
index 1e0658a1d95b..86b22b9f0c19 100644

Lines of this file are not shown. View the raw message.

fs/erofs/zdata.c +13 -22
index 33932d56d3a4..a02ce7c06f9e 100644

Lines of this file are not shown. View the raw message.

fs/fcntl.c +4 -4
index 72f8433d9109..091bb4465b71 100644

Lines of this file are not shown. View the raw message.

fs/fhandle.c +14 -2
index 052f9c9368fb..a56dd02ddbbd 100644

Lines of this file are not shown. View the raw message.

fs/fuse/dev.c +12 -1
index 039fe9c0c3cb..8bd6cf17355f 100644

Lines of this file are not shown. View the raw message.

fs/mount.h +9 -1
index f13a28752d0b..ceceac13501c 100644

Lines of this file are not shown. View the raw message.

fs/namespace.c +3 -3
index 8531b8deee41..5fd8b021785a 100644

Lines of this file are not shown. View the raw message.

fs/qnx6/dir.c +4 -4
index b4d10e45f2e4..f53a38585785 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/oplock.c +12 -3
index a84c01bceb8b..6454c7a4baa4 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/smb2pdu.c +11 -0
index 4689aac12c14..c21bca5a34c4 100644

Lines of this file are not shown. View the raw message.

fs/xfs/scrub/cow_repair.c +3 -9
index b2a83801412e..fc70fd5b975a 100644

Lines of this file are not shown. View the raw message.

include/hyperv/hvgdk.h +2 -8
index dd6d4939ea29..a837a6bc1275 100644

Lines of this file are not shown. View the raw message.

include/hyperv/hvgdk_mini.h +1 -0
index 77abddfc750e..7f730a0e54e6 100644

Lines of this file are not shown. View the raw message.

include/hyperv/hvhdk.h +1 -0
index b4067ada02cf..1057455b84f2 100644

Lines of this file are not shown. View the raw message.

include/linux/cfi.h +1 -0
index 1fd22ea6eba4..0f220d29225c 100644

Lines of this file are not shown. View the raw message.

include/linux/hugetlb.h +0 -8
index 082b39ac34ff..a3f6cdf8a2b6 100644

Lines of this file are not shown. View the raw message.

include/linux/hyperv.h +53 -19

72 lines not on this page · raw message

include/linux/mlx5/vport.h +2 -2
index c87b9507cfa1..b98aaa471ac2 100644

Lines of this file are not shown. View the raw message.

include/linux/mm.h +0 -8
index 1e74eb7267ac..d905cf528b23 100644

Lines of this file are not shown. View the raw message.

include/linux/tracepoint.h +8 -0
index 826ce3f8e1f8..194f55bae5a1 100644

Lines of this file are not shown. View the raw message.

include/net/act_api.h +1 -0
index 2ba40eb45aad..a6d6f09dd0cd 100644

Lines of this file are not shown. View the raw message.

include/net/bluetooth/l2cap.h +1 -0
index 5172afee5494..e0a1f2293679 100644

Lines of this file are not shown. View the raw message.

include/net/ip_vs.h +1 -2
index 29a36709e7f3..2163f32ef6ab 100644

Lines of this file are not shown. View the raw message.

include/net/netfilter/nf_conntrack_helper.h +1 -0
index de2f956abf34..24cf3d2d9745 100644

Lines of this file are not shown. View the raw message.

include/net/sock.h +1 -0
index 9540dcc5a0c0..5a26a3834ac6 100644

Lines of this file are not shown. View the raw message.

include/net/tc_act/tc_pedit.h +0 -1
index f58ee15cd858..cb7b82f2cbc7 100644

Lines of this file are not shown. View the raw message.

include/rdma/ib_umem.h +16 -32

48 lines not on this page · raw message

include/rdma/ib_verbs.h +0 -48

48 lines not on this page · raw message

include/rdma/iter.h new file +88 -0

88 lines not on this page · raw message

include/uapi/linux/tee.h +1 -0
index cab5cadca8ef..5203977ed35d 100644

Lines of this file are not shown. View the raw message.

io_uring/io_uring.c +1 -1
index 03e7b9d6b448..7f398c4a3a6e 100644

Lines of this file are not shown. View the raw message.

io_uring/kbuf.c +0 -1
index 32d3b8d26bf0..c260d5f34cf3 100644

Lines of this file are not shown. View the raw message.

io_uring/net.c +2 -1
index 7595850c2217..a46c7e817040 100644

Lines of this file are not shown. View the raw message.

ipc/shm.c +6 -4
index 3db36773dd10..c77a6c8683ce 100644

Lines of this file are not shown. View the raw message.

kernel/dma/debug.c +1 -1
index fa4aac333917..03780f39613c 100644

Lines of this file are not shown. View the raw message.

kernel/dma/direct.c +1 -1
index f973e7e73c90..fd483b558b50 100644

Lines of this file are not shown. View the raw message.

kernel/futex/requeue.c +6 -0
index b597cb3d17fc..1d99a84dc9ad 100644

Lines of this file are not shown. View the raw message.

kernel/locking/rtmutex.c +3 -0
index e6c6dd086887..fb67482438f8 100644

Lines of this file are not shown. View the raw message.

kernel/locking/rtmutex_api.c +1 -1
index bafd5af98eae..73af81b99bf6 100644

Lines of this file are not shown. View the raw message.

kernel/pid.c +5 -3
index 4fffec767a63..6a7769749ee6 100644

Lines of this file are not shown. View the raw message.

kernel/sched/ext.c +6 -4
index 7b750bf42698..d8280f874433 100644

Lines of this file are not shown. View the raw message.

kernel/signal.c +1 -0
index fe9190d84f28..810098300ecd 100644

Lines of this file are not shown. View the raw message.

kernel/time/time.c +1 -1
index 155cf7def914..3c1518a7a526 100644

Lines of this file are not shown. View the raw message.

kernel/time/timer_migration.c +6 -2
index 49635a2b7ee2..76d896a99d7b 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_probe.c +0 -2
index d94d374b9d80..25e8f5408efc 100644

Lines of this file are not shown. View the raw message.

mm/cma.c +5 -2
index 813e6dc7b095..90d3ab262dae 100644

Lines of this file are not shown. View the raw message.

mm/cma_debug.c +2 -1
index 8c7d7f8e8fbd..b4e4b1590a29 100644

Lines of this file are not shown. View the raw message.

mm/damon/lru_sort.c +4 -0
index 0c2274fefd76..9bf46627feec 100644

Lines of this file are not shown. View the raw message.

mm/damon/ops-common.c +2 -2
index 998c5180a603..37dba4276d44 100644

Lines of this file are not shown. View the raw message.

mm/damon/reclaim.c +4 -0
index 9446e7a1b476..48225eb435e1 100644

Lines of this file are not shown. View the raw message.

mm/huge_memory.c +3 -1
index 8218e9d1887b..b90be9f16b49 100644

Lines of this file are not shown. View the raw message.

mm/hugetlb.c +39 -30

69 lines not on this page · raw message

mm/list_lru.c +12 -9
index ec48b5dadf51..1b6bf0ff4700 100644

Lines of this file are not shown. View the raw message.

mm/memcontrol.c +4 -1
index 80e71a17d500..752d98fd3921 100644

Lines of this file are not shown. View the raw message.

mm/memory-failure.c +10 -9
index 6e770bad79ce..85d231159ebc 100644

Lines of this file are not shown. View the raw message.

mm/mincore.c +5 -5
index 8ec4719370e1..4a3d7aa91146 100644

Lines of this file are not shown. View the raw message.

net/6lowpan/iphc.c +2 -2
index e116d308a8df..37eaff3f7b69 100644

Lines of this file are not shown. View the raw message.

net/802/garp.c +1 -1
index 2d1ffc4d9462..c45abaff5153 100644

Lines of this file are not shown. View the raw message.

net/802/mrp.c +9 -0
index 23a88305f900..cb3535523bdf 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/bnep/core.c +36 -14

50 lines not on this page · raw message

net/bluetooth/hci_sync.c +5 -0
index 826be7ff0f56..10b8c24a3fbe 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/hci_sysfs.c +4 -2
index 041ce9adc378..8957ce7c21b7 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/iso.c +45 -16

61 lines not on this page · raw message

net/bluetooth/l2cap_core.c +46 -0

46 lines not on this page · raw message

net/bluetooth/mgmt.c +9 -8
index 91d1c0d132f9..c87ec0138c43 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/rfcomm/core.c +49 -18

67 lines not on this page · raw message

net/bluetooth/rfcomm/sock.c +22 -4
index 3052436e9c6d..2286efef62f5 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/sco.c +15 -5
index a536c2edd14f..a19ae1b39bc0 100644

Lines of this file are not shown. View the raw message.

net/bridge/netfilter/ebt_dnat.c +3 -1
index 3fda71a8579d..73f185cccd63 100644

Lines of this file are not shown. View the raw message.

net/bridge/netfilter/ebt_redirect.c +11 -5
index 307790562b49..83486cd4d564 100644

Lines of this file are not shown. View the raw message.

net/bridge/netfilter/ebt_snat.c +3 -0
index 7dfbcdfc30e5..c9e229af0366 100644

Lines of this file are not shown. View the raw message.

net/bridge/netfilter/nft_meta_bridge.c +2 -0
index b7af36bbd306..1bcef43b2a81 100644

Lines of this file are not shown. View the raw message.

net/core/filter.c +12 -3
index e6dd40e0276e..0b6194549105 100644

Lines of this file are not shown. View the raw message.

net/core/gro.c +5 -0
index b5f790a643d4..9ec8a46b30bb 100644

Lines of this file are not shown. View the raw message.

net/core/netdev-genl.c +1 -3
index 470fabbeacd9..93ea09bd1e7b 100644

Lines of this file are not shown. View the raw message.

net/core/skbuff.c +3 -3
index 745bb0a67c6a..43dca2c04576 100644

Lines of this file are not shown. View the raw message.

net/core/sock.c +11 -2
index 5a38837a5838..04fa0c18adc3 100644

Lines of this file are not shown. View the raw message.

net/devlink/core.c +2 -0
index 58093f49c090..d8f875b22989 100644

Lines of this file are not shown. View the raw message.

net/hsr/hsr_framereg.c +1 -3
index 3a2a2fa7a0a3..bd2fbbc4420b 100644

Lines of this file are not shown. View the raw message.

net/ieee802154/6lowpan/tx.c +5 -0
index 0c07662b44c0..4df76ff50699 100644

Lines of this file are not shown. View the raw message.

net/ipv4/inet_fragment.c +3 -0
index 4e6d7467ed44..69838e44cae1 100644

Lines of this file are not shown. View the raw message.

net/ipv4/ip_fragment.c +0 -3
index 56b0f738d2f2..c790d2f49487 100644

Lines of this file are not shown. View the raw message.

net/ipv4/ip_options.c +4 -0
index be8815ce3ac2..09d745112c15 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/arp_tables.c +6 -9
index f3dadbc416a3..1490466b146e 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/ip_tables.c +6 -9
index f4079f0718de..0549fad53c03 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/nf_nat_h323.c +2 -0
index faee20af4856..10e1b0837731 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/nft_fib_ipv4.c +1 -1
index 82af6cd76d13..e695283aeb2d 100644

Lines of this file are not shown. View the raw message.

net/ipv4/udp.c +8 -0
index a55642a42e82..4ac4a120fca8 100644

Lines of this file are not shown. View the raw message.

net/ipv6/addrconf.c +4 -2
index 2d4c3d9c1a2a..b2e1328371d3 100644

Lines of this file are not shown. View the raw message.

net/ipv6/anycast.c +8 -8
index 52599584422b..819c4ff10997 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ip6_vti.c +3 -0
index df793c8bfffb..d871cab6938d 100644

Lines of this file are not shown. View the raw message.

net/ipv6/mcast.c +4 -4
index 016b572e7d6f..f4b3cb483870 100644

Lines of this file are not shown. View the raw message.

net/ipv6/netfilter/ip6_tables.c +6 -9
index dfaea4f6727e..3586e636c66b 100644

Lines of this file are not shown. View the raw message.

net/ipv6/netfilter/ip6t_eui64.c +5 -2
index da69a27e8332..bbb684f9964c 100644

Lines of this file are not shown. View the raw message.

net/ipv6/netfilter/nft_fib_ipv6.c +1 -1
index 421036a3605b..3005dfbca615 100644

Lines of this file are not shown. View the raw message.

net/ipv6/sit.c +1 -0
index cf37ad9686e6..6a833ee665e9 100644

Lines of this file are not shown. View the raw message.

net/l2tp/l2tp_ppp.c +50 -32

82 lines not on this page · raw message

net/mac80211/mlme.c +9 -0
index 5d1da779cd6f..8854e47b0567 100644

Lines of this file are not shown. View the raw message.

net/mac80211/tests/chan-mode.c +1 -0
index adc069065e73..fa370831d617 100644

Lines of this file are not shown. View the raw message.

net/mac80211/tx.c +3 -1
index 2f830001b0cd..98f0a275b60c 100644

Lines of this file are not shown. View the raw message.

net/mptcp/options.c +32 -41

73 lines not on this page · raw message

net/mptcp/pm.c +4 -11
index 6c995cc38a00..72a8f6a0d058 100644

Lines of this file are not shown. View the raw message.

net/mptcp/pm_userspace.c +8 -6
index 8cbc1920afb4..0d3a95e676f1 100644

Lines of this file are not shown. View the raw message.

net/mptcp/protocol.c +4 -0
index 32b2717b97ae..b82b2a409487 100644

Lines of this file are not shown. View the raw message.

net/mptcp/protocol.h +3 -4
index df35dade0280..3b8edd9b658b 100644

Lines of this file are not shown. View the raw message.

net/mptcp/sockopt.c +10 -5
index de12b3c548ed..3e3c01002e7a 100644

Lines of this file are not shown. View the raw message.

net/netfilter/ipset/ip_set_bitmap_ipmac.c +3 -2
index 2c625e0f49ec..752f59ef8744 100644

Lines of this file are not shown. View the raw message.

net/netfilter/ipset/ip_set_hash_ipmac.c +5 -4
index 467c59a83c0a..b9a2681e2488 100644

Lines of this file are not shown. View the raw message.

net/netfilter/ipset/ip_set_hash_mac.c +3 -2
index 718814730acf..41a122591fe2 100644

Lines of this file are not shown. View the raw message.

net/netfilter/ipvs/ip_vs_ctl.c +8 -5
index e442ba6033d5..a3b509908b8c 100644

Lines of this file are not shown. View the raw message.

net/netfilter/ipvs/ip_vs_proto_sctp.c +6 -12
index 83e452916403..63c78a1f3918 100644

Lines of this file are not shown. View the raw message.

net/netfilter/ipvs/ip_vs_proto_tcp.c +7 -14
index 7da51390cea6..ede4fa3b63f5 100644

Lines of this file are not shown. View the raw message.

net/netfilter/ipvs/ip_vs_proto_udp.c +7 -13
index 68260d91c988..ffbebda547fc 100644

Lines of this file are not shown. View the raw message.

net/netfilter/ipvs/ip_vs_sched.c +7 -7
index d4903723be7e..49b2e5d2b2c8 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_conntrack_helper.c +19 -0
index a715304a53d8..9150bcfd7ca8 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_conntrack_irc.c +2 -2
index 5703846bea3b..0f50ea92ced9 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_log_syslog.c +9 -3
index 86d5fc5d28e3..6fa0812cd79c 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_nat_core.c +2 -0
index 8e36b4e3e5c4..d3e158ecf729 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_nat_sip.c +1 -0
index 9fbfc6bff0c2..00838c0cc5bb 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_synproxy_core.c +18 -6
index 6a851ac4dd04..a277b2bd3275 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nfnetlink_log.c +19 -4
index b1f3eda85989..25a30bf722c6 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nfnetlink_queue.c +56 -8

64 lines not on this page · raw message

net/netfilter/nft_ct.c +3 -5
index 8dbf31e7ddcb..c776eb38f1db 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nft_ct_fast.c +1 -1
index e684c8a91848..ecf7b3a404be 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nft_exthdr.c +3 -0
index 7eedf4e3ae9c..9471328802d3 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nft_fib.c +6 -0
index 96e02a83c045..22846136c754 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nft_tunnel.c +1 -1
index a12486ae089d..db183e43941a 100644

Lines of this file are not shown. View the raw message.

net/netfilter/xt_NFQUEUE.c +1 -1
index 466da23e36ff..b32d153e3a18 100644

Lines of this file are not shown. View the raw message.

net/netfilter/xt_mac.c +1 -3
index bd2354760895..7fc5156825e4 100644

Lines of this file are not shown. View the raw message.

net/netlabel/netlabel_unlabeled.c +10 -20
index dfda9ea61971..2237a5261dd2 100644

Lines of this file are not shown. View the raw message.

net/openvswitch/datapath.c +1 -0
index 2304c8e3be4f..56c744e1e14c 100644

Lines of this file are not shown. View the raw message.

net/phonet/pn_dev.c +1 -1
index 5c36bae37b8f..ec9363c337a9 100644

Lines of this file are not shown. View the raw message.

net/qrtr/af_qrtr.c +2 -2
index b703e4c64585..2c009793f193 100644

Lines of this file are not shown. View the raw message.

net/rds/ib_cm.c +1 -0
index 26b069e1999d..5289afbb61aa 100644

Lines of this file are not shown. View the raw message.

net/rds/ib_send.c +2 -0
index 4190b90ff3b1..1909cd440a4b 100644

Lines of this file are not shown. View the raw message.

net/rds/info.c +1 -1
index b6b46a8214a0..b3ee5f8238c4 100644

Lines of this file are not shown. View the raw message.

net/rxrpc/input.c +17 -9
index 24aceb183c2c..ce761466b02d 100644

Lines of this file are not shown. View the raw message.

net/sched/act_api.c +1 -6
index e1ab0faeb811..6afeeb6b590a 100644

Lines of this file are not shown. View the raw message.

net/sched/act_pedit.c +41 -36

77 lines not on this page · raw message

net/sctp/bind_addr.c +10 -1
index 6b95d3ba8fe1..0947b276d1e0 100644

Lines of this file are not shown. View the raw message.

net/sctp/diag.c +9 -8
index 2afb376299fe..d758f5c3e06e 100644

Lines of this file are not shown. View the raw message.

net/sctp/input.c +8 -0
index e119e460ccde..864741fae418 100644

Lines of this file are not shown. View the raw message.

net/sctp/sm_make_chunk.c +11 -1
index 2c0017d058d4..51affa4fd396 100644

Lines of this file are not shown. View the raw message.

net/sctp/sm_statefuns.c +1 -5
index 8e89a870780c..9b23c11cbb9e 100644

Lines of this file are not shown. View the raw message.

net/sctp/stream.c +5 -1
index f205556c5b24..39b8f5e8ce35 100644

Lines of this file are not shown. View the raw message.

net/smc/af_smc.c +8 -9
index 21d0c62bcf46..47963eda478f 100644

Lines of this file are not shown. View the raw message.

net/socket.c +6 -5
index 2b6e11b085eb..4ce6ddd768fb 100644

Lines of this file are not shown. View the raw message.

net/unix/af_unix.c +6 -5
index faf04d1b6c01..b339f83caf03 100644

Lines of this file are not shown. View the raw message.

net/vmw_vsock/virtio_transport_common.c +10 -1
index c925b5c5b35a..d93735dbe3a2 100644

Lines of this file are not shown. View the raw message.

net/vmw_vsock/vmci_transport.c +3 -1
index 443125e48f24..75bf643ff6fa 100644

Lines of this file are not shown. View the raw message.

net/wireless/nl80211.c +3 -0
index 03d07b54359a..54a4585eb3a2 100644

Lines of this file are not shown. View the raw message.

net/wireless/scan.c +8 -1
index 4a1cdfc3221c..199c63de0145 100644

Lines of this file are not shown. View the raw message.

net/xdp/xsk.c +7 -4
index 259ad9a3abcc..9e0a486d54fb 100644

Lines of this file are not shown. View the raw message.

net/xfrm/espintcp.c +4 -0
index 8709df716e98..b951700dffc4 100644

Lines of this file are not shown. View the raw message.

net/xfrm/xfrm_iptfs.c +7 -4
index e11e4f7411fd..fe8e4f21b328 100644

Lines of this file are not shown. View the raw message.

net/xfrm/xfrm_policy.c +2 -11
index ee1f6d5c391d..c76625d511ec 100644

Lines of this file are not shown. View the raw message.

scripts/Makefile.compiler +1 -1
index ef91910de265..06bbe29c846c 100644

Lines of this file are not shown. View the raw message.

scripts/generate_rust_target.rs +6 -2
index 38b3416bb979..16f7e855e012 100644

Lines of this file are not shown. View the raw message.

sound/core/pcm_native.c +3 -4
index 495ff93fcd1d..0ae95a467089 100644

Lines of this file are not shown. View the raw message.

sound/core/seq/seq_dummy.c +9 -6
index 783fc72c2ef6..bc11e4d1edd9 100644

Lines of this file are not shown. View the raw message.

sound/core/timer.c +10 -7
index d9fff5c87613..35651c273b2f 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/wm_adsp.c +3 -0
index 8782c331e925..751a3c25e4f0 100644

Lines of this file are not shown. View the raw message.

sound/soc/fsl/fsl_sai.c +1 -1
index 2fa14fbdfe1a..d48f72e5d49b 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/amd/acp-ipc.c +2 -2
index 22d4b807e1bb..1c3f7601a8c4 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/amd/acp.h +2 -0
index 2b7ea8c64106..7bcb76676a98 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc +1 -1
index 4f5e8c665156..2a680c086047 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/kselftest_harness.h +1 -0
index fe162cbfc091..6928915a643b 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/net/mptcp/mptcp_join.sh +4 -0
index 8990cd99f4e3..11b603742d8f 100755

Lines of this file are not shown. View the raw message.

tools/verification/rv/src/in_kernel.c +36 -29

65 lines not on this page · raw message

tools/verification/rvgen/__main__.py +6 -4
index fa6fc1f4de2f..5198bccccd10 100644

Lines of this file are not shown. View the raw message.

tools/verification/rvgen/rvgen/ltl2ba.py +5 -4
index f14e6760ac3d..aada15ec83a3 100644

Lines of this file are not shown. View the raw message.

virt/kvm/kvm_main.c +2 -1
index 46581554abfb..8d55bbc6f34a 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.