Skip to contentSkip to conversation

Linux 6.18.46

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Aug 23 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.18.46 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

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

 Makefile                                                            |    2 
 arch/arm64/boot/dts/nvidia/tegra194.dtsi                            |    2 
 arch/m68k/Kconfig.cpu                                               |    4 
 arch/openrisc/include/asm/processor.h                               |    2 
 arch/openrisc/kernel/signal.c                                       |    5 
 arch/powerpc/platforms/pseries/lparcfg.c                            |    2 
 arch/powerpc/platforms/pseries/papr-phy-attest.c                    |   12 
 arch/powerpc/platforms/pseries/pci.c                                |    2 
 arch/riscv/kernel/ftrace.c                                          |    5 
 arch/x86/kvm/x86.c                                                  |    6 
 block/genhd.c                                                       |   12 
 crypto/ccm.c                                                        |    2 
 drivers/accel/amdxdna/aie2_ctx.c                                    |   16 
 drivers/ata/libata-eh.c                                             |   29 
 drivers/ata/libata-scsi.c                                           |  117 +++-
 drivers/ata/libata.h                                                |    3 
 drivers/base/regmap/regmap-sdw-mbq.c                                |    4 
 drivers/crypto/qce/core.c                                           |    2 
 drivers/crypto/starfive/jh7110-aes.c                                |    2 
 drivers/crypto/tegra/tegra-se-aes.c                                 |   22 
 drivers/firewire/ohci.c                                             |   83 +-
 drivers/gpio/gpio-ml-ioh.c                                          |   71 +-
 drivers/gpio/gpio-sloppy-logic-analyzer.c                           |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c                              |   31 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c                          |   50 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c                             |   21 
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c                             |   10 
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c                             |   85 --
 drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c                              |    5 
 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c                            |   21 
 drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c                            |   21 
 drivers/gpu/drm/amd/amdgpu/nbif_v6_3_1.c                            |   42 -
 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c                               |   26 
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c              |    2 
 drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c               |   31 -
 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c                  |    7 
 drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c            |    7 
 drivers/gpu/drm/amd/pm/amdgpu_dpm.c                                 |   24 
 drivers/gpu/drm/amd/pm/amdgpu_pm.c                                  |   18 
 drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h                             |    3 
 drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c                    |    5 
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c                           |    2 
 drivers/gpu/drm/clients/drm_log.c                                   |   13 
 drivers/gpu/drm/display/drm_hdmi_state_helper.c                     |    3 
 drivers/gpu/drm/drm_client.c                                        |  181 ++----
 drivers/gpu/drm/drm_fbdev_dma.c                                     |    6 
 drivers/gpu/drm/drm_fbdev_shmem.c                                   |    4 
 drivers/gpu/drm/drm_fbdev_ttm.c                                     |    8 
 drivers/gpu/drm/panthor/panthor_fw.c                                |    3 
 drivers/gpu/drm/radeon/radeon_kms.c                                 |    1 
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c                                 |    3 
 drivers/gpu/drm/xe/xe_device.c                                      |    6 
 drivers/gpu/drm/xe/xe_lrc.c                                         |    7 
 drivers/gpu/drm/xe/xe_oa.c                                          |    4 
 drivers/input/joystick/iforce/iforce-packets.c                      |   11 
 drivers/input/joystick/iforce/iforce-usb.c                          |    3 
 drivers/input/joystick/psxpad-spi.c                                 |    1 
 drivers/input/joystick/xpad.c                                       |    2 
 drivers/input/keyboard/atkbd.c                                      |    8 
 drivers/input/misc/cs40l50-vibra.c                                  |   10 
 drivers/input/mouse/byd.c                                           |    2 
 drivers/input/mouse/focaltech.c                                     |    2 
 drivers/input/rmi4/rmi_f54.c                                        |   43 +
 drivers/input/rmi4/rmi_f55.c                                        |    4 
 drivers/input/touchscreen/hynitron_cstxxx.c                         |   13 
 drivers/input/touchscreen/sur40.c                                   |   23 
 drivers/mmc/host/atmel-mci.c                                        |    2 
 drivers/mmc/host/loongson2-mmc.c                                    |    8 
 drivers/mmc/host/omap_hsmmc.c                                       |    2 
 drivers/mmc/host/sdhci.c                                            |   16 
 drivers/mmc/host/sdhci.h                                            |    2 
 drivers/mtd/ubi/attach.c                                            |    4 
 drivers/mtd/ubi/fastmap-wl.c                                        |    8 
 drivers/mtd/ubi/io.c                                                |   10 
 drivers/mtd/ubi/ubi.h                                               |   12 
 drivers/net/can/rcar/rcar_canfd.c                                   |  181 +++---
 drivers/net/ethernet/broadcom/bnxt/bnxt.c                           |   30 -
 drivers/net/ethernet/google/gve/gve_ptp.c                           |    6 
 drivers/net/ethernet/google/gve/gve_rx_dqo.c                        |    5 
 drivers/net/ethernet/ti/am65-cpsw-nuss.c                            |    2 
 drivers/net/ethernet/wangxun/ngbe/ngbe_main.c                       |    4 
 drivers/net/ipvlan/ipvlan_main.c                                    |    4 
 drivers/net/macvlan.c                                               |    4 
 drivers/net/ntb_netdev.c                                            |  292 ++++++----
 drivers/net/ovpn/crypto.c                                           |   16 
 drivers/net/ovpn/io.c                                               |   10 
 drivers/net/phy/realtek/realtek_main.c                              |    2 
 drivers/net/tap.c                                                   |    3 
 drivers/net/veth.c                                                  |    2 
 drivers/pmdomain/arm/scmi_perf_domain.c                             |    2 
 drivers/pmdomain/mediatek/mt8183-pm-domains.h                       |    7 
 drivers/pmdomain/mediatek/mtk-pm-domains.c                          |   30 -
 drivers/s390/cio/vfio_ccw_async.c                                   |   16 
 drivers/s390/cio/vfio_ccw_chp.c                                     |   31 -
 drivers/s390/cio/vfio_ccw_cp.c                                      |   74 +-
 drivers/s390/cio/vfio_ccw_cp.h                                      |   10 
 drivers/s390/cio/vfio_ccw_drv.c                                     |   21 
 drivers/s390/cio/vfio_ccw_fsm.c                                     |    8 
 drivers/s390/cio/vfio_ccw_ops.c                                     |   39 +
 drivers/s390/cio/vfio_ccw_private.h                                 |   10 
 drivers/s390/crypto/zcrypt_ccamisc.c                                |   20 
 drivers/s390/crypto/zcrypt_ep11misc.c                               |   16 
 drivers/s390/net/qeth_core_main.c                                   |    3 
 drivers/s390/net/qeth_l3_main.c                                     |    5 
 drivers/spi/spi-virtio.c                                            |    2 
 drivers/video/fbdev/core/fb_io_fops.c                               |    8 
 fs/binfmt_misc.c                                                    |   32 -
 fs/btrfs/block-group.c                                              |   36 -
 fs/btrfs/zoned.c                                                    |    5 
 fs/btrfs/zoned.h                                                    |    6 
 fs/ceph/caps.c                                                      |   17 
 fs/ceph/file.c                                                      |    9 
 fs/ceph/mds_client.c                                                |   11 
 fs/ceph/mds_client.h                                                |    1 
 fs/ceph/mdsmap.c                                                    |    2 
 fs/erofs/Kconfig                                                    |    3 
 fs/proc/task_mmu.c                                                  |  146 ++---
 fs/smb/client/cifsglob.h                                            |    6 
 fs/smb/client/cifssmb.c                                             |    6 
 fs/smb/client/connect.c                                             |    2 
 fs/smb/client/smb1transport.c                                       |    8 
 fs/smb/common/cifsglob.h                                            |    5 
 fs/smb/server/auth.c                                                |    4 
 fs/smb/server/connection.c                                          |   23 
 fs/smb/server/oplock.c                                              |    8 
 fs/smb/server/server.c                                              |    2 
 fs/smb/server/smb2pdu.c                                             |   70 +-
 fs/smb/server/smb2pdu.h                                             |    9 
 fs/smb/server/smb_common.c                                          |   26 
 fs/smb/server/smb_common.h                                          |   14 
 fs/xfs/libxfs/xfs_exchmaps.c                                        |   10 
 fs/xfs/libxfs/xfs_rtrefcount_btree.c                                |    4 
 fs/xfs/libxfs/xfs_sb.c                                              |    4 
 fs/xfs/scrub/agheader.c                                             |    2 
 fs/xfs/scrub/agheader_repair.c                                      |  152 ++++-
 fs/xfs/scrub/alloc.c                                                |    5 
 fs/xfs/scrub/attr_repair.c                                          |    3 
 fs/xfs/scrub/bmap.c                                                 |    5 
 fs/xfs/scrub/dirtree_repair.c                                       |   22 
 fs/xfs/scrub/inode_repair.c                                         |    2 
 fs/xfs/scrub/nlinks.c                                               |   13 
 fs/xfs/scrub/nlinks_repair.c                                        |    7 
 fs/xfs/scrub/parent.c                                               |    2 
 fs/xfs/scrub/rtbitmap_repair.c                                      |   46 -
 fs/xfs/scrub/tempfile.c                                             |    1 
 fs/xfs/scrub/trace.h                                                |    2 
 fs/xfs/xfs_buf_item_recover.c                                       |   57 +
 fs/xfs/xfs_dquot.c                                                  |    3 
 fs/xfs/xfs_dquot_item_recover.c                                     |    2 
 fs/xfs/xfs_rtalloc.c                                                |    2 
 include/drm/drm_client.h                                            |   16 
 include/linux/libata.h                                              |    2 
 include/linux/swapops.h                                             |    4 
 include/net/ip_vs.h                                                 |    7 
 include/uapi/linux/ip_vs.h                                          |    6 
 kernel/events/core.c                                                |    8 
 kernel/futex/core.c                                                 |    4 
 kernel/sched/ext.c                                                  |   95 +--
 kernel/trace/ftrace.c                                               |    9 
 kernel/trace/ring_buffer.c                                          |  118 ++--
 mm/hmm.c                                                            |    2 
 mm/huge_memory.c                                                    |   22 
 mm/khugepaged.c                                                     |    2 
 mm/madvise.c                                                        |    2 
 mm/memory.c                                                         |    4 
 mm/mempolicy.c                                                      |    2 
 mm/migrate.c                                                        |    2 
 mm/page_table_check.c                                               |   20 
 mm/page_vma_mapped.c                                                |    2 
 mm/pagewalk.c                                                       |    2 
 mm/pgtable-generic.c                                                |    2 
 net/ceph/cls_lock_client.c                                          |   21 
 net/ceph/decode.c                                                   |   18 
 net/ceph/osdmap.c                                                   |    9 
 net/ipv4/tcp_input.c                                                |    6 
 net/ipv4/tcp_timer.c                                                |    4 
 net/mptcp/fastopen.c                                                |    7 
 net/mptcp/options.c                                                 |   67 ++
 net/mptcp/pm.c                                                      |    6 
 net/mptcp/protocol.c                                                |    6 
 net/mptcp/protocol.h                                                |    1 
 net/netfilter/ipset/ip_set_bitmap_gen.h                             |    2 
 net/netfilter/ipset/ip_set_core.c                                   |   19 
 net/netfilter/ipset/ip_set_list_set.c                               |   10 
 net/netfilter/ipvs/ip_vs_conn.c                                     |    4 
 net/netfilter/ipvs/ip_vs_core.c                                     |    6 
 net/netfilter/ipvs/ip_vs_ctl.c                                      |    4 
 net/netfilter/ipvs/ip_vs_dh.c                                       |    4 
 net/netfilter/ipvs/ip_vs_lblc.c                                     |    2 
 net/netfilter/ipvs/ip_vs_lblcr.c                                    |    8 
 net/netfilter/nf_flow_table_core.c                                  |    7 
 net/netfilter/nf_tables_offload.c                                   |    2 
 net/packet/af_packet.c                                              |    7 
 net/sched/act_api.c                                                 |   10 
 net/sched/cls_bpf.c                                                 |   18 
 net/sched/cls_u32.c                                                 |    3 
 net/sched/sch_api.c                                                 |   24 
 net/tls/tls_sw.c                                                    |    5 
 security/selinux/ss/policydb.c                                      |   34 +
 security/selinux/ss/services.c                                      |   28 
 sound/hda/codecs/realtek/alc269.c                                   |    1 
 sound/hda/codecs/realtek/alc662.c                                   |    1 
 sound/soc/codecs/cs35l41-lib.c                                      |    2 
 sound/soc/codecs/cs35l45-tables.c                                   |   32 -
 sound/soc/codecs/cs4265.c                                           |    4 
 sound/soc/codecs/lpass-wsa-macro.c                                  |    8 
 sound/soc/codecs/tas2562.c                                          |    9 
 sound/soc/codecs/tas2781-i2c.c                                      |   18 
 sound/soc/intel/common/sof-function-topology-lib.c                  |    7 
 sound/soc/sof/ipc4-pcm.c                                            |   25 
 sound/soc/sof/ipc4-topology.c                                       |   33 +
 sound/soc/sof/sof-audio.c                                           |    9 
 sound/soc/xilinx/xlnx_formatter_pcm.c                               |   10 
 tools/testing/selftests/ftrace/test.d/dynevent/add_remove_uprobe.tc |   27 
 tools/testing/selftests/net/mptcp/mptcp_join.sh                     |    4 
 215 files changed, 2502 insertions(+), 1262 deletions(-)

Ajrat Makhmutov (1):
ALSA: hda/realtek: Enable headset mic on F+ FLAPTOP r

Aldo Ariel Panzardo (1):
net/sched: serialize qdisc_rtab_list against concurrent get/put

Aleksandr Nogikh (1):
firewire: ohci: fix NULL pointer dereference in ar_context_release

Alexey Velichayshiy (1):
netfilter: nf_tables_offload: suppress WARN_ON_ONCE for ENOMEM in abort path

Ali Ahmet Memis (1):
openrisc: signal: do not restore privileged SR bits on sigreturn

Andrey Golovko (1):
regmap: sdw-mbq: don't call an unset readable_reg callback

Andy Shevchenko (1):
libceph: Amend checking to fix make W=1 build breakage

AngeloGioacchino Del Regno (1):
pmdomains: mediatek: Avoid setting RTFF's CLK_DIS before NRESTORE

Asad Kamal (1):
drm/amdgpu: fix aperture iounmap skipped on device removal

Bard Liao (1):
ASoC: SOF: topology: Use acpi mach from the machine driver

Biju Das (1):
can: rcar_canfd: Use devm_clk_get_optional() for RAM clk

Binbin Zhou (1):
mmc: loongson2: Fix sg iteration in data reorder functions

Bryam Vargas (6):
selinux: require every boolean value to be defined
selinux: reject a class permission count below its inherited common
selinux: do not cancel a policy conversion that never started
selinux: reject an unclaimed class value in security_get_classes()
selinux: reject a permission value exceeding the class permission count
Input: synaptics-rmi4 - bound the F54 report size to the allocated buffer

Candice Li (2):
drm/amdgpu: reject oversized IBs with per-ring packet limits drm/amdgpu: validate GEM_CREATE domain combinations

Cengiz Can (1):
gpio: sloppy-logic-analyzer: fix use-after-free via debugfs trigger on unbind

Chao Shi (1):
block: stop the timeout timer when releasing a never added disk

Charles Keepax (1):
regmap: sdw-mbq: Fix swap of timeout and retry times

ChenXiaoSong (3):
smb/server: rename include guard in smb_common.h smb/server: fix minimum SMB1 PDU size smb/server: fix minimum SMB2 PDU size

Cheng Ming Lin (1):
mtd: ubi: skip programming unused bits in ubi headers

Christian Brauner (1):
binfmt_misc: don't leak the user namespace when the mount fails

Christoph Hellwig (1):
xfs: check v5 superblock features early

Chuck Lever (1):
net/tls: Fail tls_sw_splice_read() after a failed async decrypt

Damien Le Moal (1):
ata: libata-scsi: terminate deferred commands on time out

Darrick J. Wong (18):
xfs: mark nonzero sb_gquotino as corrupt on metadir filesystems
xfs: check cowextsize in xrep_inode_cowextsize
xfs: fix transaction block reservation in xrep_rtbitmap
xfs: zero i_nlink before repair puts inode on unlinked list
xfs: only check mergeability of bnobt records
xfs: don't double-lock when deleting a self-referential directory
xfs: set the prev pointer when reinserting an inode on the unlinked list
xfs: pass runtime errors from xrep_iunlink_mark_ondisk_rec up to callers
xfs: nlink scrub must take IOLOCK before determining ILOCK state
xfs: load next_agino from the correct xfarray in xrep_iunlink_relink_prev
xfs: don't zap the attr fork on repair when there are queued pptr updates
xfs: don't walk off the end of a null sc->sa.agi_bp in AGI repair
xfs: fix allocated inodes that show up in the unlinked list
xfs: fix another iunlink infinite loop bug in online fsck
xfs: don't return EFSCORRUPTED when scrubbing corrupt parent pointers
xfs: avoid UAF on sc->tempip in xrep_tempfile_create
xfs: don't ignore runtime errors in xrep_iunlink_reload_next
xfs: check xfarray iteration errors when committing unlinked inode lists

David Howells (1):
ksmbd: Fix to handle removal of rfc1002 header from smb_hdr

David Rosca (6):
drm/amdgpu: Reject UVD message with invalid number of h265 refs drm/amdgpu: Reject UVD message with dimensions above 4096 drm/amdgpu: Implement insert_end for VCE 3 drm/amdgpu: Fix UVD min buffer sizes
drm/amdgpu: Fix UVD dpb min size calculation for H264 drm/amdgpu: Fix UVD decode image min size calculation

Dawid Wróbel (1):
ASoC: codecs: lpass-wsa-macro: Fix enum kcontrol accesses

Dmitry Osipenko (1):
pmdomain: mediatek: Fix mt8183 hang on boot

Dmitry Torokhov (6):
Input: synaptics-rmi4 - fix F55 transmitter electrode count typo
Input: synaptics-rmi4 - zero report size on F54 work error
Input: synaptics-rmi4 - block s_input when F54 queue is busy
Input: synaptics-rmi4 - propagate F54 worker errors to V4L2 queue
Input: sur40 - fix input device registration ordering
Input: sur40 - fix V4L error path cleanup

Eric Dumazet (3):
ipvlan: inherit needed_headroom and needed_tailroom from phy_dev
macvlan: inherit needed_headroom and needed_tailroom from lowerdev
af_packet: Don't send zero-byte data in tpacket_snd().

Eric Farman (10):
s390/vfio_ccw: Free all memory if cp_init() fails s390/vfio_ccw: Limit the number of channel program segments s390/vfio_ccw: Cancel existing workqueues s390/vfio_ccw: Ensure index for read/write regions are within range s390/vfio_ccw: Ensure first IDAW remains constant s390/vfio_ccw: Fix out of bounds check on CCW array s390/vfio_ccw: Move cp cleanup out of not operational s390/vfio_ccw: Selectively expand io_mutex s390/vfio_ccw: Calculate idal length based on idaw type s390/vfio_ccw: Implement a crw lock

Filipe Manana (1):
btrfs: remove fs_info argument from btrfs_zoned_activate_one_bg()

Florian Westphal (2):
netfilter: ipset: fix list type element drift bug
netfilter: ipset: let destroy callbacks adjust ext mem size

Gang Yan (1):
selftests: mptcp: join: mark tests with data corruption as failed

Gao Xiang (1):
erofs: fix EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS on some UP platforms

Geert Uytterhoeven (3):
can: rcar_canfd: Invert reset assert order
can: rcar_canfd: Invert global vs. channel teardown
can: rcar_canfd: Extract rcar_canfd_global_{,de}init()

George Wilson (3):
powerpc/pseries: pci - logic bug
powerpc/pseries: lparcfg - fix kbuf[] underflow powerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak

Greg Kroah-Hartman (1):

      Linux 6.18.46

Guanghui Yang (2):
xfs: propagate errors from xfs_rtginode_load
btrfs: zoned: fix missing chunk metadata reservation

Guangshuo Li (2):
pmdomain: mediatek: fix remaining %pOF after of_node_put() drm/radeon: fix autosuspend cleanup during teardown

Haibo Chen (1):
mmc: sdhci: make tuning_err a signed int

Harald Freudenberger (1):
s390/zcrypt: Fix CPRB memory allocation in zcrypt misc code

Herbert Xu (1):
crypto: ccm - Set rfc4309 maxauthsize from child

Hidayath Khan (1):
s390/qeth: validate user buffer length in SNMP and ARP query ioctls

HyeongJun An (1):
Input: cs40l50-vibra - validate custom data from user space

Ibrahim Hashimov (1):
xfs: bounds-check buffer log item's dirty bitmap

Jakub Kicinski (4):
eth: bnxt: always set the queue mgmt ops
eth: bnxt: make sure we populate the qcfg defaults on old FW/HW
eth: bnxt: cancel IRQ notifier before freeing affinity mask
eth: bnxt: keep the aRFS rmap updated when TPH is enabled

Jamal Hadi Salim (2):
net/sched: act_api: fix TOCTOU NULL deref on a->goto_chain net/sched: cls_bpf: reject dev-bound programs bound to a different device

Jasper Wise (1):
spi: virtio: mark device ready before registering the controller

Jesse Zhang (2):
drm/amdgpu: fix JPEG v5.0.0 queue reset failure in DPG mode drm/amdgpu: fix JPEG v4.0.5 queue reset failure in DPG mode

Jianing Li (1):
Input: hynitron_cstxxx - validate touch count and finger IDs

Jiawen Wu (1):
net: ngbe: fix NULL pointer dereference in non-MSI-X interrupt enabling

Jiayuan Chen (1):
tcp: fix icsk_ack.ato bitfield overflow

John Harrison (1):
drm/connector/hdmi: Fix out of bounds memory read

Jon Hunter (1):
arm64: tegra: Add EL2 virtual timer interrupt for Tegra194

Jonas Köppeler (1):
veth: fix queue index used to wake the peer txq in veth_poll

Jordan Rhee (2):
gve: fix NULL dereference due to missing ptp adjfine
gve: fix zero-length skb frag with header-split

Josh Poimboeuf (1):
ftrace: Fix off-by-one fentry site disable in ftrace_free_mem()

Junjie Cao (2):
gpio: ml-ioh: use raw_spinlock_t for the register lock
gpio: ml-ioh: share the register lock across channels

Junrui Luo (1):
drm/amdgpu: disallow multiple FENCE chunks in one submit

Jérémy Jean (1):
netfilter: flowtable: publish GC-visible tuple last

Kefu Chai (1):
libceph: tolerate addrvecs with multiple entries of the same type

Koichiro Den (2):
net: ntb_netdev: Introduce per-queue context
NTB: ntb_netdev: Preserve RX queue depth on allocation failure

Kyle Zeng (1):
perf: Reject exited events as group leaders

Kyohei Kadota (1):
Input: xpad - add support for ZENAIM LEVERLESS

Leon Hwang (1):
ftrace: Protect direct_functions in ftrace_find_rec_direct

Lin Jiapeng (1):
xfs: fix exchange-range reflink flag clearing issue with INO1_WRITTEN

Linmao Li (3):
Input: psxpad-spi - set driver data before use
Input: byd - synchronize timer deletion before freeing private data drm/xe/oa: Fix sync entry leak on OA config emit failure

Liyuan Pang (1):

      ubi: fastmap: fix ubi->fm memory leak

Lizhi Hou (1):
accel/amdxdna: Skip unmapped range in aie2_populate_range()

Long Li (2):
xfs: fix ilock leak on error in xfs_dq_get_next_id
xfs: don't swallow dquot recovery verification errors

Lorenzo Stoakes (2):
fs/proc/task_mmu: refactor pagemap_pmd_range()
mm: replace pmd_to_swp_entry() with softleaf_from_pmd()

Mark Brown (1):
ASoC: tas2562: Validate values for volume writes

Matthew Brost (1):
drm/xe: Order ring writes before ring tail updates

Matthieu Baerts (NGI0) (2):
mptcp: avoid combining some incoming suboptions
mptcp: options: reset DSS fields in case of unexpected size

Max Kellermann (2):
ceph: avoid fs reclaim while using current->journal_info
ceph: fix hanging __ceph_get_caps() with stale mds_wanted

Michael Diesen (1):
ALSA: hda/realtek: Add quirk for HP Dragonfly Folio G3 2-in-1 (103c:8a05)

Mingyu Wang (1):
fbdev: core: Fix pointer desynchronization in fb_io_read()

Myeonghun Pak (1):
mmc: sdhci: unmap the bounce buffer before device release

Namjae Jeon (2):
ksmbd: rename smb2_get_msg to smb_get_msg
ksmbd: validate minimum PDU size for transform requests

Nathan Lucas (2):
drm/amd/display: fix BT.2020 YCbCr limited output CSC matrix drm/amd/display: fix BT.2020 YCbCr output CSC matrices for DCE

Oleksij Rempel (1):
net: phy: realtek: fix EEE advertisement write on the internal PHY MMD path

Osama Abdelkader (1):
drm/panthor: skip zero-sized firmware sections

Paolo Abeni (1):
mptcp: reclaim forward-allocated memory on RX path errors

Pavitra Jha (2):
libceph: fix multiple unsafe decodes in decode_locker()
libceph: fix two unsafe bare decodes in decode_lockers()

Pei Xiao (1):
mmc: atmel-mci: Fix use-after-free in atmci_remove due to race condition

Pengpeng Hou (1):
Input: iforce - validate input packet lengths

Peter Ujfalusi (6):
ASoC: SOF: sof-audio: Fix error path in sof_widget_setup_unlocked()
ASoC: SOF: ipc4-pcm: Continue the pipeline trigger in case of IPC timeout
ASoC: cs4265: sort the register default table
ASoC: cs35l45: sort the register default table
ASoC: cs35l41: sort the register default table
ASoC: SOF: ipc4-topology: Refresh copier IPC payload before widget setup

Praveen Talari (1):
pmdomain: arm: Fix -EINVAL from scmi_pd_set_perf_state() on state 0

Pu Lehui (1):
riscv: ftrace: Fix ftrace_modify_call failure on kprobed functions

Qiang Ma (1):
xfs: clear zapped attr fork state when bmap repair finds no attr fork

Qiang Yu (1):
drm/amdgpu: read TRUNCATE_COORD_MODE on gfx12

Qing Luo (1):
mptcp: pm: fix data race in add_addr timer callback

Raag Jadav (1):
drm/xe: Fix xe_device_probe() failure

Ralf Lici (2):
ovpn: fix NULL dereference when killing missing key
ovpn: finish crypto callback cleanup before peer release

Raphael Zimmer (1):
libceph: Avoid using invalid osd indices from primary_temp

Richard Davies (1):
Input: focaltech - fix array out-of-bounds in focaltech_process_rel_packet

Rosen Penev (1):
ASoC: xilinx: formatter_pcm: pass aud_drv_data to irq handlers

Rui Qi (1):
selftests/ftrace: Convert ELF entry point to file offset in uprobe test

Samuel Pitoiset (1):
drm/amd/display: Fix NULL pointer dereference in amdgpu_dm_crtc_set_vblank()

Shenghao Ding (1):
ASoC: tas2781: fix clang build error for goto bypassing cleanup variable

Shixiong Ou (2):
drm/log: Fix out-of-bounds read on empty message length drm/log: Fix infinite loop when scale is too large for display

Siddharth Vadapalli (1):
net: ethernet: ti: am65-cpsw-nuss: Fix port_id extraction from SRC TAG

Steven Rostedt (1):
ring-buffer: Add helper functions for allocations

Takashi Sakamoto (2):
firewire: ohci: split page allocation from dma mapping
firewire: ohci: initialize page array to use alloc_pages_bulk() correctly

Tejun Heo (3):
sched_ext: Update p->scx.disallow warning in scx_init_task()
sched_ext: Reorganize enable/disable path for multi-scheduler support
sched_ext: Take cgroup_lock() first in scx_cgroup_lock()

Thomas Zimmermann (6):
drm/client: Remove pitch from struct drm_client_buffer drm/client: Move dumb-buffer handling to drm_client_framebuffer_create() drm/client: Inline drm_client_buffer_addfb() and _rmfb() drm/client: Deprecate struct drm_client_buffer.gem drm/client: Remove drm_client_framebuffer_delete() drm/vmwgfx: Set surface-framebuffer GEM objects

Thorsten Blum (2):
crypto: starfive - use scatterlist length before DMA mapping
crypto: qce - fix error path in devm_qce_register_algs

Tu Nguyen (1):
can: rcar_canfd: change the initializing flow for clocks and resets

Usama Arif (1):
userfaultfd: wait on source PMD during UFFDIO_MOVE

Uwe Kleine-König (1):
m68k: Define NR_CPUS to 1

Vincent Donnefort (2):
ring-buffer: Store bpage pointers into subbuf_ids
ring-buffer: Prevent resizing of persistent ring buffer

Vladislav Dronov (1):

      crypto: tegra - fix rctx->cryptlen calculation in tegra_gcm_do_one_req()

Wei Fang (2):
net: packet: fix wrong transport_header when sending VLAN-tagged frame
net: tap: fix wrong transport_header when sending VLAN-tagged frame

Weiming Shi (1):
KVM: x86: Cancel delayed I/O APIC EOI handling before destroying vCPUs

Wyatt Feng (1):
mptcp: fastopen: only mark MPTFO subflows with SYN data

Xiang Mei (2):
xfs: fix off-by-one in rtrefcount btree root level validation
libceph: bound pg_{temp,upmap,upmap_items} length to CEPH_PG_MAX_SIZE

Xiang Mei (Microsoft) (1):
netfilter: ipset: fix refcount race between list:set GC and swap

Yang Wang (4):
drm/amdgpu: fix nbif 6.3.1 l1 low power not functional drm/amdgpu: check ASPM on the dGPU host link drm/amd/pm: adjust the visibility of pp_table sysfs node drm/amd/pm: fix pptable use-after-free

Yao Kai (1):
futex: Fix race in futex_pivot_pending() during private hash resize

Yiming Zhu (1):
ceph: fix MDS random selection readiness predicate

Yizhou Zhao (1):
ipvs: separate destination availability state

Zhan Xusheng (1):
mmc: omap_hsmmc: fix busy_timeout overflow in ns conversion on 32-bit

Zhang Changzhong (1):
net/sched: cls_u32: skip hash tables in u32_bind_class()

ZhangGuoDong (1):
smb: move get_rfc1002_len() to common/smbglob.h

Zhefu Zhang (1):
Input: atkbd - skip deactivate for Xiaomi Book Pro 14's internal keyboard

Zhiling Zou (1):
mm/page_table_check: skip special zero mappings

author maintainer
#1 lore raw
Makefile +1 -1
index 7f6474d36c70..3c9141925807 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 18
-SUBLEVEL = 45
+SUBLEVEL = 46
 EXTRAVERSION =
 NAME = Baby Opossum Posse
 
arch/arm64/boot/dts/nvidia/tegra194.dtsi +2 -0
index 1399342f23e1..def60103179f 100644
@@ -3177,6 +3177,8 @@ timer {
 			     <GIC_PPI 11
 				(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
 			     <GIC_PPI 10
+				(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
+			     <GIC_PPI 15
 				(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
 		interrupt-parent = <&gic>;
 		always-on;
arch/m68k/Kconfig.cpu +4 -0
index c9a7e602d8a4..83f46fd6b97c 100644
@@ -548,6 +548,10 @@ config CACHE_COPYBACK
 endchoice
 endif # HAVE_CACHE_CB
 
+config NR_CPUS
+	int
+	default "1"
+
 # Coldfire cores that do not have a data cache configured can do coherent DMA.
 config COLDFIRE_COHERENT_DMA
 	bool
arch/openrisc/include/asm/processor.h +2 -0
index 3ff893a67c13..ae43fe79b2b5 100644
@@ -26,6 +26,8 @@
 		   | SPR_SR_DCE | SPR_SR_SM)
 #define USER_SR   (SPR_SR_DME | SPR_SR_IME | SPR_SR_ICE \
 		   | SPR_SR_DCE | SPR_SR_IEE | SPR_SR_TEE)
+/* SR bits user space may change via sigreturn, the rest stay kernel owned */
+#define SPR_SR_USER_MASK  (SPR_SR_F | SPR_SR_CY | SPR_SR_OV)
 
 /*
  * User space process size. This is hardcoded into a few places,
arch/openrisc/kernel/signal.c +3 -2
index f70a13ee0593..2be5af3b9832 100644
@@ -74,6 +74,7 @@ static long save_fp_state(struct sigcontext __user *sc)
 static int restore_sigcontext(struct pt_regs *regs,
 			      struct sigcontext __user *sc)
 {
+	unsigned long old_sr = regs->sr;
 	int err = 0;
 
 	/* Always make any pending restarted system calls return -EINTR */
@@ -89,8 +90,8 @@ static int restore_sigcontext(struct pt_regs *regs,
 	err |= __copy_from_user(&regs->sr, &sc->regs.sr, sizeof(unsigned long));
 	err |= restore_fp_state(sc);
 
-	/* make sure the SM-bit is cleared so user-mode cannot fool us */
-	regs->sr &= ~SPR_SR_SM;
+	/* keep the privileged SR bits kernel owned, restore only user flags */
+	regs->sr = (old_sr & ~SPR_SR_USER_MASK) | (regs->sr & SPR_SR_USER_MASK);
 
 	regs->orig_gpr11 = -1;	/* Avoid syscall restart checks */
 
arch/powerpc/platforms/pseries/lparcfg.c +1 -1
index cc22924f159f..cc775293d710 100644
@@ -686,7 +686,7 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf,
 	if (!firmware_has_feature(FW_FEATURE_SPLPAR))
 		return -EINVAL;
 
-	if (count > sizeof(kbuf))
+	if (count == 0 || count > sizeof(kbuf))
 		return -EINVAL;
 
 	if (copy_from_user(kbuf, buf, count))
arch/powerpc/platforms/pseries/papr-phy-attest.c +11 -1
index 1907f2411567..d661e6f96188 100644
@@ -230,10 +230,17 @@ static long papr_phy_attest_create_handle(struct papr_phy_attest_io_block __user
 		return -ENOMEM;
 
 	if (copy_from_user(&params->cmd, ulc,
-			sizeof(struct papr_phy_attest_io_block)))
+			sizeof(struct papr_phy_attest_io_block))) {
+		kfree(params);
 		return -EFAULT;
+	}
 
 	params->cmd_len = be32_to_cpu(params->cmd.length);
+	if (params->cmd_len == 0 || params->cmd_len > sizeof(params->cmd)) {
+		kfree(params);
+		return -EINVAL;
+	}
+
 	seq = (struct papr_rtas_sequence) {
 		.begin = phy_attest_sequence_begin,
 		.end = phy_attest_sequence_end,
@@ -246,6 +253,9 @@ static long papr_phy_attest_create_handle(struct papr_phy_attest_io_block __user
 			&papr_phy_attest_handle_ops,
 			"[papr-physical-attestation]");
 
+	if (fd < 0)
+		kfree(params);
+
 	return fd;
 }
 
arch/powerpc/platforms/pseries/pci.c +1 -1
index 6dbc73eb2ca2..82dc1ad52ac9 100644
@@ -132,7 +132,7 @@ static int pseries_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs)
 
 	/* First integer stores max config */
 	max_config_vfs = of_read_number(&max_vfs[0], 1);
-	if (max_config_vfs < num_vfs && num_vfs > MAX_VFS_FOR_MAP_PE) {
+	if (max_config_vfs < num_vfs || num_vfs > MAX_VFS_FOR_MAP_PE) {
 		dev_err(&pdev->dev,
 			"Num VFs %x > %x Configurable VFs\n",
 			num_vfs, (num_vfs > MAX_VFS_FOR_MAP_PE) ?
arch/riscv/kernel/ftrace.c +4 -1
index 8d18d6727f0f..c201c6bac1dd 100644
@@ -12,6 +12,7 @@
 #include <linux/stop_machine.h>
 #include <asm/cacheflush.h>
 #include <asm/text-patching.h>
+#include <asm/insn.h>
 
 #ifdef CONFIG_DYNAMIC_FTRACE
 void ftrace_arch_code_modify_prepare(void)
@@ -63,7 +64,9 @@ static int __ftrace_modify_call(unsigned long source, unsigned long target, bool
 		if (copy_from_kernel_nofault(replaced, (void *)source, 2 * MCOUNT_INSN_SIZE))
 			return -EFAULT;
 
-		if (replaced[0] != call[0]) {
+		/* Bypass the check if the auipc insn is a kprobe breakpoint */
+		if (replaced[0] != call[0] &&
+		    !(riscv_insn_is_ebreak(replaced[0]) || riscv_insn_is_c_ebreak(replaced[0]))) {
 			pr_err("%p: expected (%08x) but got (%08x)\n",
 			       (void *)source, call[0], replaced[0]);
 			return -EINVAL;
arch/x86/kvm/x86.c +6 -0
index f2708419f787..f0707f0e1ec0 100644
@@ -13320,12 +13320,18 @@ void kvm_arch_pre_destroy_vm(struct kvm *kvm)
 	 * iterating over vCPUs in a different task while vCPUs are being freed
 	 * is unsafe, i.e. will lead to use-after-free.  The PIT also needs to
 	 * be stopped before IRQ routing is freed.
+	 *
+	 * Do NOT free the in-kernel PIC or I/O APIC here (but as above, make
+	 * sure to flush any background work), as KVM expects interrupt routing
+	 * structures to be valid until vCPUs are destroyed.
 	 */
 	cancel_delayed_work_sync(&kvm->arch.kvmclock_sync_work);
 	cancel_delayed_work_sync(&kvm->arch.kvmclock_update_work);
 
 #ifdef CONFIG_KVM_IOAPIC
 	kvm_free_pit(kvm);
+	if (kvm->arch.vioapic)
+		cancel_delayed_work_sync(&kvm->arch.vioapic->eoi_inject);
 #endif
 
 	kvm_mmu_pre_destroy_vm(kvm);
block/genhd.c +8 -4
index d23cb33ea127..b00fa6baf4ff 100644
@@ -1281,14 +1281,18 @@ static void disk_release(struct device *dev)
 	/*
 	 * To undo the all initialization from blk_mq_init_allocated_queue in
 	 * case of a probe failure where add_disk is never called we have to
-	 * call blk_mq_exit_queue here. We can't do this for the more common
-	 * teardown case (yet) as the tagset can be gone by the time the disk
-	 * is released once it was added.
+	 * call blk_mq_exit_queue here, after stopping the timer and work items
+	 * that I/O issued before add_disk may have left pending.  We can't do
+	 * this for the more common teardown case (yet) as the tagset can be
+	 * gone by the time the disk is released once it was added.
 	 */
 	if (queue_is_mq(disk->queue) &&
 	    test_bit(GD_OWNS_QUEUE, &disk->state) &&
-	    !test_bit(GD_ADDED, &disk->state))
+	    !test_bit(GD_ADDED, &disk->state)) {
+		blk_sync_queue(disk->queue);
+		blk_mq_cancel_work_sync(disk->queue);
 		blk_mq_exit_queue(disk->queue);
+	}
 
 	blkcg_exit_disk(disk);
 
crypto/ccm.c +1 -1
index 2ae929ffdef8..916441e4f2b8 100644
@@ -747,7 +747,7 @@ static int crypto_rfc4309_create(struct crypto_template *tmpl,
 
 	inst->alg.ivsize = 8;
 	inst->alg.chunksize = crypto_aead_alg_chunksize(alg);
-	inst->alg.maxauthsize = 16;
+	inst->alg.maxauthsize = crypto_aead_alg_maxauthsize(alg);
 
 	inst->alg.base.cra_ctxsize = sizeof(struct crypto_rfc4309_ctx);
 
drivers/accel/amdxdna/aie2_ctx.c +16 -0
index 612ad6302622..9ec3d90c2d20 100644
@@ -794,6 +794,16 @@ static int aie2_populate_range(struct amdxdna_gem_obj *abo)
 	found = false;
 	down_write(&xdna->notifier_lock);
 	list_for_each_entry(mapp, &abo->mem.umap_list, node) {
+		/*
+		 * Skip entries that have already been unmapped.
+		 *
+		 * If userspace unmaps the address and later submits I/O using
+		 * it, the IOMMU will reject the access and report a fault.
+		 * Ignore such entries here.
+		 */
+		if (mapp->unmapped)
+			continue;
+
 		if (mapp->invalid && kref_get_unless_zero(&mapp->refcnt)) {
 			found = true;
 			break;
@@ -801,6 +811,12 @@ static int aie2_populate_range(struct amdxdna_gem_obj *abo)
 	}
 
 	if (!found) {
+		/*
+		 * This also covers the case where all mappings have been
+		 * removed. There are no invalid mappings left to process.
+		 * Any subsequent I/O using the unmapped address will be
+		 * rejected by the IOMMU.
+		 */
 		abo->mem.map_invalid = false;
 		up_write(&xdna->notifier_lock);
 		return 0;
drivers/ata/libata-eh.c +6 -23
index 44daae8f378a..f21efb0f6419 100644
@@ -648,29 +648,12 @@ void ata_scsi_cmd_error_handler(struct Scsi_Host *host, struct ata_port *ap,
 		set_host_byte(scmd, DID_OK);
 
 		ata_qc_for_each_raw(ap, qc, i) {
-			if (qc->scsicmd != scmd)
-				continue;
-			if ((qc->flags & ATA_QCFLAG_ACTIVE) ||
-			    qc == qc->dev->link->deferred_qc)
+			if (qc->scsicmd == scmd &&
+			    qc->flags & ATA_QCFLAG_ACTIVE)
 				break;
 		}
 
-		if (i < ATA_MAX_QUEUE && qc == qc->dev->link->deferred_qc) {
-			/*
-			 * This is a deferred command that timed out while
-			 * waiting for the command queue to drain. Since the qc
-			 * is not active yet (deferred_qc is still set, so the
-			 * deferred qc work has not issued the command yet),
-			 * simply signal the timeout by finishing the SCSI
-			 * command and clear the deferred qc to prevent the
-			 * deferred qc work from issuing this qc.
-			 */
-			WARN_ON_ONCE(qc->flags & ATA_QCFLAG_ACTIVE);
-			qc->dev->link->deferred_qc = NULL;
-			cancel_work(&qc->dev->link->deferred_qc_work);
-			set_host_byte(scmd, DID_TIME_OUT);
-			scsi_eh_finish_cmd(scmd, &ap->eh_done_q);
-		} else if (i < ATA_MAX_QUEUE) {
+		if (i < ATA_MAX_QUEUE) {
 			/* the scmd has an associated qc */
 			if (!(qc->flags & ATA_QCFLAG_EH)) {
 				/* which hasn't failed yet, timeout */
@@ -944,10 +927,10 @@ static void ata_eh_set_pending(struct ata_port *ap, bool fastdrain)
 	ap->pflags |= ATA_PFLAG_EH_PENDING;
 
 	/*
-	 * If we have a deferred qc, requeue it so that it is retried once EH
-	 * completes.
+	 * If we have deferred QCs, requeue them so that the SCSI EH task can
+	 * run.
 	 */
-	ata_scsi_requeue_deferred_qc(ap);
+	ata_scsi_requeue_deferred_qc(ap, NULL);
 
 	if (!fastdrain)
 		return;
drivers/ata/libata-scsi.c +101 -16

151 lines not on this page · raw message

drivers/ata/libata.h +2 -1
index 56c4136b7417..9f96ca2acfd9 100644
@@ -172,7 +172,8 @@ int ata_scsi_dev_config(struct scsi_device *sdev, struct queue_limits *lim,
 		struct ata_device *dev);
 int __ata_scsi_queuecmd(struct scsi_cmnd *scmd, struct ata_device *dev);
 void ata_scsi_deferred_qc_work(struct work_struct *work);
-void ata_scsi_requeue_deferred_qc(struct ata_port *ap);
+enum scsi_timeout_action ata_scsi_requeue_deferred_qc(struct ata_port *ap,
+						      struct scsi_cmnd *scmd);
 
 /* libata-eh.c */
 extern unsigned int ata_internal_cmd_timeout(struct ata_device *dev, u8 cmd);
drivers/base/regmap/regmap-sdw-mbq.c +2 -2
index 86644bbd0710..fe1a8c442034 100644
@@ -54,10 +54,10 @@ static int regmap_sdw_mbq_poll_busy(struct sdw_slave *slave, unsigned int reg,
 	reg = SDW_SDCA_CTL(SDW_SDCA_CTL_FUNC(reg), 0,
 			   SDCA_CTL_ENTITY_0_FUNCTION_STATUS, 0);
 
-	if (ctx->readable_reg(dev, reg)) {
+	if (!ctx->readable_reg || ctx->readable_reg(dev, reg)) {
 		ret = read_poll_timeout(sdw_read_no_pm, val,
 					val < 0 || !(val & SDCA_CTL_ENTITY_0_FUNCTION_BUSY),
-					ctx->cfg.timeout_us, ctx->cfg.retry_us,
+					ctx->cfg.retry_us, ctx->cfg.timeout_us,
 					false, slave, reg);
 		if (val < 0)
 			return val;
drivers/crypto/qce/core.c +1 -1
index e95e84486d9a..f5bccb345374 100644
@@ -60,7 +60,7 @@ static int devm_qce_register_algs(struct qce_device *qce)
 		ret = ops->register_algs(qce);
 		if (ret) {
 			for (j = i - 1; j >= 0; j--)
-				ops->unregister_algs(qce);
+				qce_ops[j]->unregister_algs(qce);
 			return ret;
 		}
 	}
drivers/crypto/starfive/jh7110-aes.c +1 -1
index 01195664cc7c..8e02275a7079 100644
@@ -677,7 +677,7 @@ static int starfive_aes_aead_do_one_req(struct crypto_engine *engine, void *areq
 
 	if (cryp->total_in)
 		sg_zero_buffer(rctx->in_sg, sg_nents(rctx->in_sg),
-			       sg_dma_len(rctx->in_sg) - cryp->total_in,
+			       rctx->in_sg->length - cryp->total_in,
 			       cryp->total_in);
 
 	ctx->rctx = rctx;
drivers/crypto/tegra/tegra-se-aes.c +3 -19
index 9094c03e991f..0fd1d7035899 100644
@@ -45,7 +45,6 @@ struct tegra_aes_reqctx {
 
 struct tegra_aead_ctx {
 	struct tegra_se *se;
-	unsigned int authsize;
 	u32 alg;
 	u32 key_id;
 	u32 keylen;
@@ -1290,7 +1289,7 @@ static int tegra_gcm_do_one_req(struct crypto_engine *engine, void *areq)
 	if (rctx->encrypt)
 		rctx->cryptlen = req->cryptlen;
 	else
-		rctx->cryptlen = req->cryptlen - ctx->authsize;
+		rctx->cryptlen = req->cryptlen - rctx->authsize;
 
 	memcpy(rctx->iv, req->iv, GCM_AES_IV_SIZE);
 	rctx->iv[3] = (1 << 24);
@@ -1394,8 +1393,6 @@ static int tegra_aead_cra_init(struct crypto_aead *tfm)
 
 static int tegra_ccm_setauthsize(struct crypto_aead *tfm,  unsigned int authsize)
 {
-	struct tegra_aead_ctx *ctx = crypto_aead_ctx(tfm);
-
 	switch (authsize) {
 	case 4:
 	case 6:
@@ -1404,28 +1401,15 @@ static int tegra_ccm_setauthsize(struct crypto_aead *tfm,  unsigned int authsize
 	case 12:
 	case 14:
 	case 16:
-		break;
+		return 0;
 	default:
 		return -EINVAL;
 	}
-
-	ctx->authsize = authsize;
-
-	return 0;
 }
 
 static int tegra_gcm_setauthsize(struct crypto_aead *tfm,  unsigned int authsize)
 {
-	struct tegra_aead_ctx *ctx = crypto_aead_ctx(tfm);
-	int ret;
-
-	ret = crypto_gcm_check_authsize(authsize);
-	if (ret)
-		return ret;
-
-	ctx->authsize = authsize;
-
-	return 0;
+	return crypto_gcm_check_authsize(authsize);
 }
 
 static void tegra_aead_cra_exit(struct crypto_aead *tfm)
drivers/firewire/ohci.c +55 -28

116 lines not on this page · raw message

drivers/gpio/gpio-ml-ioh.c +38 -33

201 lines not on this page · raw message

drivers/gpio/gpio-sloppy-logic-analyzer.c +1 -1
index 0f4a6228a748..3b6825b0f2f9 100644
@@ -301,7 +301,7 @@ static int gpio_la_poll_probe(struct platform_device *pdev)
 	debugfs_create_ulong("delay_ns_acquisition", 0400, priv->debug_dir, &priv->acq_delay);
 	debugfs_create_file_unsafe("buf_size", 0600, priv->debug_dir, priv, &fops_buf_size);
 	debugfs_create_file_unsafe("capture", 0200, priv->debug_dir, priv, &fops_capture);
-	debugfs_create_file_unsafe("trigger", 0200, priv->debug_dir, priv, &fops_trigger);
+	debugfs_create_file("trigger", 0200, priv->debug_dir, priv, &fops_trigger);
 
 	return 0;
 }
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +30 -1
index 752b34cffdc5..38ce4d7c86f0 100644
@@ -42,6 +42,26 @@
 #include "amdgpu_gem.h"
 #include "amdgpu_ras.h"
 
+/*
+ * Maximum IB length (dwords) for rings whose emit_ib packet format
+ * documents a 20-bit size field.
+ */
+#define AMDGPU_GFX_SDMA_IB_PACKET_SIZE_MAX_DW	0xFFFFF
+#define AMDGPU_MM_IB_PACKET_SIZE_MAX_DW	0x7FFFF0
+
+static u32 amdgpu_cs_ib_packet_size_max_dw(enum amdgpu_ring_type type)
+{
+	switch (type) {
+	case AMDGPU_RING_TYPE_GFX:
+	case AMDGPU_RING_TYPE_COMPUTE:
+	case AMDGPU_RING_TYPE_SDMA:
+	case AMDGPU_RING_TYPE_VPE:
+		return AMDGPU_GFX_SDMA_IB_PACKET_SIZE_MAX_DW;
+	default:
+		return AMDGPU_MM_IB_PACKET_SIZE_MAX_DW;
+	}
+}
+
 static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p,
 				 struct amdgpu_device *adev,
 				 struct drm_file *filp,
@@ -241,6 +261,10 @@ static int amdgpu_cs_pass1(struct amdgpu_cs_parser *p,
 			if (size < sizeof(struct drm_amdgpu_cs_chunk_fence))
 				goto free_partial_kdata;
 
+			/* Only a single user fence is allowed to simplify handling. */
+			if (p->uf_bo)
+				goto free_partial_kdata;
+
 			ret = amdgpu_cs_p1_user_fence(p, p->chunks[i].kdata,
 						      &uf_offset);
 			if (ret)
@@ -358,7 +382,6 @@ static int amdgpu_cs_p2_ib(struct amdgpu_cs_parser *p,
 
 	job = p->jobs[r];
 	ring = amdgpu_job_ring(job);
-	ib = &job->ibs[job->num_ibs++];
 
 	/* submissions to kernel queues are disabled */
 	if (ring->no_user_submission)
@@ -387,6 +410,12 @@ static int amdgpu_cs_p2_ib(struct amdgpu_cs_parser *p,
 			return -EINVAL;
 	}
 
+	if (chunk_ib->ib_bytes / 4 >
+	    amdgpu_cs_ib_packet_size_max_dw(ring->funcs->type))
+		return -EINVAL;
+
+	ib = &job->ibs[job->num_ibs++];
+
 	if (chunk_ib->flags & AMDGPU_IB_FLAG_PREAMBLE)
 		job->preamble_status |= AMDGPU_PREAMBLE_IB_PRESENT;
 
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +49 -1

68 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +21 -0
index 5fc9a6b1ec72..d3f2aa8cbdbc 100644
@@ -385,6 +385,25 @@ const struct drm_gem_object_funcs amdgpu_gem_object_funcs = {
 	.vm_ops = &amdgpu_gem_vm_ops,
 };
 
+static bool amdgpu_gem_are_domains_valid(u32 domains)
+{
+	u32 normal = AMDGPU_GEM_DOMAIN_CPU |
+		     AMDGPU_GEM_DOMAIN_GTT |
+		     AMDGPU_GEM_DOMAIN_VRAM;
+	/* Treat all non CPU/GTT/VRAM domains as special domains. */
+	u32 special = AMDGPU_GEM_DOMAIN_MASK & ~normal;
+	u32 normal_mask = domains & normal;
+	u32 special_mask = domains & special;
+
+	if (!special_mask)
+		return true;
+
+	if (normal_mask)
+		return false;
+
+	return !(special_mask & (special_mask - 1));
+}
+
 /*
  * GEM ioctls.
  */
@@ -409,6 +428,8 @@ int amdgpu_gem_create_ioctl(struct drm_device *dev, void *data,
 	/* reject invalid gem domains */
 	if (args->in.domains & ~AMDGPU_GEM_DOMAIN_MASK)
 		return -EINVAL;
+	if (!amdgpu_gem_are_domains_valid(args->in.domains))
+		return -EINVAL;
 
 	if (!amdgpu_is_tmz(adev) && (flags & AMDGPU_GEM_CREATE_ENCRYPTED)) {
 		DRM_NOTE_ONCE("Cannot allocate secure buffer since TMZ is disabled\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +2 -8
index 387a3358ffda..c48c266cc7a7 100644
@@ -2163,8 +2163,6 @@ int amdgpu_ttm_init(struct amdgpu_device *adev)
  */
 void amdgpu_ttm_fini(struct amdgpu_device *adev)
 {
-	int idx;
-
 	if (!adev->mman.initialized)
 		return;
 
@@ -2191,13 +2189,9 @@ void amdgpu_ttm_fini(struct amdgpu_device *adev)
 	amdgpu_ttm_fw_reserve_vram_fini(adev);
 	amdgpu_ttm_drv_reserve_vram_fini(adev);
 
-	if (drm_dev_enter(adev_to_drm(adev), &idx)) {
-
-		if (adev->mman.aper_base_kaddr)
-			iounmap(adev->mman.aper_base_kaddr);
+	if (adev->mman.aper_base_kaddr) {
+		iounmap(adev->mman.aper_base_kaddr);
 		adev->mman.aper_base_kaddr = NULL;
-
-		drm_dev_exit(idx);
 	}
 
 	if (!adev->gmc.is_app_apu)
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +18 -67

151 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c +5 -0
index b91e81276877..ea72c334a3e7 100644
@@ -1810,6 +1810,11 @@ static void gfx_v12_0_constants_init(struct amdgpu_device *adev)
 	gfx_v12_0_get_tcc_info(adev);
 	adev->gfx.config.pa_sc_tile_steering_override = 0;
 
+	/* Set whether texture coordinate truncation is conformant. */
+	tmp = RREG32_SOC15(GC, 0, regTA_CNTL2);
+	adev->gfx.config.ta_cntl2_truncate_coord_mode =
+		REG_GET_FIELD(tmp, TA_CNTL2, TRUNCATE_COORD_MODE);
+
 	/* XXX SH_MEM regs */
 	/* where to put LDS, scratch, GPUVM in FSA64 space */
 	mutex_lock(&adev->srbm_mutex);
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c +17 -4
index a43582b9c876..3f61d5367d94 100644
@@ -772,15 +772,28 @@ static int jpeg_v4_0_5_ring_reset(struct amdgpu_ring *ring,
 				  unsigned int vmid,
 				  struct amdgpu_fence *timedout_fence)
 {
+	struct amdgpu_device *adev = ring->adev;
+	u32 pg_flags = adev->pg_flags;
 	int r;
 
 	amdgpu_ring_reset_helper_begin(ring, timedout_fence);
-	r = jpeg_v4_0_5_stop(ring->adev);
-	if (r)
-		return r;
-	r = jpeg_v4_0_5_start(ring->adev);
+
+	/*
+	 * The DPG stop path only clears the JPEG_PG_MODE bit and never resets a
+	 * hung JRBC, so the post-reset ring test times out and the driver falls
+	 * back to a full MODE1 reset. Temporarily force the static power-gating
+	 * path so the stop/start sequence actually power-cycles the JPEG block
+	 * (JMI soft reset + static power off/on), matching the working jpeg_v4_0
+	 * reset.
+	 */
+	adev->pg_flags &= ~AMD_PG_SUPPORT_JPEG_DPG;
+	r = jpeg_v4_0_5_stop(adev);
+	if (!r)
+		r = jpeg_v4_0_5_start(adev);
+	adev->pg_flags = pg_flags;
 	if (r)
 		return r;
+
 	return amdgpu_ring_reset_helper_end(ring, timedout_fence);
 }
 
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c +17 -4
index 72a4b2d0676f..c696a0dea32c 100644
@@ -648,15 +648,28 @@ static int jpeg_v5_0_0_ring_reset(struct amdgpu_ring *ring,
 				  unsigned int vmid,
 				  struct amdgpu_fence *timedout_fence)
 {
+	struct amdgpu_device *adev = ring->adev;
+	u32 pg_flags = adev->pg_flags;
 	int r;
 
 	amdgpu_ring_reset_helper_begin(ring, timedout_fence);
-	r = jpeg_v5_0_0_stop(ring->adev);
-	if (r)
-		return r;
-	r = jpeg_v5_0_0_start(ring->adev);
+
+	/*
+	 * The DPG stop path only clears the JPEG_PG_MODE bit and never resets a
+	 * hung JRBC, so the post-reset ring test times out and the driver falls
+	 * back to a full MODE1 reset. Temporarily force the static power-gating
+	 * path so the stop/start sequence actually power-cycles the JPEG block
+	 * (JMI soft reset + ONO1 power off/on), matching the working jpeg_v4_0
+	 * reset.
+	 */
+	adev->pg_flags &= ~AMD_PG_SUPPORT_JPEG_DPG;
+	r = jpeg_v5_0_0_stop(adev);
+	if (!r)
+		r = jpeg_v5_0_0_start(adev);
+	adev->pg_flags = pg_flags;
 	if (r)
 		return r;
+
 	return amdgpu_ring_reset_helper_end(ring, timedout_fence);
 }
 
drivers/gpu/drm/amd/amdgpu/nbif_v6_3_1.c +17 -25

79 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +22 -4
index 708123899c41..b54359efac06 100644
@@ -870,6 +870,23 @@ static void vce_v3_0_ring_emit_ib(struct amdgpu_ring *ring,
 	amdgpu_ring_write(ring, ib->length_dw);
 }
 
+static void vce_v3_0_ring_emit_fence(struct amdgpu_ring *ring, u64 addr,
+			u64 seq, unsigned flags)
+{
+	WARN_ON(flags & AMDGPU_FENCE_FLAG_64BIT);
+
+	amdgpu_ring_write(ring, VCE_CMD_FENCE);
+	amdgpu_ring_write(ring, addr);
+	amdgpu_ring_write(ring, upper_32_bits(addr));
+	amdgpu_ring_write(ring, seq);
+	amdgpu_ring_write(ring, VCE_CMD_TRAP);
+}
+
+static void vce_v3_0_ring_insert_end(struct amdgpu_ring *ring)
+{
+	amdgpu_ring_write(ring, VCE_CMD_END);
+}
+
 static void vce_v3_0_emit_vm_flush(struct amdgpu_ring *ring,
 				   unsigned int vmid, uint64_t pd_addr)
 {
@@ -879,7 +896,6 @@ static void vce_v3_0_emit_vm_flush(struct amdgpu_ring *ring,
 
 	amdgpu_ring_write(ring, VCE_CMD_FLUSH_TLB);
 	amdgpu_ring_write(ring, vmid);
-	amdgpu_ring_write(ring, VCE_CMD_END);
 }
 
 static void vce_v3_0_emit_pipeline_sync(struct amdgpu_ring *ring)
@@ -948,17 +964,19 @@ static const struct amdgpu_ring_funcs vce_v3_0_ring_vm_funcs = {
 	.set_wptr = vce_v3_0_ring_set_wptr,
 	.patch_cs_in_place = amdgpu_vce_ring_parse_cs_vm,
 	.emit_frame_size =
-		6 + /* vce_v3_0_emit_vm_flush */
+		5 + /* vce_v3_0_emit_vm_flush */
 		4 + /* vce_v3_0_emit_pipeline_sync */
-		6 + 6, /* amdgpu_vce_ring_emit_fence x2 vm fence */
+		5 + 5 + /* vce_v3_0_ring_emit_fence x2 vm fence */
+		1, /* vce_v3_0_ring_insert_end */
 	.emit_ib_size = 5, /* vce_v3_0_ring_emit_ib */
 	.emit_ib = vce_v3_0_ring_emit_ib,
 	.emit_vm_flush = vce_v3_0_emit_vm_flush,
 	.emit_pipeline_sync = vce_v3_0_emit_pipeline_sync,
-	.emit_fence = amdgpu_vce_ring_emit_fence,
+	.emit_fence = vce_v3_0_ring_emit_fence,
 	.test_ring = amdgpu_vce_ring_test_ring,
 	.test_ib = amdgpu_vce_ring_test_ib,
 	.insert_nop = amdgpu_ring_insert_nop,
+	.insert_end = vce_v3_0_ring_insert_end,
 	.pad_ib = amdgpu_ring_generic_pad_ib,
 	.begin_use = amdgpu_vce_ring_begin_use,
 	.end_use = amdgpu_vce_ring_end_use,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +1 -1
index cc23d45815c3..788068303152 100644
@@ -306,7 +306,7 @@ static inline int amdgpu_dm_crtc_set_vblank(struct drm_crtc *crtc, bool enable)
 
 	irq_type = amdgpu_display_crtc_idx_to_irq_type(adev, acrtc->crtc_id);
 
-	if (enable) {
+	if (enable && acrtc_state->stream) {
 		struct dc *dc = adev->dm.dc;
 		struct drm_vblank_crtc *vblank = drm_crtc_vblank_crtc(crtc);
 		struct psr_settings *psr = &acrtc_state->stream->link->psr_settings;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c +20 -11
index d82b1cb467f4..f56d1ae879ee 100644
@@ -51,7 +51,8 @@ enum dc_color_space_type {
 	COLOR_SPACE_RGB_LIMITED_TYPE,
 	COLOR_SPACE_YCBCR601_TYPE,
 	COLOR_SPACE_YCBCR709_TYPE,
-	COLOR_SPACE_YCBCR2020_TYPE,
+	COLOR_SPACE_YCBCR2020_LIMITED_TYPE,
+	COLOR_SPACE_YCBCR2020_FULL_TYPE,
 	COLOR_SPACE_YCBCR601_LIMITED_TYPE,
 	COLOR_SPACE_YCBCR709_LIMITED_TYPE,
 	COLOR_SPACE_YCBCR709_BLACK_TYPE,
@@ -103,9 +104,15 @@ static const struct out_csc_color_matrix_type output_csc_matrix[] = {
 		{ 0xE00, 0xF349, 0xFEB7, 0x1000,
 		  0x6CE, 0x16E3, 0x24F,  0x200,
 		  0xFCCB, 0xF535, 0xE00, 0x1000} },
-	{ COLOR_SPACE_YCBCR2020_TYPE,
+	/* Corrected. Not included in the TODO above. */
+	{ COLOR_SPACE_YCBCR2020_LIMITED_TYPE,
+		{ 0x0E04, 0xF31D, 0xFEDF, 0x1004,
+		  0x0733, 0x1294, 0x01A0, 0x0201,
+		  0xFC16, 0xF5E6, 0x0E04, 0x1004} },
+	/* Corrected. Not included in the TODO above. */
+	{ COLOR_SPACE_YCBCR2020_FULL_TYPE,
 		{ 0x1000, 0xF149, 0xFEB7, 0x1004,
-		  0x0868, 0x15B2, 0x01E6, 0x201,
+		  0x0868, 0x15B2, 0x01E6, 0,
 		  0xFB88, 0xF478, 0x1000, 0x1004} },
 	{ COLOR_SPACE_YCBCR709_BLACK_TYPE,
 		{ 0x0000, 0x0000, 0x0000, 0x1000,
@@ -172,14 +179,14 @@ static bool is_ycbcr709_type(
 	return ret;
 }
 
-static bool is_ycbcr2020_type(
-	enum dc_color_space color_space)
+static bool is_ycbcr2020_limited_type(enum dc_color_space color_space)
 {
-	bool ret = false;
+	return color_space == COLOR_SPACE_2020_YCBCR_LIMITED;
+}
 
-	if (color_space == COLOR_SPACE_2020_YCBCR_LIMITED || color_space == COLOR_SPACE_2020_YCBCR_FULL)
-		ret = true;
-	return ret;
+static bool is_ycbcr2020_full_type(enum dc_color_space color_space)
+{
+	return color_space == COLOR_SPACE_2020_YCBCR_FULL;
 }
 
 static bool is_ycbcr709_limited_type(
@@ -208,8 +215,10 @@ static enum dc_color_space_type get_color_space_type(enum dc_color_space color_s
 		type = COLOR_SPACE_YCBCR601_LIMITED_TYPE;
 	else if (is_ycbcr709_limited_type(color_space))
 		type = COLOR_SPACE_YCBCR709_LIMITED_TYPE;
-	else if (is_ycbcr2020_type(color_space))
-		type = COLOR_SPACE_YCBCR2020_TYPE;
+	else if (is_ycbcr2020_limited_type(color_space))
+		type = COLOR_SPACE_YCBCR2020_LIMITED_TYPE;
+	else if (is_ycbcr2020_full_type(color_space))
+		type = COLOR_SPACE_YCBCR2020_FULL_TYPE;
 	else if (color_space == COLOR_SPACE_YCBCR709)
 		type = COLOR_SPACE_YCBCR709_BLACK_TYPE;
 	else if (color_space == COLOR_SPACE_YCBCR709_BLACK)
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c +4 -3
index 23b35393bf42..351cc84e146b 100644
@@ -115,10 +115,11 @@ static const struct out_csc_color_matrix global_color_matrix[] = {
 	{ 0x2000, 0, 0, 0, 0, 0x2000, 0, 0, 0, 0, 0x2000, 0} },
 { COLOR_SPACE_2020_RGB_LIMITEDRANGE,
 	{ 0x1B67, 0, 0, 0x201, 0, 0x1B67, 0, 0x201, 0, 0, 0x1B67, 0x201} },
-{ COLOR_SPACE_2020_YCBCR_LIMITED, { 0x1000, 0xF149, 0xFEB7, 0x1004, 0x0868,
-	0x15B2, 0x01E6, 0x201, 0xFB88, 0xF478, 0x1000, 0x1004} },
+/* COLOR_SPACE_2020_YCBCR_* values corrected. Not included in the TODO above. */
+{ COLOR_SPACE_2020_YCBCR_LIMITED, { 0x0E04, 0xF31D, 0xFEDF, 0x1004, 0x0733,
+	0x1294, 0x01A0, 0x201, 0xFC16, 0xF5E6, 0x0E04, 0x1004} },
 { COLOR_SPACE_2020_YCBCR_FULL, { 0x1000, 0xF149, 0xFEB7, 0x1004, 0x0868, 0x15B2,
-	0x01E6, 0x201, 0xFB88, 0xF478, 0x1000, 0x1004} }
+	0x01E6, 0, 0xFB88, 0xF478, 0x1000, 0x1004} }
 };
 
 static bool setup_scaling_configuration(
drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c +4 -3
index f7b2be02333c..870ae2e3c1b1 100644
@@ -93,10 +93,11 @@ static const struct out_csc_color_matrix global_color_matrix[] = {
 	{ 0x2000, 0, 0, 0, 0, 0x2000, 0, 0, 0, 0, 0x2000, 0} },
 { COLOR_SPACE_2020_RGB_LIMITEDRANGE,
 	{ 0x1B67, 0, 0, 0x201, 0, 0x1B67, 0, 0x201, 0, 0, 0x1B67, 0x201} },
-{ COLOR_SPACE_2020_YCBCR_LIMITED, { 0x1000, 0xF149, 0xFEB7, 0x1004, 0x0868,
-	0x15B2, 0x01E6, 0x201, 0xFB88, 0xF478, 0x1000, 0x1004} },
+/* COLOR_SPACE_2020_YCBCR_* values corrected. Not included in the TODO above. */
+{ COLOR_SPACE_2020_YCBCR_LIMITED, { 0x0E04, 0xF31D, 0xFEDF, 0x1004, 0x0733,
+	0x1294, 0x01A0, 0x201, 0xFC16, 0xF5E6, 0x0E04, 0x1004} },
 { COLOR_SPACE_2020_YCBCR_FULL, { 0x1000, 0xF149, 0xFEB7, 0x1004, 0x0868, 0x15B2,
-	0x01E6, 0x201, 0xFB88, 0xF478, 0x1000, 0x1004} }
+	0x01E6, 0, 0xFB88, 0xF478, 0x1000, 0x1004} }
 };
 
 enum csc_color_mode {
drivers/gpu/drm/amd/pm/amdgpu_dpm.c +19 -5
index caf2cabeca6d..3830c3b72d4b 100644
@@ -1183,17 +1183,28 @@ int amdgpu_dpm_dispatch_task(struct amdgpu_device *adev,
 	return ret;
 }
 
-int amdgpu_dpm_get_pp_table(struct amdgpu_device *adev, char **table)
+int amdgpu_dpm_get_pp_table(struct amdgpu_device *adev, char *table,
+			    size_t size)
 {
 	const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs;
+	char *pptable = NULL;
 	int ret = 0;
 
-	if (!pp_funcs->get_pp_table)
-		return 0;
+	if ((!table && size) || (table && !size))
+		return -EINVAL;
+
+	if (amdgpu_sriov_vf(adev) || !pp_funcs->get_pp_table || adev->scpm_enabled)
+		return -EOPNOTSUPP;
 
 	mutex_lock(&adev->pm.mutex);
 	ret = pp_funcs->get_pp_table(adev->powerplay.pp_handle,
-				     table);
+				     &pptable);
+	if (ret > 0 && !pptable) {
+		ret = -EINVAL;
+	} else if (ret > 0 && table) {
+		ret = min_t(size_t, ret, size);
+		memcpy(table, pptable, ret);
+	}
 	mutex_unlock(&adev->pm.mutex);
 
 	return ret;
@@ -1721,7 +1732,10 @@ int amdgpu_dpm_set_pp_table(struct amdgpu_device *adev,
 	const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs;
 	int ret = 0;
 
-	if (!pp_funcs->set_pp_table)
+	if (!buf || !size)
+		return -EINVAL;
+
+	if (amdgpu_sriov_vf(adev) || !pp_funcs->set_pp_table || adev->scpm_enabled)
 		return -EOPNOTSUPP;
 
 	mutex_lock(&adev->pm.mutex);
drivers/gpu/drm/amd/pm/amdgpu_pm.c +10 -8
index 94c534c1d0be..db7296567c85 100644
@@ -556,25 +556,19 @@ static ssize_t amdgpu_get_pp_table(struct device *dev,
 {
 	struct drm_device *ddev = dev_get_drvdata(dev);
 	struct amdgpu_device *adev = drm_to_adev(ddev);
-	char *table = NULL;
 	int size, ret;
 
 	ret = amdgpu_pm_get_access_if_active(adev);
 	if (ret)
 		return ret;
 
-	size = amdgpu_dpm_get_pp_table(adev, &table);
+	size = amdgpu_dpm_get_pp_table(adev, buf, PAGE_SIZE - 1);
 
 	amdgpu_pm_put_access(adev);
 
 	if (size <= 0)
 		return size;
 
-	if (size >= PAGE_SIZE)
-		size = PAGE_SIZE - 1;
-
-	memcpy(buf, table, size);
-
 	return size;
 }
 
@@ -2502,7 +2496,7 @@ static struct amdgpu_device_attr amdgpu_device_attrs[] = {
 	AMDGPU_DEVICE_ATTR_RO(pp_num_states,				ATTR_FLAG_BASIC|ATTR_FLAG_ONEVF),
 	AMDGPU_DEVICE_ATTR_RO(pp_cur_state,				ATTR_FLAG_BASIC|ATTR_FLAG_ONEVF),
 	AMDGPU_DEVICE_ATTR_RW(pp_force_state,				ATTR_FLAG_BASIC|ATTR_FLAG_ONEVF),
-	AMDGPU_DEVICE_ATTR_RW(pp_table,					ATTR_FLAG_BASIC|ATTR_FLAG_ONEVF),
+	AMDGPU_DEVICE_ATTR_RW(pp_table,					ATTR_FLAG_BASIC),
 	AMDGPU_DEVICE_ATTR_RW(pp_dpm_sclk,				ATTR_FLAG_BASIC|ATTR_FLAG_ONEVF,
 			      .attr_update = pp_dpm_clk_default_attr_update),
 	AMDGPU_DEVICE_ATTR_RW(pp_dpm_mclk,				ATTR_FLAG_BASIC|ATTR_FLAG_ONEVF,
@@ -2639,6 +2633,14 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
 		if (amdgpu_dpm_get_apu_thermal_limit(adev, &limit) ==
 		    -EOPNOTSUPP)
 			*states = ATTR_STATE_UNSUPPORTED;
+	} else if (DEVICE_ATTR_IS(pp_table)) {
+		int ret;
+
+		ret = amdgpu_dpm_get_pp_table(adev, NULL, 0);
+		if (ret <= 0)
+			*states = ATTR_STATE_UNSUPPORTED;
+		else
+			*states = ATTR_STATE_SUPPORTED;
 	}
 
 	switch (gc_ver) {
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h +2 -1
index b0bbb23929bf..13a834575ed7 100644
@@ -487,7 +487,8 @@ int amdgpu_dpm_get_pp_num_states(struct amdgpu_device *adev,
 int amdgpu_dpm_dispatch_task(struct amdgpu_device *adev,
 			      enum amd_pp_task task_id,
 			      enum amd_pm_state_type *user_state);
-int amdgpu_dpm_get_pp_table(struct amdgpu_device *adev, char **table);
+int amdgpu_dpm_get_pp_table(struct amdgpu_device *adev, char *table,
+			    size_t size);
 int amdgpu_dpm_set_fine_grain_clk_vol(struct amdgpu_device *adev,
 				      uint32_t type,
 				      long *input,
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c +4 -1
index 554492dfa3c0..a16fcca3576c 100644
@@ -634,9 +634,12 @@ static int pp_dpm_get_pp_table(void *handle, char **table)
 {
 	struct pp_hwmgr *hwmgr = handle;
 
-	if (!hwmgr || !hwmgr->pm_en || !hwmgr->soft_pp_table)
+	if (!hwmgr || !hwmgr->pm_en || !table)
 		return -EINVAL;
 
+	if (!hwmgr->soft_pp_table)
+		return -EOPNOTSUPP;
+
 	*table = (char *)hwmgr->soft_pp_table;
 	return hwmgr->soft_pp_table_size;
 }
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +1 -1
index cfa4ff5d21b2..53d071eddbf4 100644
@@ -620,7 +620,7 @@ static int smu_sys_get_pp_table(void *handle,
 		return -EOPNOTSUPP;
 
 	if (!smu_table->power_play_table && !smu_table->hardcode_pptable)
-		return -EINVAL;
+		return -EOPNOTSUPP;
 
 	if (smu_table->hardcode_pptable)
 		*table = smu_table->hardcode_pptable;
drivers/gpu/drm/clients/drm_log.c +11 -2
index d239f1e3c456..1e137786b36a 100644
@@ -160,6 +160,9 @@ static void drm_log_draw_kmsg_record(struct drm_log_scanout *scanout,
 {
 	u32 prefix_len = 0;
 
+	if (!len)
+		return;
+
 	if (len > TS_PREFIX_LEN && s[0] == '[' && s[6] == '.' && s[TS_PREFIX_LEN] == ']')
 		prefix_len = TS_PREFIX_LEN + 1;
 
@@ -215,6 +218,12 @@ static int drm_log_setup_modeset(struct drm_client_dev *client,
 	scanout->scaled_font_w = scanout->font->width * scale;
 	scanout->rows = height / scanout->scaled_font_h;
 	scanout->columns = width / scanout->scaled_font_w;
+	if (!scanout->rows || !scanout->columns) {
+		drm_client_buffer_delete(scanout->buffer);
+		scanout->buffer = NULL;
+		mode_set->fb = NULL;
+		return -EINVAL;
+	}
 	scanout->front_color = drm_draw_color_from_xrgb8888(0xffffff, format);
 	scanout->prefix_color = drm_draw_color_from_xrgb8888(0x4e9a06, format);
 	return 0;
@@ -272,7 +281,7 @@ static void drm_log_init_client(struct drm_log *dlog)
 
 err_failed_commit:
 	for (i = 0; i < n_modeset; i++)
-		drm_client_framebuffer_delete(dlog->scanout[i].buffer);
+		drm_client_buffer_delete(dlog->scanout[i].buffer);
 
 err_nomodeset:
 	kfree(dlog->scanout);
@@ -286,7 +295,7 @@ static void drm_log_free_scanout(struct drm_client_dev *client)
 
 	if (dlog->n_scanout) {
 		for (i = 0; i < dlog->n_scanout; i++)
-			drm_client_framebuffer_delete(dlog->scanout[i].buffer);
+			drm_client_buffer_delete(dlog->scanout[i].buffer);
 		dlog->n_scanout = 0;
 		kfree(dlog->scanout);
 		dlog->scanout = NULL;
drivers/gpu/drm/display/drm_hdmi_state_helper.c +2 -1
index a561f124be99..ce71f5c19af1 100644
@@ -1072,7 +1072,8 @@ drm_atomic_helper_connector_hdmi_update_audio_infoframe(struct drm_connector *co
 
 	mutex_lock(&connector->hdmi.infoframes.lock);
 
-	memcpy(&infoframe->data, frame, sizeof(infoframe->data));
+	BUILD_BUG_ON(sizeof(*frame) > sizeof(infoframe->data));
+	memcpy(&infoframe->data, frame, sizeof(*frame));
 	infoframe->set = true;
 
 	ret = write_infoframe(connector, infoframe);
drivers/gpu/drm/drm_client.c +85 -96

274 lines not on this page · raw message

drivers/gpu/drm/drm_fbdev_dma.c +3 -3
index 7b77c801a63a..feecd44e91eb 100644
@@ -55,7 +55,7 @@ static void drm_fbdev_dma_fb_destroy(struct fb_info *info)
 	drm_fb_helper_fini(fb_helper);
 
 	drm_client_buffer_vunmap(fb_helper->buffer);
-	drm_client_framebuffer_delete(fb_helper->buffer);
+	drm_client_buffer_delete(fb_helper->buffer);
 	drm_client_release(&fb_helper->client);
 	drm_fb_helper_unprepare(fb_helper);
 	kfree(fb_helper);
@@ -90,7 +90,7 @@ static void drm_fbdev_dma_shadowed_fb_destroy(struct fb_info *info)
 	vfree(shadow);
 
 	drm_client_buffer_vunmap(fb_helper->buffer);
-	drm_client_framebuffer_delete(fb_helper->buffer);
+	drm_client_buffer_delete(fb_helper->buffer);
 	drm_client_release(&fb_helper->client);
 	drm_fb_helper_unprepare(fb_helper);
 	kfree(fb_helper);
@@ -320,7 +320,7 @@ int drm_fbdev_dma_driver_fbdev_probe(struct drm_fb_helper *fb_helper,
 	fb_helper->buffer = NULL;
 	drm_client_buffer_vunmap(buffer);
 err_drm_client_buffer_delete:
-	drm_client_framebuffer_delete(buffer);
+	drm_client_buffer_delete(buffer);
 	return ret;
 }
 EXPORT_SYMBOL(drm_fbdev_dma_driver_fbdev_probe);
drivers/gpu/drm/drm_fbdev_shmem.c +2 -2
index 77f350700818..d435caed7002 100644
@@ -63,7 +63,7 @@ static void drm_fbdev_shmem_fb_destroy(struct fb_info *info)
 	drm_fb_helper_fini(fb_helper);
 
 	drm_client_buffer_vunmap(fb_helper->buffer);
-	drm_client_framebuffer_delete(fb_helper->buffer);
+	drm_client_buffer_delete(fb_helper->buffer);
 	drm_client_release(&fb_helper->client);
 	drm_fb_helper_unprepare(fb_helper);
 	kfree(fb_helper);
@@ -198,7 +198,7 @@ int drm_fbdev_shmem_driver_fbdev_probe(struct drm_fb_helper *fb_helper,
 	fb_helper->buffer = NULL;
 	drm_client_buffer_vunmap(buffer);
 err_drm_client_buffer_delete:
-	drm_client_framebuffer_delete(buffer);
+	drm_client_buffer_delete(buffer);
 	return ret;
 }
 EXPORT_SYMBOL(drm_fbdev_shmem_driver_fbdev_probe);
drivers/gpu/drm/drm_fbdev_ttm.c +4 -4
index 1ba258f3c854..c2aa65b2384f 100644
@@ -50,7 +50,7 @@ static void drm_fbdev_ttm_fb_destroy(struct fb_info *info)
 	fb_deferred_io_cleanup(info);
 	drm_fb_helper_fini(fb_helper);
 	vfree(shadow);
-	drm_client_framebuffer_delete(fb_helper->buffer);
+	drm_client_buffer_delete(fb_helper->buffer);
 
 	drm_client_release(&fb_helper->client);
 	drm_fb_helper_unprepare(fb_helper);
@@ -202,7 +202,7 @@ int drm_fbdev_ttm_driver_fbdev_probe(struct drm_fb_helper *fb_helper,
 	screen_buffer = vzalloc(screen_size);
 	if (!screen_buffer) {
 		ret = -ENOMEM;
-		goto err_drm_client_framebuffer_delete;
+		goto err_drm_client_buffer_delete;
 	}
 
 	drm_fb_helper_fill_info(info, fb_helper, sizes);
@@ -227,10 +227,10 @@ int drm_fbdev_ttm_driver_fbdev_probe(struct drm_fb_helper *fb_helper,
 
 err_vfree:
 	vfree(screen_buffer);
-err_drm_client_framebuffer_delete:
+err_drm_client_buffer_delete:
 	fb_helper->fb = NULL;
 	fb_helper->buffer = NULL;
-	drm_client_framebuffer_delete(buffer);
+	drm_client_buffer_delete(buffer);
 	return ret;
 }
 EXPORT_SYMBOL(drm_fbdev_ttm_driver_fbdev_probe);
drivers/gpu/drm/panthor/panthor_fw.c +3 -0
index 470e41297764..a299b746ee2e 100644
@@ -553,6 +553,9 @@ static int panthor_fw_load_section_entry(struct panthor_device *ptdev,
 		return -EINVAL;
 	}
 
+	if (!section_size)
+		return 0;
+
 	name_len = iter->size - iter->offset;
 
 	section = drmm_kzalloc(&ptdev->base, sizeof(*section), GFP_KERNEL);
drivers/gpu/drm/radeon/radeon_kms.c +1 -0
index ba1446acd703..16adc5d5f67b 100644
@@ -71,6 +71,7 @@ void radeon_driver_unload_kms(struct drm_device *dev)
 	if (radeon_is_px(dev)) {
 		pm_runtime_get_sync(dev->dev);
 		pm_runtime_forbid(dev->dev);
+		pm_runtime_dont_use_autosuspend(dev->dev);
 	}
 
 	radeon_acpi_fini(rdev);
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +3 -0
index 3e8a2f4a907d..35c7277521a9 100644
@@ -553,6 +553,9 @@ static int vmw_kms_new_framebuffer_surface(struct vmw_private *dev_priv,
 	memcpy(&vfbs->uo, uo, sizeof(vfbs->uo));
 	vmw_user_object_ref(&vfbs->uo);
 
+	if (vfbs->uo.buffer)
+		vfbs->base.base.obj[0] = &vfbs->uo.buffer->tbo.base;
+
 	*out = &vfbs->base;
 
 	ret = drm_framebuffer_init(dev, &vfbs->base.base,
drivers/gpu/drm/xe/xe_device.c +5 -1
index 0d69cd0e4e79..05a84ea6bd6a 100644
@@ -962,7 +962,11 @@ int xe_device_probe(struct xe_device *xe)
 	if (err)
 		goto err_unregister_display;
 
-	return devm_add_action_or_reset(xe->drm.dev, xe_device_sanitize, xe);
+	err = devm_add_action_or_reset(xe->drm.dev, xe_device_sanitize, xe);
+	if (err)
+		goto err_unregister_display;
+
+	return 0;
 
 err_unregister_display:
 	xe_display_unregister(xe);
drivers/gpu/drm/xe/xe_lrc.c +7 -0
index 9f29dbe890f6..53eadea8ab38 100644
@@ -1692,6 +1692,13 @@ void xe_lrc_write_ring(struct xe_lrc *lrc, const void *data, size_t size)
 
 		__xe_lrc_write_ring(lrc, ring, &noop, sizeof(noop));
 	}
+
+	/*
+	 * The ring and the LRC context image are both WC, so the ring tail
+	 * update which publishes these writes can become visible to the device
+	 * first. Ensure the ring contents are visible before returning.
+	 */
+	xe_device_wmb(xe);
 }
 
 u64 xe_lrc_descriptor(struct xe_lrc *lrc)
drivers/gpu/drm/xe/xe_oa.c +4 -0
index 98df9ee1cac3..ff19553e8843 100644
@@ -1567,6 +1567,10 @@ static long xe_oa_config_locked(struct xe_oa_stream *stream, u64 arg)
 		config = xchg(&stream->oa_config, config);
 		drm_dbg(&stream->oa->xe->drm, "changed to oa config uuid=%s\n",
 			stream->oa_config->uuid);
+	} else {
+		while (param.num_syncs--)
+			xe_sync_entry_cleanup(&param.syncs[param.num_syncs]);
+		kfree(param.syncs);
 	}
 
 err_config_put:
drivers/input/joystick/iforce/iforce-packets.c +10 -1
index effa76bfd8f9..01fee14054fb 100644
@@ -155,6 +155,9 @@ void iforce_process_packet(struct iforce *iforce,
 	switch (packet_id) {
 
 	case 0x01:	/* joystick position data */
+		if (len < 7)
+			break;
+
 		input_report_abs(dev, ABS_X,
 				 (__s16) get_unaligned_le16(data));
 		input_report_abs(dev, ABS_Y,
@@ -170,6 +173,9 @@ void iforce_process_packet(struct iforce *iforce,
 		break;
 
 	case 0x03:	/* wheel position data */
+		if (len < 7)
+			break;
+
 		input_report_abs(dev, ABS_WHEEL,
 				 (__s16) get_unaligned_le16(data));
 		input_report_abs(dev, ABS_GAS,   255 - data[2]);
@@ -181,6 +187,9 @@ void iforce_process_packet(struct iforce *iforce,
 		break;
 
 	case 0x02:	/* status report */
+		if (len < 2)
+			break;
+
 		input_report_key(dev, BTN_DEAD, data[0] & 0x02);
 		input_sync(dev);
 
@@ -200,7 +209,7 @@ void iforce_process_packet(struct iforce *iforce,
 			}
 		}
 
-		for (j = 3; j < len; j += 2)
+		for (j = 3; j + sizeof(u16) <= len; j += sizeof(u16))
 			mark_core_as_ready(iforce, get_unaligned_le16(data + j));
 
 		break;
drivers/input/joystick/iforce/iforce-usb.c +3 -0
index 1f00f76b0174..5e3a8dbe6c6f 100644
@@ -158,6 +158,9 @@ static void iforce_usb_irq(struct urb *urb)
 		goto exit;
 	}
 
+	if (!urb->actual_length)
+		goto exit;
+
 	iforce_process_packet(iforce, iforce_usb->data_in[0],
 			      iforce_usb->data_in + 1, urb->actual_length - 1);
 
drivers/input/joystick/psxpad-spi.c +1 -0
index f902a56d011f..aac77a2cfe46 100644
@@ -373,6 +373,7 @@ static int psxpad_spi_probe(struct spi_device *spi)
 		return err;
 	}
 
+	spi_set_drvdata(spi, pad);
 	pm_runtime_enable(&spi->dev);
 
 	return 0;
drivers/input/joystick/xpad.c +2 -0
index ebfb841aafee..1b6f38f62905 100644
@@ -428,6 +428,7 @@ static const struct xpad_device {
 	{ 0x3285, 0x0646, "Nacon Pro Compact", 0, XTYPE_XBOXONE },
 	{ 0x3285, 0x0662, "Nacon Revolution5 Pro", 0, XTYPE_XBOX360 },
 	{ 0x3285, 0x0663, "Nacon Evol-X", 0, XTYPE_XBOXONE },
+	{ 0x3507, 0x000b, "ZENAIM LEVERLESS", 0, XTYPE_XBOX360 },
 	{ 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 },
@@ -591,6 +592,7 @@ static const struct usb_device_id xpad_table[] = {
 	XPAD_XBOX360_VENDOR(0x31e3),		/* Wooting Keyboards */
 	XPAD_XBOX360_VENDOR(0x3285),		/* Nacon GC-100 */
 	XPAD_XBOXONE_VENDOR(0x3285),		/* Nacon Evol-X */
+	XPAD_XBOX360_VENDOR(0x3507),		/* ZENAIM Controllers */
 	XPAD_XBOX360_VENDOR(0x3537),		/* GameSir Controllers */
 	XPAD_XBOXONE_VENDOR(0x3537),		/* GameSir Controllers */
 	XPAD_XBOX360_VENDOR(0x3651),		/* CRKD Controllers */
drivers/input/keyboard/atkbd.c +8 -0
index 8eeac27dec54..ea88bcfdb4b6 100644
@@ -1952,6 +1952,14 @@ static const struct dmi_system_id atkbd_dmi_quirk_table[] __initconst = {
 		},
 		.callback = atkbd_deactivate_fixup,
 	},
+	{
+		/* Xiaomi Book Pro 14 (TM2424) */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "XIAOMI"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Xiaomi Book Pro 14"),
+		},
+		.callback = atkbd_deactivate_fixup,
+	},
 	{ }
 };
 
drivers/input/misc/cs40l50-vibra.c +8 -2
index 7aa7d577e01b..f4c605eafd11 100644
@@ -139,10 +139,10 @@ static struct cs40l50_effect *cs40l50_find_effect(int id, struct list_head *effe
 static int cs40l50_effect_bank_set(struct cs40l50_work *work_data,
 				   struct cs40l50_effect *effect)
 {
-	s16 bank_type = work_data->custom_data[0] & CS40L50_CUSTOM_DATA_MASK;
+	u32 bank_type = work_data->custom_data[0] & CS40L50_CUSTOM_DATA_MASK;
 
 	if (bank_type >= CS40L50_WVFRM_BANK_NUM) {
-		dev_err(work_data->vib->dev, "Invalid bank (%d)\n", bank_type);
+		dev_err(work_data->vib->dev, "Invalid bank (%u)\n", bank_type);
 		return -EINVAL;
 	}
 
@@ -327,6 +327,12 @@ static int cs40l50_add(struct input_dev *dev, struct ff_effect *effect,
 		return -EINVAL;
 	}
 
+	if (periodic->custom_len < CS40L50_OWT_CUSTOM_DATA_SIZE) {
+		dev_err(vib->dev, "Invalid custom data length (%u)\n",
+			periodic->custom_len);
+		return -EINVAL;
+	}
+
 	work_data.custom_data = memdup_array_user(effect->u.periodic.custom_data,
 						  effect->u.periodic.custom_len,
 						  sizeof(s16));
drivers/input/mouse/byd.c +1 -1
index 71aa23dd7d8d..91bcff433898 100644
@@ -425,7 +425,7 @@ static void byd_disconnect(struct psmouse *psmouse)
 	struct byd_data *priv = psmouse->private;
 
 	if (priv) {
-		timer_delete(&priv->timer);
+		timer_shutdown_sync(&priv->timer);
 		kfree(psmouse->private);
 		psmouse->private = NULL;
 	}
drivers/input/mouse/focaltech.c +1 -1
index 356b99d48544..d1a3b48ee891 100644
@@ -197,7 +197,7 @@ static void focaltech_process_rel_packet(struct psmouse *psmouse,
 {
 	struct focaltech_data *priv = psmouse->private;
 	struct focaltech_hw_state *state = &priv->state;
-	int finger1, finger2;
+	unsigned int finger1, finger2;
 
 	state->pressed = packet[0] >> 7;
 	finger1 = ((packet[0] >> 4) & 0x7) - 1;
drivers/input/rmi4/rmi_f54.c +32 -11

104 lines not on this page · raw message

drivers/input/rmi4/rmi_f55.c +2 -2
index 488adaca4dd0..a0877d32a914 100644
@@ -54,10 +54,10 @@ static int rmi_f55_detect(struct rmi_function *fn)
 	f55->num_tx_electrodes = f55->qry[F55_NUM_TX_OFFSET];
 
 	f55->cfg_num_rx_electrodes = f55->num_rx_electrodes;
-	f55->cfg_num_tx_electrodes = f55->num_rx_electrodes;
+	f55->cfg_num_tx_electrodes = f55->num_tx_electrodes;
 
 	drv_data->num_rx_electrodes = f55->cfg_num_rx_electrodes;
-	drv_data->num_tx_electrodes = f55->cfg_num_rx_electrodes;
+	drv_data->num_tx_electrodes = f55->cfg_num_tx_electrodes;
 
 	if (f55->qry[F55_PHYS_CHAR_OFFSET] & F55_CAP_SENSOR_ASSIGN) {
 		int i, total;
drivers/input/touchscreen/hynitron_cstxxx.c +10 -3
index 1d8ca90dcda6..af66d91848b3 100644
@@ -313,6 +313,12 @@ static void cst3xx_touch_report(struct i2c_client *client)
 		return;
 
 	touch_cnt = buf[5] & CST3XX_TOUCH_COUNT_MASK;
+	if (touch_cnt > ts_data->chip->max_touch_num) {
+		dev_err(&client->dev, "cst3xx invalid touch count (%d vs %d max)\n",
+			touch_cnt, ts_data->chip->max_touch_num);
+		return;
+	}
+
 	/*
 	 * Check the check bit of the last touch slot. The check bit is
 	 * always present after touch point 1 for valid data, and then
@@ -335,9 +341,10 @@ static void cst3xx_touch_report(struct i2c_client *client)
 		finger_id = (buf[idx] >> 4) & 0x0f;
 
 		/* Sanity check we don't have more fingers than we expect */
-		if (ts_data->chip->max_touch_num < finger_id) {
-			dev_err(&client->dev, "cst3xx touch read failure\n");
-			break;
+		if (finger_id >= ts_data->chip->max_touch_num) {
+			dev_err(&client->dev,
+				"cst3xx invalid finger id %d\n", finger_id);
+			return;
 		}
 
 		/* sw value of 0 means no touch, 0x03 means touch */
drivers/input/touchscreen/sur40.c +13 -10
index 7b3b10cbfcfc..0a4e40b85ab8 100644
@@ -725,21 +725,13 @@ static int sur40_probe(struct usb_interface *interface,
 		goto err_free_input;
 	}
 
-	/* register the polled input device */
-	error = input_register_device(input);
-	if (error) {
-		dev_err(&interface->dev,
-			"Unable to register polled input device.");
-		goto err_free_buffer;
-	}
-
 	/* register the video master device */
 	snprintf(sur40->v4l2.name, sizeof(sur40->v4l2.name), "%s", DRIVER_LONG);
 	error = v4l2_device_register(sur40->dev, &sur40->v4l2);
 	if (error) {
 		dev_err(&interface->dev,
 			"Unable to register video master device.");
-		goto err_unreg_v4l2;
+		goto err_free_buffer;
 	}
 
 	/* initialize the lock and subdevice */
@@ -795,6 +787,14 @@ static int sur40_probe(struct usb_interface *interface,
 	if (error) {
 		dev_err(&interface->dev,
 			"Unable to register video subdevice.");
+		goto err_free_ctrl;
+	}
+
+	/* register the polled input device */
+	error = input_register_device(input);
+	if (error) {
+		dev_err(&interface->dev,
+			"Unable to register polled input device.");
 		goto err_unreg_video;
 	}
 
@@ -806,6 +806,8 @@ static int sur40_probe(struct usb_interface *interface,
 
 err_unreg_video:
 	video_unregister_device(&sur40->vdev);
+err_free_ctrl:
+	v4l2_ctrl_handler_free(&sur40->hdl);
 err_unreg_v4l2:
 	v4l2_device_unregister(&sur40->v4l2);
 err_free_buffer:
@@ -823,11 +825,12 @@ static void sur40_disconnect(struct usb_interface *interface)
 {
 	struct sur40_state *sur40 = usb_get_intfdata(interface);
 
+	input_unregister_device(sur40->input);
+
 	v4l2_ctrl_handler_free(&sur40->hdl);
 	video_unregister_device(&sur40->vdev);
 	v4l2_device_unregister(&sur40->v4l2);
 
-	input_unregister_device(sur40->input);
 	kfree(sur40->bulk_in_buffer);
 	kfree(sur40);
 
drivers/mmc/host/atmel-mci.c +2 -0
index d1fbc6811563..d631a6ea2eab 100644
@@ -2616,6 +2616,8 @@ static void atmci_remove(struct platform_device *pdev)
 
 	free_irq(platform_get_irq(pdev, 0), host);
 
+	cancel_work_sync(&host->bh_work);
+
 	clk_disable_unprepare(host->mck);
 
 	pm_runtime_disable(dev);
drivers/mmc/host/loongson2-mmc.c +4 -4
index da3daab5f3d6..7e5c6f00badd 100644
@@ -628,8 +628,8 @@ static void ls2k0500_mmc_reorder_cmd_data(struct loongson2_mmc_host *host,
 		return;
 
 	for_each_sg(cmd->data->sg, sg, cmd->data->sg_len, i) {
-		data = sg_virt(&sg[i]);
-		for (j = 0; j < (sg_dma_len(&sg[i]) / 4); j++)
+		data = sg_virt(sg);
+		for (j = 0; j < (sg_dma_len(sg) / 4); j++)
 			if (cmd->opcode == SD_SWITCH)
 				data[j] = bitrev8x4(data[j]);
 			else
@@ -761,8 +761,8 @@ static void ls2k2000_mmc_reorder_cmd_data(struct loongson2_mmc_host *host,
 		return;
 
 	for_each_sg(cmd->data->sg, sg, cmd->data->sg_len, i) {
-		data = sg_virt(&sg[i]);
-		for (j = 0; j < (sg_dma_len(&sg[i]) / 4); j++)
+		data = sg_virt(sg);
+		for (j = 0; j < (sg_dma_len(sg) / 4); j++)
 			data[j] = bitrev8x4(data[j]);
 	}
 }
drivers/mmc/host/omap_hsmmc.c +1 -1
index 09e4354d1f1d..e09bdf690064 100644
@@ -1357,7 +1357,7 @@ omap_hsmmc_prepare_data(struct omap_hsmmc_host *host, struct mmc_request *req)
 	if (req->data == NULL) {
 		OMAP_HSMMC_WRITE(host->base, BLK, 0);
 		if (req->cmd->flags & MMC_RSP_BUSY) {
-			timeout = req->cmd->busy_timeout * NSEC_PER_MSEC;
+			timeout = (u64)req->cmd->busy_timeout * NSEC_PER_MSEC;
 
 			/*
 			 * Set an arbitrary 100ms data timeout for commands with
drivers/mmc/host/sdhci.c +16 -0
index d06c5a13ef91..3b6cd685f7bd 100644
@@ -4187,6 +4187,14 @@ void __sdhci_read_caps(struct sdhci_host *host, const u16 *ver,
 }
 EXPORT_SYMBOL_GPL(__sdhci_read_caps);
 
+static void sdhci_unmap_bounce_buffer(void *data)
+{
+	struct sdhci_host *host = data;
+
+	dma_unmap_single(mmc_dev(host->mmc), host->bounce_addr,
+			 host->bounce_buffer_size, DMA_BIDIRECTIONAL);
+}
+
 static void sdhci_allocate_bounce_buffer(struct sdhci_host *host)
 {
 	struct mmc_host *mmc = host->mmc;
@@ -4241,6 +4249,14 @@ static void sdhci_allocate_bounce_buffer(struct sdhci_host *host)
 	}
 
 	host->bounce_buffer_size = bounce_size;
+	ret = devm_add_action_or_reset(mmc_dev(mmc),
+				       sdhci_unmap_bounce_buffer, host);
+	if (ret) {
+		devm_kfree(mmc_dev(mmc), host->bounce_buffer);
+		host->bounce_buffer = NULL;
+		host->bounce_buffer_size = 0;
+		return;
+	}
 
 	/* Lie about this since we're bouncing */
 	mmc->max_segs = max_blocks;
drivers/mmc/host/sdhci.h +1 -1
index b6a571d866fa..f0fd81409a86 100644
@@ -659,7 +659,7 @@ struct sdhci_host {
 
 	unsigned int		tuning_count;	/* Timer count for re-tuning */
 	unsigned int		tuning_mode;	/* Re-tuning mode supported by host */
-	unsigned int		tuning_err;	/* Error code for re-tuning */
+	int			tuning_err;	/* Error code for re-tuning */
 #define SDHCI_TUNING_MODE_1	0
 #define SDHCI_TUNING_MODE_2	1
 #define SDHCI_TUNING_MODE_3	2
drivers/mtd/ubi/attach.c +3 -1
index adc47b87b38a..884171871d0e 100644
@@ -1600,7 +1600,7 @@ int ubi_attach(struct ubi_device *ubi, int force_scan)
 
 	err = ubi_read_volume_table(ubi, ai);
 	if (err)
-		goto out_ai;
+		goto out_fm;
 
 	err = ubi_wl_init(ubi, ai);
 	if (err)
@@ -1642,6 +1642,8 @@ int ubi_attach(struct ubi_device *ubi, int force_scan)
 out_vtbl:
 	ubi_free_all_volumes(ubi);
 	vfree(ubi->vtbl);
+out_fm:
+	ubi_free_fastmap(ubi);
 out_ai:
 	destroy_ai(ai);
 	return err;
drivers/mtd/ubi/fastmap-wl.c +1 -7
index 9bdb6525f128..e2bc1122bfd3 100644
@@ -530,8 +530,6 @@ int ubi_is_erase_work(struct ubi_work *wrk)
 
 static void ubi_fastmap_close(struct ubi_device *ubi)
 {
-	int i;
-
 	return_unused_pool_pebs(ubi, &ubi->fm_pool);
 	return_unused_pool_pebs(ubi, &ubi->fm_wl_pool);
 
@@ -540,11 +538,7 @@ static void ubi_fastmap_close(struct ubi_device *ubi)
 		ubi->fm_anchor = NULL;
 	}
 
-	if (ubi->fm) {
-		for (i = 0; i < ubi->fm->used_blocks; i++)
-			kfree(ubi->fm->e[i]);
-	}
-	kfree(ubi->fm);
+	ubi_free_fastmap(ubi);
 }
 
 /**
drivers/mtd/ubi/io.c +10 -0
index a4999bce435f..915eb64cb001 100644
@@ -868,6 +868,8 @@ int ubi_io_write_ec_hdr(struct ubi_device *ubi, int pnum,
 		return -EROFS;
 	}
 
+	memset((char *)ec_hdr + UBI_EC_HDR_SIZE, 0xFF, ubi->ec_hdr_alsize - UBI_EC_HDR_SIZE);
+
 	err = ubi_io_write(ubi, ec_hdr, pnum, 0, ubi->ec_hdr_alsize);
 	return err;
 }
@@ -1150,6 +1152,14 @@ int ubi_io_write_vid_hdr(struct ubi_device *ubi, int pnum,
 		return -EROFS;
 	}
 
+	if (ubi->vid_hdr_shift) {
+		memset((char *)p, 0xFF, ubi->vid_hdr_shift);
+		memset((char *)p + ubi->vid_hdr_shift + UBI_VID_HDR_SIZE, 0xFF,
+		       ubi->vid_hdr_alsize - (ubi->vid_hdr_shift + UBI_VID_HDR_SIZE));
+	} else {
+		memset((char *)p + UBI_VID_HDR_SIZE, 0xFF, ubi->vid_hdr_alsize - UBI_VID_HDR_SIZE);
+	}
+
 	err = ubi_io_write(ubi, p, pnum, ubi->vid_hdr_aloffset,
 			   ubi->vid_hdr_alsize);
 	return err;
drivers/mtd/ubi/ubi.h +12 -0
index c792b9bcab9b..44803d3329f4 100644
@@ -969,10 +969,22 @@ int ubi_scan_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai,
 		     struct ubi_attach_info *scan_ai);
 int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count);
 void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol);
+static inline void ubi_free_fastmap(struct ubi_device *ubi)
+{
+	if (ubi->fm) {
+		int i;
+
+		for (i = 0; i < ubi->fm->used_blocks; i++)
+			kmem_cache_free(ubi_wl_entry_slab, ubi->fm->e[i]);
+		kfree(ubi->fm);
+		ubi->fm = NULL;
+	}
+}
 #else
 static inline int ubi_update_fastmap(struct ubi_device *ubi) { return 0; }
 static inline int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) { return 0; }
 static inline void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol) {}
+static inline void ubi_free_fastmap(struct ubi_device *ubi) { }
 #endif
 
 /* block.c */
drivers/net/can/rcar/rcar_canfd.c +109 -72

237 lines not on this page · raw message

drivers/net/ethernet/broadcom/bnxt/bnxt.c +23 -7
index 83ddf753b8c9..29e52df2502e 100644
@@ -11643,6 +11643,16 @@ static void bnxt_irq_affinity_notify(struct irq_affinity_notify *notify,
 
 	irq = container_of(notify, struct bnxt_irq, affinity_notify);
 
+#ifdef CONFIG_RFS_ACCEL
+	if (irq->bp->dev->rx_cpu_rmap && irq->ring_nr < irq->bp->rx_nr_rings) {
+		err = cpu_rmap_update(irq->bp->dev->rx_cpu_rmap, irq->ring_nr,
+				      mask);
+		if (err)
+			netdev_warn(irq->bp->dev,
+				    "aRFS rmap update failed: %d\n", err);
+	}
+#endif
+
 	if (!irq->bp->tph_mode)
 		return;
 
@@ -11716,10 +11726,6 @@ static void bnxt_free_irq(struct bnxt *bp)
 	struct bnxt_irq *irq;
 	int i;
 
-#ifdef CONFIG_RFS_ACCEL
-	free_irq_cpu_rmap(bp->dev->rx_cpu_rmap);
-	bp->dev->rx_cpu_rmap = NULL;
-#endif
 	if (!bp->irq_tbl || !bp->bnapi)
 		return;
 
@@ -11728,14 +11734,14 @@ static void bnxt_free_irq(struct bnxt *bp)
 
 		irq = &bp->irq_tbl[map_idx];
 		if (irq->requested) {
+			bnxt_release_irq_notifier(irq);
+
 			if (irq->have_cpumask) {
 				irq_update_affinity_hint(irq->vector, NULL);
 				free_cpumask_var(irq->cpu_mask);
 				irq->have_cpumask = 0;
 			}
 
-			bnxt_release_irq_notifier(irq);
-
 			free_irq(irq->vector, bp->bnapi[i]);
 		}
 
@@ -11745,6 +11751,11 @@ static void bnxt_free_irq(struct bnxt *bp)
 	/* Disable TPH support */
 	pcie_disable_tph(bp->pdev);
 	bp->tph_mode = 0;
+
+#ifdef CONFIG_RFS_ACCEL
+	free_irq_cpu_rmap(bp->dev->rx_cpu_rmap);
+	bp->dev->rx_cpu_rmap = NULL;
+#endif
 }
 
 static int bnxt_request_irq(struct bnxt *bp)
@@ -16325,6 +16336,10 @@ static const struct netdev_queue_mgmt_ops bnxt_queue_mgmt_ops = {
 	.supported_params	= QCFG_RX_PAGE_SIZE,
 };
 
+static const struct netdev_queue_mgmt_ops bnxt_queue_mgmt_ops_unsupp = {
+	.ndo_default_qcfg	= bnxt_queue_default_qcfg,
+};
+
 static void bnxt_remove_one(struct pci_dev *pdev)
 {
 	struct net_device *dev = pci_get_drvdata(pdev);
@@ -16977,9 +16992,10 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 
 	if (BNXT_SUPPORTS_NTUPLE_VNIC(bp))
 		bp->rss_cap |= BNXT_RSS_CAP_MULTI_RSS_CTX;
+
+	dev->queue_mgmt_ops = &bnxt_queue_mgmt_ops_unsupp;
 	if (BNXT_SUPPORTS_QUEUE_API(bp))
 		dev->queue_mgmt_ops = &bnxt_queue_mgmt_ops;
-	dev->request_ops_lock = true;
 	dev->netmem_tx = true;
 
 	rc = register_netdev(dev);
drivers/net/ethernet/google/gve/gve_ptp.c +6 -0
index a384a9ed4914..1a46e4a9a3cb 100644
@@ -26,6 +26,11 @@ int gve_clock_nic_ts_read(struct gve_priv *priv)
 	return 0;
 }
 
+static int gve_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)
+{
+	return -EOPNOTSUPP;
+}
+
 static int gve_ptp_gettimex64(struct ptp_clock_info *info,
 			      struct timespec64 *ts,
 			      struct ptp_system_timestamp *sts)
@@ -60,6 +65,7 @@ static long gve_ptp_do_aux_work(struct ptp_clock_info *info)
 static const struct ptp_clock_info gve_ptp_caps = {
 	.owner          = THIS_MODULE,
 	.name		= "gve clock",
+	.adjfine	= gve_ptp_adjfine,
 	.gettimex64	= gve_ptp_gettimex64,
 	.settime64	= gve_ptp_settime64,
 	.do_aux_work	= gve_ptp_do_aux_work,
drivers/net/ethernet/google/gve/gve_rx_dqo.c +5 -0
index fc0c7991c3a2..0c7ab6f4a540 100644
@@ -859,6 +859,11 @@ static int gve_rx_dqo(struct napi_struct *napi, struct gve_rx_ring *rx,
 		rx->rx_hsplit_unsplit_pkt += unsplit;
 		rx->rx_hsplit_bytes += hdr_len;
 		u64_stats_update_end(&rx->statss);
+
+		if (!buf_len) {
+			gve_free_buffer(rx, buf_state);
+			return 0;
+		}
 	} else if (!rx->ctx.skb_head && rx->dqo.page_pool &&
 		   netmem_is_net_iov(buf_state->page_info.netmem)) {
 		/* when header split is disabled, the header went to the packet
drivers/net/ethernet/ti/am65-cpsw-nuss.c +2 -0
index 31d436cdceb7..5bcf1126d627 100644
@@ -1312,6 +1312,8 @@ static int am65_cpsw_nuss_rx_packets(struct am65_cpsw_rx_flow *flow,
 	k3_udma_glue_rx_cppi5_to_dma_addr(rx_chn->rx_chn, &buf_dma);
 	pkt_len = cppi5_hdesc_get_pktlen(desc_rx);
 	cppi5_desc_get_tags_ids(&desc_rx->hdr, &port_id, NULL);
+	/* Port ID is contained in the lower 8-bits of the 16-bit Source Tag */
+	port_id &= 0xFF;
 	dev_dbg(dev, "%s rx port_id:%d\n", __func__, port_id);
 	port = am65_common_get_port(common, port_id);
 	ndev = port->ndev;
drivers/net/ethernet/wangxun/ngbe/ngbe_main.c +3 -1
index 58488e138beb..e80962d40f7e 100644
@@ -160,8 +160,10 @@ static void ngbe_irq_enable(struct wx *wx, bool queues)
 	/* mask interrupt */
 	if (queues)
 		wx_intr_enable(wx, NGBE_INTR_ALL);
-	else
+	else if (wx->pdev->msix_enabled)
 		wx_intr_enable(wx, NGBE_INTR_MISC(wx));
+	else
+		wx_intr_enable(wx, BIT(0));
 }
 
 /**
drivers/net/ipvlan/ipvlan_main.c +4 -0
index baccdad695fd..93a8a7c91fb0 100644
@@ -146,6 +146,8 @@ static int ipvlan_init(struct net_device *dev)
 	dev->lltx = true;
 	netif_inherit_tso_max(dev, phy_dev);
 	dev->hard_header_len = phy_dev->hard_header_len;
+	dev->needed_headroom = phy_dev->needed_headroom;
+	dev->needed_tailroom = phy_dev->needed_tailroom;
 
 	netdev_lockdep_set_classes(dev);
 
@@ -773,6 +775,8 @@ static int ipvlan_device_event(struct notifier_block *unused,
 	case NETDEV_FEAT_CHANGE:
 		list_for_each_entry(ipvlan, &port->ipvlans, pnode) {
 			netif_inherit_tso_max(ipvlan->dev, dev);
+			ipvlan->dev->needed_headroom = dev->needed_headroom;
+			ipvlan->dev->needed_tailroom = dev->needed_tailroom;
 			netdev_update_features(ipvlan->dev);
 		}
 		break;
drivers/net/macvlan.c +4 -0
index 35dcaa985cfd..7151ae883136 100644
@@ -943,6 +943,8 @@ static int macvlan_init(struct net_device *dev)
 	dev->lltx		= true;
 	netif_inherit_tso_max(dev, lowerdev);
 	dev->hard_header_len	= lowerdev->hard_header_len;
+	dev->needed_headroom	= lowerdev->needed_headroom;
+	dev->needed_tailroom	= lowerdev->needed_tailroom;
 	macvlan_set_lockdep_class(dev);
 
 	vlan->pcpu_stats = netdev_alloc_pcpu_stats(struct vlan_pcpu_stats);
@@ -1817,6 +1819,8 @@ static int macvlan_device_event(struct notifier_block *unused,
 	case NETDEV_FEAT_CHANGE:
 		list_for_each_entry(vlan, &port->vlans, list) {
 			netif_inherit_tso_max(vlan->dev, dev);
+			vlan->dev->needed_headroom = dev->needed_headroom;
+			vlan->dev->needed_tailroom = dev->needed_tailroom;
 			netdev_update_features(vlan->dev);
 		}
 		break;
drivers/net/ntb_netdev.c +196 -96

143 lines not on this page · raw message

drivers/net/ovpn/crypto.c +10 -6
index 90580e32052f..2e95f29514fc 100644

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

drivers/net/ovpn/io.c +5 -5
index 0008a3d30c19..65a904c64e05 100644

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

drivers/net/phy/realtek/realtek_main.c +1 -1
index 05df1a33b0e2..ef8c3b23bee8 100644

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

drivers/net/tap.c +2 -1
index bb62faad5b5c..1aeaecd4030f 100644

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

drivers/net/veth.c +1 -1
index ffe05e331224..df276a646c45 100644

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

drivers/pmdomain/arm/scmi_perf_domain.c +1 -1
index 3693423459c9..e390f902a444 100644

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

drivers/pmdomain/mediatek/mt8183-pm-domains.h +5 -2
index 3742782a2702..5e33b8628e85 100644

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

drivers/pmdomain/mediatek/mtk-pm-domains.c +15 -15
index 1716d726b8cc..5b3752043d8a 100644

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

drivers/s390/cio/vfio_ccw_async.c +16 -0
index 420d89ba7f83..4aff0b58fa5d 100644

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

drivers/s390/cio/vfio_ccw_chp.c +26 -5
index 38c176cf6295..7708eb4d6de0 100644

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

drivers/s390/cio/vfio_ccw_cp.c +55 -19

74 lines not on this page · raw message

drivers/s390/cio/vfio_ccw_cp.h +10 -0
index fc31eb699807..9af98ff12d67 100644

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

drivers/s390/cio/vfio_ccw_drv.c +19 -2
index 6ff5c9cfb7ed..cf5b92a63d06 100644

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

drivers/s390/cio/vfio_ccw_fsm.c +6 -2
index 4d7988ea47ef..5fd94e9d5c61 100644

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

drivers/s390/cio/vfio_ccw_ops.c +35 -4
index ea532a8a4a0c..b7acc2532096 100644

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

drivers/s390/cio/vfio_ccw_private.h +9 -1
index 0501d4bbcdbd..3bd0171d38d0 100644

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

drivers/s390/crypto/zcrypt_ccamisc.c +14 -6
index 1de67038d164..700c2d902b79 100644

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

drivers/s390/crypto/zcrypt_ep11misc.c +11 -5
index e92e2fd8ce5d..6d2064555e1a 100644

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

drivers/s390/net/qeth_core_main.c +3 -0
index 64ca42ca78c4..c524b4b0a328 100644

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

drivers/s390/net/qeth_l3_main.c +5 -0
index 3525be819362..2621839fb8c3 100644

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

drivers/spi/spi-virtio.c +2 -0
index 2acb929b2c69..fb30c9207a4b 100644

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

drivers/video/fbdev/core/fb_io_fops.c +8 -0
index 6ab60fcd0050..0798e88799eb 100644

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

fs/binfmt_misc.c +15 -17
index a4d2cd787f83..9dadd2c14ab5 100644

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

fs/btrfs/block-group.c +20 -16
index e6bac34ebe83..93e0063bb1fa 100644

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

fs/btrfs/zoned.c +2 -3
index 0dfbb28b7445..548cfc0fe28e 100644

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

fs/btrfs/zoned.h +2 -4
index 2b807a02d1a8..5cefdeb08b7b 100644

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

fs/ceph/caps.c +15 -2
index d9924ef55f4a..07e3236e0f97 100644

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

fs/ceph/file.c +5 -4
index ceb5706fe366..f640aff749ed 100644

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

fs/ceph/mds_client.c +11 -0
index ba9f96efc8ee..049b2d414fe9 100644

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

fs/ceph/mds_client.h +1 -0
index 0428a5eaf28c..3720d5f16e06 100644

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

fs/ceph/mdsmap.c +1 -1
index b228e5ecfb92..97ecf272a37d 100644

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

fs/erofs/Kconfig +2 -1
index 0d199f6698ff..0be8a38cfb11 100644

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

fs/proc/task_mmu.c +77 -69

146 lines not on this page · raw message

fs/smb/client/cifsglob.h +0 -6
index 69deb29502a8..38b4053d9791 100644

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

fs/smb/client/cifssmb.c +3 -3
index db9d9a1983c7..3f5975503202 100644

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

fs/smb/client/connect.c +1 -1
index 2ee2199d2a6a..3e06c0eddb3a 100644

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

fs/smb/client/smb1transport.c +4 -4
index 518f764dedcc..bafc5181e029 100644

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

fs/smb/common/cifsglob.h +5 -0
index eda5e666a761..371160fec1cd 100644

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

fs/smb/server/auth.c +2 -2
index a778275207fe..3f8258954901 100644

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

fs/smb/server/connection.c +15 -8
index 9274953eb064..c193b87cfa75 100644

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

fs/smb/server/oplock.c +4 -4
index ff0dbf3f8cbf..d83370f53d6f 100644

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

fs/smb/server/server.c +1 -1
index b78126bb2371..9da4525010cc 100644

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

fs/smb/server/smb2pdu.c +35 -35

70 lines not on this page · raw message

fs/smb/server/smb2pdu.h +0 -9
index 5163d5241b90..9d4c01c453b2 100644

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

fs/smb/server/smb_common.c +13 -13
index 4ad01a0fa1cf..3e3758f5ed42 100644

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

fs/smb/server/smb_common.h +9 -5
index e3be583e803d..95062e922de9 100644

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

fs/xfs/libxfs/xfs_exchmaps.c +10 -0
index f021fe3c9cb6..85d651e1c1fc 100644

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

fs/xfs/libxfs/xfs_rtrefcount_btree.c +2 -2
index ac11e94b42ae..743d6eada560 100644

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

fs/xfs/libxfs/xfs_sb.c +2 -2
index 94c272a2ae26..823ff59ba711 100644

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

fs/xfs/scrub/agheader.c +1 -1
index 303374df44bd..2ac2125b8317 100644

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

fs/xfs/scrub/agheader_repair.c +125 -27

152 lines not on this page · raw message

fs/xfs/scrub/alloc.c +3 -2
index 8b282138097f..c77934f5b724 100644

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

fs/xfs/scrub/attr_repair.c +2 -1
index dd24044c44ef..fa68ecabd983 100644

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

fs/xfs/scrub/bmap.c +5 -0
index 4f1e2574660d..aa9351e544cf 100644

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

fs/xfs/scrub/dirtree_repair.c +18 -4
index 5c04e70ba951..d6d07798903e 100644

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

fs/xfs/scrub/inode_repair.c +1 -1
index 5c45a68793d0..fdb227dcfd21 100644

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

fs/xfs/scrub/nlinks.c +7 -6
index dec3b9b47453..04c44d25e58a 100644

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

fs/xfs/scrub/nlinks_repair.c +6 -1
index 6ef2ee9c3814..c3540f3dd2c7 100644

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

fs/xfs/scrub/parent.c +1 -1
index f2ee520cc942..a1b15358a731 100644

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

fs/xfs/scrub/rtbitmap_repair.c +28 -18

46 lines not on this page · raw message

fs/xfs/scrub/tempfile.c +1 -0
index cf99e0ca51b0..fabf6ae2e512 100644

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

fs/xfs/scrub/trace.h +2 -0
index fab3ce323e4c..90a7c8cad9b9 100644

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

fs/xfs/xfs_buf_item_recover.c +41 -16

57 lines not on this page · raw message

fs/xfs/xfs_dquot.c +2 -1
index 896ff8080b75..8c89f701537f 100644

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

fs/xfs/xfs_dquot_item_recover.c +1 -1
index 89bc9bcaf51e..590412c8e615 100644

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

fs/xfs/xfs_rtalloc.c +1 -1
index 907c88034c8d..365cfe22c0eb 100644

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

include/drm/drm_client.h +4 -12
index 146ca80e35db..8e2e51f98430 100644

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

include/linux/libata.h +2 -0
index 7244d8e15536..868af0a08f52 100644

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

include/linux/swapops.h +2 -2
index a73c5f14b591..57aad87e46a6 100644

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

include/net/ip_vs.h +7 -0
index b65009a226e0..94dfc3a265ee 100644

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

include/uapi/linux/ip_vs.h +0 -6
index 1ed234e7f251..2c37c6ac7525 100644

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

kernel/events/core.c +7 -1
index d64f8edeaf8b..04c9d4915093 100644

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

kernel/futex/core.c +2 -2
index 4f5d7d042f8e..fde558fd2bd6 100644

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

kernel/sched/ext.c +54 -41

95 lines not on this page · raw message

kernel/trace/ftrace.c +7 -2
index d451926bc55d..f643ae98e4d1 100644

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

kernel/trace/ring_buffer.c +66 -52

118 lines not on this page · raw message

mm/hmm.c +1 -1
index a56081d67ad6..df9b11e1d8ed 100644

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

mm/huge_memory.c +11 -11
index 94f95ac8b760..227aeffae8ee 100644

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

mm/khugepaged.c +1 -1
index 01a5d443ffc5..6b3ba903ba39 100644

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

mm/madvise.c +1 -1
index 588a809dac11..73f56b18c337 100644

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

mm/memory.c +2 -2
index 9b071e269d1e..6b4cdb8bd8db 100644

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

mm/mempolicy.c +1 -1
index 779a8cc17a83..b4aa4f2cb8ec 100644

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

mm/migrate.c +1 -1
index ad7af66a4450..e66d9cc67dda 100644

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

mm/page_table_check.c +16 -4
index 4eeca782b888..0a5ab62c9c59 100644

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

mm/page_vma_mapped.c +1 -1
index c498a91b6706..2fdd31a5a48f 100644

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

mm/pagewalk.c +1 -1
index fdce9ad67aad..ca6c51598aed 100644

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

mm/pgtable-generic.c +1 -1
index 8c22be79b734..b7f347ed786e 100644

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

net/ceph/cls_lock_client.c +15 -6
index 66136a4c1ce7..a9655678be6f 100644

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

net/ceph/decode.c +9 -9
index bc109a1a4616..2f21af38cd9a 100644

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

net/ceph/osdmap.c +5 -4
index 30d75970be44..ff06ba2965cf 100644

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

net/ipv4/tcp_input.c +3 -3
index c1769031a9e9..05521a3509a9 100644

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

net/ipv4/tcp_timer.c +3 -1
index 1e6d7d90371a..9ebce13fa8ad 100644

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

net/mptcp/fastopen.c +4 -3
index 082c46c0f50e..f717750906ff 100644

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

net/mptcp/options.c +65 -2

67 lines not on this page · raw message

net/mptcp/pm.c +4 -2
index 72a8f6a0d058..4f2c173d9d75 100644

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

net/mptcp/protocol.c +6 -0
index 9e381408d58a..1bf9b1dfc431 100644

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

net/mptcp/protocol.h +1 -0
index 3b8edd9b658b..a03c8b04ee9b 100644

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

net/netfilter/ipset/ip_set_bitmap_gen.h +1 -1
index d99e2e2e5855..ca1119f651ef 100644

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

net/netfilter/ipset/ip_set_core.c +13 -6
index 29bf5ee74fe3..e7c85b0af729 100644

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

net/netfilter/ipset/ip_set_list_set.c +6 -4
index 7bb807b3c628..2f11814bd512 100644

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

net/netfilter/ipvs/ip_vs_conn.c +2 -2
index e42fed876596..7da11628073b 100644

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

net/netfilter/ipvs/ip_vs_core.c +3 -3
index d121ea3d16bc..1f62ca2f7330 100644

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

net/netfilter/ipvs/ip_vs_ctl.c +2 -2
index 5dea5a14e85f..c0257ef4d8b0 100644

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

net/netfilter/ipvs/ip_vs_dh.c +2 -2
index 75f4c231f4a0..f04d2530a093 100644

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

net/netfilter/ipvs/ip_vs_lblc.c +1 -1
index 156181a3bacd..9bb1e05063dc 100644

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

net/netfilter/ipvs/ip_vs_lblcr.c +4 -4
index a021e6aba3d7..1a53c1254fe5 100644

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

net/netfilter/nf_flow_table_core.c +4 -3
index 595a0f19d15e..7a93e22d049d 100644

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

net/netfilter/nf_tables_offload.c +1 -1
index fd30e205de84..933a17d0f251 100644

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

net/packet/af_packet.c +5 -2
index a557f4dd2ebb..99212023b119 100644

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

net/sched/act_api.c +5 -5
index f948646985dd..3578fd5ac4fb 100644

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

net/sched/cls_bpf.c +16 -2
index e888d0aa9f21..a6003fa35c7c 100644

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

net/sched/cls_u32.c +3 -0
index 58e849c0acf4..a90de52e1ac8 100644

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

net/sched/sch_api.c +19 -5
index 2d54f7200cd0..08decb95648c 100644

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

net/tls/tls_sw.c +5 -0
index 7c3582b3eea9..4c77036da071 100644

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

security/selinux/ss/policydb.c +34 -0
index 91df3db6a88c..fdb8a62da04a 100644

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

security/selinux/ss/services.c +22 -6
index 1f5b05a59f84..82608b34260f 100644

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

sound/hda/codecs/realtek/alc269.c +1 -0
index 7a047bdbae46..e79997b34302 100644

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

sound/hda/codecs/realtek/alc662.c +1 -0
index 5073165d1f3c..5678063ac057 100644

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

sound/soc/codecs/cs35l41-lib.c +1 -1
index 1702f26049d3..b0fa80705be7 100644

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

sound/soc/codecs/cs35l45-tables.c +16 -16
index d2ecc7b3f619..764dbaa35042 100644

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

sound/soc/codecs/cs4265.c +2 -2
index 3f759c13d6d1..0bb1aa0c6cd0 100644

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

sound/soc/codecs/lpass-wsa-macro.c +4 -4
index 38faa9074ca3..8350b02b575f 100644

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

sound/soc/codecs/tas2562.c +7 -2
index ec1c8d077efc..118984e30d7b 100644

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

sound/soc/codecs/tas2781-i2c.c +9 -9
index 0b83446da45e..58f8ae016dac 100644

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

sound/soc/intel/common/sof-function-topology-lib.c +6 -1
index 3cc81dcf047e..7940280bf448 100644

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

sound/soc/sof/ipc4-pcm.c +19 -6
index 6d81969e181c..0c1d229c7bcb 100644

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

sound/soc/sof/ipc4-topology.c +33 -0
index d74567d6afc4..5701e4d1ac13 100644

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

sound/soc/sof/sof-audio.c +4 -5
index a9664b4cf43f..ef7d2f4b31c8 100644

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

sound/soc/xilinx/xlnx_formatter_pcm.c +4 -6
index 17ef05309469..45b178148b98 100644

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

tools/testing/selftests/ftrace/test.d/dynevent/add_remove_uprobe.tc +25 -2
index f2048c244526..19430bd5864c 100644

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

tools/testing/selftests/net/mptcp/mptcp_join.sh +2 -2
index 11b603742d8f..c3e158bf347d 100755

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

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

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