Skip to contentSkip to conversation

Linux 6.18.35

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

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.18.35 kernel.

All users of the 6.18 kernel series must upgrade.

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

thanks,

greg k-h

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

 Documentation/netlink/genetlink-c.yaml                        |    9 
 Documentation/netlink/genetlink-legacy.yaml                   |    9 
 Documentation/netlink/genetlink.yaml                          |    9 
 Documentation/netlink/netlink-raw.yaml                        |    9 
 Documentation/netlink/specs/handshake.yaml                    |    8 
 Makefile                                                      |    2 
 arch/arm64/include/asm/tlb.h                                  |    2 
 arch/arm64/kvm/nested.c                                       |   33 -
 arch/arm64/kvm/pmu-emul.c                                     |    4 
 arch/arm64/kvm/vgic/vgic-its.c                                |    6 
 arch/mips/dec/platform.c                                      |  109 ++++
 arch/riscv/include/asm/syscall_wrapper.h                      |    4 
 arch/x86/kernel/cpu/cpuid-deps.c                              |    1 
 arch/x86/kernel/fpu/signal.c                                  |   11 
 arch/x86/kernel/ftrace.c                                      |    7 
 arch/x86/kvm/svm/avic.c                                       |   35 +
 arch/x86/kvm/svm/sev.c                                        |   76 ++-
 drivers/accel/rocket/rocket_gem.c                             |   17 
 drivers/android/binder/allocation.rs                          |    8 
 drivers/android/binder/process.rs                             |    7 
 drivers/android/binder/transaction.rs                         |   11 
 drivers/auxdisplay/line-display.c                             |    2 
 drivers/bluetooth/btusb.c                                     |    8 
 drivers/bluetooth/hci_qca.c                                   |   42 -
 drivers/comedi/drivers/comedi_test.c                          |    5 
 drivers/counter/counter-core.c                                |    3 
 drivers/cpufreq/intel_pstate.c                                |   13 
 drivers/gpio/gpio-adnp.c                                      |    4 
 drivers/gpio/gpio-mxc.c                                       |    2 
 drivers/gpio/gpio-rockchip.c                                  |   23 -
 drivers/gpio/gpio-virtuser.c                                  |    4 
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c                       |   11 
 drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c                       |    1 
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c                        |    7 
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c                      |   10 
 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c         |    8 
 drivers/gpu/drm/amd/amdkfd/kfd_svm.c                          |    3 
 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c                    |    4 
 drivers/gpu/drm/bridge/sil-sii8620.c                          |    1 
 drivers/gpu/drm/drm_gem.c                                     |    2 
 drivers/gpu/drm/hyperv/hyperv_drm_proto.c                     |  113 ++++-
 drivers/gpu/drm/i915/display/intel_display_core.h             |    1 
 drivers/gpu/drm/i915/display/intel_display_irq.c              |    8 
 drivers/gpu/drm/i915/display/intel_display_types.h            |    3 
 drivers/gpu/drm/i915/display/intel_dpcd.h                     |   15 
 drivers/gpu/drm/i915/display/intel_psr.c                      |   60 +-
 drivers/gpu/drm/i915/gem/i915_gem_ttm.c                       |   28 -
 drivers/gpu/drm/xe/xe_guc_ads.c                               |    5 
 drivers/hid/hid-ids.h                                         |    1 
 drivers/hid/hid-picolcd_cir.c                                 |    1 
 drivers/hid/hid-quirks.c                                      |    1 
 drivers/hid/wacom_sys.c                                       |   13 
 drivers/hid/wacom_wac.h                                       |    1 
 drivers/hwmon/pmbus/adm1266.c                                 |    7 
 drivers/hwmon/pmbus/pmbus.h                                   |    5 
 drivers/hwmon/pmbus/pmbus_core.c                              |    8 
 drivers/i2c/busses/i2c-davinci.c                              |    2 
 drivers/iio/adc/ad4695.c                                      |   23 -
 drivers/iio/adc/mt6359-auxadc.c                               |    1 
 drivers/iio/adc/npcm_adc.c                                    |   25 -
 drivers/iio/adc/viperboard_adc.c                              |    4 
 drivers/iio/adc/xilinx-xadc-core.c                            |   11 
 drivers/iio/buffer/industrialio-hw-consumer.c                 |    4 
 drivers/iio/chemical/mhz19b.c                                 |   17 
 drivers/iio/chemical/scd30_core.c                             |    2 
 drivers/iio/common/ssp_sensors/ssp_dev.c                      |    1 
 drivers/iio/dac/ad3530r.c                                     |   54 +-
 drivers/iio/dac/ad5686.c                                      |   56 +-
 drivers/iio/dac/ad5686.h                                      |    1 
 drivers/iio/dac/max5821.c                                     |    9 
 drivers/iio/gyro/adis16260.c                                  |    3 
 drivers/iio/gyro/itg3200_buffer.c                             |    2 
 drivers/iio/imu/adis16550.c                                   |    2 
 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c                |    2 
 drivers/iio/industrialio-buffer.c                             |    1 
 drivers/iio/inkern.c                                          |    6 
 drivers/iio/light/cm3323.c                                    |    5 
 drivers/iio/light/veml6070.c                                  |   14 
 drivers/iio/magnetometer/st_magn_core.c                       |   13 
 drivers/iio/pressure/bmp280-core.c                            |    2 
 drivers/iio/temperature/tsys01.c                              |    2 
 drivers/input/joystick/xpad.c                                 |   14 
 drivers/input/misc/ims-pcu.c                                  |    2 
 drivers/input/mouse/elan_i2c_core.c                           |    5 
 drivers/input/mouse/synaptics.c                               |    1 
 drivers/input/touchscreen/atmel_mxt_ts.c                      |    2 
 drivers/input/touchscreen/usbtouchscreen.c                    |    5 
 drivers/iommu/io-pgtable-arm-v7s.c                            |   18 
 drivers/mailbox/mailbox.c                                     |   15 
 drivers/mailbox/tegra-hsp.c                                   |    2 
 drivers/md/bcache/super.c                                     |    3 
 drivers/media/cec/core/cec-core.c                             |    2 
 drivers/media/common/siano/smsir.c                            |    1 
 drivers/media/i2c/ir-kbd-i2c.c                                |    2 
 drivers/media/pci/bt8xx/bttv-input.c                          |    3 
 drivers/media/pci/cx23885/cx23885-input.c                     |    1 
 drivers/media/pci/cx88/cx88-input.c                           |    3 
 drivers/media/pci/dm1105/dm1105.c                             |    1 
 drivers/media/pci/mantis/mantis_input.c                       |    1 
 drivers/media/pci/saa7134/saa7134-input.c                     |    1 
 drivers/media/pci/smipcie/smipcie-ir.c                        |    1 
 drivers/media/pci/ttpci/budget-ci.c                           |    1 
 drivers/media/rc/ati_remote.c                                 |    6 
 drivers/media/rc/ene_ir.c                                     |    2 
 drivers/media/rc/fintek-cir.c                                 |    3 
 drivers/media/rc/igorplugusb.c                                |    3 
 drivers/media/rc/iguanair.c                                   |    1 
 drivers/media/rc/img-ir/img-ir-hw.c                           |    3 
 drivers/media/rc/img-ir/img-ir-raw.c                          |    3 
 drivers/media/rc/imon.c                                       |    3 
 drivers/media/rc/ir-hix5hd2.c                                 |    2 
 drivers/media/rc/ir_toy.c                                     |    1 
 drivers/media/rc/ite-cir.c                                    |    2 
 drivers/media/rc/mceusb.c                                     |    1 
 drivers/media/rc/rc-ir-raw.c                                  |    5 
 drivers/media/rc/rc-loopback.c                                |    1 
 drivers/media/rc/rc-main.c                                    |    6 
 drivers/media/rc/redrat3.c                                    |    4 
 drivers/media/rc/st_rc.c                                      |    2 
 drivers/media/rc/streamzap.c                                  |    7 
 drivers/media/rc/sunxi-cir.c                                  |    1 
 drivers/media/rc/ttusbir.c                                    |    4 
 drivers/media/rc/winbond-cir.c                                |    2 
 drivers/media/rc/xbox_remote.c                                |    5 
 drivers/media/usb/au0828/au0828-input.c                       |    1 
 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c                   |    1 
 drivers/media/usb/dvb-usb/dvb-usb-remote.c                    |    6 
 drivers/media/usb/em28xx/em28xx-input.c                       |    1 
 drivers/misc/rp1/rp1_pci.c                                    |    1 
 drivers/net/bonding/bond_main.c                               |    6 
 drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c             |    3 
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c      |    2 
 drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c |    4 
 drivers/net/ethernet/microsoft/mana/mana_en.c                 |   76 ++-
 drivers/net/macsec.c                                          |    3 
 drivers/net/phy/micrel.c                                      |   15 
 drivers/net/phy/mscc/mscc.h                                   |    8 
 drivers/net/phy/mscc/mscc_main.c                              |   23 -
 drivers/net/team/team_core.c                                  |   51 +-
 drivers/net/team/team_mode_loadbalance.c                      |    4 
 drivers/net/tun.c                                             |    5 
 drivers/net/vxlan/vxlan_core.c                                |    4 
 drivers/net/wireguard/send.c                                  |   20 
 drivers/nfc/nxp-nci/i2c.c                                     |   21 
 drivers/nvme/host/tcp.c                                       |    2 
 drivers/parport/share.c                                       |   11 
 drivers/platform/x86/intel/vsec.c                             |   91 ++--
 drivers/s390/cio/chsc.c                                       |    4 
 drivers/s390/cio/chsc_sch.c                                   |   20 
 drivers/s390/cio/scm.c                                        |    2 
 drivers/scsi/fcoe/fcoe_ctlr.c                                 |    2 
 drivers/scsi/scsi_lib.c                                       |   27 +
 drivers/scsi/scsi_transport_fc.c                              |   77 +--
 drivers/spi/spi-mem.c                                         |   15 
 drivers/staging/media/av7110/av7110_ir.c                      |    1 
 drivers/target/iscsi/iscsi_target.c                           |    5 
 drivers/target/iscsi/iscsi_target_auth.c                      |   19 
 drivers/target/iscsi/iscsi_target_nego.c                      |    7 
 drivers/target/iscsi/iscsi_target_parameters.c                |   62 ++
 drivers/target/iscsi/iscsi_target_parameters.h                |    2 
 drivers/thunderbolt/property.c                                |   32 +
 drivers/tty/serdev/core.c                                     |   21 
 drivers/tty/serial/8250/8250_dw.c                             |    2 
 drivers/tty/serial/8250/8250_port.c                           |    7 
 drivers/tty/serial/altera_jtaguart.c                          |    7 
 drivers/tty/serial/dz.c                                       |  171 +++----
 drivers/tty/serial/fsl_lpuart.c                               |   15 
 drivers/tty/serial/pch_uart.c                                 |   19 
 drivers/tty/serial/qcom_geni_serial.c                         |   16 
 drivers/tty/serial/samsung_tty.c                              |    8 
 drivers/tty/serial/sh-sci.c                                   |    2 
 drivers/tty/serial/zs.c                                       |  226 +++-------
 drivers/tty/serial/zs.h                                       |    1 
 drivers/usb/cdns3/cdns3-gadget.c                              |   12 
 drivers/usb/cdns3/cdns3-plat.c                                |   11 
 drivers/usb/chipidea/core.c                                   |   16 
 drivers/usb/class/cdc-acm.c                                   |    2 
 drivers/usb/class/cdc-acm.h                                   |    2 
 drivers/usb/class/usbtmc.c                                    |   14 
 drivers/usb/core/config.c                                     |    9 
 drivers/usb/core/hcd.c                                        |    4 
 drivers/usb/core/quirks.c                                     |    4 
 drivers/usb/dwc2/hcd.c                                        |    4 
 drivers/usb/dwc3/dwc3-xilinx.c                                |   27 -
 drivers/usb/gadget/composite.c                                |    5 
 drivers/usb/gadget/function/f_fs.c                            |   26 +
 drivers/usb/gadget/function/f_hid.c                           |    3 
 drivers/usb/gadget/function/f_uvc.c                           |   28 -
 drivers/usb/gadget/udc/dummy_hcd.c                            |    4 
 drivers/usb/gadget/udc/net2280.c                              |    4 
 drivers/usb/host/xhci-tegra.c                                 |   79 +--
 drivers/usb/musb/omap2430.c                                   |    3 
 drivers/usb/serial/belkin_sa.c                                |    3 
 drivers/usb/serial/cypress_m8.c                               |   20 
 drivers/usb/serial/digi_acceleport.c                          |   23 -
 drivers/usb/serial/keyspan.c                                  |    4 
 drivers/usb/serial/mct_u232.c                                 |   26 -
 drivers/usb/serial/mxuport.c                                  |    8 
 drivers/usb/serial/omninet.c                                  |    9 
 drivers/usb/serial/option.c                                   |    9 
 drivers/usb/serial/safe_serial.c                              |   11 
 drivers/usb/storage/unusual_uas.h                             |    7 
 drivers/usb/typec/altmodes/displayport.c                      |    2 
 drivers/usb/typec/tcpm/tcpci_maxim_core.c                     |    9 
 drivers/usb/typec/tcpm/tcpm.c                                 |  117 +++--
 drivers/usb/typec/tcpm/wcove.c                                |   13 
 drivers/usb/typec/tipd/core.c                                 |    1 
 drivers/usb/typec/ucsi/displayport.c                          |    4 
 drivers/usb/typec/ucsi/ucsi.c                                 |   24 -
 drivers/usb/typec/ucsi/ucsi_ccg.c                             |    5 
 drivers/usb/usbip/vudc_dev.c                                  |    1 
 drivers/usb/usbip/vudc_transfer.c                             |    3 
 fs/hpfs/alloc.c                                               |    2 
 fs/smb/client/cifsacl.c                                       |  116 +++--
 fs/smb/client/smb2pdu.c                                       |    2 
 fs/smb/server/smb2pdu.c                                       |   11 
 fs/smb/server/smbacl.c                                        |    8 
 include/kunit/test.h                                          |    1 
 include/linux/compat.h                                        |    4 
 include/linux/compiler-clang.h                                |    6 
 include/linux/compiler_attributes.h                           |   11 
 include/linux/compiler_types.h                                |    4 
 include/linux/hid.h                                           |    2 
 include/linux/if_team.h                                       |    3 
 include/linux/intel_vsec.h                                    |    4 
 include/linux/mailbox_controller.h                            |    3 
 include/linux/parport.h                                       |    1 
 include/linux/serdev.h                                        |    1 
 include/linux/serial_core.h                                   |   12 
 include/linux/syscalls.h                                      |    4 
 include/media/rc-core.h                                       |    2 
 include/net/netfilter/nf_tables.h                             |    7 
 include/net/xfrm.h                                            |    3 
 ipc/util.c                                                    |    2 
 lib/debugobjects.c                                            |    2 
 lib/kunit/executor.c                                          |   19 
 lib/kunit/test.c                                              |    1 
 mm/damon/sysfs-schemes.c                                      |    8 
 mm/memcontrol.c                                               |    6 
 mm/memfd.c                                                    |   12 
 mm/rmap.c                                                     |    2 
 mm/slab_common.c                                              |    2 
 mm/slub.c                                                     |    1 
 net/bluetooth/6lowpan.c                                       |    2 
 net/bluetooth/hci_conn.c                                      |    4 
 net/bluetooth/hci_sync.c                                      |   16 
 net/bluetooth/hidp/core.c                                     |   23 -
 net/bluetooth/iso.c                                           |   12 
 net/bluetooth/l2cap_core.c                                    |   41 +
 net/bluetooth/l2cap_sock.c                                    |   16 
 net/bridge/br_netlink.c                                       |   17 
 net/bridge/br_switchdev.c                                     |    1 
 net/bridge/br_sysfs_if.c                                      |   30 -
 net/bridge/netfilter/ebtables.c                               |   30 +
 net/core/devmem.c                                             |   11 
 net/core/filter.c                                             |    2 
 net/core/skbuff.c                                             |   45 +
 net/ethtool/cmis.h                                            |    4 
 net/ethtool/cmis_cdb.c                                        |    9 
 net/ethtool/cmis_fw_update.c                                  |   44 +
 net/ethtool/coalesce.c                                        |    6 
 net/ethtool/eeprom.c                                          |   10 
 net/ethtool/linkstate.c                                       |    6 
 net/ethtool/module.c                                          |   41 +
 net/ethtool/netlink.c                                         |    4 
 net/ethtool/netlink.h                                         |    4 
 net/ethtool/pse-pd.c                                          |   10 
 net/ethtool/rss.c                                             |   37 +
 net/ethtool/strset.c                                          |    2 
 net/ethtool/tsconfig.c                                        |   15 
 net/ethtool/tsinfo.c                                          |   19 
 net/handshake/genl.c                                          |    3 
 net/handshake/genl.h                                          |    1 
 net/handshake/handshake-test.c                                |    2 
 net/handshake/handshake.h                                     |    4 
 net/handshake/netlink.c                                       |    6 
 net/handshake/request.c                                       |   16 
 net/handshake/tlshd.c                                         |    6 
 net/hsr/hsr_forward.c                                         |    4 
 net/ipv4/ah4.c                                                |    2 
 net/ipv4/esp4.c                                               |    4 
 net/ipv4/ip_tunnel_core.c                                     |   22 
 net/ipv4/sysctl_net_ipv4.c                                    |    2 
 net/ipv6/ah6.c                                                |    2 
 net/ipv6/datagram.c                                           |   54 ++
 net/ipv6/esp6.c                                               |    4 
 net/ipv6/exthdrs.c                                            |    6 
 net/ipv6/ip6_vti.c                                            |   23 -
 net/ipv6/route.c                                              |    5 
 net/iucv/af_iucv.c                                            |   20 
 net/key/af_key.c                                              |    6 
 net/l2tp/l2tp_core.c                                          |   11 
 net/mctp/device.c                                             |    1 
 net/mctp/neigh.c                                              |    1 
 net/mctp/route.c                                              |    1 
 net/mptcp/fastopen.c                                          |    4 
 net/mptcp/mib.c                                               |    1 
 net/mptcp/mib.h                                               |    1 
 net/mptcp/protocol.c                                          |   65 ++
 net/mptcp/protocol.h                                          |   31 +
 net/mptcp/subflow.c                                           |    8 
 net/netfilter/nf_conntrack_proto_tcp.c                        |    3 
 net/netfilter/nf_synproxy_core.c                              |    2 
 net/netfilter/nft_bitwise.c                                   |   18 
 net/netfilter/nft_byteorder.c                                 |   13 
 net/netfilter/xt_cpu.c                                        |    2 
 net/netlink/af_netlink.c                                      |   11 
 net/nfc/hci/core.c                                            |   10 
 net/nfc/llcp_core.c                                           |   11 
 net/nfc/llcp_sock.c                                           |    2 
 net/nfc/nci/hci.c                                             |   10 
 net/rxrpc/ar-internal.h                                       |   14 
 net/rxrpc/call_event.c                                        |   22 
 net/rxrpc/call_object.c                                       |    2 
 net/rxrpc/conn_event.c                                        |   32 -
 net/rxrpc/insecure.c                                          |    8 
 net/rxrpc/recvmsg.c                                           |   68 ++-
 net/rxrpc/rxgk.c                                              |  147 ++----
 net/rxrpc/rxgk_app.c                                          |   46 --
 net/rxrpc/rxgk_common.h                                       |   66 +-
 net/rxrpc/rxkad.c                                             |  115 +----
 net/sched/cls_fw.c                                            |    6 
 net/sched/sch_netem.c                                         |   40 -
 net/sched/sch_sfb.c                                           |    2 
 net/sctp/socket.c                                             |    2 
 net/smc/af_smc.c                                              |    4 
 net/vmw_vsock/af_vsock.c                                      |   49 +-
 net/vmw_vsock/hyperv_transport.c                              |    9 
 net/vmw_vsock/virtio_transport_common.c                       |   26 -
 net/vmw_vsock/vmci_transport.c                                |    8 
 net/xfrm/xfrm_input.c                                         |   16 
 net/xfrm/xfrm_ipcomp.c                                        |   12 
 net/xfrm/xfrm_iptfs.c                                         |   29 +
 net/xfrm/xfrm_policy.c                                        |   17 
 net/xfrm/xfrm_state.c                                         |   23 -
 net/xfrm/xfrm_user.c                                          |    5 
 sound/core/oss/pcm_oss.c                                      |   18 
 sound/firewire/motu/motu-register-dsp-message-parser.c        |   11 
 sound/hda/codecs/realtek/alc269.c                             |    1 
 sound/soc/codecs/simple-mux.c                                 |    2 
 sound/soc/intel/boards/bytcht_es8316.c                        |   29 +
 sound/soc/qcom/qdsp6/q6asm-dai.c                              |   43 +
 sound/usb/mixer_scarlett2.c                                   |   33 +
 tools/bootconfig/main.c                                       |    4 
 tools/net/ynl/pyynl/ynl_gen_c.py                              |   31 +
 tools/testing/cxl/test/cxl.c                                  |  105 +---
 tools/testing/selftests/net/mptcp/mptcp_connect.sh            |    6 
 tools/testing/selftests/net/mptcp/mptcp_lib.sh                |   10 
 348 files changed, 3346 insertions(+), 1734 deletions(-)

Abdurrahman Hussain (2):
hwmon: (pmbus/adm1266) serialize sequencer_state debugfs read with pmbus_lock
hwmon: (pmbus/adm1266) serialize GPIO PMBus accesses with pmbus_lock

Advait Dhamorikar (1):
iio: magnetometer: st_magn: fix default DRDY pin selection for LIS2MDL

Aldo Conte (1):
iio: light: cm3323: fix reg_conf not being initialized correctly

Alexander Stein (1):
gpio: mxc: fix irq_high handling

Alexandra Winter (1):
net/smc: Do not re-initialize smc hashtables

Alexandre Ghiti (1):
mm: memcontrol: propagate NMI slab stats to memcg vmstats

Alexandru Hossu (1):
scsi: target: iscsi: Validate CHAP_R length before base64 decode

Alexis Lothoré (eBPF Foundation) (1):
x86/ftrace: Relocate %rip-relative percpu refs in dynamic trampolines

Ali Ganiyev (1):
ksmbd: OOB read regression in smb_check_perm_dacl() ACE-walk loops

Alice Ryhl (1):
rust_binder: avoid calling pending_oneway_finished() on TF_UPDATE_TXN

Andrei Vagin (1):
Revert "x86/fpu: Refine and simplify the magic number check during signal return"

Antoniu Miclaus (2):
iio: gyro: adis16260: fix division by zero in write_raw
iio: chemical: scd30: fix division by zero in write_raw

Arnd Bergmann (1):
iommu, debugobjects: avoid gcc-16.1 section mismatch warnings

Ashutosh Desai (1):
nfc: hci: fix out-of-bounds read in HCP header parsing

Balasubramani Vivekanandan (1):
drm/xe: Restore IDLEDLY regiter on engine reset

Bartosz Golaszewski (1):
gpio: adnp: fix flow control regression caused by scoped_guard()

Ben Hutchings (1):
parport: Fix race between port and client registration

Benoît Monin (1):
iio: buffer: Fix DMA fence leak in iio_buffer_enqueue_dmabuf()

Berkant Koc (2):
drm/hyperv: validate resolution_count and fix WIN8 fallback drm/hyperv: validate VMBus packet size in receive callback

Björn Töpel (1):
net: Avoid checksumming unreadable skb tail on trim

Breno Leitao (1):
net/iucv: fix locking in .getsockopt

Carl Lee (1):
nfc: nxp-nci: i2c: use rising-edge IRQ on ACPI systems

Chaitanya Sabnis (1):
i2c: davinci: fix division by zero on missing clock-frequency

Chris Mason (1):
netfilter: synproxy: refresh tcphdr after skb_ensure_writable

Christian König (1):
drm/amdgpu: fix calling VM invalidation in amdgpu_hmm_invalidate_gfx

Christofer Jonason (1):
iio: adc: xilinx-xadc: Fix sequencer mode in postdisable for dual mux

Chuck Lever (3):
net/handshake: Use spin_lock_bh for hn_lock
nvme-tcp: store negative errno in queue->tls_err net/handshake: Pass negative errno through handshake_complete()

Cássio Gabriel (4):
ALSA: pcm: oss: Fix setup list UAF on proc write error
ASoC: Intel: bytcht_es8316: Fix MCLK leak on init errors
ASoC: codecs: simple-mux: Fix enum control bounds check
ALSA: firewire-motu: Protect register DSP event queue positions

Dan Carpenter (3):
gpio: virtuser: Fix uninitialized data bug in gpio_virtuser_direction_do_write()
usb: dwc2: Fix use after free in debug code
usb: typec: tipd: Fix error code in tps6598x_probe()

David Ahern (1):
xfrm: Check for underflow in xfrm_state_mtu

David Carlier (3):
iio: adc: npcm: fix unbalanced clk_disable_unprepare()
iio: gyro: itg3200: fix i2c read into the wrong stack location
net: devmem: reject dma-buf bind with non-page-aligned size or SG length

David E. Box (2):
platform/x86/intel/vsec: Refactor base_addr handling platform/x86/intel/vsec: Make driver_data info const

David Francis (1):
drm/amdkfd: Check for pdd drm file first in CRIU restore path

David Howells (2):
rxrpc: Fix DATA decrypt vs splice() by copying data to buffer in recvmsg
rxrpc: Fix RESPONSE packet verification to extract skb to a linear buffer

David Jeffery (1):
scsi: core: Run queues for all non-SDEV_DEL devices from scsi_run_host_queues

Davide Caratti (1):
net/sched: cls_fw: fix NULL dereference of "old" filters before change()

Dawei Feng (1):

      octeontx2-pf: avoid double free of pool->stack on AQ init failure

Dev Jain (1):
mm/rmap: initialize nr_pages to 1 at loop start in try_to_unmap_one

Dhabaleshwar Das (1):
accel/rocket: fix UAF via dangling GEM handle in create_bo

Dipayaan Roy (2):
net: mana: Add NULL guards in teardown path to prevent panic on attach failure
net: mana: Skip redundant detach on already-detached port

Dmitriy Zharov (1):
Input: xpad - add support for ASUS ROG RAIKIRI II

Dmitry Torokhov (3):
Input: xpad - fix out-of-bounds access for Share button
Input: elan_i2c - validate firmware size before use
Input: atmel_mxt_ts - fix boundary check in mxt_prepare_cfg_mem

Doruk Tan Ozturk (1):
Bluetooth: hci_sync: fix UAF in hci_le_create_cis_sync

Eric Dumazet (4):
ipv4: free net->ipv4.sysctl_local_reserved_ports after unregister_net_sysctl_table()
tunnels: load network headers after skb_cow() in iptunnel_pmtud_build_icmp[v6]()
vxlan: do not reuse cached ip_hdr() value after skb_tunnel_check_pmtu()
tunnels: do not assume transport header in iptunnel_pmtud_check_icmp()

Eric Huang (2):
drm/amdkfd: fix NULL pointer bug in svm_range_set_attr drm/amdkfd: fix a vulnerability of integer overflow in kfd debugger

Felix Gu (2):
iio: light: veml6070: Fix resource leak in probe error path
iio: buffer: hw-consumer: fix use-after-free in error path

Fernando Fernandez Mancera (1):
netfilter: nf_tables: fix dst corruption in same register operation

Florian Schmaus (1):
kunit: fix use-after-free in debugfs when using kunit.filter

Florian Westphal (2):
netfilter: xt_cpu: prefer raw_smp_processor_id
netfilter: ebtables: fix OOB read in compat_mtw_from_user

Geoffrey D. Bennett (1):
ALSA: scarlett2: Fix 2i2 Gen 4 direct monitor gain on firmware 2417

Greg Kroah-Hartman (13):
Input: usbtouchscreen - clamp NEXIO data_len/x_len to URB buffer size
iio: imu: st_lsm6dsx: fix stack leak in tagged FIFO buffer
iio: imu: adis16550: fix stack leak in trigger handler
iio: pressure: bmp280: fix stack leak in bmp580 trigger handler
usb: typec: ucsi: ccg: reject firmware images without a ':' record header
usb: typec: tcpm: validate VDO count in Discover Identity ACK handlers
usb: typec: tcpm: bound altmode_desc[] per iteration in svdm_consume_modes()
usb: typec: ucsi: displayport: NAK DP_CMD_CONFIGURE without a payload VDO
usb: typec: altmodes/displayport: validate count before reading Status Update VDO
usb: typec: wcove: don't write past struct pd_message in wcove_read_rx_buffer()
usb: typec: tcpm/tcpci_maxim: validate header NDO against RX_BYTE_CNT
usb: typec: ucsi: validate connector number in ucsi_connector_change() Linux 6.18.35

Guangshuo Li (3):
counter: Fix refcount leak in counter_alloc() error path
usb: gadget: net2280: Fix double free in probe error path
usb: gadget: f_hid: fix device reference leak in hidg_alloc()

Guenter Roeck (1):
hwmon: (pmbus) Add support for guarded PMBus lock

Hamza Mahfooz (1):
netfilter: conntrack: tcp: do not force CLOSE on invalid-seq RST without direction check

Heitor Alves de Siqueira (4):
Bluetooth: hci_sync: Set HCI_CMD_DRAIN_WORKQUEUE during device close
Bluetooth: hci_sync: Reset device counters in hci_dev_close_sync()
usb: usbtmc: check URB actual_length for interrupt-IN notifications
usb: usbtmc: reject interrupt endpoints with small wMaxPacketSize

Henri A (1):
media: rc: igorplugusb: fix control request setup packet

Herbert Xu (1):
xfrm: ipcomp: Free destination pages on acomp errors

Hongling Zeng (1):
serial: sh-sci: fix memory region release in error path

Hongtao Lee (1):
tools/bootconfig: Fix buf leaks in apply_xbc

Horatiu Vultur (1):

      phy: mscc: Use PHY_ID_MATCH_EXACT for VSC8584, VSC8582, VSC8575, VSC856X

Hyunwoo Kim (2):
KVM: arm64: vgic-its: Drop the translation cache reference only for the erased entry
KVM: arm64: Reassign nested_mmus array behind mmu_lock

Ian Abbott (2):
comedi: comedi_test: fix check for valid scan_begin_src in waveform_ai_cmdtest()
comedi: comedi_test: Fix limiting of convert_arg in waveform_ai_cmdtest()

Ido Schimmel (2):
bridge: Fix sleep in atomic context in netlink path
bridge: Fix sleep in atomic context in sysfs path

Ilya Maximets (2):
net: netlink: fix sending unassigned nsid after assigned one
net: netlink: don't set nsid on local notifications

Jacques Nilo (3):
serial: core: introduce guard(uart_port_lock_check_sysrq_irqsave)
serial: 8250: dispatch SysRq character in serial8250_handle_irq()
serial: 8250_dw: dispatch SysRq character in dw8250_handle_irq()

Jakub Kicinski (26):
ethtool: rss: avoid modifying the RSS context response
ethtool: rss: add missing errno on RSS context delete
ethtool: rss: fix falsely ignoring indir table updates
ethtool: rss: fix indir_table and hkey leak on get_rxfh failure
ethtool: rss: fix hkey leak when indir_size is 0
ethtool: rss: avoid device context leak on reply-build failure
ethtool: module: call ethnl_ops_complete() on module flash errors
ethtool: module: avoid leaking a netdev ref on module flash errors
ethtool: module: avoid racy updates to dev->ethtool bitfield
ethtool: module: check fw_flash_in_progress under rtnl_lock
ethtool: module: fix cleanup if socket used for flashing multiple devices
ethtool: cmis: require exact CDB reply length
ethtool: cmis: fix u16-to-u8 truncation of msleep_pre_rpl
ethtool: cmis: validate start_cmd_payload_size from module
ethtool: cmis: validate fw->size against start_cmd_payload_size
ethtool: coalesce: cap profile updates at NET_DIM_PARAMS_NUM_PROFILES
ethtool: tsconfig: fix reply error handling
ethtool: linkstate: fix unbalanced ethnl_ops_complete() on PHY lookup error
ethtool: pse-pd: fix missing ethnl_ops_complete()
ethtool: tsconfig: fix missing ethnl_ops_complete()
ethtool: tsinfo: fix uninitialized stats on the by-PHC path
ethtool: tsinfo: don't pass ERR_PTR to genlmsg_cancel on prepare failure
ethtool: strset: fix header attribute index in ethnl_req_get_phydev()
ethtool: eeprom: add missing ethnl_ops_begin() / _complete() during fallback
ethtool: eeprom: add more safeties to EEPROM Netlink fallback
tools: ynl: add scope qualifier for definitions

Jamal Hadi Salim (1):
net/sched: Revert "net/sched: Restrict conditions for adding duplicating netems to qdisc tree"

Jan Volckaert (1):
USB: serial: option: add MeiG SRM813Q

Janusz Krzysztofik (1):
drm/i915: Fix potential UAF in TTM object purge

Jason A. Donenfeld (1):
wireguard: send: append trailer after expanding head

Jassi Brar (1):
mailbox: Fix NULL message support in mbox_send_message()

Jeremy Erazo (1):
usb: gadget: composite: fix integer underflow in WebUSB GET_URL handling

Jeremy Kerr (1):
net: mctp: ensure our nlmsg responses are initialised

Jiayuan Chen (2):
ipv6: fix possible infinite loop in rt6_fill_node()
ipv6: fix possible infinite loop in fib6_select_path()

Jijie Shao (1):
net: hibmcge: disable Relaxed Ordering to fix RX packet corruption

Jingguo Tan (2):
vsock/virtio: bind uarg before filling zerocopy skb
xfrm: esp: restore combined single-frag length gate

Johan Hovold (8):
USB: serial: safe_serial: fix memory corruption with small endpoint
USB: serial: omninet: fix memory corruption with small endpoint
USB: serial: keyspan: fix missing indat transfer sanity check
USB: serial: mxuport: fix memory corruption with small endpoint
USB: serial: mct_u232: fix missing interrupt-in transfer sanity check
USB: serial: cypress_m8: fix memory corruption with small endpoint
USB: serial: digi_acceleport: fix memory corruption with small endpoints
USB: serial: mct_u232: fix memory corruption with small endpoint

Jouni Högander (5):
drm/i915/psr: Add defininitions for INTEL_WA_REGISTER_CAPS DPCD register drm/i915/psr: Read Intel DPCD workaround register drm/i915/psr: Apply Intel DPCD workaround when SDP on prior line used drm/i915/psr: Block DC states on vblank enable when Panel Replay supported drm/i915/psr: Use DC_OFF wake reference to block DC6 on vblank enable

Junrui Luo (1):
macsec: fix replay protection at XPN lower-PN wrap

Justin Iurman (1):
ipv6: exthdrs: refresh nh pointer after ipv6_hop_jumbo()

Kai Aizen (1):

      usb: gadget: uvc: hold opts->lock across XU walks in uvc_function_bind

Kim Seer Paller (1):

      iio: dac: ad3530r: Fix AD3531/AD3531R powerdown mode strings

Kuniyuki Iwashima (1):
ip6: vti: Use ip6_tnl.net in vti6_changelink().

Lee Jones (3):
nfc: llcp: Fix use-after-free in llcp_sock_release()
nfc: llcp: Fix use-after-free race in nfc_llcp_recv_cc()
HID: wacom: Fix OOB write in wacom_hid_set_device_mode()

Li Ming (1):
cxl/test: Update mock dev array before calling platform_device_add()

Linpu Yu (1):
ipc: limit next_id allocation to the valid ID range

Liu Kai (1):
HID: remove duplicate hid_warn_ratelimited definition

Luiz Augusto von Dentz (1):
Bluetooth: L2CAP: Fix possible crash on l2cap_ecred_conn_rsp

Luka Gejak (1):
net: hsr: fix potential OOB access in supervision frame handling

Lukas Wunner (1):
platform/x86/intel/vsec: Fix enable_cnt imbalance on PCIe error recovery

Maciej W. Rozycki (7):
serial: zs: Fix swapped RI/DSR modem line transition counting
serial: dz: Fix bootconsole message clobbering at chip reset
serial: dz: Fix bootconsole handover lockup
serial: dz: Convert to use a platform device
serial: zs: Fix bootconsole handover lockup
serial: zs: Switch to using channel reset
serial: zs: Convert to use a platform device

Maoyi Xie (2):
ip6: vti: Use ip6_tnl.net in vti6_siocdevprivate().
xfrm: route MIGRATE notifications to caller's netns

Marc Harvey (2):
net: team: Remove unused team_mode_op, port_enabled
net: team: Rename port_disabled team mode op to port_tx_disabled

Marco Scardovi (2):
gpio: rockchip: convert bank->clk to devm_clk_get_enabled()
gpio: rockchip: teardown bugs and resource leaks

Matthew Maurer (1):
rust_binder: Avoid holding lock when dropping delivered_death

Matthieu Baerts (NGI0) (1):
selftests: mptcp: drop nanoseconds width specifier

Michael Bommarito (14):
smb: client: validate the whole DACL before rewriting it in cifsacl
l2tp: use refcount_inc_not_zero in l2tp_session_get_by_ifname
xfrm: ah: use skb_to_full_sk in async output callbacks
usbip: vudc: Fix use after free bug in vudc_remove due to race condition
usb: gadget: f_fs: copy only received bytes on short ep0 read
usb: gadget: f_fs: serialize DMABUF cancel against request completion
thunderbolt: property: Reject u32 wrap in tb_property_entry_valid()
thunderbolt: property: Reject dir_len < 4 to prevent size_t underflow
scsi: fcoe: Reject FIP descriptors with zero fip_dlen in CVL walker
scsi: scsi_transport_fc: Widen FPIN pname walker counter to u32
scsi: target: iscsi: Fix CRC overread and double-free in iscsit_handle_text_cmd()
scsi: target: iscsi: Bound iscsi_encode_text_output() appends to rsp_buf drm/amdgpu: fix lock leak on ENOMEM in AMDGPU_GEM_OP_GET_MAPPING_INFO
thunderbolt: property: Cap recursion depth in __tb_property_parse_dir()

Michael Roth (1):
KVM: SEV: Require in-GHCB scratch area if GHCB v2+ is in use

Michal Pecio (2):
usb: core: Fix up Interrupt IN endpoints with bogus wBytesPerInterval
usb: core: Fix SuperSpeed root hub wMaxPacketSize

Mikulas Patocka (1):
hpfs: fix a crash if hpfs_map_dnode_bitmap fails

Mingzhe Zou (1):
bcache: fix uninitialized closure object

Minh Nguyen (1):
net: skbuff: fix missing zerocopy reference in pskb_carve helpers

Muhammad Bilal (3):
Bluetooth: HIDP: fix missing length checks in hidp_input_report()
Bluetooth: ISO: fix UAF in iso_recv_frame
Bluetooth: ISO: serialize iso_sock_clear_timer with socket lock

Myeonghun Pak (1):
serial: altera_jtaguart: handle uart_add_one_port() failures

Myrrh Periwinkle (2):
usb: typec: ucsi: Check if power role change actually happened before handling
usb: typec: ucsi: Don't update power_supply on power role change if not connected

Nathan Chancellor (1):
Disable -Wattribute-alias for clang-23 and newer

Nicolás Bazaes (1):
Input: synaptics - add LEN2058 to SMBus passlist for ThinkPad E490

Oliver Hartkopp (1):
bonding: refuse to enslave CAN devices

Oliver Neukum (1):
media: rc: ttusbir: fix inverted error logic

Paolo Abeni (4):
mptcp: handle first subflow closing consistently
mptcp: borrow forward memory from subflow
mptcp: cleanup fallback dummy mapping generation
mptcp: reset rcv wnd on disconnect

Pavel Begunkov (1):
net: skbuff: fix pskb_carve leaking zcopy pages

Pavitra Jha (1):
Bluetooth: hci_conn: Fix memory leak in hci_le_big_terminate()

Pengpeng Hou (1):
iio: chemical: mhz19b: reject oversized serial replies

Peter Chen (2):
usb: cdns3: plat: fix leaked usb2_phy initialization on usb3_phy acquisition failure
usb: cdns3: plat: fix unbalanced pm_runtime_forbid() call permanently leaks the runtime PM usage counter across bind/unbind cycles

Peter Oberparleiter (1):
s390/cio: Restore GFP_DMA for CHSC allocation

Prasanna S (1):
serial: qcom-geni: fix UART_RX_PAR_EN bit position

Prathamesh Deshpande (1):
net/mlx5: HWS: Reject unsupported remove-header action

Pratyush Yadav (Google) (1):
memfd: deny writeable mappings when implying SEAL_WRITE

Qbeliw Tanaka (1):
Input: xpad - add "Nova 2 Lite" from GameSir

Qi Tang (1):
ipv6: validate extension header length before copying to cmsg

Qiang Ma (1):
KVM: arm64: PMU: Preserve AArch32 counter low bits

Qing Wang (1):
mm/slub: hold cpus_read_lock around flush_rcu_sheaves_on_cache()

Radhey Shyam Pandey (1):
usb: dwc3: xilinx: fix error handling in zynqmp init error paths

Radu Sabau (1):
iio: adc: ad4695: Fix call ordering in offload buffer postenable

Rafael J. Wysocki (2):
cpufreq: intel_pstate: Add and use hybrid_get_cpu_type()
cpufreq: intel_pstate: Use correct scaling factor on Raptor Lake-E

Rahul Chandelkar (1):
ipv6: rpl: fix hdrlen overflow in ipv6_rpl_srh_decompress()

Robert Marko (1):
net: phy: micrel: fix LAN8814 QSGMII soft reset

Rodrigo Alencar (4):
iio: dac: ad5686: fix ref bit initialization for single-channel parts
iio: dac: ad5686: fix input raw value check
iio: dac: ad5686: acquire lock when doing powerdown control
iio: dac: ad5686: fix powerdown control on dual-channel devices

Salah Triki (4):
iio: dac: max5821: fix return value check in powerdown sync
iio: adc: mt6359: fix unchecked return value in mt6358_read_imp
iio: adc: viperboard: Fix error handling in vprbrd_iio_read_raw
iio: temperature: tsys01: fix broken PROM checksum validation

Sam Burkels (1):
usb: storage: Add quirks for PNY Elite Portable SSD

Sanjay Chitroda (1):
iio: ssp_sensors: cancel delayed work_refresh on remove

Santhosh Kumar K (1):
spi: spi-mem: avoid mutating op template in spi_mem_supports_op()

Sean Christopherson (8):
KVM: SVM: Flush the current TLB when transitioning from xAVIC => x2AVIC
KVM: SEV: Ignore Port I/O requests of length '0'
KVM: SEV: Use the size of the PSC header as the minimum size for PSC requests
KVM: SEV: WARN if KVM attempts to setup scratch area with min_len==0
KVM: SEV: Compute the correct max length of the in-GHCB scratch area
KVM: SEV: Check PSC request indices against the actual size of the buffer
KVM: SEV: Use READ_ONCE() when reading entries/indices from PSC buffer
KVM: SEV: Don't explicitly pass PSC buffer to snp_begin_psc()

Sean Shen (1):
ksmbd: fix FSCTL permission bypass by adding a permission check for FSCTL_SET_SPARSE

Sean Young (1):
media: rc: fix race between unregister and urb/irq callbacks

Sebastian Reichel (1):
usb: typec: tcpm: improve handling of DISCOVER_MODES failures

SeongJae Park (1):
mm/damon/sysfs-schemes: delete tried region in regions_rmdirs()

Seungjin Bae (1):
usb: gadget: dummy_hcd: Reject hub port requests for non-existent ports

Shaomin Chen (1):
xfrm: iptfs: reset runtime state when cloning SAs

Shardul Bankar (1):
mptcp: do not drop partial packets

Shitalkumar Gandhi (1):
serial: fsl_lpuart: fix rx buffer and DMA map leaks in start_rx_dma

Shuai Zhang (3):
Bluetooth: btusb: Allow firmware re-download when version matches
Bluetooth: hci_qca: Use 100 ms SSR delay for rampatch and NVM loading
Bluetooth: hci_qca: Convert timeout from jiffies to ms

Siwei Zhang (2):
Bluetooth: L2CAP: use chan timer to close channels in cleanup_listen()
Bluetooth: L2CAP: fix chan ref leak in l2cap_chan_timeout() on !conn

Srinivas Kandagatla (3):
ASoC: qcom: q6asm-dai: fix error handling in prepare and set_params
ASoC: qcom: q6asm-dai: close stream only when running
ASoC: qcom: q6asm-dai: do not set stream state in event and trigger callbacks

Stepan Ionichev (1):
auxdisplay: line-display: fix OOB read on zero-length message_store()

Stephen J. Fuhry (1):
USB: quirks: add NO_LPM for Lenovo ThinkPad USB-C Dock Gen2 hub controllers

Steve French (1):
smb: client: fix uninitialized variable in smb2_writev_callback

Svyatoslav Ryhel (1):
iio: Fix iio_multiply_value use in iio_read_channel_processed_scale

Thomas Fourier (1):
Input: ims-pcu - fix usb_free_coherent() size in ims_pcu_buffers_free()

Timur Kristóf (1):
drm/amd/pm/si: Disregard vblank time when no displays are connected

Tom Lendacky (1):
x86/mm: Disable broadcast TLB flush when PCID is disabled

Tudor Ambarus (1):
tty: serial: samsung: Remove redundant port lock acquisition in rx helpers

Usama Arif (1):
xfrm: move policy_bydst RCU sync from per-netns .exit to .pre_exit

Uwe Kleine-König (2):
serdev: Provide a bustype shutdown function
Bluetooth: hci_qca: Migrate to serdev specific shutdown function

Victor Nogueria (1):
net/sched: sch_sfb: Replace direct dequeue call with peek and qdisc_dequeue_peeked

Viken Dadhaniya (1):
serial: qcom_geni: fix kfifo underflow when flush precedes DMA completion IRQ

Wanquan Zhong (1):
USB: serial: option: add missing RSVD(5) flag for Rolling RW135R-GL

Wei-Cheng Chen (1):
xhci: tegra: Fix ghost USB device on dual-role port unplug

Weiming Shi (3):
tun: free page on short-frame rejection in tun_xdp_one()
tun: free page on build_skb failure in tun_xdp_one()
net: team: fix NULL pointer dereference in team_xmit during mode change

Wentao Guan (1):
USB: cdc-acm: Fix bit overlap and move quirk definitions to header

Wentao Liang (1):

      usb: musb: omap2430: Fix use-after-free in omap2430_probe()

Xiaolei Wang (1):
misc: rp1: Send IACK on IRQ activate to fix kdump/kexec

Xu Yang (1):
usb: chipidea: core: convert ci_role_switch to local variable

Yongchao Wu (1):
usb: cdns3: gadget: fix request skipping after clearing halt

Yuqi Xu (1):
bpf: sockmap: fix tail fragment offset in bpf_msg_push_data

Zeng Heng (1):
arm64: tlb: Flush walk cache when unsharing PMD tables

Zhang Cen (2):
USB: serial: belkin_sa: validate interrupt status length
USB: serial: cypress_m8: validate interrupt packet headers

Zhang Heng (1):
ALSA: hda/realtek: Fix speaker output on ASUS ROG Strix G615LP

Zhao Dongdong (1):
Bluetooth: 6lowpan: check skb_clone() return value in send_mcast_pkt()

Zhaoyang Yu (1):
tty: serial: pch_uart: add check for dma_alloc_coherent()

Zhengchuan Liang (2):
ipv6: exthdrs: refresh nh after handling HAO option
xfrm: input: hold netns during deferred transport reinjection

Zhenghang Xiao (3):
Bluetooth: l2cap: clear chan->ident on ECRED reconfiguration success
sctp: fix race between sctp_wait_for_connect and peeloff drm/gem: fix race between change_handle and handle_delete

Ziyi Guo (1):
drm/amdgpu: check num_entries in GEM_OP GET_MAPPING_INFO

Ziyu Zhang (1):
vsock: keep poll shutdown state consistent

hlleng (1):
HID: quirks: Add ALWAYS_POLL quirk for SIGMACHIP USB mouse

author maintainer
#1 lore raw
Documentation/netlink/genetlink-c.yaml +9 -0
index 5a234e9b5fa2..75fc40bd359a 100644
@@ -69,6 +69,15 @@ properties:
         header:
           description: For C-compatible languages, header which already defines this value.
           type: string
+        scope:
+          description: |
+            Visibility of this definition. "uapi" (default) renders into
+            the uAPI header, "kernel" renders into the kernel-side
+            generated header, "user" renders into the user-side
+            generated header. When combined with `header:`, the
+            definition is not rendered, and the named header is
+            included only by code matching the scope.
+          enum: [ uapi, kernel, user ]
         type:
           enum: [ const, enum, flags ]
         doc:
Documentation/netlink/genetlink-legacy.yaml +9 -0
index 66fb8653a344..f9c44747729a 100644
@@ -83,6 +83,15 @@ properties:
         header:
           description: For C-compatible languages, header which already defines this value.
           type: string
+        scope:
+          description: |
+            Visibility of this definition. "uapi" (default) renders into
+            the uAPI header, "kernel" renders into the kernel-side
+            generated header, "user" renders into the user-side
+            generated header. When combined with `header:`, the
+            definition is not rendered, and the named header is
+            included only by code matching the scope.
+          enum: [ uapi, kernel, user ]
         type:
           enum: [ const, enum, flags, struct ] # Trim
         doc:
Documentation/netlink/genetlink.yaml +9 -0
index 7b1ec153e834..825d0e7e1ddd 100644
@@ -55,6 +55,15 @@ properties:
         header:
           description: For C-compatible languages, header which already defines this value.
           type: string
+        scope:
+          description: |
+            Visibility of this definition. "uapi" (default) renders into
+            the uAPI header, "kernel" renders into the kernel-side
+            generated header, "user" renders into the user-side
+            generated header. When combined with `header:`, the
+            definition is not rendered, and the named header is
+            included only by code matching the scope.
+          enum: [ uapi, kernel, user ]
         type:
           enum: [ const, enum, flags ]
         doc:
Documentation/netlink/netlink-raw.yaml +9 -0
index 246fa07bccf6..f7c905c99936 100644
@@ -81,6 +81,15 @@ properties:
         header:
           description: For C-compatible languages, header which already defines this value.
           type: string
+        scope:
+          description: |
+            Visibility of this definition. "uapi" (default) renders into
+            the uAPI header, "kernel" renders into the kernel-side
+            generated header, "user" renders into the user-side
+            generated header. When combined with `header:`, the
+            definition is not rendered, and the named header is
+            included only by code matching the scope.
+          enum: [ uapi, kernel, user ]
         type:
           enum: [ const, enum, flags, struct ] # Trim
         doc:
Documentation/netlink/specs/handshake.yaml +8 -0
index 95c3fade7a8d..1024297b3851 100644
@@ -12,6 +12,12 @@ protocol: genetlink
 doc: Netlink protocol to request a transport layer security handshake.
 
 definitions:
+  -
+    type: const
+    name: max-errno
+    value: 4095
+    header: linux/err.h
+    scope: kernel
   -
     type: enum
     name: handler-class
@@ -80,6 +86,8 @@ attribute-sets:
       -
         name: status
         type: u32
+        checks:
+          max: max-errno
       -
         name: sockfd
         type: s32
Makefile +1 -1
index 5087bd6183dd..0b24b388e16c 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 18
-SUBLEVEL = 34
+SUBLEVEL = 35
 EXTRAVERSION =
 NAME = Baby Opossum Posse
 
arch/arm64/include/asm/tlb.h +1 -1
index 8d762607285c..b3b863c919fe 100644
@@ -53,7 +53,7 @@ static inline int tlb_get_level(struct mmu_gather *tlb)
 static inline void tlb_flush(struct mmu_gather *tlb)
 {
 	struct vm_area_struct vma = TLB_FLUSH_VMA(tlb->mm, 0);
-	bool last_level = !tlb->freed_tables;
+	bool last_level = !(tlb->freed_tables || tlb->unshared_tables);
 	unsigned long stride = tlb_get_unmap_size(tlb);
 	int tlb_level = tlb_get_level(tlb);
 
arch/arm64/kvm/nested.c +20 -13
index f04cda40545b..df956559fd06 100644
@@ -89,21 +89,28 @@ int kvm_vcpu_init_nested(struct kvm_vcpu *vcpu)
 	 * again, and there is no reason to affect the whole VM for this.
 	 */
 	num_mmus = atomic_read(&kvm->online_vcpus) * S2_MMU_PER_VCPU;
-	tmp = kvrealloc(kvm->arch.nested_mmus,
-			size_mul(sizeof(*kvm->arch.nested_mmus), num_mmus),
-			GFP_KERNEL_ACCOUNT | __GFP_ZERO);
-	if (!tmp)
-		return -ENOMEM;
 
-	swap(kvm->arch.nested_mmus, tmp);
+	if (num_mmus > kvm->arch.nested_mmus_size) {
+		tmp = kvcalloc(num_mmus, sizeof(*tmp), GFP_KERNEL_ACCOUNT);
+		if (!tmp)
+			return -ENOMEM;
 
-	/*
-	 * If we went through a realocation, adjust the MMU back-pointers in
-	 * the previously initialised kvm_pgtable structures.
-	 */
-	if (kvm->arch.nested_mmus != tmp)
-		for (int i = 0; i < kvm->arch.nested_mmus_size; i++)
-			kvm->arch.nested_mmus[i].pgt->mmu = &kvm->arch.nested_mmus[i];
+		write_lock(&kvm->mmu_lock);
+
+		if (kvm->arch.nested_mmus_size) {
+			memcpy(tmp, kvm->arch.nested_mmus,
+			       size_mul(sizeof(*tmp), kvm->arch.nested_mmus_size));
+
+			for (int i = 0; i < kvm->arch.nested_mmus_size; i++)
+				tmp[i].pgt->mmu = &tmp[i];
+		}
+
+		swap(kvm->arch.nested_mmus, tmp);
+
+		write_unlock(&kvm->mmu_lock);
+
+		kvfree(tmp);
+	}
 
 	for (int i = kvm->arch.nested_mmus_size; !ret && i < num_mmus; i++)
 		ret = init_nested_s2_mmu(kvm, &kvm->arch.nested_mmus[i]);
arch/arm64/kvm/pmu-emul.c +2 -2
index b03dbda7f1ab..3d4515154b5d 100644
@@ -174,8 +174,8 @@ static void kvm_pmu_set_pmc_value(struct kvm_pmc *pmc, u64 val, bool force)
 		 * action is to use PMCR.P, which will reset them to
 		 * 0 (the only use of the 'force' parameter).
 		 */
-		val  = __vcpu_sys_reg(vcpu, reg) & GENMASK(63, 32);
-		val |= lower_32_bits(val);
+		val = (__vcpu_sys_reg(vcpu, reg) & GENMASK(63, 32)) |
+		      lower_32_bits(val);
 	}
 
 	__vcpu_assign_sys_reg(vcpu, reg, val);
arch/arm64/kvm/vgic/vgic-its.c +4 -2
index a4c0fb7f02ea..fa58668bcf1b 100644
@@ -597,8 +597,10 @@ static void vgic_its_invalidate_cache(struct vgic_its *its)
 	unsigned long idx;
 
 	xa_for_each(&its->translation_cache, idx, irq) {
-		xa_erase(&its->translation_cache, idx);
-		vgic_put_irq(kvm, irq);
+		/* Only the context that erases the entry drops its cache ref. */
+		irq = xa_erase(&its->translation_cache, idx);
+		if (irq)
+			vgic_put_irq(kvm, irq);
 	}
 }
 
arch/mips/dec/platform.c +108 -1

125 lines not on this page · raw message

arch/riscv/include/asm/syscall_wrapper.h +4 -0
index ac80216549ff..226289c3b5c8 100644
@@ -32,6 +32,10 @@ asmlinkage long __riscv_sys_ni_syscall(const struct pt_regs *);
 	__diag_push();									\
 	__diag_ignore(GCC, 8, "-Wattribute-alias",					\
 			"Type aliasing is used to sanitize syscall arguments");		\
+	__diag_ignore(clang, 23, "-Wunknown-warning-option",				\
+		      "Avoid breaking versions without -Wattribute-alias");		\
+	__diag_ignore(clang, 23, "-Wattribute-alias",					\
+			"Type aliasing is used to sanitize syscall arguments");		\
 	static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, 	\
 					ulong)						\
 			__attribute__((alias(__stringify(___se_##prefix##name))));	\
arch/x86/kernel/cpu/cpuid-deps.c +1 -0
index 46efcbd6afa4..155df2e58674 100644
@@ -89,6 +89,7 @@ static const struct cpuid_dep cpuid_deps[] = {
 	{ X86_FEATURE_SHSTK,			X86_FEATURE_XSAVES    },
 	{ X86_FEATURE_FRED,			X86_FEATURE_LKGS      },
 	{ X86_FEATURE_SPEC_CTRL_SSBD,		X86_FEATURE_SPEC_CTRL },
+	{ X86_FEATURE_INVLPGB,			X86_FEATURE_PCID      },
 	{}
 };
 
arch/x86/kernel/fpu/signal.c +8 -3
index c3ec2512f2bb..20b638c507ca 100644
@@ -27,14 +27,19 @@
 static inline bool check_xstate_in_sigframe(struct fxregs_state __user *fxbuf,
 					    struct _fpx_sw_bytes *fx_sw)
 {
+	int min_xstate_size = sizeof(struct fxregs_state) +
+			      sizeof(struct xstate_header);
 	void __user *fpstate = fxbuf;
 	unsigned int magic2;
 
 	if (__copy_from_user(fx_sw, &fxbuf->sw_reserved[0], sizeof(*fx_sw)))
 		return false;
 
-	/* Check for the first magic field */
-	if (fx_sw->magic1 != FP_XSTATE_MAGIC1)
+	/* Check for the first magic field and other error scenarios. */
+	if (fx_sw->magic1 != FP_XSTATE_MAGIC1 ||
+	    fx_sw->xstate_size < min_xstate_size ||
+	    fx_sw->xstate_size > x86_task_fpu(current)->fpstate->user_size ||
+	    fx_sw->xstate_size > fx_sw->extended_size)
 		goto setfx;
 
 	/*
@@ -43,7 +48,7 @@ static inline bool check_xstate_in_sigframe(struct fxregs_state __user *fxbuf,
 	 * fpstate layout with out copying the extended state information
 	 * in the memory layout.
 	 */
-	if (__get_user(magic2, (__u32 __user *)(fpstate + x86_task_fpu(current)->fpstate->user_size)))
+	if (__get_user(magic2, (__u32 __user *)(fpstate + fx_sw->xstate_size)))
 		return false;
 
 	if (likely(magic2 == FP_XSTATE_MAGIC2))
arch/x86/kernel/ftrace.c +7 -0
index 4450acec9390..41d6807cec41 100644
@@ -370,6 +370,13 @@ create_trampoline(struct ftrace_ops *ops, unsigned int *tramp_size)
 			goto fail;
 	}
 
+	/*
+	 * Generated trampoline may contain rIP-relative addressing which
+	 * displacement needs to be fixed.
+	 */
+	text_poke_apply_relocation(trampoline, trampoline, size,
+				   (void *)start_offset, size);
+
 	/*
 	 * The address of the ftrace_ops that is used for this trampoline
 	 * is stored at the end of the trampoline. This will be used to
arch/x86/kvm/svm/avic.c +29 -6
index ba844088581f..d7531e7aff4d 100644
@@ -186,6 +186,35 @@ static void avic_activate_vmcb(struct vcpu_svm *svm)
 
 	svm_clr_intercept(svm, INTERCEPT_CR8_WRITE);
 
+	/*
+	 * Flush the TLB when enabling (x2)AVIC and when transitioning between
+	 * xAVIC and x2AVIC, as the CPU may have inserted a TLB entry for the
+	 * "wrong" mapping.
+	 *
+	 * KVM uses a per-VM "scratch" page to back the APIC memslot, because
+	 * KVM also uses per-VM page tables *and* maintains the page table (NPT
+	 * or shadow page) mappings for said memslot even if one or more vCPUs
+	 * have their local APIC hardware-disabled or are in x2APIC mode, i.e.
+	 * even if one or more vCPUs' APIC MMIO BAR is effectively disabled.
+	 *
+	 * If xAVIC is fully enabled, hardware ignores the physical address in
+	 * KVM's page tables, i.e. in the leaf SPTE for the APIC memslot, and
+	 * instead redirects the access to the AVIC backing page, i.e. to the
+	 * vCPU's virtual APIC page.  If xAVIC is not enabled (APIC is either
+	 * hardware-disabled or in x2APIC mode), then guest accesses will use
+	 * the page table mapping verbatim, i.e. will access the per-VM scratch
+	 * page, as normal memory.
+	 *
+	 * In both cases, the CPU is allowed to cache TLB entries for the APIC
+	 * base GPA.  So, KVM needs to flush the TLB when enabling xAVIC, as
+	 * accesses need to be redirected to the virtual APIC page, but the TLB
+	 * may contain entries pointing at the scratch page.  KVM also needs to
+	 * flush the TLB when enabling x2AVIC, as accesses need to go to the
+	 * scratch page, but the TLB may contain entries tagged as xAVIC, i.e.
+	 * entries pointing to the vCPU's virtual APIC page.
+	 */
+	kvm_make_request(KVM_REQ_TLB_FLUSH_CURRENT, &svm->vcpu);
+
 	/*
 	 * Note: KVM supports hybrid-AVIC mode, where KVM emulates x2APIC MSR
 	 * accesses, while interrupt injection to a running vCPU can be
@@ -199,12 +228,6 @@ static void avic_activate_vmcb(struct vcpu_svm *svm)
 		/* Disabling MSR intercept for x2APIC registers */
 		avic_set_x2apic_msr_interception(svm, false);
 	} else {
-		/*
-		 * Flush the TLB, the guest may have inserted a non-APIC
-		 * mapping into the TLB while AVIC was disabled.
-		 */
-		kvm_make_request(KVM_REQ_TLB_FLUSH_CURRENT, &svm->vcpu);
-
 		/* Enabling MSR intercept for x2APIC registers */
 		avic_set_x2apic_msr_interception(svm, true);
 	}
arch/x86/kvm/svm/sev.c +53 -23

200 lines not on this page · raw message

drivers/accel/rocket/rocket_gem.c +12 -5
index c3c86e1abd25..b1b24d60973e 100644
@@ -78,11 +78,6 @@ int rocket_ioctl_create_bo(struct drm_device *dev, void *data, struct drm_file *
 	rkt_obj->size = args->size;
 	rkt_obj->offset = 0;
 
-	ret = drm_gem_handle_create(file, gem_obj, &args->handle);
-	drm_gem_object_put(gem_obj);
-	if (ret)
-		goto err;
-
 	sgt = drm_gem_shmem_get_pages_sgt(shmem_obj);
 	if (IS_ERR(sgt)) {
 		ret = PTR_ERR(sgt);
@@ -94,6 +89,8 @@ int rocket_ioctl_create_bo(struct drm_device *dev, void *data, struct drm_file *
 					 rkt_obj->size, PAGE_SIZE,
 					 0, 0);
 	mutex_unlock(&rocket_priv->mm_lock);
+	if (ret)
+		goto err;
 
 	ret = iommu_map_sgtable(rocket_priv->domain->domain,
 				rkt_obj->mm.start,
@@ -111,8 +108,18 @@ int rocket_ioctl_create_bo(struct drm_device *dev, void *data, struct drm_file *
 	args->offset = drm_vma_node_offset_addr(&gem_obj->vma_node);
 	args->dma_address = rkt_obj->mm.start;
 
+	ret = drm_gem_handle_create(file, gem_obj, &args->handle);
+	if (ret)
+		goto err_unmap;
+
+	drm_gem_object_put(gem_obj);
+
 	return 0;
 
+err_unmap:
+	iommu_unmap(rocket_priv->domain->domain,
+		    rkt_obj->mm.start, rkt_obj->size);
+
 err_remove_node:
 	mutex_lock(&rocket_priv->mm_lock);
 	drm_mm_remove_node(&rkt_obj->mm);
drivers/android/binder/allocation.rs +8 -0
index 7f65a9c3a0e5..d9113e9b98b2 100644
@@ -160,6 +160,14 @@ pub(crate) fn set_info_target_node(&mut self, target_node: NodeRef) {
         self.get_or_init_info().target_node = Some(target_node);
     }
 
+    pub(crate) fn take_oneway_node(&mut self) -> Option<DArc<Node>> {
+        if let Some(info) = self.allocation_info.as_mut() {
+            info.oneway_node.take()
+        } else {
+            None
+        }
+    }
+
     /// Reserve enough space to push at least `num_fds` fds.
     pub(crate) fn info_add_fd_reserve(&mut self, num_fds: usize) -> Result {
         self.get_or_init_info()
drivers/android/binder/process.rs +6 -1
index 7d66d8cba932..5e95aee95347 100644
@@ -1366,7 +1366,12 @@ fn deferred_release(self: Arc<Self>) {
         // Clear delivered_deaths list.
         //
         // Scope ensures that MutexGuard is dropped while executing the body.
-        while let Some(delivered_death) = { self.inner.lock().delivered_deaths.pop_front() } {
+        while let Some(delivered_death) = {
+            // Explicitly bind to avoid tail expression lifetime extension of the lockguard
+            // Can be removed when the kernel moves to edition 2024
+            let maybe_death = self.inner.lock().delivered_deaths.pop_front();
+            maybe_death
+        } {
             drop(delivered_death);
         }
 
drivers/android/binder/transaction.rs +10 -1
index 4bd3c0e417eb..50bd1cee0f1a 100644
@@ -239,7 +239,8 @@ fn drop_outstanding_txn(&self) {
     /// Not used for replies.
     pub(crate) fn submit(self: DLArc<Self>) -> BinderResult {
         // Defined before `process_inner` so that the destructor runs after releasing the lock.
-        let mut _t_outdated;
+        let _t_outdated;
+        let _oneway_node;
 
         let oneway = self.flags & TF_ONE_WAY != 0;
         let process = self.to.clone();
@@ -255,6 +256,14 @@ pub(crate) fn submit(self: DLArc<Self>) -> BinderResult {
                         if let Some(t_outdated) =
                             target_node.take_outdated_transaction(&self, &mut process_inner)
                         {
+                            let mut alloc_guard = t_outdated.allocation.lock();
+                            if let Some(alloc) = (*alloc_guard).as_mut() {
+                                // Take the oneway node to prevent `Allocation::drop` from calling
+                                // `pending_oneway_finished()`, which would be incorrect as this
+                                // transaction is not being submitted.
+                                _oneway_node = alloc.take_oneway_node();
+                            }
+                            drop(alloc_guard);
                             // Save the transaction to be dropped after locks are released.
                             _t_outdated = t_outdated;
                         }
drivers/auxdisplay/line-display.c +1 -1
index 8590a4cd21e0..35dc24013e9d 100644
@@ -90,7 +90,7 @@ static int linedisp_display(struct linedisp *linedisp, const char *msg,
 		count = strlen(msg);
 
 	/* if the string ends with a newline, trim it */
-	if (msg[count - 1] == '\n')
+	if (count && msg[count - 1] == '\n')
 		count--;
 
 	if (!count) {
drivers/bluetooth/btusb.c +7 -1
index 40f0c3b4eee6..25236fd97aed 100644
@@ -3478,7 +3478,13 @@ static int btusb_setup_qca_load_rampatch(struct hci_dev *hdev,
 		    "firmware rome 0x%x build 0x%x",
 		    rver_rom, rver_patch, ver_rom, ver_patch);
 
-	if (rver_rom != ver_rom || rver_patch <= ver_patch) {
+	/* Allow rampatch when the patch version equals the firmware version.
+	 * A firmware download may be aborted by a transient USB error (e.g.
+	 * disconnect) after the controller updates version info but before
+	 * completion.
+	 * Allowing equal versions enables re-flashing during recovery.
+	 */
+	if (rver_rom != ver_rom || rver_patch < ver_patch) {
 		bt_dev_err(hdev, "rampatch file version did not match with firmware");
 		err = -EINVAL;
 		goto done;
drivers/bluetooth/hci_qca.c +20 -22

128 lines not on this page · raw message

drivers/comedi/drivers/comedi_test.c +3 -2
index 7984950f0f99..866c4a5fe04f 100644
@@ -274,6 +274,7 @@ static int waveform_ai_cmdtest(struct comedi_device *dev,
 	/* Step 2a : make sure trigger sources are unique */
 
 	err |= comedi_check_trigger_is_unique(cmd->convert_src);
+	err |= comedi_check_trigger_is_unique(cmd->scan_begin_src);
 	err |= comedi_check_trigger_is_unique(cmd->stop_src);
 
 	/* Step 2b : and mutually compatible */
@@ -324,10 +325,10 @@ static int waveform_ai_cmdtest(struct comedi_device *dev,
 		arg = min(arg,
 			  rounddown(UINT_MAX, (unsigned int)NSEC_PER_USEC));
 		arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC);
-		if (cmd->scan_begin_arg == TRIG_TIMER) {
+		if (cmd->scan_begin_src == TRIG_TIMER) {
 			/* limit convert_arg to keep scan_begin_arg in range */
 			limit = UINT_MAX / cmd->scan_end_arg;
-			limit = rounddown(limit, (unsigned int)NSEC_PER_SEC);
+			limit = rounddown(limit, (unsigned int)NSEC_PER_USEC);
 			arg = min(arg, limit);
 		}
 		err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg);
drivers/counter/counter-core.c +2 -1
index 50bd30ba3d03..0b1dac61b7b5 100644
@@ -124,7 +124,8 @@ struct counter_device *counter_alloc(size_t sizeof_priv)
 
 err_dev_set_name:
 
-	counter_chrdev_remove(counter);
+	put_device(dev);
+	return NULL;
 err_chrdev_add:
 
 	ida_free(&counter_ida, dev->id);
drivers/cpufreq/intel_pstate.c +7 -6
index eb7fb25dfbef..7fb6412b5f19 100644
@@ -909,6 +909,11 @@ static struct freq_attr *hwp_cpufreq_attrs[] = {
 	[HWP_CPUFREQ_ATTR_COUNT] = NULL,
 };
 
+static u8 hybrid_get_cpu_type(unsigned int cpu)
+{
+	return cpu_data(cpu).topo.intel_type;
+}
+
 static bool no_cas __ro_after_init;
 
 static struct cpudata *hybrid_max_perf_cpu __read_mostly;
@@ -2299,18 +2304,14 @@ static int knl_get_turbo_pstate(int cpu)
 static int hwp_get_cpu_scaling(int cpu)
 {
 	if (hybrid_scaling_factor) {
-		struct cpuinfo_x86 *c = &cpu_data(cpu);
-		u8 cpu_type = c->topo.intel_type;
-
 		/*
 		 * Return the hybrid scaling factor for P-cores and use the
 		 * default core scaling for E-cores.
 		 */
-		if (cpu_type == INTEL_CPU_TYPE_CORE)
+		if (hybrid_get_cpu_type(cpu) != INTEL_CPU_TYPE_ATOM)
 			return hybrid_scaling_factor;
 
-		if (cpu_type == INTEL_CPU_TYPE_ATOM)
-			return core_get_scaling();
+		return core_get_scaling();
 	}
 
 	/* Use core scaling on non-hybrid systems. */
drivers/gpio/gpio-adnp.c +3 -1
index e5ac2d211013..fe5bcaa90496 100644
@@ -237,7 +237,9 @@ static irqreturn_t adnp_irq(int irq, void *data)
 		unsigned long pending;
 		int err;
 
-		scoped_guard(mutex, &adnp->i2c_lock) {
+		{
+			guard(mutex)(&adnp->i2c_lock);
+
 			err = adnp_read(adnp, GPIO_PLR(adnp) + i, &level);
 			if (err < 0)
 				continue;
drivers/gpio/gpio-mxc.c +1 -1
index 441ba95b38cf..dbdf0f41b6bb 100644
@@ -469,7 +469,7 @@ static int mxc_gpio_probe(struct platform_device *pdev)
 		 * the handler is needed only once, but doing it for every port
 		 * is more robust and easier.
 		 */
-		port->irq_high = -1;
+		port->irq_high = 0;
 		port->mx_irq_handler = mx2_gpio_irq_handler;
 	} else
 		port->mx_irq_handler = mx3_gpio_irq_handler;
drivers/gpio/gpio-rockchip.c +17 -6
index 0fff4a699f12..1ef0ba956cfd 100644
@@ -638,10 +638,17 @@ static int rockchip_gpiolib_register(struct rockchip_pin_bank *bank)
 	return ret;
 }
 
+static void rockchip_clk_put(void *data)
+{
+	struct clk *clk = data;
+
+	clk_put(clk);
+}
+
 static int rockchip_get_bank_data(struct rockchip_pin_bank *bank)
 {
 	struct resource res;
-	int id = 0;
+	int id = 0, ret;
 
 	if (of_address_to_resource(bank->of_node, 0, &res)) {
 		dev_err(bank->dev, "cannot find IO resource for bank\n");
@@ -656,11 +663,10 @@ static int rockchip_get_bank_data(struct rockchip_pin_bank *bank)
 	if (!bank->irq)
 		return -EINVAL;
 
-	bank->clk = of_clk_get(bank->of_node, 0);
+	bank->clk = devm_clk_get_enabled(bank->dev, NULL);
 	if (IS_ERR(bank->clk))
 		return PTR_ERR(bank->clk);
 
-	clk_prepare_enable(bank->clk);
 	id = readl(bank->reg_base + gpio_regs_v2.version_id);
 
 	switch (id) {
@@ -672,9 +678,13 @@ static int rockchip_get_bank_data(struct rockchip_pin_bank *bank)
 		bank->db_clk = of_clk_get(bank->of_node, 1);
 		if (IS_ERR(bank->db_clk)) {
 			dev_err(bank->dev, "cannot find debounce clk\n");
-			clk_disable_unprepare(bank->clk);
 			return -EINVAL;
 		}
+
+		ret = devm_add_action_or_reset(bank->dev, rockchip_clk_put,
+					       bank->db_clk);
+		if (ret)
+			return ret;
 		break;
 	case GPIO_TYPE_V1:
 		bank->gpio_regs = &gpio_regs_v1;
@@ -751,7 +761,6 @@ static int rockchip_gpio_probe(struct platform_device *pdev)
 
 	ret = rockchip_gpiolib_register(bank);
 	if (ret) {
-		clk_disable_unprepare(bank->clk);
 		mutex_unlock(&bank->deferred_lock);
 		return ret;
 	}
@@ -792,7 +801,9 @@ static void rockchip_gpio_remove(struct platform_device *pdev)
 {
 	struct rockchip_pin_bank *bank = platform_get_drvdata(pdev);
 
-	clk_disable_unprepare(bank->clk);
+	irq_set_chained_handler_and_data(bank->irq, NULL, NULL);
+	if (bank->domain)
+		irq_domain_remove(bank->domain);
 	gpiochip_remove(&bank->gpio_chip);
 }
 
drivers/gpio/gpio-virtuser.c +2 -2
index 252fec5ea383..1901b4ba558f 100644
@@ -399,7 +399,7 @@ static ssize_t gpio_virtuser_direction_do_write(struct file *file,
 	char buf[32], *trimmed;
 	int ret, dir, val = 0;
 
-	if (count >= sizeof(buf))
+	if (*ppos != 0 || count >= sizeof(buf))
 		return -EINVAL;
 
 	ret = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count);
@@ -626,7 +626,7 @@ static ssize_t gpio_virtuser_consumer_write(struct file *file,
 	char buf[GPIO_VIRTUSER_NAME_BUF_LEN + 2];
 	int ret;
 
-	if (count >= sizeof(buf))
+	if (*ppos != 0 || count >= sizeof(buf))
 		return -EINVAL;
 
 	ret = simple_write_to_buffer(buf, GPIO_VIRTUSER_NAME_BUF_LEN, ppos,
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +9 -2
index 1631a0431ea8..1bc1233487a0 100644
@@ -1074,9 +1074,16 @@ int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data,
 		 * If that number is larger than the size of the array, the ioctl must
 		 * be retried.
 		 */
+		if (args->num_entries > INT_MAX / sizeof(*vm_entries)) {
+			r = -EINVAL;
+			goto out_exec;
+		}
+
 		vm_entries = kvcalloc(args->num_entries, sizeof(*vm_entries), GFP_KERNEL);
-		if (!vm_entries)
-			return -ENOMEM;
+		if (!vm_entries) {
+			r = -ENOMEM;
+			goto out_exec;
+		}
 
 		amdgpu_vm_bo_va_for_each_valid_mapping(bo_va, mapping) {
 			if (num_mappings < args->num_entries) {
drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c +1 -0
index 2c6a6b858112..621c57cf24bd 100644
@@ -78,6 +78,7 @@ static bool amdgpu_hmm_invalidate_gfx(struct mmu_interval_notifier *mni,
 
 	mmu_interval_set_seq(mni, cur_seq);
 
+	amdgpu_vm_bo_invalidate(bo, false);
 	r = dma_resv_wait_timeout(bo->tbo.base.resv, DMA_RESV_USAGE_BOOKKEEP,
 				  false, MAX_SCHEDULE_TIMEOUT);
 	mutex_unlock(&adev->notifier_lock);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +5 -2
index 0d7c48927f39..ffbae605caaa 100644
@@ -1610,6 +1610,7 @@ int amdgpu_vm_handle_moved(struct amdgpu_device *adev,
 {
 	struct amdgpu_bo_va *bo_va;
 	struct dma_resv *resv;
+	struct amdgpu_bo *bo;
 	bool clear, unlock;
 	int r;
 
@@ -1629,11 +1630,13 @@ int amdgpu_vm_handle_moved(struct amdgpu_device *adev,
 	while (!list_empty(&vm->invalidated)) {
 		bo_va = list_first_entry(&vm->invalidated, struct amdgpu_bo_va,
 					 base.vm_status);
-		resv = bo_va->base.bo->tbo.base.resv;
+		bo = bo_va->base.bo;
+		resv = bo->tbo.base.resv;
 		spin_unlock(&vm->status_lock);
 
 		/* Try to reserve the BO to avoid clearing its ptes */
-		if (!adev->debug_vm && dma_resv_trylock(resv)) {
+		if (!adev->debug_vm && !amdgpu_ttm_tt_get_usermm(bo->tbo.ttm) &&
+		    dma_resv_trylock(resv)) {
 			clear = false;
 			unlock = true;
 		/* The caller is already holding the reservation lock */
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +5 -5
index 0fcf150b9ffa..09ebfe8a3062 100644
@@ -2253,6 +2253,11 @@ static int criu_restore_devices(struct kfd_process *p,
 			ret = -EINVAL;
 			goto exit;
 		}
+
+		if (pdd->drm_file) {
+			ret = -EINVAL;
+			goto exit;
+		}
 		pdd->user_gpu_id = device_buckets[i].user_gpu_id;
 
 		drm_file = fget(device_buckets[i].drm_fd);
@@ -2263,11 +2268,6 @@ static int criu_restore_devices(struct kfd_process *p,
 			goto exit;
 		}
 
-		if (pdd->drm_file) {
-			ret = -EINVAL;
-			goto exit;
-		}
-
 		/* create the vm using render nodes for kfd pdd */
 		if (kfd_process_device_init_vm(pdd, drm_file)) {
 			pr_err("could not init vm for given pdd\n");
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +5 -3
index 51a47a91e21e..b0466a04ec4b 100644
@@ -3292,12 +3292,14 @@ static void copy_context_work_handler(struct work_struct *work)
 
 static uint32_t *get_queue_ids(uint32_t num_queues, uint32_t *usr_queue_id_array)
 {
-	size_t array_size = num_queues * sizeof(uint32_t);
-
 	if (!usr_queue_id_array)
 		return NULL;
 
-	return memdup_user(usr_queue_id_array, array_size);
+	if (num_queues > KFD_MAX_NUM_OF_QUEUES_PER_PROCESS)
+		return ERR_PTR(-EINVAL);
+
+	return memdup_user(usr_queue_id_array,
+			   array_size(num_queues, sizeof(uint32_t)));
 }
 
 int resume_queues(struct kfd_process *p,
drivers/gpu/drm/amd/amdkfd/kfd_svm.c +3 -0
index a24b3c00f9f0..04e4bf41ccf7 100644
@@ -3680,6 +3680,9 @@ svm_range_set_attr(struct kfd_process *p, struct mm_struct *mm,
 
 	svms = &p->svms;
 
+	if (!process_info)
+		return -EINVAL;
+
 	mutex_lock(&process_info->lock);
 
 	svm_range_list_lock_and_flush_work(svms, mm);
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c +4 -0
index c25e72e31d8b..0385b24e7e4a 100644
@@ -3081,6 +3081,10 @@ static bool si_dpm_vblank_too_short(void *handle)
 	/* we never hit the non-gddr5 limit so disable it */
 	u32 switch_limit = adev->gmc.vram_type == AMDGPU_VRAM_TYPE_GDDR5 ? 450 : 0;
 
+	/* Disregard vblank time when there are no displays connected */
+	if (!adev->pm.pm_display_cfg.num_display)
+		return false;
+
 	/* Consider zero vblank time too short and disable MCLK switching.
 	 * Note that the vblank time is set to maximum when no displays are attached,
 	 * so we'll still enable MCLK switching in that case.
drivers/gpu/drm/bridge/sil-sii8620.c +1 -0
index 9e48ad39e1cc..923e2ed30624 100644
@@ -2221,6 +2221,7 @@ static void sii8620_detach(struct drm_bridge *bridge)
 		return;
 
 	rc_unregister_device(ctx->rc_dev);
+	rc_free_device(ctx->rc_dev);
 }
 
 static int sii8620_is_packing_required(struct sii8620 *ctx,
drivers/gpu/drm/drm_gem.c +2 -0
index cc34ee8e1d48..d9f861de2df3 100644
@@ -1015,6 +1015,7 @@ int drm_gem_change_handle_ioctl(struct drm_device *dev, void *data,
 	       goto out_unlock;
        }
 
+	idr_replace(&file_priv->object_idr, NULL, args->handle);
 	spin_unlock(&file_priv->table_lock);
 
 	if (obj->dma_buf) {
@@ -1023,6 +1024,7 @@ int drm_gem_change_handle_ioctl(struct drm_device *dev, void *data,
 		if (ret < 0) {
 			spin_lock(&file_priv->table_lock);
 			idr_remove(&file_priv->object_idr, handle);
+			idr_replace(&file_priv->object_idr, obj, args->handle);
 			spin_unlock(&file_priv->table_lock);
 			goto out_unlock;
 		}
drivers/gpu/drm/hyperv/hyperv_drm_proto.c +97 -16

153 lines not on this page · raw message

drivers/gpu/drm/i915/display/intel_display_core.h +1 -0
index 8c226406c5cd..800a30b8bcd8 100644
@@ -472,6 +472,7 @@ struct intel_display {
 		u8 vblank_enabled;
 
 		int vblank_enable_count;
+		bool vblank_status_last_notified;
 
 		struct work_struct vblank_notify_work;
 
drivers/gpu/drm/i915/display/intel_display_irq.c +6 -2
index 123e054affbe..21b2a193bb21 100644
@@ -1707,8 +1707,12 @@ static void intel_display_vblank_notify_work(struct work_struct *work)
 	struct intel_display *display =
 		container_of(work, typeof(*display), irq.vblank_notify_work);
 	int vblank_enable_count = READ_ONCE(display->irq.vblank_enable_count);
+	bool vblank_status = !!vblank_enable_count;
 
-	intel_psr_notify_vblank_enable_disable(display, vblank_enable_count);
+	if (display->irq.vblank_status_last_notified != vblank_status) {
+		intel_psr_notify_vblank_enable_disable(display, vblank_status);
+		display->irq.vblank_status_last_notified = vblank_status;
+	}
 }
 
 int bdw_enable_vblank(struct drm_crtc *_crtc)
@@ -1721,10 +1725,10 @@ int bdw_enable_vblank(struct drm_crtc *_crtc)
 	if (gen11_dsi_configure_te(crtc, true))
 		return 0;
 
+	spin_lock_irqsave(&display->irq.lock, irqflags);
 	if (crtc->vblank_psr_notify && display->irq.vblank_enable_count++ == 0)
 		schedule_work(&display->irq.vblank_notify_work);
 
-	spin_lock_irqsave(&display->irq.lock, irqflags);
 	bdw_enable_pipe_irq(display, pipe, GEN8_PIPE_VBLANK);
 	spin_unlock_irqrestore(&display->irq.lock, irqflags);
 
drivers/gpu/drm/i915/display/intel_display_types.h +3 -0
index 39dd7389f1a7..0496b3263ed1 100644
@@ -1690,6 +1690,8 @@ struct intel_psr {
 	bool pkg_c_latency_used;
 
 	u8 active_non_psr_pipes;
+
+	struct ref_tracker *vblank_wakeref;
 };
 
 struct intel_dp {
@@ -1710,6 +1712,7 @@ struct intel_dp {
 	u8 lttpr_common_caps[DP_LTTPR_COMMON_CAP_SIZE];
 	u8 lttpr_phy_caps[DP_MAX_LTTPR_COUNT][DP_LTTPR_PHY_CAP_SIZE];
 	u8 pcon_dsc_dpcd[DP_PCON_DSC_ENCODER_CAP_SIZE];
+	u8 intel_wa_dpcd;
 	/* source rates */
 	int num_source_rates;
 	const int *source_rates;
drivers/gpu/drm/i915/display/intel_dpcd.h new file +15 -0
new file mode 100644
index 000000000000..4aea5326f2ed
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2026 Intel Corporation
+ */
+
+#ifndef __INTEL_DPCD_H__
+#define __INTEL_DPCD_H__
+
+#define INTEL_DPCD_INTEL_WA_REGISTER_CAPS					0x3f0
+# define INTEL_DPCD_INTEL_WA_REGISTER_CAPS_PSR2_EARLYSCANLINE_SDP_SUPPORT_MASK	REG_GENMASK(1, 0)
+# define INTEL_DPCD_INTEL_WA_REGISTER_CAPS_FALL_BACK_TO_PSR1			0
+# define INTEL_DPCD_INTEL_WA_REGISTER_CAPS_PSR2_WITH_EARLY_SCANLINE		1
+# define INTEL_DPCD_INTEL_WA_REGISTER_CAPS_PSR2_WITHOUT_EARLY_SCANLINE		2
+
+#endif /* __INTEL_DPCD_H__ */
drivers/gpu/drm/i915/display/intel_psr.c +44 -16

102 lines not on this page · raw message

drivers/gpu/drm/i915/gem/i915_gem_ttm.c +16 -12
index 1f4814968868..3d53c54eb48f 100644
@@ -416,8 +416,6 @@ void i915_ttm_free_cached_io_rsgt(struct drm_i915_gem_object *obj)
 int i915_ttm_purge(struct drm_i915_gem_object *obj)
 {
 	struct ttm_buffer_object *bo = i915_gem_to_ttm(obj);
-	struct i915_ttm_tt *i915_tt =
-		container_of(bo->ttm, typeof(*i915_tt), ttm);
 	struct ttm_operation_ctx ctx = {
 		.interruptible = true,
 		.no_wait_gpu = false,
@@ -432,16 +430,22 @@ int i915_ttm_purge(struct drm_i915_gem_object *obj)
 	if (ret)
 		return ret;
 
-	if (bo->ttm && i915_tt->filp) {
-		/*
-		 * The below fput(which eventually calls shmem_truncate) might
-		 * be delayed by worker, so when directly called to purge the
-		 * pages(like by the shrinker) we should try to be more
-		 * aggressive and release the pages immediately.
-		 */
-		shmem_truncate_range(file_inode(i915_tt->filp),
-				     0, (loff_t)-1);
-		fput(fetch_and_zero(&i915_tt->filp));
+	if (bo->ttm) {
+		struct i915_ttm_tt *i915_tt =
+			container_of(bo->ttm, typeof(*i915_tt), ttm);
+
+		if (i915_tt->filp) {
+			/*
+			 * The below fput(which eventually calls shmem_truncate)
+			 * might be delayed by worker, so when directly called
+			 * to purge the pages(like by the shrinker) we should
+			 * try to be more aggressive and release the pages
+			 * immediately.
+			 */
+			shmem_truncate_range(file_inode(i915_tt->filp),
+					     0, (loff_t)-1);
+			fput(fetch_and_zero(&i915_tt->filp));
+		}
 	}
 
 	obj->write_domain = 0;
drivers/gpu/drm/xe/xe_guc_ads.c +5 -0
index 0e2bece1d8b8..db71823b2538 100644
@@ -772,6 +772,11 @@ static unsigned int guc_mmio_regset_write(struct xe_guc_ads *ads,
 		}
 	}
 
+	if (XE_GT_WA(hwe->gt, 16023105232))
+		guc_mmio_regset_write_one(ads, regset_map,
+					  RING_IDLEDLY(hwe->mmio_base),
+					  count++);
+
 	return count;
 }
 
drivers/hid/hid-ids.h +1 -0
index a24592893345..96a9fa53e4ad 100644
@@ -1244,6 +1244,7 @@
 
 #define USB_VENDOR_ID_SIGMA_MICRO	0x1c4f
 #define USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD	0x0002
+#define USB_DEVICE_ID_SIGMA_MICRO_USB_MOUSE	0x0034
 #define USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD2	0x0059
 
 #define USB_VENDOR_ID_SIGMATEL		0x066F
drivers/hid/hid-picolcd_cir.c +1 -0
index d6faa0e00f95..6d4c636e1c9f 100644
@@ -134,5 +134,6 @@ void picolcd_exit_cir(struct picolcd_data *data)
 
 	data->rc_dev = NULL;
 	rc_unregister_device(rdev);
+	rc_free_device(rdev);
 }
 
drivers/hid/hid-quirks.c +1 -0
index 04d3ec360c1d..ebf865c2dbb3 100644
@@ -186,6 +186,7 @@ static const struct hid_device_id hid_quirks[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SEMICO, USB_DEVICE_ID_SEMICO_USB_KEYKOARD), HID_QUIRK_NO_INIT_REPORTS },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SENNHEISER, USB_DEVICE_ID_SENNHEISER_BTD500USB), HID_QUIRK_NOGET },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SIGMA_MICRO, USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD), HID_QUIRK_NO_INIT_REPORTS },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_SIGMA_MICRO, USB_DEVICE_ID_SIGMA_MICRO_USB_MOUSE), HID_QUIRK_ALWAYS_POLL },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SIGMATEL, USB_DEVICE_ID_SIGMATEL_STMP3780), HID_QUIRK_NOGET },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SIS_TOUCH, USB_DEVICE_ID_SIS1030_TOUCH), HID_QUIRK_NOGET },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SIS_TOUCH, USB_DEVICE_ID_SIS817_TOUCH), HID_QUIRK_NOGET },
drivers/hid/wacom_sys.c +10 -3
index a448cfcca4c4..63b5fed9415d 100644
@@ -356,6 +356,7 @@ static void wacom_feature_mapping(struct hid_device *hdev,
 
 		hid_data->inputmode = field->report->id;
 		hid_data->inputmode_index = usage->usage_index;
+		hid_data->inputmode_field_index = field->index;
 		break;
 
 	case HID_UP_DIGITIZER:
@@ -571,9 +572,14 @@ static int wacom_hid_set_device_mode(struct hid_device *hdev)
 
 	re = &(hdev->report_enum[HID_FEATURE_REPORT]);
 	r = re->report_id_hash[hid_data->inputmode];
-	if (r) {
-		r->field[0]->value[hid_data->inputmode_index] = 2;
-		hid_hw_request(hdev, r, HID_REQ_SET_REPORT);
+	if (r && hid_data->inputmode_field_index >= 0 &&
+	    hid_data->inputmode_field_index < r->maxfield) {
+		struct hid_field *field = r->field[hid_data->inputmode_field_index];
+
+		if (field && hid_data->inputmode_index < field->report_count) {
+			field->value[hid_data->inputmode_index] = 2;
+			hid_hw_request(hdev, r, HID_REQ_SET_REPORT);
+		}
 	}
 	return 0;
 }
@@ -2846,6 +2852,7 @@ static int wacom_probe(struct hid_device *hdev,
 		return -ENODEV;
 
 	wacom_wac->hid_data.inputmode = -1;
+	wacom_wac->hid_data.inputmode_field_index = -1;
 	wacom_wac->mode_report = -1;
 
 	if (hid_is_usb(hdev)) {
drivers/hid/wacom_wac.h +1 -0
index d4f7d8ca1e7e..126bec6e5c0c 100644
@@ -295,6 +295,7 @@ struct wacom_shared {
 struct hid_data {
 	__s16 inputmode;	/* InputMode HID feature, -1 if non-existent */
 	__s16 inputmode_index;	/* InputMode HID feature index in the report */
+	__s16 inputmode_field_index; /* InputMode HID feature field index in the report */
 	bool sense_state;
 	bool inrange_state;
 	bool eraser;
drivers/hwmon/pmbus/adm1266.c +7 -0
index 9631a64cb1eb..58917ef0f304 100644
@@ -173,6 +173,8 @@ static int adm1266_gpio_get(struct gpio_chip *chip, unsigned int offset)
 	else
 		pmbus_cmd = ADM1266_PDIO_STATUS;
 
+	guard(pmbus_lock)(data->client);
+
 	ret = i2c_smbus_read_block_data(data->client, pmbus_cmd, read_buf);
 	if (ret < 0)
 		return ret;
@@ -195,6 +197,8 @@ static int adm1266_gpio_get_multiple(struct gpio_chip *chip, unsigned long *mask
 	unsigned int gpio_nr;
 	int ret;
 
+	guard(pmbus_lock)(data->client);
+
 	ret = i2c_smbus_read_block_data(data->client, ADM1266_GPIO_STATUS, read_buf);
 	if (ret < 0)
 		return ret;
@@ -236,6 +240,8 @@ static void adm1266_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
 	int ret;
 	int i;
 
+	guard(pmbus_lock)(data->client);
+
 	for (i = 0; i < ADM1266_GPIO_NR; i++) {
 		write_cmd = adm1266_gpio_mapping[i][1];
 		ret = adm1266_pmbus_block_xfer(data, ADM1266_GPIO_CONFIG, 1, &write_cmd, read_buf);
@@ -328,6 +334,7 @@ static int adm1266_state_read(struct seq_file *s, void *pdata)
 	struct i2c_client *client = to_i2c_client(dev);
 	int ret;
 
+	guard(pmbus_lock)(client);
 	ret = i2c_smbus_read_word_data(client, ADM1266_READ_STATE);
 	if (ret < 0)
 		return ret;
drivers/hwmon/pmbus/pmbus.h +5 -0
index d2e9bfb5320f..e499cdae9442 100644
@@ -10,6 +10,7 @@
 #define PMBUS_H
 
 #include <linux/bitops.h>
+#include <linux/cleanup.h>
 #include <linux/regulator/driver.h>
 
 /*
@@ -563,7 +564,11 @@ int pmbus_get_fan_rate_device(struct i2c_client *client, int page, int id,
 int pmbus_get_fan_rate_cached(struct i2c_client *client, int page, int id,
 			      enum pmbus_fan_mode mode);
 int pmbus_lock_interruptible(struct i2c_client *client);
+void pmbus_lock(struct i2c_client *client);
 void pmbus_unlock(struct i2c_client *client);
+
+DEFINE_GUARD(pmbus_lock, struct i2c_client *, pmbus_lock(_T), pmbus_unlock(_T))
+
 int pmbus_update_fan(struct i2c_client *client, int page, int id,
 		     u8 config, u8 mask, u16 command);
 struct dentry *pmbus_get_debugfs_dir(struct i2c_client *client);
drivers/hwmon/pmbus/pmbus_core.c +8 -0
index 572be3ebc03d..7150f12d2630 100644
@@ -3871,6 +3871,14 @@ struct dentry *pmbus_get_debugfs_dir(struct i2c_client *client)
 }
 EXPORT_SYMBOL_NS_GPL(pmbus_get_debugfs_dir, "PMBUS");
 
+void pmbus_lock(struct i2c_client *client)
+{
+	struct pmbus_data *data = i2c_get_clientdata(client);
+
+	mutex_lock(&data->update_lock);
+}
+EXPORT_SYMBOL_NS_GPL(pmbus_lock, "PMBUS");
+
 int pmbus_lock_interruptible(struct i2c_client *client)
 {
 	struct pmbus_data *data = i2c_get_clientdata(client);
drivers/i2c/busses/i2c-davinci.c +1 -1
index a773ba082321..66c23535656b 100644
@@ -117,7 +117,7 @@
 /* timeout for pm runtime autosuspend */
 #define DAVINCI_I2C_PM_TIMEOUT	1000	/* ms */
 
-#define DAVINCI_I2C_DEFAULT_BUS_FREQ	100
+#define DAVINCI_I2C_DEFAULT_BUS_FREQ	100000
 
 struct davinci_i2c_dev {
 	struct device           *dev;
drivers/iio/adc/ad4695.c +8 -15
index cda419638d9a..53642de7330d 100644
@@ -876,14 +876,14 @@ static int ad4695_offload_buffer_postenable(struct iio_dev *indio_dev)
 	if (ret)
 		goto err_unoptimize_message;
 
-	ret = spi_offload_trigger_enable(st->offload, st->offload_trigger,
-					 &config);
+	ret = ad4695_enter_advanced_sequencer_mode(st, num_slots);
 	if (ret)
 		goto err_disable_busy_output;
 
-	ret = ad4695_enter_advanced_sequencer_mode(st, num_slots);
+	ret = spi_offload_trigger_enable(st->offload, st->offload_trigger,
+					 &config);
 	if (ret)
-		goto err_offload_trigger_disable;
+		goto err_exit_conversion_mode;
 
 	mutex_lock(&st->cnv_pwm_lock);
 	pwm_get_state(st->cnv_pwm, &state);
@@ -895,23 +895,16 @@ static int ad4695_offload_buffer_postenable(struct iio_dev *indio_dev)
 	ret = pwm_apply_might_sleep(st->cnv_pwm, &state);
 	mutex_unlock(&st->cnv_pwm_lock);
 	if (ret)
-		goto err_offload_exit_conversion_mode;
+		goto err_offload_trigger_disable;
 
 	return 0;
 
-err_offload_exit_conversion_mode:
-	/*
-	 * We have to unwind in a different order to avoid triggering offload.
-	 * ad4695_exit_conversion_mode() triggers a conversion, so it has to be
-	 * done after spi_offload_trigger_disable().
-	 */
-	spi_offload_trigger_disable(st->offload, st->offload_trigger);
-	ad4695_exit_conversion_mode(st);
-	goto err_disable_busy_output;
-
 err_offload_trigger_disable:
 	spi_offload_trigger_disable(st->offload, st->offload_trigger);
 
+err_exit_conversion_mode:
+	ad4695_exit_conversion_mode(st);
+
 err_disable_busy_output:
 	regmap_clear_bits(st->regmap, AD4695_REG_GP_MODE,
 			  AD4695_REG_GP_MODE_BUSY_GP_EN);
drivers/iio/adc/mt6359-auxadc.c +1 -0
index f426a289e867..67ca23d37a21 100644
@@ -497,6 +497,7 @@ static int mt6358_read_imp(struct mt6359_auxadc *adc_dev,
 		return ret;
 
 	/* Read the params before stopping */
+	val_v = 0;
 	regmap_read(regmap, reg_adc0 + (cinfo->imp_adc_num << 1), &val_v);
 
 	mt6358_stop_imp_conv(adc_dev);
drivers/iio/adc/npcm_adc.c +8 -17
index c8283873cdee..0418ecfbabaa 100644
@@ -231,7 +231,7 @@ static int npcm_adc_probe(struct platform_device *pdev)
 	if (IS_ERR(info->reset))
 		return PTR_ERR(info->reset);
 
-	info->adc_clk = devm_clk_get(&pdev->dev, NULL);
+	info->adc_clk = devm_clk_get_enabled(&pdev->dev, NULL);
 	if (IS_ERR(info->adc_clk)) {
 		dev_warn(&pdev->dev, "ADC clock failed: can't read clk\n");
 		return PTR_ERR(info->adc_clk);
@@ -244,17 +244,13 @@ static int npcm_adc_probe(struct platform_device *pdev)
 	info->adc_sample_hz = clk_get_rate(info->adc_clk) / ((div + 1) * 2);
 
 	irq = platform_get_irq(pdev, 0);
-	if (irq < 0) {
-		ret = irq;
-		goto err_disable_clk;
-	}
+	if (irq < 0)
+		return irq;
 
 	ret = devm_request_irq(&pdev->dev, irq, npcm_adc_isr, 0,
 			       "NPCM_ADC", indio_dev);
-	if (ret < 0) {
-		dev_err(dev, "failed requesting interrupt\n");
-		goto err_disable_clk;
-	}
+	if (ret < 0)
+		return ret;
 
 	reg_con = ioread32(info->regs + NPCM_ADCCON);
 	info->vref = devm_regulator_get_optional(&pdev->dev, "vref");
@@ -262,7 +258,7 @@ static int npcm_adc_probe(struct platform_device *pdev)
 		ret = regulator_enable(info->vref);
 		if (ret) {
 			dev_err(&pdev->dev, "Can't enable ADC reference voltage\n");
-			goto err_disable_clk;
+			return ret;
 		}
 
 		iowrite32(reg_con & ~NPCM_ADCCON_REFSEL,
@@ -272,10 +268,8 @@ static int npcm_adc_probe(struct platform_device *pdev)
 		 * Any error which is not ENODEV indicates the regulator
 		 * has been specified and so is a failure case.
 		 */
-		if (PTR_ERR(info->vref) != -ENODEV) {
-			ret = PTR_ERR(info->vref);
-			goto err_disable_clk;
-		}
+		if (PTR_ERR(info->vref) != -ENODEV)
+			return PTR_ERR(info->vref);
 
 		/* Use internal reference */
 		iowrite32(reg_con | NPCM_ADCCON_REFSEL,
@@ -314,8 +308,6 @@ static int npcm_adc_probe(struct platform_device *pdev)
 	iowrite32(reg_con & ~NPCM_ADCCON_ADC_EN, info->regs + NPCM_ADCCON);
 	if (!IS_ERR(info->vref))
 		regulator_disable(info->vref);
-err_disable_clk:
-	clk_disable_unprepare(info->adc_clk);
 
 	return ret;
 }
@@ -332,7 +324,6 @@ static void npcm_adc_remove(struct platform_device *pdev)
 	iowrite32(regtemp & ~NPCM_ADCCON_ADC_EN, info->regs + NPCM_ADCCON);
 	if (!IS_ERR(info->vref))
 		regulator_disable(info->vref);
-	clk_disable_unprepare(info->adc_clk);
 }
 
 static struct platform_driver npcm_adc_driver = {
drivers/iio/adc/viperboard_adc.c +3 -1
index 9bb0b83c8f67..6efe1c618ef7 100644
@@ -70,8 +70,10 @@ static int vprbrd_iio_read_raw(struct iio_dev *iio_dev,
 			VPRBRD_USB_TYPE_OUT, 0x0000, 0x0000, admsg,
 			sizeof(struct vprbrd_adc_msg), VPRBRD_USB_TIMEOUT_MS);
 		if (ret != sizeof(struct vprbrd_adc_msg)) {
-			dev_err(&iio_dev->dev, "usb send error on adc read\n");
+			mutex_unlock(&vb->lock);
 			error = -EREMOTEIO;
+			dev_err(&iio_dev->dev, "usb send error on adc read\n");
+			goto error;
 		}
 
 		ret = usb_control_msg(vb->usb_dev,
drivers/iio/adc/xilinx-xadc-core.c +9 -2
index e257c1b94a5f..3980dfacbcd7 100644
@@ -817,6 +817,7 @@ static int xadc_postdisable(struct iio_dev *indio_dev)
 {
 	struct xadc *xadc = iio_priv(indio_dev);
 	unsigned long scan_mask;
+	int seq_mode;
 	int ret;
 	int i;
 
@@ -824,6 +825,12 @@ static int xadc_postdisable(struct iio_dev *indio_dev)
 	for (i = 0; i < indio_dev->num_channels; i++)
 		scan_mask |= BIT(indio_dev->channels[i].scan_index);
 
+	/*
+	 * Use the correct sequencer mode for the idle state: simultaneous
+	 * mode for dual external mux configurations, continuous otherwise.
+	 */
+	seq_mode = xadc_get_seq_mode(xadc, scan_mask);
+
 	/* Enable all channels and calibration */
 	ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff);
 	if (ret)
@@ -834,11 +841,11 @@ static int xadc_postdisable(struct iio_dev *indio_dev)
 		return ret;
 
 	ret = xadc_update_adc_reg(xadc, XADC_REG_CONF1, XADC_CONF1_SEQ_MASK,
-		XADC_CONF1_SEQ_CONTINUOUS);
+				  seq_mode);
 	if (ret)
 		return ret;
 
-	return xadc_power_adc_b(xadc, XADC_CONF1_SEQ_CONTINUOUS);
+	return xadc_power_adc_b(xadc, seq_mode);
 }
 
 static int xadc_preenable(struct iio_dev *indio_dev)
drivers/iio/buffer/industrialio-hw-consumer.c +2 -2
index 526b2a8d725d..534252db48cf 100644
@@ -82,7 +82,7 @@ static struct hw_consumer_buffer *iio_hw_consumer_get_buffer(
  */
 struct iio_hw_consumer *iio_hw_consumer_alloc(struct device *dev)
 {
-	struct hw_consumer_buffer *buf;
+	struct hw_consumer_buffer *buf, *tmp;
 	struct iio_hw_consumer *hwc;
 	struct iio_channel *chan;
 	int ret;
@@ -113,7 +113,7 @@ struct iio_hw_consumer *iio_hw_consumer_alloc(struct device *dev)
 	return hwc;
 
 err_put_buffers:
-	list_for_each_entry(buf, &hwc->buffers, head)
+	list_for_each_entry_safe(buf, tmp, &hwc->buffers, head)
 		iio_buffer_put(&buf->buffer);
 	iio_channel_release_all(hwc->channels);
 err_free_hwc:
drivers/iio/chemical/mhz19b.c +17 -0
index 3c64154918b1..9d4cf432919e 100644
@@ -52,6 +52,8 @@ struct mhz19b_state {
 	struct completion buf_ready;
 
 	u8 buf_idx;
+	bool buf_overflow;
+
 	/*
 	 * Serdev receive buffer.
 	 * When data is received from the MH-Z19B,
@@ -106,6 +108,10 @@ static int mhz19b_serdev_cmd(struct iio_dev *indio_dev, int cmd, u16 arg)
 	cmd_buf[8] = mhz19b_get_checksum(cmd_buf);
 
 	/* Write buf to uart ctrl synchronously */
+	st->buf_idx = 0;
+	st->buf_overflow = false;
+	reinit_completion(&st->buf_ready);
+
 	ret = serdev_device_write(serdev, cmd_buf, MHZ19B_CMD_SIZE, 0);
 	if (ret < 0)
 		return ret;
@@ -121,6 +127,9 @@ static int mhz19b_serdev_cmd(struct iio_dev *indio_dev, int cmd, u16 arg)
 		if (!ret)
 			return -ETIMEDOUT;
 
+		if (st->buf_overflow)
+			return -EMSGSIZE;
+
 		if (st->buf[8] != mhz19b_get_checksum(st->buf)) {
 			dev_err(dev, "checksum err");
 			return -EINVAL;
@@ -240,6 +249,14 @@ static size_t mhz19b_receive_buf(struct serdev_device *serdev,
 {
 	struct iio_dev *indio_dev = dev_get_drvdata(&serdev->dev);
 	struct mhz19b_state *st = iio_priv(indio_dev);
+	size_t remaining = MHZ19B_CMD_SIZE - st->buf_idx;
+
+	if (len > remaining) {
+		st->buf_idx = 0;
+		st->buf_overflow = true;
+		complete(&st->buf_ready);
+		return len;
+	}
 
 	memcpy(st->buf + st->buf_idx, data, len);
 	st->buf_idx += len;
drivers/iio/chemical/scd30_core.c +1 -1
index a665fcb78806..11d6bc1b63e6 100644
@@ -256,7 +256,7 @@ static int scd30_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const
 	guard(mutex)(&state->lock);
 	switch (mask) {
 	case IIO_CHAN_INFO_SAMP_FREQ:
-		if (val)
+		if (val || !val2)
 			return -EINVAL;
 
 		val = 1000000000 / val2;
drivers/iio/common/ssp_sensors/ssp_dev.c +1 -0
index da09c9f3ceb6..e2538a84c812 100644
@@ -590,6 +590,7 @@ static void ssp_remove(struct spi_device *spi)
 	ssp_clean_pending_list(data);
 
 	free_irq(data->spi->irq, data);
+	cancel_delayed_work_sync(&data->work_refresh);
 
 	timer_delete_sync(&data->wdt_timer);
 	cancel_work_sync(&data->work_wdt);
drivers/iio/dac/ad3530r.c +40 -14

84 lines not on this page · raw message

drivers/iio/dac/ad5686.c +42 -14

123 lines not on this page · raw message

drivers/iio/dac/ad5686.h +1 -0
index e7d36bae3e59..36e16c5c4581 100644
@@ -46,6 +46,7 @@
 
 #define AD5310_REF_BIT_MSK			BIT(8)
 #define AD5683_REF_BIT_MSK			BIT(12)
+#define AD5686_REF_BIT_MSK			BIT(0)
 #define AD5693_REF_BIT_MSK			BIT(12)
 
 /**
drivers/iio/dac/max5821.c +8 -1
index e7e29359f8fe..dd4e35460195 100644
@@ -90,6 +90,7 @@ static int max5821_sync_powerdown_mode(struct max5821_data *data,
 				       const struct iio_chan_spec *chan)
 {
 	u8 outbuf[2];
+	int ret;
 
 	outbuf[0] = MAX5821_EXTENDED_COMMAND_MODE;
 
@@ -103,7 +104,13 @@ static int max5821_sync_powerdown_mode(struct max5821_data *data,
 	else
 		outbuf[1] |= MAX5821_EXTENDED_POWER_UP;
 
-	return i2c_master_send(data->client, outbuf, 2);
+	ret = i2c_master_send(data->client, outbuf, sizeof(outbuf));
+	if (ret < 0)
+		return ret;
+	if (ret != sizeof(outbuf))
+		return -EIO;
+
+	return 0;
 }
 
 static ssize_t max5821_write_dac_powerdown(struct iio_dev *indio_dev,
drivers/iio/gyro/adis16260.c +3 -0
index 586e6cfa14a9..91b9c5f18ec4 100644
@@ -287,6 +287,9 @@ static int adis16260_write_raw(struct iio_dev *indio_dev,
 		addr = adis16260_addresses[chan->scan_index][1];
 		return adis_write_reg_16(adis, addr, val);
 	case IIO_CHAN_INFO_SAMP_FREQ:
+		if (val <= 0)
+			return -EINVAL;
+
 		if (spi_get_device_id(adis->spi)->driver_data)
 			t = 256 / val;
 		else
drivers/iio/gyro/itg3200_buffer.c +1 -1
index cf97adfa9727..87efa2c74ca4 100644
@@ -34,7 +34,7 @@ static int itg3200_read_all_channels(struct i2c_client *i2c, __be16 *buf)
 			.addr = i2c->addr,
 			.flags = i2c->flags | I2C_M_RD,
 			.len = ITG3200_SCAN_ELEMENTS * sizeof(s16),
-			.buf = (char *)&buf,
+			.buf = (char *)buf,
 		},
 	};
 
drivers/iio/imu/adis16550.c +1 -1
index 1f2af506f4bd..75679612052f 100644
@@ -836,7 +836,7 @@ static irqreturn_t adis16550_trigger_handler(int irq, void *p)
 	u16 dummy;
 	bool valid;
 	struct iio_poll_func *pf = p;
-	__be32 data[ADIS16550_MAX_SCAN_DATA] __aligned(8);
+	__be32 data[ADIS16550_MAX_SCAN_DATA] __aligned(8) = { };
 	struct iio_dev *indio_dev = pf->indio_dev;
 	struct adis16550 *st = iio_priv(indio_dev);
 	struct adis *adis = iio_device_get_drvdata(indio_dev);
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c +1 -1
index 07b81e523e63..7cd12de50bf5 100644
@@ -608,7 +608,7 @@ int st_lsm6dsx_read_tagged_fifo(struct st_lsm6dsx_hw *hw)
 	 * must be passed a buffer that is aligned to 8 bytes so
 	 * as to allow insertion of a naturally aligned timestamp.
 	 */
-	u8 iio_buff[ST_LSM6DSX_IIO_BUFF_SIZE] __aligned(8);
+	u8 iio_buff[ST_LSM6DSX_IIO_BUFF_SIZE] __aligned(8) = { };
 	u8 tag;
 	bool reset_ts = false;
 	int i, err, read_len;
drivers/iio/industrialio-buffer.c +1 -0
index c46a5f37ccc9..69191aaaf808 100644
@@ -1911,6 +1911,7 @@ static int iio_buffer_enqueue_dmabuf(struct iio_dev_buffer_pair *ib,
 
 	dma_resv_add_fence(dmabuf->resv, &fence->base,
 			   dma_to_ram ? DMA_RESV_USAGE_WRITE : DMA_RESV_USAGE_READ);
+	dma_fence_put(&fence->base);
 	dma_resv_unlock(dmabuf->resv);
 
 	cookie = dma_fence_begin_signalling();
drivers/iio/inkern.c +5 -1
index 1e5eb5a41271..ce07a401c012 100644
@@ -738,7 +738,11 @@ int iio_read_channel_processed_scale(struct iio_channel *chan, int *val,
 		if (ret < 0)
 			return ret;
 
-		return iio_multiply_value(val, scale, ret, pval, pval2);
+		ret = iio_multiply_value(val, scale, ret, pval, pval2);
+		if (ret < 0)
+			return ret;
+
+		return 0;
 	} else {
 		ret = iio_channel_read(chan, val, NULL, IIO_CHAN_INFO_RAW);
 		if (ret < 0)
drivers/iio/light/cm3323.c +2 -3
index 79ad6e2209ca..0fe61b8a7029 100644
@@ -89,15 +89,14 @@ static int cm3323_init(struct iio_dev *indio_dev)
 
 	/* enable sensor and set auto force mode */
 	ret &= ~(CM3323_CONF_SD_BIT | CM3323_CONF_AF_BIT);
+	data->reg_conf = ret;
 
-	ret = i2c_smbus_write_word_data(data->client, CM3323_CMD_CONF, ret);
+	ret = i2c_smbus_write_word_data(data->client, CM3323_CMD_CONF, data->reg_conf);
 	if (ret < 0) {
 		dev_err(&data->client->dev, "Error writing reg_conf\n");
 		return ret;
 	}
 
-	data->reg_conf = ret;
-
 	return 0;
 }
 
drivers/iio/light/veml6070.c +2 -12
index 74d7246e5225..4bbd86d0cb46 100644
@@ -245,13 +245,6 @@ static const struct iio_info veml6070_info = {
 	.write_raw = veml6070_write_raw,
 };
 
-static void veml6070_i2c_unreg(void *p)
-{
-	struct veml6070_data *data = p;
-
-	i2c_unregister_device(data->client2);
-}
-
 static int veml6070_probe(struct i2c_client *client)
 {
 	struct veml6070_data *data;
@@ -281,7 +274,8 @@ static int veml6070_probe(struct i2c_client *client)
 	if (ret < 0)
 		return ret;
 
-	data->client2 = i2c_new_dummy_device(client->adapter, VEML6070_ADDR_DATA_LSB);
+	data->client2 = devm_i2c_new_dummy_device(&client->dev, client->adapter,
+						  VEML6070_ADDR_DATA_LSB);
 	if (IS_ERR(data->client2))
 		return dev_err_probe(&client->dev, PTR_ERR(data->client2),
 				     "i2c device for second chip address failed\n");
@@ -292,10 +286,6 @@ static int veml6070_probe(struct i2c_client *client)
 	if (ret < 0)
 		return ret;
 
-	ret = devm_add_action_or_reset(&client->dev, veml6070_i2c_unreg, data);
-	if (ret < 0)
-		return ret;
-
 	return devm_iio_device_register(&client->dev, indio_dev);
 }
 
drivers/iio/magnetometer/st_magn_core.c +11 -2
index ef348d316c00..7644bd04654b 100644
@@ -506,6 +506,11 @@ static const struct st_sensors_platform_data default_magn_pdata = {
 	.drdy_int_pin = 2,
 };
 
+/* LIS2MDL only supports DRDY on INT1 */
+static const struct st_sensors_platform_data alt_magn_pdata = {
+	.drdy_int_pin = 1,
+};
+
 static int st_magn_read_raw(struct iio_dev *indio_dev,
 			struct iio_chan_spec const *ch, int *val,
 							int *val2, long mask)
@@ -628,8 +633,12 @@ int st_magn_common_probe(struct iio_dev *indio_dev)
 	mdata->current_fullscale = &mdata->sensor_settings->fs.fs_avl[0];
 	mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz;
 
-	if (!pdata)
-		pdata = (struct st_sensors_platform_data *)&default_magn_pdata;
+	if (!pdata) {
+		if (mdata->sensor_settings->drdy_irq.int2.mask)
+			pdata = (struct st_sensors_platform_data *)&default_magn_pdata;
+		else
+			pdata = (struct st_sensors_platform_data *)&alt_magn_pdata;
+	}
 
 	err = st_sensors_init_sensor(indio_dev, pdata);
 	if (err < 0)
drivers/iio/pressure/bmp280-core.c +1 -1
index d983ce9c0b99..9b489766e457 100644
@@ -2616,7 +2616,7 @@ static irqreturn_t bmp580_trigger_handler(int irq, void *p)
 		__le32 comp_temp;
 		__le32 comp_press;
 		aligned_s64 timestamp;
-	} buffer;
+	} buffer = { };
 	int ret;
 
 	guard(mutex)(&data->lock);
drivers/iio/temperature/tsys01.c +1 -1
index 334bba6fdae6..104dd45598b0 100644
@@ -119,7 +119,7 @@ static bool tsys01_crc_valid(u16 *n_prom)
 	u8 sum = 0;
 
 	for (cnt = 0; cnt < TSYS01_PROM_WORDS_NB; cnt++)
-		sum += ((n_prom[0] >> 8) + (n_prom[0] & 0xFF));
+		sum += ((n_prom[cnt] >> 8) + (n_prom[cnt] & 0xFF));
 
 	return (sum == 0);
 }
drivers/input/joystick/xpad.c +10 -4
index 627e8950e451..ebfb841aafee 100644
@@ -220,6 +220,10 @@ static const struct xpad_device {
 	{ 0x07ff, 0xffff, "Mad Catz GamePad", 0, XTYPE_XBOX360 },
 	{ 0x0b05, 0x1a38, "ASUS ROG RAIKIRI", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
 	{ 0x0b05, 0x1abb, "ASUS ROG RAIKIRI PRO", 0, XTYPE_XBOXONE },
+	{ 0x0b05, 0x1c91, "ASUS ROG RAIKIRI II", 0, XTYPE_XBOX360 },
+	{ 0x0b05, 0x1c92, "ASUS ROG RAIKIRI II WIRELESS", 0, XTYPE_XBOX360 },
+	{ 0x0b05, 0x1c96, "ASUS ROG RAIKIRI II XBOX", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
+	{ 0x0b05, 0x1d04, "ASUS ROG RAIKIRI II XBOX WIRELESS", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
 	{ 0x0c12, 0x0005, "Intec wireless", 0, XTYPE_XBOX },
 	{ 0x0c12, 0x8801, "Nyko Xbox Controller", 0, XTYPE_XBOX },
 	{ 0x0c12, 0x8802, "Zeroplus Xbox Controller", 0, XTYPE_XBOX },
@@ -425,6 +429,7 @@ static const struct xpad_device {
 	{ 0x3285, 0x0662, "Nacon Revolution5 Pro", 0, XTYPE_XBOX360 },
 	{ 0x3285, 0x0663, "Nacon Evol-X", 0, XTYPE_XBOXONE },
 	{ 0x3537, 0x1004, "GameSir T4 Kaleid", 0, XTYPE_XBOX360 },
+	{ 0x3537, 0x100f, "GameSir Nova 2 Lite", 0, XTYPE_XBOX360 },
 	{ 0x3537, 0x1010, "GameSir G7 SE", 0, XTYPE_XBOXONE },
 	{ 0x3651, 0x1000, "CRKD SG", 0, XTYPE_XBOX360 },
 	{ 0x366c, 0x0005, "ByoWave Proteus Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE, FLAG_DELAY_INIT },
@@ -541,6 +546,7 @@ static const struct usb_device_id xpad_table[] = {
 	{ USB_DEVICE(0x0738, 0x4540) },		/* Mad Catz Beat Pad */
 	XPAD_XBOXONE_VENDOR(0x0738),		/* Mad Catz FightStick TE 2 */
 	XPAD_XBOX360_VENDOR(0x07ff),		/* Mad Catz Gamepad */
+	XPAD_XBOX360_VENDOR(0x0b05),		/* ASUS controllers */
 	XPAD_XBOXONE_VENDOR(0x0b05),		/* ASUS controllers */
 	XPAD_XBOX360_VENDOR(0x0c12),		/* Zeroplus X-Box 360 controllers */
 	XPAD_XBOX360_VENDOR(0x0db0),		/* Micro Star International X-Box 360 controllers */
@@ -1110,10 +1116,10 @@ static void xpadone_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char
 		input_report_key(dev, BTN_START,  data[4] & BIT(2));
 		input_report_key(dev, BTN_SELECT, data[4] & BIT(3));
 		if (xpad->mapping & MAP_SHARE_BUTTON) {
-			if (xpad->mapping & MAP_SHARE_OFFSET)
-				input_report_key(dev, KEY_RECORD, data[len - 26] & BIT(0));
-			else
-				input_report_key(dev, KEY_RECORD, data[len - 18] & BIT(0));
+			u32 offset = (xpad->mapping & MAP_SHARE_OFFSET) ? 26 : 18;
+
+			if (len >= offset)
+				input_report_key(dev, KEY_RECORD, data[len - offset] & BIT(0));
 		}
 
 		/* buttons A,B,X,Y */
drivers/input/misc/ims-pcu.c +1 -1
index 4581f1c53644..22d34644254d 100644
@@ -1604,7 +1604,7 @@ static void ims_pcu_buffers_free(struct ims_pcu *pcu)
 	usb_kill_urb(pcu->urb_in);
 	usb_free_urb(pcu->urb_in);
 
-	usb_free_coherent(pcu->udev, pcu->max_out_size,
+	usb_free_coherent(pcu->udev, pcu->max_in_size,
 			  pcu->urb_in_buf, pcu->read_dma);
 
 	kfree(pcu->urb_out_buf);
drivers/input/mouse/elan_i2c_core.c +5 -0
index fee1796da3d0..74f822cd8774 100644
@@ -645,6 +645,11 @@ static ssize_t elan_sysfs_update_fw(struct device *dev,
 		return error;
 	}
 
+	if (fw->size < data->fw_signature_address + sizeof(signature)) {
+		dev_err(dev, "firmware file too small\n");
+		return -EBADF;
+	}
+
 	/* Firmware file must match signature data */
 	fw_signature = &fw->data[data->fw_signature_address];
 	if (memcmp(fw_signature, signature, sizeof(signature)) != 0) {
drivers/input/mouse/synaptics.c +1 -0
index c5c88a75a019..4fbb58cc145d 100644
@@ -190,6 +190,7 @@ static const char * const smbus_pnp_ids[] = {
 	"LEN2044", /* L470  */
 	"LEN2054", /* E480 */
 	"LEN2055", /* E580 */
+	"LEN2058", /* E490 */
 	"LEN2068", /* T14 Gen 1 */
 	"SYN1221", /* TUXEDO InfinityBook Pro 14 v5 */
 	"SYN3003", /* HP EliteBook 850 G1 */
drivers/input/touchscreen/atmel_mxt_ts.c +1 -1
index dd0544cc1bc1..15bac83ea92e 100644
@@ -1477,7 +1477,7 @@ static int mxt_prepare_cfg_mem(struct mxt_data *data, struct mxt_cfg *cfg)
 			}
 			cfg->raw_pos += offset;
 
-			if (i > mxt_obj_size(object))
+			if (i >= mxt_obj_size(object))
 				continue;
 
 			byte_offset = reg + i - cfg->start_ofs;
drivers/input/touchscreen/usbtouchscreen.c +5 -0
index 7567efabe014..cc4a0d3b8a80 100644
@@ -1070,6 +1070,11 @@ static int nexio_read_data(struct usbtouch_usb *usbtouch, unsigned char *pkt)
 	if (x_len > 0xff)
 		x_len -= 0x80;
 
+	if (data_len > usbtouch->data_size - sizeof(*packet))
+		data_len = usbtouch->data_size - sizeof(*packet);
+	if (x_len > data_len)
+		x_len = data_len;
+
 	/* send ACK */
 	ret = usb_submit_urb(priv->ack, GFP_ATOMIC);
 	if (ret)
drivers/iommu/io-pgtable-arm-v7s.c +12 -6
index 523355e91a2c..2aeb774ab024 100644
@@ -777,21 +777,27 @@ struct io_pgtable_init_fns io_pgtable_arm_v7s_init_fns = {
 
 static struct io_pgtable_cfg *cfg_cookie __initdata;
 
-static void __init dummy_tlb_flush_all(void *cookie)
+/*
+ * __noipa prevents gcc from turning indirect iommu_flush_ops calls
+ * into direct calls from a specialized __arm_v7s_unmap() that triggers
+ * a build time section mismatch assertion.
+ */
+static __noipa void __init dummy_tlb_flush_all(void *cookie)
 {
 	WARN_ON(cookie != cfg_cookie);
 }
 
-static void __init dummy_tlb_flush(unsigned long iova, size_t size,
-				   size_t granule, void *cookie)
+static __noipa void __init dummy_tlb_flush(unsigned long iova, size_t size,
+					   size_t granule, void *cookie)
 {
 	WARN_ON(cookie != cfg_cookie);
 	WARN_ON(!(size & cfg_cookie->pgsize_bitmap));
 }
 
-static void __init dummy_tlb_add_page(struct iommu_iotlb_gather *gather,
-				      unsigned long iova, size_t granule,
-				      void *cookie)
+static __noipa void __init dummy_tlb_add_page(struct iommu_iotlb_gather *gather,
+					      unsigned long iova,
+					      size_t granule,
+					      void *cookie)
 {
 	dummy_tlb_flush(iova, granule, granule, cookie);
 }
drivers/mailbox/mailbox.c +8 -7
index b77162db509f..60866e8417c9 100644
@@ -52,7 +52,7 @@ static void msg_submit(struct mbox_chan *chan)
 	int err = -EBUSY;
 
 	scoped_guard(spinlock_irqsave, &chan->lock) {
-		if (!chan->msg_count || chan->active_req)
+		if (!chan->msg_count || chan->active_req != MBOX_NO_MSG)
 			break;
 
 		count = chan->msg_count;
@@ -87,13 +87,13 @@ static void tx_tick(struct mbox_chan *chan, int r)
 
 	scoped_guard(spinlock_irqsave, &chan->lock) {
 		mssg = chan->active_req;
-		chan->active_req = NULL;
+		chan->active_req = MBOX_NO_MSG;
 	}
 
 	/* Submit next message */
 	msg_submit(chan);
 
-	if (!mssg)
+	if (mssg == MBOX_NO_MSG)
 		return;
 
 	/* Notify the client */
@@ -114,7 +114,7 @@ static enum hrtimer_restart txdone_hrtimer(struct hrtimer *hrtimer)
 	for (i = 0; i < mbox->num_chans; i++) {
 		struct mbox_chan *chan = &mbox->chans[i];
 
-		if (chan->active_req && chan->cl) {
+		if (chan->active_req != MBOX_NO_MSG && chan->cl) {
 			txdone = chan->mbox->ops->last_tx_done(chan);
 			if (txdone)
 				tx_tick(chan, 0);
@@ -246,7 +246,7 @@ int mbox_send_message(struct mbox_chan *chan, void *mssg)
 {
 	int t;
 
-	if (!chan || !chan->cl)
+	if (!chan || !chan->cl || mssg == MBOX_NO_MSG)
 		return -EINVAL;
 
 	t = add_to_rbuf(chan, mssg);
@@ -319,7 +319,7 @@ static int __mbox_bind_client(struct mbox_chan *chan, struct mbox_client *cl)
 	scoped_guard(spinlock_irqsave, &chan->lock) {
 		chan->msg_free = 0;
 		chan->msg_count = 0;
-		chan->active_req = NULL;
+		chan->active_req = MBOX_NO_MSG;
 		chan->cl = cl;
 		init_completion(&chan->tx_complete);
 
@@ -477,7 +477,7 @@ void mbox_free_channel(struct mbox_chan *chan)
 	/* The queued TX requests are simply aborted, no callbacks are made */
 	scoped_guard(spinlock_irqsave, &chan->lock) {
 		chan->cl = NULL;
-		chan->active_req = NULL;
+		chan->active_req = MBOX_NO_MSG;
 		if (chan->txdone_method == TXDONE_BY_ACK)
 			chan->txdone_method = TXDONE_BY_POLL;
 	}
@@ -531,6 +531,7 @@ int mbox_controller_register(struct mbox_controller *mbox)
 
 		chan->cl = NULL;
 		chan->mbox = mbox;
+		chan->active_req = MBOX_NO_MSG;
 		chan->txdone_method = txdone;
 		spin_lock_init(&chan->lock);
 	}
drivers/mailbox/tegra-hsp.c +1 -1
index ed9a0bb2bcd8..7991e8dba579 100644
@@ -497,7 +497,7 @@ static int tegra_hsp_mailbox_flush(struct mbox_chan *chan,
 			mbox_chan_txdone(chan, 0);
 
 			/* Wait until channel is empty */
-			if (chan->active_req != NULL)
+			if (chan->active_req != MBOX_NO_MSG)
 				continue;
 
 			return 0;
drivers/md/bcache/super.c +2 -1
index 2f06945533d6..d4ebd13a59f8 100644
@@ -1378,7 +1378,8 @@ static CLOSURE_CALLBACK(cached_dev_free)
 	 * The sb_bio is embedded in struct cached_dev, so we must
 	 * ensure no I/O is in progress.
 	 */
-	closure_sync(&dc->sb_write);
+	down(&dc->sb_write_mutex);
+	up(&dc->sb_write_mutex);
 
 	if (dc->sb_disk)
 		folio_put(virt_to_folio(dc->sb_disk));
drivers/media/cec/core/cec-core.c +1 -1
index dd6e24a0899b..1b8a33c05b3c 100644
@@ -338,8 +338,8 @@ int cec_register_adapter(struct cec_adapter *adap,
 	res = cec_devnode_register(&adap->devnode, adap->owner);
 	if (res) {
 #ifdef CONFIG_MEDIA_CEC_RC
-		/* Note: rc_unregister also calls rc_free */
 		rc_unregister_device(adap->rc);
+		rc_free_device(adap->rc);
 		adap->rc = NULL;
 #endif
 		return res;
drivers/media/common/siano/smsir.c +1 -0
index d85c78c104b9..5f4c0aa7a0d7 100644
@@ -92,6 +92,7 @@ int sms_ir_init(struct smscore_device_t *coredev)
 void sms_ir_exit(struct smscore_device_t *coredev)
 {
 	rc_unregister_device(coredev->ir.dev);
+	rc_free_device(coredev->ir.dev);
 
 	pr_debug("\n");
 }
drivers/media/i2c/ir-kbd-i2c.c +2 -0
index 5588cdd7ec20..604745317004 100644
@@ -355,6 +355,7 @@ static void ir_work(struct work_struct *work)
 		mutex_unlock(&ir->lock);
 		if (rc == -ENODEV) {
 			rc_unregister_device(ir->rc);
+			rc_free_device(ir->rc);
 			ir->rc = NULL;
 			return;
 		}
@@ -972,6 +973,7 @@ static void ir_remove(struct i2c_client *client)
 	i2c_unregister_device(ir->tx_c);
 
 	rc_unregister_device(ir->rc);
+	rc_free_device(ir->rc);
 }
 
 static const struct i2c_device_id ir_kbd_id[] = {
drivers/media/pci/bt8xx/bttv-input.c +2 -1
index 84aa269248fd..f84fcf96eca9 100644
@@ -572,8 +572,9 @@ void bttv_input_fini(struct bttv *btv)
 	if (btv->remote == NULL)
 		return;
 
-	bttv_ir_stop(btv);
 	rc_unregister_device(btv->remote->dev);
+	bttv_ir_stop(btv);
+	rc_free_device(btv->remote->dev);
 	kfree(btv->remote);
 	btv->remote = NULL;
 }
drivers/media/pci/cx23885/cx23885-input.c +1 -0
index d2e84c6457e0..722329ef3fd2 100644
@@ -402,6 +402,7 @@ void cx23885_input_fini(struct cx23885_dev *dev)
 	if (dev->kernel_ir == NULL)
 		return;
 	rc_unregister_device(dev->kernel_ir->rc);
+	rc_free_device(dev->kernel_ir->rc);
 	kfree(dev->kernel_ir->phys);
 	kfree(dev->kernel_ir->name);
 	kfree(dev->kernel_ir);
drivers/media/pci/cx88/cx88-input.c +2 -1
index b9f2c14d62b4..4757787c3f59 100644
@@ -509,8 +509,9 @@ int cx88_ir_fini(struct cx88_core *core)
 	if (!ir)
 		return 0;
 
-	cx88_ir_stop(core);
 	rc_unregister_device(ir->dev);
+	cx88_ir_stop(core);
+	rc_free_device(ir->dev);
 	kfree(ir);
 
 	/* done */
drivers/media/pci/dm1105/dm1105.c +1 -0
index 9e9c7c071acc..e1185aa669f4 100644
@@ -763,6 +763,7 @@ static int dm1105_ir_init(struct dm1105_dev *dm1105)
 static void dm1105_ir_exit(struct dm1105_dev *dm1105)
 {
 	rc_unregister_device(dm1105->ir.dev);
+	rc_free_device(dm1105->ir.dev);
 }
 
 static int dm1105_hw_init(struct dm1105_dev *dev)
drivers/media/pci/mantis/mantis_input.c +1 -0
index 34c0d979240f..edb4cacf55d2 100644
@@ -72,5 +72,6 @@ EXPORT_SYMBOL_GPL(mantis_input_init);
 void mantis_input_exit(struct mantis_pci *mantis)
 {
 	rc_unregister_device(mantis->rc);
+	rc_free_device(mantis->rc);
 }
 EXPORT_SYMBOL_GPL(mantis_input_exit);
drivers/media/pci/saa7134/saa7134-input.c +1 -0
index 468dbe8d552f..d39537c95d9d 100644
@@ -834,6 +834,7 @@ void saa7134_input_fini(struct saa7134_dev *dev)
 		return;
 
 	rc_unregister_device(dev->remote->dev);
+	rc_free_device(dev->remote->dev);
 	kfree(dev->remote);
 	dev->remote = NULL;
 }
drivers/media/pci/smipcie/smipcie-ir.c +1 -0
index c0604d9c7011..0bbe4fa2d5a8 100644
@@ -181,5 +181,6 @@ void smi_ir_exit(struct smi_dev *dev)
 
 	rc_unregister_device(rc_dev);
 	smi_ir_stop(ir);
+	rc_free_device(rc_dev);
 	ir->rc_dev = NULL;
 }
drivers/media/pci/ttpci/budget-ci.c +1 -0
index 33f08adf4feb..16973ac8e6a9 100644
@@ -249,6 +249,7 @@ static void msp430_ir_deinit(struct budget_ci *budget_ci)
 	cancel_work_sync(&budget_ci->ir.msp430_irq_bh_work);
 
 	rc_unregister_device(budget_ci->ir.dev);
+	rc_free_device(budget_ci->ir.dev);
 }
 
 static int ciintf_read_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int address)
drivers/media/rc/ati_remote.c +3 -3
index a733914a2574..f1fd4765651c 100644
@@ -921,7 +921,6 @@ static int ati_remote_probe(struct usb_interface *interface,
 	input_free_device(input_dev);
  exit_unregister_device:
 	rc_unregister_device(rc_dev);
-	rc_dev = NULL;
  exit_kill_urbs:
 	usb_kill_urb(ati_remote->irq_urb);
 	usb_kill_urb(ati_remote->out_urb);
@@ -941,18 +940,19 @@ static void ati_remote_disconnect(struct usb_interface *interface)
 	struct ati_remote *ati_remote;
 
 	ati_remote = usb_get_intfdata(interface);
-	usb_set_intfdata(interface, NULL);
 	if (!ati_remote) {
 		dev_warn(&interface->dev, "%s - null device?\n", __func__);
 		return;
 	}
 
+	rc_unregister_device(ati_remote->rdev);
+	usb_set_intfdata(interface, NULL);
 	usb_kill_urb(ati_remote->irq_urb);
 	usb_kill_urb(ati_remote->out_urb);
 	if (ati_remote->idev)
 		input_unregister_device(ati_remote->idev);
-	rc_unregister_device(ati_remote->rdev);
 	ati_remote_free_buffers(ati_remote);
+	rc_free_device(ati_remote->rdev);
 	kfree(ati_remote);
 }
 
drivers/media/rc/ene_ir.c +1 -1
index d6c54a3bccc2..136fc4192265 100644
@@ -1090,7 +1090,6 @@ static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id)
 	release_region(dev->hw_io, ENE_IO_SIZE);
 exit_unregister_device:
 	rc_unregister_device(rdev);
-	rdev = NULL;
 exit_free_dev_rdev:
 	rc_free_device(rdev);
 	kfree(dev);
@@ -1110,6 +1109,7 @@ static void ene_remove(struct pnp_dev *pnp_dev)
 	ene_rx_restore_hw_buffer(dev);
 	spin_unlock_irqrestore(&dev->hw_lock, flags);
 
+	rc_free_device(dev->rdev);
 	free_irq(dev->irq, dev);
 	release_region(dev->hw_io, ENE_IO_SIZE);
 	kfree(dev);
drivers/media/rc/fintek-cir.c +2 -1
index 3fb0968efd57..9b789097cdd4 100644
@@ -568,6 +568,7 @@ static void fintek_remove(struct pnp_dev *pdev)
 	struct fintek_dev *fintek = pnp_get_drvdata(pdev);
 	unsigned long flags;
 
+	rc_unregister_device(fintek->rdev);
 	spin_lock_irqsave(&fintek->fintek_lock, flags);
 	/* disable CIR */
 	fintek_disable_cir(fintek);
@@ -580,7 +581,7 @@ static void fintek_remove(struct pnp_dev *pdev)
 	free_irq(fintek->cir_irq, fintek);
 	release_region(fintek->cir_addr, fintek->cir_port_len);
 
-	rc_unregister_device(fintek->rdev);
+	rc_free_device(fintek->rdev);
 
 	kfree(fintek);
 }
drivers/media/rc/igorplugusb.c +2 -1
index e7e31776453c..48931b833b43 100644
@@ -184,7 +184,7 @@ static int igorplugusb_probe(struct usb_interface *intf,
 	if (!ir->buf_in)
 		goto fail;
 	usb_fill_control_urb(ir->urb, udev,
-		usb_rcvctrlpipe(udev, 0), (uint8_t *)&ir->request,
+		usb_rcvctrlpipe(udev, 0), (uint8_t *)ir->request,
 		ir->buf_in, MAX_PACKET, igorplugusb_callback, ir);
 
 	usb_make_path(udev, ir->phys, sizeof(ir->phys));
@@ -247,6 +247,7 @@ static void igorplugusb_disconnect(struct usb_interface *intf)
 	usb_set_intfdata(intf, NULL);
 	usb_unpoison_urb(ir->urb);
 	usb_free_urb(ir->urb);
+	rc_free_device(ir->rc);
 	kfree(ir->buf_in);
 	kfree(ir->request);
 }
drivers/media/rc/iguanair.c +1 -0
index 8af94246e591..7bd6dd725415 100644
@@ -500,6 +500,7 @@ static void iguanair_disconnect(struct usb_interface *intf)
 	usb_set_intfdata(intf, NULL);
 	usb_kill_urb(ir->urb_in);
 	usb_kill_urb(ir->urb_out);
+	rc_free_device(ir->rc);
 	usb_free_urb(ir->urb_in);
 	usb_free_urb(ir->urb_out);
 	usb_free_coherent(ir->udev, MAX_IN_PACKET, ir->buf_in, ir->dma_in);
drivers/media/rc/img-ir/img-ir-hw.c +2 -1
index 63f6f5b36838..f30adf4d8444 100644
@@ -1118,9 +1118,10 @@ void img_ir_remove_hw(struct img_ir_priv *priv)
 	struct rc_dev *rdev = hw->rdev;
 	if (!rdev)
 		return;
+	rc_unregister_device(rdev);
 	img_ir_set_decoder(priv, NULL, 0);
 	hw->rdev = NULL;
-	rc_unregister_device(rdev);
+	rc_free_device(rdev);
 #ifdef CONFIG_COMMON_CLK
 	if (!IS_ERR(priv->clk))
 		clk_notifier_unregister(priv->clk, &hw->clk_nb);
drivers/media/rc/img-ir/img-ir-raw.c +2 -1
index 92fb7b555a0f..f1460d4acf3e 100644
@@ -136,6 +136,7 @@ void img_ir_remove_raw(struct img_ir_priv *priv)
 	if (!rdev)
 		return;
 
+	rc_unregister_device(rdev);
 	/* switch off and disable raw (edge) interrupts */
 	spin_lock_irq(&priv->lock);
 	raw->rdev = NULL;
@@ -145,7 +146,7 @@ void img_ir_remove_raw(struct img_ir_priv *priv)
 	img_ir_write(priv, IMG_IR_IRQ_CLEAR, IMG_IR_IRQ_EDGE);
 	spin_unlock_irq(&priv->lock);
 
-	rc_unregister_device(rdev);
+	rc_free_device(rdev);
 
 	timer_delete_sync(&raw->timer);
 }
drivers/media/rc/imon.c +2 -1
index 35b9e07003d8..48534bb52e4d 100644
@@ -2541,9 +2541,10 @@ static void imon_disconnect(struct usb_interface *interface)
 
 	if (ifnum == 0) {
 		ictx->dev_present_intf0 = false;
+		rc_unregister_device(ictx->rdev);
 		usb_kill_urb(ictx->rx_urb_intf0);
 		input_unregister_device(ictx->idev);
-		rc_unregister_device(ictx->rdev);
+		rc_free_device(ictx->rdev);
 		if (ictx->display_supported) {
 			if (ictx->display_type == IMON_DISPLAY_TYPE_LCD)
 				usb_deregister_dev(interface, &imon_lcd_class);
drivers/media/rc/ir-hix5hd2.c +1 -1
index afd80d2350c6..bb0f95833df5 100644
@@ -331,7 +331,6 @@ static int hix5hd2_ir_probe(struct platform_device *pdev)
 
 regerr:
 	rc_unregister_device(rdev);
-	rdev = NULL;
 clkerr:
 	clk_disable_unprepare(priv->clock);
 err:
@@ -346,6 +345,7 @@ static void hix5hd2_ir_remove(struct platform_device *pdev)
 
 	clk_disable_unprepare(priv->clock);
 	rc_unregister_device(priv->rdev);
+	rc_free_device(priv->rdev);
 }
 
 #ifdef CONFIG_PM_SLEEP
drivers/media/rc/ir_toy.c +1 -0
index 533faa117517..e79de56997a4 100644
@@ -536,6 +536,7 @@ static void irtoy_disconnect(struct usb_interface *intf)
 	usb_free_urb(ir->urb_out);
 	usb_kill_urb(ir->urb_in);
 	usb_free_urb(ir->urb_in);
+	rc_free_device(ir->rc);
 	kfree(ir->in);
 	kfree(ir->out);
 	kfree(ir);
drivers/media/rc/ite-cir.c +1 -1
index 2bacecb02262..23afbafb5574 100644
@@ -1414,7 +1414,6 @@ static int ite_probe(struct pnp_dev *pdev, const struct pnp_device_id
 	release_region(itdev->cir_addr, itdev->params->io_region_size);
 exit_unregister_device:
 	rc_unregister_device(rdev);
-	rdev = NULL;
 exit_free_dev_rdev:
 	rc_free_device(rdev);
 	kfree(itdev);
@@ -1439,6 +1438,7 @@ static void ite_remove(struct pnp_dev *pdev)
 	release_region(dev->cir_addr, dev->params->io_region_size);
 
 	rc_unregister_device(dev->rdev);
+	rc_free_device(dev->rdev);
 
 	kfree(dev);
 }
drivers/media/rc/mceusb.c +1 -0
index 044767eb3a38..a4c94fdf767c 100644
@@ -1850,6 +1850,7 @@ static void mceusb_dev_disconnect(struct usb_interface *intf)
 	usb_free_urb(ir->urb_in);
 	usb_free_coherent(dev, ir->len_in, ir->buf_in, ir->dma_in);
 	usb_put_dev(dev);
+	rc_free_device(ir->rc);
 
 	kfree(ir);
 }
drivers/media/rc/rc-ir-raw.c +0 -5
index 5dafe11f61c6..76c3d1307f9f 100644
@@ -648,9 +648,6 @@ int ir_raw_event_register(struct rc_dev *dev)
 
 void ir_raw_event_free(struct rc_dev *dev)
 {
-	if (!dev)
-		return;
-
 	kfree(dev->raw);
 	dev->raw = NULL;
 }
@@ -674,8 +671,6 @@ void ir_raw_event_unregister(struct rc_dev *dev)
 
 	lirc_bpf_free(dev);
 
-	ir_raw_event_free(dev);
-
 	/*
 	 * A user can be calling bpf(BPF_PROG_{QUERY|ATTACH|DETACH}), so
 	 * ensure that the raw member is null on unlock; this is how
drivers/media/rc/rc-loopback.c +1 -0
index 8288366f891f..a108b057b5fd 100644
@@ -263,6 +263,7 @@ static int __init loop_init(void)
 static void __exit loop_exit(void)
 {
 	rc_unregister_device(loopdev.dev);
+	rc_free_device(loopdev.dev);
 }
 
 module_init(loop_init);
drivers/media/rc/rc-main.c +1 -5
index b9bf5cdcde4a..6bdf32cb4a17 100644
@@ -1611,6 +1611,7 @@ static void rc_dev_release(struct device *device)
 {
 	struct rc_dev *dev = to_rc_dev(device);
 
+	ir_raw_event_free(dev);
 	kfree(dev);
 }
 
@@ -1773,7 +1774,6 @@ struct rc_dev *devm_rc_allocate_device(struct device *dev,
 	}
 
 	rc->dev.parent = dev;
-	rc->managed_alloc = true;
 	*dr = rc;
 	devres_add(dev, dr);
 
@@ -2042,11 +2042,7 @@ void rc_unregister_device(struct rc_dev *dev)
 	device_del(&dev->dev);
 
 	ida_free(&rc_ida, dev->minor);
-
-	if (!dev->managed_alloc)
-		rc_free_device(dev);
 }
-
 EXPORT_SYMBOL_GPL(rc_unregister_device);
 
 /*
drivers/media/rc/redrat3.c +3 -1
index a49173f54a4d..b8289327f6a2 100644
@@ -1133,11 +1133,13 @@ static void redrat3_dev_disconnect(struct usb_interface *intf)
 {
 	struct usb_device *udev = interface_to_usbdev(intf);
 	struct redrat3_dev *rr3 = usb_get_intfdata(intf);
+	struct rc_dev *rc = rr3->rc;
 
 	usb_set_intfdata(intf, NULL);
-	rc_unregister_device(rr3->rc);
+	rc_unregister_device(rc);
 	led_classdev_unregister(&rr3->led);
 	redrat3_delete(rr3, udev);
+	rc_free_device(rc);
 }
 
 static int redrat3_dev_suspend(struct usb_interface *intf, pm_message_t message)
drivers/media/rc/st_rc.c +1 -1
index 6b70bac5f45d..0ba06bfc9e14 100644
@@ -203,6 +203,7 @@ static void st_rc_remove(struct platform_device *pdev)
 	device_init_wakeup(&pdev->dev, false);
 	clk_disable_unprepare(rc_dev->sys_clock);
 	rc_unregister_device(rc_dev->rdev);
+	rc_free_device(rc_dev->rdev);
 }
 
 static int st_rc_open(struct rc_dev *rdev)
@@ -334,7 +335,6 @@ static int st_rc_probe(struct platform_device *pdev)
 	return ret;
 rcerr:
 	rc_unregister_device(rdev);
-	rdev = NULL;
 clkerr:
 	clk_disable_unprepare(rc_dev->sys_clock);
 err:
drivers/media/rc/streamzap.c +4 -3
index 8e9b156e4300..8c85b9f30a3a 100644
@@ -392,15 +392,16 @@ static void streamzap_disconnect(struct usb_interface *interface)
 	struct streamzap_ir *sz = usb_get_intfdata(interface);
 	struct usb_device *usbdev = interface_to_usbdev(interface);
 
-	usb_set_intfdata(interface, NULL);
-
 	if (!sz)
 		return;
 
-	usb_kill_urb(sz->urb_in);
 	rc_unregister_device(sz->rdev);
+	usb_set_intfdata(interface, NULL);
+
+	usb_kill_urb(sz->urb_in);
 	usb_free_urb(sz->urb_in);
 	usb_free_coherent(usbdev, sz->buf_in_len, sz->buf_in, sz->dma_in);
+	rc_free_device(sz->rdev);
 
 	kfree(sz);
 }
drivers/media/rc/sunxi-cir.c +1 -0
index 92ef4e7c6f69..cb4c56bf0752 100644
@@ -371,6 +371,7 @@ static void sunxi_ir_remove(struct platform_device *pdev)
 	struct sunxi_ir *ir = platform_get_drvdata(pdev);
 
 	rc_unregister_device(ir->rc);
+	rc_free_device(ir->rc);
 	sunxi_ir_hw_exit(&pdev->dev);
 }
 
drivers/media/rc/ttusbir.c +2 -2
index dde446a95eaa..3452b5aefd28 100644
@@ -191,7 +191,7 @@ static int ttusbir_probe(struct usb_interface *intf,
 	tt = kzalloc(sizeof(*tt), GFP_KERNEL);
 	buffer = kzalloc(5, GFP_KERNEL);
 	rc = rc_allocate_device(RC_DRIVER_IR_RAW);
-	if (!tt || !rc || buffer) {
+	if (!tt || !rc || !buffer) {
 		ret = -ENOMEM;
 		goto out;
 	}
@@ -336,7 +336,6 @@ static int ttusbir_probe(struct usb_interface *intf,
 	return 0;
 out3:
 	rc_unregister_device(rc);
-	rc = NULL;
 out2:
 	led_classdev_unregister(&tt->led);
 out:
@@ -378,6 +377,7 @@ static void ttusbir_disconnect(struct usb_interface *intf)
 	usb_kill_urb(tt->bulk_urb);
 	usb_free_urb(tt->bulk_urb);
 	kfree(tt->bulk_buffer);
+	rc_free_device(tt->rc);
 	usb_set_intfdata(intf, NULL);
 	kfree(tt);
 }
drivers/media/rc/winbond-cir.c +1 -1
index 25884a79985c..14d8b58e2839 100644
@@ -1132,7 +1132,6 @@ wbcir_probe(struct pnp_dev *device, const struct pnp_device_id *dev_id)
 	release_region(data->wbase, WAKEUP_IOMEM_LEN);
 exit_unregister_device:
 	rc_unregister_device(data->dev);
-	data->dev = NULL;
 exit_free_rc:
 	rc_free_device(data->dev);
 exit_unregister_led:
@@ -1163,6 +1162,7 @@ wbcir_remove(struct pnp_dev *device)
 	wbcir_set_bits(data->wbase + WBCIR_REG_WCEIR_EV_EN, 0x00, 0x07);
 
 	rc_unregister_device(data->dev);
+	rc_free_device(data->dev);
 
 	led_classdev_unregister(&data->led);
 
drivers/media/rc/xbox_remote.c +3 -2
index 0c9c855ced72..80b7c247932a 100644
@@ -283,14 +283,15 @@ static void xbox_remote_disconnect(struct usb_interface *interface)
 	struct xbox_remote *xbox_remote;
 
 	xbox_remote = usb_get_intfdata(interface);
-	usb_set_intfdata(interface, NULL);
 	if (!xbox_remote) {
 		dev_warn(&interface->dev, "%s - null device?\n", __func__);
 		return;
 	}
 
-	usb_kill_urb(xbox_remote->irq_urb);
 	rc_unregister_device(xbox_remote->rdev);
+	usb_set_intfdata(interface, NULL);
+	usb_kill_urb(xbox_remote->irq_urb);
+	rc_free_device(xbox_remote->rdev);
 	usb_free_urb(xbox_remote->irq_urb);
 	kfree(xbox_remote->inbuf);
 	kfree(xbox_remote);
drivers/media/usb/au0828/au0828-input.c +1 -0
index 3d3368202cd0..283ad2c6288c 100644
@@ -357,6 +357,7 @@ void au0828_rc_unregister(struct au0828_dev *dev)
 		return;
 
 	rc_unregister_device(ir->rc);
+	rc_free_device(ir->rc);
 
 	/* done */
 	kfree(ir);
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c +1 -0
index f1c79f351ec8..17e8961179d1 100644
@@ -187,6 +187,7 @@ static int dvb_usbv2_remote_exit(struct dvb_usb_device *d)
 	if (d->rc_dev) {
 		cancel_delayed_work_sync(&d->rc_query_work);
 		rc_unregister_device(d->rc_dev);
+		rc_free_device(d->rc_dev);
 		d->rc_dev = NULL;
 	}
 
drivers/media/usb/dvb-usb/dvb-usb-remote.c +4 -2
index 65e2c9e2cdc9..6dc11718dfb9 100644
@@ -347,10 +347,12 @@ int dvb_usb_remote_exit(struct dvb_usb_device *d)
 {
 	if (d->state & DVB_USB_STATE_REMOTE) {
 		cancel_delayed_work_sync(&d->rc_query_work);
-		if (d->props.rc.mode == DVB_RC_LEGACY)
+		if (d->props.rc.mode == DVB_RC_LEGACY) {
 			input_unregister_device(d->input_dev);
-		else
+		} else {
 			rc_unregister_device(d->rc_dev);
+			rc_free_device(d->rc_dev);
+		}
 	}
 	d->state &= ~DVB_USB_STATE_REMOTE;
 	return 0;
drivers/media/usb/em28xx/em28xx-input.c +1 -0
index 5f3b00869bdb..26f333b5be73 100644
@@ -853,6 +853,7 @@ static int em28xx_ir_fini(struct em28xx *dev)
 		goto ref_put;
 
 	rc_unregister_device(ir->rc);
+	rc_free_device(ir->rc);
 
 	kfree(ir->i2c_client);
 
drivers/misc/rp1/rp1_pci.c +1 -0
index a342bcc6164b..4d00dab48d47 100644
@@ -148,6 +148,7 @@ static int rp1_irq_activate(struct irq_domain *d, struct irq_data *irqd,
 	struct rp1_dev *rp1 = d->host_data;
 
 	msix_cfg_set(rp1, (unsigned int)irqd->hwirq, MSIX_CFG_ENABLE);
+	msix_cfg_set(rp1, (unsigned int)irqd->hwirq, MSIX_CFG_IACK);
 
 	return 0;
 }
drivers/net/bonding/bond_main.c +6 -0
index 8b1422dda4c0..2132acff2e52 100644
@@ -1860,6 +1860,12 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev,
 	struct sockaddr_storage ss;
 	int res = 0, i;
 
+	if (slave_dev->type == ARPHRD_CAN) {
+		BOND_NL_ERR(bond_dev, extack,
+			    "CAN devices cannot be enslaved");
+		return -EPERM;
+	}
+
 	if (slave_dev->flags & IFF_MASTER &&
 	    !netif_is_bond_master(slave_dev)) {
 		BOND_NL_ERR(bond_dev, extack,
drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c +3 -0
index 0b92a2e5e986..cf0f14aa014c 100644
@@ -420,6 +420,9 @@ static int hbg_pci_init(struct pci_dev *pdev)
 		return -ENOMEM;
 
 	pci_set_master(pdev);
+	pcie_capability_clear_word(pdev, PCI_EXP_DEVCTL,
+				   PCI_EXP_DEVCTL_RELAX_EN);
+	pci_save_state(pdev);
 	return 0;
 }
 
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c +2 -0
index 902d6abaa3ec..062bc899d955 100644
@@ -1468,11 +1468,13 @@ int otx2_pool_init(struct otx2_nic *pfvf, u16 pool_id,
 		err = otx2_sync_mbox_msg(&pfvf->mbox);
 		if (err) {
 			qmem_free(pfvf->dev, pool->stack);
+			pool->stack = NULL;
 			return err;
 		}
 		aq = otx2_mbox_alloc_msg_npa_aq_enq(&pfvf->mbox);
 		if (!aq) {
 			qmem_free(pfvf->dev, pool->stack);
+			pool->stack = NULL;
 			return -ENOMEM;
 		}
 	}
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c +3 -1
index 6a4c4cccd643..c45a7ca66ad8 100644
@@ -1323,8 +1323,10 @@ mlx5_cmd_hws_packet_reformat_alloc(struct mlx5_flow_root_namespace *ns,
 		break;
 	case MLX5_REFORMAT_TYPE_REMOVE_HDR:
 		hws_action = mlx5_fs_get_action_remove_header_vlan(fs_ctx, params);
-		if (!hws_action)
+		if (!hws_action) {
 			mlx5_core_err(dev, "Only vlan remove header supported\n");
+			return -EOPNOTSUPP;
+		}
 		break;
 	default:
 		mlx5_core_err(ns->dev, "Packet-reformat not supported(%d)\n",
drivers/net/ethernet/microsoft/mana/mana_en.c +47 -29

103 lines not on this page · raw message

drivers/net/macsec.c +2 -1
index 5d820ef61946..ee1b565efca4 100644

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

drivers/net/phy/micrel.c +8 -7
index bc19880107ae..e6f00aa9a990 100644

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

drivers/net/phy/mscc/mscc.h +4 -4
index 2d8eca54c40a..2eef5956b9cc 100644

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

drivers/net/phy/mscc/mscc_main.c +4 -19
index 48d43f60b8ff..8678ebf89cca 100644

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

drivers/net/team/team_core.c +34 -17

51 lines not on this page · raw message

drivers/net/team/team_mode_loadbalance.c +2 -2
index b14538bde2f8..b27e44a4df5f 100644

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

drivers/net/tun.c +4 -1
index 8192740357a0..9a767da38c71 100644

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

drivers/net/vxlan/vxlan_core.c +2 -2
index d2d0e0bd4371..a4ff66e354f5 100644

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

drivers/net/wireguard/send.c +10 -10
index 26e09c30d596..67d01478eb76 100644

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

drivers/nfc/nxp-nci/i2c.c +20 -1
index b3d34433bd14..a6c08175d9dd 100644

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

drivers/nvme/host/tcp.c +1 -1
index 9a96df1a511c..afdbcff3d482 100644

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

drivers/parport/share.c +9 -2
index 427abdf3c4c4..80bdf55eeb9a 100644

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

drivers/platform/x86/intel/vsec.c +47 -44

91 lines not on this page · raw message

drivers/s390/cio/chsc.c +2 -2
index 239c92d4ec11..b5f6eb18ebad 100644

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

drivers/s390/cio/chsc_sch.c +10 -10
index 1e58ee3cc87d..9131ce3af1b8 100644

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

drivers/s390/cio/scm.c +1 -1
index 9b4da237a0ed..f4faa38a4b17 100644

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

drivers/scsi/fcoe/fcoe_ctlr.c +1 -1
index 8e4241c295e3..59b7dd86e4b2 100644

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

drivers/scsi/scsi_lib.c +25 -2
index 7ddb73cd6d9f..3f7ba6d3987f 100644

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

drivers/scsi/scsi_transport_fc.c +41 -36

77 lines not on this page · raw message

drivers/spi/spi-mem.c +11 -4
index db9467535416..65afb0a6b0a8 100644

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

drivers/staging/media/av7110/av7110_ir.c +1 -0
index 68b3979ba5f2..fdae467fd7ab 100644

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

drivers/target/iscsi/iscsi_target.c +4 -1
index a2dde08c8a62..9d05d014d9bf 100644

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

drivers/target/iscsi/iscsi_target_auth.c +18 -1
index c8a248bd11be..02a4c9aff98d 100644

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

drivers/target/iscsi/iscsi_target_nego.c +6 -1
index 832588f21f91..b03ed154ca34 100644

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

drivers/target/iscsi/iscsi_target_parameters.c +48 -14

62 lines not on this page · raw message

drivers/target/iscsi/iscsi_target_parameters.h +1 -1
index c672a971fcb7..38d2238dfe08 100644

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

drivers/thunderbolt/property.c +23 -9
index 31aa0516932a..bbd26d99c406 100644

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

drivers/tty/serdev/core.c +21 -0
index b33e708cb245..40eedc15277c 100644

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

drivers/tty/serial/8250/8250_dw.c +1 -1
index b1f0303aceab..4103178725e3 100644

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

drivers/tty/serial/8250/8250_port.c +5 -2
index 8785961a2a82..0c633639f765 100644

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

drivers/tty/serial/altera_jtaguart.c +6 -1
index d47a62d1c9f7..20f079fe11d8 100644

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

drivers/tty/serial/dz.c +88 -83

171 lines not on this page · raw message

drivers/tty/serial/fsl_lpuart.c +12 -3
index c9519e649e82..8d218870877f 100644

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

drivers/tty/serial/pch_uart.c +13 -6
index 884fefbfd5a1..9992fa231e4e 100644

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

drivers/tty/serial/qcom_geni_serial.c +14 -2
index 8058b839b26c..337fa3261ac7 100644

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

drivers/tty/serial/samsung_tty.c +0 -8
index 2fb58c626daf..7a0b89d856c2 100644

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

drivers/tty/serial/sh-sci.c +1 -1
index d91b1fb69beb..a64a26fb7ff8 100644

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

drivers/tty/serial/zs.c +83 -143

226 lines not on this page · raw message

drivers/tty/serial/zs.h +0 -1
index 26ef8eafa1c1..e0d3c189b33f 100644

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

drivers/usb/cdns3/cdns3-gadget.c +11 -1
index 6b8b0354b41a..bc1157a4df00 100644

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

drivers/usb/cdns3/cdns3-plat.c +7 -4
index 735df88774e4..94e9706a1806 100644

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

drivers/usb/chipidea/core.c +6 -10
index 6df442435af6..4d3a89b9d386 100644

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

drivers/usb/class/cdc-acm.c +0 -2
index d05b8806124a..730ea34cb744 100644

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

drivers/usb/class/cdc-acm.h +2 -0
index 25fd5329a878..01f448a783c0 100644

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

drivers/usb/class/usbtmc.c +14 -0
index 49459e3d34d6..fe88d555142a 100644

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

drivers/usb/core/config.c +8 -1
index 3067e18ec4d8..1c0f36c85bcf 100644

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

drivers/usb/core/hcd.c +1 -3
index 9dd79769cad1..e11a8818af74 100644

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

drivers/usb/core/quirks.c +4 -0
index 34b1f7df3529..21f9b7fec8cb 100644

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

drivers/usb/dwc2/hcd.c +3 -1
index 30eb8506617c..e34aaa59a3d8 100644

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

drivers/usb/dwc3/dwc3-xilinx.c +15 -12
index 1e28d6f50ed0..c2b8573c2567 100644

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

drivers/usb/gadget/composite.c +4 -1
index 5b3866909b75..bb3fa6fa9e8b 100644

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

drivers/usb/gadget/function/f_fs.c +23 -3
index 497d20260b04..737d60b26e02 100644

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

drivers/usb/gadget/function/f_hid.c +1 -2
index 1004c577b50e..ee59e6516187 100644

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

drivers/usb/gadget/function/f_uvc.c +21 -7
index 842187a09cc0..72601e15563c 100644

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

drivers/usb/gadget/udc/dummy_hcd.c +4 -0
index da271308d753..4a78536644ba 100644

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

drivers/usb/gadget/udc/net2280.c +1 -3
index 8ea1adc7461d..07899a2c35a7 100644

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

drivers/usb/host/xhci-tegra.c +45 -34

79 lines not on this page · raw message

drivers/usb/musb/omap2430.c +2 -1
index c35c07b7488c..aadabc415145 100644

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

drivers/usb/serial/belkin_sa.c +3 -0
index aa6b4c4ad5ec..62c853ab18a6 100644

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

drivers/usb/serial/cypress_m8.c +19 -1
index e29569d65991..905f6a560e04 100644

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

drivers/usb/serial/digi_acceleport.c +21 -2
index a06485965412..a876d6629b65 100644

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

drivers/usb/serial/keyspan.c +4 -0
index 9129e0282c24..baae11b2fa7b 100644

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

drivers/usb/serial/mct_u232.c +16 -10
index 2bce8cc03aca..33d4bbc461be 100644

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

drivers/usb/serial/mxuport.c +8 -0
index ad5fdf55a02e..c9b9928c473a 100644

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

drivers/usb/serial/omninet.c +5 -4
index 397ebd5a3e74..91cefff72246 100644

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

drivers/usb/serial/option.c +8 -1
index 8add3a5477f6..c8f0d2bbfc1b 100644

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

drivers/usb/serial/safe_serial.c +11 -0
index 238b54993446..d267a31dcccf 100644

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

drivers/usb/storage/unusual_uas.h +7 -0
index 939a98c2d3f7..d6f86d5db3bf 100644

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

drivers/usb/typec/altmodes/displayport.c +2 -0
index 3edc9dc86b25..9d1d87a6ae77 100644

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

drivers/usb/typec/tcpm/tcpci_maxim_core.c +9 -0
index 19f638650796..cdf6489e1924 100644

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

drivers/usb/typec/tcpm/tcpm.c +72 -45

117 lines not on this page · raw message

drivers/usb/typec/tcpm/wcove.c +8 -5
index 759c982bb16a..0e5a3e277c3e 100644

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

drivers/usb/typec/tipd/core.c +1 -0
index 01c657bc84e6..0c711dbe0c97 100644

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

drivers/usb/typec/ucsi/displayport.c +4 -0
index 8aae80b457d7..67a0991a7b76 100644

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

drivers/usb/typec/ucsi/ucsi.c +20 -4
index 47f9a8046109..34e93d6c6769 100644

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

drivers/usb/typec/ucsi/ucsi_ccg.c +5 -0
index d83a0051c737..9d7b834a76fa 100644

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

drivers/usb/usbip/vudc_dev.c +1 -0
index f11535020e35..a5c100107186 100644

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

drivers/usb/usbip/vudc_transfer.c +2 -1
index a4f02ea3e3ef..d4ce85c4c6a2 100644

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

fs/hpfs/alloc.c +1 -1
index 66617b1557c6..f5150372618e 100644

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

fs/smb/client/cifsacl.c +85 -31

116 lines not on this page · raw message

fs/smb/client/smb2pdu.c +1 -1
index 3e49c5b396b5..fa77dd31a39c 100644

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

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

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

fs/smb/server/smbacl.c +4 -4
index 6c4f9c8c7f13..e3c512675c63 100644

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

include/kunit/test.h +1 -0
index 5ec5182b5e57..aedffe2f2d49 100644

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

include/linux/compat.h +4 -0
index 56cebaff0c91..8da0a15c95f4 100644

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

include/linux/compiler-clang.h +6 -0
index cccc72fd336b..2e3972058855 100644

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

include/linux/compiler_attributes.h +11 -0
index c16d4199bf92..836a50f5917a 100644

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

include/linux/compiler_types.h +4 -0
index 2998af80cbef..2f18b8a01afe 100644

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

include/linux/hid.h +0 -2
index 204ada8d12e5..29561887bea8 100644

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

include/linux/if_team.h +1 -2
index ce97d891cf72..cd5acf40040d 100644

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

include/linux/intel_vsec.h +2 -2
index 53f6fe88e369..d7f1f531660a 100644

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

include/linux/mailbox_controller.h +3 -0
index 80a427c7ca29..1db0069c27c5 100644

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

include/linux/parport.h +1 -0
index 464c2ad28039..f64cb0676e3b 100644

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

include/linux/serdev.h +1 -0
index 34562eb99931..5654c58eb73c 100644

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

include/linux/serial_core.h +12 -0
index 666430b47899..110ad4e2aef9 100644

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

include/linux/syscalls.h +4 -0
index 66c06fcdfe19..a3e3c8f3dd65 100644

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

include/media/rc-core.h +0 -2
index 35c7a0546f02..7c964b5ad792 100644

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

include/net/netfilter/nf_tables.h +7 -0
index 4dc080f7f27c..b35e8c02fadc 100644

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

include/net/xfrm.h +2 -1
index 0a14daaa5dd4..7ad342e20750 100644

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

ipc/util.c +1 -1
index cae60f11d9c2..df1f0c291cdc 100644

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

lib/debugobjects.c +1 -1
index b3151679d0d3..e4b7f77ece3b 100644

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

lib/kunit/executor.c +16 -3
index 0061d4c7e351..9abaed827584 100644

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

lib/kunit/test.c +1 -0
index 62eb529824c6..f0e1e02a98d8 100644

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

mm/damon/sysfs-schemes.c +4 -4
index a7be6ea812e4..4a432a07c5c3 100644

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

mm/memcontrol.c +6 -0
index 4df68e5468ad..80e71a17d500 100644

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

mm/memfd.c +6 -6
index a405eaa451ee..f7ba1e9dea49 100644

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

mm/rmap.c +2 -0
index 8f3c50bd1125..4c78c7109909 100644

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

mm/slab_common.c +2 -0
index 0f58265ca200..04583044a2bf 100644

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

mm/slub.c +1 -0
index a89df6ddcc58..5fdec3b83706 100644

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

net/bluetooth/6lowpan.c +2 -0
index 2c21ae8abadc..038f01600eeb 100644

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

net/bluetooth/hci_conn.c +3 -1
index 1b63bc2753a2..3be7ee643805 100644

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

net/bluetooth/hci_sync.c +15 -1
index f498ab28f1aa..826be7ff0f56 100644

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

net/bluetooth/hidp/core.c +18 -5
index e0e400381550..90d32ea8f979 100644

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

net/bluetooth/iso.c +8 -4
index 038e292fb194..9b421e4a2466 100644

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

net/bluetooth/l2cap_core.c +33 -8

41 lines not on this page · raw message

net/bluetooth/l2cap_sock.c +9 -7
index 898ee21d7e4f..506c8c0b4d75 100644

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

net/bridge/br_netlink.c +7 -10
index 4e2d53b27221..6d5b2ef5f18d 100644

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

net/bridge/br_switchdev.c +0 -1
index fe3f7bbe86ee..b5c6e314204f 100644

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

net/bridge/br_sysfs_if.c +22 -8
index 74fdd8105dca..3fe664fd1f5b 100644

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

net/bridge/netfilter/ebtables.c +30 -0
index 77df9e856c2e..ecd7baa25d72 100644

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

net/core/devmem.c +11 -0
index 448f6582ac1a..16ce197cb0fa 100644

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

net/core/filter.c +1 -1
index bad3fb631846..e6dd40e0276e 100644

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

net/core/skbuff.c +41 -4

45 lines not on this page · raw message

net/ethtool/cmis.h +2 -2
index 4a9a946cabf0..778783a0f23c 100644

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

net/ethtool/cmis_cdb.c +7 -2
index 3057576bc81e..fe156991d0be 100644

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

net/ethtool/cmis_fw_update.c +30 -14

44 lines not on this page · raw message

net/ethtool/coalesce.c +6 -0
index 3e18ca1ccc5e..cace02d964cb 100644

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

net/ethtool/eeprom.c +6 -4
index 3b8209e930fd..80af38a6c76a 100644

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

net/ethtool/linkstate.c +2 -4
index 05a5f72c99fa..3dc52a39d345 100644

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

net/ethtool/module.c +25 -16

41 lines not on this page · raw message

net/ethtool/netlink.c +2 -2
index 2f813f25f07e..28577b878fd5 100644

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

net/ethtool/netlink.h +2 -2
index 1d4f9ecb3d26..3923188097ac 100644

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

net/ethtool/pse-pd.c +5 -5
index 24def9c9dd54..aa4514333d13 100644

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

net/ethtool/rss.c +23 -14
index da5934cceb07..b122f67dbde1 100644

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

net/ethtool/strset.c +1 -1
index f6a67109beda..872ca593b976 100644

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

net/ethtool/tsconfig.c +11 -4
index 169b413b31fc..a121928038b0 100644

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

net/ethtool/tsinfo.c +15 -4
index 8c654caa6805..53f12128a1a5 100644

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

net/handshake/genl.c +2 -1
index f55d14d7b726..a5fa8b27f224 100644

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

net/handshake/genl.h +1 -0
index ae72a596f6cc..684e5fd68448 100644

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

net/handshake/handshake-test.c +1 -1
index 55442b2f518a..df3948e807a0 100644

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

net/handshake/handshake.h +2 -2
index a48163765a7a..2289b0e274f4 100644

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

net/handshake/netlink.c +3 -3
index 7e46d130dce2..d8211e0ba75c 100644

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

net/handshake/request.c +8 -8
index 6b7e3e0bf399..62efb7e32730 100644

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

net/handshake/tlshd.c +4 -2
index 8f9532a15f43..7567150c2a4f 100644

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

net/hsr/hsr_forward.c +2 -2
index aefc9b6936ba..299de290ddaa 100644

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

net/ipv4/ah4.c +1 -1
index 8b0f15abbb38..7976f5106af0 100644

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

net/ipv4/esp4.c +2 -2
index 6a5febbdbee4..513c8215c947 100644

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

net/ipv4/ip_tunnel_core.c +14 -8
index 5683c328990f..4b5fd4b13722 100644

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

net/ipv4/sysctl_net_ipv4.c +1 -1
index 0f1dd75dbf37..ce9b077343ca 100644

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

net/ipv6/ah6.c +1 -1
index bd9ec8000f0b..bf4e11614af2 100644

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

net/ipv6/datagram.c +46 -8

54 lines not on this page · raw message

net/ipv6/esp6.c +2 -2
index 9c06c5a1419d..57481e423e59 100644

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

net/ipv6/exthdrs.c +5 -1
index d15e60943820..fbc0df2daed3 100644

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

net/ipv6/ip6_vti.c +16 -7
index ad5290be4dd6..df793c8bfffb 100644

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

net/ipv6/route.c +5 -0
index 446f4de7d6a2..f89220929c4e 100644

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

net/iucv/af_iucv.c +14 -6
index 6c717a7ef292..c66b90c912e7 100644

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

net/key/af_key.c +3 -3
index e01939ab8103..96fdeadf46e3 100644

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

net/l2tp/l2tp_core.c +6 -5
index be32bf45d583..fd78928e9be2 100644

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

net/mctp/device.c +1 -0
index 4d404edd7446..04c5570bacff 100644

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

net/mctp/neigh.c +1 -0
index 05b899f22d90..fc85f0e69301 100644

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

net/mctp/route.c +1 -0
index d4fdaac8037a..eb817f1eb5c8 100644

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

net/mptcp/fastopen.c +3 -1
index c8aa5426f1af..082c46c0f50e 100644

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

net/mptcp/mib.c +0 -1
index 171643815076..f23fda0c55a7 100644

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

net/mptcp/mib.h +0 -1
index a1d3e9369fbb..812218b5ed2b 100644

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

net/mptcp/protocol.c +47 -18

65 lines not on this page · raw message

net/mptcp/protocol.h +30 -1
index 5a03c8824ab6..df35dade0280 100644

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

net/mptcp/subflow.c +7 -1
index 3226fef7237e..42fd759c51df 100644

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

net/netfilter/nf_conntrack_proto_tcp.c +2 -1
index b67426c2189b..e99ab1e88e9f 100644

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

net/netfilter/nf_synproxy_core.c +2 -0
index 3fa3f5dfb264..6a851ac4dd04 100644

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

net/netfilter/nft_bitwise.c +14 -4
index af990c600745..1afb36fb5994 100644

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

net/netfilter/nft_byteorder.c +10 -3
index af9206a3afd1..5e7a7841b789 100644

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

net/netfilter/xt_cpu.c +1 -1
index 3bdc302a0f91..9cb259902a58 100644

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

net/netlink/af_netlink.c +8 -3
index 2b46c0cd752a..1d1b3bd54a91 100644

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

net/nfc/hci/core.c +10 -0
index 8618d57c23da..a8418528ca2b 100644

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

net/nfc/llcp_core.c +11 -0
index da8d3add0018..c83a00e42985 100644

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

net/nfc/llcp_sock.c +2 -0
index 57a2f97004e1..915929cd724f 100644

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

net/nfc/nci/hci.c +10 -0
index 082ab66f120b..7f3b4fffb3d6 100644

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

net/rxrpc/ar-internal.h +9 -5
index 27c2aa2dd023..98f2165159d7 100644

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

net/rxrpc/call_event.c +1 -21
index 2b19b252225e..fec59d9338b9 100644

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

net/rxrpc/call_object.c +2 -0
index f035f486c139..fcb9d38bb521 100644

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

net/rxrpc/conn_event.c +13 -19
index 442414d90ba1..c96ca615b787 100644

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

net/rxrpc/insecure.c +3 -5
index 0a260df45d25..0b39046bdc61 100644

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

net/rxrpc/recvmsg.c +55 -13

68 lines not on this page · raw message

net/rxrpc/rxgk.c +55 -92

147 lines not on this page · raw message

net/rxrpc/rxgk_app.c +19 -27

46 lines not on this page · raw message

net/rxrpc/rxgk_common.h +30 -36

66 lines not on this page · raw message

net/rxrpc/rxkad.c +42 -73

115 lines not on this page · raw message

net/sched/cls_fw.c +5 -1
index 83a7372ea15c..fd9c6c2815a1 100644

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

net/sched/sch_netem.c +0 -40
index 47db6da905c5..73b3a8ce2f43 100644

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

net/sched/sch_sfb.c +1 -1
index 00286c930b8d..14ac88977847 100644

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

net/sctp/socket.c +2 -0
index 2c5ad5398490..c763eb3296b3 100644

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

net/smc/af_smc.c +2 -2
index 5915fcdef743..21d0c62bcf46 100644

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

net/vmw_vsock/af_vsock.c +32 -17

49 lines not on this page · raw message

net/vmw_vsock/hyperv_transport.c +6 -3
index f9dc9b4d3023..4da752b47b11 100644

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

net/vmw_vsock/virtio_transport_common.c +18 -8
index ed42e08798a9..c925b5c5b35a 100644

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

net/vmw_vsock/vmci_transport.c +5 -3
index 4cd11f355e9d..443125e48f24 100644

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

net/xfrm/xfrm_input.c +12 -4
index 3d80c5210e04..cfee63a6c87d 100644

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

net/xfrm/xfrm_ipcomp.c +8 -4
index 43fdc6ed8dd1..51a0bc8ddac1 100644

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

net/xfrm/xfrm_iptfs.c +24 -5
index 7cd97c1dcd11..e11e4f7411fd 100644

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

net/xfrm/xfrm_policy.c +9 -8
index 29c94ee0ceb2..ee1f6d5c391d 100644

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

net/xfrm/xfrm_state.c +18 -5
index f6ba58f18ac1..898cddff498c 100644

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

net/xfrm/xfrm_user.c +2 -3
index 73d23ccdb5e2..2c11866be578 100644

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

sound/core/oss/pcm_oss.c +11 -7
index 9b5a3def8d2c..59d5153d1113 100644

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

sound/firewire/motu/motu-register-dsp-message-parser.c +7 -4
index a8053e3ef065..4ec23e6880d9 100644

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

sound/hda/codecs/realtek/alc269.c +1 -0
index 4cd5b719556e..c18c18f9e652 100644

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

sound/soc/codecs/simple-mux.c +1 -1
index 390696440155..cedd181ffdaf 100644

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

sound/soc/intel/boards/bytcht_es8316.c +27 -2
index 3b5f63112237..25044c0f4703 100644

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

sound/soc/qcom/qdsp6/q6asm-dai.c +23 -20

43 lines not on this page · raw message

sound/usb/mixer_scarlett2.c +29 -4
index da3c2741ef57..a31f255593d9 100644

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

tools/bootconfig/main.c +3 -1
index 643f707b8f1d..ddabde20585f 100644

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

tools/net/ynl/pyynl/ynl_gen_c.py +29 -2
index aadeb3abcad8..14e3cf9acd53 100755

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

tools/testing/cxl/test/cxl.c +43 -62

105 lines not on this page · raw message

tools/testing/selftests/net/mptcp/mptcp_connect.sh +3 -3
index 9b7b93f8eb0c..fa7abcaa1414 100755

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

tools/testing/selftests/net/mptcp/mptcp_lib.sh +5 -5
index 8b5c2285ad73..a64133cb82f7 100644

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

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

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