Skip to contentSkip to conversation

Linux 6.12.92

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

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.12.92 kernel.

All users of the 6.12 kernel series must upgrade.

The updated 6.12.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.12.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

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

 Makefile                                                 |    2 
 arch/arm/boot/dts/renesas/r7s72100-genmai.dts            |    3 
 arch/arm/boot/dts/renesas/r7s72100-rskrza1.dts           |    2 
 arch/arm/mach-versatile/integrator_cp.c                  |   13 
 arch/arm64/Kconfig                                       |    1 
 arch/arm64/include/asm/ftrace.h                          |    1 
 arch/arm64/include/asm/insn.h                            |    2 
 arch/arm64/kvm/arm.c                                     |    4 
 arch/arm64/kvm/vgic/vgic-its.c                           |    4 
 arch/loongarch/kernel/kprobes.c                          |    4 
 arch/loongarch/mm/init.c                                 |    4 
 arch/powerpc/Kconfig.debug                               |    3 
 arch/powerpc/kernel/time.c                               |    6 
 arch/riscv/Kconfig                                       |    2 
 arch/riscv/kernel/mcount.S                               |   24 
 arch/riscv/kvm/vcpu_pmu.c                                |    6 
 arch/riscv/mm/init.c                                     |   25 
 arch/s390/kernel/debug.c                                 |    3 
 arch/x86/include/asm/segment.h                           |    8 
 arch/x86/kernel/ftrace_64.S                              |    5 
 arch/x86/xen/setup.c                                     |    2 
 block/bio-integrity.c                                    |   76 +-
 block/blk-integrity.c                                    |   12 
 block/blk-mq.c                                           |   19 
 drivers/accel/qaic/qaic_data.c                           |   23 
 drivers/ata/libata-core.c                                |    9 
 drivers/ata/libata-eh.c                                  |    8 
 drivers/ata/libata-pmp.c                                 |   18 
 drivers/ata/libata-scsi.c                                |  100 ++-
 drivers/ata/sata_sil24.c                                 |    6 
 drivers/base/memory.c                                    |    8 
 drivers/block/rbd.c                                      |   20 
 drivers/block/ublk_drv.c                                 |    3 
 drivers/bluetooth/btmtk.c                                |    2 
 drivers/bluetooth/hci_ldisc.c                            |   48 +
 drivers/firmware/arm_ffa/bus.c                           |    7 
 drivers/firmware/arm_ffa/driver.c                        |  238 +++++---
 drivers/firmware/efi/efi.c                               |   28 -
 drivers/gpio/gpiolib-cdev.c                              |   21 
 drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c                  |    7 
 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c       |    9 
 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c |    9 
 drivers/gpu/drm/amd/display/dc/core/dc.c                 |    6 
 drivers/gpu/drm/bridge/chipone-icn6211.c                 |    4 
 drivers/gpu/drm/bridge/ite-it66121.c                     |    5 
 drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c |   16 
 drivers/gpu/drm/i915/display/intel_dp.c                  |    2 
 drivers/gpu/drm/imagination/pvr_power.c                  |   11 
 drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c        |   24 
 drivers/gpu/drm/msm/dsi/dsi_host.c                       |    1 
 drivers/gpu/drm/msm/msm_iommu.c                          |    5 
 drivers/gpu/drm/virtio/virtgpu_drv.h                     |    1 
 drivers/gpu/drm/virtio/virtgpu_gem.c                     |   17 
 drivers/gpu/drm/virtio/virtgpu_plane.c                   |   10 
 drivers/gpu/drm/xe/display/xe_hdcp_gsc.c                 |   12 
 drivers/gpu/drm/xe/xe_gsc.c                              |    5 
 drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.c              |    6 
 drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.h              |    2 
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c                      |   24 
 drivers/gpu/drm/xe/xe_gt_sriov_vf.h                      |    6 
 drivers/gpu/drm/xe/xe_oa.c                               |    6 
 drivers/hid/hid-quirks.c                                 |    2 
 drivers/hid/hid-uclogic-core.c                           |    4 
 drivers/hwmon/pmbus/adm1266.c                            |   32 -
 drivers/hwmon/pmbus/pmbus_core.c                         |  117 +++-
 drivers/infiniband/sw/siw/siw_qp_rx.c                    |   15 
 drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c             |    2 
 drivers/iommu/intel/pasid.c                              |   22 
 drivers/iommu/intel/pasid.h                              |    6 
 drivers/irqchip/irq-ath79-cpu.c                          |    7 
 drivers/net/dsa/mt7530.c                                 |   47 +
 drivers/net/ethernet/amd/pds_core/debugfs.c              |    7 
 drivers/net/ethernet/amd/pds_core/dev.c                  |   11 
 drivers/net/ethernet/amd/pds_core/devlink.c              |    6 
 drivers/net/ethernet/atheros/ag71xx.c                    |    3 
 drivers/net/ethernet/broadcom/genet/bcmgenet.c           |    9 
 drivers/net/ethernet/cirrus/cs89x0.c                     |    2 
 drivers/net/ethernet/cortina/gemini.c                    |   21 
 drivers/net/ethernet/intel/ice/ice_dcb_lib.c             |    4 
 drivers/net/ethernet/intel/ice/ice_main.c                |   10 
 drivers/net/ethernet/intel/ice/ice_ptp_hw.c              |   15 
 drivers/net/ethernet/intel/ice/ice_txrx.c                |    7 
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c        |    1 
 drivers/net/ethernet/marvell/octeontx2/af/cgx.c          |    7 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c      |    2 
 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c |    8 
 drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c   |    3 
 drivers/net/ethernet/microchip/lan966x/lan966x_main.c    |    8 
 drivers/net/ethernet/microsoft/mana/hw_channel.c         |   29 -
 drivers/net/ethernet/qlogic/qed/qed_cxt.c                |    2 
 drivers/net/ifb.c                                        |   11 
 drivers/net/phy/dp83tc811.c                              |    1 
 drivers/net/pse-pd/pse_core.c                            |    2 
 drivers/net/wireless/ath/ath10k/wmi.c                    |   15 
 drivers/net/wireless/ath/ath11k/dp_rx.c                  |    3 
 drivers/net/wireless/ath/ath11k/hal.c                    |   14 
 drivers/net/wireless/ath/ath11k/hal_rx.c                 |    5 
 drivers/net/wireless/ath/ath11k/testmode.c               |    1 
 drivers/net/wireless/ath/ath11k/wmi.c                    |   19 
 drivers/net/wwan/iosm/iosm_ipc_imem.c                    |    2 
 drivers/nvme/host/ioctl.c                                |   17 
 drivers/phy/marvell/phy-mvebu-a3700-utmi.c               |    5 
 drivers/phy/tegra/xusb-tegra186.c                        |   33 -
 drivers/phy/tegra/xusb.h                                 |    1 
 drivers/pinctrl/qcom/pinctrl-sm8150.c                    |    8 
 drivers/pinctrl/renesas/pinctrl-rzg2l.c                  |    2 
 drivers/platform/surface/surface_aggregator_registry.c   |    2 
 drivers/platform/x86/adv_swbutton.c                      |    6 
 drivers/platform/x86/hp/hp_accel.c                       |    3 
 drivers/platform/x86/intel/hid.c                         |    6 
 drivers/platform/x86/intel/vbtn.c                        |    6 
 drivers/scsi/isci/host.c                                 |    3 
 drivers/scsi/sd.c                                        |    3 
 drivers/spi/spi-dw-dma.c                                 |    2 
 drivers/spi/spi-ep93xx.c                                 |    2 
 drivers/spi/spi-mtk-snfi.c                               |    2 
 drivers/spi/spi-qup.c                                    |    3 
 drivers/spi/spi-sprd.c                                   |    3 
 drivers/spi/spi-ti-qspi.c                                |    1 
 fs/btrfs/fs.h                                            |    1 
 fs/btrfs/qgroup.c                                        |   31 -
 fs/netfs/buffered_read.c                                 |   14 
 fs/netfs/buffered_write.c                                |  213 ++++---
 fs/netfs/iterator.c                                      |   26 
 fs/netfs/misc.c                                          |    8 
 fs/netfs/read_retry.c                                    |   11 
 fs/netfs/write_issue.c                                   |   39 -
 fs/nfsd/nfs4state.c                                      |    7 
 fs/nsfs.c                                                |    2 
 fs/ntfs3/file.c                                          |   12 
 fs/smb/client/cifs_spnego.c                              |   16 
 fs/smb/client/cifsfs.c                                   |    2 
 fs/smb/client/netlink.c                                  |    6 
 fs/smb/client/smb2ops.c                                  |    4 
 fs/smb/client/smb2transport.c                            |    2 
 fs/smb/server/mgmt/user_session.c                        |    7 
 fs/smb/server/oplock.c                                   |   13 
 fs/smb/server/oplock.h                                   |    1 
 fs/smb/server/smb2pdu.c                                  |    3 
 fs/smb/server/smbacl.c                                   |   78 ++
 fs/smb/server/vfs_cache.c                                |  207 ++++++-
 fs/smb/server/vfs_cache.h                                |   12 
 fs/sysfs/group.c                                         |    2 
 fs/zonefs/super.c                                        |    6 
 include/asm-generic/kprobes.h                            |    2 
 include/linux/arm_ffa.h                                  |    3 
 include/linux/bio-integrity.h                            |    5 
 include/linux/blk-integrity.h                            |    5 
 include/linux/fwnode.h                                   |    1 
 include/linux/libata.h                                   |    7 
 include/linux/sched.h                                    |    1 
 include/net/af_unix.h                                    |    1 
 include/net/bluetooth/bluetooth.h                        |    1 
 include/net/netfilter/nf_queue.h                         |    1 
 include/trace/events/btrfs.h                             |    4 
 include/trace/events/netfs.h                             |    8 
 io_uring/net.c                                           |   26 
 io_uring/waitid.c                                        |    1 
 kernel/cgroup/cpuset.c                                   |    8 
 kernel/irq_work.c                                        |    7 
 kernel/sched/core.c                                      |    2 
 kernel/sched/deadline.c                                  |   19 
 kernel/sched/ext.c                                       |    5 
 kernel/sched/fair.c                                      |   16 
 kernel/sched/sched.h                                     |   37 +
 kernel/trace/ring_buffer.c                               |    8 
 kernel/trace/trace_events_hist.c                         |    6 
 kernel/trace/tracing_map.c                               |   17 
 lib/kunit/Kconfig                                        |    5 
 lib/test_kprobes.c                                       |   29 -
 mm/damon/sysfs-schemes.c                                 |    1 
 mm/memory_hotplug.c                                      |    2 
 net/batman-adv/bridge_loop_avoidance.c                   |   54 +
 net/batman-adv/distributed-arp-table.c                   |    3 
 net/batman-adv/fragmentation.c                           |   58 +-
 net/batman-adv/gateway_client.c                          |    4 
 net/batman-adv/originator.c                              |    4 
 net/batman-adv/tp_meter.c                                |   64 +-
 net/batman-adv/types.h                                   |   17 
 net/bluetooth/af_bluetooth.c                             |   97 ++-
 net/bluetooth/bnep/core.c                                |    2 
 net/bluetooth/iso.c                                      |   14 
 net/bluetooth/l2cap_core.c                               |    2 
 net/bluetooth/l2cap_sock.c                               |   51 +
 net/bluetooth/mgmt.c                                     |    6 
 net/bluetooth/rfcomm/sock.c                              |    9 
 net/bluetooth/sco.c                                      |    9 
 net/bridge/br_mrp_netlink.c                              |    4 
 net/bridge/br_multicast.c                                |   27 
 net/core/gro.c                                           |    3 
 net/core/skmsg.c                                         |    9 
 net/ethtool/bitset.c                                     |    8 
 net/ipv4/inet_connection_sock.c                          |    2 
 net/ipv4/netfilter/arptable_filter.c                     |    2 
 net/ipv4/netfilter/iptable_filter.c                      |    2 
 net/ipv4/netfilter/iptable_mangle.c                      |    2 
 net/ipv4/netfilter/iptable_raw.c                         |    2 
 net/ipv4/netfilter/iptable_security.c                    |    2 
 net/ipv4/raw.c                                           |    2 
 net/ipv4/tcp_ao.c                                        |    3 
 net/ipv6/exthdrs.c                                       |   21 
 net/ipv6/netfilter/ip6t_hbh.c                            |    4 
 net/ipv6/netfilter/ip6table_filter.c                     |    2 
 net/ipv6/netfilter/ip6table_mangle.c                     |    2 
 net/ipv6/netfilter/ip6table_raw.c                        |    2 
 net/ipv6/netfilter/ip6table_security.c                   |    2 
 net/l2tp/l2tp_core.c                                     |    2 
 net/mac80211/mlme.c                                      |    2 
 net/mac80211/parse.c                                     |   71 +-
 net/mptcp/pm_netlink.c                                   |   35 -
 net/mptcp/protocol.c                                     |    3 
 net/netfilter/ipset/ip_set_hash_ipmark.c                 |    6 
 net/netfilter/ipset/ip_set_hash_ipport.c                 |    5 
 net/netfilter/ipset/ip_set_hash_ipportip.c               |    5 
 net/netfilter/ipset/ip_set_hash_ipportnet.c              |    5 
 net/netfilter/nf_queue.c                                 |    4 
 net/netfilter/nfnetlink_queue.c                          |    2 
 net/netfilter/nft_inner.c                                |    1 
 net/phonet/pep.c                                         |   19 
 net/smc/af_smc.c                                         |    3 
 net/smc/smc_tracepoint.h                                 |    2 
 net/tls/tls_sw.c                                         |   46 +
 net/unix/af_unix.c                                       |   13 
 net/unix/garbage.c                                       |   79 +-
 net/vmw_vsock/virtio_transport_common.c                  |   20 
 net/vmw_vsock/vmci_transport.c                           |    2 
 net/wireless/scan.c                                      |    3 
 scripts/package/PKGBUILD                                 |    2 
 security/keys/keyring.c                                  |    1 
 security/landlock/net.c                                  |  118 ++--
 security/lsm_syscalls.c                                  |    9 
 sound/core/pcm_lib.c                                     |    3 
 sound/core/seq/seq_ump_client.c                          |   22 
 sound/pci/asihpi/hpicmn.c                                |    6 
 sound/pci/hda/cs35l41_hda.c                              |    4 
 sound/pci/hda/cs35l56_hda.c                              |    1 
 sound/soc/codecs/cs35l56-sdw.c                           |    3 
 sound/usb/misc/ua101.c                                   |    5 
 sound/usb/mixer_scarlett2.c                              |    2 
 tools/perf/builtin-list.c                                |   13 
 tools/perf/builtin-stat.c                                |    1 
 tools/perf/util/Build                                    |    1 
 tools/perf/util/cgroup.c                                 |   30 -
 tools/perf/util/evsel.c                                  |  291 +++++++++-
 tools/perf/util/evsel.h                                  |   30 +
 tools/perf/util/metricgroup.c                            |    1 
 tools/perf/util/parse-events.c                           |   59 +-
 tools/perf/util/parse-events.h                           |    5 
 tools/perf/util/parse-events.l                           |   11 
 tools/perf/util/parse-events.y                           |   16 
 tools/perf/util/pmu.c                                    |   20 
 tools/perf/util/pmu.h                                    |    2 
 tools/perf/util/pmus.c                                   |    9 
 tools/perf/util/print-events.c                           |   36 +
 tools/perf/util/print-events.h                           |    1 
 tools/perf/util/python.c                                 |   61 --
 tools/perf/util/stat-display.c                           |    6 
 tools/perf/util/stat-shadow.c                            |    1 
 tools/perf/util/tool_pmu.c                               |  417 ---------------
 tools/perf/util/tool_pmu.h                               |   51 -
 tools/testing/selftests/mm/run_vmtests.sh                |    2 
 261 files changed, 2869 insertions(+), 1693 deletions(-)

Abdun Nihaal (1):
net: wwan: iosm: fix potential memory leaks in ipc_imem_init()

Abdurrahman Hussain (10):
hwmon: (pmbus/adm1266) widen blackbox-info buffer to I2C_SMBUS_BLOCK_MAX
hwmon: (pmbus/adm1266) seed timestamp from the real-time clock
hwmon: (pmbus/adm1266) reject implausible blackbox record_count
hwmon: (pmbus/adm1266) include PEC byte in pmbus_block_xfer read buffer
hwmon: (pmbus/adm1266) bounce blackbox records through a protocol-sized buffer
hwmon: (pmbus/adm1266) cap PDIO scan in get_multiple at ADM1266_PDIO_NR
hwmon: (pmbus/adm1266) don't clobber GPIO bits before PDIO read in get_multiple
hwmon: (pmbus/adm1266) register the gpio_chip after pmbus_do_probe()
hwmon: (pmbus/adm1266) register the nvmem device after pmbus_do_probe()
hwmon: (pmbus/adm1266) reject short block-read responses in the GPIO accessors

Aditya Garg (1):
net: mana: validate rx_req_idx to prevent out-of-bounds array access

Alan Liu (1):
drm/amdgpu/vpe: Force collaborate sync after TRAP

Alessio Belle (1):
drm/imagination: Synchronize interrupts before suspending the GPU

Andreas Haarmann-Thiemann (1):
net: ethernet: cortina: Drop half-assembled SKB

Andy Shevchenko (1):
gpiolib: cdev: use !mem_is_zero() instead of memchr_inv(s, 0, n)

Ankit Nautiyal (1):
drm/i915/dp: Fix readback for target_rr in Adaptive Sync SDP

Anuj Gupta (1):
block: modify bio_integrity_map_user to accept iov_iter as argument

Ard Biesheuvel (1):
efi: Allocate runtime workqueue before ACPI init

Asim Viladi Oglu Manizada (1):
smb: client: reject userspace cifs.spnego descriptions

Bart Van Assche (1):
ice: fix locking in ice_dcb_rebuild()

Bartosz Golaszewski (2):
device property: set fwnode->secondary to NULL in fwnode_init()
gpio: cdev: check if uAPI v2 config attributes are correctly zeroed

Biju Das (1):
pinctrl: renesas: rzg2l: Fix incorrect PUPD register offset for high pins during suspend/resume

Boris Burkov (1):
btrfs: fix squota accounting during enable generation

Caleb Sander Mateos (1):
block: drop direction param from bio_integrity_copy_user()

Casey Chen (1):
block: recompute nr_integrity_segments in blk_insert_cloned_request

ChenXiaoSong (1):
smb/server: promote S_DEL_ON_CLS to S_DEL_PENDING when close

Chenguang Zhao (1):
ethtool: fix ethnl_bitmap32_not_zero() bit interval semantics

Chuck Lever (2):
NFSD: Fix infinite loop in layout state revocation
tls: Preserve sk_err across recvmsg() when data has been copied

Cássio Gabriel (1):
ALSA: ua101: Reject too-short USB descriptors

DaeMyung Kang (1):
ksmbd: close durable scavenger races against m_fp_list lookups

Daniel Golle (2):
net: dsa: mt7530: fix FDB entries not aging out with short timeout
net: dsa: mt7530: preserve VLAN tags on trapped link-local frames

David Carlier (3):
Bluetooth: ISO: drop ISO_END frames received without prior ISO_START
block: don't overwrite bip_vcnt in bio_integrity_copy_user()
tracing: Avoid NULL return from hist_field_name() on truncation

David Gow (2):
kunit: config: Enable KUNIT_DEBUGFS by default
kunit: config: KUNIT_DEBUGFS should depend on DEBUG_FS

David Howells (9):
netfs: Fix overrun check in netfs_extract_user_iter()
netfs: Fix netfs_invalidate_folio() to clear dirty bit if all changes gone
netfs: Defer the emission of trace_netfs_folio()
netfs: Fix streaming write being overwritten
netfs: Fix potential deadlock in write-through mode
netfs: Fix write streaming disablement if fd open O_RDWR
netfs: Fix early put of sink folio in netfs_read_gaps()
netfs: Fix partial invalidation of streaming-write folio
netfs: Fix folio->private handling in netfs_perform_write()

Dawei Feng (1):
qed: fix double free in qed_cxt_tables_alloc()

Deepanshu Kartikey (1):
drm/virtio: use uninterruptible resv lock for plane updates

Dmitry Baryshkov (2):
drm/msm/dsi: don't dump registers past the mapped region drm/msm/snapshot: fix dumping of the unaligned regions

Erni Sri Satya Vennela (1):
net: mana: Fix TOCTOU double-fetch of hwc_msg_id from DMA buffer

Ethan Nelson-Moore (1):
net: ethernet: cs89x0: remove stale CONFIG_MACH_MX31ADS reference

Felix Gu (1):
spi: mtk-snfi: Fix resource leak in mtk_snand_read_page_cache()

Feng Yang (1):
tracing: Fix the bug where bpf_get_stackid returns -EFAULT on the ARM64

Ferry Meng (1):
ksmbd: fix SID memory leak in set_posix_acl_entries_dacl() on overflow

Filipe Manana (1):
btrfs: tracepoints: fix sleep while in atomic context in btrfs_sync_file()

Florian Westphal (1):
netfilter: x_tables: unregister the templates first

Gabor Juhos (1):
phy: marvell: mvebu-a3700-utmi: fix incorrect USB2_PHY_CTRL register access

Gang Yan (1):

      mptcp: sync the msk->sndbuf at accept() time

Greg Kroah-Hartman (2):
sysfs: don't remove existing directory on update failure Linux 6.12.92

Grzegorz Nitka (2):
ice: restore PTP Rx timestamp config after ethtool set-channels
ice: ptp: serialize E825 PHY timer start with PTP lock

Guangshuo Li (1):
RDMA/rtrs: Fix use-after-free in path file creation cleanup

Guenter Roeck (2):
hwmon: (pmbus/core) Protect regulator operations with mutex
ARM: integrator: Fix early initialization

Guo Ren (Alibaba DAMO Academy) (1):
riscv: mm: Fixup no5lvl failure when vaddr is invalid

Guopeng Zhang (1):
cgroup/cpuset: Reset DL migration state on can_attach() failure

Gustavo Sousa (1):
drm/xe/hdcp: Add NULL check for media_gt in intel_hdcp_gsc_check_status()

Haoze Xie (1):

      netfilter: nf_queue: hold bridge skb->dev while queued

Harry Wentland (3):
drm/amd/display: Fix integer overflow in bios_get_image()
drm/amd/display: Validate GPIO pin LUT table size before iterating drm/amd/display: Validate payload length and link_index in dc_process_dmub_aux_transfer_async

Heechan Kang (1):
io_uring/waitid: clear waitid info before copying it to userspace

Henrique Carvalho (1):
smb: client: protect tc_count increment in smb2_find_smb_sess_tcon_unlocked()

Huacai Chen (2):
sched/deadline: Fix dl_server_stopped()
LoongArch: Remove unused code to avoid build warning

Ian Rogers (1):
perf parse-events: Expose/rename config_term_name

Ido Schimmel (1):
bridge: mcast: Fix a possible use-after-free when removing a bridge port

Ilya Dryomov (1):
rbd: eliminate a race in lock_dwork draining on unmap

Jakub Kicinski (2):
net: tls: fix off-by-one in sg_chain entry count for wrapped sk_msg ring
net: tls: prevent chain-after-chain in plain text SG

Jann Horn (2):

      Bluetooth: bnep: Fix UAF read of dev->name
      af_unix: Fix UAF read of tail->len in unix_stream_data_wait()

Jens Axboe (2):
io_uring/net: punt IORING_OP_BIND async if it needs file create
block: make bio_integrity_map_user() static inline

Jeremy Erazo (1):
smb: client: use data_len for SMB2 READ encrypted folioq copy

Jeremy Laratro (1):
ksmbd: fix null pointer dereference in compare_guid_key()

Jeroen Massar (1):
net/mlx5: Do not restore destination-less TC rules

Jiajia Liu (1):

      Bluetooth: btmtk: fix urb->setup_packet leak in error paths

Jianbo Liu (2):
net/mlx5e: Trigger neighbor resolution for unresolved destinations net/mlx5e: Use ip6_dst_lookup instead of ipv6_dst_lookup_flow for MAC init

Jianpeng Chang (1):
kprobes: skip non-symbol addresses in kprobe_add_ksym_blacklist()

Jiayuan Chen (1):
irq_work: Fix use-after-free in irq_work_single() on PREEMPT_RT

Jiexun Wang (1):
Bluetooth: serialize accept_q access

Jiri Olsa (1):
x86/fgraph: Fix return_to_handler regs.rsp value

Johan Hovold (4):
spi: qup: fix error pointer deref after DMA setup failure
spi: ep93xx: fix error pointer deref after DMA setup failure
spi: sprd: fix error pointer deref after DMA setup failure
spi: ti-qspi: fix use-after-free after DMA setup failure

Johannes Berg (1):
wifi: mac80211: fix MLE defragmentation

Johannes Thumshirn (1):
zonefs: handle integer overflow in zonefs_fname_to_fno

John Walker (1):

      wifi: cfg80211: advance loop vars in cfg80211_merge_profile()

Jonas Jelonek (1):
net: pse-pd: fix sign on -ENOENT check in of_load_pse_pis()

Juergen Gross (1):

      x86/xen: Fix xen_e820_swap_entry_with_ram()

Julian Braha (1):
powerpc: fix dead default for GUEST_STATE_BUFFER_TEST

Julien Chauveau (1):
drm/bridge: it66121: acquire reset GPIO in probe

Junyi Liu (1):
ksmbd: validate SID in parent security descriptor during ACL inheritance

Justin Iurman (2):
ipv6: ioam: refresh hdr pointer before ioam6_event()
ipv6: ioam: add NULL check for idev in ipv6_hop_ioam()

Kang Yang (1):
wifi: ath10k: skip WMI and beacon transmission when device is wedged

Keith Busch (3):
blk-integrity: remove seed for user mapped buffers
blk-integrity: use simpler alignment check
blk-integrity: enable p2p source and destination

Konstantin Komarov (1):
fs/ntfs3: handle attr_set_size() errors when truncating files

Kuniyuki Iwashima (3):
af_unix: Give up GC if MSG_PEEK intervened.
tcp: Fix imbalanced icsk_accept_queue count.
tcp: Fix out-of-bounds access for twsk in tcp_ao_established_key().

Kyle Farnung (1):
wifi: ath11k: clear shared SRNG pointer state on restart

Linus Torvalds (1):
security/keys: fix missed RCU read section on lookup

Linus Walleij (2):
net: ethernet: cortina: Make RX SKB per-port
net: ethernet: cortina: Carry over frag counter

Lu Baolu (1):
iommu/vt-d: Draining PRQ in sva unbind path when FPD bit set

Luiz Capitulino (1):
selftests/mm: run_vmtests.sh: fix destructive tests invocation

Lukas Bulwahn (2):
arm64: Kconfig: Remove selecting replaced HAVE_FUNCTION_GRAPH_RETVAL
HID: quirks: really enable the intended work around for appledisplay

Luxiao Xu (1):
batman-adv: fix tp_meter counter underflow during shutdown

Marcin Szycik (2):
ice: fix setting promisc mode while adding VID filter
ice: fix setting RSS VSI hash for E830

Marek Vasut (2):
ARM: dts: renesas: genmai: Drop superfluous cells
ARM: dts: renesas: rskrza1: Drop superfluous cells

Martin Kaiser (1):
test_kprobes: clear kprobes between test runs

Masami Hiramatsu (Google) (1):

      tracing: Do not call map->ops->elt_free() if elt_alloc() fails

Matthew Leach (1):
wifi: ath11k: fix peer resolution on rx path when peer_id=0

Matthew Wilcox (Oracle) (2):
netfs: Fix a few minor bugs in netfs_page_mkwrite()
netfs: Remove unnecessary references to pages

Matthieu Baerts (NGI0) (3):
mptcp: pm: ADD_ADDR rtx: allow ID 0
mptcp: pm: ADD_ADDR rtx: always decrease sk refcount
mptcp: pm: ADD_ADDR rtx: free sk if last

Matthieu Buffet (1):
landlock: Fix TCP handling of short AF_UNSPEC addresses

Maulik Shah (1):
pinctrl: qcom: Fix wakeirq map by removing disconnected irqs for sm8150

Michael Bommarito (12):
smb: client: require net admin for CIFS SWN netlink
Bluetooth: L2CAP: ecred_reconfigure: send packed pdu, not stack pointer
Bluetooth: MGMT: validate Add Extended Advertising Data length
net: ifb: report ethtool stats over num_tx_queues
l2tp: use list_del_rcu in l2tp_session_unhash
ipv4: raw: reject IP_HDRINCL packets with ihl < 5
ixgbevf: fix use-after-free in VEPA multicast source pruning
wifi: mac80211: consume only present negotiated TTLM maps
KVM: arm64: vgic-its: Reject restored DTE with out-of-range num_eventid_bits
KVM: arm64: vgic: Free private_irqs when init fails after allocation
scsi: isci: Fix use-after-free in device removal path
RDMA/siw: Reject MPA FPDU length underflow before signed receive math

Michal Wajdeczko (1):
drm/xe/vf: Fix signature of print functions

Mike Christie (1):
scsi: sd: Fix return code handling in sd_spinup_disk()

Mikko Perttunen (1):
drm/msm: Fix iommu_map_sgtable() return value check and avoid WARN

Ming Lei (1):
ublk: reject max_sectors smaller than PAGE_SECTORS in parameter validation

Mingyu Wang (1):
Bluetooth: hci_uart: fix UAFs and race conditions in close and init paths

Minh Nguyen (1):
vsock/vmci: fix UAF when peer resets connection during handshake

Mohanram Meenakshisundaram (1):
drm/xe/pf: Fix CFI failure in debugfs access

Muchun Song (2):
drivers/base/memory: fix memory block reference leak in poison accounting mm/memory_hotplug: fix memory block reference leak on remove

Myeonghun Pak (1):
net: lan966x: avoid unregistering netdev on register failure

Namjae Jeon (1):
ksmbd: validate owner of durable handle on reconnect

Nan Li (1):
netfilter: ipset: stop hash:* range iteration at end

Nicolai Buchwitz (1):
net: bcmgenet: keep RBUF EEE/PM disabled

Nicolas Escande (2):
wifi: ath11k: fix error path leaks in some WMI WOW calls
wifi: ath11k: fix error path leak in ath11k_tm_cmd_wmi_ftm()

Nikhil P. Rao (3):
pds_core: fix error handling in pdsc_devcmd_wait
pds_core: fix debugfs_lookup dentry leak and error handling
pds_core: ensure null-termination for firmware version strings

Niklas Cassel (4):
ata: libata-scsi: improve readability of ata_scsi_qc_issue()
ata: libata-scsi: do not use the deferred QC feature for ATA_DEFER_PORT
ata: libata-scsi: do not use the deferred QC feature on PMPs with CBS
ata: libata-scsi: do not needlessly defer commands when using PMP with FBS

Oliver White (1):
platform/surface: aggregator_registry: omit battery & AC nodes on Surface Laptop 7

Osama Abdelkader (3):
riscv: kvm: return SBI_ERR_FAILURE for pmu_snapshot_set_shmem() when OOM drm/bridge: chipone-icn6211: use devm_drm_bridge_add in i2c probe drm/bridge: megachips: remove bridge when irq request fails

Pengpeng Hou (1):
s390/debug: Reject zero-length input before trimming a newline

Peter Zijlstra (3):
sched/deadline: Less agressive dl_server handling sched/deadline: Fix dl_server getting stuck sched/deadline: Fix dl_server behaviour

Peter Zijlstra (Intel) (1):
sched/deadline: Stop dl_server before CPU goes offline

Petr Machata (1):
net: bridge: Flush multicast groups when snooping is disabled

Pu Lehui (2):
riscv: fgraph: Select HAVE_FUNCTION_GRAPH_TRACER depends on HAVE_DYNAMIC_FTRACE_WITH_ARGS
riscv: fgraph: Fix stack layout to match __arch_ftrace_regs argument of ftrace_return_to_handler

Rafael J. Wysocki (4):
platform/x86: adv_swbutton: Check ACPI_HANDLE() against NULL platform/x86: hp_accel: Check ACPI_COMPANION() against NULL platform/x86: intel-hid: Check ACPI_HANDLE() against NULL platform/x86: intel-vbtn: Check ACPI_HANDLE() against NULL

Ratheesh Kannoth (1):
octeontx2-af: npc: Fix allmulticast skip logic for LBK and SDP VFs

Richard Fitzgerald (1):
ASoC: cs35l56: Fix flushing of IRQ work in cs35l56_sdw_remove()

Robertus Diawan Chris (1):
ALSA: scarlett2: Add missing error check when initialise Autogain Status

Rosen Penev (2):
irqchip/ath79-cpu: Remove unused function
net: ag71xx: check error for platform_get_irq

Ruide Cao (1):
batman-adv: fix fragment reassembly length accounting

Ruijie Li (1):
batman-adv: clear current gateway during teardown

Sabrina Dubroca (1):
net: gro: don't merge zcopy skbs

Safa Karakuş (1):
Bluetooth: fix UAF in l2cap_sock_cleanup_listen() vs l2cap_conn_del()

Sam Daly (1):
octeontx2-af: CGX: add bounds check to cgx_speed_mbps index

Samuele Mariotti (1):
sched_ext: Fix missing warning in scx_set_task_state() default case

Sasha Levin (7):
Revert "perf cgroup: Update metric leader in evlist__expand_cgroup" Revert "perf tool_pmu: Fix aggregation on duration_time" Revert "perf python: Add parse_events function"
Revert "perf tool_pmu: Factor tool events into their own PMU" Revert "x86/vdso: Fix output operand size of RDPID" Revert "ice: fix double-free of tx_buf skb"
Revert "ice: Remove jumbo_remove step from TX path"

Sayali Patil (1):
powerpc/time: Remove redundant preempt_disable|enable() calls from arch_irq_work_raise()

SeongJae Park (1):
mm/damon/sysfs-schemes: call missing mem_cgroup_iter_break()

Shuhao Fu (2):
ALSA: hda: cs35l56: Put ACPI device after setting companion
ALSA: hda: cs35l41: Put ACPI device on missing physical node

Shuicheng Lin (2):
drm/xe/gsc: Fix double-free of managed BO in error path drm/xe/oa: Fix exec_queue leak on width check in stream open

Stefano Garzarella (1):
vsock/virtio: reset connection on receiving queue overflow

Stephen Smalley (1):
lsm: hold cred_guard_mutex for lsm_set_self_attr()

Steven Rostedt (1):
ring-buffer: Fix reporting of missed events in iterator

Sudeep Holla (9):
firmware: arm_ffa: Check for NULL FF-A ID table while driver registration
firmware: arm_ffa: Skip free_pages on RX buffer alloc failure
firmware: arm_ffa: Fix per-vcpu self notifications handling in workqueue
firmware: arm_ffa: Unregister the FF-A devices when cleaning up the partitions
firmware: arm_ffa: Remove unnecessary declaration of ffa_partitions_cleanup()
firmware: arm_ffa: Allow multiple UUIDs per partition to register SRI callback
firmware: arm_ffa: Unregister bus notifier on teardown for FF-A v1.0
firmware: arm_ffa: Align RxTx buffer size before mapping
firmware: arm_ffa: Fix sched-recv callback partition lookup

Sungwoo Kim (1):
block: bio-integrity: Fix null-ptr-deref in bio_integrity_map_user()

Sven Eckelmann (9):
batman-adv: mcast: fix use-after-free in orig_node RCU release
batman-adv: dat: handle forward allocation error
batman-adv: frag: disallow unicast fragment in fragment
batman-adv: bla: fix report_work leak on backbone_gw purge
batman-adv: tp_meter: avoid use of uninit sender vars
batman-adv: tp_meter: fix tp_vars reference leak in receiver shutdown
batman-adv: tp_meter: fix race condition in send error reporting
batman-adv: tt: fix negative last_changeset_len
batman-adv: tt: fix negative tt_buff_len

Sven Schuchmann (1):
net: phy: DP83TC811: add reading of abilities

Takashi Iwai (3):
ALSA: pcm: Don't setup bogus iov_iter for silencing
ALSA: asihpi: Fix potential OOB array access at reading cache
HID: uclogic: Fix regression of input name assignment

Tejun Heo (1):
sched_ext: Avoid UAF in scx_root_enable_workfn() init failure path

Tiezhu Yang (1):
LoongArch: kprobes: Fix handling of fatal unrecoverable recursions

Viacheslav Dubeyko (1):
netfs: fix VM_BUG_ON_FOLIO() issue in netfs_write_begin() call

Viktor Jägersküpper (1):
kbuild: pacman-pkg: make "rc" releases adhere to pacman versioning scheme

Viresh Kumar (1):
firmware: arm_ffa: Refactor addition of partition information into XArray

Vladimir Murzin (1):
arm64: probes: Handle probes on hinted conditional branch instructions

Vladimir Yakovlev (1):
spi: spi-dw-dma: fix print error log when wait finish transaction

Wayne Chang (1):
phy: tegra: xusb: Fix per-pad high-speed termination calibration

Xiang Mei (3):
bridge: mrp: reject zero test interval to avoid OOM panic net/smc: avoid NULL deref of conn->lnk in smc_msg_event tracepoint net/smc: reject CHID-0 ACCEPT that matches an empty ism_dev slot

Xingwang Xiang (1):
bpf, skmsg: fix verdict sk_data_ready racing with ktls rx

Yizhou Zhao (1):
netfilter: nft_inner: Fix IPv6 inner_thoff desync

Zack McKevitt (1):
accel/qaic: Add overflow check to remap_pfn_range during mmap

Zhang Cen (1):
ALSA: seq: Serialize UMP output teardown with event_input

Zhengchuan Liang (1):
netfilter: ip6t_hbh: reject oversized option lists

Zhihao Cheng (2):
cifs: Fix busy dentry used after unmounting
nsfs: fix wrong error code returned for pidns ioctls

Zijing Yin (1):
phonet/pep: disable BH around forwarded sk_receive_skb()

author maintainer
#1 lore raw
Makefile +1 -1
index 8e8c4c74f6d2..feb1d9b8b910 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 12
-SUBLEVEL = 91
+SUBLEVEL = 92
 EXTRAVERSION =
 NAME = Baby Opossum Posse
 
arch/arm/boot/dts/renesas/r7s72100-genmai.dts +0 -3
index 28e703e0f152..9bfbd25b25a2 100644
@@ -38,9 +38,6 @@ flash@18000000 {
 		clocks = <&mstp9_clks R7S72100_CLK_SPIBSC0>;
 		power-domains = <&cpg_clocks>;
 
-		#address-cells = <1>;
-		#size-cells = <1>;
-
 		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
arch/arm/boot/dts/renesas/r7s72100-rskrza1.dts +0 -2
index b547216d4801..416c74103448 100644
@@ -36,8 +36,6 @@ flash@18000000 {
 		power-domains = <&cpg_clocks>;
 		bank-width = <4>;
 		device-width = <1>;
-		#address-cells = <1>;
-		#size-cells = <1>;
 
 		partitions {
 			compatible = "fixed-partitions";
arch/arm/mach-versatile/integrator_cp.c +4 -9
index 2ed4ded56b3f..03dfb5f720b7 100644
@@ -86,14 +86,6 @@ static u64 notrace intcp_read_sched_clock(void)
 	return val;
 }
 
-static void __init intcp_init_early(void)
-{
-	cm_map = syscon_regmap_lookup_by_compatible("arm,core-module-integrator");
-	if (IS_ERR(cm_map))
-		return;
-	sched_clock_register(intcp_read_sched_clock, 32, 24000000);
-}
-
 static void __init intcp_init_irq_of(void)
 {
 	cm_init();
@@ -119,6 +111,10 @@ static void __init intcp_init_of(void)
 {
 	struct device_node *cpcon;
 
+	cm_map = syscon_regmap_lookup_by_compatible("arm,core-module-integrator");
+	if (!IS_ERR(cm_map))
+		sched_clock_register(intcp_read_sched_clock, 32, 24000000);
+
 	cpcon = of_find_matching_node(NULL, intcp_syscon_match);
 	if (!cpcon)
 		return;
@@ -138,7 +134,6 @@ static const char * intcp_dt_board_compat[] = {
 DT_MACHINE_START(INTEGRATOR_CP_DT, "ARM Integrator/CP (Device Tree)")
 	.reserve	= integrator_reserve,
 	.map_io		= intcp_map_io,
-	.init_early	= intcp_init_early,
 	.init_irq	= intcp_init_irq_of,
 	.init_machine	= intcp_init_of,
 	.dt_compat      = intcp_dt_board_compat,
arch/arm64/Kconfig +0 -1
index f487c5e21e2f..d4ebdc16cdb4 100644
@@ -219,7 +219,6 @@ config ARM64
 	select HAVE_FUNCTION_ERROR_INJECTION
 	select HAVE_FUNCTION_GRAPH_FREGS
 	select HAVE_FUNCTION_GRAPH_TRACER
-	select HAVE_FUNCTION_GRAPH_RETVAL
 	select HAVE_GCC_PLUGINS
 	select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && \
 		HW_PERF_EVENTS && HAVE_PERF_EVENTS_NMI
arch/arm64/include/asm/ftrace.h +1 -0
index 10e56522122a..46d4300dd48d 100644
@@ -145,6 +145,7 @@ ftrace_partial_regs(const struct ftrace_regs *fregs, struct pt_regs *regs)
 	regs->pc = afregs->pc;
 	regs->regs[29] = afregs->fp;
 	regs->regs[30] = afregs->lr;
+	regs->pstate = PSR_MODE_EL1h;
 	return regs;
 }
 
arch/arm64/include/asm/insn.h +1 -1
index 509c874de5c7..8024665b07d8 100644
@@ -405,7 +405,7 @@ __AARCH64_INSN_FUNCS(cbz,	0x7F000000, 0x34000000)
 __AARCH64_INSN_FUNCS(cbnz,	0x7F000000, 0x35000000)
 __AARCH64_INSN_FUNCS(tbz,	0x7F000000, 0x36000000)
 __AARCH64_INSN_FUNCS(tbnz,	0x7F000000, 0x37000000)
-__AARCH64_INSN_FUNCS(bcond,	0xFF000010, 0x54000000)
+__AARCH64_INSN_FUNCS(bcond,	0xFF000000, 0x54000000)
 __AARCH64_INSN_FUNCS(svc,	0xFFE0001F, 0xD4000001)
 __AARCH64_INSN_FUNCS(hvc,	0xFFE0001F, 0xD4000002)
 __AARCH64_INSN_FUNCS(smc,	0xFFE0001F, 0xD4000003)
arch/arm64/kvm/arm.c +3 -1
index 376a865e8842..3753ef782e98 100644
@@ -490,8 +490,10 @@ int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu)
 	kvm_destroy_mpidr_data(vcpu->kvm);
 
 	err = kvm_vgic_vcpu_init(vcpu);
-	if (err)
+	if (err) {
+		kvm_vgic_vcpu_destroy(vcpu);
 		return err;
+	}
 
 	err = kvm_share_hyp(vcpu, vcpu + 1);
 	if (err)
arch/arm64/kvm/vgic/vgic-its.c +4 -0
index 198296933e7e..5f6583b9abe3 100644
@@ -2295,6 +2295,10 @@ static int vgic_its_restore_dte(struct vgic_its *its, u32 id,
 	/* dte entry is valid */
 	offset = (entry & KVM_ITS_DTE_NEXT_MASK) >> KVM_ITS_DTE_NEXT_SHIFT;
 
+	/* Mimic the MAPD behaviour and reject invalid EID bits. */
+	if (num_eventid_bits > VITS_TYPER_IDBITS)
+		return -EINVAL;
+
 	if (!vgic_its_check_id(its, baser, id, NULL))
 		return -EINVAL;
 
arch/loongarch/kernel/kprobes.c +2 -2
index 8ba391cfabb0..bd783ebed4cc 100644
@@ -184,16 +184,16 @@ static bool reenter_kprobe(struct kprobe *p, struct pt_regs *regs,
 			   struct kprobe_ctlblk *kcb)
 {
 	switch (kcb->kprobe_status) {
-	case KPROBE_HIT_SS:
 	case KPROBE_HIT_SSDONE:
 	case KPROBE_HIT_ACTIVE:
 		kprobes_inc_nmissed_count(p);
 		setup_singlestep(p, regs, kcb, 1);
 		break;
+	case KPROBE_HIT_SS:
 	case KPROBE_REENTER:
 		pr_warn("Failed to recover from reentered kprobes.\n");
 		dump_kprobe(p);
-		WARN_ON_ONCE(1);
+		BUG();
 		break;
 	default:
 		WARN_ON(1);
arch/loongarch/mm/init.c +0 -4
index 61497f9c3fef..c595041afed4 100644
@@ -107,11 +107,7 @@ void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap)
 {
 	unsigned long start_pfn = start >> PAGE_SHIFT;
 	unsigned long nr_pages = size >> PAGE_SHIFT;
-	struct page *page = pfn_to_page(start_pfn);
 
-	/* With altmap the first mapped page is offset from @start */
-	if (altmap)
-		page += vmem_altmap_offset(altmap);
 	__remove_pages(start_pfn, nr_pages, altmap);
 }
 
arch/powerpc/Kconfig.debug +1 -2
index 0bbec4afc0d5..1e2b51280e60 100644
@@ -83,11 +83,10 @@ config MSI_BITMAP_SELFTEST
 	depends on DEBUG_KERNEL
 
 config GUEST_STATE_BUFFER_TEST
-	def_tristate n
+	def_tristate KUNIT_ALL_TESTS
 	prompt "Enable Guest State Buffer unit tests"
 	depends on KUNIT
 	depends on KVM_BOOK3S_HV_POSSIBLE
-	default KUNIT_ALL_TESTS
 	help
 	  The Guest State Buffer is a data format specified in the PAPR.
 	  It is by hcalls to communicate the state of L2 guests between
arch/powerpc/kernel/time.c +4 -2
index 0ff9f038e800..ce7f91172ec2 100644
@@ -458,6 +458,10 @@ DEFINE_PER_CPU(u8, irq_work_pending);
 
 #endif /* 32 vs 64 bit */
 
+/*
+ * Must be called with preemption disabled since it updates
+ * per-CPU irq_work state and programs the local CPU decrementer.
+ */
 void arch_irq_work_raise(void)
 {
 	/*
@@ -471,10 +475,8 @@ void arch_irq_work_raise(void)
 	 * which could get tangled up if we're messing with the same state
 	 * here.
 	 */
-	preempt_disable();
 	set_irq_work_pending_flag();
 	set_dec(1);
-	preempt_enable();
 }
 
 static void set_dec_or_work(u64 val)
arch/riscv/Kconfig +1 -1
index 9e8667a523d5..1c7575816795 100644
@@ -143,7 +143,7 @@ config RISCV
 	select HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
 	select HAVE_DYNAMIC_FTRACE_WITH_ARGS if HAVE_DYNAMIC_FTRACE
 	select HAVE_FTRACE_MCOUNT_RECORD if !XIP_KERNEL
-	select HAVE_FUNCTION_GRAPH_TRACER
+	select HAVE_FUNCTION_GRAPH_TRACER if HAVE_DYNAMIC_FTRACE_WITH_ARGS
 	select HAVE_FUNCTION_GRAPH_FREGS
 	select HAVE_FUNCTION_TRACER if !XIP_KERNEL && !PREEMPTION
 	select HAVE_EBPF_JIT if MMU
arch/riscv/kernel/mcount.S +11 -13
index 068168046e0e..da4a4000e57e 100644
@@ -12,8 +12,6 @@
 #include <asm/asm-offsets.h>
 #include <asm/ftrace.h>
 
-#define ABI_SIZE_ON_STACK	80
-
 	.text
 
 	.macro SAVE_ABI_STATE
@@ -28,12 +26,12 @@
 	 * register if a0 was not saved.
 	 */
 	.macro SAVE_RET_ABI_STATE
-	addi	sp, sp, -ABI_SIZE_ON_STACK
-	REG_S	ra, 1*SZREG(sp)
-	REG_S	s0, 8*SZREG(sp)
-	REG_S	a0, 10*SZREG(sp)
-	REG_S	a1, 11*SZREG(sp)
-	addi	s0, sp, ABI_SIZE_ON_STACK
+	addi	sp, sp, -FREGS_SIZE_ON_STACK
+	REG_S	ra, FREGS_RA(sp)
+	REG_S	s0, FREGS_S0(sp)
+	REG_S	a0, FREGS_A0(sp)
+	REG_S	a1, FREGS_A1(sp)
+	addi	s0, sp, FREGS_SIZE_ON_STACK
 	.endm
 
 	.macro RESTORE_ABI_STATE
@@ -43,11 +41,11 @@
 	.endm
 
 	.macro RESTORE_RET_ABI_STATE
-	REG_L	ra, 1*SZREG(sp)
-	REG_L	s0, 8*SZREG(sp)
-	REG_L	a0, 10*SZREG(sp)
-	REG_L	a1, 11*SZREG(sp)
-	addi	sp, sp, ABI_SIZE_ON_STACK
+	REG_L	ra, FREGS_RA(sp)
+	REG_L	s0, FREGS_S0(sp)
+	REG_L	a0, FREGS_A0(sp)
+	REG_L	a1, FREGS_A1(sp)
+	addi	sp, sp, FREGS_SIZE_ON_STACK
 	.endm
 
 SYM_TYPED_FUNC_START(ftrace_stub)
arch/riscv/kvm/vcpu_pmu.c +4 -2
index 78ac3216a54d..9ec3280db91d 100644
@@ -435,8 +435,10 @@ int kvm_riscv_vcpu_pmu_snapshot_set_shmem(struct kvm_vcpu *vcpu, unsigned long s
 	}
 
 	kvpmu->sdata = kzalloc(snapshot_area_size, GFP_ATOMIC);
-	if (!kvpmu->sdata)
-		return -ENOMEM;
+	if (!kvpmu->sdata) {
+		sbiret = SBI_ERR_FAILURE;
+		goto out;
+	}
 
 	if (kvm_vcpu_write_guest(vcpu, saddr, kvpmu->sdata, snapshot_area_size)) {
 		kfree(kvpmu->sdata);
arch/riscv/mm/init.c +25 -0
index 8d167e09f1fe..8cd8bc9b82cb 100644
@@ -807,6 +807,27 @@ static void __init set_mmap_rnd_bits_max(void)
 	mmap_rnd_bits_max = MMAP_VA_BITS - PAGE_SHIFT - 3;
 }
 
+static bool __init is_vaddr_valid(unsigned long va)
+{
+	unsigned long up = 0;
+
+	switch (satp_mode) {
+	case SATP_MODE_39:
+		up = 1UL << 38;
+		break;
+	case SATP_MODE_48:
+		up = 1UL << 47;
+		break;
+	case SATP_MODE_57:
+		up = 1UL << 56;
+		break;
+	default:
+		return false;
+	}
+
+	return (va < up) || (va >= (ULONG_MAX - up + 1));
+}
+
 /*
  * There is a simple way to determine if 4-level is supported by the
  * underlying hardware: establish 1:1 mapping in 4-level page table mode
@@ -842,6 +863,9 @@ static __init void set_satp_mode(uintptr_t dtb_pa)
 			   set_satp_mode_pmd + PMD_SIZE,
 			   PMD_SIZE, PAGE_KERNEL_EXEC);
 retry:
+	if (!is_vaddr_valid(set_satp_mode_pmd))
+		goto out;
+
 	create_pgd_mapping(early_pg_dir,
 			   set_satp_mode_pmd,
 			   pgtable_l5_enabled ?
@@ -864,6 +888,7 @@ static __init void set_satp_mode(uintptr_t dtb_pa)
 		disable_pgtable_l4();
 	}
 
+out:
 	memset(early_pg_dir, 0, PAGE_SIZE);
 	memset(early_p4d, 0, PAGE_SIZE);
 	memset(early_pud, 0, PAGE_SIZE);
arch/s390/kernel/debug.c +3 -0
index e4b324dcfe0d..16bb554a07fe 100644
@@ -1256,6 +1256,9 @@ static inline char *debug_get_user_string(const char __user *user_buf,
 {
 	char *buffer;
 
+	if (!user_len)
+		return ERR_PTR(-EINVAL);
+
 	buffer = kmalloc(user_len + 1, GFP_KERNEL);
 	if (!buffer)
 		return ERR_PTR(-ENOMEM);
arch/x86/include/asm/segment.h +4 -4
index 00cefbb59fa9..9d6411c65920 100644
@@ -244,7 +244,7 @@ static inline unsigned long vdso_encode_cpunode(int cpu, unsigned long node)
 
 static inline void vdso_read_cpunode(unsigned *cpu, unsigned *node)
 {
-	unsigned long p;
+	unsigned int p;
 
 	/*
 	 * Load CPU and node number from the GDT.  LSL is faster than RDTSCP
@@ -254,10 +254,10 @@ static inline void vdso_read_cpunode(unsigned *cpu, unsigned *node)
 	 *
 	 * If RDPID is available, use it.
 	 */
-	alternative_io ("lsl %[seg],%k[p]",
-			"rdpid %[p]",
+	alternative_io ("lsl %[seg],%[p]",
+			".byte 0xf3,0x0f,0xc7,0xf8", /* RDPID %eax/rax */
 			X86_FEATURE_RDPID,
-			[p] "=r" (p), [seg] "r" (__CPUNODE_SEG));
+			[p] "=a" (p), [seg] "r" (__CPUNODE_SEG));
 
 	if (cpu)
 		*cpu = (p & VDSO_CPUNODE_MASK);
arch/x86/kernel/ftrace_64.S +4 -1
index 8a3cff618692..143fc62bf6f8 100644
@@ -349,6 +349,9 @@ SYM_CODE_START(return_to_handler)
 	UNWIND_HINT_UNDEFINED
 	ANNOTATE_NOENDBR
 
+	/* Store original rsp for pt_regs.sp value. */
+	movq %rsp, %rdi
+
 	/* Restore return_to_handler value that got eaten by previous ret instruction. */
 	subq $8, %rsp
 	UNWIND_HINT_FUNC
@@ -359,7 +362,7 @@ SYM_CODE_START(return_to_handler)
 	movq %rax, RAX(%rsp)
 	movq %rdx, RDX(%rsp)
 	movq %rbp, RBP(%rsp)
-	movq %rsp, RSP(%rsp)
+	movq %rdi, RSP(%rsp)
 	movq %rsp, %rdi
 
 	call ftrace_return_to_handler
arch/x86/xen/setup.c +1 -1
index 3823e52aef52..6260f65a78c5 100644
@@ -655,7 +655,7 @@ static void __init xen_e820_swap_entry_with_ram(struct e820_entry *swap_entry)
 			/* Fill new entry (keep size and page offset). */
 			entry->type = swap_entry->type;
 			entry->addr = entry_end - swap_size +
-				      swap_addr - swap_entry->addr;
+				      swap_entry->addr - swap_addr;
 			entry->size = swap_entry->size;
 
 			/* Convert old entry to RAM, align to pages. */
block/bio-integrity.c +47 -29

152 lines not on this page · raw message

block/blk-integrity.c +10 -2
index 3fe0681399f6..a1678f0a9f81 100644
@@ -113,10 +113,18 @@ int blk_rq_map_integrity_sg(struct request *rq, struct scatterlist *sglist)
 EXPORT_SYMBOL(blk_rq_map_integrity_sg);
 
 int blk_rq_integrity_map_user(struct request *rq, void __user *ubuf,
-			      ssize_t bytes, u32 seed)
+			      ssize_t bytes)
 {
-	int ret = bio_integrity_map_user(rq->bio, ubuf, bytes, seed);
+	int ret;
+	struct iov_iter iter;
+	unsigned int direction;
 
+	if (op_is_write(req_op(rq)))
+		direction = ITER_DEST;
+	else
+		direction = ITER_SOURCE;
+	iov_iter_ubuf(&iter, direction, ubuf, bytes);
+	ret = bio_integrity_map_user(rq->bio, &iter);
 	if (ret)
 		return ret;
 
block/blk-mq.c +19 -0
index 1891863dcba1..5bfaa8e4b9cf 100644
@@ -3215,6 +3215,25 @@ blk_status_t blk_insert_cloned_request(struct request *rq)
 		return BLK_STS_IOERR;
 	}
 
+	/*
+	 * Integrity segment counting depends on the same queue limits
+	 * (virt_boundary_mask, seg_boundary_mask, max_segment_size) that
+	 * vary across stacked queues, so recompute against the bottom
+	 * queue just like nr_phys_segments above.
+	 */
+	if (blk_integrity_rq(rq) && rq->bio) {
+		unsigned short max_int_segs = queue_max_integrity_segments(q);
+
+		rq->nr_integrity_segments =
+			blk_rq_count_integrity_sg(rq->q, rq->bio);
+		if (rq->nr_integrity_segments > max_int_segs) {
+			printk(KERN_ERR "%s: over max integrity segments limit. (%u > %u)\n",
+				__func__, rq->nr_integrity_segments,
+				max_int_segs);
+			return BLK_STS_IOERR;
+		}
+	}
+
 	if (q->disk && should_fail_request(q->disk->part0, blk_rq_bytes(rq)))
 		return BLK_STS_IOERR;
 
drivers/accel/qaic/qaic_data.c +21 -2
index 265eeb4e156f..aa89571b37f0 100644
@@ -605,8 +605,11 @@ static const struct vm_operations_struct drm_vm_ops = {
 static int qaic_gem_object_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)
 {
 	struct qaic_bo *bo = to_qaic_bo(obj);
+	unsigned long remap_start;
 	unsigned long offset = 0;
+	unsigned long remap_end;
 	struct scatterlist *sg;
+	unsigned long length;
 	int ret = 0;
 
 	if (obj->import_attach)
@@ -614,11 +617,27 @@ static int qaic_gem_object_mmap(struct drm_gem_object *obj, struct vm_area_struc
 
 	for (sg = bo->sgt->sgl; sg; sg = sg_next(sg)) {
 		if (sg_page(sg)) {
+			/* if sg is too large for the VMA, so truncate it to fit */
+			if (check_add_overflow(vma->vm_start, offset, &remap_start))
+				return -EINVAL;
+			if (check_add_overflow(remap_start, sg->length, &remap_end))
+				return -EINVAL;
+
+			if (remap_end > vma->vm_end) {
+				if (check_sub_overflow(vma->vm_end, remap_start, &length))
+					return -EINVAL;
+			} else {
+				length = sg->length;
+			}
+
+			if (length == 0)
+				goto out;
+
 			ret = remap_pfn_range(vma, vma->vm_start + offset, page_to_pfn(sg_page(sg)),
-					      sg->length, vma->vm_page_prot);
+					      length, vma->vm_page_prot);
 			if (ret)
 				goto out;
-			offset += sg->length;
+			offset += length;
 		}
 	}
 
drivers/ata/libata-core.c +6 -3
index 3e02402329a6..434934927928 100644
@@ -5444,6 +5444,7 @@ void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp)
 	link->pmp = pmp;
 	link->active_tag = ATA_TAG_POISON;
 	link->hw_sata_spd_limit = UINT_MAX;
+	INIT_WORK(&link->deferred_qc_work, ata_scsi_deferred_qc_work);
 
 	/* can't use iterator, ap isn't initialized yet */
 	for (i = 0; i < ATA_MAX_DEVICES; i++) {
@@ -5526,7 +5527,6 @@ struct ata_port *ata_port_alloc(struct ata_host *host)
 	mutex_init(&ap->scsi_scan_mutex);
 	INIT_DELAYED_WORK(&ap->hotplug_task, ata_scsi_hotplug);
 	INIT_DELAYED_WORK(&ap->scsi_rescan_task, ata_scsi_dev_rescan);
-	INIT_WORK(&ap->deferred_qc_work, ata_scsi_deferred_qc_work);
 	INIT_LIST_HEAD(&ap->eh_done_q);
 	init_waitqueue_head(&ap->eh_wait_q);
 	init_completion(&ap->park_req_pending);
@@ -6149,12 +6149,15 @@ static void ata_port_detach(struct ata_port *ap)
 
 	/* It better be dead now and not have any remaining deferred qc. */
 	WARN_ON(!(ap->pflags & ATA_PFLAG_UNLOADED));
-	WARN_ON(ap->deferred_qc);
 
-	cancel_work_sync(&ap->deferred_qc_work);
 	cancel_delayed_work_sync(&ap->hotplug_task);
 	cancel_delayed_work_sync(&ap->scsi_rescan_task);
 
+	ata_for_each_link(link, ap, PMP_FIRST) {
+		WARN_ON(link->deferred_qc);
+		cancel_work_sync(&link->deferred_qc_work);
+	}
+
 	/* Delete port multiplier link transport devices */
 	if (ap->pmp_link) {
 		int i;
drivers/ata/libata-eh.c +4 -4
index 59788a34871a..e9d2d84034fd 100644
@@ -645,11 +645,11 @@ void ata_scsi_cmd_error_handler(struct Scsi_Host *host, struct ata_port *ap,
 			if (qc->scsicmd != scmd)
 				continue;
 			if ((qc->flags & ATA_QCFLAG_ACTIVE) ||
-			    qc == ap->deferred_qc)
+			    qc == qc->dev->link->deferred_qc)
 				break;
 		}
 
-		if (i < ATA_MAX_QUEUE && qc == ap->deferred_qc) {
+		if (i < ATA_MAX_QUEUE && qc == qc->dev->link->deferred_qc) {
 			/*
 			 * This is a deferred command that timed out while
 			 * waiting for the command queue to drain. Since the qc
@@ -660,8 +660,8 @@ void ata_scsi_cmd_error_handler(struct Scsi_Host *host, struct ata_port *ap,
 			 * deferred qc work from issuing this qc.
 			 */
 			WARN_ON_ONCE(qc->flags & ATA_QCFLAG_ACTIVE);
-			ap->deferred_qc = NULL;
-			cancel_work(&ap->deferred_qc_work);
+			qc->dev->link->deferred_qc = NULL;
+			cancel_work(&qc->dev->link->deferred_qc_work);
 			set_host_byte(scmd, DID_TIME_OUT);
 			scsi_eh_finish_cmd(scmd, &ap->eh_done_q);
 		} else if (i < ATA_MAX_QUEUE) {
drivers/ata/libata-pmp.c +16 -2
index d5d189328ae6..e954fc07ddbb 100644
@@ -110,13 +110,24 @@ int sata_pmp_qc_defer_cmd_switch(struct ata_queued_cmd *qc)
 {
 	struct ata_link *link = qc->dev->link;
 	struct ata_port *ap = link->ap;
+	int ret;
 
 	if (ap->excl_link == NULL || ap->excl_link == link) {
 		if (ap->nr_active_links == 0 || ata_link_active(link)) {
 			qc->flags |= ATA_QCFLAG_CLEAR_EXCL;
-			return ata_std_qc_defer(qc);
+			ret = ata_std_qc_defer(qc);
+			if (ret == ATA_DEFER_LINK)
+				return ATA_DEFER_LINK_EXCL;
+			return ret;
 		}
 
+		/*
+		 * Note: ap->excl_link contains the link that is next in line,
+		 * i.e. implicit round robin. If there is only one link
+		 * dispatching, ap->excl_link will be left unclaimed, allowing
+		 * other links to set ap->excl_link, ensuring that the currently
+		 * active link cannot queue any more.
+		 */
 		ap->excl_link = link;
 	}
 
@@ -571,8 +582,11 @@ static void sata_pmp_detach(struct ata_device *dev)
 	if (ap->ops->pmp_detach)
 		ap->ops->pmp_detach(ap);
 
-	ata_for_each_link(tlink, ap, EDGE)
+	ata_for_each_link(tlink, ap, EDGE) {
+		WARN_ON(tlink->deferred_qc);
+		cancel_work_sync(&tlink->deferred_qc_work);
 		ata_eh_detach_dev(tlink->device);
+	}
 
 	spin_lock_irqsave(ap->lock, flags);
 	ap->nr_pmp_links = 0;
drivers/ata/libata-scsi.c +57 -43

175 lines not on this page · raw message

drivers/ata/sata_sil24.c +5 -1
index 72c03cbdaff4..ca24c294bf46 100644
@@ -790,6 +790,7 @@ static int sil24_qc_defer(struct ata_queued_cmd *qc)
 	struct ata_link *link = qc->dev->link;
 	struct ata_port *ap = link->ap;
 	u8 prot = qc->tf.protocol;
+	int ret;
 
 	/*
 	 * There is a bug in the chip:
@@ -827,7 +828,10 @@ static int sil24_qc_defer(struct ata_queued_cmd *qc)
 		qc->flags |= ATA_QCFLAG_CLEAR_EXCL;
 	}
 
-	return ata_std_qc_defer(qc);
+	ret = ata_std_qc_defer(qc);
+	if (ret == ATA_DEFER_LINK)
+		return ATA_DEFER_LINK_EXCL;
+	return ret;
 }
 
 static enum ata_completion_errors sil24_qc_prep(struct ata_queued_cmd *qc)
drivers/base/memory.c +6 -2
index 67858eeb92ed..948e77da1dc3 100644
@@ -1232,8 +1232,10 @@ void memblk_nr_poison_inc(unsigned long pfn)
 	const unsigned long block_id = pfn_to_block_id(pfn);
 	struct memory_block *mem = find_memory_block_by_id(block_id);
 
-	if (mem)
+	if (mem) {
 		atomic_long_inc(&mem->nr_hwpoison);
+		put_device(&mem->dev);
+	}
 }
 
 void memblk_nr_poison_sub(unsigned long pfn, long i)
@@ -1241,8 +1243,10 @@ void memblk_nr_poison_sub(unsigned long pfn, long i)
 	const unsigned long block_id = pfn_to_block_id(pfn);
 	struct memory_block *mem = find_memory_block_by_id(block_id);
 
-	if (mem)
+	if (mem) {
 		atomic_long_sub(i, &mem->nr_hwpoison);
+		put_device(&mem->dev);
+	}
 }
 
 static unsigned long memblk_nr_poison(struct memory_block *mem)
drivers/block/rbd.c +8 -12
index 9f9e4e0fc95d..b805614f6ae6 100644
@@ -4565,24 +4565,12 @@ static int rbd_register_watch(struct rbd_device *rbd_dev)
 	return ret;
 }
 
-static void cancel_tasks_sync(struct rbd_device *rbd_dev)
-{
-	dout("%s rbd_dev %p\n", __func__, rbd_dev);
-
-	cancel_work_sync(&rbd_dev->acquired_lock_work);
-	cancel_work_sync(&rbd_dev->released_lock_work);
-	cancel_delayed_work_sync(&rbd_dev->lock_dwork);
-	cancel_work_sync(&rbd_dev->unlock_work);
-}
-
 /*
  * header_rwsem must not be held to avoid a deadlock with
  * rbd_dev_refresh() when flushing notifies.
  */
 static void rbd_unregister_watch(struct rbd_device *rbd_dev)
 {
-	cancel_tasks_sync(rbd_dev);
-
 	mutex_lock(&rbd_dev->watch_mutex);
 	if (rbd_dev->watch_state == RBD_WATCH_STATE_REGISTERED)
 		__rbd_unregister_watch(rbd_dev);
@@ -6549,10 +6537,18 @@ static int rbd_add_parse_args(const char *buf,
 
 static void rbd_dev_image_unlock(struct rbd_device *rbd_dev)
 {
+	dout("%s rbd_dev %p\n", __func__, rbd_dev);
+
+	disable_delayed_work_sync(&rbd_dev->lock_dwork);
+	disable_work_sync(&rbd_dev->unlock_work);
+
 	down_write(&rbd_dev->lock_rwsem);
 	if (__rbd_is_lock_owner(rbd_dev))
 		__rbd_release_lock(rbd_dev);
 	up_write(&rbd_dev->lock_rwsem);
+
+	flush_work(&rbd_dev->acquired_lock_work);
+	flush_work(&rbd_dev->released_lock_work);
 }
 
 /*
drivers/block/ublk_drv.c +3 -0
index c6a59f02944f..6854b847bcce 100644
@@ -540,6 +540,9 @@ static int ublk_validate_params(const struct ublk_device *ub)
 		if (p->max_sectors > (ub->dev_info.max_io_buf_bytes >> 9))
 			return -EINVAL;
 
+		if (p->max_sectors < PAGE_SECTORS)
+			return -EINVAL;
+
 		if (ublk_dev_is_zoned(ub) && !p->chunk_sectors)
 			return -EINVAL;
 	} else
drivers/bluetooth/btmtk.c +2 -0
index 98cb8529d8bc..08a8c3a5d7b7 100644
@@ -496,6 +496,7 @@ static void btmtk_usb_wmt_recv(struct urb *urb)
 		return;
 	} else if (urb->status == -ENOENT) {
 		/* Avoid suspend failed when usb_kill_urb */
+		kfree(urb->setup_packet);
 		return;
 	}
 
@@ -569,6 +570,7 @@ static int btmtk_usb_submit_wmt_recv_urb(struct hci_dev *hdev)
 		if (err != -EPERM && err != -ENODEV)
 			bt_dev_err(hdev, "urb %p submission failed (%d)",
 				   urb, -err);
+		kfree(dr);
 		usb_unanchor_urb(urb);
 	}
 
drivers/bluetooth/hci_ldisc.c +40 -8

102 lines not on this page · raw message

drivers/firmware/arm_ffa/bus.c +5 -2
index dea3eb741d95..50bbc18599f7 100644
@@ -26,6 +26,8 @@ static int ffa_device_match(struct device *dev, const struct device_driver *drv)
 
 	id_table = to_ffa_driver(drv)->id_table;
 	ffa_dev = to_ffa_dev(dev);
+	if (!id_table)
+		return 0;
 
 	while (!uuid_is_null(&id_table->uuid)) {
 		/*
@@ -123,7 +125,7 @@ int ffa_driver_register(struct ffa_driver *driver, struct module *owner,
 {
 	int ret;
 
-	if (!driver->probe)
+	if (!driver->probe || !driver->id_table)
 		return -EINVAL;
 
 	driver->driver.bus = &ffa_bus_type;
@@ -160,11 +162,12 @@ static int __ffa_devices_unregister(struct device *dev, void *data)
 	return 0;
 }
 
-static void ffa_devices_unregister(void)
+void ffa_devices_unregister(void)
 {
 	bus_for_each_dev(&ffa_bus_type, NULL, NULL,
 			 __ffa_devices_unregister);
 }
+EXPORT_SYMBOL_GPL(ffa_devices_unregister);
 
 bool ffa_device_is_valid(struct ffa_device *ffa_dev)
 {
drivers/firmware/arm_ffa/driver.c +163 -75

362 lines not on this page · raw message

drivers/firmware/efi/efi.c +16 -12
index 0d1a65879a35..fcafaed37f93 100644
@@ -387,21 +387,11 @@ static void __init efi_debugfs_init(void)
 static inline void efi_debugfs_init(void) {}
 #endif
 
-/*
- * We register the efi subsystem with the firmware subsystem and the
- * efivars subsystem with the efi subsystem, if the system was booted with
- * EFI.
- */
-static int __init efisubsys_init(void)
+static int __init efipostcore_init(void)
 {
-	int error;
-
 	if (!efi_enabled(EFI_RUNTIME_SERVICES))
 		efi.runtime_supported_mask = 0;
 
-	if (!efi_enabled(EFI_BOOT))
-		return 0;
-
 	if (efi.runtime_supported_mask) {
 		/*
 		 * Since we process only one efi_runtime_service() at a time, an
@@ -413,9 +403,23 @@ static int __init efisubsys_init(void)
 			pr_err("Creating efi_rts_wq failed, EFI runtime services disabled.\n");
 			clear_bit(EFI_RUNTIME_SERVICES, &efi.flags);
 			efi.runtime_supported_mask = 0;
-			return 0;
 		}
 	}
+	return 0;
+}
+postcore_initcall(efipostcore_init);
+
+/*
+ * We register the efi subsystem with the firmware subsystem and the
+ * efivars subsystem with the efi subsystem, if the system was booted with
+ * EFI.
+ */
+static int __init efisubsys_init(void)
+{
+	int error;
+
+	if (!efi_enabled(EFI_BOOT))
+		return 0;
 
 	if (efi_rt_services_supported(EFI_RT_SUPPORTED_TIME_SERVICES))
 		platform_device_register_simple("rtc-efi", 0, NULL, 0);
drivers/gpio/gpiolib-cdev.c +17 -4
index bd2921ef29a1..e77ec4b205f4 100644
@@ -16,7 +16,6 @@
 #include <linux/hte.h>
 #include <linux/interrupt.h>
 #include <linux/irqreturn.h>
-#include <linux/kernel.h>
 #include <linux/kfifo.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
@@ -26,6 +25,7 @@
 #include <linux/rbtree.h>
 #include <linux/seq_file.h>
 #include <linux/spinlock.h>
+#include <linux/string.h>
 #include <linux/timekeeping.h>
 #include <linux/uaccess.h>
 #include <linux/workqueue.h>
@@ -1324,6 +1324,7 @@ static int gpio_v2_line_flags_validate(u64 flags)
 static int gpio_v2_line_config_validate(struct gpio_v2_line_config *lc,
 					unsigned int num_lines)
 {
+	size_t unused_attrs;
 	unsigned int i;
 	u64 flags;
 	int ret;
@@ -1331,9 +1332,21 @@ static int gpio_v2_line_config_validate(struct gpio_v2_line_config *lc,
 	if (lc->num_attrs > GPIO_V2_LINE_NUM_ATTRS_MAX)
 		return -EINVAL;
 
-	if (memchr_inv(lc->padding, 0, sizeof(lc->padding)))
+	unused_attrs = GPIO_V2_LINE_NUM_ATTRS_MAX - lc->num_attrs;
+
+	if (!mem_is_zero(lc->padding, sizeof(lc->padding)))
 		return -EINVAL;
 
+	for (i = 0; i < lc->num_attrs; i++) {
+		if (lc->attrs[i].attr.padding != 0)
+			return -EINVAL;
+	}
+
+	if (unused_attrs) {
+		if (!mem_is_zero(&lc->attrs[lc->num_attrs], unused_attrs * sizeof(*lc->attrs)))
+			return -EINVAL;
+	}
+
 	for (i = 0; i < num_lines; i++) {
 		flags = gpio_v2_line_config_flags(lc, i);
 		ret = gpio_v2_line_flags_validate(flags);
@@ -1746,7 +1759,7 @@ static int linereq_create(struct gpio_device *gdev, void __user *ip)
 	if ((ulr.num_lines == 0) || (ulr.num_lines > GPIO_V2_LINES_MAX))
 		return -EINVAL;
 
-	if (memchr_inv(ulr.padding, 0, sizeof(ulr.padding)))
+	if (!mem_is_zero(ulr.padding, sizeof(ulr.padding)))
 		return -EINVAL;
 
 	lc = &ulr.config;
@@ -2516,7 +2529,7 @@ static int lineinfo_get(struct gpio_chardev_data *cdev, void __user *ip,
 	if (copy_from_user(&lineinfo, ip, sizeof(lineinfo)))
 		return -EFAULT;
 
-	if (memchr_inv(lineinfo.padding, 0, sizeof(lineinfo.padding)))
+	if (!mem_is_zero(lineinfo.padding, sizeof(lineinfo.padding)))
 		return -EINVAL;
 
 	desc = gpio_device_get_desc(cdev->gdev, lineinfo.offset);
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c +6 -1
index 9312b6a9e3be..8a25e8efe778 100644
@@ -556,6 +556,11 @@ static void vpe_ring_emit_fence(struct amdgpu_ring *ring, uint64_t addr,
 		amdgpu_ring_write(ring, 0);
 	}
 
+	/* WA: Force sync after TRAP to avoid VPE1 fail to power off */
+	if (ring->adev->vpe.collaborate_mode) {
+		amdgpu_ring_write(ring, VPE_CMD_HEADER(VPE_CMD_OPCODE_COLLAB_SYNC, 0));
+		amdgpu_ring_write(ring, 0xabcd);
+	}
 }
 
 static void vpe_ring_emit_pipeline_sync(struct amdgpu_ring *ring)
@@ -904,7 +909,7 @@ static const struct amdgpu_ring_funcs vpe_ring_funcs = {
 	.emit_frame_size =
 		5 + /* vpe_ring_init_cond_exec */
 		6 + /* vpe_ring_emit_pipeline_sync */
-		10 + 10 + 10 + /* vpe_ring_emit_fence */
+		12 + 12 + 12 + /* vpe_ring_emit_fence */
 		/* vpe_ring_emit_vm_flush */
 		SOC15_FLUSH_GPU_TLB_NUM_WREG * 3 +
 		SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT * 6,
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +9 -0
index af31fddb47db..23fce62ab2ef 100644
@@ -492,6 +492,10 @@ static enum bp_result get_gpio_i2c_info(
 			- sizeof(struct atom_common_table_header))
 				/ sizeof(struct atom_gpio_pin_assignment);
 
+	if (!bios_get_image(&bp->base, DATA_TABLES(gpio_pin_lut),
+			    le16_to_cpu(header->table_header.structuresize)))
+		return BP_RESULT_BADBIOSTABLE;
+
 	pin = (struct atom_gpio_pin_assignment *) header->gpio_pin;
 
 	for (table_index = 0; table_index < count; table_index++) {
@@ -680,6 +684,11 @@ static enum bp_result bios_parser_get_gpio_pin_info(
 	count = (le16_to_cpu(header->table_header.structuresize)
 			- sizeof(struct atom_common_table_header))
 				/ sizeof(struct atom_gpio_pin_assignment);
+
+	if (!bios_get_image(&bp->base, DATA_TABLES(gpio_pin_lut),
+			    le16_to_cpu(header->table_header.structuresize)))
+		return BP_RESULT_BADBIOSTABLE;
+
 	for (i = 0; i < count; ++i) {
 		if (header->gpio_pin[i].gpio_id != gpio_id)
 			continue;
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +6 -3
index adc710fe4a45..d3f149192451 100644
@@ -37,10 +37,13 @@ uint8_t *bios_get_image(struct dc_bios *bp,
 	uint32_t offset,
 	uint32_t size)
 {
-	if (bp->bios && offset + size < bp->bios_size)
-		return bp->bios + offset;
-	else
+	if (!bp->bios)
 		return NULL;
+
+	if (offset > bp->bios_size || size > bp->bios_size - offset)
+		return NULL;
+
+	return bp->bios + offset;
 }
 
 #include "reg_helper.h"
drivers/gpu/drm/amd/display/dc/core/dc.c +5 -1
index 257d77aa7c97..edb7e957b4dd 100644
@@ -5661,7 +5661,11 @@ bool dc_process_dmub_aux_transfer_async(struct dc *dc,
 	uint8_t action;
 	union dmub_rb_cmd cmd = {0};
 
-	ASSERT(payload->length <= 16);
+	if (link_index >= dc->link_count || !dc->links[link_index])
+		return false;
+
+	if (payload->length > sizeof(cmd.dp_aux_access.aux_control.dpaux.data))
+		return false;
 
 	cmd.dp_aux_access.header.type = DMUB_CMD__DP_AUX_ACCESS;
 	cmd.dp_aux_access.header.payload_bytes = 0;
drivers/gpu/drm/bridge/chipone-icn6211.c +3 -1
index 9eecac457dcf..df96cfc3d8f0 100644
@@ -757,7 +757,9 @@ static int chipone_i2c_probe(struct i2c_client *client)
 	dev_set_drvdata(dev, icn);
 	i2c_set_clientdata(client, icn);
 
-	drm_bridge_add(&icn->bridge);
+	ret = devm_drm_bridge_add(dev, &icn->bridge);
+	if (ret)
+		return ret;
 
 	return chipone_dsi_host_attach(icn);
 }
drivers/gpu/drm/bridge/ite-it66121.c +5 -0
index 0f8d3ab30daa..82c2624ceb9a 100644
@@ -1559,6 +1559,11 @@ static int it66121_probe(struct i2c_client *client)
 		return ret;
 	}
 
+	ctx->gpio_reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
+	if (IS_ERR(ctx->gpio_reset))
+		return dev_err_probe(dev, PTR_ERR(ctx->gpio_reset),
+				     "Failed to get reset GPIO\n");
+
 	it66121_hw_reset(ctx);
 
 	ctx->regmap = devm_regmap_init_i2c(client, &it66121_regmap_config);
drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c +10 -6
index 37f1acf5c0f8..c02c7741f59a 100644
@@ -258,7 +258,6 @@ static void ge_b850v3_lvds_remove(void)
 		goto out;
 
 	drm_bridge_remove(&ge_b850v3_lvds_ptr->bridge);
-
 	ge_b850v3_lvds_ptr = NULL;
 out:
 	mutex_unlock(&ge_b850v3_lvds_dev_mutex);
@@ -268,6 +267,7 @@ static int ge_b850v3_register(void)
 {
 	struct i2c_client *stdp4028_i2c = ge_b850v3_lvds_ptr->stdp4028_i2c;
 	struct device *dev = &stdp4028_i2c->dev;
+	int ret;
 
 	/* drm bridge initialization */
 	ge_b850v3_lvds_ptr->bridge.funcs = &ge_b850v3_lvds_funcs;
@@ -285,11 +285,15 @@ static int ge_b850v3_register(void)
 	if (!stdp4028_i2c->irq)
 		return 0;
 
-	return devm_request_threaded_irq(&stdp4028_i2c->dev,
-			stdp4028_i2c->irq, NULL,
-			ge_b850v3_lvds_irq_handler,
-			IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
-			"ge-b850v3-lvds-dp", ge_b850v3_lvds_ptr);
+	ret = devm_request_threaded_irq(&stdp4028_i2c->dev,
+					stdp4028_i2c->irq, NULL,
+					ge_b850v3_lvds_irq_handler,
+					IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
+					"ge-b850v3-lvds-dp", ge_b850v3_lvds_ptr);
+	if (ret)
+		drm_bridge_remove(&ge_b850v3_lvds_ptr->bridge);
+
+	return ret;
 }
 
 static int stdp4028_ge_b850v3_fw_probe(struct i2c_client *stdp4028_i2c)
drivers/gpu/drm/i915/display/intel_dp.c +1 -1
index 756bb0b1c83b..bb5a2a40b64c 100644
@@ -4583,7 +4583,7 @@ int intel_dp_as_sdp_unpack(struct drm_dp_as_sdp *as_sdp,
 	as_sdp->length = sdp->sdp_header.HB3 & DP_ADAPTIVE_SYNC_SDP_LENGTH;
 	as_sdp->mode = sdp->db[0] & DP_ADAPTIVE_SYNC_SDP_OPERATION_MODE;
 	as_sdp->vtotal = (sdp->db[2] << 8) | sdp->db[1];
-	as_sdp->target_rr = (u64)sdp->db[3] | ((u64)sdp->db[4] & 0x3);
+	as_sdp->target_rr = ((sdp->db[4] & 0x3) << 8) | sdp->db[3];
 	as_sdp->target_rr_divider = sdp->db[4] & 0x20 ? true : false;
 
 	return 0;
drivers/gpu/drm/imagination/pvr_power.c +8 -3
index bf4cf8426f91..077d2651798c 100644
@@ -84,7 +84,7 @@ pvr_power_request_pwr_off(struct pvr_device *pvr_dev)
 }
 
 static int
-pvr_power_fw_disable(struct pvr_device *pvr_dev, bool hard_reset)
+pvr_power_fw_disable(struct pvr_device *pvr_dev, bool hard_reset, bool rpm_suspend)
 {
 	if (!hard_reset) {
 		int err;
@@ -100,6 +100,11 @@ pvr_power_fw_disable(struct pvr_device *pvr_dev, bool hard_reset)
 			return err;
 	}
 
+	if (rpm_suspend) {
+		/* Wait for late processing of GPU or firmware IRQs in other cores */
+		synchronize_irq(pvr_dev->irq);
+	}
+
 	return pvr_fw_stop(pvr_dev);
 }
 
@@ -243,7 +248,7 @@ pvr_power_device_suspend(struct device *dev)
 		return -EIO;
 
 	if (pvr_dev->fw_dev.booted) {
-		err = pvr_power_fw_disable(pvr_dev, false);
+		err = pvr_power_fw_disable(pvr_dev, false, true);
 		if (err)
 			goto err_drm_dev_exit;
 	}
@@ -425,7 +430,7 @@ pvr_power_reset(struct pvr_device *pvr_dev, bool hard_reset)
 			queues_disabled = true;
 		}
 
-		err = pvr_power_fw_disable(pvr_dev, hard_reset);
+		err = pvr_power_fw_disable(pvr_dev, hard_reset, false);
 		if (!err) {
 			if (hard_reset) {
 				pvr_dev->fw_dev.booted = false;
drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c +18 -6
index 4d55e3cf570f..a966a03167cc 100644
@@ -9,7 +9,7 @@
 
 #include "msm_disp_snapshot.h"
 
-static void msm_disp_state_dump_regs(u32 **reg, u32 aligned_len, void __iomem *base_addr)
+static void msm_disp_state_dump_regs(u32 **reg, u32 len, void __iomem *base_addr)
 {
 	u32 len_padded;
 	u32 num_rows;
@@ -19,11 +19,11 @@ static void msm_disp_state_dump_regs(u32 **reg, u32 aligned_len, void __iomem *b
 	void __iomem *end_addr;
 	int i;
 
-	len_padded = aligned_len * REG_DUMP_ALIGN;
-	num_rows = aligned_len / REG_DUMP_ALIGN;
+	len_padded = round_up(len, REG_DUMP_ALIGN);
+	num_rows = DIV_ROUND_UP(len, REG_DUMP_ALIGN);
 
 	addr = base_addr;
-	end_addr = base_addr + aligned_len;
+	end_addr = base_addr + len;
 
 	if (!(*reg))
 		*reg = kvzalloc(len_padded, GFP_KERNEL);
@@ -51,8 +51,8 @@ static void msm_disp_state_dump_regs(u32 **reg, u32 aligned_len, void __iomem *b
 static void msm_disp_state_print_regs(const u32 *dump_addr, u32 len,
 		void __iomem *base_addr, struct drm_printer *p)
 {
+	void __iomem *addr, *end_addr;
 	int i;
-	void __iomem *addr;
 	u32 num_rows;
 
 	if (!dump_addr) {
@@ -61,6 +61,7 @@ static void msm_disp_state_print_regs(const u32 *dump_addr, u32 len,
 	}
 
 	addr = base_addr;
+	end_addr = base_addr + len;
 	num_rows = len / REG_DUMP_ALIGN;
 
 	for (i = 0; i < num_rows; i++) {
@@ -70,6 +71,17 @@ static void msm_disp_state_print_regs(const u32 *dump_addr, u32 len,
 				dump_addr[i * 4 + 2], dump_addr[i * 4 + 3]);
 		addr += REG_DUMP_ALIGN;
 	}
+
+	if (addr != end_addr) {
+		drm_printf(p, "0x%lx : %08x",
+			   (unsigned long)(addr - base_addr),
+			   dump_addr[i * 4]);
+		if (addr + 0x4 < end_addr)
+			drm_printf(p, " %08x", dump_addr[i * 4 + 1]);
+		if (addr + 0x8 < end_addr)
+			drm_printf(p, " %08x", dump_addr[i * 4 + 2]);
+		drm_printf(p, "\n");
+	}
 }
 
 void msm_disp_state_print(struct msm_disp_state *state, struct drm_printer *p)
@@ -189,7 +201,7 @@ void msm_disp_snapshot_add_block(struct msm_disp_state *disp_state, u32 len,
 	va_end(va);
 
 	INIT_LIST_HEAD(&new_blk->node);
-	new_blk->size = ALIGN(len, REG_DUMP_ALIGN);
+	new_blk->size = len;
 	new_blk->base_addr = base_addr;
 
 	msm_disp_state_dump_regs(&new_blk->state, new_blk->size, base_addr);
drivers/gpu/drm/msm/dsi/dsi_host.c +1 -0
index 6f538c578f74..c9b580771609 100644
@@ -1942,6 +1942,7 @@ int msm_dsi_host_init(struct msm_dsi *msm_dsi)
 
 	/* fixup base address by io offset */
 	msm_host->ctrl_base += cfg->io_offset;
+	msm_host->ctrl_size -= cfg->io_offset;
 
 	ret = devm_regulator_bulk_get_const(&pdev->dev, cfg->num_regulators,
 					    cfg->regulator_data,
drivers/gpu/drm/msm/msm_iommu.c +3 -2
index 2a94e82316f9..8231488577f4 100644
@@ -362,14 +362,15 @@ static int msm_iommu_map(struct msm_mmu *mmu, uint64_t iova,
 		struct sg_table *sgt, size_t len, int prot)
 {
 	struct msm_iommu *iommu = to_msm_iommu(mmu);
-	size_t ret;
+	ssize_t ret;
 
 	/* The arm-smmu driver expects the addresses to be sign extended */
 	if (iova & BIT_ULL(48))
 		iova |= GENMASK_ULL(63, 49);
 
 	ret = iommu_map_sgtable(iommu->domain, iova, sgt, prot);
-	WARN_ON(!ret);
+	if (ret < 0)
+		return ret;
 
 	return (ret == len) ? 0 : -EINVAL;
 }
drivers/gpu/drm/virtio/virtgpu_drv.h +1 -0
index 5dc8eeaf7123..ca0f7dcc99a2 100644
@@ -318,6 +318,7 @@ virtio_gpu_array_from_handles(struct drm_file *drm_file, u32 *handles, u32 nents
 void virtio_gpu_array_add_obj(struct virtio_gpu_object_array *objs,
 			      struct drm_gem_object *obj);
 int virtio_gpu_array_lock_resv(struct virtio_gpu_object_array *objs);
+int virtio_gpu_lock_one_resv_uninterruptible(struct virtio_gpu_object_array *objs);
 void virtio_gpu_array_unlock_resv(struct virtio_gpu_object_array *objs);
 void virtio_gpu_array_add_fence(struct virtio_gpu_object_array *objs,
 				struct dma_fence *fence);
drivers/gpu/drm/virtio/virtgpu_gem.c +17 -0
index 7db48d17ee3a..2e75cdeb49b3 100644
@@ -236,6 +236,23 @@ int virtio_gpu_array_lock_resv(struct virtio_gpu_object_array *objs)
 	return ret;
 }
 
+int virtio_gpu_lock_one_resv_uninterruptible(struct virtio_gpu_object_array *objs)
+{
+	int ret;
+
+	if (objs->nents != 1)
+		return -EINVAL;
+
+	dma_resv_lock(objs->objs[0]->resv, NULL);
+
+	ret = dma_resv_reserve_fences(objs->objs[0]->resv, 1);
+	if (ret) {
+		virtio_gpu_array_unlock_resv(objs);
+		return ret;
+	}
+	return 0;
+}
+
 void virtio_gpu_array_unlock_resv(struct virtio_gpu_object_array *objs)
 {
 	if (objs->nents == 1) {
drivers/gpu/drm/virtio/virtgpu_plane.c +8 -2
index 7acd38b962c6..7a091beddaef 100644
@@ -168,7 +168,10 @@ static void virtio_gpu_resource_flush(struct drm_plane *plane,
 		if (!objs)
 			return;
 		virtio_gpu_array_add_obj(objs, vgfb->base.obj[0]);
-		virtio_gpu_array_lock_resv(objs);
+		if (virtio_gpu_lock_one_resv_uninterruptible(objs)) {
+			virtio_gpu_array_put_free(objs);
+			return;
+		}
 		virtio_gpu_cmd_resource_flush(vgdev, bo->hw_res_handle, x, y,
 					      width, height, objs,
 					      vgplane_st->fence);
@@ -339,7 +342,10 @@ static void virtio_gpu_cursor_plane_update(struct drm_plane *plane,
 		if (!objs)
 			return;
 		virtio_gpu_array_add_obj(objs, vgfb->base.obj[0]);
-		virtio_gpu_array_lock_resv(objs);
+		if (virtio_gpu_lock_one_resv_uninterruptible(objs)) {
+			virtio_gpu_array_put_free(objs);
+			return;
+		}
 		virtio_gpu_cmd_transfer_to_host_2d
 			(vgdev, 0,
 			 plane->state->crtc_w,
drivers/gpu/drm/xe/display/xe_hdcp_gsc.c +10 -2
index f4332f06b6c8..695d625c83ee 100644
@@ -39,10 +39,18 @@ bool intel_hdcp_gsc_check_status(struct xe_device *xe)
 {
 	struct xe_tile *tile = xe_device_get_root_tile(xe);
 	struct xe_gt *gt = tile->media_gt;
-	struct xe_gsc *gsc = &gt->uc.gsc;
+	struct xe_gsc *gsc;
 	bool ret = true;
 
-	if (!gsc || !xe_uc_fw_is_enabled(&gsc->fw)) {
+	if (!gt) {
+		drm_dbg_kms(&xe->drm,
+			    "not checking GSC status for HDCP2.x: media GT not present or disabled\n");
+		return false;
+	}
+
+	gsc = &gt->uc.gsc;
+
+	if (!xe_uc_fw_is_enabled(&gsc->fw)) {
 		drm_dbg_kms(&xe->drm,
 			    "GSC Components not ready for HDCP2.x\n");
 		return false;
drivers/gpu/drm/xe/xe_gsc.c +1 -4
index efc480d34c9d..6786773f4560 100644
@@ -485,8 +485,7 @@ int xe_gsc_init_post_hwconfig(struct xe_gsc *gsc)
 				 EXEC_QUEUE_FLAG_PERMANENT, 0);
 	if (IS_ERR(q)) {
 		xe_gt_err(gt, "Failed to create queue for GSC submission\n");
-		err = PTR_ERR(q);
-		goto out_bo;
+		return PTR_ERR(q);
 	}
 
 	wq = alloc_ordered_workqueue("gsc-ordered-wq", 0);
@@ -509,8 +508,6 @@ int xe_gsc_init_post_hwconfig(struct xe_gsc *gsc)
 
 out_q:
 	xe_exec_queue_put(q);
-out_bo:
-	xe_bo_unpin_map_no_vm(bo);
 	return err;
 }
 
drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.c +5 -1
index 7d532bded02a..a85ba4435378 100644
@@ -114,8 +114,10 @@ int xe_gt_sriov_pf_monitor_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32
  * VFs with no events are not printed.
  *
  * This function can only be called on PF.
+ *
+ * Return: always 0
  */
-void xe_gt_sriov_pf_monitor_print_events(struct xe_gt *gt, struct drm_printer *p)
+int xe_gt_sriov_pf_monitor_print_events(struct xe_gt *gt, struct drm_printer *p)
 {
 	unsigned int n, total_vfs = xe_gt_sriov_pf_get_totalvfs(gt);
 	const struct xe_gt_sriov_monitor *data;
@@ -144,4 +146,6 @@ void xe_gt_sriov_pf_monitor_print_events(struct xe_gt *gt, struct drm_printer *p
 #undef __format
 #undef __value
 	}
+
+	return 0;
 }
drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.h +1 -1
index 7ca9351a271b..0b8f088d3a16 100644
@@ -13,7 +13,7 @@ struct drm_printer;
 struct xe_gt;
 
 void xe_gt_sriov_pf_monitor_flr(struct xe_gt *gt, u32 vfid);
-void xe_gt_sriov_pf_monitor_print_events(struct xe_gt *gt, struct drm_printer *p);
+int xe_gt_sriov_pf_monitor_print_events(struct xe_gt *gt, struct drm_printer *p);
 
 #ifdef CONFIG_PCI_IOV
 int xe_gt_sriov_pf_monitor_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len);
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +18 -6
index 29badbd829ab..3604d324550e 100644
@@ -959,13 +959,15 @@ void xe_gt_sriov_vf_write32(struct xe_gt *gt, struct xe_reg reg, u32 val)
 }
 
 /**
- * xe_gt_sriov_vf_print_config - Print VF self config.
+ * xe_gt_sriov_vf_print_config() - Print VF self config.
  * @gt: the &xe_gt
  * @p: the &drm_printer
  *
  * This function is for VF use only.
+ *
+ * Return: always 0.
  */
-void xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p)
+int xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p)
 {
 	struct xe_gt_sriov_vf_selfconfig *config = &gt->sriov.vf.self_config;
 	struct xe_device *xe = gt_to_xe(gt);
@@ -987,16 +989,20 @@ void xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p)
 
 	drm_printf(p, "GuC contexts:\t%u\n", config->num_ctxs);
 	drm_printf(p, "GuC doorbells:\t%u\n", config->num_dbs);
+
+	return 0;
 }
 
 /**
- * xe_gt_sriov_vf_print_runtime - Print VF's runtime regs received from PF.
+ * xe_gt_sriov_vf_print_runtime() - Print VF's runtime regs received from PF.
  * @gt: the &xe_gt
  * @p: the &drm_printer
  *
  * This function is for VF use only.
+ *
+ * Return: always 0.
  */
-void xe_gt_sriov_vf_print_runtime(struct xe_gt *gt, struct drm_printer *p)
+int xe_gt_sriov_vf_print_runtime(struct xe_gt *gt, struct drm_printer *p)
 {
 	struct vf_runtime_reg *vf_regs = gt->sriov.vf.runtime.regs;
 	unsigned int size = gt->sriov.vf.runtime.num_regs;
@@ -1005,16 +1011,20 @@ void xe_gt_sriov_vf_print_runtime(struct xe_gt *gt, struct drm_printer *p)
 
 	for (; size--; vf_regs++)
 		drm_printf(p, "%#x = %#x\n", vf_regs->offset, vf_regs->value);
+
+	return 0;
 }
 
 /**
- * xe_gt_sriov_vf_print_version - Print VF ABI versions.
+ * xe_gt_sriov_vf_print_version() - Print VF ABI versions.
  * @gt: the &xe_gt
  * @p: the &drm_printer
  *
  * This function is for VF use only.
+ *
+ * Return: always 0.
  */
-void xe_gt_sriov_vf_print_version(struct xe_gt *gt, struct drm_printer *p)
+int xe_gt_sriov_vf_print_version(struct xe_gt *gt, struct drm_printer *p)
 {
 	struct xe_gt_sriov_vf_guc_version *guc_version = &gt->sriov.vf.guc_version;
 	struct xe_gt_sriov_vf_relay_version *pf_version = &gt->sriov.vf.pf_version;
@@ -1042,4 +1052,6 @@ void xe_gt_sriov_vf_print_version(struct xe_gt *gt, struct drm_printer *p)
 		   GUC_RELAY_VERSION_LATEST_MAJOR, GUC_RELAY_VERSION_LATEST_MINOR);
 	drm_printf(p, "\thandshake:\t%u.%u\n",
 		   pf_version->major, pf_version->minor);
+
+	return 0;
 }
drivers/gpu/drm/xe/xe_gt_sriov_vf.h +3 -3
index 576ff5e795a8..cf745ea4ee99 100644
@@ -25,8 +25,8 @@ u64 xe_gt_sriov_vf_lmem(struct xe_gt *gt);
 u32 xe_gt_sriov_vf_read32(struct xe_gt *gt, struct xe_reg reg);
 void xe_gt_sriov_vf_write32(struct xe_gt *gt, struct xe_reg reg, u32 val);
 
-void xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p);
-void xe_gt_sriov_vf_print_runtime(struct xe_gt *gt, struct drm_printer *p);
-void xe_gt_sriov_vf_print_version(struct xe_gt *gt, struct drm_printer *p);
+int xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p);
+int xe_gt_sriov_vf_print_runtime(struct xe_gt *gt, struct drm_printer *p);
+int xe_gt_sriov_vf_print_version(struct xe_gt *gt, struct drm_printer *p);
 
 #endif
drivers/gpu/drm/xe/xe_oa.c +4 -2
index fe997494a6f9..5e38afc46e20 100644
@@ -2019,8 +2019,10 @@ int xe_oa_stream_open_ioctl(struct drm_device *dev, u64 data, struct drm_file *f
 		if (XE_IOCTL_DBG(oa->xe, !param.exec_q))
 			return -ENOENT;
 
-		if (XE_IOCTL_DBG(oa->xe, param.exec_q->width > 1))
-			return -EOPNOTSUPP;
+		if (XE_IOCTL_DBG(oa->xe, param.exec_q->width > 1)) {
+			ret = -EOPNOTSUPP;
+			goto err_exec_q;
+		}
 	}
 
 	/*
drivers/hid/hid-quirks.c +1 -1
index d9e33dde8989..9d396d2e534d 100644
@@ -234,7 +234,7 @@ static const struct hid_device_id hid_quirks[] = {
  * used as a driver. See hid_scan_report().
  */
 static const struct hid_device_id hid_have_special_driver[] = {
-#if IS_ENABLED(CONFIG_APPLEDISPLAY)
+#if IS_ENABLED(CONFIG_USB_APPLEDISPLAY)
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, 0x9218) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, 0x9219) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, 0x921c) },
drivers/hid/hid-uclogic-core.c +3 -1
index 321c43fb06ae..f8708a1ec7cc 100644
@@ -142,7 +142,9 @@ static int uclogic_input_configured(struct hid_device *hdev,
 			suffix = "System Control";
 			break;
 		}
-	} else {
+	}
+
+	if (suffix) {
 		hi->input->name = devm_kasprintf(&hdev->dev, GFP_KERNEL,
 						 "%s %s", hdev->name, suffix);
 		if (!hi->input->name)
drivers/hwmon/pmbus/adm1266.c +21 -11
index 2c4d94cc8729..432a7088e22b 100644
@@ -46,6 +46,7 @@
 
 #define ADM1266_BLACKBOX_OFFSET		0
 #define ADM1266_BLACKBOX_SIZE		64
+#define ADM1266_BLACKBOX_MAX_RECORDS	32
 
 #define ADM1266_PMBUS_BLOCK_MAX		255
 
@@ -60,7 +61,7 @@ struct adm1266_data {
 	u8 *dev_mem;
 	struct mutex buf_mutex;
 	u8 write_buf[ADM1266_PMBUS_BLOCK_MAX + 1] ____cacheline_aligned;
-	u8 read_buf[ADM1266_PMBUS_BLOCK_MAX + 1] ____cacheline_aligned;
+	u8 read_buf[ADM1266_PMBUS_BLOCK_MAX + 2] ____cacheline_aligned;
 };
 
 static const struct nvmem_cell_info adm1266_nvmem_cells[] = {
@@ -175,6 +176,8 @@ static int adm1266_gpio_get(struct gpio_chip *chip, unsigned int offset)
 	ret = i2c_smbus_read_block_data(data->client, pmbus_cmd, read_buf);
 	if (ret < 0)
 		return ret;
+	if (ret < 2)
+		return -EIO;
 
 	pins_status = read_buf[0] + (read_buf[1] << 8);
 	if (offset < ADM1266_GPIO_NR)
@@ -195,6 +198,8 @@ static int adm1266_gpio_get_multiple(struct gpio_chip *chip, unsigned long *mask
 	ret = i2c_smbus_read_block_data(data->client, ADM1266_GPIO_STATUS, read_buf);
 	if (ret < 0)
 		return ret;
+	if (ret < 2)
+		return -EIO;
 
 	status = read_buf[0] + (read_buf[1] << 8);
 
@@ -207,11 +212,12 @@ static int adm1266_gpio_get_multiple(struct gpio_chip *chip, unsigned long *mask
 	ret = i2c_smbus_read_block_data(data->client, ADM1266_PDIO_STATUS, read_buf);
 	if (ret < 0)
 		return ret;
+	if (ret < 2)
+		return -EIO;
 
 	status = read_buf[0] + (read_buf[1] << 8);
 
-	*bits = 0;
-	for_each_set_bit_from(gpio_nr, mask, ADM1266_GPIO_NR + ADM1266_PDIO_STATUS) {
+	for_each_set_bit_from(gpio_nr, mask, ADM1266_GPIO_NR + ADM1266_PDIO_NR) {
 		if (test_bit(gpio_nr - ADM1266_GPIO_NR, &status))
 			set_bit(gpio_nr, bits);
 	}
@@ -347,9 +353,10 @@ static void adm1266_init_debugfs(struct adm1266_data *data)
 
 static int adm1266_nvmem_read_blackbox(struct adm1266_data *data, u8 *read_buff)
 {
+	u8 record[ADM1266_PMBUS_BLOCK_MAX];
 	int record_count;
 	char index;
-	u8 buf[5];
+	u8 buf[I2C_SMBUS_BLOCK_MAX];
 	int ret;
 
 	ret = i2c_smbus_read_block_data(data->client, ADM1266_BLACKBOX_INFO, buf);
@@ -360,15 +367,18 @@ static int adm1266_nvmem_read_blackbox(struct adm1266_data *data, u8 *read_buff)
 		return -EIO;
 
 	record_count = buf[3];
+	if (record_count > ADM1266_BLACKBOX_MAX_RECORDS)
+		return -EIO;
 
 	for (index = 0; index < record_count; index++) {
-		ret = adm1266_pmbus_block_xfer(data, ADM1266_READ_BLACKBOX, 1, &index, read_buff);
+		ret = adm1266_pmbus_block_xfer(data, ADM1266_READ_BLACKBOX, 1, &index, record);
 		if (ret < 0)
 			return ret;
 
 		if (ret != ADM1266_BLACKBOX_SIZE)
 			return -EIO;
 
+		memcpy(read_buff, record, ADM1266_BLACKBOX_SIZE);
 		read_buff += ADM1266_BLACKBOX_SIZE;
 	}
 
@@ -432,7 +442,7 @@ static int adm1266_set_rtc(struct adm1266_data *data)
 	char write_buf[6];
 	int i;
 
-	kt = ktime_get_seconds();
+	kt = ktime_get_real_seconds();
 
 	memset(write_buf, 0, sizeof(write_buf));
 
@@ -462,20 +472,20 @@ static int adm1266_probe(struct i2c_client *client)
 	crc8_populate_msb(pmbus_crc_table, 0x7);
 	mutex_init(&data->buf_mutex);
 
-	ret = adm1266_config_gpio(data);
+	ret = adm1266_set_rtc(data);
 	if (ret < 0)
 		return ret;
 
-	ret = adm1266_set_rtc(data);
-	if (ret < 0)
+	ret = pmbus_do_probe(client, &data->info);
+	if (ret)
 		return ret;
 
 	ret = adm1266_config_nvmem(data);
 	if (ret < 0)
 		return ret;
 
-	ret = pmbus_do_probe(client, &data->info);
-	if (ret)
+	ret = adm1266_config_gpio(data);
+	if (ret < 0)
 		return ret;
 
 	adm1266_init_debugfs(data);
drivers/hwmon/pmbus/pmbus_core.c +91 -26

203 lines not on this page · raw message

drivers/infiniband/sw/siw/siw_qp_rx.c +15 -0
index 06738f582c7a..01e44943161c 100644
@@ -1081,6 +1081,21 @@ static int siw_get_hdr(struct siw_rx_stream *srx)
 			return -EAGAIN;
 	}
 
+	/*
+	 * Peer-controlled mpa_len must not underflow srx->fpdu_part_rem
+	 * in siw_tcp_rx_data(); a negative value flows as a signed copy
+	 * length into siw_check_mem() and skb_copy_bits().
+	 */
+	if (unlikely(be16_to_cpu(c_hdr->mpa_len) + MPA_HDR_SIZE <
+		     iwarp_pktinfo[opcode].hdr_len)) {
+		pr_warn_ratelimited("siw: short mpa_len %u for opcode %u (hdr_len %u)\n",
+				    be16_to_cpu(c_hdr->mpa_len), opcode,
+				    iwarp_pktinfo[opcode].hdr_len);
+		siw_init_terminate(rx_qp(srx), TERM_ERROR_LAYER_LLP,
+				   LLP_ETYPE_MPA, LLP_ECODE_FPDU_START, 0);
+		return -EINVAL;
+	}
+
 	/*
 	 * DDP/RDMAP header receive completed. Check if the current
 	 * DDP segment starts a new RDMAP message or continues a previously
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c +1 -1
index 3f305e694fe8..1b1c6ea4ee5a 100644
@@ -295,8 +295,8 @@ int rtrs_srv_create_path_files(struct rtrs_srv_path *srv_path)
 put_kobj:
 	kobject_del(&srv_path->kobj);
 destroy_root:
-	kobject_put(&srv_path->kobj);
 	rtrs_srv_destroy_once_sysfs_root_folders(srv_path);
+	kobject_put(&srv_path->kobj);
 
 	return err;
 }
drivers/iommu/intel/pasid.c +21 -1
index 3d1d43675bf2..74be6b547fc0 100644
@@ -245,11 +245,31 @@ void intel_pasid_tear_down_entry(struct intel_iommu *iommu, struct device *dev,
 
 	spin_lock(&iommu->lock);
 	pte = intel_pasid_get_entry(dev, pasid);
-	if (WARN_ON(!pte) || !pasid_pte_is_present(pte)) {
+	if (WARN_ON(!pte)) {
 		spin_unlock(&iommu->lock);
 		return;
 	}
 
+	if (!pasid_pte_is_present(pte)) {
+		if (!pasid_pte_is_fault_disabled(pte)) {
+			WARN_ON(READ_ONCE(pte->val[0]) != 0);
+			spin_unlock(&iommu->lock);
+			return;
+		}
+
+		/*
+		 * When a PASID is used for SVA by a device, it's possible
+		 * that the pasid entry is non-present with the Fault
+		 * Processing Disabled bit set. Clear the pasid entry and
+		 * drain the PRQ for the PASID before return.
+		 */
+		pasid_clear_entry(pte);
+		spin_unlock(&iommu->lock);
+		intel_iommu_drain_pasid_prq(dev, pasid);
+
+		return;
+	}
+
 	did = pasid_get_domain_id(pte);
 	pgtt = pasid_pte_get_pgtt(pte);
 	pasid_clear_present(pte);
drivers/iommu/intel/pasid.h +6 -0
index 55cad7bfa294..8ffb01163f0e 100644
@@ -80,6 +80,12 @@ static inline bool pasid_pte_is_present(struct pasid_entry *pte)
 	return READ_ONCE(pte->val[0]) & PASID_PTE_PRESENT;
 }
 
+/* Get FPD(Fault Processing Disable) bit of a PASID table entry */
+static inline bool pasid_pte_is_fault_disabled(struct pasid_entry *pte)
+{
+	return READ_ONCE(pte->val[0]) & PASID_PTE_FPD;
+}
+
 /* Get PGTT field of a PASID table entry */
 static inline u16 pasid_pte_get_pgtt(struct pasid_entry *pte)
 {
drivers/irqchip/irq-ath79-cpu.c +0 -7
index 923e4bba3776..9b7273a7f8ce 100644
@@ -85,10 +85,3 @@ static int __init ar79_cpu_intc_of_init(
 }
 IRQCHIP_DECLARE(ar79_cpu_intc, "qca,ar7100-cpu-intc",
 		ar79_cpu_intc_of_init);
-
-void __init ath79_cpu_irq_init(unsigned irq_wb_chan2, unsigned irq_wb_chan3)
-{
-	irq_wb_chan[2] = irq_wb_chan2;
-	irq_wb_chan[3] = irq_wb_chan3;
-	mips_cpu_irq_init();
-}
drivers/net/dsa/mt7530.c +29 -18

90 lines not on this page · raw message

drivers/net/ethernet/amd/pds_core/debugfs.c +6 -1
index 04c5e3abd8d7..810a0cd9bcac 100644
@@ -64,9 +64,14 @@ DEFINE_SHOW_ATTRIBUTE(identity);
 
 void pdsc_debugfs_add_ident(struct pdsc *pdsc)
 {
+	struct dentry *dentry;
+
 	/* This file will already exist in the reset flow */
-	if (debugfs_lookup("identity", pdsc->dentry))
+	dentry = debugfs_lookup("identity", pdsc->dentry);
+	if (!IS_ERR_OR_NULL(dentry)) {
+		dput(dentry);
 		return;
+	}
 
 	debugfs_create_file("identity", 0400, pdsc->dentry,
 			    pdsc, &identity_fops);
drivers/net/ethernet/amd/pds_core/dev.c +9 -2
index 495ef4ef8c10..1d1e559bd99d 100644
@@ -162,12 +162,19 @@ static int pdsc_devcmd_wait(struct pdsc *pdsc, u8 opcode, int max_seconds)
 		dev_dbg(dev, "DEVCMD %d %s after %ld secs\n",
 			opcode, pdsc_devcmd_str(opcode), duration / HZ);
 
-	if ((!done || timeout) && running) {
+	if (!running) {
+		dev_err(dev, "DEVCMD %d %s fw not running\n",
+			opcode, pdsc_devcmd_str(opcode));
+		pdsc_devcmd_clean(pdsc);
+		return -ENXIO;
+	}
+
+	if (!done || timeout) {
 		dev_err(dev, "DEVCMD %d %s timeout, done %d timeout %d max_seconds=%d\n",
 			opcode, pdsc_devcmd_str(opcode), done, timeout,
 			max_seconds);
-		err = -ETIMEDOUT;
 		pdsc_devcmd_clean(pdsc);
+		return -ETIMEDOUT;
 	}
 
 	status = pdsc_devcmd_status(pdsc);
drivers/net/ethernet/amd/pds_core/devlink.c +4 -2
index d8dc39da4161..621791a3c543 100644
@@ -121,12 +121,14 @@ int pdsc_dl_info_get(struct devlink *dl, struct devlink_info_req *req,
 
 	listlen = min(fw_list.num_fw_slots, ARRAY_SIZE(fw_list.fw_names));
 	for (i = 0; i < listlen; i++) {
+		char *fw_ver = fw_list.fw_names[i].fw_version;
+
 		if (i < ARRAY_SIZE(fw_slotnames))
 			strscpy(buf, fw_slotnames[i], sizeof(buf));
 		else
 			snprintf(buf, sizeof(buf), "fw.slot_%d", i);
-		err = devlink_info_version_stored_put(req, buf,
-						      fw_list.fw_names[i].fw_version);
+		fw_ver[sizeof(fw_list.fw_names[i].fw_version) - 1] = '\0';
+		err = devlink_info_version_stored_put(req, buf, fw_ver);
 		if (err)
 			return err;
 	}
drivers/net/ethernet/atheros/ag71xx.c +3 -0
index bccc7e7b2a84..f5570061abe7 100644
@@ -1861,6 +1861,9 @@ static int ag71xx_probe(struct platform_device *pdev)
 	ag71xx_int_disable(ag, AG71XX_INT_POLL);
 
 	ndev->irq = platform_get_irq(pdev, 0);
+	if (ndev->irq < 0)
+		return ndev->irq;
+
 	err = devm_request_irq(&pdev->dev, ndev->irq, ag71xx_interrupt,
 			       0x0, dev_name(&pdev->dev), ndev);
 	if (err) {
drivers/net/ethernet/broadcom/genet/bcmgenet.c +4 -5
index 1263d0005873..1db5181179b8 100644
@@ -1325,13 +1325,12 @@ void bcmgenet_eee_enable_set(struct net_device *dev, bool enable)
 		reg &= ~(TBUF_EEE_EN | TBUF_PM_EN);
 	bcmgenet_writel(reg, priv->base + off);
 
-	/* Do the same for thing for RBUF */
+	/* RBUF EEE/PM can break the RX path on GENET. Keep it disabled. */
 	reg = bcmgenet_rbuf_readl(priv, RBUF_ENERGY_CTRL);
-	if (enable)
-		reg |= RBUF_EEE_EN | RBUF_PM_EN;
-	else
+	if (reg & (RBUF_EEE_EN | RBUF_PM_EN)) {
 		reg &= ~(RBUF_EEE_EN | RBUF_PM_EN);
-	bcmgenet_rbuf_writel(priv, reg, RBUF_ENERGY_CTRL);
+		bcmgenet_rbuf_writel(priv, reg, RBUF_ENERGY_CTRL);
+	}
 
 	if (!enable && priv->clk_eee_enabled) {
 		clk_disable_unprepare(priv->clk_eee);
drivers/net/ethernet/cirrus/cs89x0.c +0 -2
index 0a21a10a791c..6b01c44a5f72 100644
@@ -1271,7 +1271,6 @@ static const struct net_device_ops net_ops = {
 
 static void __init reset_chip(struct net_device *dev)
 {
-#if !defined(CONFIG_MACH_MX31ADS)
 	struct net_local *lp = netdev_priv(dev);
 	unsigned long reset_start_time;
 
@@ -1298,7 +1297,6 @@ static void __init reset_chip(struct net_device *dev)
 	while ((readreg(dev, PP_SelfST) & INIT_DONE) == 0 &&
 	       time_before(jiffies, reset_start_time + 2))
 		;
-#endif /* !CONFIG_MACH_MX31ADS */
 }
 
 /* This is the real probe routine.
drivers/net/ethernet/cortina/gemini.c +19 -2
index 92833eefc04b..2ce8191ad500 100644
@@ -121,6 +121,9 @@ struct gemini_ethernet_port {
 	struct napi_struct	napi;
 	struct hrtimer		rx_coalesce_timer;
 	unsigned int		rx_coalesce_nsecs;
+	struct sk_buff		*rx_skb;
+	unsigned int		rx_frag_nr;
+
 	unsigned int		freeq_refill;
 	struct gmac_txq		txq[TX_QUEUE_NUM];
 	unsigned int		txq_order;
@@ -1442,10 +1445,11 @@ static unsigned int gmac_rx(struct net_device *netdev, unsigned int budget)
 	unsigned short m = (1 << port->rxq_order) - 1;
 	struct gemini_ethernet *geth = port->geth;
 	void __iomem *ptr_reg = port->rxq_rwptr;
+	unsigned int frag_nr = port->rx_frag_nr;
+	struct sk_buff *skb = port->rx_skb;
 	unsigned int frame_len, frag_len;
 	struct gmac_rxdesc *rx = NULL;
 	struct gmac_queue_page *gpage;
-	static struct sk_buff *skb;
 	union gmac_rxdesc_0 word0;
 	union gmac_rxdesc_1 word1;
 	union gmac_rxdesc_3 word3;
@@ -1455,7 +1459,6 @@ static unsigned int gmac_rx(struct net_device *netdev, unsigned int budget)
 	unsigned short r, w;
 	union dma_rwptr rw;
 	dma_addr_t mapping;
-	int frag_nr = 0;
 
 	spin_lock_irqsave(&geth->irq_lock, flags);
 	rw.bits32 = readl(ptr_reg);
@@ -1491,6 +1494,12 @@ static unsigned int gmac_rx(struct net_device *netdev, unsigned int budget)
 		gpage = gmac_get_queue_page(geth, port, mapping + PAGE_SIZE);
 		if (!gpage) {
 			dev_err(geth->dev, "could not find mapping\n");
+			if (skb) {
+				napi_free_frags(&port->napi);
+				port->stats.rx_dropped++;
+				skb = NULL;
+				frag_nr = 0;
+			}
 			continue;
 		}
 		page = gpage->page;
@@ -1499,6 +1508,8 @@ static unsigned int gmac_rx(struct net_device *netdev, unsigned int budget)
 			if (skb) {
 				napi_free_frags(&port->napi);
 				port->stats.rx_dropped++;
+				skb = NULL;
+				frag_nr = 0;
 			}
 
 			skb = gmac_skb_if_good_frame(port, word0, frame_len);
@@ -1533,6 +1544,7 @@ static unsigned int gmac_rx(struct net_device *netdev, unsigned int budget)
 		if (word3.bits32 & EOF_BIT) {
 			napi_gro_frags(&port->napi);
 			skb = NULL;
+			frag_nr = 0;
 			--budget;
 		}
 		continue;
@@ -1541,6 +1553,7 @@ static unsigned int gmac_rx(struct net_device *netdev, unsigned int budget)
 		if (skb) {
 			napi_free_frags(&port->napi);
 			skb = NULL;
+			frag_nr = 0;
 		}
 
 		if (mapping)
@@ -1549,6 +1562,8 @@ static unsigned int gmac_rx(struct net_device *netdev, unsigned int budget)
 		port->stats.rx_dropped++;
 	}
 
+	port->rx_skb = skb;
+	port->rx_frag_nr = frag_nr;
 	writew(r, ptr_reg);
 	return budget;
 }
@@ -1877,6 +1892,8 @@ static int gmac_stop(struct net_device *netdev)
 	gmac_disable_tx_rx(netdev);
 	gmac_stop_dma(port);
 	napi_disable(&port->napi);
+	port->rx_skb = NULL;
+	port->rx_frag_nr = 0;
 
 	gmac_enable_irq(netdev, 0);
 	gmac_cleanup_rxq(netdev);
drivers/net/ethernet/intel/ice/ice_dcb_lib.c +2 -2
index a7c510832824..d185b1aba7a4 100644
@@ -537,14 +537,14 @@ void ice_dcb_rebuild(struct ice_pf *pf)
 	struct ice_dcbx_cfg *err_cfg;
 	int ret;
 
+	mutex_lock(&pf->tc_mutex);
+
 	ret = ice_query_port_ets(pf->hw.port_info, &buf, sizeof(buf), NULL);
 	if (ret) {
 		dev_err(dev, "Query Port ETS failed\n");
 		goto dcb_error;
 	}
 
-	mutex_lock(&pf->tc_mutex);
-
 	if (!pf->hw.port_info->qos_cfg.is_sw_lldp)
 		ice_cfg_etsrec_defaults(pf->hw.port_info);
 
drivers/net/ethernet/intel/ice/ice_main.c +8 -2
index 0fe496b1a226..664bedfbd805 100644
@@ -3808,7 +3808,7 @@ int ice_vlan_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid)
 		ret = ice_fltr_set_vsi_promisc(&vsi->back->hw, vsi->idx,
 					       ICE_MCAST_VLAN_PROMISC_BITS,
 					       vid);
-		if (ret)
+		if (ret && ret != -EEXIST)
 			goto finish;
 	}
 
@@ -4197,6 +4197,12 @@ int ice_vsi_recfg_qs(struct ice_vsi *vsi, int new_rx, int new_tx, bool locked)
 	}
 	ice_pf_dcb_recfg(pf, locked);
 	ice_vsi_open(vsi);
+	/* Rx rings are reallocated during VSI rebuild and lose their ptp_rx
+	 * flag. Restore timestamp mode so newly allocated rings are set up
+	 * for hardware Rx timestamping.
+	 */
+	if (test_bit(ICE_FLAG_PTP_SUPPORTED, pf->flags))
+		ice_ptp_restore_timestamp_mode(pf);
 	goto done;
 
 rebuild_err:
@@ -8102,7 +8108,7 @@ int ice_set_rss_hfunc(struct ice_vsi *vsi, u8 hfunc)
 	ctx->info.q_opt_rss |=
 		FIELD_PREP(ICE_AQ_VSI_Q_OPT_RSS_HASH_M, hfunc);
 	ctx->info.q_opt_tc = vsi->info.q_opt_tc;
-	ctx->info.q_opt_flags = vsi->info.q_opt_rss;
+	ctx->info.q_opt_flags = vsi->info.q_opt_flags;
 
 	err = ice_update_vsi(hw, vsi->idx, ctx, NULL);
 	if (err) {
drivers/net/ethernet/intel/ice/ice_ptp_hw.c +13 -2
index 478ee1c54014..9bf34fc28533 100644
@@ -2597,16 +2597,23 @@ int ice_start_phy_timer_eth56g(struct ice_hw *hw, u8 port)
 	hi = rd32(hw, GLTSYN_INCVAL_H(tmr_idx));
 	incval = (u64)hi << 32 | lo;
 
+	if (!ice_ptp_lock(hw)) {
+		dev_err(ice_hw_to_dev(hw), "Failed to acquire PTP semaphore\n");
+		return -EBUSY;
+	}
+
 	err = ice_write_40b_ptp_reg_eth56g(hw, port, PHY_REG_TIMETUS_L, incval);
 	if (err)
-		return err;
+		goto err_ptp_unlock;
 
 	err = ice_ptp_one_port_cmd(hw, port, ICE_PTP_INIT_INCVAL);
 	if (err)
-		return err;
+		goto err_ptp_unlock;
 
 	ice_ptp_exec_tmr_cmd(hw);
 
+	ice_ptp_unlock(hw);
+
 	err = ice_sync_phy_timer_eth56g(hw, port);
 	if (err)
 		return err;
@@ -2622,6 +2629,10 @@ int ice_start_phy_timer_eth56g(struct ice_hw *hw, u8 port)
 	ice_debug(hw, ICE_DBG_PTP, "Enabled clock on PHY port %u\n", port);
 
 	return 0;
+
+err_ptp_unlock:
+	ice_ptp_unlock(hw);
+	return err;
 }
 
 /**
drivers/net/ethernet/intel/ice/ice_txrx.c +4 -3
index 48434a79869c..431a6ed498a4 100644
@@ -2346,8 +2346,8 @@ ice_xmit_frame_ring(struct sk_buff *skb, struct ice_tx_ring *tx_ring)
 
 	ice_trace(xmit_frame_ring, tx_ring, skb);
 
-	/* record the location of the first descriptor for this packet */
-	first = &tx_ring->tx_buf[tx_ring->next_to_use];
+	if (unlikely(ipv6_hopopt_jumbo_remove(skb)))
+		goto out_drop;
 
 	count = ice_xmit_desc_count(skb);
 	if (ice_chk_linearize(skb, count)) {
@@ -2374,6 +2374,8 @@ ice_xmit_frame_ring(struct sk_buff *skb, struct ice_tx_ring *tx_ring)
 
 	offload.tx_ring = tx_ring;
 
+	/* record the location of the first descriptor for this packet */
+	first = &tx_ring->tx_buf[tx_ring->next_to_use];
 	first->skb = skb;
 	first->type = ICE_TX_BUF_SKB;
 	first->bytecount = max_t(unsigned int, skb->len, ETH_ZLEN);
@@ -2437,7 +2439,6 @@ ice_xmit_frame_ring(struct sk_buff *skb, struct ice_tx_ring *tx_ring)
 out_drop:
 	ice_trace(xmit_frame_ring_drop, tx_ring, skb);
 	dev_kfree_skb_any(skb);
-	first->type = ICE_TX_BUF_EMPTY;
 	return NETDEV_TX_OK;
 }
 
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +1 -0
index a2a7cb6d8ea1..73225f59cd6c 100644
@@ -1224,6 +1224,7 @@ static int ixgbevf_clean_rx_irq(struct ixgbevf_q_vector *q_vector,
 		    ether_addr_equal(rx_ring->netdev->dev_addr,
 				     eth_hdr(skb)->h_source)) {
 			dev_kfree_skb_irq(skb);
+			skb = NULL;
 			continue;
 		}
 
drivers/net/ethernet/marvell/octeontx2/af/cgx.c +6 -1
index 394061a3d38c..d415d5dbc110 100644
@@ -1286,13 +1286,18 @@ static inline void link_status_user_format(u64 lstat,
 					   struct cgx_link_user_info *linfo,
 					   struct cgx *cgx, u8 lmac_id)
 {
+	unsigned int speed;
+
 	linfo->link_up = FIELD_GET(RESP_LINKSTAT_UP, lstat);
 	linfo->full_duplex = FIELD_GET(RESP_LINKSTAT_FDUPLEX, lstat);
-	linfo->speed = cgx_speed_mbps[FIELD_GET(RESP_LINKSTAT_SPEED, lstat)];
 	linfo->an = FIELD_GET(RESP_LINKSTAT_AN, lstat);
 	linfo->fec = FIELD_GET(RESP_LINKSTAT_FEC, lstat);
 	linfo->lmac_type_id = FIELD_GET(RESP_LINKSTAT_LMAC_TYPE, lstat);
 
+	speed = FIELD_GET(RESP_LINKSTAT_SPEED, lstat);
+	linfo->speed = speed < ARRAY_SIZE(cgx_speed_mbps) ?
+		       cgx_speed_mbps[speed] : 0;
+
 	if (linfo->lmac_type_id >= LMAC_MODE_MAX) {
 		dev_err(&cgx->pdev->dev, "Unknown lmac_type_id %d reported by firmware on cgx port%d:%d",
 			linfo->lmac_type_id, cgx->cgx_id, lmac_id);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +1 -1
index a78923d7811d..e3038a912a58 100644
@@ -853,7 +853,7 @@ void rvu_npc_install_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
 	u16 vf_func;
 
 	/* Only CGX PF/VF can add allmulticast entry */
-	if (is_lbk_vf(rvu, pcifunc) && is_sdp_vf(rvu, pcifunc))
+	if (is_lbk_vf(rvu, pcifunc) || is_sdp_vf(rvu, pcifunc))
 		return;
 
 	blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c +5 -3
index 486f05112f5a..c1b6893389fd 100644
@@ -348,9 +348,8 @@ static void mlx5e_ipsec_init_macs(struct mlx5e_ipsec_sa_entry *sa_entry,
 		rt_dst_entry = &rt->dst;
 		break;
 	case AF_INET6:
-		rt_dst_entry = ipv6_stub->ipv6_dst_lookup_flow(
-			dev_net(netdev), NULL, &fl6, NULL);
-		if (IS_ERR(rt_dst_entry))
+		if (!IS_ENABLED(CONFIG_IPV6) ||
+		    ip6_dst_lookup(dev_net(netdev), NULL, &rt_dst_entry, &fl6))
 			goto neigh;
 		break;
 	default:
@@ -365,6 +364,9 @@ static void mlx5e_ipsec_init_macs(struct mlx5e_ipsec_sa_entry *sa_entry,
 
 	neigh_ha_snapshot(addr, n, netdev);
 	ether_addr_copy(dst, addr);
+	if (attrs->dir == XFRM_DEV_OFFLOAD_OUT &&
+	    is_zero_ether_addr(addr))
+		neigh_event_send(n, NULL);
 	dst_release(rt_dst_entry);
 	neigh_release(n);
 	return;
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c +2 -1
index 4bba2884c1c0..b4fec9d6bff4 100644
@@ -142,7 +142,8 @@ static int mlx5_esw_ipsec_modify_flow_dests(struct mlx5_eswitch *esw,
 
 	attr = flow->attr;
 	esw_attr = attr->esw_attr;
-	if (esw_attr->out_count - esw_attr->split_count > 1)
+	if (!esw_attr->out_count ||
+	    esw_attr->out_count - esw_attr->split_count > 1)
 		return 0;
 
 	err = mlx5_eswitch_restore_ipsec_rule(esw, flow->rule[0], esw_attr,
drivers/net/ethernet/microchip/lan966x/lan966x_main.c +5 -3
index b5dc65a4d640..9acba25a3058 100644
@@ -749,11 +749,10 @@ static void lan966x_cleanup_ports(struct lan966x *lan966x)
 
 	for (p = 0; p < lan966x->num_phys_ports; p++) {
 		port = lan966x->ports[p];
-		if (!port)
+		if (!port || !port->dev)
 			continue;
 
-		if (port->dev)
-			unregister_netdev(port->dev);
+		unregister_netdev(port->dev);
 
 		lan966x_xdp_port_deinit(port);
 		if (lan966x->fdma && lan966x->fdma_ndev == port->dev)
@@ -874,6 +873,9 @@ static int lan966x_probe_port(struct lan966x *lan966x, u32 p,
 	err = register_netdev(dev);
 	if (err) {
 		dev_err(lan966x->dev, "register_netdev failed\n");
+		phylink_destroy(phylink);
+		port->phylink = NULL;
+		port->dev = NULL;
 		return err;
 	}
 
drivers/net/ethernet/microsoft/mana/hw_channel.c +19 -10
index e07d0a952978..fef0edc90eac 100644
@@ -76,21 +76,19 @@ static int mana_hwc_post_rx_wqe(const struct hwc_wq *hwc_rxq,
 }
 
 static void mana_hwc_handle_resp(struct hw_channel_context *hwc, u32 resp_len,
-				 struct hwc_work_request *rx_req)
+				 struct hwc_work_request *rx_req, u16 msg_id)
 {
 	const struct gdma_resp_hdr *resp_msg = rx_req->buf_va;
 	struct hwc_caller_ctx *ctx;
 	int err;
 
-	if (!test_bit(resp_msg->response.hwc_msg_id,
-		      hwc->inflight_msg_res.map)) {
-		dev_err(hwc->dev, "hwc_rx: invalid msg_id = %u\n",
-			resp_msg->response.hwc_msg_id);
+	if (!test_bit(msg_id, hwc->inflight_msg_res.map)) {
+		dev_err(hwc->dev, "hwc_rx: invalid msg_id = %u\n", msg_id);
 		mana_hwc_post_rx_wqe(hwc->rxq, rx_req);
 		return;
 	}
 
-	ctx = hwc->caller_ctx + resp_msg->response.hwc_msg_id;
+	ctx = hwc->caller_ctx + msg_id;
 	err = mana_hwc_verify_resp_msg(ctx, resp_msg, resp_len);
 	if (err)
 		goto out;
@@ -219,6 +217,7 @@ static void mana_hwc_rx_event_handler(void *ctx, u32 gdma_rxq_id,
 	struct gdma_sge *sge;
 	u64 rq_base_addr;
 	u64 rx_req_idx;
+	u16 msg_id;
 	u8 *wqe;
 
 	if (WARN_ON_ONCE(hwc_rxq->gdma_wq->id != gdma_rxq_id))
@@ -234,16 +233,26 @@ static void mana_hwc_rx_event_handler(void *ctx, u32 gdma_rxq_id,
 	rq_base_addr = hwc_rxq->msg_buf->mem_info.dma_handle;
 	rx_req_idx = (sge->address - rq_base_addr) / hwc->max_req_msg_size;
 
+	if (rx_req_idx >= hwc_rxq->msg_buf->num_reqs) {
+		dev_err(hwc->dev, "HWC RX: wrong rx_req_idx=%llu, num_reqs=%u\n",
+			rx_req_idx, hwc_rxq->msg_buf->num_reqs);
+		return;
+	}
+
 	rx_req = &hwc_rxq->msg_buf->reqs[rx_req_idx];
 	resp = (struct gdma_resp_hdr *)rx_req->buf_va;
 
-	if (resp->response.hwc_msg_id >= hwc->num_inflight_msg) {
-		dev_err(hwc->dev, "HWC RX: wrong msg_id=%u\n",
-			resp->response.hwc_msg_id);
+	/* Read msg_id once from DMA buffer to prevent TOCTOU:
+	 * DMA memory is shared/unencrypted in CVMs - host can
+	 * modify it between reads.
+	 */
+	msg_id = READ_ONCE(resp->response.hwc_msg_id);
+	if (msg_id >= hwc->num_inflight_msg) {
+		dev_err(hwc->dev, "HWC RX: wrong msg_id=%u\n", msg_id);
 		return;
 	}
 
-	mana_hwc_handle_resp(hwc, rx_oob->tx_oob_data_size, rx_req);
+	mana_hwc_handle_resp(hwc, rx_oob->tx_oob_data_size, rx_req, msg_id);
 
 	/* Can no longer use 'resp', because the buffer is posted to the HW
 	 * in mana_hwc_handle_resp() above.
drivers/net/ethernet/qlogic/qed/qed_cxt.c +2 -0
index 33f4f58ee51c..1fb09372c25a 100644
@@ -1038,11 +1038,13 @@ static void qed_cid_map_free(struct qed_hwfn *p_hwfn)
 
 	for (type = 0; type < MAX_CONN_TYPES; type++) {
 		bitmap_free(p_mngr->acquired[type].cid_map);
+		p_mngr->acquired[type].cid_map = NULL;
 		p_mngr->acquired[type].max_count = 0;
 		p_mngr->acquired[type].start_cid = 0;
 
 		for (vf = 0; vf < MAX_NUM_VFS; vf++) {
 			bitmap_free(p_mngr->acquired_vf[type][vf].cid_map);
+			p_mngr->acquired_vf[type][vf].cid_map = NULL;
 			p_mngr->acquired_vf[type][vf].max_count = 0;
 			p_mngr->acquired_vf[type][vf].start_cid = 0;
 		}
drivers/net/ifb.c +5 -6
index 2c1b5def4a0b..a2a7d9d2e87e 100644
@@ -211,12 +211,12 @@ static void ifb_get_strings(struct net_device *dev, u32 stringset, u8 *buf)
 
 	switch (stringset) {
 	case ETH_SS_STATS:
-		for (i = 0; i < dev->real_num_rx_queues; i++)
+		for (i = 0; i < dev->num_tx_queues; i++)
 			for (j = 0; j < IFB_Q_STATS_LEN; j++)
 				ethtool_sprintf(&p, "rx_queue_%u_%.18s",
 						i, ifb_q_stats_desc[j].desc);
 
-		for (i = 0; i < dev->real_num_tx_queues; i++)
+		for (i = 0; i < dev->num_tx_queues; i++)
 			for (j = 0; j < IFB_Q_STATS_LEN; j++)
 				ethtool_sprintf(&p, "tx_queue_%u_%.18s",
 						i, ifb_q_stats_desc[j].desc);
@@ -229,8 +229,7 @@ static int ifb_get_sset_count(struct net_device *dev, int sset)
 {
 	switch (sset) {
 	case ETH_SS_STATS:
-		return IFB_Q_STATS_LEN * (dev->real_num_rx_queues +
-					  dev->real_num_tx_queues);
+		return IFB_Q_STATS_LEN * dev->num_tx_queues * 2;
 	default:
 		return -EOPNOTSUPP;
 	}
@@ -262,12 +261,12 @@ static void ifb_get_ethtool_stats(struct net_device *dev,
 	struct ifb_q_private *txp;
 	int i;
 
-	for (i = 0; i < dev->real_num_rx_queues; i++) {
+	for (i = 0; i < dev->num_tx_queues; i++) {
 		txp = dp->tx_private + i;
 		ifb_fill_stats_data(&data, &txp->rx_stats);
 	}
 
-	for (i = 0; i < dev->real_num_tx_queues; i++) {
+	for (i = 0; i < dev->num_tx_queues; i++) {
 		txp = dp->tx_private + i;
 		ifb_fill_stats_data(&data, &txp->tx_stats);
 	}
drivers/net/phy/dp83tc811.c +1 -0
index 7ea32fb77190..5425a95352f9 100644
@@ -393,6 +393,7 @@ static struct phy_driver dp83811_driver[] = {
 		.config_init = dp83811_config_init,
 		.config_aneg = dp83811_config_aneg,
 		.soft_reset = dp83811_phy_reset,
+		.get_features = genphy_c45_pma_read_ext_abilities,
 		.get_wol = dp83811_get_wol,
 		.set_wol = dp83811_set_wol,
 		.config_intr = dp83811_config_intr,
drivers/net/pse-pd/pse_core.c +1 -1
index bb509d973e91..845bbc89c869 100644
@@ -184,7 +184,7 @@ static int of_load_pse_pis(struct pse_controller_dev *pcdev)
 			ret = of_load_pse_pi_pairsets(node, &pi, ret);
 			if (ret)
 				goto out;
-		} else if (ret != ENOENT) {
+		} else if (ret != -ENOENT) {
 			dev_err(pcdev->dev,
 				"error: wrong number of pairsets. Should be 1 or 2, got %d (%pOF)\n",
 				ret, node);
drivers/net/wireless/ath/ath10k/wmi.c +7 -8
index 408f062a4306..c9f41309d18d 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2005-2011 Atheros Communications Inc.
  * Copyright (c) 2011-2017 Qualcomm Atheros, Inc.
  * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
  */
 
@@ -1947,15 +1946,15 @@ int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, u32 cmd_id)
 			ret = -ESHUTDOWN;
 			ath10k_dbg(ar, ATH10K_DBG_WMI,
 				   "drop wmi command %d, hardware is wedged\n", cmd_id);
-		}
-		/* try to send pending beacons first. they take priority */
-		ath10k_wmi_tx_beacons_nowait(ar);
+		} else {
+			/* try to send pending beacons first. they take priority */
+			ath10k_wmi_tx_beacons_nowait(ar);
 
-		ret = ath10k_wmi_cmd_send_nowait(ar, skb, cmd_id);
-
-		if (ret && test_bit(ATH10K_FLAG_CRASH_FLUSH, &ar->dev_flags))
-			ret = -ESHUTDOWN;
+			ret = ath10k_wmi_cmd_send_nowait(ar, skb, cmd_id);
 
+			if (ret && test_bit(ATH10K_FLAG_CRASH_FLUSH, &ar->dev_flags))
+				ret = -ESHUTDOWN;
+		}
 		(ret != -EAGAIN);
 	}), 3 * HZ);
[… more lines in the raw message]

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

drivers/net/wireless/ath/ath11k/dp_rx.c +1 -2
index e3eabd9e223a..78b0fa8d4f33 100644

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

drivers/net/wireless/ath/ath11k/hal.c +11 -3
index e47774b6d992..41038c8ecd9d 100644

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

drivers/net/wireless/ath/ath11k/hal_rx.c +1 -4
index 753bd93f0212..51e0840bc0d1 100644

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

drivers/net/wireless/ath/ath11k/testmode.c +1 -0
index 302d66092b97..7aa62a7d9a27 100644

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

drivers/net/wireless/ath/ath11k/wmi.c +16 -3
index 3b41bc5b125f..5f15f7acd513 100644

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

drivers/net/wwan/iosm/iosm_ipc_imem.c +2 -0
index 829515a601b3..107c944ca9e6 100644

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

drivers/nvme/host/ioctl.c +8 -9
index 64ae8af01d9a..930521c633d2 100644

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

drivers/phy/marvell/phy-mvebu-a3700-utmi.c +2 -3
index 04f4fb4bed70..f882bc57649c 100644

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

drivers/phy/tegra/xusb-tegra186.c +26 -7
index bec9616c4a2e..4452e73fb82a 100644

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

drivers/phy/tegra/xusb.h +1 -0
index d2b5f9565132..810b410672f3 100644

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

drivers/pinctrl/qcom/pinctrl-sm8150.c +4 -4
index f8f5bee74f1d..565aab84835c 100644

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

drivers/pinctrl/renesas/pinctrl-rzg2l.c +1 -1
index bcb0c39369e0..17e27879fd62 100644

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

drivers/platform/surface/surface_aggregator_registry.c +0 -2
index 25c8aa2131d6..9826feb9c282 100644

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

drivers/platform/x86/adv_swbutton.c +5 -1
index 6b23ba78e028..f7bc252650d5 100644

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

drivers/platform/x86/hp/hp_accel.c +3 -0
index 52535576772a..aeedc77bed7f 100644

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

drivers/platform/x86/intel/hid.c +5 -1
index 0e81904548f3..7d0c5b986b25 100644

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

drivers/platform/x86/intel/vbtn.c +5 -1
index a353e830b65f..d64aac2895f3 100644

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

drivers/scsi/isci/host.c +3 -0
index 35589b6af90d..544a4e85c6e4 100644

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

drivers/scsi/sd.c +1 -2
index f37f031971df..ab5cf8460aca 100644

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

drivers/spi/spi-dw-dma.c +1 -1
index f4c209e5f52b..4104e1bc2d5b 100644

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

drivers/spi/spi-ep93xx.c +2 -0
index dc6bdc74643d..0b42eeccd42e 100644

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

drivers/spi/spi-mtk-snfi.c +1 -1
index 8234064921f3..20260f577f05 100644

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

drivers/spi/spi-qup.c +3 -0
index 50279ecbc9cf..ef019283b830 100644

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

drivers/spi/spi-sprd.c +2 -1
index 7cf03244bb5c..ded31dc543fe 100644

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

drivers/spi/spi-ti-qspi.c +1 -0
index 4252e8647bd7..5a99adad4085 100644

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

fs/btrfs/fs.h +1 -0
index 93ff1db75af4..c49ffaeee769 100644

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

fs/btrfs/qgroup.c +27 -4
index 71ccba22752c..5b158eb25d18 100644

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

fs/netfs/buffered_read.c +7 -7
index 2dd2260352db..3b418fed4602 100644

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

fs/netfs/buffered_write.c +130 -83

213 lines not on this page · raw message

fs/netfs/iterator.c +17 -9
index 429e4396e1b0..b375567e0520 100644

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

fs/netfs/misc.c +6 -2
index 78fe5796b2b2..9672904232ad 100644

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

fs/netfs/read_retry.c +9 -2
index 48fb0303f7ee..42abf574e678 100644

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

fs/netfs/write_issue.c +25 -14
index b7830a15ae40..2789ac4c8027 100644

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

fs/nfsd/nfs4state.c +7 -0
index 1a15e458b178..2d9174729782 100644

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

fs/nsfs.c +1 -1
index 0f4b0fed9265..eb232f5292f8 100644

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

fs/ntfs3/file.c +4 -8
index 3f144a049d71..b7d87fd57063 100644

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

fs/smb/client/cifs_spnego.c +16 -0
index bc1c1e9b288a..507985939950 100644

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

fs/smb/client/cifsfs.c +2 -0
index ce3af62ddaf4..2f666c92b027 100644

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

fs/smb/client/netlink.c +5 -1
index 147d9409252c..0dd10913c37a 100644

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

fs/smb/client/smb2ops.c +2 -2
index 3ea35e9ea253..c08667baf6be 100644

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

fs/smb/client/smb2transport.c +2 -0
index 6d7e1b4d2d55..31d22af0c626 100644

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

fs/smb/server/mgmt/user_session.c +3 -4
index 151248e02e9e..ecd511351f19 100644

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

fs/smb/server/oplock.c +12 -1
index 590ddd31a68d..a84c01bceb8b 100644

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

fs/smb/server/oplock.h +1 -0
index 921e3199e4df..d91a8266e065 100644

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

fs/smb/server/smb2pdu.c +2 -1
index 700d9da3c65a..a691801e1d7b 100644

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

fs/smb/server/smbacl.c +59 -19

78 lines not on this page · raw message

fs/smb/server/vfs_cache.c +167 -40

207 lines not on this page · raw message

fs/smb/server/vfs_cache.h +11 -1
index 5bbb179736c2..1b2a947490ca 100644

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

fs/sysfs/group.c +1 -1
index d22ad67a0f32..f2b7283e6fa0 100644

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

fs/zonefs/super.c +5 -1
index faf1eb87895d..72408d8f9345 100644

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

include/asm-generic/kprobes.h +1 -1
index 060eab094e5a..5290a2b2e15a 100644

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

include/linux/arm_ffa.h +3 -0
index 74169dd0f659..53f2837ce7df 100644

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

include/linux/bio-integrity.h +2 -3
index dd831c269e99..53f6dbd2816e 100644

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

include/linux/blk-integrity.h +2 -3
index 676f8f860c47..c7eae0bfb013 100644

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

include/linux/fwnode.h +1 -0
index 1455e24ac29e..2ff409d740a1 100644

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

include/linux/libata.h +4 -3
index 14c835f5d661..a78227fb66a8 100644

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

include/linux/sched.h +0 -1
index 2e4c437c7c90..f9ffe42cae17 100644

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

include/net/af_unix.h +1 -0
index 63129c79b8cb..8cacc5290d8b 100644

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

include/net/bluetooth/bluetooth.h +1 -0
index 435250c72d56..32701b5fedaf 100644

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

include/net/netfilter/nf_queue.h +1 -0
index d17035d14d96..3978c3174cdb 100644

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

include/trace/events/btrfs.h +1 -3
index b964cba4169c..6382a570c76c 100644

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

include/trace/events/netfs.h +8 -0
index 69975c9c6823..1d9b068bb175 100644

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

io_uring/net.c +25 -1
index 0b730c3a7de4..94b6a15245af 100644

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

io_uring/waitid.c +1 -0
index ecaa358d0ad8..ef2283728c2b 100644

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

kernel/cgroup/cpuset.c +4 -4
index 77b07548c302..3f0804794b98 100644

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

kernel/irq_work.c +7 -0
index 2f4fb336dda1..188721af8eb3 100644

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

kernel/sched/core.c +2 -0
index 9b238c9c71c6..1b1ddd24cb22 100644

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

kernel/sched/deadline.c +6 -13
index 1ef891f8e3f2..cb8eff0ebd22 100644

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

kernel/sched/ext.c +3 -2
index f24579675cf3..01dc2a613868 100644

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

kernel/sched/fair.c +1 -15
index a0a47e50b71c..f36512892adf 100644

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

kernel/sched/sched.h +31 -6
index a09e2d25edd5..7956abeb9154 100644

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

kernel/trace/ring_buffer.c +3 -5
index ccfaae8795f0..cf2044b4a2ea 100644

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

kernel/trace/trace_events_hist.c +2 -4
index 2d085115afde..2a1e3537332d 100644

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

kernel/trace/tracing_map.c +13 -4
index 1921ade45be3..0e5b3ea49936 100644

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

lib/kunit/Kconfig +3 -2
index 34d7242d526d..e22cbee60ab2 100644

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

lib/test_kprobes.c +18 -11
index b7582010125c..06e729e4de05 100644

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

mm/damon/sysfs-schemes.c +1 -0
index c2890f32368f..b550d1a17507 100644

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

mm/memory_hotplug.c +2 -0
index 16d788547b9b..16d58151a531 100644

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

net/batman-adv/bridge_loop_avoidance.c +35 -19

54 lines not on this page · raw message

net/batman-adv/distributed-arp-table.c +3 -0
index 801eff8a40e5..4d53e7c3ea54 100644

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

net/batman-adv/fragmentation.c +52 -6

58 lines not on this page · raw message

net/batman-adv/gateway_client.c +4 -0
index 0ddd8b4b3f4c..0c1485f6131d 100644

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

net/batman-adv/originator.c +2 -2
index 8f6dd2c6ee41..72d1d9639040 100644

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

net/batman-adv/tp_meter.c +45 -19

64 lines not on this page · raw message

net/batman-adv/types.h +10 -7
index c801d1db7a12..fe774ec8b80b 100644

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

net/bluetooth/af_bluetooth.c +75 -22

97 lines not on this page · raw message

net/bluetooth/bnep/core.c +1 -1
index d44987d4515c..b3cef7a4db54 100644

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

net/bluetooth/iso.c +13 -1
index a48a2868a728..d00cd1bf45a8 100644

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

net/bluetooth/l2cap_core.c +1 -1
index b01107370cbc..b24e4d8130dd 100644

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

net/bluetooth/l2cap_sock.c +44 -7

51 lines not on this page · raw message

net/bluetooth/mgmt.c +6 -0
index 0b2d130e492c..a2bdf25a77ae 100644

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

net/bluetooth/rfcomm/sock.c +8 -1
index 913402806fa0..3052436e9c6d 100644

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

net/bluetooth/sco.c +8 -1
index d915db52db22..6383db546570 100644

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

net/bridge/br_mrp_netlink.c +2 -2
index ce6f63c77cc0..86f0e75d6e34 100644

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

net/bridge/br_multicast.c +24 -3
index 9bd2914006df..3194344529a5 100644

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

net/core/gro.c +3 -0
index f5c80c2f69df..e4cebf162efb 100644

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

net/core/skmsg.c +7 -2
index e1e0283e53c1..fbaee3d09990 100644

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

net/ethtool/bitset.c +4 -4
index f0883357d12e..4691d6d0f2b7 100644

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

net/ipv4/inet_connection_sock.c +1 -1
index bf4e5f49030b..dd39cabb3900 100644

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

net/ipv4/netfilter/arptable_filter.c +1 -1
index 78cd5ee24448..359d00d74095 100644

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

net/ipv4/netfilter/iptable_filter.c +1 -1
index 3ab908b74795..595bfb492b1c 100644

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

net/ipv4/netfilter/iptable_mangle.c +1 -1
index 385d945d8ebe..db90db7057cc 100644

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

net/ipv4/netfilter/iptable_raw.c +1 -1
index 0e7f53964d0a..b46a79091730 100644

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

net/ipv4/netfilter/iptable_security.c +1 -1
index d885443cb267..2b89adc1e575 100644

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

net/ipv4/raw.c +1 -1
index 474dfd263c8b..3352d42c2bcd 100644

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

net/ipv4/tcp_ao.c +2 -1
index 72957523c2ec..be38712265c3 100644

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

net/ipv6/exthdrs.c +16 -5
index d09ae48030b3..5ef6fbc66beb 100644

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

net/ipv6/netfilter/ip6t_hbh.c +4 -0
index e7a3fb9355ee..450dd53846a2 100644

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

net/ipv6/netfilter/ip6table_filter.c +1 -1
index e8992693e14a..9dcd4501fe80 100644

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

net/ipv6/netfilter/ip6table_mangle.c +1 -1
index 8dd4cd0c47bd..ce2cbce9e3ed 100644

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

net/ipv6/netfilter/ip6table_raw.c +1 -1
index fc9f6754028f..8af0f8bd036d 100644

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

net/ipv6/netfilter/ip6table_security.c +1 -1
index 4df14a9bae78..66018b169b01 100644

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

net/l2tp/l2tp_core.c +1 -1
index 87f29ebed588..458570f388b1 100644

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

net/mac80211/mlme.c +1 -1
index 20e5f513a27a..38549b5236b8 100644

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

net/mac80211/parse.c +31 -40

71 lines not on this page · raw message

net/mptcp/pm_netlink.c +18 -17
index 5d892583ab4e..4ff6721ad5c7 100644

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

net/mptcp/protocol.c +2 -1
index 7dbb666c72c3..c1b1fb0fe8bc 100644

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

net/netfilter/ipset/ip_set_hash_ipmark.c +5 -1
index a22ec1a6f6ec..e26ca2a370e3 100644

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

net/netfilter/ipset/ip_set_hash_ipport.c +4 -1
index e977b5a9c48d..41ca24a22a02 100644

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

net/netfilter/ipset/ip_set_hash_ipportip.c +4 -1
index 39a01934b153..b9ac2efaa15c 100644

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

net/netfilter/ipset/ip_set_hash_ipportnet.c +4 -1
index 5c6de605a9fb..2d6652d43199 100644

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

net/netfilter/nf_queue.c +3 -1
index 7f12e56e6e52..dd416c8532c5 100644

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

net/netfilter/nfnetlink_queue.c +2 -0
index cc52ff7b7bcf..8518b620ae50 100644

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

net/netfilter/nft_inner.c +0 -1
index 817ab978d24a..5e6a1d3702b1 100644

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

net/phonet/pep.c +17 -2
index 62527e1ebb88..55249f2c2d0a 100644

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

net/smc/af_smc.c +2 -1
index 23bb360ebd07..c96abb1386be 100644

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

net/smc/smc_tracepoint.h +1 -1
index a9a6e3c1113a..53da84f57fd6 100644

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

net/tls/tls_sw.c +32 -14

46 lines not on this page · raw message

net/unix/af_unix.c +4 -9
index 77976f36c4aa..4682cc59b7a7 100644

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

net/unix/garbage.c +51 -28

79 lines not on this page · raw message

net/vmw_vsock/virtio_transport_common.c +15 -5
index 9550773fe1e1..c182886136b4 100644

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

net/vmw_vsock/vmci_transport.c +1 -1
index aca3132689cf..4cd11f355e9d 100644

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

net/wireless/scan.c +3 -0
index f9aff1c58e80..3fb31f17daf4 100644

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

scripts/package/PKGBUILD +1 -1
index dca706617adc..e7a077d48334 100644

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

security/keys/keyring.c +1 -0
index f331725d5a37..df2580072cfe 100644

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

security/landlock/net.c +67 -51

118 lines not on this page · raw message

security/lsm_syscalls.c +8 -1
index 8440948a690c..b3887c85a2ba 100644

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

sound/core/pcm_lib.c +3 -0
index 6eaa950504cf..932b9337c93e 100644

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

sound/core/seq/seq_ump_client.c +18 -4
index d39cea7f341d..0d5d5ade87e6 100644

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

sound/pci/asihpi/hpicmn.c +6 -0
index 7d1abaedb46a..f06f44b13d3d 100644

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

sound/pci/hda/cs35l41_hda.c +3 -1
index e115b9bd7ce3..42c576d9f117 100644

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

sound/pci/hda/cs35l56_hda.c +1 -0
index ee5387140ae4..5c0c4b79f519 100644

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

sound/soc/codecs/cs35l56-sdw.c +2 -1
index 7c9a17fe2195..b9cc447b6e5c 100644

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

sound/usb/misc/ua101.c +3 -2
index 303c7a00489e..4d23ec97475d 100644

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

sound/usb/mixer_scarlett2.c +2 -0
index ef5945aa40e4..d767a89e452d 100644

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

tools/perf/builtin-list.c +2 -11
index 9e7fdfcdd7ff..c5331721dfee 100644

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

tools/perf/builtin-stat.c +0 -1
index e8708f785e7f..e476598de808 100644

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

tools/perf/util/Build +0 -1
index fa508e113dd0..dc616292b2dd 100644

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

tools/perf/util/cgroup.c +7 -23
index e172bcdf7fcb..0f759dd96db7 100644

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

tools/perf/util/evsel.c +262 -29

291 lines not on this page · raw message

tools/perf/util/evsel.h +28 -2
index 0e64b9f17f0a..dc0d300776f1 100644

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

tools/perf/util/metricgroup.c +0 -1
index 9181548e8881..4dff3e925a47 100644

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

tools/perf/util/parse-events.c +50 -9

59 lines not on this page · raw message

tools/perf/util/parse-events.h +5 -0
index e9f59de2304b..ac1feaaeb8d5 100644

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

tools/perf/util/parse-events.l +11 -0
index 14e5bd856a18..5a0bcd7f166a 100644

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

tools/perf/util/parse-events.y +16 -0
index f888cbb076d6..dcf47fabdfdd 100644

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

tools/perf/util/pmu.c +2 -18
index 15fb144e890f..8885998c1953 100644

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

tools/perf/util/pmu.h +0 -2
index 2dba1cfa20dd..0222124b86b9 100644

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

tools/perf/util/pmus.c +0 -9
index 5af26a08fb91..362596ed2729 100644

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

tools/perf/util/print-events.c +35 -1
index 83aaf7cda635..a1c71d9793bd 100644

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

tools/perf/util/print-events.h +1 -0
index 445efa1636c1..bf4290bef0cd 100644

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

tools/perf/util/python.c +0 -61

61 lines not on this page · raw message

tools/perf/util/stat-display.c +1 -5
index a82a8ec79b39..ea96e4ebad8c 100644

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

tools/perf/util/stat-shadow.c +0 -1
index caffdaa8be9a..7c49997fab3a 100644

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

tools/perf/util/tool_pmu.c deleted +0 -417

417 lines not on this page · raw message

tools/perf/util/tool_pmu.h deleted +0 -51

51 lines not on this page · raw message

tools/testing/selftests/mm/run_vmtests.sh +1 -1
index d86ca1554d6d..3646f6470c6d 100755

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.