Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 7.3 0000/2651] 7.3.6-rc1 review
@ 2026-11-18 14:20 Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0001/2651] KVM: SVM: Add a vCPU-aware helper to get supported DEBUGCTL bits Greg Kroah-Hartman
                   ` (191 more replies)
  0 siblings, 192 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, linux-kernel, torvalds, akpm, linux,
	shuah, patches, lkft-triage, pavel, jonathanh, f.fainelli,
	sudipm.mukherjee, rwarsow, conor, hargar, broonie, achill, sr

This is the start of the stable review cycle for the 7.3.6 release.
There are 2651 patches in this series, all will be posted as a response
to this one.  If anyone has any issues with these being applied, please
let me know.

Responses should be made by Fri, 20 Nov 2026 14:55:47 +0000.
Anything received after that time might be too late.

The whole patch series can be found in one patch at:
	https://www.kernel.org/pub/linux/kernel/v7.x/stable-review/patch-7.3.6-rc1.gz
or in the git tree and branch at:
	git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-7.3.y
and the diffstat can be found below.

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Linux 7.3.6-rc1

Adrián Larumbe <adrian.larumbe@collabora.com>
    drm/panfrost: Fix race when restoring reset state in perfcnt

Brian Norris <briannorris@chromium.org>
    PM: runtime: Only queue an idle check for RPM-linked suppliers (part 2)

Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
    nvmet-auth: reject incomplete DHCHAP messages

Christoph Hellwig <hch@lst.de>
    zloop: fix block size query

Sasha Levin <sashal@kernel.org>
    rust: bindings: derive Zeroable for bindgen's opaque array wrappers

Shakeel Butt <shakeel.butt@linux.dev>
    kernfs: avoid READ_ONCE() on a kgid_t in kernfs_new_node()

Zhan Xusheng <zhanxusheng@xiaomi.com>
    erofs: fix disallowing superblock_share if device= is set

Takashi Iwai <tiwai@suse.de>
    ALSA: usb-audio: Correct a typo in UMC404HD model comment

Damien Le Moal <dlemoal@kernel.org>
    scsi: core: Fix additional sense code definition

Krzysztof Wilczyński <kwilczynski@kernel.org>
    PCI/sysfs: Decouple acpi_index from the optional device name element

Linus Torvalds <torvalds@linux-foundation.org>
    vdpa_sim: disable page faults around vringh_need_notify_iotlb()

Stian Halseth <stian@itx.no>
    sched/cputime: Don't warn when the tick period starts after idle exit

Imre Kaloz <kaloz@kernel.org>
    rtc: ds1685: do not sleep in the power-off handler

Imre Kaloz <kaloz@kernel.org>
    rtc: ds1685: arm the wake-up alarm at power-off only if an alarm is set

Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
    minix: reject rmdir of a directory with a corrupted link count

Nickolai Zeldovich <nickolai@csail.mit.edu>
    fs_pin: do not trust the pin after a spurious wakeup in pin_kill()

Nickolai Zeldovich <nickolai@csail.mit.edu>
    ucount: read the parent ucounts before dropping the rlimit count

Nickolai Zeldovich <nickolai@csail.mit.edu>
    splice: retry tee() instead of returning 0 when it races

Nickolai Zeldovich <nickolai@csail.mit.edu>
    pidfs: do not report fields that do not fit into the caller's struct

Zhiyu Zhang <zhiyuzhang999@gmail.com>
    watch_queue: keep info_id separate from rcu_head

Qu Wenruo <wqu@suse.com>
    iomap: only follow dio alignment requirement if specified

Xiao Liang <shaw.leon@gmail.com>
    tun: drop batched packets while the device is down

John Johansen <john.johansen@canonical.com>
    apparmor: advertise that sctp is being mediated

Jhonata Poma-Hansen <jhonata.poma@gmail.com>
    netlink: check sk_rcvbuf before charging the dump skb

Eric Dumazet <edumazet@kernel.org>
    openvswitch: use eth_type_trans_careful() in internal_dev_recv()

Eric Dumazet <edumazet@kernel.org>
    net: use eth_type_trans_careful() in __dev_forward_skb2()

Eric Dumazet <edumazet@kernel.org>
    loopback: use eth_type_trans_careful()

Eric Dumazet <edumazet@kernel.org>
    net: add eth_type_trans_careful()

Kyle Zeng <kylebot@openai.com>
    tcp: initialize mapped children before route lookup

John Johansen <john.johansen@canonical.com>
    apparmor: fix check SCTP bind, and connect permission checks

Kyle Zeng <kylebot@openai.com>
    tcp: avoid double destroy in tcp_abort() of an unaccepted child

Rosen Penev <rosenp@gmail.com>
    net: bgmac: fix TX DMA unmapping and slot cleanup

Kyle Zeng <kylebot@openai.com>
    gro: do not GRO GSO packets with inconsistent payload

Jakub Kicinski <kuba@kernel.org>
    eth: bnxt: hand XDP frags over to the copybreak skb

Jakub Kicinski <kuba@kernel.org>
    eth: bnxt: free XDP frags when xdp_do_redirect() fails

Jakub Kicinski <kuba@kernel.org>
    eth: bnxt: don't leak buffers when XDP agg buffer allocation fails

Jakub Kicinski <kuba@kernel.org>
    eth: bnxt: resize Rx head buffers when rx-copybreak changes

Jakub Kicinski <kuba@kernel.org>
    eth: bnxt: recycle agg buffers when Rx head buffer allocation fails

Naman Gulati <namangulati@google.com>
    netdev-genl: ignore NETDEV_UNREGISTER rebroadcasts

Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
    apparmor: check connect permission for SCTP

Wentao Liang <vulab@iscas.ac.cn>
    apparmor: Fix namespace reference leak in __aa_find_or_create_ns()

Maxime Bélair <maxime.belair@canonical.com>
    apparmor: convert duplicated dfa transitions to match_char()

Maxime Bélair <maxime.belair@canonical.com>
    apparmor: fix table_size() integer overflow on 32 bit

Christoph Hellwig <hch@lst.de>
    zloop: check that the zone backing file support ->{read,write}_iter

Christoph Hellwig <hch@lst.de>
    zloop: fput file after failed zone init

Christoph Hellwig <hch@lst.de>
    zloop: share more code for opening a zone backing file

Christoph Hellwig <hch@lst.de>
    zloop: remove a duplicate call to zloop_get_block_size

Maxime Bélair <maxime.belair@canonical.com>
    apparmor: report a label allocation failure as -ENOMEM

Maxime Bélair <maxime.belair@canonical.com>
    apparmor: fix a leak on a rejected string table entry

John Johansen <john.johansen@canonical.com>
    apparmor: remove unconfined_profile() check in inet socket mediation

Michail Andreas Michalopoulos <mike.michalo@gmail.com>
    apparmor: check address length before reading AF_UNSPEC bind address

shaos <shawnq1@163.com>
    apparmor: mediate AF_UNSPEC socket disconnects

Jamie Nguyen <jamien@nvidia.com>
    selftests: net: txtimestamp: fix out-of-bounds read in raw UDP checksum

Kunhai Dai <daikunhai@didiglobal.com>
    blk-iocost: publish hweights as one atomic value

Chris Mason <mason@kernel.org>
    rnbd-srv: publish the sess_dev at the end of OPEN

Chris Mason <mason@kernel.org>
    rnbd-srv: fix use-after-free on two CLOSE messages

Josef Bacik <josef@toxicpanda.com>
    block/rnbd-srv: drop the sess_dev kobject unlocked

Josef Bacik <josef@toxicpanda.com>
    block/rnbd-srv: don't free the device on a sysfs error

Josef Bacik <josef@toxicpanda.com>
    drbd: take req_lock to skip the initial sync as peer

Josef Bacik <josef@toxicpanda.com>
    drbd: stop the start_resync timer of a dying device

Josef Bacik <josef@toxicpanda.com>
    block: apply the segment size to the integrity buffer

Josef Bacik <josef@toxicpanda.com>
    blk-mq: free the bitmaps of tags in the SRCU callback

Josef Bacik <josef@toxicpanda.com>
    block: partitions/mac: compute the sectors in 64 bits

Josef Bacik <josef@toxicpanda.com>
    blk-mq: set up a queue under tag_list_lock

Josef Bacik <josef@toxicpanda.com>
    blk-mq: exit the hctxs of a queue under tag_list_lock

Josef Bacik <josef@toxicpanda.com>
    blk-mq: quiesce a queue that joins a quiesced tag set

Josef Bacik <josef@toxicpanda.com>
    blk-mq-dma: initialize the dma state for P2P, too

Josef Bacik <josef@toxicpanda.com>
    blk-mq: don't forget a timer the driver has restarted

Josef Bacik <josef@toxicpanda.com>
    blk-mq: don't bring back flags of a completed request

Josef Bacik <josef@toxicpanda.com>
    blk-mq: keep sharing tags fairly after a queue update

Josef Bacik <josef@toxicpanda.com>
    blk-mq: don't trust the cookie in blk_mq_poll()

Josef Bacik <josef@toxicpanda.com>
    block: don't lose the status of a failed flush request

Josef Bacik <josef@toxicpanda.com>
    block: fix use-after-free of the disk in sync_bdevs()

Josef Bacik <josef@toxicpanda.com>
    namei: don't assert S_ISDIR on a stale rcu-walk inode

Amir Goldstein <amir73il@gmail.com>
    selftests/ovl: fix detached layer mountinfo expectations

Dominik Maier <dmnk@google.com>
    xattr: always invoke cap_convert_nscap() for security.capability writes

Sasha Levin <sashal@kernel.org>
    ASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffers

Josef Bacik <josef@toxicpanda.com>
    fork: Let nobody keep a task that may not come to life

Nicolai Buchwitz <nb@tipi-net.de>
    octeontx2-pf: pass the skb to otx2_dma_unmap_skb_frags()

Nicolai Buchwitz <nb@tipi-net.de>
    octeontx2-pf: fix skb use-after-free on ipsec transmit drop

Markus Probst <markus.probst@posteo.de>
    rtc: s35390a: Read 24-hour mode on access

Markus Probst <markus.probst@posteo.de>
    rtc: s35390a: Fix alarm not disabling

Markus Probst <markus.probst@posteo.de>
    rtc: s35390a: Add missing newline to dev_err

Joas Antonio dos Santos <joasantonio108@gmail.com>
    net: mctp: free reassembly head skb when key_add fails on SOM

Josef Bacik <josef@toxicpanda.com>
    writeback: don't kick a missing wb for dontcache writes

Cosmin Ratiu <cratiu@nvidia.com>
    net/mlx5: Only set num_doorbells on a fully initialized SF

Linkui Xiao <xiaolinkui@kylinos.cn>
    net: bridge: netlink: do not clear the vlan info dump error

Karol Kolacinski <karol.kolacinski@intel.com>
    ice: E822: keep Tx timestamps disabled during offset calibration

Jacob Keller <jacob.e.keller@intel.com>
    ice: set in_use only after preparing Tx timestamp index

Jacob Keller <jacob.e.keller@intel.com>
    ice: use reference counting and SRCU for PTP port access

Dharmender Garg <dharmender.garg@broadcom.com>
    bnge: fix RSS table sizing for large RX ring counts

Dharmender Garg <dharmender.garg@broadcom.com>
    bnge: cap RSS contexts and RX rings to the RSS table size

Eric Dumazet <edumazet@kernel.org>
    ppp: linearize and segment bridged packets when required

Kuniyuki Iwashima <kuniyu@google.com>
    ipv6: Protect multiple routes insertion by table lock.

Chuck Lever <cel@kernel.org>
    tls: Honor O_NONBLOCK in tls_sw_splice_read()

Joas Antonio dos Santos <joasantonio108@gmail.com>
    net: dcb: initialize PFC value before calling getpfccfg

Nicolai Buchwitz <nb@tipi-net.de>
    net: bcmgenet: restore the Tx coalescing setting when the rings are rebuilt

Nicolai Buchwitz <nb@tipi-net.de>
    net: bcmgenet: recover from a failed resume

Josef Bacik <josef@toxicpanda.com>
    block: don't enter reclaim under rq_qos_mutex

Josef Bacik <josef@toxicpanda.com>
    blk-throttle: make blkio.reset_stats reset I/O counts

Josef Bacik <josef@toxicpanda.com>
    blk-throttle: pass the I/O counts of a dead group on

Josef Bacik <josef@toxicpanda.com>
    blk-iolatency: flush enable_work after going offline

Josef Bacik <josef@toxicpanda.com>
    blk-cgroup: don't free a blkg with its punt work queued

Josef Bacik <josef@toxicpanda.com>
    blk-cgroup: fix root io.stat byte counts on 32-bit

Josef Bacik <josef@toxicpanda.com>
    blk-throttle: don't truncate the cgroup v1 iops limits

Josef Bacik <josef@toxicpanda.com>
    blk-iocost: free struct ioc after a grace period

Josef Bacik <josef@toxicpanda.com>
    blk-cgroup: keep the old blkg while reassociating a bio

Chris Mason <mason@kernel.org>
    nvmet: don't clear sq->ctrl for a Connect with sqsize 0

Chris Mason <mason@kernel.org>
    nvmet-rdma: fix double puts after a failed RDMA WRITE

Chris Mason <mason@kernel.org>
    nvmet-rdma: disable interrupts under rsp_wr_wait_lock

Chris Mason <mason@kernel.org>
    nvmet-rdma: flush nvmet-wq on module exit

Josef Bacik <josef@toxicpanda.com>
    nvme-loop: don't BUG() if a scan runs beside a reset

Josef Bacik <josef@toxicpanda.com>
    nvmet-tcp: don't read a removed port at Connect time

Josef Bacik <josef@toxicpanda.com>
    nvmet: fix NULL dereference in debugfs host_traddr

Josef Bacik <josef@toxicpanda.com>
    nvmet-tcp: stop listening when a port is removed

Josef Bacik <josef@toxicpanda.com>
    nvmet: fix NULL dereference of PCI endpoint targets

Josef Bacik <josef@toxicpanda.com>
    nvmet-auth: take only AUTH_Negotiate for a negotiation

Josef Bacik <josef@toxicpanda.com>
    nvmet: don't truncate the length of big discards

Naveen Kumar Chaudhary <naveen.osdev@gmail.com>
    kdb: unify CMD_BUFLEN definition into kdb_private.h

Naveen Kumar Chaudhary <naveen.osdev@gmail.com>
    kdb: fix memory leak in kdb_setenv() when environment is full

Surabhi Gogte <sgogte@purestorage.com>
    nvme-tcp: refactor I/O queue setup path

Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
    nvme-rdma: fix NULL metadata_sgl dereference with T10-PI

Rongzheng Wang <testwrzwrz@gmail.com>
    nvmet: use the enabled transport when disabling a port

Qing Zhang <diasyzhang@tencent.com>
    nvmet: protect nvmet_ports_list with nvmet_config_sem

Maurizio Lombardi <mlombard@redhat.com>
    nvme-pci: fix early boot hang with nvme.quirks parameter

Avi Weiss <thnkslprpt@gmail.com>
    nvmet: prevent double-free after metadata SGL allocation failure

Andrea Parri <parri.andrea@gmail.com>
    nvmet: zns: reject a NUMD whose byte count wraps

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: xilinx: formatter_pcm: Fix read-modify-write of AUD_CTRL in hw_params

Sicong Huang <congei42@163.com>
    nfp: flower: fix use-after-free in neighbour update work

Namjae Jeon <linkinjeon@kernel.org>
    ksmbd: return complete and aligned stream information

Rishikesh Jethwani <rjethwani@purestorage.com>
    tls: keep TX and RX hardware offload on the same device

Peter Morrow <pdmorrow@gmail.com>
    net/mlx4: always create the eth and ib auxiliary devices

Slawomir Stepien <sst@poczta.fm>
    fs/ntfs3: handle partial allocation in attr_data_get_block_locked()

Yun Zhou <yun.zhou@windriver.com>
    ntfs3: release ni_lock before dir_emit in ntfs_readdir to fix deadlocks

Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
    fs/ntfs3: take ni_lock() once in ntfs_readdir()

Feng Yang <yangfeng@kylinos.cn>
    bpf: Fix out-of-bounds btf->types write for split BTF

Alexei Starovoitov <ast@kernel.org>
    bpf: Keep stack arguments in arch_bpf_timed_may_goto()

Pu Lehui <pulehui@huawei.com>
    riscv, bpf: Remap BPF_REG_0 and RV_REG_TCC

Chen Pei <cp0613@linux.alibaba.com>
    selftests/bpf: Enable arena LDSX tests for riscv64

Ömer Mete Kaya <omermetekaya0@gmail.com>
    usbnet: fix EVENT_RX_PAUSED race in usbnet_skb_return()

Florian Fainelli <f.fainelli@gmail.com>
    net: dsa: mv88e6xxx: fix 88E6171 statistics type

Florian Fainelli <f.fainelli@gmail.com>
    net: dsa: mv88e6xxx: fix 6351 family statistics snapshot

Daniel Machon <daniel.machon@microchip.com>
    net: lan966x: don't disable hardirqs in fdma tx clear path

Zhewei Yuan <yzwlhm@gmail.com>
    tcp: Fix fastreuse cache initialization on first bind

Wang Zhaolong <wangzhaolong3@outlook.com>
    ksmbd: fix named-pipe reply loss with small output buffers

Wang Zhaolong <wangzhaolong3@outlook.com>
    ksmbd: avoid races between named-pipe operations

Fernando Fernandez Mancera <fmancera@suse.de>
    devlink: region: fix snapshot id leak on kernel-allocated ids

Dudu Lu <phx0fer@gmail.com>
    net-sysfs: reject a one-entry RPS flow table

Daniel Machon <daniel.machon@microchip.com>
    net: microchip: fdma: fix DCB corruption under sustained load

Daniel Machon <daniel.machon@microchip.com>
    net: microchip: fdma: use little-endian types for descriptor fields

Daniel Machon <daniel.machon@microchip.com>
    net: lan966x: release the in-flight slot of a stale TX skb

Daniel Machon <daniel.machon@microchip.com>
    net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit

Harkirat Gill <harkirat.gill@amd.com>
    drm/amdgpu: re-enable GFXOFF for compute on GFX12

Florian Fainelli <florian.fainelli@broadcom.com>
    perf parse-events: Include errno.h before kernel headers

Florian Fainelli <florian.fainelli@broadcom.com>
    perf print_insn: Include sys/types.h for ssize_t

Paul Moses <p@1g4.org>
    perf mmap: Preserve the consumed cursor in forward mode

Paul Moses <p@1g4.org>
    perf mmap: Use the head selected by read_init

Ian Rogers <irogers@google.com>
    perf libdw: Optimize fallback logic for missing DWARF

Tejun Heo <tj@kernel.org>
    sched_ext: Reject scx_bpf_sub_grant/revoke() in tracing programs

Tejun Heo <tj@kernel.org>
    sched_ext: Fix a lone IMMED task waiting behind a kept prev

Tejun Heo <tj@kernel.org>
    sched_ext: Fix queued bypassed tasks stalling when the host loses SCX_CAP_BASE

Tejun Heo <tj@kernel.org>
    sched_ext: Let the bypass load balancer move tasks homed on other cpus

Tejun Heo <tj@kernel.org>
    sched_ext: Factor out bypass_lb_move() and insert with the donor DSQ unlocked

Tejun Heo <tj@kernel.org>
    sched_ext: Add ops.sub_child_ecaps_updated() to report a child's effective cap changes

Tejun Heo <tj@kernel.org>
    sched_ext: Add ops.sub_cid_sched_updated() to report the sched running on a cid

Andrea Righi <arighi@nvidia.com>
    sched_ext: Fix ops.running/stopping() pairing for proxy-exec donors

Andrea Righi <arighi@nvidia.com>
    sched: Add sched_ext hooks for proxy execution

Shubhang Kaushik (Ampere) <sh@gentwo.org>
    sched: Restart fair hrtick after same-task repicks

Tejun Heo <tj@kernel.org>
    sched_ext: Fix the bypass load balancer stranding tasks on cpus where the host lacks SCX_CAP_BASE

Tejun Heo <tj@kernel.org>
    sched_ext: Fix rescue served time disagreeing with the slice under proxy execution

Tejun Heo <tj@kernel.org>
    sched_ext: Fix bypassed tasks looping on a host without SCX_CAP_ENQ

Mani Tofigh <mt4022@columbia.edu>
    bpf: Fix bpf_timer callback running on a freed map

Len Brown <len.brown@intel.com>
    x86_energy_perf_policy: Cleanup: Check fseek() in VM path

Len Brown <len.brown@intel.com>
    x86_energy_perf_policy: Fix optarg keyword matching

Junbin Zhang <sprooc69@gmail.com>
    sched_ext: Reject rq-lock-taking kfuncs in tracing programs

Kumar Kartikeya Dwivedi <memxor@gmail.com>
    LoongArch: BPF: Fix stack arguments for indirect trampolines

Zhenxian Ma <mzx199711@gmail.com>
    block: fix recursive i_rwsem locking in blkdev_write_iter()

Daniel Machon <daniel.machon@microchip.com>
    net: lan966x: do not warn on MAC entries that are not port destined

Daniel Machon <daniel.machon@microchip.com>
    net: lan966x: do not inject uninitialised bytes past skb->len

Dudu Lu <phx0fer@gmail.com>
    net: xps: bound the cleanup loop by the old map's num_tc

Qingfang Deng <qingfang.deng@linux.dev>
    pppoe: wait for RCU readers before reusing a socket

Hannes Laimer <h.laimer@proxmox.com>
    vxlan: keep reserved_bits across changelink

Allison Henderson <achender@kernel.org>
    net/rds: do not initialize transports after rds_init() failed

Allison Henderson <achender@kernel.org>
    net/rds: do not fail init when CONFIG_SYSCTL=n

Tao Gong <gongtao0607@gmail.com>
    net: dsa: mt7530: trap frames to conduit in MFC on EN7581 and AN7583

Ian Bridges <icb@fastmail.org>
    ksmbd: fix SMB2 CREATE response buffer overflow in compound requests

Cheng Yongkang <teel4res@gmail.com>
    net: tun: hold napi_mutex when deleting NAPI in tun_detach_all()

Denis Kulikov <dar1knessx@gmail.com>
    ksmbd: use the resolved share path for the share root

Gao Xiang <xiang@kernel.org>
    erofs: drop unnecessary .read_folio() checks for file-backed mounts

Giuseppe Scrivano <giuseppe@scrivano.org>
    erofs: reuse superblock for file-backed mounts

Giuseppe Scrivano <giuseppe@scrivano.org>
    fs: rename vfs_get_super() to get_tree_super() and export it

Sally Marcher <me@gry.sh>
    ALSA: usb-audio: Add correct datainterval in the quirks-table for Microbook II

HyeongJun An <sammiee5311@gmail.com>
    ALSA: pcmtest: Honor the enable parameter

Nicolai Buchwitz <nb@tipi-net.de>
    net: usb: cdc_mbim: don't enable BHs in tx_fixup under netpoll

Nicolai Buchwitz <nb@tipi-net.de>
    net: usb: cdc_ncm: don't enable BHs in tx_fixup under netpoll

Binbin Deng <18983559317@163.com>
    net: atlantic: Unregister before clearing RXNFC rules

Paolo Abeni <pabeni@redhat.com>
    gtp: hold RCU in gtp_genl_send_echo_req()

Qingfang Deng <qingfang.deng@linux.dev>
    pppoe: drop discovery frames with no MAC header

Tung Nguyen <tung.quang.nguyen@est.tech>
    tipc: fix refcount panic in tipc_rcv() when receiving shared skb

Jerome Brunet <jbrunet@baylibre.com>
    clk: cdce925: Size the PLL child name buffer for any int

Gabriel Fernandez <gabriel.fernandez@foss.st.com>
    clk: stm32: fix clock array size for STM32MP21

bui duc phuc <phucduc.bui@gmail.com>
    clk: lmk04832: Handle reset GPIO lookup errors

Eric Dumazet <edumazet@kernel.org>
    ipmr: clear skb->cb[] in reg_vif_xmit()

Eric Dumazet <edumazet@kernel.org>
    net: harden qdisc_pkt_len_segs_init() against malicious GSO packets

alex todadze <todadzealexi19@proton.me>
    net: stmmac: fix rx checksum offload with extended descriptors

Dudu Lu <phx0fer@gmail.com>
    net/sched: taprio: unwind the netdevice notifier if register_qdisc() fails

Alexandre Cassen <acassen@corp.free.fr>
    net/sched: act_api: inherit filter offload flags only on new actions

Prashant Sengar <prashantsengar25031@gmail.com>
    net: usb: lan78xx: avoid NULL PHY dereference in WoL setup

Dudu Lu <phx0fer@gmail.com>
    net/sched: gred: keep the qdisc lock while updating the table

Zhang Yi <zhangyi@everest-semi.com>
    ASoC: codecs: es*: Modify the maximum value of DMIC_GAIN

Zhang Yi <zhangyi@everest-semi.com>
    ASoC: codecs: es*: Modify the registers related to ALC RECOVERY

Marek Szyprowski <m.szyprowski@samsung.com>
    ASoC: codecs: wsa881x: Fix shared powerdown GPIO handling

Ravi Hothi <ravi.hothi@oss.qualcomm.com>
    ASoC: codecs: wsa883x: Fix VI sense port channel count

Ravi Hothi <ravi.hothi@oss.qualcomm.com>
    ASoC: codecs: wsa884x: Fix VI sense port channel count

Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
    ASoC: codecs: wsa883x: disable runtime PM on unbind

Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
    ASoC: codecs: wsa884x: disable runtime PM on unbind

Hungyu Lin <dennylin0707@gmail.com>
    thermal: Fix CPU mask truncation in power limit trace event

Ovidiu Panait <ovidiu.panait.rb@renesas.com>
    PM: suspend: Do not call suspend_ops->begin()/end() for s2idle

Sasha Levin <sashal@kernel.org>
    selftests/thermal: allow cross builds of the Intel tests

Jérémie Rodon <jeremie.rodon@gmail.com>
    spi: cs42l43: Add speaker ID quirk for Dell XPS 13 DX13260 SKU 0E54

TJ Adams <tadamsjr@google.com>
    block: advance iterator after copy-in for SG_DXFER_TO_FROM_DEV

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Release invalid isolated CPUs with a shrunk root partition parent

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Release invalid isolated CPUs in compute_partition_effective_cpumask()

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Make sure compute_partition_effective_cpumask() is only called for valid partition

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Prevent recursive call of remote_cpus_update() via update_cpumasks_hier()

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Minor fixes to prstate_housekeeping_conflict()

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Don't allow a child root partition under an isolated parent

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Find furthest isolated ancestor for invalidated isolated partition

Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
    libceph: reject bad connect_seq in msgr1 READY reply

Yogesh Gaur <yogeshgaur.83@gmail.com>
    ceph: don't keep a mon_addr string that failed to parse

Xiang Mei <xmei5@asu.edu>
    ceph: fix off-by-one NUL termination in decode_encrypted_symlink()

Tal Zussman <tz2294@columbia.edu>
    ceph: don't clear write_congested when collecting folios

Tal Zussman <tz2294@columbia.edu>
    ceph: fix writeback_count leak when a bounce page allocation fails

Tal Zussman <tz2294@columbia.edu>
    ceph: wait for pending fscache write in write_folio_nounlock()

Tal Zussman <tz2294@columbia.edu>
    ceph: fix error handling when the OSD client is stopping in ceph_submit_write()

Alex Markuze <amarkuze@redhat.com>
    ceph: fix page vector leak on encrypted netfs read EIO path

Xiubo Li <xiubo.li@clyso.com>
    ceph: mark the superblock active after mounting

Max Kellermann <max.kellermann@ionos.com>
    ceph: remove unused field `i_cap_migration_resv`

Henry Martin <bsdhenrymartin@gmail.com>
    netlink: fix out-of-bounds bitmap access clearing stale mc groups

HyeongJun An <sammiee5311@gmail.com>
    ALSA: pcmtest: Reject invalid fill_mode values

Weiming Shi <bestswngs@gmail.com>
    bpf: Validate stack arg reads against caller state

Thomas Weißschuh <thomas.weissschuh@linutronix.de>
    vdso/gettimeofday: Correct the read of tz_minuteswest and tz_dsttime

Hui Su <sh_def@163.com>
    sched/idle: Use hrtimer cleanup class in play_idle_precise()

Hui Su <sh_def@163.com>
    hrtimer: Add cleanup class for on-stack timers

Avi Weiss <thnkslprpt@gmail.com>
    kthread: Fall back when no preferred housekeeping CPU is online

Cen Zhang <zzzccc427@gmail.com>
    ALSA: ump: Drain sequencer callbacks before freeing their client

Xu Yunxiang <xyx2021@mail.ustc.edu.cn>
    bpf: Track borrowed iterator results by default

Dimitris Charisis <dchar@cslab.ece.ntua.gr>
    maple_tree: fix maple_range_64 crashes in RCU mode

Liam R. Howlett (Google) <liam@infradead.org>
    tools/testing/shared: catch a failed posix_memalign()

Ren Tamura <ren.tamura.oss@gmail.com>
    tools/cgroup: sum shrinker object counts across NUMA nodes

Lorenzo Stoakes (ARM) <ljs@kernel.org>
    ALSA: us122l: mark hwdep mappings VM_MIXEDMAP

Pooyan Azad <pooyan.azadparvar@gmail.com>
    zram: fix short reads from block_state

Ting-Han Hou <ue081723@gmail.com>
    scripts/gdb: fix stack depot out-of-bounds diagnostic

Ting-Han Hou <ue081723@gmail.com>
    scripts/gdb: fix radix tree lookup pointer handling

Avi Weiss <thnkslprpt@gmail.com>
    profiling: fix sampling step on 64-bit big-endian systems

Edward Adam Davis <eadavis@sina.com>
    kernel/reboot: avoid potential deadlocks during suspension

Aditya Sharma <adi.sharma@zohomail.in>
    bpf: Remove nmi_uaccess_okay() check in bpf_send_signal_common()

Ayushman Rout <ayushmanrout27@gmail.com>
    bpf: Use memmove() to load bytes from an skb and an xdp_buff

Feng Yang <yangfeng@kylinos.cn>
    bpf: Propagate btf_add_type() errors in btf_check_all_metas()

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Wait for the struct_ops map to be freed in assoc_in_timer

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Test freeing a struct_ops map under a running prog

Alexander Koskovich <akoskovich@pm.me>
    scsi: ufs: qcom: Power down UFS during system suspend on Milos

Haotian Zhang <vulab@iscas.ac.cn>
    scsi: elx: libefc: Fix resource leak in efcport_init() error path

Dudu Lu <phx0fer@gmail.com>
    net/sched: etf: initialise the sock_exterr_skb before filling it

Nandor Kracser <nandor@riptides.io>
    tls: avoid field-spanning write when copying crypto info

Greg Thelen <gthelen@google.com>
    selftests/net: tcp_mmap: remove unused -k option and keepflag

Allison Henderson <achender@kernel.org>
    net/rds: keep the connected peer's scope id apart from the bound one

Allison Henderson <achender@kernel.org>
    net/rds: include the scope id in the sendmsg connection cache check

Gal Pressman <gal@nvidia.com>
    net/mlx5e: IPsec, Fix out-of-bounds comparison of neighbour keys

Cosmin Ratiu <cratiu@nvidia.com>
    net/mlx5e: SHAMPO: Do not merge PSP packets

Eric Dumazet <edumazet@kernel.org>
    net: fix frag_list leak in skb_segment_list() error path

Jiayuan Chen <jiayuan.chen@linux.dev>
    tls: fix the open record check in the max payload size setsockopt

Hangbin Liu <liuhangbin@kylinos.cn>
    selftests: gro: remove unused variable total_data

Daniel Machon <daniel.machon@microchip.com>
    net: sparx5: fix tx DCB index drift in fdma xmit

Daniel Machon <daniel.machon@microchip.com>
    net: sparx5/lan969x: do not read past skb->len when injecting a frame

Piotr Kubik <piotr@kubik.pl>
    net: pse-pd: si3474: validate the channels of a PI

Piotr Kubik <piotr@kubik.pl>
    net: pse-pd: si3474: keep detection enabled on the other PIs

Dimitri Daskalakis <daskald@meta.com>
    eth: fbnic: Correct packet header prefetch

James Clark <jjc@jclark.com>
    net: ethernet: ti: am65-cpts: fix support for PTP_EXTTS_REQUEST2 ioctl

Florian Fuchs <fuchsfl@gmail.com>
    ALSA: sh: aica: Fix spu_memset() stride

Gregory Price (Meta) <gourry@gourry.net>
    cgroup/cpuset: check effective mems for a movable-only configuration

Kaifeng Wang <kaifengw@google.com>
    tcp: reject devmem tx with fastopen and repair

Xingyuan Mo <hdthky0@gmail.com>
    sctp: reject forged cookie peer_addr with unknown address family

Jiale Yao <yaojiale02@163.com>
    regulator: irq: freeze deferred hardware access during suspend

Steven Rostedt <rostedt@goodmis.org>
    cpuidle: haltpoll: Only define guest_halt_poll_ns tracepoint when used

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: amd: raven: Fix memory leak in acp3x_dma_close()

Lee Jia Jie <mkofdwu@gmail.com>
    perf: Fix UAF in attach_task_ctx_data()

Michail Andreas Michalopoulos <mike.michalo@gmail.com>
    ksmbd: select CRYPTO_AES

Ivan Hu <ivan.hu@canonical.com>
    ACPICA: Initialize parser_state.aml_end in acpi_install_method()

Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
    ACPI: platform_profile: Separate handler locking from sysfs lifetime

Nickolai Zeldovich <nickolai@csail.mit.edu>
    nsproxy: Fix cred leak in the error path of prepare_nsset()

Avi Weiss <thnkslprpt@gmail.com>
    signal: skip blocked signals in dequeue_synchronous_signal()

Karl Mehltretter <kmehltretter@gmail.com>
    fs: fix ramfs_fs_info leak when rootfs is unmounted

Christian Brauner <brauner@kernel.org>
    super: convert to plain hashtable

Karl Mehltretter <kmehltretter@gmail.com>
    netfs: Restore selective debug mask handling

Nickolai Zeldovich <nickolai@csail.mit.edu>
    nsfs: check the trailing bytes of a file handle in bytes, not words

Tianyi Chen <hi@tychen.cc>
    eventpoll: propagate wakeup source creation failure in ep_modify()

Nickolai Zeldovich <nickolai@csail.mit.edu>
    proc/kcore: advance the vmalloc retry by the last copy, not the total

Marek Szyprowski <m.szyprowski@samsung.com>
    ASoC: wm8994: follow AIF clock source changes in MCLK gating

Zhan Xusheng <zhanxusheng@xiaomi.com>
    ntfs: fix u16 truncation of the update sequence array count check

Hang Nan <2122295973@qq.com>
    ntfs: reject index blocks with a too small entries offset

Binbin Deng <18983559317@163.com>
    tipc: fix use-after-free of broadcast reception link at node release

Baek Kyu, Kim <pocj8ur4in@gmail.com>
    gpiolib: Propagate emulated drive errors when setting arrays

Rand Deeb <rand.sec96@gmail.com>
    ata: libata-core: Ignore forced transfer modes the host does not support

Travis Howard <thoward@lafayetteinstrument.com>
    tg3: Add Datto SIRIS 5 1U Server to restart AER quirk table

Cosmin Ratiu <cratiu@nvidia.com>
    net/mlx5e: Stop asserting for RTNL when closing channels

Eric Dumazet <edumazet@kernel.org>
    net: shrink the payload-only part of skb dataref to one bit

Tianyi Gao <tianyi@cloudflare.com>
    veth: schedule the peer's NAPI after XDP_TX when only GRO is enabled

Daniel Machon <daniel.machon@microchip.com>
    net: lan969x: don't disable hardirqs in fdma tx clear

Daniel Machon <daniel.machon@microchip.com>
    net: sparx5/lan969x: do not clobber the PSFP cycle timer update period

Daniel Machon <daniel.machon@microchip.com>
    net: lan969x: fix DSM calendar for empty taxis

Willem de Bruijn <willemb@google.com>
    virtio-net: fix frag overflow in big packets receive

Jijie Shao <shaojijie@huawei.com>
    net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference

Eric Joyner <eric.joyner@amd.com>
    ionic: free port_info when probe fails after the port is set up

Nikhil P. Rao <nikhil.rao@amd.com>
    ionic: fix port_info use-after-free on firmware recovery

Sivansh Gupta <sivansh.gupta@oss.qualcomm.com>
    mailbox: qcom-cpucp: read mbox hardware register using readq()

Ian Rogers <irogers@google.com>
    perf lock contention: Filter events before creating lock_stat

Hui Su <sh_def@163.com>
    sched_ext: Reject oversized automatic CID shards

Daniel Wagner <wagi@kernel.org>
    nvme-fabrics: clear the poll map if no poll queues are mapped

Daniel Wagner <wagi@kernel.org>
    nvme-fabrics: limit each queue type to the number of online CPUs

Daniel Wagner <wagi@kernel.org>
    nvme-fabrics: reset io_queues before computing the queue mapping

James Clark <james.clark@linaro.org>
    perf cs-etm: Don't add global v0 HW_IDs to unformatted queues

Namhyung Kim <namhyung@kernel.org>
    perf c2c: Fix memory leaks on output fields

Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
    PCI/pwrctrl: Power off child devices on power-on failure

Waldemar Brodkorb <wbx@openadk.org>
    sh: Select BINFMT_FLAT_NO_DATA_START_OFFSET for !MMU

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Time tc_edt from its first packet with data

Nicolás Antinori <nico.antinori.7@gmail.com>
    rust: i2c: remove TryFrom<&Device> implementation for &I2cClient

Marek Szyprowski <m.szyprowski@samsung.com>
    ASoC: samsung: midas_wm1811: run FLL1 at the AIF1 configured rate when idle

Marek Szyprowski <m.szyprowski@samsung.com>
    ASoC: wm8994: fix MCLK index used for setting MCLK rate

Marek Szyprowski <m.szyprowski@samsung.com>
    ASoC: wm8994: don't lose the AIF clock ratio when staying at 32kHz SYSCLK

Marek Szyprowski <m.szyprowski@samsung.com>
    ASoC: wm8994: fix MCLK gating for AIF clocks sourced from MCLK2

Ajanesh Lal <ajaneshlal3@gmail.com>
    ALSA: hda/realtek: Add mute and mic-mute LEDs for HP ENVY 16 (103c:8be5)

HyeongJun An <sammiee5311@gmail.com>
    selftests: ALSA: pcmtest: Compare all captured bytes in ni_capture

Alexandre Cassen <acassen@corp.free.fr>
    net/mlx5: HWS, fix modify header pool match for copy actions

Alexandre Cassen <acassen@corp.free.fr>
    net/mlx5: HWS, fix modify header pattern compare on big-endian

Anil Kaushik <anilkaushikwireless@gmail.com>
    gtp: hold RCU for the device lookup when adding a PDP context

Anil Kaushik <anilkaushikwireless@gmail.com>
    gtp: set a valid genl command in PDP context get and dump replies

HyeongJun An <sammiee5311@gmail.com>
    selftests: ALSA: pcmtest: Make room for the longest fill pattern

HyeongJun An <sammiee5311@gmail.com>
    selftests: ALSA: pcmtest: Check the frame count of each transfer

Takashi Iwai <tiwai@suse.de>
    platform/x86: ibm_rtl: Fix potential OOB read at signature search

Jiale Yao <yaojiale02@163.com>
    mshv_vtl: initialize poll file mutex before device registration

Shradha Gupta <shradhagupta@linux.microsoft.com>
    Drivers: hv: Run VMBus kexec cleanup from syscore shutdown

Shradha Gupta <shradhagupta@linux.microsoft.com>
    kexec: Add helper to report an active kexec reboot

Jiale Yao <yaojiale02@163.com>
    Drivers: hv: vmbus: Check ACPI companion before use

Sasha Levin <sashal@kernel.org>
    selftests/proc: proc-pid-vm: fix unused variable warning on non-x86

Cen Zhang <zzzccc427@gmail.com>
    ocfs2: initialize status waiters before publishing them

Joseph Qi <joseph.qi@linux.alibaba.com>
    ocfs2: reserve xattr value tree metadata only once

Dmitry Antipov <dmantipov@yandex.ru>
    tcp_bpf: propagate error code in tcp_bpf_sendmsg()

Carolina Jubran <cjubran@nvidia.com>
    net: skbuff: don't copy alloc_cpu in skb header copies

Carlo Szelinsky <github@szelinsky.de>
    net: pse-pd: si3474: fix use-after-free in ancillary client error path

Michail Andreas Michalopoulos <mike.michalo@gmail.com>
    ksmbd: reject FILE_ATTRIBUTE_TEMPORARY on directories

Mohammed Alquraini <mohammed.saad.alquraini@gmail.com>
    ksmbd: reject foreign RPC pipe handles on IPC$ read and write

Namjae Jeon <linkinjeon@kernel.org>
    ksmbd: fix fd_limit accounting across durable reconnects

DaeMyung Kang <charsyam@gmail.com>
    ksmbd: round SetAllocation to the advertised allocation unit

Namjae Jeon <linkinjeon@kernel.org>
    ksmbd: inherit FileIds in related compound requests

Namjae Jeon <linkinjeon@kernel.org>
    ksmbd: keep lease tables until their last lease is closed

Stefan Metzmacher <metze@samba.org>
    smb: smbdirect: don't WARN on an unexpected receive opcode

Namjae Jeon <linkinjeon@kernel.org>
    ksmbd: fix durable reconnects for root shares

Namjae Jeon <linkinjeon@kernel.org>
    ksmbd: cache the resolved share path for durable reconnects

Namjae Jeon <linkinjeon@kernel.org>
    ksmbd: disconnect on invalid encryption transform flags

ChenXiaoSong <chenxiaosong@kylinos.cn>
    smb/server: fix trailing period in generated short names

Gael Blivet <gael.blivet@gmail.com>
    ksmbd: print IPv6 client addresses correctly in procfs

Gael Blivet <gael.blivet@gmail.com>
    ksmbd: fix AFP_AfpInfo header fields in synthesized xattr

Henry Hu <huhai@kylinos.cn>
    ksmbd: report IPv4 and IPv6 addresses independently in iface query

Henry Hu <huhai@kylinos.cn>
    ksmbd: fix invalid Next offset in interface info replies

Henry Hu <huhai@kylinos.cn>
    ksmbd: fix unlocked IPv6 addr_list walk in fsctl_query_iface_info_ioctl()

Henry Hu <huhai@kylinos.cn>
    ksmbd: fix link speed query in fsctl_query_iface_info_ioctl()

Henry Hu <huhai@kylinos.cn>
    ksmbd: fix iface_list use-after-free during server reset

Danilo Krummrich <dakr@kernel.org>
    rust: workqueue: replace deprecated system_wq with system_{percpu,dfl}_wq

Nicolas Falesy <nicolas@nicolasfalesy.com>
    exfat: clean stale bdev buffers of newly allocated clusters

Chi Zhiling <chizhiling@kylinos.cn>
    exfat: take bitmap_lock at the start of exfat_alloc_cluster()

Chi Zhiling <chizhiling@kylinos.cn>
    exfat: fix used_clusters accounting during cluster allocation

Mingming Cao <mmc@linux.ibm.com>
    ibmveth: check headers in the RX large send and checksum helpers

Mingming Cao <mmc@linux.ibm.com>
    ibmveth: wait for the RX poll to return before freeing the RX queue

Mingming Cao <mmc@linux.ibm.com>
    ibmveth: wait for in-flight transmits in ibmveth_close()

Mingming Cao <mmc@linux.ibm.com>
    ibmveth: return the error when set_channels cannot add TX queues

Mingming Cao <mmc@linux.ibm.com>
    ibmveth: release the pool kobjects when probe fails

Mingming Cao <mmc@linux.ibm.com>
    ibmveth: step past bad RX correlators instead of spinning or oopsing

Mingming Cao <mmc@linux.ibm.com>
    ibmveth: disable the reset work before unregister in remove

Mingming Cao <mmc@linux.ibm.com>
    ibmveth: do not close twice after a failed reopen

Mingming Cao <mmc@linux.ibm.com>
    ibmveth: fix netpoll races with RX replenish

Ovidiu Panait <ovidiu.panait.rb@renesas.com>
    net: stmmac: Track the TX DMA threshold per queue

Jiale Yao <yaojiale02@163.com>
    team: reject CAN, IEEE 802.15.4 and 6LoWPAN devices in team_port_add

Ido Schimmel <idosch@nvidia.com>
    ipv6: Hold RCU when emitting route hardware flags notification

Eric Dumazet <edumazet@kernel.org>
    ip6mr: clear skb->cb[] in reg_vif_xmit()

Dimitri Daskalakis <daskald@meta.com>
    net/mlx5e: Update netdev features only after a successful ringparam set

Rosen Penev <rosenp@gmail.com>
    net: phy: marvell: keep WOL_EIE across interrupt reconfiguration

Myeonghun Pak <mhun512@gmail.com>
    platform/x86: gpd pocket fan: Cancel work before releasing GPIOs

Eric Dumazet <edumazet@kernel.org>
    ipv6: account route exceptions to the netns of their dst

Sagi Maimon <maimon.sagi@gmail.com>
    net: axienet: release every RX buffer in axienet_dma_bd_release()

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    PCI: qcom: Ignore -ENODEV after Root Port reset

Ido Schimmel <idosch@nvidia.com>
    bridge: mcast: Delete empty MDB entry when port group creation fails

Florian Fainelli <florian.fainelli@broadcom.com>
    net: bcmasp: fix network filter lookup and wake filter pair allocation

Florian Fainelli <florian.fainelli@broadcom.com>
    net: bcmasp: account for offload header in TX short packet padding

Florian Fainelli <florian.fainelli@broadcom.com>
    net: bcmasp: fix OF node reference leak for phy_dn

Florian Fainelli <florian.fainelli@broadcom.com>
    net: bcmasp: validate minimum RX packet size in bcmasp_rx_poll()

Florian Fainelli <florian.fainelli@broadcom.com>
    net: bcmasp: unmap previous DMA mappings on TX map failure

Florian Fainelli <florian.fainelli@broadcom.com>
    net: bcmasp: fix mib counters struct alignment with ethtool stats

Myeonghun Pak <mhun512@gmail.com>
    net: hix5hd2: serialize timeout recovery with interface teardown

Karl Mehltretter <kmehltretter@gmail.com>
    net: phy: realtek: restore RTL8211F RGMII delays on resume

Anirudh Virdi <avirdi@redhat.com>
    net: qede: initialize extack in qede_flow_spec_to_rule()

Binbin Deng <18983559317@163.com>
    octeontx2: Fix use-after-free of qos node in delete path

Rishikesh Jethwani <rjethwani@purestorage.com>
    tls: device: protect async RX resync state during device-down

Eric Dumazet <edumazet@kernel.org>
    tcp: tcp_metrics: use the socket netns, not the dst device netns

Fernando Fernandez Mancera <fmancera@suse.de>
    net: openvswitch: drop IP fragments on SCTP set action

Fernando Fernandez Mancera <fmancera@suse.de>
    net: openvswitch: skip IPv4 later fragments on TCP/UDP set actions

Andrea Righi <arighi@nvidia.com>
    sched_ext: Use irq_work for deferred actions with proxy execution

Linus Torvalds <torvalds@linux-foundation.org>
    vhost: vringh: use get_user()/put_user() for IOTLB 16-bit accesses

Rob Herring (Arm) <robh@kernel.org>
    dt-bindings: clock: mediatek: Add MT8516 fallbacks

HyeongJun An <sammiee5311@gmail.com>
    ASoC: cs42l56: Remove the ADC Mute Switch control

Hui Su <sh_def@163.com>
    sched/mmcid: Fix affinity-triggered switch back to per-task mode

Liang Hao <haohlliang@gmail.com>
    timers: Clear pending_map on CPU hotplug

Carolina Jubran <cjubran@nvidia.com>
    net/mlx5e: Fix NULL deref in PTP TX timestamp recovery warn

Carolina Jubran <cjubran@nvidia.com>
    net/mlx5: DPLL, fix fractional frequency offset scaling

Karl Mehltretter <kmehltretter@gmail.com>
    rtc: class: Make the time32 hctosys limit configurable

Baek Kyu, Kim <pocj8ur4in@gmail.com>
    rtc: mpfs: Fix alarm register word order

James Hilliard <james.hilliard1@gmail.com>
    net: stmmac: avoid duplicate XSK TX completions

Alexandre Cassen <acassen@corp.free.fr>
    net/mlx5: HWS, fix modify header pool creation race

Alexandre Cassen <acassen@corp.free.fr>
    net/mlx5: HWS, fix reformat pool creation race

James Hilliard <james.hilliard1@gmail.com>
    xsk: freeze deferred pool teardown without blocking unregister

Sunny Tiwari <sunnytiwari@google.com>
    RDMA/irdma: Bound in-flight CQP ops across deferred completions

Yongzhao Chen <yongzhao.derek@gmail.com>
    net: phy: qca83xx: read resolved QCA8337 link status

Namjae Jeon <linkinjeon@kernel.org>
    ntfs: fix NULL dereference on index allocation open failure

Zhan Xusheng <zhanxusheng1024@gmail.com>
    ntfs: widen the sub-block offsets in ntfs_decompress()

Zhan Xusheng <zhanxusheng@xiaomi.com>
    ntfs: reject direct I/O reads of encrypted files

Zhan Xusheng <zhanxusheng@xiaomi.com>
    ntfs: do not read ahead encrypted files

Namjae Jeon <linkinjeon@kernel.org>
    ntfs: propagate EA truncate errors

Namjae Jeon <linkinjeon@kernel.org>
    ntfs: clear stale pagecache on initialized-size extension

Namjae Jeon <linkinjeon@kernel.org>
    ntfs: sync attribute inode size after resize

Hyunchul Lee <hyc.lee@gmail.com>
    ntfs: only require compressed size on first extent

Jiale Yao <yaojiale02@163.com>
    ntfs: drain in-flight DIO before buffered write fallback

Matthias Goergens <matthias.goergens@gmail.com>
    ntfs: do not give a contiguous cluster allocation a second run

Matthias Goergens <matthias.goergens@gmail.com>
    ntfs: do not refuse fallocate() when the MFT zone is empty

Matthias Goergens <matthias.goergens@gmail.com>
    ntfs: restart the zone search when the allocation hint fails

Matthias Goergens <matthias.goergens@gmail.com>
    ntfs: set the attribute list size before reserving space for it

Matthias Goergens <matthias.goergens@gmail.com>
    ntfs: reject non-resident attributes whose sizes exceed their allocation

Hyunchul Lee <hyc.lee@gmail.com>
    ntfs: accept standard sparse compression unit

Hyunchul Lee <hyc.lee@gmail.com>
    ntfs: avoid misclassifying directory reparse points

Xuewen Wang <wangxuewen@kylinos.cn>
    ntfs: account for direct MFT bitmap cluster allocation

Xuewen Wang <wangxuewen@kylinos.cn>
    ntfs: wait for the bitmap scan before MFT bitmap extension

pwngets <2605452642@qq.com>
    ntfs: fix runlist marker allocation and count

Baolin Liu <liubaolin@kylinos.cn>
    ntfs: fix error handling in ntfs_extent_inode_open and propagate errors

Baolin Liu <liubaolin@kylinos.cn>
    ntfs: propagate the ntfs_attr_iget() error in update_reparse_data()

Baolin Liu <liubaolin@kylinos.cn>
    ntfs: propagate the map_mft_record() error in ntfs_attrlist_entry_add()

Baolin Liu <liubaolin@kylinos.cn>
    ntfs: preserve the truncate error in ntfs_enlarge_attribute()

Baolin Liu <liubaolin@kylinos.cn>
    ntfs: return -EINVAL from ntfs_collate_ntofs_ulongs() on bad length

Xuewen Wang <wangxuewen@kylinos.cn>
    ntfs: preserve the 64-bit FITRIM minimum length

Hyunchul Lee <hyc.lee@gmail.com>
    ntfs: require page-aligned full-page attribute writes

Hyunchul Lee <hyc.lee@gmail.com>
    ntfs: fix FITRIM bitmap indexing for large pages

Marek Wesołowski <marek@wesolowski.eu.org>
    ntfs: fix directory lookup on large-page systems

Ivan Vecera <ivecera@redhat.com>
    selftests: tc-testing: use $IP in hfsc test 8c39 setup

Matthieu Baerts (NGI0) <matttbe@kernel.org>
    mptcp: options: dss: avoid printing uninit csum

Matthieu Baerts (NGI0) <matttbe@kernel.org>
    mptcp: options: mpc: avoid printing uninit data

Pengfei Zhang <zhangfeionline@gmail.com>
    net: stmmac: xgmac: do not treat TBU as a TX event

Serhat Kumral <serhatkumral1@gmail.com>
    RDMA/mlx5: Validate priority in STEERING_ANCHOR_CREATE handler

Li RongQing <lirongqing@baidu.com>
    RDMA/mlx5: Fix CQ resize destination index mask

Jamal Hadi Salim <jhs@mojatatu.com>
    net/sched: act_api: reject duplicate actions in a batch

Fan Wu <wufan@kernel.org>
    ipe: fix enforcement audit

Manuel Ebner <manuelebner@mailbox.org>
    ipe: fix invalid sgid value in audit event documentation

Emil Tsalapatis <emil@etsalapatis.com>
    bpf: Fix arena race between page free and alloc leading to incoherency

Emil Tsalapatis <emil@etsalapatis.com>
    bpf: Revalidate faulted arena pages before installing user mappings

Sasha Levin <sashal@kernel.org>
    bpf: Fix ksock build with BPF_LSM=y and SECURITY_NETWORK=n

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Properly disabling partition when partition state switching fails

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Do housekeeping check before converting invalid partition to valid

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Consider all the exclusive CPUs when doing housekeeping check

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Consolidate isolated_cpus_can_update() into prstate_housekeeping_conflict()

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Fix a missing isolated_cpus update in update_cpumasks_hier()

Gregory Price (Meta) <gourry@gourry.net>
    cgroup/cpuset: use mems_allowed_seq when checking a policy nodemask

Kumar Kartikeya Dwivedi <memxor@gmail.com>
    libbpf: Keep the fd_array fill index out of bpf_program__clone()

Li RongQing <lirongqing@baidu.com>
    block, bfq: initialize active lists for all actuators

Cen Zhang <zzzccc427@gmail.com>
    ALSA: aloop: Keep the timer source alive until card release

Cen Zhang <zzzccc427@gmail.com>
    ALSA: aloop: Keep shared timer callbacks alive through close

Marek Vasut <marek.vasut+renesas@mailbox.org>
    PCI: rcar-gen4: Add missing PM ops

Jinpyo Lee <bint4b13@gmail.com>
    nfs/localio: pin UUIDs during global invalidation

Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
    pNFS/flexfiles: make pg_init retry loops killable

Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
    nfsv4/pnfs: use the MDS authflavor for data server connections

Wenjie Qi <qwjhust@gmail.com>
    f2fs: refresh pinned allocation boundary after resize

Cen Zhang <zzzccc427@gmail.com>
    ALSA: pcm: Protect channel-map reads against runtime detach

Cen Zhang <zzzccc427@gmail.com>
    ALSA: jack: Pin the module while debugfs files are open

Takashi Iwai <tiwai@suse.de>
    ALSA: usb-audio: Avoid applying boot quirk for Behringer UMC204HD

Cen Zhang <zzzccc427@gmail.com>
    ALSA: pcm: Remove channel-map controls before freeing substreams

Cen Zhang <zzzccc427@gmail.com>
    ALSA: pcmtest: Pin the module while pattern files are open

Thomas Weißschuh <thomas.weissschuh@linutronix.de>
    nios2: ksyms: Declare __mulsi3 export

Len Brown <len.brown@intel.com>
    tools/power turbostat: pmt: Improve sscanf() hygiene

Miklos Szeredi <mszeredi@redhat.com>
    dax: add fsdev_dax_from_file()

Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
    netfilter: flowtable: reset transport header after nf_flow_encap_pop()

Sung Byeongchan <tjdqudcks0424@naver.com>
    netfilter: xt_dccp: handle reserved options as single-byte

Pablo Neira Ayuso <pablo@netfilter.org>
    netfilter: nft_set_rbtree: narrow down range completion to anonymous sets

Shuangfeng He <huangya90@gmail.com>
    netfilter: flowtable: use the vlan id, not the full tci, in the tuple key

Julian Anastasov <ja@ssi.bg>
    ipvs: fix more races around the overload flag

Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
    netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset

Karl Mehltretter <kmehltretter@gmail.com>
    mm/slub: initialize the free pointer of the bootstrap kmem_cache_node

Alok Tiwari <alok.a.tiwari@oracle.com>
    octeontx2-af: Fix CQ enable state tracking after AQ writes

Cen Zhang <zzzccc427@gmail.com>
    ALSA: oss: Keep emulation modules loaded until object teardown

Cen Zhang <zzzccc427@gmail.com>
    ALSA: pcm: Protect the unregister notifier traversal

Adrian Ambrozewicz <aambrozewicz@nvidia.com>
    gpiolib: clear the event clock flags when a line is released

Kent Gibson <warthog618@gmail.com>
    gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Run the cpumask map insert tests only for the test task

Masoud Aghasi <maghasi@disroot.org>
    bpf: Fix incorrect handling of user flags by percpu hash map updates

Masoud Aghasi <maghasi@disroot.org>
    bpf: Fix incorrect handling of user flags in bpf_percpu_array_update

KaFai Wan <kafai.wan@linux.dev>
    selftests/bpf: Use _exit() in uprobe_multi_test clone-ed child

KaFai Wan <kafai.wan@linux.dev>
    selftests/bpf: Fix stack arg pruning test JOIN log expectation

Matt Turner <mattst88@gmail.com>
    alpha: fix stale user_stack_pointer()

Troy Mitchell <troy.mitchell@linux.dev>
    dt-bindings: vendor-prefixes: Add Sensylink

Woojin Ji <random6.xyz@gmail.com>
    bpf: Zero-extend the index in inlined bpf_get_func_arg()

Sasha Levin <sashal@kernel.org>
    locking/atomic: arc, hexagon, openrisc: Define arch_cmpxchg_local()

Serhat Kumral <serhatkumral1@gmail.com>
    RDMA/usnic: Bound buffer size to sizeof(buf) in flowinfo_read()

Zhiwei Zhang <202275009@qq.com>
    RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()

HyeongJun An <sammiee5311@gmail.com>
    ASoC: tlv320aic32x4: Fix definition of TAS2505 HP Driver Gain Volume control

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: sta350: Fix definition of limiter threshold controls

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: sta32x: Fix definition of limiter threshold controls

Serhat Kumral <serhatkumral1@gmail.com>
    RDMA/srp: Avoid reading uninitialized has_port on srp_parse_in() failure

Leon Romanovsky <leon@kernel.org>
    RDMA/core: Reject LAG selection when source MAC lookup fails

Leon Romanovsky <leon@kernel.org>
    RDMA/core: Free unpublished port statistics after initial-read failure

Leon Romanovsky <leon@kernel.org>
    RDMA/core: Preserve the selected source GID on failed AH modification

Igor Velkov <iav@iav.lv>
    power: supply: gpio-charger: Report discharging without input power

Aleksandr Nogikh <nogikh@google.com>
    usb: gadget: dummy_hcd: prevent unbind via sysfs

Igor Skalkin <igor.skalkin@oss.qualcomm.com>
    usb: gadget: dummy_hcd: fix SuperSpeed ep0 maxpacket

Alexei Starovoitov <ast@kernel.org>
    bpf: Use memmove() to store bytes in an xdp_buff

Josef Bacik <josef@toxicpanda.com>
    bpf: Use memmove() to store bytes in an skb

Josef Bacik <josef@toxicpanda.com>
    bpf: Follow the head if an skb is written from a slice

Josef Bacik <josef@toxicpanda.com>
    bpf: Don't take a dynptr argument for a local dynptr

Josef Bacik <josef@toxicpanda.com>
    bpf: Let bpf_dynptr_write() mark a global function

Josef Bacik <josef@toxicpanda.com>
    bpf, cpumap: Hold the device of frames in the queue

Josef Bacik <josef@toxicpanda.com>
    bpf: Use the socket of a sk_lookup test run under RCU

Josef Bacik <josef@toxicpanda.com>
    bpf: Keep the symbols of a program until it has ended

Josef Bacik <josef@toxicpanda.com>
    bpf: Keep values of a dead owner for sleepable programs

Alexei Starovoitov <ast@kernel.org>
    bpf: Don't let an extension reach further into the context than its target

Alexei Starovoitov <ast@kernel.org>
    bpf: Don't take a program with a target program for an iterator

Florian Westphal <fw@strlen.de>
    netfilter: nft_compat: restrict raw table targets/matches

Florian Westphal <fw@strlen.de>
    selftests: netfilter: fix return value in zone subtest

Florian Westphal <fw@strlen.de>
    netfilter: conntrack: fix unlikely UaF in gc worker

Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
    power: supply: qcom_battmgr: report full batteries

Josef Bacik <josef@toxicpanda.com>
    bpf: Free what map_free() unlinks for sleepable readers

Alexei Starovoitov <ast@kernel.org>
    bpf: Don't take an extension for a writable raw tracepoint program

Josef Bacik <josef@toxicpanda.com>
    bpf: Assume no bounds for a writable tp with tail calls

Josef Bacik <josef@toxicpanda.com>
    bpf: Don't take an extension for an iterator program

Josef Bacik <josef@toxicpanda.com>
    bpf: Assume no bounds for buffers behind a tail call

Josef Bacik <josef@toxicpanda.com>
    bpf: Check the maps that sleepable callbacks use

Josef Bacik <josef@toxicpanda.com>
    bpf: Count sleepable callbacks as sleepable map users

Josef Bacik <josef@toxicpanda.com>
    bpf: Keep a program until its bpf_wq callback has ended

Josef Bacik <josef@toxicpanda.com>
    bpf: Don't bind a program to a netdev that goes away

Josef Bacik <josef@toxicpanda.com>
    bpf: Fix stale offload->prog pointer after realloc

Josef Bacik <josef@toxicpanda.com>
    bpf: Bound the nesting that the BTF show code follows

Josef Bacik <josef@toxicpanda.com>
    bpf: Hold the socket in the sk_storage map iterator

Alexei Starovoitov <ast@kernel.org>
    bpf: Link the first element after its storage is published

Josef Bacik <josef@toxicpanda.com>
    bpf: Fix NULL deref in the sk_storage map iterator

Alexei Starovoitov <ast@kernel.org>
    bpf: Clear sk_refcnt of a clone before its storage is linked

Josef Bacik <josef@toxicpanda.com>
    bpf: Update the SRH state if End.B6 fails late

Josef Bacik <josef@toxicpanda.com>
    bpf: Pull the inner header for End.DT6 in End.BPF

Josef Bacik <josef@toxicpanda.com>
    bpf: Validate the SRH which End.DT6 uncovers in End.BPF

Josef Bacik <josef@toxicpanda.com>
    bpf: Don't saturate owner_refcnt on the last unpin

Josef Bacik <josef@toxicpanda.com>
    bpf: Read the probe of a perf event under event_mutex

Josef Bacik <josef@toxicpanda.com>
    bpf: Don't let bpf_skb_adjust_room() use up the MSS

Josef Bacik <josef@toxicpanda.com>
    bpf: Look at all 64 bits of a BPF_JSET mask on 32-bit

Josef Bacik <josef@toxicpanda.com>
    bpf: Forbid sleeping in bpf_find_vma() callbacks

Josef Bacik <josef@toxicpanda.com>
    bpf: Reject sleepable programs for task_vma iterator

Josef Bacik <josef@toxicpanda.com>
    bpf: Don't hand out a linked element as extra element

Josef Bacik <josef@toxicpanda.com>
    bpf: Don't leak the inode when token creation fails

Josef Bacik <josef@toxicpanda.com>
    bpf: Forbid sleeping in hash map for_each callbacks

Kumar Kartikeya Dwivedi <memxor@gmail.com>
    bpf: Report non-sleepable kfunc programs accurately

Josef Bacik <josef@toxicpanda.com>
    bpf: Use the frame mem type in devmap egress XDP

Joonhoe Kim <26rote@gmail.com>
    power: supply: qcom_battmgr: report the USB type from USB_ADAP_TYPE

Jiayuan Chen <jiayuan.chen@linux.dev>
    bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields

Tejun Heo <tj@kernel.org>
    sched_ext: Fix a bypassed task stalling on a cpu its scheduler has no caps on

Tejun Heo <tj@kernel.org>
    sched_ext: Fix the running task keeping its protection into bypass

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf evsel: Mark the event as supported when retrying an open

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf test attr: Relax group checking for ungrouped expectations

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf test attr: Fix default stat metrics expectations

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf test attr: Fix legacy event encodings in group tests

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf test attr: Fix record dwarf sample_type expectation

Koichiro Den <den@valinux.co.jp>
    PCI: endpoint: pci-epf-vntb: Honor MSI-X selection

Koichiro Den <den@valinux.co.jp>
    PCI: endpoint: pci-epf-vntb: Use a local epf pointer in interrupt setup

Cen Zhang <zzzccc427@gmail.com>
    ALSA: jack: Protect the index scan against control removal

Daniel Borkmann <daniel@iogearbox.net>
    bpf: Don't echo user-supplied map info fields back to userspace

Brad Fitzpatrick <bradfitz@tailscale.com>
    gre: keep the UDP tunnel GSO type when completing GRO

Vincent Jardin <vjardin@free.fr>
    ptp: qoriq: fix support for PTP_EXTTS_REQUEST2 ioctl

Vincent Jardin <vjardin@free.fr>
    net: enetc: fix support for PTP_EXTTS_REQUEST2 ioctl

Vincent Jardin <vjardin@free.fr>
    dpaa2-ptp: fix support for PTP_EXTTS_REQUEST2 ioctl

Ivan Vecera <ivecera@redhat.com>
    dpll: zl3073x: notify sibling pin when shared output config changes

Ivan Vecera <ivecera@redhat.com>
    dpll: zl3073x: make embedded sync follow the output carrier frequency

Ivan Vecera <ivecera@redhat.com>
    dpll: zl3073x: reject output frequencies with too small divisor

Ivan Vecera <ivecera@redhat.com>
    dpll: zl3073x: reject inexact frequencies for N-divided outputs

Ivan Vecera <ivecera@redhat.com>
    dpll: zl3073x: do not offer 0 Hz as a supported pin frequency

Joas Antonio dos Santos <joasantonio108@gmail.com>
    calipso: update payload_len when removing the CALIPSO option

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: sta350: Fix definition of Ch2 and Ch3 Volume Bypass controls

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: sta32x: Fix definition of Ch2 and Ch3 Volume Bypass controls

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: tlv320adc3xxx: Fix definition of AGC Target Level control

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: da732x: Fix definition of ADC2 EQ Overall Volume control

Yonghong Song <yonghong.song@linux.dev>
    bpf, x86: Pass a trampoline's stack arguments by the calling convention

Yuan Chen <chenyuan@kylinos.cn>
    bpf: Claim the per-CPU send_signal irq_work before filling it

Sasha Levin <sashal@kernel.org>
    ARC: Strip libgcc debug information when generating BTF

Tal Zussman <tz2294@columbia.edu>
    btrfs: update the inode item when removing a free space inode

Tal Zussman <tz2294@columbia.edu>
    btrfs: drop the extent maps of the written part of a failed ordered extent

Piotr Gliźniewicz <p.glizniewicz@gmail.com>
    ALSA: 6fire: take stream_mutex in the Digital Thru control

Myeonghun Pak <mhun512@gmail.com>
    platform: cznic: turris-omnia-mcu: stop button emulation producers

Ömer Mete Kaya <omermetekaya0@gmail.com>
    usbnet: fix smp_processor_id() use in preemptible context

Yongzhao Chen <yongzhao.derek@gmail.com>
    net: phy: qcom: at803x: Apply IPQ5018 analog settings at probe

Fabrice Derepas <fabrice.derepas@canonical.com>
    ima: reject a kexec buffer whose declared size exceeds the buffer

Qiliang Yuan <odys.yuan@gmail.com>
    blk-mq: share one tags_srcu instance across all tag sets

Tao Cui <cuitao@kylinos.cn>
    blk-iocost: account zone append completions in latency stats

Tao Cui <cuitao@kylinos.cn>
    blk-iocost: charge zone appends as writes

Viktor Menshin <ripeeerr@gmail.com>
    ALSA: hda/realtek: Fix hiss/crackle on Lenovo Xiaoxin 14 GT (17aa:3912)

Val Packett <val@packett.cool>
    power: sequencing: pcie-m2: Add Foxconn WCN7850 subsystem PCI ID

Colin Ian King <colin.i.king@gmail.com>
    selftests/bpf: Fix spelling mistakes in descr literal strings

Yuan Chen <chenyuan@kylinos.cn>
    bpftool: Fix inverted tracefs validation when scanning /proc/mounts

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Expect at least one kprobe miss in missed/perf_kprobe

Ju Nan <junan76@163.com>
    pinctrl: stm32: Fix the unit of the hwspinlock timeout

Boris Brezillon <boris.brezillon@collabora.com>
    drm/panthor: Fully disable the AS even if it's going to be re-assigned

Boris Brezillon <boris.brezillon@collabora.com>
    drm/panthor: Don't invalidate OTHER caches

Adam Azuddin <azuddinadam@gmail.com>
    drm/appletbdrm: Fix incorrect error message on encoder attach failure

Hui Peng <benquike@gmail.com>
    fuse: validate folio state before pipe_buf_try_steal() in fuse_try_move_folio()

Miklos Szeredi <mszeredi@redhat.com>
    fuse: fix NULL pointer dereference in fuse_request_find

Matheus Alves de Almeida <matheus.aalmeida@inf.ufrgs.br>
    HID: wacom: fix wacom_intuos_irq NULL pen_input deref

Dmitriy Geels <dmitriy.geels@gmail.com>
    HID: logitech-hidpp: cancel reset_hi_res_work on probe failure

Nehuen Lian Bova <nehuenlian.kernel@gmail.com>
    HID: magicmouse: fix null pointer dereference in magicmouse_event()

Denis Benato <denis.benato@linux.dev>
    HID: asus: document and harden the worker teardown

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Record only the test ICMP echo in tc8 of tc_netkit_scrub

Cen Zhang <zzzccc427@gmail.com>
    ALSA: vmaster: Protect follower lookup and setup

Vasilij Markin <vasilij.kernel@tototo.si>
    drm/appletbdrm: Add suspend and resume support

Jemmy Wong <jemmywong512@gmail.com>
    sched/cache: Avoid publishing partial LLC utilization

Stian Halseth <stian@itx.no>
    sched/cputime: Don't account idle time twice after dyntick-idle

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Unmount the bpffs that cgroup_hierarchical_stats mounted

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Keep the bpffs of cgroup_hierarchical_stats private

Eric Dumazet <edumazet@kernel.org>
    tcp: use the echoed source route in cookie_v4_check()

Theodor Arsenij Larionov Trichkine <theodorlarionov@gmail.com>
    net: use the full socket in sk_mc_loop()

Eric Dumazet <edumazet@kernel.org>
    ipv4: use RCU protection in inet_netconf_get_devconf()

George Melikov <mail@gmelikov.ru>
    bnx2x: fix header length calculation for encapsulated TSO

Muchun Song <muchun.song@linux.dev>
    dax/bus: Return errors for invalid mapping targets

Stefano Munari <stefanomunari.sm@gmail.com>
    net: usb: lan78xx: reject invalid EEPROM write requests

Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
    macsec: prevent AES-GCM nonce reuse after packet number wrap

Yun Lu <luyun@kylinos.cn>
    bpf: Prevent task work context reuse while irq_work is busy

Yun Lu <luyun@kylinos.cn>
    bpf: Fix NULL task dereference in task work cancellation

KaFai Wan <kafai.wan@linux.dev>
    selftests/bpf: Skip expected_msgs subtests when stdout is not saved

KaFai Wan <kafai.wan@linux.dev>
    selftests/bpf: Fix prog_tests framework subtest count checks

Li RongQing <lirongqing@baidu.com>
    ublk: use global index for reported zones

Ming Lei <tom.leiming@gmail.com>
    ublk: allow a NULL io->cmd in the cancel callback

Donggeun Yoo <donggeunyoo.kernel@gmail.com>
    tracing: Print a signed histogram key as signed

Atharva Vartak <atharva.a.vartak@gmail.com>
    net/smc: hold a reference on net_device returned by pnet_find_base_ndev()

Jianan Huang <jnhuang95@gmail.com>
    f2fs: quota: fix quota flush failure during filesystem freeze

pengdonglin <pengdonglin@xiaomi.com>
    tracing: Avoid BTF lookup in atomic context

Donggeun Yoo <donggeunyoo.kernel@gmail.com>
    tracing: Clamp the printed end of a histogram bucket at U64_MAX

Donggeun Yoo <donggeunyoo.kernel@gmail.com>
    tracing: Only report the stacktrace modifier on a real field

Donggeun Yoo <donggeunyoo.kernel@gmail.com>
    tracing: Print the bucket size as unsigned

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Fix ETDM probe error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Fix HDMI TX startup error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Fix ETDM startup error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Fix ETDM MCLK error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Propagate IRQ lookup errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Fix runtime resume error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Check paired MEMIF clock enable in FE trigger

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Fix FE startup error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Fix paired memif clock error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Fix main clock error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Fix timing system clock error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Fix register access clock error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8195: Fix tuner clock error handling

Amadeusz Sławiński <amade@asmblr.net>
    ASoC: soc-component: Fix return type of snd_soc_pcm_component_pointer()

Amadeusz Sławiński <amade@asmblr.net>
    ASoC: soc-ac97: Fix error handling in snd_soc_new_ac97_component()

Amadeusz Sławiński <amade@asmblr.net>
    ASoC: soc-card-test: Check return value of kunit_device_register()

Amadeusz Sławiński <amade@asmblr.net>
    ASoC: soc-topology-test: Check return value of kunit_device_register()

Amadeusz Sławiński <amade@asmblr.net>
    ASoC: ops: Fix return value in snd_soc_limit_volume()

Amadeusz Sławiński <amade@asmblr.net>
    ASoC: soc-link: Correct stream stop operations in snd_soc_link_trigger

Abraham Zukor <abe@maticrobots.com>
    spi: tegra114: initialize native chip selects inactive

Haotian Zhang <vulab@iscas.ac.cn>
    ASoC: rockchip: fix device node reference leak in rk3288_hdmi_analog

Paolo Bertinetti <paolobertinetti200f4@proton.me>
    ublk: hold RCU read lock in ublk_try_buf_match()

Sasha Levin <sashal@kernel.org>
    selftests: keep the build status from wrapping to success

Michael Auer <mick@yoxcu.de>
    ASoC: qcom: sdm845: Disable the quaternary MI2S bit clock on shutdown

Cezary Rojewski <cezary.rojewski@intel.com>
    ASoC: Intel: avs: Prevent module info underflow

Cezary Rojewski <cezary.rojewski@intel.com>
    ASoC: Intel: avs: Unprepare a stream when recovery occurs

Jacob Moroni <jmoroni@google.com>
    RDMA/irdma: Fix FRWR IRDMAQPSQ_PBLADDR field population

Serhat Kumral <serhatkumral1@gmail.com>
    IB/rdmavt: Fix error unwind path for qp_priv_init() in rvt_create_qp()

Sasha Levin <sashal@kernel.org>
    kselftest/arm64: signal: copy each test binary only once

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Accept unnamed dma-bufs in the dmabuf_iter default test

Yun Lu <luyun@kylinos.cn>
    selftests/bpf: Fix map fd leak in no-BTF wq test

Takashi Iwai <tiwai@suse.de>
    ALSA: core: Serialize snd_refcount put and sync

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Create the vxlan devices of test_tunnel with their MAC

Praveen Kumar Kannoju <praveen.kannoju@oracle.com>
    IB/mlx4: Avoid requeueing executing CM timeout work

Zhan Xusheng <zhanxusheng1024@gmail.com>
    vdso/vsyscall: Keep the CLOCK_AUX base scaled

Zhan Xusheng <zhanxusheng1024@gmail.com>
    vdso/math64: Add and use __iter_div64_u64_rem()

Koichiro Den <den@valinux.co.jp>
    PCI: endpoint: pci-epf-vntb: Track link state from both sides

Jaewon Jung <jaewon8868@gmail.com>
    selftests/ftrace: Avoid unlink error on first run

Myeonghun Pak <mhun512@gmail.com>
    ASoC: rt5645: Shut down the button timer on removal

Zhang Yi <yi.zhang@huawei.com>
    ext4: fix orig_mlen initialization in ext4_map_blocks()

Akash Goel <akash.goel@arm.com>
    drm/panthor: Fix handling of NO_MMAP BOs

Youngsung Ahn <ays511.kr@gmail.com>
    RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]

Honggang LI <honggangli@163.com>
    RDMA/rxe: Fix out-of-range unsigned-to-signed conversion for RDMA message in 2GiB size

xiongweimin <xiongweimin@kylinos.cn>
    RDMA/rxe: Hold netdev reference for transmit skbs

Youngsung Ahn <ays511.kr@gmail.com>
    RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]

Youngsung Ahn <ays511.kr@gmail.com>
    RDMA/rxe: bound the ODP page index against the umem in rxe_check_pagefault()

Youngsung Ahn <ays511.kr@gmail.com>
    RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()

Youngsung Ahn <ays511.kr@gmail.com>
    RDMA/rxe: refuse to destroy a QP with type 2 MWs still bound

Sahaj Chaudhari <sahaj123.sc@gmail.com>
    spi: omap2-mcspi: handle DMA setup failures

Julian Sun <sunjunchao@bytedance.com>
    block: take the inode lock for buffered write fallback

Julian Sun <sunjunchao@bytedance.com>
    block: reject NOWAIT buffered write fallback

Ard Biesheuvel <ardb@kernel.org>
    efi/runtime-wrappers: Don't park the worker after a recovered firmware fault

zhoumin <teczm@foxmail.com>
    ata: ahci: preserve preset port masks

Takashi Iwai <tiwai@suse.de>
    ALSA: pcm: Add refcount for races between drain and unlink

Benoît Monin <benoit.monin@bootlin.com>
    irqchip/mips-gic: Transfer interrupt mask state across clusters

Benoît Monin <benoit.monin@bootlin.com>
    irqchip/mips-gic: Fix recursive acquisition of gic_lock in gic_set_affinity()

Benoît Monin <benoit.monin@bootlin.com>
    irqchip/mips-gic: Fix unbalanced cm_core_lock in for_each_online_cpu_gic()

Zhu Ling <zhuling2709@phytium.com.cn>
    irqchip/gic: Fix UBSAN shift-out-of-bounds in GIC helpers

Fuad Tabba <fuad.tabba@linux.dev>
    irqchip/gic-v3: Don't register a redistributor that was never counted

Fuad Tabba <fuad.tabba@linux.dev>
    irqchip/gic-v3-its: Don't free the tables of an enabled ITS

Fuad Tabba <fuad.tabba@linux.dev>
    irqchip/gic-v3-its: Don't free a vPE table shared with another ITS

Pengpeng Hou <hppiscas@163.com>
    irqchip/riscv-imsic: Reject overlapping group index fields

Pengpeng Hou <hppiscas@163.com>
    irqchip/sifive-plic: Avoid signed shift in interrupt enable mask

Pengpeng Hou <hppiscas@163.com>
    irqchip/mst-intc: Validate the DT interrupt range

Arnd Bergmann <arnd@arndb.de>
    irqchip/qcom-pdc: Fix linking against QCOM_SCM firmware

Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
    irqchip/qcom: Enable compile testing for QCOM_PDC and QCOM_MPM

Fuad Tabba <fuad.tabba@linux.dev>
    irqchip/gic-v3-its: Clear vpt_page after freeing the pending table

Fuad Tabba <fuad.tabba@linux.dev>
    irqchip/gic-v3: Release the partition node in gic_irq_get_fwspec_info()

David Howells <dhowells@redhat.com>
    rxrpc: Fix sendmsg length

David Howells <dhowells@redhat.com>
    rxrpc: Fix aborting in rxperf test server

David Howells <dhowells@redhat.com>
    rxrpc: Fix rxperf test rxgk key kvno to be 0

David Howells <dhowells@redhat.com>
    rxrpc: Revert "rxrpc: rxperf: Fix missing decoding of terminal magic cookie"

Carolina Jubran <cjubran@nvidia.com>
    IB/IPoIB: Cancel normal flush work on device stop

Jiayuan Chen <jiayuan.chen@linux.dev>
    veth: clear rx queue hint in veth_xmit

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Expect at least one tp_recursion miss in missed

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Report a failure to register the session key in test_progs

Qiliang Yuan <odys.yuan@gmail.com>
    selftests/bpf: Use its own netns in flow_dissector_skb_less_direct_attach

Niklas Cassel <cassel@kernel.org>
    ata: libata-core: Fix NO_FUA quirks shadowed by earlier quirk entries

Sagi Maimon <maimon.sagi@gmail.com>
    net: axienet: free outstanding TX buffers in axienet_dma_bd_release()

Kyrylo Biryuk <illofspeed@gmail.com>
    ata: libahci: re-enable FBS after error handling on a port multiplier

Miguel Ojeda <ojeda@kernel.org>
    rust: zerocopy: fix link to upstream `README.md`

Sasha Levin <sashal@kernel.org>
    selftests/exec: report the skipped binfmt_misc_bpf test on stderr

Long Zhao <longzhao@ambarella.com>
    dt-bindings: vendor-prefixes: add Ambarella

Wentao Liang <vulab@iscas.ac.cn>
    spmi: mtk-pmif: Fix clock reference leak in mtk_spmi_bus_probe()

AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    spmi: mtk-pmif: Add workaround for FSM lockup/error in read operation

Fenglin Wu <fenglin.wu@oss.qualcomm.com>
    spmi: pmic-arb: return 0 in spmi_pmic_arb_register_buses() on success

Xingui Yang <yangxingui@huawei.com>
    scsi: hisi_sas: Fix spinup failure for SAS SSP devices in Active_Wait state

Xingui Yang <yangxingui@huawei.com>
    scsi: hisi_sas: Fix incorrect delay values from magic-number cleanup

Xingui Yang <yangxingui@huawei.com>
    scsi: libsas: Fix out-of-bounds memcpy() in sas_ssp_task_response()

Donggeun Yoo <donggeunyoo.kernel@gmail.com>
    iommufd: Keep reserved IOVA ranges when a replace within one IOAS fails

Petr Pavlu <petr.pavlu@suse.com>
    resolve_btfids: Fix the --fatal_warnings exit status

Sasha Levin <sashal@kernel.org>
    selftests/nolibc: use the configured kernel header directory

Semih Baskan <strst.gs@gmail.com>
    PCI: iproc: Use the EROM outbound window on BCMA

Nicolai Buchwitz <nb@tipi-net.de>
    net/mlx5e: use skb_share_check() in the loopback selftest hook

Nicolai Buchwitz <nb@tipi-net.de>
    net: stmmac: selftests: use skb_share_check() in the loopback receive hook

Nicolai Buchwitz <nb@tipi-net.de>
    net: selftests: use skb_share_check() in the loopback receive hook

Jiale Yao <yaojiale02@163.com>
    clocksource/drivers/timer-ti-dm: Handle runtime resume failure

Kyle Pepper <cochcoder@proton.me>
    Bluetooth: hci_sync: scan unfiltered for host-resolved RPAs

Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Bluetooth: Fix the LE Read Connection Interval response layout

Kevin Dewald <kevin@simpleble.org>
    Bluetooth: hci_event: Fix LE link drop on remote features command status

Cen Zhang <zzzccc427@gmail.com>
    Bluetooth: MSFT: Serialize handle map cleanup with event processing

Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Bluetooth: MGMT: Allow connection rate request as peripheral

Kiran K <kiran.k@intel.com>
    Bluetooth: btintel: Zero version data before parsing TLVs

Cen Zhang <zzzccc427@gmail.com>
    Bluetooth: hci_sync: Protect IRK identity reads with RCU

Eric Dumazet <edumazet@kernel.org>
    Bluetooth: btmtk: fix skb double free on ISO padding failure

Cen Zhang <zzzccc427@gmail.com>
    Bluetooth: 6lowpan: Drain RCU readers on registration failure

Cen Zhang <zzzccc427@gmail.com>
    Bluetooth: msft: Lock failed probe cleanup against feature readers

Cen Zhang <zzzccc427@gmail.com>
    Bluetooth: MGMT: Reject quality report requests during unregister

Cen Zhang <zzzccc427@gmail.com>
    Bluetooth: ISO: Hold the listener during disconnect notification

Cen Zhang <zzzccc427@gmail.com>
    Bluetooth: hci_sync: Serialize devcoredump reset during device open

Cen Zhang <zzzccc427@gmail.com>
    Bluetooth: hci_core: Keep RCU protection through LTK filtering

Hitalo Souza <enghitalo@gmail.com>
    Bluetooth: Add missing newline to bt_dev_{err,warn}_ratelimited()

Cen Zhang <zzzccc427@gmail.com>
    Bluetooth: 6LoWPAN: Use RCU-safe device list removal

Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Bluetooth: MGMT: Fix leaking instance on Add Extended Advertising Parameters

Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Bluetooth: MGMT: Fix pending state of instances added without HCI traffic

Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Bluetooth: HCI: Fix tracking of instances sharing handle 0x00

Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Bluetooth: MGMT: Fix advertising instances with Global Advertising

Pauli Virtanen <pav@iki.fi>
    Bluetooth: hci_sync: fix mesh adv timeout units

Kiran K <kiran.k@intel.com>
    Bluetooth: btusb: Preserve event and ACL packet ordering

Ravindra <ravindra@intel.com>
    Bluetooth: btintel_pcie: clear the GP0 cause with a W1C write

Sergey Lebedev <lsa.uz@pm.me>
    Bluetooth: btintel_pcie: verify and serialize D-state transitions

Kiran K <kiran.k@intel.com>
    Bluetooth: btintel_pcie: sync mbox tlv parsing with GP0 alive interrupt

Ravindra <ravindra@intel.com>
    Bluetooth: btintel_pcie: fix PM flow for S0ix, S3 and S4

Vladimir V. Kondratyev <vladimirkondratyev2@gmail.com>
    Bluetooth: btintel_pcie: fix stale cache in set_dxstate fallback check

Chris Lu <chris.lu@mediatek.com>
    Bluetooth: btmtk: Improve BT firmware logging

Chris Lu <chris.lu@mediatek.com>
    Bluetooth: btmtk: Validate the firmware layout before parsing it

Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
    Bluetooth: btintel_pcie: remove duplicate BTINTEL_PCIE_MAGIC_NUM definition

Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
    Bluetooth: btintel_pcie: parse FW memory addresses via mailbox TLV

Pauli Virtanen <pav@iki.fi>
    Bluetooth: L2CAP: hold chan in l2cap_ecred_conn_rsp()

Pauli Virtanen <pav@iki.fi>
    Bluetooth: L2CAP: hold l2cap_conn::lock in l2cap_connect_cfm()

Pauli Virtanen <pav@iki.fi>
    Bluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_defer

Pauli Virtanen <pav@iki.fi>
    Bluetooth: 6lowpan: avoid concurrent peer_del() in bt_6lowpan_disconnect

Pauli Virtanen <pav@iki.fi>
    Bluetooth: 6lowpan: use l2cap_chan_close_unlocked()

Pauli Virtanen <pav@iki.fi>
    Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()

Pauli Virtanen <pav@iki.fi>
    Bluetooth: L2CAP: add l2cap_chan_close_unlocked() and locking helpers

Pauli Virtanen <pav@iki.fi>
    Bluetooth: L2CAP: take chan->lock for l2cap_chan_add/ready/del

Chris Lu <chris.lu@mediatek.com>
    Bluetooth: btmtksdio: Pass the hardware device id to mt79xx_setup()

Chris Lu <chris.lu@mediatek.com>
    Bluetooth: btmtksdio: Remove redundant firmware filename override

Mohamad Raizudeen <raizudeen.kerneldev@gmail.com>
    PCI: Fix out-of-bounds MMIO read in nvme_disable_and_flr()

Marek Szyprowski <m.szyprowski@samsung.com>
    ARM: 9519/1: dma-mapping: Fix wrong free function in __iommu_alloc_simple() error path

Karl Mehltretter <kmehltretter@gmail.com>
    ARM: 9492/1: alignment: fix LSR #32 and ASR #32 offset decoding

Karl Mehltretter <kmehltretter@gmail.com>
    ARM: 9486/1: set !LPAE MAX_PHYSMEM_BITS to 32 and remove supersection mappings

Atul Akella <atul.akella@gmail.com>
    rpmsg: virtio: fix error handling in TX buffer wait

Avi Weiss <thnkslprpt@gmail.com>
    rpmsg: mtk: release channel OF node on device teardown

Le Qi <le.qi@oss.qualcomm.com>
    ASoC: codecs: da7213: Get MCLK in I2C probe

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm8510: Fix definition of ADC Inversion Switch control

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm8750: Fix definition of ALC Capture NG Type control

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm5100: Fix definition of EQ3 Band 1 Volume control

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm8737: Fix definition of zero cross switches

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm_hubs: Fix definition of MIXINR to MIXOUTR volume control

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm8955: Fix definition of Treble Cutoff control

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm8994: Fix definition of WM8958 noise gate hold time controls

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm8985: Fix definition of ADC 128x Oversampling control

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm8983: Fix definition of ADC 128x Oversampling control

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm8991: Fix definition of LOMIX AINLMUX Bypass Volume control

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm8991: Fix definition of right input PGA controls

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm8990: Fix definition of LOMIX AINLMUX Bypass Volume control

HyeongJun An <sammiee5311@gmail.com>
    ASoC: codecs: wm8990: Fix definition of right input PGA controls

Pengpeng Hou <hppiscas@163.com>
    PCI: eswin: Publish the platform driver OF alias

Tim Douglas <me@timdoug.com>
    serial: pmac_zilog: report received breaks

Karl Mehltretter <kmehltretter@gmail.com>
    serial: ma35d1: Do not force-enable an unselected console

Muhammad Bilal <meatuni001@gmail.com>
    platform/x86: hp-bioscfg: fix oops on short integer attribute buffer

Muhammad Bilal <meatuni001@gmail.com>
    platform/x86: hp-bioscfg: validate SPM state returned by firmware

Muhammad Bilal <meatuni001@gmail.com>
    platform/x86: hp-bioscfg: fix off-by-one in password length check

Leon Romanovsky <leon@kernel.org>
    dma-debug: Skip cacheline tracking for MMIO mappings

Cen Zhang <zzzccc427@gmail.com>
    ALSA: pcm: Unlink substreams before releasing them

Kohei Enju <enju.kohei@fujitsu.com>
    arm64: rsi: Correct type of realm_config::hash_algo

Johannes Berg <johannes.berg@intel.com>
    wifi: cfg80211: track SSID regardless of country data

Shang En Sim <sim@shangen.org>
    platform/x86: hp-wmi: Fix hwmon keep-alive teardown

Julian Anastasov <ja@ssi.bg>
    ipvs: fix buffer overflow when sending sync messages

Endrik Einberg <git@endrik.dev>
    wifi: iwlwifi: mld: include VI packets in low latency detection

Emmanuel Grumbach <emmanuel.grumbach@intel.com>
    wifi: iwlwifi: mvm: fix the VHT MCS sent to a v1 firmware

Binbin Deng <18983559317@163.com>
    module: Fix uninitialized count read of unloaded taint tracking record

Kees Cook <kees@kernel.org>
    mm/slab: Mark the kmem_buckets_create() context as a Context: section

Pengpeng Hou <hppiscas@163.com>
    thermal/drivers/rzg3e: Propagate reset assertion failure from suspend

Karl Mehltretter <kmehltretter@gmail.com>
    thermal: ti-soc-thermal: Fix the return value in ti_bandgap_get_sensor_data() kernel-doc

Ronald Claveau <linux-kernel-dev@aliel.fr>
    thermal/drivers/amlogic: Switch to clk_bulk API to support multiple clocks

Ronald Claveau <linux-kernel-dev@aliel.fr>
    dt-bindings: thermal: amlogic: describe bus clock for t7-thermal

Florian Fainelli <florian.fainelli@broadcom.com>
    tools/thermal/tmon: Fix string truncation warning in optarg copy

Vitaliy Sochnev <sochnev.v.74@gmail.com>
    thermal/drivers/airoha: Fix AN7583 ADC mux field mapping

Weigang He <geoffreyhe2@gmail.com>
    thermal/drivers/sprd: validate the sensor id from the device tree

Takashi Iwai <tiwai@suse.de>
    ALSA: usb-audio: Use fixed control index for us16x08 mixer elements

Karl Mehltretter <kmehltretter@gmail.com>
    wifi: nxpwifi: return timeout error from nxpwifi_sdio_poll_card_status()

Cen Zhang <zzzccc427@gmail.com>
    ALSA: vmaster: Serialize hook registration with control callbacks

Takashi Iwai <tiwai@suse.de>
    ALSA: line6: Use kzalloc() for PCM buffer allocation

Takashi Iwai <tiwai@suse.de>
    ALSA: pcm: Protect delay DMA sync in forward and rewind, too

Takashi Iwai <tiwai@suse.de>
    ALSA: jack: Fix kctl free at error in snd_jack_kctl_new()

Amadeusz Sławiński <amade@asmblr.net>
    ALSA: pcm: Fix driver_tstamp value reporting

Bradley Morgan <brads@mainlining.org>
    watchdog/perf: one digit too short in the raw event config copy

Karl Mehltretter <kmehltretter@gmail.com>
    kcov: report spurious PCs in the interrupt selftest

Karl Mehltretter <kmehltretter@gmail.com>
    resource, kunit: stop selecting GET_FREE_REGION

Danish Khateeb <danishkhateeb03@gmail.com>
    kselftest/filelock: plan for the five ofdlocks tests

Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
    ocfs2: validate chunk and block counts of the local quota file

Joseph Qi <joseph.qi@linux.alibaba.com>
    ocfs2: fix possible deadlock between nfs_sync_rwlock and fs_reclaim

Joseph Qi <joseph.qi@linux.alibaba.com>
    ocfs2: retain all security xattrs during inode creation

Zhiling Zou <zhilinz@nebusec.ai>
    lib: validate in-memory LZ4 chunk length

Bart Van Assche <bvanassche@acm.org>
    scsi: scsi_debug: Fix a locking bug in resp_write_same()

Hongjian Dai <daihongjian@kylinsec.com.cn>
    spi: meson-spicc: fix invalid DMA unmap on mapping failure

Runyu Xiao <runyu.xiao@seu.edu.cn>
    ASoC: codecs: wcd937x: request watchdog IRQs without devm

Priyanka Mani <priyankamani2100@gmail.com>
    ASoC: mediatek: mt8365: Fix out-of-bounds read in get_iir_coef()

Shuvam Pandey <shuvampandey1@gmail.com>
    accel/qaic: Protect perf stats BO state with bo->lock

Jonathan Santos <Jonathan.Santos@analog.com>
    spi: axi-spi-engine: fix stale SYNC IRQ pending in trigger_enable

Jonathan Santos <Jonathan.Santos@analog.com>
    spi: axi-spi-engine: fix stale SYNC IRQ pending

Namhyung Kim <namhyung@kernel.org>
    perf symbol: Add missing symsrc__destroy() for libbfd

Namhyung Kim <namhyung@kernel.org>
    perf symbol: Fix symbol loading from libbfd

Gabor Juhos <j4g8y7@gmail.com>
    spi: spi-qpic-snand: skip BBM copy on regular raw reads

Karl Mehltretter <kmehltretter@gmail.com>
    sh: sh7785lcr: Register the PCA9564 controller as I2C bus 0

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8196: propagate TDM clock errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8196: propagate I2S clock errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8196: fix runtime resume error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8196: propagate main clock errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8196: fix register access clock error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8196: fix MCK error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8196: fix APLL enable error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8196: fix APLL mux error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: atmel-i2s: use optional API for gclk

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: atmel-i2s: use optional API for muxclk

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: atmel-i2s: fix MCK generator error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: renesas: msiof: Fix msiof_close() being skipped on rollback

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: intel: atom: Fix .shutdown() being skipped on rollback

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: imx-pcm-rpmsg: Fix imx_rpmsg_pcm_close() being skipped on rollback

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: atmel: atmel-pcm-pdc: Fix atmel_pcm_close() being skipped on rollback

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: amd: yc: Fix acp6x_pdm_dma_close() being skipped on rollback

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: amd: vangogh: Fix acp5x_dma_close() being skipped on rollback

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: amd: renoir: Fix acp_pdm_dma_close() being skipped on rollback

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: amd: raven: Fix acp3x_dma_close() being skipped on rollback

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: amd: ps: Fix acp63_sdw_dma_close() being skipped on rollback

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: amd: ps: Fix acp63_pdm_dma_close() being skipped on rollback

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: amd: acp: Fix .close() being skipped on rollback

Mingxuan Guo <gmx472@qq.com>
    firmware: cs_dsp: clear dsp->running on the cs_dsp_run() error path

Yao Sang <sangyao@kylinos.cn>
    nvme: pass partition flags to passthrough checks

Sung Byeongchan <tjdqudcks0424@naver.com>
    nvmet-auth: reject undersized AUTH_SEND payloads

Palla Raghunath <raghunathpalla.0209@gmail.com>
    nvmet-fc: don't drop the last assoc reference in nvmet_fc_delete_ctrl()

Longfang Liu <liulongfang@huawei.com>
    hisi_acc_vfio_pci: reject live migration on 64KB page with QM_HW_V3 hardware

Simon Song <xinmengs@nvidia.com>
    vfio/pci: Remove the core dependency on driver data

Longfang Liu <liulongfang@huawei.com>
    hisi_acc_vfio_pci: fix NULL dereference in reset_prepare on PF passthrough

Selvin Xavier <selvin.xavier@broadcom.com>
    RDMA/bnxt_re: Unpublish QP table before freeing it

Abhishek Mohapatra <abhishek.mohapatra@broadcom.com>
    RDMA/bnxt_re: Use kvzalloc for QP table allocation

Heiko Carstens <hca@linux.ibm.com>
    s390/percpu: Use asm_inline for arch_this_cpu_add()

Heiko Carstens <hca@linux.ibm.com>
    s390/percpu: Rework to simplify percpu_entry() and percpu_exit()

Heiko Carstens <hca@linux.ibm.com>
    s390/percpu: Use percpu code section for this_cpu_cmpxchg()

Heiko Carstens <hca@linux.ibm.com>
    s390/percpu: Use percpu code section for this_cpu_xchg()

Heiko Carstens <hca@linux.ibm.com>
    s390/percpu: Use percpu code section for this_cpu_cmpxchg128()

Heiko Carstens <hca@linux.ibm.com>
    s390/percpu: Use __PCPU_BEGIN() and __PCPU_END() for inline assemblies

Heiko Carstens <hca@linux.ibm.com>
    s390/percpu: Rename inline assembly symbolic names

Heiko Carstens <hca@linux.ibm.com>
    s390/percpu/lowcore: Add and use LC_PERCPU lowcore offset defines

Heiko Carstens <hca@linux.ibm.com>
    s390/percpu: Let MVIY_PERCPU() calculate alternative displacement

Heiko Carstens <hca@linux.ibm.com>
    s390/percpu: Add sanity check to GEN_MVIY macro

Heiko Carstens <hca@linux.ibm.com>
    s390/early: Fix early warning handling

Heiko Carstens <hca@linux.ibm.com>
    s390/uprobes: Fix off-by-one bug in emulated PER handling

Heiko Carstens <hca@linux.ibm.com>
    s390/ptrace: Preserve ILC when updating system call number

Qu Wenruo <wqu@suse.com>
    iomap: follow the alignment requirement for iomap_dio_hole_iter()

Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
    clk: qcom: Fix camera rivian PLL configuration settings

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    clk: qcom: rcg2: Clear force enable after rate failure

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    clk: qcom: rcg2: Propagate force-enable status errors

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    clk: qcom: rcg2: Initialize shared floor clock state

Abel Vesa <abel.vesa@oss.qualcomm.com>
    clk: qcom: mmcc-msm8960: Configure PLL15 only on APQ8064

Abel Vesa <abel.vesa@oss.qualcomm.com>
    clk: qcom: mmcc-sdm660: Fix MDSS AHB clock HWCG register offset

Abel Vesa <abel.vesa@oss.qualcomm.com>
    clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset

Abel Vesa <abel.vesa@oss.qualcomm.com>
    clk: qcom: gcc-ipq5424: Fix TME reset register offsets

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    clk: qcom: gcc-x1e80100: Don't poll the status bit of GCC_USB4_n_SYS_CLK

Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
    clk: qcom: gcc-glymur: Use clk_regmap_phy_mux_ops for GCC UFS muxes

Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
    clk: qcom: rpmhcc: Add LNBB clocks support for Glymur

Taniya Das <taniya.das@oss.qualcomm.com>
    clk: qcom: gcc: Fix GPLL enable register offset for Nord SoC

Abel Vesa <abel.vesa@oss.qualcomm.com>
    clk: qcom: gcc-kaanapali: Tie the CX power domain to controller

Abel Vesa <abel.vesa@oss.qualcomm.com>
    clk: qcom: gcc-eliza: Tie the CX power domain to controller

Guangshuo Li <lgs201920130244@gmail.com>
    soc: mpfs: use kref cleanup on probe failure

Yuho Choi <oss.patchbox@gmail.com>
    bus: arm-cci: Drop cci-control-port node reference in __cci_ace_get_port()

Yuho Choi <oss.patchbox@gmail.com>
    bus: arm-cci: Drop CPU node reference in cci_ace_init_ports()

Linkai Gong <gonglinkai@kylinos.cn>
    char: scx200_gpio: check cdev_add() return value

Sasha Levin <sashal@kernel.org>
    tools: hv: remove unused rte_smp_mb()

Weigang He <geoffreyhe2@gmail.com>
    thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove

Georgi Djakov <djakov@kernel.org>
    thermal/drivers/qcom-spmi-temp-alarm: Fix temp_map indexing

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf test attr: Source setup_python.sh instead of calling python

Yogesh Gaur <yogeshgaur.83@gmail.com>
    comedi: pcmuio: validate the IRQs supplied by userspace

Yogesh Gaur <yogeshgaur.83@gmail.com>
    comedi: pcmmio: validate the IRQ supplied by userspace

Yogesh Gaur <yogeshgaur.83@gmail.com>
    comedi: dmm32at: validate the IRQ supplied by userspace

Yogesh Gaur <yogeshgaur.83@gmail.com>
    comedi: dt2814: validate the IRQ supplied by userspace

Yogesh Gaur <yogeshgaur.83@gmail.com>
    comedi: ni_atmio16d: validate the IRQ supplied by userspace

Yogesh Gaur <yogeshgaur.83@gmail.com>
    comedi: comedi_parport: validate the IRQ supplied by userspace

Thomas Fourier <fourier.thomas@gmail.com>
    net: alacritech: fix dma_free_coherent() in error path

Weiming Shi <bestswngs@gmail.com>
    fs/ntfs3: do not mark frame pages uptodate on read error

liyouhong <liyouhong@kylinos.cn>
    fs/ntfs3: fix ntfs_fnd leak when compare function is missing

Tapio Reijonen <tapio.reijonen@vaisala.com>
    serial: max310x: don't transmit while an RS485 reconfigure is pending

Tapio Reijonen <tapio.reijonen@vaisala.com>
    serial: max310x: drive RTS in software when hardware delays are too short

Tapio Reijonen <tapio.reijonen@vaisala.com>
    serial: max310x: support active-low RTS on the hardware path

Tapio Reijonen <tapio.reijonen@vaisala.com>
    serial: max310x: don't power down the port mid-transmission on close

Tapio Reijonen <tapio.reijonen@vaisala.com>
    serial: max310x: fix RS485 delays being programmed as bit-times

Tapio Reijonen <tapio.reijonen@vaisala.com>
    serial: max310x: centralize the RS485 transceiver programming

Tapio Reijonen <tapio.reijonen@vaisala.com>
    serial: max310x: fix breaks not reaching the wire in RS485 mode

Tapio Reijonen <tapio.reijonen@vaisala.com>
    serial: max310x: don't clobber the TX break bit in set_termios

Jiayuan Chen <jiayuan.chen@linux.dev>
    tcp_cubic: fix divide by zero and endless loop on bad module params

Jiayuan Chen <jiayuan.chen@linux.dev>
    tcp_hybla: fix divide by zero on rtt0 == 0

Jiayuan Chen <jiayuan.chen@linux.dev>
    tcp_bic: fix divide by zero on max_increment == 0

David Heidelberg <david@ixit.cz>
    serial: qcom-geni: power the console back up on system resume

Jeff Chen <jeff.chen_1@nxp.com>
    wifi: mwifiex: append hotfix number to firmware version string

Chien Wong <m@xv97.com>
    wifi: mac80211: reserve MME tailroom for protected beacons

Chien Wong <m@xv97.com>
    wifi: mac80211: fix encryption tailroom

Yonatan Nachum <ynachum@amazon.com>
    RDMA/efa: Fix race between admin command timeout and completion

Haitam Lazaar <haitam@lazaarsec.com>
    RDMA/siw: Enforce IB_ACCESS_REMOTE_READ for read responses

Luca Leonardo Scorcia <l.scorcia@gmail.com>
    clocksource/drivers/timer-mediatek: Fix random crash at boot

Joas Antonio dos Santos <joasantonio108@gmail.com>
    calipso: hash the cache key, not the option start, in calipso_cache_add()

Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
    PCI: qcom: Honor IOMMU provider's #iommu-cells in qcom_pcie_config_sid_1_9_0()

Vikas Gupta <vikas.gupta@broadcom.com>
    bnge: skip dev_addr when building the VNIC unicast list

Cen Zhang <zzzccc427@gmail.com>
    ALSA: pcm: Protect delay DMA sync against concurrent HW_FREE

Cen Zhang <zzzccc427@gmail.com>
    ALSA: rawmidi: Drain input work before freeing the runtime

Helge Deller <deller@gmx.de>
    fbdev: atafb: avoid cast when assigning buffer address pointer

Helge Deller <deller@gmx.de>
    fbdev: atafb: fix sparse warnings

Myeonghun Pak <mhun512@gmail.com>
    fbdev: gxt4500: Release WC setup on probe failure

Abel Vesa <abel.vesa@oss.qualcomm.com>
    platform: arm64: qcom-hamoa-ec: Disable the SCI IRQ during suspend

Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
    platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse

Patryk Pilichowski <pat.pilichowski@gmail.com>
    platform/x86: msi-wmi: Fix hotkeys dropped with vendor backlight

Jiale Yao <yaojiale02@163.com>
    platform/olpc: Reserve space for a string terminator

Aleksandrova Alyona <aga@itb.spb.ru>
    platform/x86: intel_telemetry: initialize default trace verbosity

Kristen Carlson Accardi <kristen.c.accardi@intel.com>
    platform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id()

Xi Pardee <xi.pardee@linux.intel.com>
    platform/x86/intel/pmc: Fix stale NVL PCD-S S0ix_LPM telemetry constants

Mario Limonciello <mario.limonciello@amd.com>
    platform/x86/amd: pmc: Drop scratch_reg from amd_1ah_m80_cpu_info

Daasaradhi Mannava <daasaradhimannava@gmail.com>
    platform/x86: msi-ec: Report valid charge thresholds when unset

Ahmed Yaseen <yaseen@ghoul.dev>
    platform/x86: asus-wmi: validate custom fan curves on enable

Dale Whinham <daleyo@gmail.com>
    platform/surface: aggregator_registry: Fix tablet-mode detection on Surface Pro 11

Dale Whinham <daleyo@gmail.com>
    platform/surface: aggregator_registry: Remove sensors device for Surface Pro 11

Arnd Bergmann <arnd@arndb.de>
    platform/x86/amd/pmf: fix compat ioctl handling

Ali Ahmet Memiş <aliamemis@disroot.org>
    ALSA: hda: intel: Don't free card in the probe work

Cen Zhang <zzzccc427@gmail.com>
    ALSA: jack: Remove debugfs before freeing unregistered jacks

Dan Carpenter <error27@gmail.com>
    mm/hmm/test: reject overflowing page counts

Harry Yoo (Meta) <harry@kernel.org>
    selftests/cgroup: ignore memory.reclaim -EAGAIN for zswap writeback test

Zenghui Yu (Huawei) <zenghui.yu@linux.dev>
    selftests/damon: stop kdamond on error exits of no-op commit test

Paulo Alcantara <pc@manguebit.org>
    smb: client: log the selected security type on session setup failure

Jiale Yao <yaojiale02@163.com>
    wifi: ath12k: avoid IDR mutation during vif mgmt TX cleanup

Jiale Yao <yaojiale02@163.com>
    wifi: ath12k: avoid IDR mutation during pending mgmt TX cleanup

Jiale Yao <yaojiale02@163.com>
    wifi: ath11k: avoid IDR mutation during vif mgmt TX cleanup

Jiale Yao <yaojiale02@163.com>
    wifi: ath11k: avoid IDR mutation during pending mgmt TX cleanup

Jiale Yao <yaojiale02@163.com>
    wifi: ath10k: avoid IDR mutation during TX cleanup

Aaradhana Sahu <aaradhana.sahu@oss.qualcomm.com>
    wifi: ath12k: Fix NAPI resource leaks in AHB external IRQ paths

Kunwu Chan <kunwu.chan@gmail.com>
    rcutorture: Fix divide-by-zero with fwd_progress_div=1

Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    srcu: Use IRQ_WORK_INIT_HARD for srcu's irq_work

Joonhoe Kim <26rote@gmail.com>
    ASoC: codecs: wcd939x: read the SoundWire port switches per channel

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: codecs: rt5659: propagate GPIO errors

Niklas Cassel <cassel@kernel.org>
    PCI: Update saved Max Payload Size in pcie_set_mps()

Sidong Yang <sidong.yang@furiosa.ai>
    accel/rocket: Don't tear down the scheduler when drm_sched_init() fails

Roberto Bergantinos Corpas <rbergant@redhat.com>
    nfs: set gencount on protocol-specific remove

Haotian Zhang <vulab@iscas.ac.cn>
    mtd: rawnand: pl353: fix clk reference leak in pl35x_nfc_setup_interface()

bui duc phuc <phucduc.bui@gmail.com>
    power: supply: generic-adc-battery: Propagate charged GPIO errors

Filipe Manana <fdmanana@suse.com>
    btrfs: defrag: fix check to see if next extent can be defragged too

Filipe Manana <fdmanana@suse.com>
    btrfs: fix lost error return value in btrfs_alloc_logged_file_extent()

Filipe Manana <fdmanana@suse.com>
    btrfs: qgroup: fix swapped blocks existence check when tracing after COW

Qu Wenruo <wqu@suse.com>
    btrfs: qgroup: do not treat "ret > 0" as error when deleting a qgroup

Filipe Manana <fdmanana@suse.com>
    btrfs: fix off-by-one end offset check in report_setget_bounds()

Filipe Manana <fdmanana@suse.com>
    btrfs: fix duplicated code in fs state string in logged messages

Filipe Manana <fdmanana@suse.com>
    btrfs: fix incomplete iteration over fs state when logging messages

Johannes Thumshirn <johannes.thumshirn@wdc.com>
    btrfs: zoned: fix double list add in btrfs_load_block_group_zone_info

Filipe Manana <fdmanana@suse.com>
    btrfs: fix dangling nodes in tree-mod-log after error in btrfs_tree_mod_log_insert_root()

Filipe Manana <fdmanana@suse.com>
    btrfs: fix off by one super block end offset calculation when writing super blocks

Qu Wenruo <wqu@suse.com>
    btrfs: refactor read_key_bytes() to remove the dest_folio parameter

Guanghui Yang <3497809730@qq.com>
    btrfs: roll back sprout setup after device add failure

Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
    net: stmmac: align real_num_tx_queues to mqprio configuration

Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
    net: stmmac: set real_num_tx_queues to max(offset + count)

David Zhang <yidong.zhang@amd.com>
    accel/amdxdna: Reject device heap BO when dev_mem_size is not set

Tal Zussman <tz2294@columbia.edu>
    block: unpin all pages of a bvec in bio_iov_iter_align_down()

Tal Zussman <tz2294@columbia.edu>
    block: don't fall back to buffered I/O for atomic writes

Tal Zussman <tz2294@columbia.edu>
    block: honor IOCB_NOWAIT in the block device buffered read path

Tal Zussman <tz2294@columbia.edu>
    block: take i_rwsem for the splice read path

Tal Zussman <tz2294@columbia.edu>
    block: take i_rwsem for the direct I/O write fallback

Zhenxian Ma <mzx199711@gmail.com>
    block: only use REQ_FUA for direct writes if the device supports it

Zhenxian Ma <mzx199711@gmail.com>
    block: skip redundant flush for O_DSYNC direct writes

Tal Zussman <tz2294@columbia.edu>
    block: use iomap_dirty_folio for block devices

Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
    drm/rockchip: dw_hdmi_qp: Add missing newlines in dev_err_probe() messages

Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
    drm/rockchip: dw_hdmi_qp: Cancel pending HPD work on suspend

Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
    drm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops

Jiale Yao <yaojiale02@163.com>
    ACPI: PCI: pci_link: clear driver_data before free

Adrián Larumbe <adrian.larumbe@collabora.com>
    drm/panfrost: Fix races between perfcnt and reset sequence

Adrián Larumbe <adrian.larumbe@collabora.com>
    drm/panfrost: Introduce a reset lock

Adrián Larumbe <adrian.larumbe@collabora.com>
    drm/panfrost: Skip cache flush/invalidate when enabling perfcnt

Adrián Larumbe <adrian.larumbe@collabora.com>
    drm/panfrost: Move perfcnt GPU disable sequence into a helper

Adrián Larumbe <adrian.larumbe@collabora.com>
    drm/panfrost: Move lock and modparam initialisations into their subsystems

Adrián Larumbe <adrian.larumbe@collabora.com>
    drm/panfrost: Explicitly enable MMU interrupts at device init

Adrián Larumbe <adrian.larumbe@collabora.com>
    drm/panfrost: Fix PM refcnt and autosuspend issues at device probe/remove

Adrián Larumbe <adrian.larumbe@collabora.com>
    drm/panfrost: Move shrinker initialization and unplug one level down

Ali Ahmet Memiş <aliamemis@disroot.org>
    ALSA: control_led: Fix deadlock between sysfs writes and card disconnect

Kaifeng Wang <kaifengw@google.com>
    net: devmem: check uid and netns in net_devmem_get_binding()

Stanislav Fomichev <sdf.kernel@gmail.com>
    net: devmem: embed net_iov_area in binding

Stanislav Fomichev <sdf.kernel@gmail.com>
    net: devmem: replace gen_pool with freelist

Mikulas Patocka <mpatocka@redhat.com>
    dm-snapshot: make the chunk list sorted by the chunk number

Yuan Chen <chenyuan@kylinos.cn>
    bpftool: Fix out-of-bounds read in kprobe_multi link info dump

Ricardo B. Marlière (SUSE) <ricardo@marliere.net>
    selftests/namespaces: Wait for thread exit via pidfd in active-ref tests

Alexei Starovoitov <ast@kernel.org>
    bpf: Reject BTF ids with the same address in tracing_multi link

Prathamesh Deshpande <prathameshdeshpande7@gmail.com>
    RDMA/mlx5: Cancel software CQ notifications before teardown

Prathamesh Deshpande <prathameshdeshpande7@gmail.com>
    RDMA/mlx5: Cancel deferred page-fault EQ work before teardown

Ting-Han Hou <ue081723@gmail.com>
    ALSA: virtio: reset I/O message fill level on prepare

Cen Zhang <zzzccc427@gmail.com>
    ALSA: timer: Pin the module for userspace timer controllers

Kees Cook <kees@kernel.org>
    seq_buf: Do not pop from an overflowed seq_buf

Kees Cook <kees@kernel.org>
    seq_buf: Do not print an empty line from an overflowed seq_buf_do_printk()

Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>
    powerpc/kasan: fix r2 corruption in mem*() on GENERIC_ENTRY with old compilers

Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>
    powerpc: fix NMI exit ordering: restore soft masks after irqentry_nmi_exit()

Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>
    mailbox: qcom-ipcc: remove stray disable_irq_wake() call

Linkai Gong <gonglinkai@kylinos.cn>
    mailbox: arm_mhuv2: time out if the receiver never comes up

Beleswar Padhi <b-padhi@ti.com>
    mailbox: ti-msgmgr: Read exact number of trailing message bytes

Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>
    mailbox: arm_mhu_db: Remove redundant mbox_controller_unregister() on probe failure

Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>
    mailbox: qcom-ipcc: Remove redundant mbox_controller_unregister() on probe failure

Breno Leitao <leitao@debian.org>
    mailbox: pcc: Free the channel before unmapping the shared memory

Swark Yang <syang@axiado.com>
    mailbox: axiado: fix debugfs name truncation warning

Swark Yang <syang@axiado.com>
    mailbox: axiado: fix RX frame draining and error handling

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Preserve the LCPA I/O address space

Sang-Hoon Choi <csh0052@gmail.com>
    xhci: dbc: lock the minor IDR on registration failure

Kumar Kartikeya Dwivedi <memxor@gmail.com>
    bpf, riscv: Fix stack-passed arguments for indirect trampolines

Jacob Moroni <jmoroni@google.com>
    RDMA/core: Clear driver_udata before destroying objects in rdma_core

Quanye Yang <quanyeyang@proton.me>
    RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq

Maksim Krasutski <krasutskimaksim@gmail.com>
    ALSA: hda/realtek: Fix mute LEDs on HP ENVY 17-cr1xxx

Ali Ahmet Memiş <aliamemis@disroot.org>
    ALSA: seq: Wait for one RCU grace period when deleting all ports

Kees Cook <kees@kernel.org>
    kbuild: Mark the initcall ordering recipe as recursive

Rahul Pon <theflyingrahul@gmail.com>
    drm/msm/a8xx: report the GMEM size of the active slices

Binglei Wang <l3b2w1@gmail.com>
    erofs: fix xattrs handling when metadata compression is used

Matthew Wood <thepacketgeek@gmail.com>
    bpf, arm64: Fix racy plt target update in bpf_arch_text_poke()

Maxim Skokov <skokovmaksimevg@gmail.com>
    bpf: test_run: Fix false -EBADMSG after skb leaves CHECKSUM_COMPLETE

Chukun Pan <amadeus@jmu.edu.cn>
    arm64: dts: rockchip: remove FRL GPIO for 100ASK DshanPi A1

Takashi Iwai <tiwai@suse.de>
    ALSA: hda: Add NULL check for the driver pointer at unsol event work

Takashi Iwai <tiwai@suse.de>
    ALSA: hda: Stop unsol event and jack polling at hda-ext device removal, too

Takashi Iwai <tiwai@suse.de>
    ALSA: hda: Disable unsol event handling at error and shutdown paths

Takashi Iwai <tiwai@suse.de>
    ALSA: hda: Stop unsol events and jack polling before codec unbind

Tony Luck <tony.luck@intel.com>
    fs/resctrl: Ensure default group reports tasks on monitor-only systems

Guixin Liu <kanie@linux.alibaba.com>
    cxl/pci: Update only the Port GPF timeout fields

Dave Jiang <dave.jiang@intel.com>
    cxl/port: Attach endpoints to a dport under the lock that pins it

Dave Jiang <dave.jiang@intel.com>
    cxl/core: Hold the dport host lock across dport lookup and use

Ting-Han Hou <ue081723@gmail.com>
    scripts/make_fit: Ignore schema checks when decomposing DTBs

Ting-Han Hou <ue081723@gmail.com>
    clang-tools: Import os for broken pipe handling

Leizhen Zhang <lzsx618@gmail.com>
    kconfig: fix infinite loop in conf_choice() when no choice value is visible

Eduard Zingerman <eddyz87@gmail.com>
    bpf: Save DFS postorder numbers for program instructions

Eduard Zingerman <eddyz87@gmail.com>
    bpf: Fix arg_track_xfer() for atomic stack spills and fills

Kumar Kartikeya Dwivedi <memxor@gmail.com>
    bpf: Size liveness stack masks by the stack each frame uses

Kumar Kartikeya Dwivedi <memxor@gmail.com>
    bpf: Widen the stack slot index in the jump history

Jiale Yao <yaojiale02@163.com>
    vfio/pci: Drain eventfd RCU callbacks on module exit

Leon Romanovsky <leon@kernel.org>
    PCI/P2PDMA: Gate the host bridge whitelist warning on verbose

Leon Romanovsky <leon@kernel.org>
    PCI/P2PDMA: Safely terminate ACS redirect lists

Leon Romanovsky <leon@kernel.org>
    PCI/P2PDMA: Wait for RCU readers before freeing state

Leon Romanovsky <leon@kernel.org>
    PCI/P2PDMA: Do not tear down the allocate attribute on registration failure

Marek Szyprowski <m.szyprowski@samsung.com>
    dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case

Antoni Pokusinski <apokusinski01@gmail.com>
    rtc: abx80x: properly handle shared IRQs

Antoni Pokusinski <apokusinski01@gmail.com>
    rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()

Qiliang Yuan <odys.yuan@gmail.com>
    selftests: ublk: make the fault_inject delay a pure timeout

Qiliang Yuan <odys.yuan@gmail.com>
    selftests: ublk: don't keep the fault_inject timespec on the stack

Leo Cheng <leo-cheng@vip.qq.com>
    nvmem: layouts: onie-tlv: fix device_node reference leak in error path

Leo Cheng <leo-cheng@vip.qq.com>
    nvmem: layouts: sl28vpd: fix device_node reference leak in error path

Felix Fietkau <nbd@nbd.name>
    wifi: mac80211: use link address as TA for non-MLO 4-addr station on MLD AP

Johannes Berg <johannes.berg@intel.com>
    wifi: cfg80211: reg: protect regdb pointer with RCU

Johannes Berg <johannes.berg@intel.com>
    wifi: mac80211: fix mbssid/rnr allocation in beacon data

Aloka Dixit <aloka.dixit@oss.qualcomm.com>
    wifi: mac80211: remove redundant null check in ieee80211_assign_beacon()

Johannes Berg <johannes.berg@intel.com>
    wifi: mac80211: limit injected HT/VHT MCSes

Johannes Berg <johannes.berg@intel.com>
    wifi: mac80211: init radiotap iter after length checks

Johannes Berg <johannes.berg@intel.com>
    wifi: nl80211: reject zero RNR/MBSSID elements

Johannes Berg <johannes.berg@intel.com>
    wifi: mac80211: kill wake_txqs_tasklet on unregistration

Johannes Berg <johannes.berg@intel.com>
    wifi: mac80211: mesh: use hlist_add_head_rcu()

Johannes Berg <johannes.berg@intel.com>
    wifi: mac80211: clear fragment cache entry 'is_protected'

Johannes Berg <johannes.berg@intel.com>
    wifi: ath6kl: don't take RTNL in del_virtual_intf

Takashi Iwai <tiwai@suse.de>
    ALSA: hda: intel: Cancel delayed work at shutdown, too

Takashi Iwai <tiwai@suse.de>
    ASoC: fsl_asrc_m2m: Fix bogus compress task pointer assignments

Takashi Iwai <tiwai@suse.de>
    ALSA: line6: Fix potential OOB write in line6_capture_copy()

Takashi Iwai <tiwai@suse.de>
    ALSA: line6: Reject too small max packet sizes

Takashi Iwai <tiwai@suse.de>
    ALSA: usb: us16x08: Fix racy accesses of mixer elements

Takashi Iwai <tiwai@suse.de>
    ALSA: usb-audio: Fix data race at mixer_ctl_feature_info()

Takashi Iwai <tiwai@suse.de>
    ALSA: caiaq: Fix races at MIDI URB and trigger accesses

Karl Mehltretter <kmehltretter@gmail.com>
    gpu: buddy: Drop the stale @p line from the gpu_buddy_print() kernel-doc

Jan Beulich <jbeulich@suse.com>
    x86/PVH: don't truncate initrd address/size

Gui-Dong Han <hanguidong02@gmail.com>
    xen/blkback: Prevent missed completion when draining I/O

Ruoyu Wang <ruoyuw560@gmail.com>
    xen/pcifront: Fix PCI device reference leak in AER handling

Yury Norov <ynorov@nvidia.com>
    lib: fix lock initialization in region allocation benchmark

Haotian Zhang <vulab@iscas.ac.cn>
    cpufreq: qcom-cpufreq-hw: fix device node refcount leak in phandle parsing

Vineeth Karumanchi <vineeth.karumanchi@amd.com>
    net: macb: configure ENST registers for all queues

Eric Dumazet <edumazet@kernel.org>
    bng_en: pad short frames before sampling nr_frags

Jake Labelle <southampton.jake.labelle@gmail.com>
    nilfs2: reject non-regular inodes in dsync recovery

Michał Kopeć <michal@nozomi.space>
    ASoC: mediatek: mt8188: Constrain UL8 FE to its back end's capabilities

Michał Kopeć <michal@nozomi.space>
    ASoC: mediatek: Don't keep a freed topology name in the static card

Michał Kopeć <michal@nozomi.space>
    ASoC: mediatek: common: Keep codec references until the card is bound

Rosen Penev <rosenp@gmail.com>
    crypto: talitos - init tasklets before requesting IRQs

George Abraham P <george.abraham.p@intel.com>
    crypto: qat - force an edge when re-enabling all VF2PF interrupts

Vincent Jardin <vjardin@free.fr>
    crypto: caam/qi,qi2 - set plain_keylen for skcipher descriptors

Takashi Iwai <tiwai@suse.de>
    ALSA: hda: Don't free card at probe error in vga_switcheroo handler

Takashi Iwai <tiwai@suse.de>
    ALSA: hda: Avoid non-operational GPU warning at regular device removal

Takashi Iwai <tiwai@suse.de>
    ALSA: hda: Use linked list for jack table

Takashi Iwai <tiwai@suse.de>
    ALSA: core: Fix leaks at snd_card_init() error paths

Takashi Iwai <tiwai@suse.de>
    ALSA: aloop: Avoid a bad mixure of guard() and goto

Takashi Iwai <tiwai@suse.de>
    ALSA: info: Fix memory leak at card removal

Takashi Iwai <tiwai@suse.de>
    ALSA: pcmtest: Fix leak at probe error

Takashi Iwai <tiwai@suse.de>
    ALSA: seq: Fix missing direction and ump_group handling in 32bit compat ioctl

Takashi Iwai <tiwai@suse.de>
    ALSA: core: Add missing barriers for power_ref vs card->shutdown

Takashi Iwai <tiwai@suse.de>
    ALSA: usb-audio: Fix mixer bitmap cache over 32 channels

Takashi Iwai <tiwai@suse.de>
    ALSA: pcmtest: Fix a bogus pointer read in snd_pcmtst_pcm_pointer()

Takashi Iwai <tiwai@suse.de>
    ALSA: usb-audio: Fix invalid UAC2/3 mixer unit matrix evaluation

Takashi Iwai <tiwai@suse.de>
    ALSA: usb-audio: Check mixer matrix size for UAC2/3 at parsing

Takashi Iwai <tiwai@suse.de>
    ALSA: hda: Fix potential UAF for gating jack

Takashi Iwai <tiwai@suse.de>
    ALSA: seq: Drop the bogus RCU guard from clientptr()

Marek Maslanka <mmaslanka@google.com>
    platform/chrome: cros_ec_typec: Poll for role swap completion

Chen-Yu Yeh <chenyou910331@gmail.com>
    riscv: dts: sophgo: cv180x: Fix internal ephy node name

Felix Hoffmann <f3lix.dev@gmx.de>
    wifi: mm81x: validate YAPS receive framing

Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
    net: stmmac: fix TX coalesce race and div-by-zero in XDP/legacy path

Dmitry Morgun <d.morgun@ispras.ru>
    fs/ntfs3: check return values in indx_delete_entry()

Krzysztof Wilczyński <kwilczynski@kernel.org>
    PCI/sysfs: Handle a malformed _DSM result in acpi_attr_is_visible()

Krzysztof Wilczyński <kwilczynski@kernel.org>
    PCI/sysfs: Stop reporting _DSM failures as -EPERM

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8365: Handle constraint return value in FE startup

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8189: Handle constraint return value in FE startup

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8188: Handle constraint return value in FE startup

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: common: Handle constraint return value in FE startup

Melissa Wen <mwen@igalia.com>
    drm/amd/display: copy function name into dcn_optc_lock_unlock_state trace event

Melissa Wen <mwen@igalia.com>
    drm/amd/display: copy function name into dcn_fpu trace event

Melissa Wen <mwen@igalia.com>
    drm/amd/display: use right type for amdgpu_dc_performance event entries

Melissa Wen <mwen@igalia.com>
    drm/amd/display: declare amdgpu_dm_atomic_state_template as an event class

Melissa Wen <mwen@igalia.com>
    drm/amd/display: fix vready offset assignment in dcn_optc_lock_unlock_state

Melissa Wen <mwen@igalia.com>
    drm/amd/display: remove duplicated prev_p_state_change_support assignment

Melissa Wen <mwen@igalia.com>
    drm/amd/display: assign missing trace entry in amdgpu_dm_dc_clocks_state

Shenghao Ding <shenghao-ding@ti.com>
    ASoC: tas2781: Fix TAS2781/TAS5825 PPC version logic conflict

Wentao Liang <vulab@iscas.ac.cn>
    clocksource/drivers/timer-econet-en751221: Fix clock reference leak

Ting-Han Hou <ue081723@gmail.com>
    checkkconfigsymbols.py: Parse Git status output line by line

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: keep beacons from queueing the scan work during an abort

John Crispin <john@phrozen.org>
    wifi: mt76: scan all radios of a request at the same time

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt792x: compute the assoc RSSI from the chain signals

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7921: fix of_node reference leaks in regd update

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: report an aborted scan or ROC to mac80211 during a reset

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: refuse scan and ROC until the hardware restart is done

Karl Mehltretter <kmehltretter@gmail.com>
    kobject: Fix the kobj_set_name reference in kset_register() kernel-doc

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: rockchip: rockchip_i2s: Handle runtime PM resume failures in set_fmt

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: rockchip: rockchip_sai: Handle runtime PM resume failures in set_fmt

John Crispin <john@phrozen.org>
    wifi: mt76: mt7996: disable the RX NAPIs before the DMA cleanup

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: fix the hw-queues debugfs queue requests

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: fix PLE free page and AC queue register offsets

Howard Hsu <howard-yh.hsu@mediatek.com>
    wifi: mt76: mt7996: do not add a station link in disconnected state

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: keep 4-address and decap state per station

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: add the station BMC entry as new once per BSSID

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: keep a returning link when adding station links fails

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: do not reuse the deflink of a removed station link

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: make a returning link primary if a station has none

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: pick the secondary link from links with driver state

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: free the WTBL index if a link allocation fails

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: clear all link wcid entries in sta_pre_rcu_remove

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: report station statistics from the primary link

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: upload only the keys of the link being set up

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: find the last MLD link among the links torn down

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: size the MLD setup TLV by the links it describes

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: update the address of an AP link that is added again

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: set sniffer mode on a radio that is already running

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: enable the SKU power limit table

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: abort a scan only for a link change on the scanning radio

Eason Lai <eason.lai@mediatek.com>
    wifi: mt76: mt7925: Fix MCU command timeouts during module unload

Mahesh Saran <maheshsaran477@gmail.com>
    wifi: mt76: mt7921: clear WM2 from MT7902 RX all_complete_mask

Cristian Papa <pcristian292@gmail.com>
    wifi: mt76: feed the station RSSI average from the chain signals

Slavin Liu <bolin.liu@seu.edu.cn>
    wifi: mt76: mt7996: guard station-only MLO TX handling

Pengpeng Hou <pengpeng@iscas.ac.cn>
    wifi: mt76: mt7615: validate MCU response lengths

Ahmed Naseef <naseefkm@gmail.com>
    wifi: mt76: mt7615: read MT7663 temperature from the correct offset

Ethan Tidmore <ethantidmore06@gmail.com>
    wifi: mt76: mt7925: Remove useless condition

Ryan Leung <untilscour@protonmail.com>
    wifi: mt76: fix wcid->pktid corruption in mt76_wcid_cleanup()

Aamir Ahmed <elb12345@hotmail.co.uk>
    wifi: mt76: mt7996: validate TLV length in mt7996_mcu_ie_countdown()

Chris Scott <gilroyscott1970@gmail.com>
    wifi: mt76: mt7996: refresh the tx BA session timer on NPU devices

Cristian Papa <pcristian292@gmail.com>
    wifi: mt76: mt7603: don't drop short frames looped back on PS entry

Ryan Leung <untilscour@protonmail.com>
    wifi: mt76: mt7915: fix thermal zone use-after-free

Jiale Yao <yaojiale02@163.com>
    wifi: mt76: mt7615: usb: fix source overread in mt7663u_copy

Jiale Yao <yaojiale02@163.com>
    wifi: mt76: usb: fix source overread in mt76u_copy

Devin Wittmayer <lucid_duck@justthetip.ca>
    wifi: mt76: mt792x: defer the MCU shutdown past unregister on USB

Mark Anthony Agarro <markanthonyagarro@gmail.com>
    wifi: mt76: mt7925: keep the join ROC until the station is authorized

Mark Anthony Agarro <markanthonyagarro@gmail.com>
    wifi: mt76: mt7921: keep the join ROC until the station is authorized

Andrei Rusu de Castro <arc@empyreal.works>
    wifi: mt76: mt7925: keep MLD membership consistent during link add

Arnd Bergmann <arnd@arndb.de>
    wifi: mt76: mt7996: add NET_AIROHA dependency

Jiale Yao <yaojiale02@163.com>
    wifi: mt76: mt76x02: validate RX padding before use

Charlie-cy Wu <Charlie-cy.Wu@mediatek.com>
    wifi: mt76: connac2: fill TXD spe_idx for connac2 fixed-rate frames

Ryan Leung <untilscour@protonmail.com>
    wifi: mt76: fix wcid teardown ordering in mt76_reset_device()

Ryan Leung <untilscour@protonmail.com>
    wifi: mt76: fix unlocked wcid check in mt76_tx_status_skb_add()

Ryan Leung <untilscour@protonmail.com>
    wifi: mt76: mt7915: publish wcid before MCU add commands

Devin Wittmayer <lucid_duck@justthetip.ca>
    wifi: mt76: mt7921: honour FIF_FCSFAIL instead of hardcoding drop_err

Mark Anthony Agarro <markanthonyagarro@gmail.com>
    wifi: mt76: mt7925: honour mac80211's FIF_FCSFAIL instead of hardcoding drop_err

Devin Wittmayer <lucid_duck@justthetip.ca>
    wifi: mt76: mt7925: fix the lock inversion in suspend and resume

Devin Wittmayer <lucid_duck@justthetip.ca>
    wifi: mt76: mt7921: fix the lock inversion in suspend and resume

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7925: restore the reset state when fw_pmctrl fails

Devin Wittmayer <lucid_duck@justthetip.ca>
    wifi: mt76: mt7925: check drv_pmctrl return in the PCIe reset path

Devin Wittmayer <lucid_duck@justthetip.ca>
    wifi: mt76: mt7921: check drv_pmctrl return in the PCIe reset path

Devin Wittmayer <lucid_duck@justthetip.ca>
    wifi: mt76: mt7925: fix lock inversion between dev->mutex and iflist_mtx

Devin Wittmayer <lucid_duck@justthetip.ca>
    wifi: mt76: mt7921: fix lock inversion between dev->mutex and iflist_mtx

Jacobs Wu <jacobs.wu@mediatek.com>
    wifi: mt76: mt7925: fix HT/VHT caps and rates for NAN NDP peers

Jacobs Wu <jacobs.wu@mediatek.com>
    wifi: mt76: mt7925: support deferred NAN schedule update and cluster events

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: configure NAN PHY setting on enable

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: add ULW event handling and peer ULW update

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: clear CRB before deactivating NAN peer record

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: fill all DW intervals in NAN avail_map

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: replace NAN DW end event with DW start

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: share TLV setup for NAN enable command

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: use OFDM-only PHY mode for NAN STA records

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: drop deferred NAN local schedule update handling

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: drop unused NAN 2.4/5 GHz support config

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: report only 2.4 GHz NAN supported band

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: fix NAN committed CRB timeline layout

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: fix NAN start failure

Stella Liu <yu-ching.liu@mediatek.com>
    wifi: mt76: mt7925: fix NAN NDP STA record role index

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: bound RRO session id before indexing addr_elem[]

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7915: guard firmware memory dump write on disabled memdump

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7915: unregister thermal cooling device on hwmon failure

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7996: validate firmware event lengths before parsing

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: mt7915: check default EEPROM firmware size before copying

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: clear offchannel state if a scan has no channel to restore

Felix Fietkau <nbd@nbd.name>
    wifi: mt76: check the owner of a remain-on-channel request

Jiale Yao <yaojiale02@163.com>
    pinctrl: sprd: free maps on DT map failure

Leizhen Zhang <lzsx618@gmail.com>
    gen_init_cpio: stop parsing on lines with a missing argument list

Michael Petlan <mpetlan@redhat.com>
    perf test attr: Fix wrong size expectation for events

Michael Petlan <mpetlan@redhat.com>
    perf test attr: Propagate the return value from the test to the wrapper

Takashi Iwai <tiwai@suse.de>
    ALSA: caiaq: Allow zero-length packet handling for EP1

Priyank Rathod <rathodpriyank@google.com>
    PCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices()

Muhammad Bilal <meatuni001@gmail.com>
    wifi: mm81x: check bytes_remaining before reading delimiter

Aamir Ahmed <elb12345@hotmail.co.uk>
    wifi: mm81x: validate n_channels in disabled channels response

Samuele Yang <samuele.yang@morsemicro.com>
    wifi: mm81x: start beaconing on beacon enable not interface add

Lachlan Hodges <lachlan.hodges@morsemicro.com>
    wifi: mm81x: move beacon work and init below the tx op

Joseph Qi <joseph.qi@linux.alibaba.com>
    ocfs2: reject inconsistent xattr bucket during defrag

Joseph Qi <joseph.qi@linux.alibaba.com>
    ocfs2: allow xattr bucket entries to span multiple blocks

Andrei Vagin <avagin@google.com>
    proc: report SIGEV_NONE in /proc/pid/timers if target task has died

Wilson Felipe Pereira <wfelipe@google.com>
    init/main: fix false-positive kernel panic on environment variable overwrite

Wilson Felipe Pereira <wfelipe@google.com>
    init/main: fix off-by-one in argv_init cleanup

Joseph Qi <joseph.qi@linux.alibaba.com>
    ocfs2: defer suballocator block group reclaim to workqueue

Florian Schmaus <florian.schmaus@codasip.com>
    selftests/epoll: fix race condition in multi-waiter wakeup tests

Joseph Qi <joseph.qi@linux.alibaba.com>
    ocfs2: fix deadlock in inline-data truncate transactions

Petr Vorel <pvorel@suse.cz>
    checkpatch: skip CamelCase cache for --no-tree without root

Wilson Felipe Pereira <wfelipe@google.com>
    selftests/cgroup: test_zswap: fix implicit unsigned promotion bug in test_no_kmem_bypass

Tejun Heo <tj@kernel.org>
    sched_ext: Clear a sub-scheduler's caps before ops.sub_detach()

Karl Mehltretter <kmehltretter@gmail.com>
    rcuref: Fix the rcuread_is_dead reference in rcuref_read() kernel-doc

Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
    PCI/ACPI: Centralize pcie_ports_native checking

Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
    PCI/ACPI: Tidy _OSC control bit checking

Ryusuke Konishi <konishi.ryusuke@gmail.com>
    nilfs2: fix link count underflow when removing corrupted directory

Georgios Androutsopoulos <georgeandrout13@gmail.com>
    rust: bitmap: document panics in `next_bit` and `next_zero_bit`

Georgios Androutsopoulos <georgeandrout13@gmail.com>
    rust: id_pool: document panics in `find_unused_id` and `release_id`

Roberto Bergantinos Corpas <rbergant@redhat.com>
    NFS: return DENIED in decode_lock_denied if we cannot decode owner

Marc Kleine-Budde <mkl@pengutronix.de>
    spi: spi-sun4i: sun4i_spi_handler(): fix race condition between transfer completion and RX FIFO interrupt

Marc Kleine-Budde <mkl@pengutronix.de>
    spi: spi-sun4i: sun4i_spi_transfer_one(): fix setting of clock rate

Marc Kleine-Budde <mkl@pengutronix.de>
    spi: spi-sun4i: sun4i_spi_fill_fifo(): always apply A10 FIFO fill level workaround

Marc Kleine-Budde <mkl@pengutronix.de>
    spi: spi-sun4i: sun4i_spi_transfer_one(): fix transfers for SUN4I_FIFO_DEPTH

Daniel Drake <dan@reactivated.net>
    drm/vc4: Set DRM DMA device directly from HVS and V3D

Maíra Canal <mcanal@igalia.com>
    drm/vc4: Drop the undocumented brcm,vc4-v3d compatible

Linus Walleij <linusw@kernel.org>
    dt-bindings: dma: dma40: Restore disabled-channels

Jason Gunthorpe <jgg@ziepe.ca>
    efi/libstub: Free cmdline_ptr in efi_pe_entry

Vincent Mailhol <mailhol@kernel.org>
    efi/libstub: make local GUID variables static

Jason Gunthorpe <jgg@ziepe.ca>
    efi/riscv: libstub: Don't set image_size in handle_kernel_image()

Jason Gunthorpe <jgg@ziepe.ca>
    efi/libstub: Fix error unwind freeing fdt in allocate_new_fdt_and_exit_boot()

Pengpeng Hou <pengpeng@iscas.ac.cn>
    sh: defconfig: Enable the current M66592 UDC symbol

Florian Fuchs <fuchsfl@gmail.com>
    sh: uaccess: Require offsettable operands for 64-bit user access

Florian Fuchs <fuchsfl@gmail.com>
    sh: Fix built-in DTB build with generic rule

Aurelien Jarno <aurelien@aurel32.net>
    riscv: fix RVG_SYSTEM_CSR_MASK width mask

Xu Yunxiang <xyx2021@mail.ustc.edu.cn>
    bpf: Destroy callee-local dynptrs on subprog return

Daniel Zahka <daniel.zahka@gmail.com>
    selftests: drv-net: psp: test that rx-assoc fails on closed and listen socks

Daniel Zahka <daniel.zahka@gmail.com>
    net: psp: drop psp assoc clear in sk_clone()

Daniel Zahka <daniel.zahka@gmail.com>
    net: psp: require an established connection for association setup

Daniel Zahka <daniel.zahka@gmail.com>
    selftests: drv-net: psp: swap closed for connected sockets in assoc tests

Eric Dumazet <edumazet@kernel.org>
    ipv4: reserve one IP ID per segment for UDP GSO packets

Eric Dumazet <edumazet@kernel.org>
    ipv4: fix IP ID reuse in ip_select_ident_segs()

Chen-Yu Tsai <wens@kernel.org>
    arm64: dts: allwinner: sun50i-h6: Add missing IOMMU for video engine

Chen-Yu Tsai <wens@kernel.org>
    arm64: dts: allwinner: sun50i-h6: Add missing SRAM region for video engine

Mike Snitzer <snitzer@kernel.org>
    pNFS/flexfiles: don't reset to MDS for v4 error when previous layout forbid it

Mike Snitzer <snitzer@kernel.org>
    pNFS/flexfiles: don't read through MDS when previous layout forbid it

Mike Snitzer <snitzer@kernel.org>
    pNFS/flexfiles: honor FF_FLAGS_NO_IO_THRU_MDS over the mdsthreshold hint

Scott Gauche <scott-dev@scottgauche.com>
    ALSA: hda/realtek: Fix audio after Windows reboot on ASUS Q423SA

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Validate memcpy configuration

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Validate fixed physical channel indexes

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix V4B event group mapping

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix event group bounds

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix logical channel bounds check

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Reject direction changes after allocation

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Validate DMA specifier length

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Validate disabled channel indexes

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix memcpy channel parsing

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Put the LCPA SRAM node

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix probe LCLA free

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix LCLA allocation order

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix DMA registration unwind

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix probe IRQ leak

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Init hardware before registration

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Return IRQ_NONE when no interrupt is pending

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Handle runtime PM resume errors

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Check runtime PM in IRQ

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix probe runtime PM disable

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix failed start cleanup

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Recover coalesced cyclic callbacks

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix cyclic transfer residue

Linus Walleij <linusw@kernel.org>
    dmaengine: ste_dma40: Fix physical cyclic capability

Roman Demidov <roman.demidov.nn@gmail.com>
    drm/msm/a6xx: check pm_runtime_resume_and_get during resume

Roman Demidov <roman.demidov.nn@gmail.com>
    drm/msm/a6xx: fix use-after-free of OPP in a6xx_pm_resume

Jiale Yao <yaojiale02@163.com>
    wifi: ath12k: Reserve space for a string terminator

Baochen Qiang <baochen.qiang@oss.qualcomm.com>
    wifi: ath11k: fix unbalanced IRQ enable/disable during suspend/resume

Guangshuo Li <lgs201920130244@gmail.com>
    floppy: unregister platform device on add_disk failure

Yang Xiuwei <yangxiuwei@kylinos.cn>
    floppy: avoid NULL deref in reset_interrupt when cont is cleared

Qing Ming <a0yami@mailbox.org>
    dlm: validate node weights before building member array

Karl Mehltretter <kmehltretter@gmail.com>
    floppy: flush pending work before releasing resources on init failure

Aamir Ahmed <elb12345@hotmail.co.uk>
    wifi: nxpwifi: validate variable IE lengths in beacon parser

Jeff Chen <jeff.chen_1@nxp.com>
    wifi: nxpwifi: fix missing error codes in _nxpwifi_fw_dpc()

Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
    NFS: filelayout: calculate dense stripe width in 64 bits

Chuck Lever <cel@kernel.org>
    SUNRPC: treat every client-side TLS error alert as fatal

Chuck Lever <cel@kernel.org>
    SUNRPC: reject a client-side TLS alert record that is not two octets

Logan Gunthorpe <logang@deltatee.com>
    dmaengine: plx_dma: fix NULL pointer deref in plx_dma_isr()

Logan Gunthorpe <logang@deltatee.com>
    dmaengine: ioat: disable relaxed ordering before registering the device

Logan Gunthorpe <logang@deltatee.com>
    dmaengine: switchtec-dma: fix channel leak on registration failure

Logan Gunthorpe <logang@deltatee.com>
    dmaengine: switchtec-dma: fix resource leak in alloc_chan_resources

Logan Gunthorpe <logang@deltatee.com>
    dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()

Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    drm/msm/a5xx: don't read the GPMU registers on GPUs without a GPMU

Aloka Dixit <aloka.dixit@oss.qualcomm.com>
    Revert "wifi: mac80211: do not use old MBSSID elements"

Dan Carpenter <error27@gmail.com>
    wifi: carl9170: NUL terminate string in debugfs

Dan Carpenter <error27@gmail.com>
    wifi: b43legacy: debugfs: NUL terminate string in debugfs

Dan Carpenter <error27@gmail.com>
    wifi: b43: don't pass unterminated string to sscanf()

Dominic White <github@singe.za.net>
    wifi: cfg80211: allow zero HE OBSS PD offsets

Karl Mehltretter <kmehltretter@gmail.com>
    ASoC: codecs: es8375: use devm_clk_get_optional() for mclk

Yibo Tan <lhfff@tju.edu.cn>
    soc: qcom: pmic_pdcharger_ulog: prevent work requeue during remove

Neil Armstrong <neil.armstrong@linaro.org>
    soc: qcom: geni-se: provide PROG_RAM_DEPTH for I2C HUB Serial Engines

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    soc: qcom: pmic_glink: Avoid losing early rpmsg probe

Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
    firmware: qcom_scm: align PAS resource table retry

Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
    firmware: qcom_scm: handle empty PAS resource table

Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
    firmware: qcom: tzmem: Use DO_ONCE_SLEEPABLE() in qcom_tzmem_enable()

Joonhoe Kim <26rote@gmail.com>
    drm/msm/dpu: round up the compressed INTF width

Xueqin Luo <luoxueqin@kylinos.cn>
    cpufreq: sti: avoid NULL dereference in dev_err()

Xueqin Luo <luoxueqin@kylinos.cn>
    cpufreq: tegra194: fix double-pointer error in get_cpu_ndiv

Xueqin Luo <luoxueqin@kylinos.cn>
    cpufreq: sparc-us2e: fix frequency table index copy-paste error

Karl Mehltretter <kmehltretter@gmail.com>
    svcrdma: Fix svc_rdma_recv_cid_init() kernel-doc

hpp.iscas <hppiscas@163.com>
    perf/marvell: cn10k_tad: Publish the OF module alias

Dennis Gilmore <dennis@ausil.us>
    arm64: dts: rockchip: Use GPIO function for PCIe reset on Orange Pi 5 Pro

Hongyan Xu <getshell@seu.edu.cn>
    ASoC: mt6359-accdet: manage private workqueues with devres

Yaozhong Li <yaozhonguwl@gmail.com>
    arm64: dts: rockchip: disable unused i2s0 on rk3399-firefly

Yaozhong Li <yaozhonguwl@gmail.com>
    arm64: dts: rockchip: fix analog headphone output on rk3399-firefly

Joachim Eastwood <joachim.eastwood@gmail.com>
    arm64: dts: rockchip: fix missing pcie rst pinctrl on rk3588s-nanopi-r6

Joachim Eastwood <joachim.eastwood@gmail.com>
    arm64: dts: rockchip: fix missing sdmmc cd pinctrl on rk3588s-nanopi-r6

Detlev Casanova <detlev.casanova@collabora.com>
    arm64: dts: rockchip: Rename rk3588 HDMI audio cards

Detlev Casanova <detlev.casanova@collabora.com>
    arm64: dts: rockchip: Rename rk3576 HDMI audio card

Detlev Casanova <detlev.casanova@collabora.com>
    arm64: dts: rockchip: Rename rk3566 and rk3568 HDMI audio cards

Linus Walleij <linusw@kernel.org>
    ARM: dts: ux500: Use AB8505 charger compatible

Detlev Casanova <detlev.casanova@collabora.com>
    arm64: dts: rockchip: Rename rk3328 HDMI audio card

Jiale Yao <yaojiale02@163.com>
    ASoC: rt722-sdca: always cancel jack work on remove

Jiale Yao <yaojiale02@163.com>
    ASoC: rt721-sdca: always cancel jack work on remove

Jiale Yao <yaojiale02@163.com>
    ASoC: rt712-sdca: always cancel jack work on remove

Jiale Yao <yaojiale02@163.com>
    ASoC: rt711-sdca: always cancel jack work on remove

Jiale Yao <yaojiale02@163.com>
    ASoC: rt711-sdw: always cancel jack work on remove

Jiale Yao <yaojiale02@163.com>
    ASoC: rt5682-sdw: always cancel jack work on remove

Marco Giunta <marco_giunta@outlook.it>
    ASoC: aw88399: skip BSTS check when boost converter is bypassed

Linus Walleij <linusw@kernel.org>
    power: supply: ab8500_fg: Avoid reserved AB8505 CCConf bit

Linus Walleij <linusw@kernel.org>
    power: supply: ab8500_fg: Finalize current measurements

Linus Walleij <linusw@kernel.org>
    power: supply: ab8500_charger: Recover inactive AB8505 charger

Linus Walleij <linusw@kernel.org>
    power: supply: ab8500_charger: Retry AB8505 USB detection

Linus Walleij <linusw@kernel.org>
    power: supply: ab8500_charger: Skip absent AB8505 main charger

Linus Walleij <linusw@kernel.org>
    power: supply: ab8500_charger: Handle detection errors

Linus Walleij <linusw@kernel.org>
    power: supply: ab8500_charger: Respect AB8505 register layout

Linus Walleij <linusw@kernel.org>
    power: supply: ab8500_charger: Decode AB8505 USB status

Linus Walleij <linusw@kernel.org>
    power: supply: ab8500_charger: Fix AC charger re-enable

Linus Walleij <linusw@kernel.org>
    power: supply: ab8500: Preserve battery termination current

Linus Walleij <linusw@kernel.org>
    power: supply: ab8500_btemp: Fix event temperature reporting

HyeongJun An <sammiee5311@gmail.com>
    selftests/alsa: Do not take another control's event as our own

Guangshuo Li <lgs201920130244@gmail.com>
    spi: bcm63xx-hsspi: Disable runtime PM on remove

Guangshuo Li <lgs201920130244@gmail.com>
    spi: fsl: unmap immr_spi_cs on remove

Arnd Bergmann <arnd@arndb.de>
    perf: marvell: avoid large stack variables

Ruoyu Wang <ruoyuw560@gmail.com>
    perf/dwc_pcie: Fix PCI device reference leak in probe

Dave Jiang <dave.jiang@intel.com>
    perf/cxl: Clear stale overflow status before using a counter

Dave Jiang <dave.jiang@intel.com>
    perf/cxl: Don't log through pmu.dev in the overflow interrupt handler

Dave Jiang <dave.jiang@intel.com>
    perf/cxl: Validate the hardware-reported counter width

Dave Jiang <dave.jiang@intel.com>
    perf/cxl: Unfreeze counters after handling an overflow interrupt

Dave Jiang <dave.jiang@intel.com>
    perf/cxl: Don't share the overflow interrupt, and keep it pinned

Dave Jiang <dave.jiang@intel.com>
    perf/cxl: Accept an overflow interrupt on MSI message number 0

Dave Jiang <dave.jiang@intel.com>
    perf/cxl: Fix the counter overflow delta fixup

Dave Jiang <dave.jiang@intel.com>
    perf/cxl: Clear stale event fields before reprogramming a counter

Dave Jiang <dave.jiang@intel.com>
    perf/cxl: Program the requested event group on configurable counters

Alexey Charkov <alchark@flipper.net>
    power: supply: bq257xx: Use psy directly instead of driver data

Jan Stancek <jstancek@redhat.com>
    .gitignore: drop Module.markers

Liviu Nicoara <lnicoara@thinkoid.org>
    power: supply: qcom_battmgr: Report capacity on X1E80100

Nicolin Chen <nicolinc@nvidia.com>
    iommu/arm-smmu-v3: Don't rb_erase() a never-inserted stream node

Linus Walleij <linusw@kernel.org>
    dt-bindings: power: supply: ab8500: Add AB8505 charger

Zhihao Cheng <chengzhihao1@huawei.com>
    md: Fix the null-ptr-deref of 'mddev->private' while submitting IO

Ryan Brue <ryanbrue.dev@gmail.com>
    power: supply: bq24190_charger: don't reset registers across system suspend

Chen-Yu Tsai <wens@kernel.org>
    dt-bindings: media: sun4i-a10-video-engine: Fix IOMMU count for H6

Sang-Hoon Choi <csh0052@gmail.com>
    md/raid5: protect big_stripe_tree lookup with RCU

Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
    phy: rockchip: samsung-hdptx: Handle PHY config after module reload

Linkai Gong <gonglinkai@kylinos.cn>
    clk: imx: composite-93: return timeout from gate enable

Li Youhong <liyouhong@kylinos.cn>
    md/raid5: drain released_stripes before destroying the cache

Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
    md: take reconfig_mutex when enabling PPL on an inactive array

Aristo Chen <aristo.chen@canonical.com>
    phy: freescale: fsl-samsung-hdmi: initialize default rate

Shawn Lin <shawn.lin@rock-chips.com>
    phy: rockchip: naneng-combphy: Fix TX detect RX termination errata

David Carlier <devnexen@gmail.com>
    phy: qcom: qmp-pcie: Check clock-output-names count in the multi-PHY driver

Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
    phy: qcom: qmp-pcie: Refactor common multiphy handling

David Carlier <devnexen@gmail.com>
    phy: qcom: qmp-pcie: Select MFD_SYSCON for the multi-PHY driver

Bruno Banelli <bbanelli@gmail.com>
    phy: spacemit: fix K1 USB 2.0 PHY Kconfig dependencies

Jason Yang <jason98166@gmail.com>
    phy: rockchip-samsung-dcphy: Enable runtime PM at PHY core level

Laurence Oberman <loberman@redhat.com>
    scsi: st: Record the tape position after a successful MTLOAD

Laurence Oberman <loberman@redhat.com>
    scsi: st: Restore changed drive settings after reset also for MTLOAD and MTRETEN

Niklas Cassel <cassel@kernel.org>
    scsi: scsi_debug: Validate the access parameters of WRITE ATOMIC (16)

Niklas Cassel <cassel@kernel.org>
    scsi: scsi_debug: Map the region written by WRITE ATOMIC (16)

Niklas Cassel <cassel@kernel.org>
    scsi: scsi_debug: Refuse a short WRITE ATOMIC (16) before writing it

Niklas Cassel <cassel@kernel.org>
    scsi: scsi_debug: Advance the write pointer over the data written

Niklas Cassel <cassel@kernel.org>
    scsi: scsi_debug: Enforce physical block alignment of zoned writes

Damien Le Moal <dlemoal@kernel.org>
    scsi: scsi_debug: Use combined sense codes

Damien Le Moal <dlemoal@kernel.org>
    scsi: core: Prepare for using combined sense codes

Damien Le Moal <dlemoal@kernel.org>
    scsi: core: Rename sense field of struct scsi_failure

Damien Le Moal <dlemoal@kernel.org>
    scsi: core: Define all additional sense codes and their qualifiers

Niklas Cassel <cassel@kernel.org>
    scsi: scsi_debug: Avoid 32-bit overflow in WRITE SCATTERED offsets

Niklas Cassel <cassel@kernel.org>
    scsi: scsi_debug: Take the zone metadata lock before the data lock

Niklas Cassel <cassel@kernel.org>
    scsi: scsi_debug: Refuse a negative physblk_exp

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Only enable USB3 when not in high-speed mode

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Handle rk_udphy_reset_deassert errors

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Avoid xHCI SErrors

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Rename mode_change to phy_needs_reinit

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Hold mutex in DP PHY configure

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Properly handle TYPEC_STATE_SAFE and TYPEC_STATE_USB

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Drop DP HPD handling

Zhang Yubing <yubing.zhang@rock-chips.com>
    phy: rockchip: usbdp: Support single-lane DP

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Add missing mode_change update

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Limit DP lane count to muxed lanes

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Drop seamless DP takeover

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Handle missing clock-names DT property gracefully

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Fix devm_clk_bulk_get_all check

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Do not lose USB3 PHY status

Sebastian Reichel <sebastian.reichel@collabora.com>
    phy: rockchip: usbdp: Update mode_change after error handling

Akash Sukhavasi <akash.sukhavasi@gmail.com>
    phy: HiSilicon: Fix error handling in hi3670_pcie_allclk_ctrl()

Yuan Chen <chenyuan@kylinos.cn>
    bpf: Roll back freplace link state when bpf_arch_text_poke() fails

Yeoreum Yun <yeoreum.yun@arm.com>
    coresight: etm3x: fix inconsistencies with sysfs configuration

Yeoreum Yun <yeoreum.yun@arm.com>
    coresight: etm3x: Prohibit modifying cntr_val while session is enabled

Yeoreum Yun <yeoreum.yun@arm.com>
    coresight: etm4x: fix inconsistencies with sysfs configuration

Yeoreum Yun <yeoreum.yun@arm.com>
    coresight: etm4x: prohibit modifying cntr_val while session is enabled

Yeoreum Yun <yeoreum.yun@arm.com>
    coresight: etm4x: Prohibit TRCSEQSTR modifications while tracing enabled

Joonhoe Kim <26rote@gmail.com>
    drm/msm/dpu: compute the CRTC bandwidth from the state being checked

Joonhoe Kim <26rote@gmail.com>
    drm/msm/dpu: disable the slave encoder before the master

Oleg Keri <okerixx@gmail.com>
    drm/msm/dp: don't report link training success after a reinit

Yuho Choi <dbgh9129@gmail.com>
    soc/tegra: flowctrl: Release OF node reference on error

Igor Velkov <iav@iav.lv>
    arm64: dts: amlogic: meson-sm1-odroid-hc4: run the SPI NOR at 40 MHz

Igor Velkov <iav@iav.lv>
    arm64: dts: amlogic: meson-sm1-odroid-hc4: mux the SPI NOR HOLD# and WP# pins

Hal Feng <hal.feng@starfivetech.com>
    riscv: dts: starfive: Correct pwm nodes

Ben Horgan <ben.horgan@arm.com>
    arm_mpam: resctrl: Don't stop early when tearing down a class

Ben Horgan <ben.horgan@arm.com>
    arm_mpam: Switch to kvzmalloc_objs() for allocation of component cfg

Ben Horgan <ben.horgan@arm.com>
    arm_mpam: Don't loop forever if there is the maximum possible amount of PARTIDs

Ben Horgan <ben.horgan@arm.com>
    arm_mpam: resctrl: Make read_mon_cdp_safe() self consistent

Ben Horgan <ben.horgan@arm.com>
    arm_mpam: resctrl: Correct check that existing class is L3

Ben Horgan <ben.horgan@arm.com>
    arm_mpam: Initialize all of struct mon_read in mpam_restore_mbwu_state()

Ben Horgan <ben.horgan@arm.com>
    arm_mpam: Use __ris_msmon_read() for saving MBWU state

Ben Horgan <ben.horgan@arm.com>
    arm_mpam: Ensure MBWU counters are reset on restore

Ben Horgan <ben.horgan@arm.com>
    arm_mpam: Add missing mon_sel locking in MBWU save and restore

Ben Horgan <ben.horgan@arm.com>
    arm_mpam: Set mpam_feat_msmon_mbwu_31counter when there are bandwidth counters

James Clark <james.clark@linaro.org>
    perf python: Track linked libraries as extension dependencies

Mostafa Saleh <smostafa@google.com>
    iommu/arm-smmu-v3-test: Fix UBSAN error

Mostafa Saleh <smostafa@google.com>
    iommu/arm-smmu-v3-test: Fix OOB in arm_smmu_v3_invs_test_verify()

Mostafa Saleh <smostafa@google.com>
    iommu/arm-smmu-v3-test: Add missing error checks for inv array

Mostafa Saleh <smostafa@google.com>
    iommu/arm-smmu-v3-test: Fix arm_smmu_v3_test_debug_print_used_bits()

Mostafa Saleh <smostafa@google.com>
    iommu/arm-smmu-v3: Ensure L2 tables are visible before L1 ptrs

Emil Tsalapatis <emil@etsalapatis.com>
    bpf: Add sleepable arena page allocation path

Emil Tsalapatis <emil@etsalapatis.com>
    bpf: Add sleepable argument to bpf_alloc_pages()

Emil Tsalapatis <emil@etsalapatis.com>
    bpf: Use an llist for page allocations

Jiayuan Chen <jiayuan.chen@linux.dev>
    bpf: arena: Allocate the fault-in page outside the lock

Yuri Zaporozhets <yuriz@vodafonemail.de>
    ASoC: dwc: Use OF match data again for StarFive JH7110

Junhui Liu <junhui.liu@pigmoral.tech>
    riscv: dts: spacemit: k3: Replace incorrect CLINT node with ACLINT nodes

Junhui Liu <junhui.liu@pigmoral.tech>
    dt-bindings: timer: sifive,clint: Remove spacemit,k3-clint

James Morris <jmorris@namei.org>
    riscv: dts: spacemit: k3-com260: keep dldo4 enabled

Aurelien Jarno <aurelien@aurel32.net>
    riscv: dts: spacemit: k3: move USB3 phy to board level

Matthias Goergens <matthias.goergens@gmail.com>
    isofs: return long Joliet names whole

Jennifer Berringer <jberring@redhat.com>
    riscv: dts: spacemit: set console baud rate on OrangePi RV2

Slavin Liu <bolin.liu@seu.edu.cn>
    clocksource/drivers/dbx500-prcmu: Check timer register mapping

Markus Schneider-Pargmann (TI) <msp@baylibre.com>
    clocksource/drivers/timer-ti-dm: Register clocksource/event only for am654

Thorsten Blum <blum@kernel.org>
    hwrng: intel - return -ENOMEM when ioremap() fails

Takashi Iwai <tiwai@suse.de>
    ALSA: ump: Avoid dereference with max_src_size=0

Liu Dalin <liudalin@kylinsec.com.cn>
    rtc: ftrtc010: fix integer overflow in time calculation

Arnd Bergmann <arnd@arndb.de>
    drm/panel: fix novatek-nt36536 dependencies

Thorsten Blum <blum@kernel.org>
    hwrng: intel - return -ENOMEM when kmalloc_obj() fails

Herbert Xu <herbert@gondor.apana.org.au>
    crypto: tcrypt - Avoid reading req->base after submission

Karl Mehltretter <kmehltretter@gmail.com>
    crypto: atmel - handle authenc requests without plaintext

Bartosz Szpila <bszpila@google.com>
    platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data

Hemanth Selam <hemanth.selam@gmail.com>
    nvdimm/pmem: Release gendisk on probe failure

Alexander Duyck <alexanderduyck@fb.com>
    fbnic: Rework the BMC state pulled from the capabilities message

Kris Pan <kris.pan@intel.com>
    net: iterate online nodes in skb_defer_free_flush()

Markus Schneider-Pargmann (TI) <msp@baylibre.com>
    arm64: dts: ti: var-som-am62p: Fix wkup R5F memory region size

Markus Schneider-Pargmann (TI) <msp@baylibre.com>
    arm64: dts: ti: k3-am62p5-sk: Fix wkup R5F memory region size

Markus Schneider-Pargmann (TI) <msp@baylibre.com>
    arm64: dts: ti: k3-am62p-verdin: Fix wkup R5F memory region size

Markus Schneider-Pargmann (TI) <msp@baylibre.com>
    arm64: dts: ti: k3-am62a7-sk: Fix wkup R5F memory region size

Markus Schneider-Pargmann (TI) <msp@baylibre.com>
    arm64: dts: ti: k3-am62d2-evm: Fix wkup R5F memory region size

Markus Schneider-Pargmann (TI) <msp@baylibre.com>
    arm64: dts: ti: k3-am62a-phycore-som: Fix wkup R5F memory region size

Mikko Perttunen <mperttunen@nvidia.com>
    drm/tegra: Drop reference on postfence

Mikko Perttunen <mperttunen@nvidia.com>
    drm/tegra: Don't pass an ERR_PTR to drm_syncobj_replace_fence()

Mikko Perttunen <mperttunen@nvidia.com>
    drm/tegra: Fix syncobj_in wait return value check

Mikko Perttunen <mperttunen@nvidia.com>
    ARM: tegra: Add core supply for Tegra114 boards

Lance Yang <lance.yang@linux.dev>
    mm/memory_hotplug: fix missing rollback in __add_pages()

Chuanhong Guo <gch981213@gmail.com>
    pinctrl: mediatek: mt7629: fix the 2.4 GHz Wi-Fi pin mode array

Kate Hsuan <hpa@redhat.com>
    media: i2c: imx471: Fix register size for IMX471_REG_DPGA_USE_GLOBAL_GAIN

Thiébaud Weksteen <tweek@google.com>
    rust: macros: allow non-ASCII characters in `authors`

Mario Limonciello <mario.limonciello@amd.com>
    cpufreq: amd-pstate: Propagate cppc_set_auto_sel() errors on mode change

Mario Limonciello <mario.limonciello@amd.com>
    cpufreq: amd-pstate: Restore previous mode when changing driver mode fails

Bjorn Helgaas <bhelgaas@google.com>
    PCI: tegra264: Fix Link Capabilities register offset

Arnd Bergmann <arnd@arndb.de>
    drm/amd/display: fix unused function warnings

YiPeng Chai <YiPeng.Chai@amd.com>
    drm/amd/ras: use __le32 pointer type to resolve the sparse warnings

Jesse Zhang <Jesse.Zhang@amd.com>
    drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset

Dmytro Laktyushkin <dmytro.laktyushkin@amd.com>
    drm/amd/display: Enable dcn42 pstate pmo

Bjoern Doebel <doebel@amazon.de>
    selftests/rdma: Skip rxe_sent_rcvd_bytes when rdma_rxe is missing

Charlene Liu <Charlene.Liu@amd.com>
    drm/amd/display: Fix zero dlg_reg write to program_ext_vblank

Ian Rogers <irogers@google.com>
    perf thread_map: Add thread_map__tgid()

Ian Rogers <irogers@google.com>
    perf trace: Copy sockaddr arguments by their length

Lu Yao <yaolu@kylinos.cn>
    drm/amdkfd: drop KFD_QUEUE_TYPE_DIQ note

Danish Khateeb <danishkhateeb03@gmail.com>
    pps: generators: wake up PPS_GEN_FETCHEVENT readers on unregister

Shuming Fan <shumingf@realtek.com>
    ASoC: rt712: avoid duplicate reset in io_init

Yichong Chen <chenyichong@uniontech.com>
    debugfs: make debugfs_create_str() read-only

Runyu Xiao <runyu.xiao@seu.edu.cn>
    mei: vsc-tp: initialize IRQ state before requesting interrupt

Ruoyu Wang <ruoyuw560@gmail.com>
    misc: nsm: fix CBOR short-length decoding

Jasper Wise <jaspwise@amazon.co.uk>
    misc: nsm: mark device ready before registering the hwrng and misc device

Linkai Gong <gonglinkai@kylinos.cn>
    misc: enclosure: fix UAF on device_register() failure

Sechang Lim <rhkrqnwk98@gmail.com>
    sched: Set TIF_NEED_RESCHED before calling __trace_set_need_resched()

Nam Cao <namcao@linutronix.de>
    rv/rtapp/wakeup: Use "rv_this" the rv_monitor variable

Wen Yang <wen.yang@linux.dev>
    rv: Use LD_WAIT_SPIN as the reactor lockdep wait type

Omar Ramadan <omar@blockcast.net>
    amt: pull the AMT header behind the transport header in amt_parse_type()

Yuya Kusakabe <yuya.kusakabe@gmail.com>
    seg6: fix HMAC validation when an extension header precedes the SRH

Barnabás Pőcze <barnabas.pocze+renesas@ideasonboard.com>
    media: rcar-isp: ispcore: Fix inconsistent step sizes

Christopher Snowhill <chris@kode54.net>
    media: em28xx: hold the vb2 queue lock when releasing the queue on close

Cong Nguyen <congnt264@gmail.com>
    staging: media: tegra-video: fix syncpoint leak in tegra20 channel init

Mateusz Nowicki <mateusz.nowicki@posteo.net>
    arm64: dts: st: fix sai3b unit address on stm32mp231

Mateusz Nowicki <mateusz.nowicki@posteo.net>
    arm64: dts: st: fix sai3b unit address on stm32mp251

Danish Khateeb <danishkhateeb03@gmail.com>
    serial: 8250: Fix section mismatch with CONFIG_MODULES=n

Nathan Chancellor <nathan@kernel.org>
    serial: 8250_mid: Add missing module namespace import for SERIAL_8250

Weigang He <geoffreyhe2@gmail.com>
    ARM: vexpress: fix device_node refcount leak in vexpress_smp_dt_prepare_cpus()

Weigang He <geoffreyhe2@gmail.com>
    ARM: vexpress: fix device_node refcount leak in vexpress_flags_set()

Liu Dalin <liudalin@kylinsec.com.cn>
    rtc: ftrtc010: use devm clock APIs to fix use-after-disable in remove

Liu Dalin <liudalin@kylinsec.com.cn>
    rtc: ftrtc010: fix clock resource leak on probe failure

Chancel Liu <chancel.liu@nxp.com>
    pinctrl: pinctrl-generic-mux: Fix provider resource leak on re-parse

Ze Huang <ze.huang@oss.qualcomm.com>
    drm/imx/lcdc: avoid duplicate clk_per enable

Karl Mehltretter <kmehltretter@gmail.com>
    OPP: Fix the return value in dev_pm_opp_get_of_node() kernel-doc

Lucas Costa <2000.costalucas@gmail.com>
    staging: sm750fb: free cmap on framebuffer release

Xilin Wu <sophon@radxa.com>
    drm/msm/dp: Initialize the debugfs connector pointer

Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    drm/msm/mdp5: drop cursor pipe for msm8x76

Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
    dt-bindings: display/msm: hdmi: Correct name of disallowed supplies

Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
    drm/msm: Properly handle msm_ioremap() without name

Alexandra Winter <wintera@linux.ibm.com>
    s390/ism: Zerorize dmb at allocation

Maíra Canal <mcanal@igalia.com>
    drm/vc4: Use drm_timeout_rel_to_jiffies()

Maíra Canal <mcanal@igalia.com>
    drm: Add drm_timeout_rel_to_jiffies()

Maíra Canal <mcanal@igalia.com>
    drm: Move drm_timeout_abs_to_jiffies() to drm_timeout.c

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: kaanapali: Add GCC CX power domain

Przemek Kitszel <przemyslaw.kitszel@intel.com>
    ice: size ring stats arrays from the final queue count

Przemek Kitszel <przemyslaw.kitszel@intel.com>
    ice: rebuild ring stats arrays instead of reallocating them in place

Przemek Kitszel <przemyslaw.kitszel@intel.com>
    ice: extract ice_vsi_get_num_qs()

Przemek Kitszel <przemyslaw.kitszel@intel.com>
    ice: extract ice_vsi_new_stat_arrays()

Przemek Kitszel <przemyslaw.kitszel@intel.com>
    ice: extract __ice_vsi_free_stats()

Przemek Kitszel <przemyslaw.kitszel@intel.com>
    ice: skip stats handling for channel VSIs on rebuild

Lu Yao <yaolu@kylinos.cn>
    drm/amd/display: Fix wrong plane index in dcn6 writeback latency loop

Qingfang Deng <qingfang.deng@linux.dev>
    ARM: mvebu: fix Cortex-A9 errata selection for Armada 38x

Matthias Goergens <matthias.goergens@gmail.com>
    x86/hibernate: Ignore page-zero RAM in E820 checksum

Nicolo Giuliani <nicolo.giuliani6@studio.unibo.it>
    dt-bindings: vendor-prefixes: Add Sophos

Danish Khateeb <danishkhateeb03@gmail.com>
    tools/nolibc: check for overflow in malloc()

Danish Khateeb <danishkhateeb03@gmail.com>
    tools/nolibc: stop rounding malloc() sizes up to 4096 bytes

Tianyi Chen <hi@tychen.cc>
    perf sched stats: Reject mismatched or incomplete snapshots

Leo Yan <leo.yan@arm.com>
    perf build: Build the Python extension before pylint consumers

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Use cpuset_v2() in cpuset_num_cpus()

Michal Pluta <michalpl2003@gmail.com>
    perf symbol: Don't return an unterminated Rust demangle buffer

Michal Pluta <michalpl2003@gmail.com>
    perf test demangle: Fail when demangling fails

Seongjae Jeong <jsjlee1020@gmail.com>
    f2fs: reject device aliasing without a multi-device configuration

Arnd Bergmann <arnd@arndb.de>
    f2fs: quota: fix unused-label warning

Gabor Juhos <j4g8y7@gmail.com>
    spi: spi-qpic-snand: set 'qpic_version2' flag

Takashi Iwai <tiwai@suse.de>
    ALSA: usb-audio: Fix UAC2 mixer unit request handling

Andreas Kemnade <andreas@kemnade.info>
    rtc: bd70528: properly enable wakeup

Nguyễn Văn Cao Nguyên <nguyennvc@greennode.ai>
    RDMA/irdma: Do not move a fresh RoCE QP to ERROR on RESET

Nicolas Schier <n.schier@fritz.com>
    kconfig: tests: Provide defconfig outfile for savedefconfig

Nicolas Schier <n.schier@fritz.com>
    kconfig: tests: Reset all KCONFIG_* env variables by default

Wentao Liang <vulab@iscas.ac.cn>
    pinctrl: stm32: Fix clock reference leak in stm32_pctl_probe()

Wentao Liang <vulab@iscas.ac.cn>
    pinctrl: nuvoton: Fix clock reference leak in ma35_get_bank_data()

Hongyan Xu <getshell@seu.edu.cn>
    RDMA/hfi1: quiesce SDMA asynchronous cleanup on exit

Hongyan Xu <getshell@seu.edu.cn>
    RDMA/hfi1: shut down the trap timer before unregistering

Crystal Wood <crwood@redhat.com>
    rtla/tests: Use absolute path for $RTLA

Sasha Levin <sashal@kernel.org>
    RDMA/selftests: Fix the kernel config fragment

Serhat Kumral <serhatkumral1@gmail.com>
    RDMA/siw: Fix length of first chunk in siw_try_1seg()

Quanye Yang <quanyeyang@proton.me>
    RDMA/rtrs-clt: Validate peer-supplied IO completion msg_id

Alireza Haghdoost <haghdoost@uber.com>
    perf symbols: Don't let a module's last symbol overlap the next module

Nicolas Schier <nsc@kernel.org>
    kbuild: Mark usr_gen_init_cpio as no-dot-config-target

Qingshuang Fu <fuqingshuang@kylinos.cn>
    selftests/timers: clocksource-switch: Fix unchecked open()/read()

Abdifatah Suruur <suruurism@gmail.com>
    vfio/cdx: prevent read-only region mappings from becoming writable

Abdifatah Suruur <suruurism@gmail.com>
    vfio/fsl-mc: prevent read-only region mappings from becoming writable

Abdifatah Suruur <suruurism@gmail.com>
    vfio/platform: prevent read-only region mappings from becoming writable

Quanye Yang <quanyeyang@proton.me>
    RDMA/rtrs-clt: Don't WARN on unexpected info-response opcode

Karl Mehltretter <kmehltretter@gmail.com>
    time: Prevent time64_to_tm() day truncation on 32-bit

Jiale Yao <yaojiale02@163.com>
    RDMA/cxgb4: Do not allow userspace to write the status page

Jiale Yao <yaojiale02@163.com>
    RDMA/mlx4: Do not allow the user to write to the clock page

Jiale Yao <yaojiale02@163.com>
    RDMA/mad: Reject receive completions shorter than GRH

Ian Rogers <irogers@google.com>
    perf pmu: Fix race with concurrent tracepoint creation and removal in perf list

Ian Rogers <irogers@google.com>
    perf python: Initialize debug output on module load

Ian Rogers <irogers@google.com>
    perf evsel: Clamp sample_id size for ksymbol, bpf, and text_poke events

Abhijit Gangurde <abhijit.gangurde@amd.com>
    RDMA/ionic: Fix double removal of CMB mmap entries in create QP error path

Abhijit Gangurde <abhijit.gangurde@amd.com>
    RDMA/ionic: Fix XArray initialization to use XArray flags

Norbert Szetei <norbert@doyensec.com>
    RDMA/rxe: Reject prefetch of a non-ODP MR

Binbin Deng <18983559317@163.com>
    RDMA/rxe: unpublish the per-net tunnel socket before

Quanye Yang <quanyeyang@proton.me>
    RDMA/rtrs-clt: Reject invalid queue_depth from the peer

Yili Zhang <zhangyili01@baidu.com>
    RDMA/nldev: Fix NULL deref in dumps of objects abandoned by DRIVER_FAILURE

Pengpeng Hou <hppiscas@163.com>
    clk: si5351: fail prepare when PLL reset times out

Dario Binacchi <dario.binacchi@amarulasolutions.com>
    clk: validate spread spectrum configuration

Venkat Rao Bagalkote <venkat88@linux.ibm.com>
    powerpc/interrupt: Use early_radix_enabled() in NMI real-mode guard

Abhishek Dubey <adubey@linux.ibm.com>
    powerpc/bpf: Move out dummy_tramp_addr after Long branch stub

Abhishek Dubey <adubey@linux.ibm.com>
    powerpc64/bpf: fix compare instruction emitted for tailcall

Myeonghun Pak <mhun512@gmail.com>
    clk: ti: adpll: unregister OF clock provider on remove

Danish Khateeb <danishkhateeb03@gmail.com>
    pwm: Allow 32-bit tasks to use the character device

Dairui Zhang <zhangdairui@gmail.com>
    IB/mad: fix UAF and double-free in RMPP receive reassembly

Sachin Kumar Garg <sachin.garg@oss.qualcomm.com>
    media: iris: cache work mode after computing it in iris_set_stage

Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    media: iris: reference count video instances

Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    media: iris: reject open() when the session limit is reached

Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    media: iris: guard against a NULL hfi_sys_ops in the interrupt handler

Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    media: iris: take core lock when scanning the instance list

Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    media: iris: fail firmware boot on invalid uc_region

Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    Revert "media: iris: Add Gen2 firmware autodetect and fallback"

Malte Wechter <maltewechter@gmail.com>
    rnull: configfs: add power to configfs features

Hungyu Lin <dennylin0707@gmail.com>
    media: iris: cancel sys error work on driver removal

Ruoyu Wang <ruoyuw560@gmail.com>
    media: venus: Drop session events without an instance

Selvin Xavier <selvin.xavier@broadcom.com>
    RDMA/bnxt_re: Use bnxt_ext_stats_supported for counter count selection

Selvin Xavier <selvin.xavier@broadcom.com>
    RDMA/bnxt_re: Fix the PD and DPI table size

Selvin Xavier <selvin.xavier@broadcom.com>
    RDMA/bnxt_re: Serialize dcb_wq access against async notifier

Selvin Xavier <selvin.xavier@broadcom.com>
    RDMA/bnxt_re: Initialize wqe.flags in bnxt_re_post_srq_recv()

Selvin Xavier <selvin.xavier@broadcom.com>
    RDMA/bnxt_re: Validate SRQ max_sge at create time

Selvin Xavier <selvin.xavier@broadcom.com>
    RDMA/bnxt_re: Detect wrong sge_len passed for inline

Selvin Xavier <selvin.xavier@broadcom.com>
    RDMA/bnxt_re: Fix integer overflow in send payload size computation

Jeff Chen <jeff.chen_1@nxp.com>
    wifi: nxpwifi: fix return value check in change_vif_to_sta/ap

Finn Thain <fthain@linux-m68k.org>
    swim3: Fix FDEJECT ioctl for exclusive open

Finn Thain <fthain@linux-m68k.org>
    swim: Fix FDEJECT ioctl for exclusive open

Finn Thain <fthain@linux-m68k.org>
    swim: Return -EROFS when opened with BLK_OPEN_WRITE flag

Logan Odell <loganodell@google.com>
    PCI/IOV: Read VF config values that need not match PF

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx95-15x15-frdm: fix reserved memory node names for remoteproc

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx93-11x11-evk: fix reserved memory node names for remoteproc

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx8dxl-sr-som: fix reserved memory node names for remoteproc

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx93-9x9-qsb: fix reserved memory node names for remoteproc

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx93-14x14-evk: fix reserved memory node names for remoteproc

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx93-11x11-frdm: fix reserved memory node names for remoteproc

Joseph Guo <qijian.guo@nxp.com>
    arm64: dts: imx93-11x11-frdm: factor out common parts into dtsi

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx8ulp-evk: fix reserved memory node names for remoteproc

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx8qxp-mek: fix dsp reserved memory node names for remoteproc

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx8qxp-mek: fix reserved memory node names for remoteproc

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx8qm-mek: fix dsp reserved memory node names for remoteproc

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx8qm-mek: fix reserved memory node names for remoteproc

Peng Fan <peng.fan@nxp.com>
    arm64: dts: imx8dxl-evk: fix reserved memory node names for remoteproc

Li RongQing <lirongqing@baidu.com>
    IB/isert: Don't share drop_cmd_list across concurrent connection teardowns

Li RongQing <lirongqing@baidu.com>
    RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment

Gabor Juhos <j4g8y7@gmail.com>
    spi: spi-qpic-snand: fix read location register usage in qcom_spi_config_cw_read()

Waiman Long <longman@redhat.com>
    cgroup/cpuset: Run SCHED_DEADLINE shrink test on valid partition root only

Xiang Mei (Microsoft) <xmei5@asu.edu>
    fs/ntfs3: fix slab-out-of-bounds write in attr_insert_range()

Karl Mehltretter <kmehltretter@gmail.com>
    soc: ti: k3-ringacc: Fix DMA ring initialization kernel-doc

Karl Mehltretter <kmehltretter@gmail.com>
    soc: ti: k3-ringacc: Correct ring API kernel-doc

Ian Rogers <irogers@google.com>
    perf vendor events intel: Fix snowridgex umask encoding.

Ian Rogers <irogers@google.com>
    perf vendor events intel: Fix skylakex umask encoding.

Ian Rogers <irogers@google.com>
    perf vendor events intel: Fix sierraforest umask encoding.

Ian Rogers <irogers@google.com>
    perf vendor events intel: Fix lunarlake umask encoding.

Ian Rogers <irogers@google.com>
    perf vendor events intel: Fix clearwaterforest umask encoding.

Francesco Dolcini <francesco.dolcini@toradex.com>
    arm64: dts: ti: k3-am62-verdin-zinnia: Fix main_gpio0/main_gpio1 line names size

Francesco Dolcini <francesco.dolcini@toradex.com>
    arm64: dts: ti: k3-am62-verdin-ivy: Fix main_gpio0/main_gpio1 line names size

Ian Rogers <irogers@google.com>
    perf build: Clean libperf-gtk.so in 'make clean'

Ian Rogers <irogers@google.com>
    perf test code-reading: Fix duplicate kernel maps and machine leak

Benoît Monin <benoit.monin@bootlin.com>
    perf build: Improve fix for "argument list too long" error

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192-mt6359: Fix error handling in MTKAIF calibration

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192: Propagate errors in I2S DAI DAPM event handlers

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192: Propagate errors in TDM DAI DAPM event handlers

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192: Propagate mt8192_afe_gpio_request() errors in ADDA DAI

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192: Handle regcache_sync() failure in runtime resume

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192: check return values in mt8192_afe_gpio_init()

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192: Propagate errors in mt8192_afe_gpio_request()

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192: switch to devm_clk_get_optional()

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192: fix MCK clock error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192: fix error handling in APLL enable functions

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192: fix AFE clock error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8192: fix APLL mux error handling

Ovidiu Panait <ovidiu.panait.rb@renesas.com>
    spi: rspi: Fix DMA mode when the DMA controller is built as a module

Leo Yan <leo.yan@arm.com>
    perf test: Record kcore for the CoreSight callchain test

Niko Huuskonen <niko.huuskonen.00@gmail.com>
    ALSA: caiaq: Fix the Kore controller key map

Niko Huuskonen <niko.huuskonen.00@gmail.com>
    ALSA: caiaq: Serialize access to the EP1 command buffer

Arka Mondal <arka@arkamondal.net>
    iio: dac: ad5758: Fix the offset calculation

Arka Mondal <arka@arkamondal.net>
    iio: dac: ad5758: Reject out-of-range raw values

Arka Mondal <arka@arkamondal.net>
    iio: dac: ad5758: Fix alignment for DMA safety

Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
    staging: iio: adc: ad7816: Protect sysfs attributes with mutex

Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
    staging: iio: adc: ad7816: Serialize SPI operations

Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
    staging: iio: adc: ad7816: Sort headers alphabetically

Ariana Lazar <ariana.lazar@microchip.com>
    iio: dac: mcp47feb02: protect EEPROM store sequence with mutex

Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
    dt-bindings: iio: adc: renesas,r9a09g077-adc: Drop unwired interrupts

Yilin Chen <1479826151@qq.com>
    rust: configfs: require thread-safe callback data

Fuad Tabba <fuad.tabba@linux.dev>
    of/irq: Fix device node refcount leak in of_check_msi_parent()

Chen-Yu Tsai <wenst@chromium.org>
    drm/exynos/fimd: fix register offset type in fimd_trigger()

Runyu Xiao <runyu.xiao@seu.edu.cn>
    ALSA: via82xx: use helper to activate DXS controls

Runyu Xiao <runyu.xiao@seu.edu.cn>
    ALSA: oxygen: use helper to activate the SPDIF PCM control

Yibo Tan <lhfff@tju.edu.cn>
    ASoC: amd: acp3x-es83xx: Keep an owned codec device reference

Yibo Tan <lhfff@tju.edu.cn>
    ASoC: amd: acp-es8336: Use an owned codec device reference

Yishai Hadas <yishaih@nvidia.com>
    RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it

Yishai Hadas <yishaih@nvidia.com>
    RDMA/mlx5: Set QP event handler before firmware QPC insertion

Yishai Hadas <yishaih@nvidia.com>
    RDMA/mlx5: Set RQ event handler for raw-packet QP

Yishai Hadas <yishaih@nvidia.com>
    RDMA/mlx5: Set SRQ event handler before xarray insertion

Yishai Hadas <yishaih@nvidia.com>
    RDMA/mlx5: Set WQ event handler before firmware RQ insertion

Yishai Hadas <yishaih@nvidia.com>
    RDMA/mlx5: Fix mlx5_ib_dev_res_init() failure when XRC cap is absent

Yishai Hadas <yishaih@nvidia.com>
    RDMA/vmw_pvrdma: Pin QP and SRQ rings writable to match device DMA write access

Yishai Hadas <yishaih@nvidia.com>
    RDMA/hns: Pin CQ buffer writable to match device DMA write access

Serhat Kumral <serhatkumral1@gmail.com>
    RDMA/irdma: Free IRQ when CEQ vector mapping fails

Ginger Li <ginger.jzllee@gmail.com>
    wifi: mac80211: Fix a race when expiring a mesh path

Andrei Otcheretianski <andrei.otcheretianski@intel.com>
    wifi: mac80211: implement NAN non-evacuable channels

Andrei Otcheretianski <andrei.otcheretianski@intel.com>
    wifi: cfg80211: add NL80211_CMD_NAN_SET_NON_EVAC_CHANNELS

Mateusz Nowicki <mateusz.nowicki@posteo.net>
    arm64: dts: st: fix arm,smc-id of the SMC watchdog on stm32mp2

Guanghui Feng <guanghuifeng@linux.alibaba.com>
    iommu/vt-d: Fix IQE handling to cover all descriptors in submission range

Lu Baolu <baolu.lu@linux.intel.com>
    iommu/vt-d: Drop old iopf ref only after attach succeeds

Lu Baolu <baolu.lu@linux.intel.com>
    iommu/vt-d: Fix iopf refcount leak in nested attach

Lu Baolu <baolu.lu@linux.intel.com>
    iommu/vt-d: Reserve scalable-mode DIDs from PASID entries during copy

Lu Baolu <baolu.lu@linux.intel.com>
    iommu/vt-d: Handle DID reservation errors when copying context tables

Lu Baolu <baolu.lu@linux.intel.com>
    iommu/vt-d: Do not ignore context table copy failures

Zhenzhong Duan <zhenzhong.duan@intel.com>
    iommu/vt-d: Fix page table level calculation in compute_vasz_lg2_ss()

Johannes Berg <johannes.berg@intel.com>
    um: time-travel: fix sched_yield() behaviour

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    arm64: dts: qcom: glymur-asus-zenbook-a16: Remove RTC-through-EFIvars

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: sm8150: Use SM8150_CX for the SDHC power domain

Myeonghun Pak <mhun512@gmail.com>
    PCI: aardvark: Disable PHY on probe failures

Xin Liu <xin.liu@oss.qualcomm.com>
    arm64: dts: qcom: hamoa-iot-evk: use on-board crystal for PS8830 retimers

Xin Liu <xin.liu@oss.qualcomm.com>
    arm64: dts: qcom: purwa-iot-evk: use on-board crystal for PS8830 retimers

Phil Sutter <phil@nwl.cc>
    netfilter: nfnetlink: Fix for interrupted hook dumps

Linus Walleij <linusw@kernel.org>
    ARM: dts: gemini: Use a level-high interrupt for TVE200

Fernando Fernandez Mancera <fmancera@suse.de>
    netfilter: synproxy: fix reset of ct seqadj when reopening a connection

Sasha Levin <sashal@kernel.org>
    kbuild: keep .modinfo when vmlinux is linked with --gc-sections

Lorenzo Stoakes (ARM) <ljs@kernel.org>
    kbuild: do not allocate .modinfo in vmlinux

Nathan Chancellor <nathan@kernel.org>
    kbuild: Remove alignment on .modinfo section

Sam Day <me@samcday.com>
    drm/msm/a3xx: fix VBIF halt mask for A306/A306A

Akhil P Oommen <akhilpo@oss.qualcomm.com>
    drm/msm/a6xx: Fix RPMH dependency votes

Akhil P Oommen <akhilpo@oss.qualcomm.com>
    drm/msm/a6xx: Fix secondary rail vote in ARC votes

Akhil P Oommen <akhilpo@oss.qualcomm.com>
    drm/msm/a6xx: Honor perfmode_bw threshold on A8x

Daniel Palmer <daniel@0x0f.com>
    m68k: apollo: Fix interrupt setup

Hui Su <sh_def@163.com>
    perf synthetic-events: Check schedstat domain allocation failure

Jie Zhang <jie.zhang@oss.qualcomm.com>
    dt-bindings: display/msm/gmu: Fix Glymur's compatible

Shashank Mohan Jain <jain.sm@gmail.com>
    bitmap: bitmap_parselist(): don't wrap around on a huge group size

Shashank Mohan Jain <jain.sm@gmail.com>
    bitmap: bitmap_parselist(): reject trailing characters after group size

Shashank Mohan Jain <jain.sm@gmail.com>
    bitmap: bitmap_parse(): reject non-hex character before 8 digits

Alexandra Lu <alexandra.lu@nokia.com>
    bus: mhi: host: pci_generic: Fix runtime PM imbalance for no_m3 devices

WangYuli <wangyuli@uniontech.com>
    MIPS: dec: Add missing <linux/interrupt.h> inclusion to reset.h

WangYuli <wangyuli@uniontech.com>
    MIPS: Only check -msym32 when need-compiler

Orgad Shaneh <orgads@gmail.com>
    MIPS: Octeon: size the swiotlb for a modular OHCI platform driver

Danish Khateeb <danishkhateeb03@gmail.com>
    tools/nolibc: fix FD_SET(), FD_CLR() and FD_ISSET() on 64-bit

Danish Khateeb <danishkhateeb03@gmail.com>
    tools/nolibc: fix readdir_r() with 64-bit directory offsets

Peter Wang <peter.wang@mediatek.com>
    scsi: ufs: core: Serialize AHIT register access between sysfs and host driver

Peter Wang <peter.wang@mediatek.com>
    scsi: ufs: core: Always notify POST_CHANGE even on gear switch failure

Tony Luck <tony.luck@intel.com>
    x86/resctrl: Update documented unit for the "activity" event

Eric Dumazet <edumazet@kernel.org>
    net: synchronize proc_do_rss_key() with netdev_rss_key_fill()

Kumar Kartikeya Dwivedi <memxor@gmail.com>
    bpf: Skip zero-length stream writes

Daniel Borkmann <daniel@iogearbox.net>
    bpf: Clear the insn array used flag with release semantics

Daniel Borkmann <daniel@iogearbox.net>
    bpf: Clear insn array jitted pointers on map reuse

Daniel Borkmann <daniel@iogearbox.net>
    bpf: Don't remove indirect jump targets in the nop removal pass

Daniel Borkmann <daniel@iogearbox.net>
    bpf: Leave out the hidden exit edge of a subprogram without an exit

Daniel Borkmann <daniel@iogearbox.net>
    bpf: Rebase the exception callback subprog when dead subprogs are removed

Daniel Borkmann <daniel@iogearbox.net>
    bpf: Bound the number of indirect jump edges in a program

Daniel Borkmann <daniel@iogearbox.net>
    bpf: Avoid quadratic successor rescan in bpf_compute_scc

Vinayak Katoch <vinayak.katoch@oss.qualcomm.com>
    arm64: dts: qcom: agatti: Add memory-region for audio PD

Aaron Kling <webgeek1234@gmail.com>
    dt-bindings: vendor-prefixes: Add Retroid Pocket

Adam Skladowski <a39.skl@gmail.com>
    dt-bindings: vendor-prefixes: Add LeEco

Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    ARM: dts: qcom: msm8974: add MDSS reset

Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
    arm64: dts: qcom: qcs8300-ride: fix SerDes PHY regulator supplies

Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
    arm64: dts: qcom: monaco-evk: fix SerDes PHY regulator supplies

Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
    arm64: dts: qcom: lemans-ride-common: fix SerDes PHY regulator supplies

Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
    arm64: dts: qcom: lemans-evk: fix SerDes PHY regulator supplies

Andrei Vagin <avagin@google.com>
    x86/fpu: Fix potential underflow in xstate_calculate_size()

Bruno Produit <bruno.produit@trailofbits.com>
    hfs/hfsplus: serialize B-tree close against folio release

Paul Sajna <sajattack@postmarketos.org>
    arm64: dts: qcom: sdm845-lg: fix sdcard pinctrl nodes

Aaron Kling <webgeek1234@gmail.com>
    dt-bindings: vendor-prefixes: Add Chip Wealth Technology

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8183: Fix APLL enable error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8183: Fix clock handling in mux disable path

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8183: Fix wrong clock cleanup on clk_set_parent() failure

Sudeep Holla <sudeep.holla@kernel.org>
    ACPI: PCC: Free channel on OpRegion deactivation

Sudeep Holla <sudeep.holla@kernel.org>
    ACPI: PCC: Preserve shared memory signature in OpRegion handler

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf annotate-data: Resolve type DIEs in the debug file they came from

Sudeep Holla <sudeep.holla@kernel.org>
    ACPICA: Fix PCC OperationRegion command offsets

Breno Leitao <leitao@debian.org>
    ACPICA: Fix memory leak in acpi_ds_create_field()

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf test workload: Use unsigned int in code_with_type instead of uint

Abel Vesa <abel.vesa@oss.qualcomm.com>
    dt-bindings: clock: qcom: sm8750-gcc: Add CX power domain

Xin Yin <yinxin.x@bytedance.com>
    writeback: size foreign flushes by target wb dirty pages

Pardeep Kaur <pardeep.kaur@oss.qualcomm.com>
    wifi: ath12k: fix out-of-bounds access on TX stats arrays

Jeff Johnson <jeff.johnson@oss.qualcomm.com>
    wifi: ath11k: fix reg_info_store leak in ath11k_service_ready_ext_event()

Kang Yang <kang.yang@oss.qualcomm.com>
    wifi: ath12k: avoid double DMA unmap of held monitor RX buffers

Kang Yang <kang.yang@oss.qualcomm.com>
    wifi: ath12k: fix skb leak on monitor PPDU ID wraparound

Kang Yang <kang.yang@oss.qualcomm.com>
    wifi: ath12k: place dp_mon_mpdu on stack in mon dst reap loop

Kang Yang <kang.yang@oss.qualcomm.com>
    wifi: ath12k: fix stale tail_msdu pointer returned from mpdu_pop

Kang Yang <kang.yang@oss.qualcomm.com>
    wifi: ath12k: free pending MSDUs on duplicate mon link descriptor

Kang Yang <kang.yang@oss.qualcomm.com>
    wifi: ath12k: fix skb leak on paddr mismatch in wifi7 mon RX pop

Arnd Bergmann <arnd@arndb.de>
    ASoC: amd: acp: add EFI dependency for selecting TAS2783

Abel Vesa <abel.vesa@oss.qualcomm.com>
    clk: qcom: gcc-qcs615: Fix GCC_CPUSS_GNOC_CBCR offset

Qingfang Deng <qingfang.deng@linux.dev>
    mtd: block: prevent reclaim I/O during request processing

Nia Su <nia.su@sifive.com>
    perf evlist: Don't restrict uncore events to PMU CPUs

Jiebin Sun <jiebin.sun@intel.com>
    perf tests c2c: Report skip when the workload fails

Jiebin Sun <jiebin.sun@intel.com>
    perf c2c: Fix documented default coalesce fields

Muzaffer Kadir <muzafferkadir@mainlining.org>
    dt-bindings: vendor-prefixes: Add General Mobile

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: x1p42100-thinkbook-16: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: x1-hp-omnibook-x14: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: x1-dell-thena: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: x1-asus-zenbook-a14: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: x1-asus-vivobook-s15: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: x1e80100-qcp: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: medion-sprchrgd-14-s1: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: x1e80100-yoga-slim7x: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: honor-magicbook-art-14: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: x1e80100-dell-xps13-9345: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: x1e78100-t14s: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: x1e001de-devkit: Mark the EC reset gpio as reserved

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: x1-crd: Mark the EC reset gpio as reserved

Charlie Garner <charlie@akao.au>
    arm64: dts: qcom: x1e80100-dell-inspiron-14-plus-7441: fix touchscreen i2c address

Alex Williamson <alex.williamson@nvidia.com>
    vfio: Reject a second cdev open before mutating shared device state

Ian Rogers <irogers@google.com>
    perf machine: Add session back pointer to fix out of bounds read

Yibo Tan <lhfff@tju.edu.cn>
    sysctl: unregister tables before freeing bitmap

Michael J. Ruhl <michael.j.ruhl@intel.com>
    platform/x86/intel/pmt: complete pcidev to device update

Sandipan Das <sandipan.das@amd.com>
    perf jevents: Limit the number of JSON reading workers

Joanne Koong <joannelkoong@gmail.com>
    fuse: zero the correct range on a short read reply

Tengda Wu <wutengda@huaweicloud.com>
    perf llvm: Fix memory leak of args->fileloc in symbol__disassemble_llvm()

Hao Sun <sunhao.th@gmail.com>
    bpf: Fix uninit read for helper mem args on partially spilled slots

Shrikanth Hegde <sshegde@linux.ibm.com>
    powerpc/ftrace: Don't restore r13 during ftrace_regs_caller

Hao Sun <sunhao.th@gmail.com>
    bpf: Fix uninit read for non-fetch atomics on partially spilled slots

Rob Herring (Arm) <robh@kernel.org>
    dt-bindings: arm: mediatek: Fix MT6779 audsys compatible

Pengpeng Hou <hppiscas@163.com>
    iio: accel: bma220: publish the SPI driver ACPI alias

Alexei Starovoitov <ast@kernel.org>
    bpf: Don't converge a loop on an iterator that was created anew

Kumar Kartikeya Dwivedi <memxor@gmail.com>
    bpf: Add accessors for verifier stack slots

Alexei Starovoitov <ast@kernel.org>
    bpf: Fix overflow of jump offset in may_goto expansion

Alexei Starovoitov <ast@kernel.org>
    bpf: Adjust pc-relative insn copied into its own patch

Alexei Starovoitov <ast@kernel.org>
    bpf, x86: Fix timed may_goto with private stack

Myeonghun Pak <mhun512@gmail.com>
    spi: rockchip-sfc: skip DMA cleanup in PIO mode

Jiawen Liu <1298662399@qq.com>
    spi: rockchip-sfc: disable runtime PM in remove

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: fsl_asrc_m2m: fix pm_runtime usage counter leak on error

James Clark <james.clark@linaro.org>
    perf buildid-list: Fix empty output for AUX data

Jens Remus <jremus@linux.ibm.com>
    perf evsel: Improve callchain warning for s390

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8188: fix clk leak on error in audsys_clk_register

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8188: mt8188-afe-pcm: Handle runtime resume errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8188: mt8188-afe-clk: Handle clock enable errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8188: mt8188-afe-clk: Propagate regmap update errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8188: mt8188-afe-clk: Handle tuner clock enable errors

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: rt5665: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: rt5660: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: rt5659: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: rt5616: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: rt1318: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: rt1308: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: rt1305: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: rt1016: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: rt1011: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: nau8540: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: es8323: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: es8316: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: ak4642: return cache sync errors from resume

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: adau17x1: return cache sync errors from resume

Slavin Liu <bolin.liu@seu.edu.cn>
    ASoC: fsl_asrc: check the second front-end DMA channel

Pu Lehui <pulehui@huawei.com>
    bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscv

Puranjay Mohan <puranjay@kernel.org>
    bpf: Look at frame 0 when telling async callback entries apart

Wei Huang <wei.huang2@amd.com>
    PCI/TPH: Validate the firmware Steering Tag response

Chuck Lever <cel@kernel.org>
    NFS: use TCP for MOUNT when xprtsec= selects TLS

Danish Khateeb <danishkhateeb03@gmail.com>
    tools/nolibc: fix verrx() and errx() message formatting

Syed Saba Kareem <Syed.SabaKareem@amd.com>
    ASoC: amd: acp: fix TAS2783 SoundWire codec unmet dependencies

Thomas Falcon <thomas.falcon@intel.com>
    perf mem: Fix size tracking for mem_lvl's in perf_script__meminfo_scnprintf()

Shengjiu Wang <shengjiu.wang@nxp.com>
    ASoC: fsl_asrc: use regmap_write_bits to update clock source registers

Kumar Kartikeya Dwivedi <memxor@gmail.com>
    bpf: Check fastcall stack contract once for all stack accesses

Dmitrii Tulnov <tulnov.dl@gmail.com>
    kconfig: warn about malformed KCONFIG_PROBABILITY values

Lizhi Hou <lizhi.hou@amd.com>
    accel/amdxdna: Preallocate hardware context schedulers

Matteo Kloiber <kernel@matt3o12.de>
    rust: scatterlist: honor the device's maximum segment size

Florian Fainelli <florian.fainelli@broadcom.com>
    um: Add definition of __NR_close_range for older host OSs

Myeonghun Pak <mhun512@gmail.com>
    mfd: da9150: Balance IRQ wake on teardown

Myeonghun Pak <mhun512@gmail.com>
    mfd: intel_quark_i2c_gpio: Manage the fixed-rate clock

Eric Anderson <ejona86@gmail.com>
    mfd: rk8xx: Register poweroff handler in atomic phase

Charles Keepax <ckeepax@opensource.cirrus.com>
    mfd: cs42l43: Move cancel_work_sync() into remove

Jiale Yao <yaojiale02@163.com>
    ext2: drain in-flight DIO before buffered write fallback

Karl Mehltretter <kmehltretter@gmail.com>
    iommufd: Fix iommufd_hw_capabilities reference in kernel-doc

Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
    arm64: dts: renesas: r9a09g087: Drop unwired ADC interrupts

Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
    arm64: dts: renesas: r9a09g077: Drop unwired ADC interrupts

Marek Vasut <marek.vasut+renesas@mailbox.org>
    arm64: dts: renesas: ironhide: Align inline ECC carveout sizes with bootloader settings

Rong Zhang <i@rong.moe>
    leds: class: Remove hardware control trigger when writing brightness

Rong Zhang <i@rong.moe>
    leds: trigger: Move led_trigger_is_hw_controlled() to the right place

Rong Zhang <i@rong.moe>
    leds: class: Always protect brightness_show() with led_access

Hui Su <sh_def@163.com>
    bpftool: Fix sparse CPU IDs in prog profile

Mykyta Yatsenko <yatsenko@meta.com>
    bpftool: Scale counters and report cycles per run

Mykyta Yatsenko <yatsenko@meta.com>
    bpftool: Group profile events by CPU

Mykyta Yatsenko <yatsenko@meta.com>
    bpftool: Accept zero perf counter snapshots

Hui Su <sh_def@163.com>
    bpftool: Fix CPU IDs in per-CPU map output

Yuan Chen <chenyuan@kylinos.cn>
    bpf: Keep target extended until its last freplace link detaches

Danish Khateeb <danishkhateeb03@gmail.com>
    tools/nolibc: fix WIFSIGNALED() for status 0

Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
    clk: qcom: fix SM6115 lpasscc register offset

Sivansh Gupta <sivansh.gupta@oss.qualcomm.com>
    clk: qcom: Fix CLK_GLYMUR_GPUCC default and CLK_GLYMUR_EVACC duplicate

Esteban Urrutia <esteuwu@proton.me>
    clk: qcom: alpha-pll: Check Lucid Ole PLL status before configuring

Esteban Urrutia <esteuwu@proton.me>
    clk: qcom: dispcc-sm8450: Fix disp_cc_mdss_mdp_clk_src ops

Taniya Das <taniya.das@oss.qualcomm.com>
    clk: qcom: nwgcc-nord: Add video axi clock resets for Nord

Oualid Derouiche <oualid.derouiche@kontron.de>
    arm64: dts: imx8mp-kontron: Fix LVDS clock frequency for DL device

Vincent Jardin <vjardin@free.fr>
    dt-bindings: vendor-prefixes: add Free Mobile

Georgios Androutsopoulos <georgeandrout13@gmail.com>
    rust: clk: document overflow panics in `Hertz` constructors

Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
    drm/amd/display: Fix null deref of link_enc in dce110_enable_tmds_link_output

Fangzhi Zuo <jerry.zuo@amd.com>
    drm/amd/display: Restore FreeSync VCP code check for HDMI/PCON sinks

Fangzhi Zuo <jerry.zuo@amd.com>
    drm/amd/display: Force FreeSync range minimum on quirky panels

Linus Walleij <linusw@kernel.org>
    ARM: dts: ux500: Convert HREF audio to audio-graph-card2

Lijo Lazar <lijo.lazar@amd.com>
    drm/amdgpu: Move GC v12.1 spm vmid init to hw init

Lijo Lazar <lijo.lazar@amd.com>
    drm/amdgpu: Add workaround to enable GCv12.1 MGCG

Le Ma <le.ma@amd.com>
    drm/amdgpu: disable GFX clockgating for GC 12.1.0

Even Xu <even.xu@intel.com>
    HID: Intel-thc-hid: Intel-quickspi: Use hid_safe_input_report()

Even Xu <even.xu@intel.com>
    HID: Intel-thc-hid: Intel-quicki2c: Use hid_safe_input_report()

Varun Gupta <varun.gupta@intel.com>
    drm/pagemap: Drop ratelimiting from dev_unhold_work debug trace

Zongmin Zhou <zhouzongmin@kylinos.cn>
    serial: sifive: fix off-by-one in console port bounds check

Malathi A <malathi.a2000@gmail.com>
    serial: 8250_uniphier: Use devm_clk_get_enabled()

Myeonghun Pak <mhun512@gmail.com>
    serial: sh-sci: Unregister UART on sysfs setup failure

Stefan Wahren <wahrenst@gmx.net>
    dt-bindings: phy: ti,tcan104x-can: Fix property constrains

Li RongQing <lirongqing@baidu.com>
    RDMA/mlx5: Use DEFINE_RAW_FLEX for leftovers flow attributes

Linmao Li <lilinmao@kylinos.cn>
    serial: 8250_mxpcie: take the line settings from the new termios

Linmao Li <lilinmao@kylinos.cn>
    serial: 8250_mxpcie: only unregister the ports that were registered

Linmao Li <lilinmao@kylinos.cn>
    serial: 8250_mxpcie: set the driver data before registering ports

Tate Whiteberg <whiteberg@arista.com>
    serial: 8250_mid: wait for LSR tx empty before setting termios

Tate Whiteberg <whiteberg@arista.com>
    serial: 8250: export and rename wait_for_xmitr()

Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
    serial: 8250: hub6: Add cleanup code

Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
    serial: 8250: Fix corner case for port matching

Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
    serial: txx9: Drop noop probe function and dangerous remove callback

Dmitry Sinyavin <sinyavin@gmail.com>
    serial: msm: select PM_OPP

Guangshuo Li <lgs201920130244@gmail.com>
    media: staging/ipu7: release ISYS firmware resources on remove

Ginger Li <ginger.jzllee@gmail.com>
    media: i2c: ov5648: Fix a data race on state->streaming

Finn Thain <fthain@linux-m68k.org>
    swim: Don't search beyond the first data mark

Finn Thain <fthain@linux-m68k.org>
    swim: Revisit delays

Finn Thain <fthain@linux-m68k.org>
    swim: Check drive ready bit

Finn Thain <fthain@linux-m68k.org>
    swim: Deduplicate polling loops

Finn Thain <fthain@linux-m68k.org>
    swim: Remove redundant RELAX actions

Finn Thain <fthain@linux-m68k.org>
    swim: Convert to blocking queue

Finn Thain <fthain@linux-m68k.org>
    swim: Fix buffer overflow

Finn Thain <fthain@linux-m68k.org>
    swim: Don't use the mark register to read data

Finn Thain <fthain@linux-m68k.org>
    swim: Check error register during sector read

Finn Thain <fthain@linux-m68k.org>
    swim: Simplify return value initialization

Finn Thain <fthain@linux-m68k.org>
    swim: Check for CRC errors

Finn Thain <fthain@linux-m68k.org>
    swim: Handle FIFO timeout error

Finn Thain <fthain@linux-m68k.org>
    swim: Add track zero recalibration delay

Finn Thain <fthain@linux-m68k.org>
    swim: Recalibrate when drive is probed

Finn Thain <fthain@linux-m68k.org>
    swim: Don't start motor until medium is present

Finn Thain <fthain@linux-m68k.org>
    swim: Enable clock divider only where appropriate

Finn Thain <fthain@linux-m68k.org>
    swim: Refactor SWIM setup

Finn Thain <fthain@linux-m68k.org>
    swim: Configure parameter memory

Finn Thain <fthain@linux-m68k.org>
    swim: Perform ISM/IWM mode switching according to specs

Finn Thain <fthain@linux-m68k.org>
    swim: Don't disable drive after every sector

Finn Thain <fthain@linux-m68k.org>
    swim: Enable the drive when probing

Finn Thain <fthain@linux-m68k.org>
    swim: Select appropriate drive once only

Finn Thain <fthain@linux-m68k.org>
    swim: Assert strobe with stable outputs

Li RongQing <lirongqing@baidu.com>
    RDMA/mlx5: Guard steering anchor resource destruction on create error

Jiale Yao <yaojiale02@163.com>
    crypto: ccp - kill v5 IRQ tasklet during teardown

Jiale Yao <yaojiale02@163.com>
    crypto: ccp - kill v3 IRQ tasklet during teardown

Muhammad Bilal <meatuni001@gmail.com>
    crypto: ccp - fix SFS ioctl race against device teardown

Ahsan Atta <ahsan.atta@intel.com>
    crypto: qat - hold cfg->lock when accessing config sections

Weili Qian <qianweili@huawei.com>
    crypto: hisilicon/hpre - remove dma_free_coherent on NULL req->dst in ECDH

Herbert Xu <herbert@gondor.apana.org.au>
    crypto: api - Fix DUP_FIRST crash on unregister

Pengpeng Hou <pengpeng@iscas.ac.cn>
    crypto: starfive - propagate clock and reset errors

Jiawen Liu <1298662399@qq.com>
    crypto: starfive - handle clock enable failures

Pengpeng Hou <pengpeng@iscas.ac.cn>
    hwrng: starfive - propagate clock and reset errors

Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
    crypto: asymmetric_keys/pkcs7 - Check all signers before waiving authattrs rejection

Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
    crypto: asymmetric_keys/x509 - copy X.509 TBS for data signature algorithms

Wentao Liang <vulab@iscas.ac.cn>
    RDMA/siw: Fix qp use-after-free in siw_get_base_qp()

Wentao Liang <vulab@iscas.ac.cn>
    RDMA/mlx5: Fix RQ resource reference leak in mlx5_ib_wq_event()

Wentao Liang <vulab@iscas.ac.cn>
    RDMA/cxgb4: Fix skb reference leak in rx_pkt()

Wentao Liang <vulab@iscas.ac.cn>
    RDMA/cxgb4: Fix neigh reference leak in rx_pkt()

Slavin Liu <bolin.liu@seu.edu.cn>
    RDMA/irdma: check vport device allocation

Kim Wooseok <5mghybrid@khu.ac.kr>
    wifi: rtl8xxxu: preserve RX requests across recoverable transfer errors

Kim Wooseok <5mghybrid@khu.ac.kr>
    wifi: rtl8xxxu: unwind incomplete receive startup

Kim Wooseok <5mghybrid@khu.ac.kr>
    wifi: rtl8xxxu: free RX skb when URB submission fails

Ping-Ke Shih <pkshih@realtek.com>
    wifi: rtw89: correct dependency of the multicolor LED

Mauricio Faria de Oliveira <mfo@igalia.com>
    x86/pvh: Really inline memcmp() and memset() to fix unbootable VMs

Mauricio Faria de Oliveira <mfo@igalia.com>
    x86/asm: Group inline string functions

Mauricio Faria de Oliveira <mfo@igalia.com>
    x86/asm, x86/boot: Carve out inline memcmp() into a separate header

Mauricio Faria de Oliveira <mfo@igalia.com>
    x86/boot: Remove redundant "cc" clobber in memcmp() and document it

Hisam Mehboob <hisamshar@gmail.com>
    vfio: selftests: Include <libgen.h> for basename() on non-glibc builds

Cheng-Yang Chou <yphbchou0911@gmail.com>
    selftests/sched_ext: Fix rt_stall runner abort

Xueqin Luo <luoxueqin@kylinos.cn>
    cpufreq/amd-pstate: Restore previous EPP if profile_name allocation fails

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device()

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()

Zhijian Han <hanzhijian1991@gmail.com>
    PCI: imx6: Fix resource leaks in probe error paths

Pei Xiao <xiaopei01@kylinos.cn>
    ata: pata_parport: fix parport attach idr_alloc for

Jeremy Bongio <jbongio@google.com>
    RDMA/irdma: Use kvzalloc for lvl2 leafmem allocation

Francesco Dolcini <francesco.dolcini@toradex.com>
    arm64: dts: ti: k3-am62-verdin: fix main_gpio0/main_gpio1 line names size

Francesco Dolcini <francesco.dolcini@toradex.com>
    arm64: dts: ti: k3-am69-aquila: fix AQUILA_B73 gpio-line-names typo

Judith Mendez <jm@ti.com>
    arm64: dts: ti: k3-am62l-evm: Remove unnecessary internal pullups for MMC0

Jisheng Zhang <jszhang@kernel.org>
    regulator: mp886x: fix pontential division by zero

Jisheng Zhang <jszhang@kernel.org>
    regulator: mp886x: check get_voltage_sel() return value

Dmitry Antipov <dmantipov@yandex.ru>
    leds: flash: Prevent using uninitialized variable in flash_fault_show()

Manuel Fombuena <fombuena@outlook.com>
    leds: st1202: Cap the channel current in st1202_led_set()

Manuel Fombuena <fombuena@outlook.com>
    leds: st1202: Honour max_brightness when blinking

Manuel Fombuena <fombuena@outlook.com>
    leds: st1202: Clear unused pattern slots in blink_set()

Manuel Fombuena <fombuena@outlook.com>
    leds: st1202: Do not set brightness from atomic context

Manuel Fombuena <fombuena@outlook.com>
    leds: st1202: Take a reference on the LED firmware node

Manuel Fombuena <fombuena@outlook.com>
    leds: st1202: Program the channel current for hardware patterns

Manuel Fombuena <fombuena@outlook.com>
    leds: st1202: Spell out the phase-shift configuration bit

Manuel Fombuena <fombuena@outlook.com>
    leds: st1202: Add hardware-accelerated blink support

Manuel Fombuena <fombuena@outlook.com>
    leds: st1202: Scale pattern brightness to the 12-bit PWM range

Manuel Fombuena <fombuena@outlook.com>
    leds: st1202: Name pattern index variables consistently

Manuel Fombuena <fombuena@outlook.com>
    leds: st1202: Clear unused pattern slots in pattern_set()

Jacob Moroni <jmoroni@google.com>
    RDMA/irdma: Fix erroneous -ENOMEM for large MR registration

Li RongQing <lirongqing@baidu.com>
    RDMA/core: Fix partial copy of IPv6 flow_lbl in LAG hash skb

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf annotate-data: Show the sample count in the data-type browser

Cong Nguyen <congnt264@gmail.com>
    leds: lm3692x: Fix regulator/gpio leak and wrong enabled state on last write failure

Ian Rogers <irogers@google.com>
    perf build: Remove leftovers of removed build options

Ian Rogers <irogers@google.com>
    perf build: Check the version of the compiler that is used

Ian Rogers <irogers@google.com>
    perf build: Use the given CC rather than clang in clang builds

Ian Rogers <irogers@google.com>
    perf build: Only pass clang flags to CXX when CXX is clang

Ian Rogers <irogers@google.com>
    perf symbol: Fix the build when demangling with libbfd

Ian Rogers <irogers@google.com>
    perf libbfd: Fix the clang -Wthread-safety build failure

Chen Pei <cp0613@linux.alibaba.com>
    perf test: Fix a leaked map reference in the arch dwarf unwind tests

Hui Su <sh_def@163.com>
    perf synthetic-events: Fix schedstat event lifetime handling

Haibo Chen <haibo.chen@nxp.com>
    leds: pca9532: Check i2c_smbus_read_byte_data() return value

Christian Brauner <brauner@kernel.org>
    selftests/coredump: discard the right amount after the coredump request

Miles Krause <mileskrause5200@gmail.com>
    leds: lp8860: Fix device_node leak in lp8860_probe()

Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    mm/gup: honour FOLL_PIN in NOMMU __get_user_pages_locked()

Yogesh Gaur <yogeshgaur.83@gmail.com>
    md/raid5: give the io_unit slab caches per-array names

Kees Cook <kees@kernel.org>
    randstruct: fix container_of() false positives after __mptr removal

Arnd Bergmann <arnd@arndb.de>
    KMSAN: fix memset() when using fortify-source, again

Jack Wang <jinpu.wang@cloud.ionos.com>
    md: fix mddev_unlock() called without holding lock in lbs_store()

Arnd Bergmann <arnd@arndb.de>
    sfc: fix CONFIG_CXL_MEM dependency

Andrea Parri <parri.andrea@gmail.com>
    pstore: reject persistent RAM zones too small for the buffer header

Andrea Parri <parri.andrea@gmail.com>
    pstore: don't leave an ERR_PTR in the ramoops zone pointer

Adrian Hunter <adrian.hunter@intel.com>
    i3c: Restrict HDR modes to those supported by the bus and target

Adrian Hunter <adrian.hunter@intel.com>
    i3c: mipi-i3c-hci: Stop rings gracefully when suspending

Adrian Hunter <adrian.hunter@intel.com>
    i3c: mipi-i3c-hci: Move DMA suspend/resume callbacks

Adrian Hunter <adrian.hunter@intel.com>
    i3c: mipi-i3c-hci: Process multiple IBIs per interrupt

Adrian Hunter <adrian.hunter@intel.com>
    i3c: mipi-i3c-hci: Fix runtime PM violation in i3c_hci_free_ibi()

Adrian Hunter <adrian.hunter@intel.com>
    i3c: mipi-i3c-hci: Restore controller state if i3c_hci_enable_ibi() returns an error

Adrian Hunter <adrian.hunter@intel.com>
    i3c: master: Match ACPI targets to the correct bus controller instance

Yun Lu <luyun@kylinos.cn>
    selftests/bpf: Clean up child when task_work__open() fails

Arnd Bergmann <arnd@arndb.de>
    bpf: Add printf attributes

Leon Hwang <leon.hwang@linux.dev>
    bpftool: Compute map size of light skeletons at runtime

Ovidiu Panait <ovidiu.panait.rb@renesas.com>
    thermal/drivers/renesas/rzg3e: Fix race between set_trips() and get_temp()

Ovidiu Panait <ovidiu.panait.rb@renesas.com>
    thermal/drivers/renesas/rzg3e: Fix runtime PM handling of compare irq

Ovidiu Panait <ovidiu.panait.rb@renesas.com>
    drivers/thermal/renesas/rzg3e: Fix signed integer overflow in temp_to_code()

Neil Armstrong <neil.armstrong@linaro.org>
    dt-bindings: vendor-prefixes: add vendor prefix for Nexperia B.V.

Geert Uytterhoeven <geert+renesas@glider.be>
    pmdomain: renesas: r8a78000: Fix lockdep false positive

Pengpeng Hou <hppiscas@163.com>
    pmdomain: imx: Propagate SCU provider registration failures

Xiang Mei <xmei5@asu.edu>
    fs/ntfs3: validate $SDH entry size in ntfs_insert_security

Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
    fs/ntfs3: validate EA entry layout against ef->size in ntfs_read_ea

Zhan Xusheng <zhanxusheng1024@gmail.com>
    fs/ntfs3: fix valid_size not being updated in attr_allocate_frame()

Xiang Mei (Microsoft) <xmei5@asu.edu>
    fs/ntfs3: check INDEX_ROOT resident size before use in ntfs_read_mft()

Frank Wunderlich <frank-w@public-files.de>
    arm64: dts: mediatek: mt7988a-bpi-r4pro: label gpio-hogs

Maciej Strozek <mstrozek@opensource.cirrus.com>
    ASoC: SDCA: Check return value on a missing FDL_Set_Index Range

Maciej Strozek <mstrozek@opensource.cirrus.com>
    ASoC: SDCA: Improve scanning the SWFT during FDL

Andrew Gaylard <ag@ffroot.co.za>
    pinctrl: fix PINCTRL_SPPCTL=m

Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
    drm/connector: hdmi: Handle reset() state allocation failure

Daniel Borkmann <daniel@iogearbox.net>
    bpf, lsm: Reject writes into the BPF LSM program context

Slavin Liu <bolin.liu@seu.edu.cn>
    clk: starfive: jh7110: reject oscillator lookup errors

Wentao Liang <vulab@iscas.ac.cn>
    clk: versatile: clk-icst: Fix node reference leak in of_syscon_icst_setup()

Triet Hoang <triet.hoang.dev@gmail.com>
    clk: raspberrypi: Handle cpufreq device registration failure

Karl Asseily <karl@asseily.com>
    dt-bindings: vendor-prefixes: add ESS Technology

Ian Rogers <irogers@google.com>
    perf libbfd: Report success when an address is found

Ian Rogers <irogers@google.com>
    perf dso: Separate libbfd and cmd addr2line caches to fix confusion

Ian Rogers <irogers@google.com>
    perf libdw: Fix Dwfl discovery with split files

Zide Chen <zide.chen@intel.com>
    perf topdown: Don't require config1==0 for a slots event

Alejandro Lucero <alucerop@amd.com>
    ACPI: HMAT: preserve hmat_adist_nb notifier block

Guixin Liu <kanie@linux.alibaba.com>
    cxl/memdev: Fix deadlock between poison debugfs and cxl_mem unbind

Guixin Liu <kanie@linux.alibaba.com>
    driver core: Add conditional guard support for device_trylock()

Felix Gu <ustc.gu@gmail.com>
    spi: mxic: fix ps_clk leak in runtime resume

Linus Walleij <linusw@kernel.org>
    ASoC: ab8500: Skip digital microphone support on AB8505

Christian Loehle <christian.loehle@arm.com>
    ACPI: CPPC: Validate the _CPC package header

Guixin Liu <kanie@linux.alibaba.com>
    cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails

Guixin Liu <kanie@linux.alibaba.com>
    cxl/region: Create node access attributes for CFMWS-only NUMA nodes

Varun Gupta <varun.gupta@intel.com>
    drm/pagemap: Prevent CPU stalls during unbounded pagemap teardown

Li RongQing <lirongqing@baidu.com>
    RDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in GET_CONTEXT

Li RongQing <lirongqing@baidu.com>
    RDMA/restrack: Don't set RESTRACK_DD mark after a failed xa_insert()

Li RongQing <lirongqing@baidu.com>
    RDMA/core: Fix swapped list_add_tail() arguments in ib_add_sub_device()

Gary Guo <gary@garyguo.net>
    rust: pin-init: internal: init: emit `slot` using mixed site hygiene

Mohamad Alsadhan <mo@sdhn.cc>
    rust: pin-init: internal: init: support tuple struct constructor syntax

Mohamad Alsadhan <mo@sdhn.cc>
    rust: pin-init: internal: init: support tuple structs in `[pin_]init!`

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    interconnect: qcom: use 64-bit SMD RPM bus votes

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    interconnect: qcom: msm8976: Configure auxiliary GPU QoS port

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    interconnect: qcom: msm8996: Configure auxiliary Venus QoS port

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    interconnect: qcom: icc-rpm: Program SMD RPM auxiliary QoS ports

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    interconnect: qcom: icc-rpm: Handle icc_link_create() failures

Myeonghun Pak <mhun512@gmail.com>
    interconnect: exynos: Remove the PM QoS request on unbind

Slavin Liu <bolin.liu@seu.edu.cn>
    crypto: atmel-sha - reject initialization without a device

Ahsan Atta <ahsan.atta@intel.com>
    crypto: qat - fix active_devs leak on crypto alg registration failure

Vitaliy Sochnev <sochnev.v.74@gmail.com>
    thermal/drivers/airoha: Request the EN7581 IRQ after zone registration

Greg Ociepka <greg@ferrisoft.com>
    arm64: dts: qcom: glymur: Mark USB controllers dma-coherent

Guixin Liu <kanie@linux.alibaba.com>
    cxl/region: Unregister the pmem region when the bridge is unbound

Guixin Liu <kanie@linux.alibaba.com>
    cxl/core: Fix dport use-after-free via the einj_inject debugfs file

Guixin Liu <kanie@linux.alibaba.com>
    cxl/port: Fix uninitialized coordinates reported for RCDs

Guixin Liu <kanie@linux.alibaba.com>
    cxl/cdat: Fix uninitialized stack use in bandwidth gathering

Guixin Liu <kanie@linux.alibaba.com>
    cxl/pci: Skip reset detection for DVSEC emulated decoders

Jakub Kicinski <kuba@kernel.org>
    netlink: specs: devlink: describe the netns id in the parent-dev nest

Jakub Kicinski <kuba@kernel.org>
    netlink: specs: devlink: describe DEVLINK_ATTR_NESTED_DEVLINK

Julian Braha <julianbraha@gmail.com>
    kconfig: fix extra output from savedefconfig on out-of-range defaults

Felix Gu <ustc.gu@gmail.com>
    PCI: dra7xx: Fix clock enable leak on probe failure

vladimir.oltean@nxp.com <vladimir.oltean@nxp.com>
    PCI: dra7xx: Remove device links to PHY

Longlong Xia <xialonglong@kylinos.cn>
    rcu: fix shrink budget underflow in lazy_rcu_shrink_scan

Mingpei CAO <caomingpei@gmail.com>
    libbpf: Reject local struct_ops bitfields before data access

Geert Uytterhoeven <geert+renesas@glider.be>
    dt-bindings: interrupt-controller: chrp,open-pic: Fix dangling reference

Geert Uytterhoeven <geert+renesas@glider.be>
    dt-bindings: interrupt-controller: chrp,open-pic: Typo s/pci/pic/

Taimuraz Kaitmazov <taimuraz@kaitmazov.com>
    accel/amdxdna: do not fail a sync for a BO with no debug context

Taimuraz Kaitmazov <taimuraz@kaitmazov.com>
    accel/amdxdna: do not warn when a sync request is rejected

Lizhi Hou <lizhi.hou@amd.com>
    accel/amdxdna: Set HMM_PFN_REQ_WRITE for writable BO faults

Lizhi Hou <lizhi.hou@amd.com>
    accel/amdxdna: Fix race between unmap and free BO

Lizhi Hou <lizhi.hou@amd.com>
    accel/amdxdna: Fully initialize map structure before registering notifier

Sean Chang <seanwascoding@gmail.com>
    drm: bridge: dw_hdmi: Fix constant truncation warning on phy_mask

Wentao Liang <vulab@iscas.ac.cn>
    media: ivsc: Fix csi_dev use-after-free in mei_ace_setup_dev_link()

Nikolay Borisov <nik.borisov@suse.com>
    ata: sata_dwc_460ex: Don't enable interrupt if libATA core registration fails

Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
    drm/amd/display: Fix redundant NULL check on dc->clk_mgr in dcn42_prepare_bandwidth

Hari Mishal <harimishal1@gmail.com>
    drm/amdgpu/atom: bound the VBIOS date, part number, version and build getters

Hari Mishal <harimishal1@gmail.com>
    drm/amd/pm: bound SCLK FCW range entries to the table size

Vitaly Prosyak <vitaly.prosyak@amd.com>
    drm/amdgpu: reserve eviction-fence slot at WPTR caller

James Lin <PingLei.Lin@amd.com>
    drm/amd/display: Cast DP DTO pixel clock math to avoid overflow and narrowing

Ian Rogers <irogers@google.com>
    perf record: Fix unhandled POLLHUP on non_perf_event descriptors

Karl Mehltretter <kmehltretter@gmail.com>
    clk: aspeed: ast2700: select AUXILIARY_BUS

Pengpeng Hou <hppiscas@163.com>
    clk: milbeaut: Return divider update timeouts

Pengpeng Hou <pengpeng@iscas.ac.cn>
    clk: si521xx: correct the SI52147 OF output enable map

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf test: Skip data_type_profiling when the PMU cannot record memory events

Francesco Valla <francesco@valla.it>
    spi: virtio: fix max frequency setting

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8189: Validate TDM MCLK frequency

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8189: Propagate TDM clock errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8189: Validate sysclk frequency

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8189: Propagate MCLK errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8189: Propagate APLL errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8189: Propagate runtime resume errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8189: Propagate reg_rw clock errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8189: Validate MCK ID

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8189: Propagate MCK enable errors

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8189: Propagate APLL enable errors

Vijendar Mukunda <Vijendar.Mukunda@amd.com>
    ASoC: SOF: amd: fix amd_sof_acp_probe() error unwind ordering

Vijendar Mukunda <Vijendar.Mukunda@amd.com>
    ASoC: SOF: amd: fix amd_sof_acp_remove() teardown ordering

Vijendar Mukunda <Vijendar.Mukunda@amd.com>
    ASoC: SOF: amd: return -EINVAL for unknown PCI revision in acp7x suspend

Shakeel Butt <shakeel.butt@linux.dev>
    kernfs: don't hold kernfs_rwsem across dir_emit()

Shakeel Butt <shakeel.butt@linux.dev>
    kernfs: don't repeat or skip an entry when readdir resumes

Shakeel Butt <shakeel.butt@linux.dev>
    kernfs: don't hold kernfs_rwsem across notification delivery

Zizhi Wo <wozizhi@huawei.com>
    md/raid5: reject a per-device size smaller than one chunk

Zhihao Cheng <chengzhihao1@huawei.com>
    md/raid5: setup_conf: Fix null-ptr-def in error handling path

Chen Cheng <chencheng@fnnas.com>
    md/raid5: reject raid4/5 arrays with too few disks

Yogesh Gaur <yogeshgaur.83@gmail.com>
    md/raid5: don't BUG() on an inconsistent reshape state from the superblock

Chandradhar Kumar <chandradhar.2003@gmail.com>
    md/raid0: validate device count before allocating devlist

Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
    md: reject v0.90 arrays with too many devices

Zizhi Wo <wozizhi@huawei.com>
    md/raid10: fix missing wakeup in wait_barrier_nolock

Alexei Starovoitov <ast@kernel.org>
    selftests/bpf: Wait for links to come up in lwt_ip_encap

Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
    staging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers

Bart Van Assche <bvanassche@acm.org>
    scsi: pm8001: Fix SATA FIS offset in struct hw_event_resp

Ihor Solodrai <ihor.solodrai@linux.dev>
    x86/cpu: Don't transiently clear the boot CPU's capabilities

Ihor Solodrai <ihor.solodrai@linux.dev>
    x86/cpu: Inline generic_identify() into identify_cpu()

Ihor Solodrai <ihor.solodrai@linux.dev>
    x86/cpu: Factor init_cpu_info() out of identify_cpu()

Ștefan Ghețu <stefanghetu9@gmail.com>
    ASoC: SOF: imx: Prevent stack OOB read in DSP panic dump

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: rt1015: make control calibration failures observable

Karl Mehltretter <kmehltretter@gmail.com>
    pinctrl: stm32: Drop the nonexistent CONFIG_MACH_STM32MP25 from the STM32MP257 default

Alison Schofield <alison.schofield@intel.com>
    cxl/port: Bound switch decoder target array access by nr_targets

Alison Schofield <alison.schofield@intel.com>
    cxl/hdm: Restore commit_end when decoder enumeration fails

Alison Schofield <alison.schofield@intel.com>
    cxl/hdm: Make switch decoder target parsing endian-safe

Alison Schofield <alison.schofield@intel.com>
    cxl/hdm: Reject switch decoder interleave ways that overflow targets

Slavin Liu <bolin.liu@seu.edu.cn>
    ACPI: tables: handle failed initrd override mappings

Chen-Yu Tsai <wenst@chromium.org>
    arm64: dts: mediatek: mt8173: Fix MFG_ASYNC power domain clock

Aleksander Jan Bajkowski <olek2@wp.pl>
    crypto: eip93 - fix ssl mac bit field definition

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    interconnect: qcom: icc-rpm: Don't skip small votes

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    interconnect: qcom: Move bcm_div() to common code

Sarthak Sharma <sarthak.sharma@arm.com>
    mm/gup_test: report actual pinned bytes

Sarthak Sharma <sarthak.sharma@arm.com>
    mm/gup_test: safely calculate GUP batch size

Baolin Liu <liubaolin@kylinos.cn>
    fs/ntfs3: reject FS_IOC_SETFSLABEL on readonly mounts

Weiming Shi <bestswngs@gmail.com>
    ntfs3: fix out-of-bounds read in ntfs_read_mft()

Nitesh Venkatesh <nitesh.venkatesh@intel.com>
    crypto: qat - allow KPT disable when service is not asym

Luka Gejak <luka.gejak@linux.dev>
    wifi: rtw88: sdio: zero the padding added to a TX transfer

Xueqin Luo <luoxueqin@kylinos.cn>
    platform/x86: Add ACPI_COMPANION() NULL check in topstar_acpi_probe

Marco Scardovi <scardracs@disroot.org>
    platform/x86: asus-armoury: Prevent disabling dGPU when in use

Marco Scardovi <scardracs@disroot.org>
    platform/x86: asus-wmi: Add ASUS_WMI_DEVID_DGPU_POWER_STATE define

Guangshuo Li <lgs201920130244@gmail.com>
    platform/x86/intel/vsec: reset state before re-enumerating

Karl Mehltretter <kmehltretter@gmail.com>
    loadpin: Fix stale KEXEC_VERIFY_SIG reference in documentation

Rosen Penev <rosenp@gmail.com>
    dmaengine: mv_xor: kill tasklet on channel add error path

Yonghao Zhang <hyz3367@gmail.com>
    remoteproc: core: Set trace buffer name for diagnostics

Mika Penttilä <mpenttil@redhat.com>
    drm/tests: hdmi: fix infoframes tests

Junxian Huang <huangjunxian6@hisilicon.com>
    RDMA/hns: Fix the use of uninitialized variable

Karl Mehltretter <kmehltretter@gmail.com>
    block: Fix the thaw_bdev reference in bdev_freeze() kernel-doc

Guangshuo Li <lgs201920130244@gmail.com>
    media: i2c: t4ka3: drop unmatched runtime PM put

Guangshuo Li <lgs201920130244@gmail.com>
    media: i2c: ar0521: remove duplicate media entity cleanup

Maxime Ripard <mripard@kernel.org>
    drm/atmel-hlcdc: Drop spurious csc_init call from reset

Li RongQing <lirongqing@baidu.com>
    RDMA/uverbs: Make CQ handle mandatory for WQ creation

Nicolas Morey <nmorey@suse.com>
    RDMA/rxe: Use validated num_sge in local buffer

Miles Krause <mileskrause5200@gmail.com>
    memory: emif: fix device_node reference leak on np_ddr

Pengpeng Hou <pengpeng@iscas.ac.cn>
    phy: samsung: usbdrd: propagate GS101 PIPE3 lock failures

Gregory CLEMENT <gregory.clement@bootlin.com>
    phy: cadence: Sierra: Do not modify register when getting parent clock

Haotian Zhang <vulab@iscas.ac.cn>
    phy: hisilicon: hi3670: Fix OF node and device reference leaks

Nemesa Garg <nemesa.garg@intel.com>
    drm/i915/psr: Clear stale sel fetch enable bits on sel fetch disable

Sang-Heon Jeon <ekffu200098@gmail.com>
    memblock: reject non-page-aligned reserve_mem regions

Linkai Gong <gonglinkai@kylinos.cn>
    firmware: imx: dsp: fix mailbox channel leak on kasprintf failure

Zhiguo Niu <zhiguo.niu@unisoc.com>
    f2fs: fix to record both APPEND and UPDATE ino entries

Jianan Huang <jnhuang95@gmail.com>
    f2fs: quota: fix stale lock holder on remount failure

Jérôme Pouiller <jerome.pouiller@silabs.com>
    wifi: wfx: fix use-after-free of the cooling work on device removal

Takahiro Kuwano <takahiro.kuwano@infineon.com>
    mtd: spi-nor: spansion: Remove s25fs256s0

Julius Bairaktaris <julius@bairaktaris.de>
    wifi: mac80211: don't reset the TXQ scheduling round number

Karl Mehltretter <kmehltretter@gmail.com>
    wifi: mac80211: Fix the return value in mesh_path_add() kernel-doc

Christoph Hellwig <hch@lst.de>
    block,iomap: fix protection information verification with initial bvec offset

Karl Mehltretter <kmehltretter@gmail.com>
    dma-fence: Fix dma_fence_enable_signaling() reference in kernel-doc

Conor Dooley <conor.dooley@microchip.com>
    pinctrl: mpfs-mssio: fix whitespace in debugfs output

Fuad Tabba <fuad.tabba@linux.dev>
    arm64: pi: Run the source checker on the libfdt objects under C=2

Thomas Weißschuh <linux@weissschuh.net>
    microblaze: Pass -m{big,little}-endian through KBUILD_CPPFLAGS

Thomas Weißschuh <linux@weissschuh.net>
    microblaze: uaccess: Zero out destination on failed get_user()

Linkai Gong <gonglinkai@kylinos.cn>
    pinctrl: amd: add timeout to irq-enable readback

Weiming Shi <bestswngs@gmail.com>
    fs/ntfs3: zero frame pages on read error

Baolin Liu <liubaolin@kylinos.cn>
    fs/ntfs3: update ctime only on successful setxattr

Weiming Shi <bestswngs@gmail.com>
    fs/ntfs3: take run_lock when freeing offs_folio in ni_decompress_file

Mahe Tardy <mahe.tardy@gmail.com>
    libbpf: fix log level propagation for light skeleton loaders

Karl Mehltretter <kmehltretter@gmail.com>
    regulator: qcom-rpmh: Fix the return value in rpmh_regulator_vrm_get_optimum_mode() kernel-doc

Ian Rogers <irogers@google.com>
    perf header: Fix potential memory corruption in cpu_cache_level__read

Junhui Liu <junhui.liu@pigmoral.tech>
    clk: sunxi-ng: sun55i-a523-r-ccu: Use P-only clocks for timers

Junhui Liu <junhui.liu@pigmoral.tech>
    clk: sunxi-ng: sun55i-a523-ccu: Use P-only clocks for high-speed timers

Junhui Liu <junhui.liu@pigmoral.tech>
    clk: sunxi-ng: sun55i-a523-ccu: Use M-only clocks for MBUS, IOMMU and DRAM

Junhui Liu <junhui.liu@pigmoral.tech>
    clk: sunxi-ng: div: Add feature support to M clock macro

Karl Mehltretter <kmehltretter@gmail.com>
    cgroup/dmem: Fix eviction helper reference in dmem_cgroup_try_charge()

Yonghong Song <yonghong.song@linux.dev>
    bpf: Read a kfunc's __sz argument only when it is in a register

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ACPI: video: Fix backlight unregistration ordering

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ACPI: fan: Fix memory leak due to leftover devm_kcalloc() argument

Karl Mehltretter <kmehltretter@gmail.com>
    ALSA: control: Fix virtual master creation reference in kernel-doc

Michael S. Tsirkin <mst@redhat.com>
    virtio_pci_modern: move avq cleanup from reset to del_vqs

Michael S. Tsirkin <mst@redhat.com>
    virtio: synchronize callbacks after device reset

Karl Mehltretter <kmehltretter@gmail.com>
    gfs2: Fix the return value in gfs2_get_link() kernel-doc

Karl Mehltretter <kmehltretter@gmail.com>
    ata: libata-scsi: Fix ata_scsi_hotplug() reference in kernel-doc

Karl Mehltretter <kmehltretter@gmail.com>
    spi: Fix the return value in spi_new_ancillary_device() kernel-doc

Pengpeng Hou <hppiscas@163.com>
    clk: s2mps11: Propagate OF provider registration failures

Geert Uytterhoeven <geert+renesas@glider.be>
    clk: rs9: Add clock index range check to rs9_of_clk_get()

Karl Mehltretter <kmehltretter@gmail.com>
    clk: mediatek: reset: Fix device registration kernel-doc

Chaithanya Lagisetty <nagachaithanya9911@gmail.com>
    x86/svm: Avoid sign extension of SVM_EVTINJ_VALID in 64-bit expressions

Jared McArthur <j-mcarthur@ti.com>
    arm64: dts: ti: k3-j784s4-j742s2-evm-common: Set ACSPCIe refclk to MAIN_PLL2_HSDIV4 for pcie1

Nora Schiffer <nora.schiffer@ew.tq-group.com>
    ARM: dts: imx7-tqma7: correctly specify PMIC voltage constraints

Roshan Kumar <roshaen09@gmail.com>
    drm/pl111: drop alpha formats the hardware cannot scan out

Sanghyun Park <sanghyun.park.cnu@gmail.com>
    bpf: Fix program BTF use-after-free in sleepable programs

Fabrice Gasnier <fabrice.gasnier@foss.st.com>
    ARM: dts: stm32: fix vdda supply for onboard hub on stm32mp135f-dk

Fabrice Gasnier <fabrice.gasnier@foss.st.com>
    ARM: dts: stm32: fix vdda supply for onboard hub on stm32mp157c-ev1

Fabrice Gasnier <fabrice.gasnier@foss.st.com>
    ARM: dts: stm32: fix vdda supply for onboard hub on stm32mp15 DK boards

Justin Yeh <justin.yeh@mediatek.com>
    HID: i2c-hid: Unfollow the panel on shutdown

Marek Vasut <marex@nabladev.com>
    ARM: dts: stm32: Drop bias-disable from STM32MP15xx DHCOM SoM sdmmc1_b4_pins_a

Lizhi Hou <lizhi.hou@amd.com>
    accel/amdxdna: Fix unsafe use of handle_mm_fault()

Lizhi Hou <lizhi.hou@amd.com>
    accel/amdxdna: Fix potential deadlock in BO open and close callbacks

Lizhi Hou <lizhi.hou@amd.com>
    accel/amdxdna: Disable BO import via flink

Brian Norris <briannorris@chromium.org>
    PM: runtime: Only queue an idle check for RPM-linked suppliers

Xueqin Luo <luoxueqin@kylinos.cn>
    cpuidle: teo: Do not return a disabled idle state

Aiman Najjar <aiman.najjar@hurranet.com>
    HID: nintendo: add support for PDP Afterglow controller

Alain Volmat <alain.volmat@foss.st.com>
    ARM: dts: stm32: add LTDC / DCMIPP access controller for STM32MP135

Ahmad Fatoum <a.fatoum@pengutronix.de>
    ARM: dts: stm32: fairytux2: change stdout-path baud rate from 9600 to 115200

Ahmad Fatoum <a.fatoum@pengutronix.de>
    ARM: dts: stm32: lxa-tac: change stdout-path baud rate from 9600 to 115200

Ahmad Fatoum <a.fatoum@pengutronix.de>
    ARM: dts: stm32: lxa-mc1: change stdout-path baud rate from 9600 to 115200

Xueqin Luo <luoxueqin@kylinos.cn>
    cpuidle: menu: Do not return a disabled idle state

Takashi Sakamoto <o-takashi@sakamocchi.jp>
    firewire: core: remove unused link field in fw_packet structure

Karl Mehltretter <kmehltretter@gmail.com>
    firewire: cdev: Fix FW_CDEV_IOC_CREATE_ISO_CONTEXT references in kernel-doc

Sumeet Pawnikar <sumeet4linux@gmail.com>
    thermal: gov_power_allocator: Fix NULL pointer dereference in update_tz()

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ACPI: glue: Fix up and adjust acpi_unbind_one()

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ACPI: glue: Rearrange acpi_bind_one() to avoid breakage

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ACPI: glue: Carry out companion lookup under bus_type_sem

Christoph Hellwig <hch@lst.de>
    block: improve aligning down bios in bio_iov_iter_bounce_write

Christoph Hellwig <hch@lst.de>
    block: cap atomic write size by PI buffer size constraints

Christoph Hellwig <hch@lst.de>
    block: avoid integer overflows in max_integrity_io_size

Jan Kara <jack@suse.cz>
    gfs2: Fix journaled truncate range end offset

Jiawen Liu <1298662399@qq.com>
    memory: exynos5422-dmc: handle clock enable failures

Karl Mehltretter <kmehltretter@gmail.com>
    crypto: lskcipher - preserve state across unaligned chunks

Linmao Li <lilinmao@kylinos.cn>
    crypto: mxs-dcp - handle zero-length skcipher requests

Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
    crypto: rsassa-pkcs1 - reject undersized keys when verifying

Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
    crypto: rsassa-pkcs1 - reject undersized keys when signing

Ahsan Atta <ahsan.atta@intel.com>
    crypto: qat - release instance on DH fallback allocation failure

Ahsan Atta <ahsan.atta@intel.com>
    crypto: qat - avoid OOB read when stripping RSA leading zeros

Mohamad Raizudeen <raizudeen.kerneldev@gmail.com>
    crypto: amlogic - Fix DMA memory leak in cipher error path

Thomas Huth <thuth@redhat.com>
    crypto: inside-secure - Zeroize temporary arrays on stack with sensitive data

Eric Dumazet <edumazet@kernel.org>
    ip_tunnel: use WRITE_ONCE in ip_tunnel_encap_setup

Eric Dumazet <edumazet@kernel.org>
    sit: charge ip_tunnel_prl_entry allocations to memcg

Eric Dumazet <edumazet@kernel.org>
    sit: fix UAF in ipip6_tunnel_del_prl()

Jeff Johnson <jeff.johnson@oss.qualcomm.com>
    wifi: ath9k: use rcu_dereference_bh() for sta->rates in ath_merge_ratetbl()

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: eliza: Connect USB3 PHY pipe clock to GCC

Luca Weiss <luca.weiss@fairphone.com>
    arm64: dts: qcom: sm7225-fairphone-fp4: Disable PMK8350 PON

Karl Mehltretter <kmehltretter@gmail.com>
    cpufreq/amd-pstate: Remove obsolete amd_dynamic_epp documentation

Linus Walleij <linusw@kernel.org>
    regulator: ab8500: Propagate mode enable read errors

Linus Walleij <linusw@kernel.org>
    regulator: ab8500: Test dedicated enable bits only

Linus Walleij <linusw@kernel.org>
    regulator: ab8500: Treat cut 1.0 VAUX3 as fixed

Linus Walleij <linusw@kernel.org>
    regulator: ab8500: Handle AB8505 VINTCORE selector 7

Linus Walleij <linusw@kernel.org>
    regulator: ab8500: Add AB8505 VAUX3 3.05 V setting

Linus Walleij <linusw@kernel.org>
    regulator: ab8500: Fix AB8505 VANA voltage selectors

Fangzhi Zuo <jerry.zuo@amd.com>
    drm/amd/display: Exit IPS before connector detection on resume

Koichiro Den <den@valinux.co.jp>
    PCI: endpoint: pci-epf-vntb: Serialize virtual PCI bus scan

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    arm64: dts: qcom: glymur-asus-zenbook-a16: Fix up the mic sample rate

Jia Wang <wangjia@ultrarisc.com>
    dmaengine: dw-axi-dmac: Fix CH_CFG2 channel priority position

Jia Wang <wangjia@ultrarisc.com>
    dmaengine: dw-axi-dmac: Fix LLI dump out-of-bounds access

Jia Wang <wangjia@ultrarisc.com>
    dmaengine: dw-axi-dmac: Fix AXI burst length encoding

Rosen Penev <rosenp@gmail.com>
    dmaengine: fsl_raid: zero CF descriptor pool allocations

Keisuke Tsukuda <catnyaaan@outlook.com>
    usb: gadget: f_mass_storage: ignore class requests while inactive

Keisuke Tsukuda <catnyaaan@outlook.com>
    usb: gadget: composite: avoid warning on aborted delayed status

Roland Dreier <rolanddreier@rivian.com>
    firmware: arm_scmi: Fix error path leak in scmi_raw_message_send()

Roland Dreier <rolanddreier@rivian.com>
    firmware: arm_scmi: Don't reuse raw xfers with async_done still armed

Roland Dreier <rolanddreier@rivian.com>
    firmware: arm_scmi: Protect xfer->async_done with xfer->lock

Chaithanya Lagisetty <nagachaithanya9911@gmail.com>
    dmaengine: sprd: use clk_bulk API to fix clock imbalance

Pengpeng Hou <pengpeng@iscas.ac.cn>
    usb: musb: da8xx: depopulate OF children on probe failure

Pengpeng Hou <pengpeng@iscas.ac.cn>
    usb: musb: da8xx: depopulate OF children on remove

Arka Mondal <arka@arkamondal.net>
    usb-storage: alauda: fix out-of-bounds zone index

Arka Mondal <arka@arkamondal.net>
    usb-storage: alauda: check the return value of alauda_read_map()

Arka Mondal <arka@arkamondal.net>
    usb-storage: alauda: do not do DMA from the stack

Binbin Zhou <zhoubinbin@loongson.cn>
    dmaengine: loongson: loongson2-apb-cmc: Fix signedness bug in irq handling

Yuho Choi <dbgh9129@gmail.com>
    USB: pci-quirks: Release EHCI device reference

Jiangong.Han <jiangong.han@windriver.com>
    USB: usbmon: fix null-ptr-deref in mon_bus_remove() when mon_bus_init() fails

Diego Fernando Mancera Gomez <diegomancera.dev@gmail.com>
    usb: image: microtek: stop SG processing after transfer errors

Junxian Huang <huangjunxian6@hisilicon.com>
    RDMA/hns: Fix GID capacity loss in 64K system

Junxian Huang <huangjunxian6@hisilicon.com>
    RDMA/hns: Limit gmv_entry_num to avoid memory waste

Yuho Choi <dbgh9129@gmail.com>
    PCI: xgene: Use managed clock for PCIe controller

Justin Yeh <justin.yeh@mediatek.com>
    arm64: dts: mediatek: mt8188-geralt: Enlarge SCP core0 memory region

Shakeel Butt <shakeel.butt@linux.dev>
    kernfs: fix up the unlocked attribute reads on the creation paths

Karl Mehltretter <kmehltretter@gmail.com>
    efi/libstub: Fix efi_set_event_at() parameter documentation

Salah Triki <salah.triki@gmail.com>
    iio: imu: adis16400: Check return value of spi_setup()

Matti Vaittinen <mazziesaccount@gmail.com>
    iio: accel: kionix-kx022a: Fix IPOL macro name

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix NULL pointer dereference on PCI error recovery

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix use-after-free of the firmware event workqueue

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: zero out diagnostic buffer status memory

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix out-of-bounds read in PCIe topology change events

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix buffer overflow in the BSG target device map

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix out-of-bounds phy array access on link change

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix out-of-bounds read of event data

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix out-of-bounds read in SAS topology change events

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix target device reference leak in device removal handshake

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix out-of-bounds bitmap access during device removal

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix out-of-bounds sense buffer access

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix out-of-bounds reply frame access

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix buffer overflow when caching log data

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix target device reference leak in BSG task management

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix I/O block counter leak on admin request post failure

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix out-of-bounds read when copying BSG MPI requests

Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    scsi: mpi3mr: Fix buffer overflow in BSG passthrough request copy

Linmao Li <lilinmao@kylinos.cn>
    power: supply: bq2515x: Propagate charge-enable read errors

Henrik Grimler <henrik.grimler@axis.com>
    dt-bindings: power: bq27xxx: bq27z561: allow interrupts property

Ryan Brue <ryanbrue.dev@gmail.com>
    power: supply: bq24190_charger: use the wake irq API

hpp.iscas <hppiscas@163.com>
    power: supply: mm8013: Publish the OF module alias

Karl Mehltretter <kmehltretter@gmail.com>
    power: supply: mp2629: Use the full batt_impedance_compensation name in the ABI document

Zongmin Zhou <zhouzongmin@kylinos.cn>
    power: supply: s2mu005-battery: return errors from dev_err_probe() in probe

K Prateek Nayak <kprateek.nayak@amd.com>
    cpufreq/amd-pstate-ut: Fix amd_pstate_ut_check_freq failure with 'Requested CPU Min frequency' BIOS option

Willem de Bruijn <willemb@google.com>
    selftests: net: csum: filter packets by source address and port

Kang Yang <kang.yang@oss.qualcomm.com>
    wifi: ath12k: preserve PPDU state across monitor status buffers

Aaradhana Sahu <aaradhana.sahu@oss.qualcomm.com>
    wifi: ath12k: Free allocated external IRQs on request_irq() failure

Aaradhana Sahu <aaradhana.sahu@oss.qualcomm.com>
    wifi: ath12k: Free allocated CE IRQs on request_irq() failure

Baochen Qiang <baochen.qiang@oss.qualcomm.com>
    wifi: ath12k: fix truncated TX buffer DMA address in MSDU ext descriptor

Baochen Qiang <baochen.qiang@oss.qualcomm.com>
    wifi: ath12k: fix stale skb pointers after aligned TX payload shift

Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
    wifi: ath12k: fix DMA unwind for ext MSDU descriptor retry

Nicolas Escande <nico.escande@gmail.com>
    wifi: ath11k: fix locking problem in ath11k_dp_rx_tid_del_func()

Mikhail Lobanov <m.lobanov@rosalinux.ru>
    wifi: ath11k: modify null check logic in ath11k_ce_rx_post_pipe()

Shuming Fan <shumingf@realtek.com>
    ASoC: rt1320: avoid re-initialize in advanced mode

Qinyun Tan <qinyuntan@linux.alibaba.com>
    iommufd/selftest: Return dmabuf fd from IOMMU_TEST_OP_DMABUF_GET again

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ACPI: utils: Adjust message printing macros for ACPI objects

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ACPI: glue: Rework the success message in acpi_device_notify()

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ACPI: glue: Reduce debug noise from acpi_device_notify()

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ACPI: scan: Stop calling acpi_bus_init_power() early

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    ACPI: PM: Drop parent state update from acpi_device_get_power()

Ian Gallagher <cdine@cdine.org>
    ACPI: button: Add lid_init_state quirk for Razer Blade Stealth 13 (Early 2020) RZ09-0310

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: nau8822: keep regcache offline while supplies are off

Vinod Koul <vkoul@kernel.org>
    dmaengine: zynqmp_dma: drop redundant label

Srinivas Neeli <srinivas.neeli@amd.com>
    dmaengine: xilinx_dma: Move descriptors to done list based on completion bit

Srinivas Neeli <srinivas.neeli@amd.com>
    dmaengine: xilinx_dma: Fix MCDMA descriptor fields based on DMA direction

Chaithanya Lagisetty <nagachaithanya9911@gmail.com>
    dmaengine: dw-axi-dmac: convert clock handling to clk_bulk API

Golla Nagendra <nagendra.golla@amd.com>
    dmaengine: zynqmp_dma: Fix chan probe/remove error handling

Golla Nagendra <nagendra.golla@amd.com>
    dmaengine: zynqmp_dma: Free sw_desc_pool on desc_pool_v alloc failure

Golla Nagendra <nagendra.golla@amd.com>
    dmaengine: zynqmp_dma: Fix PM rollback on sw_desc_pool alloc failure

Ruoyu Wang <ruoyuw560@gmail.com>
    dmaengine: img-mdc: Fix runtime PM usage counter leak

Myeonghun Pak <mhun512@gmail.com>
    dmaengine: mediatek: hsdma: fix runtime PM leak on init failure

Hongling Zeng <zenghongling@kylinos.cn>
    dmaengine: at_hdmac: Fix use-after-free by proper tasklet cleanup

Hongling Zeng <zenghongling@kylinos.cn>
    dmaengine: sun6i-dma: Fix use-after-free in error handling paths

Li Youhong <liyouhong@kylinos.cn>
    spi: amlogic-spisg: check clk_prepare_enable() return value

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: sta32x: make power restoration transactional

Pengpeng Hou <pengpeng@iscas.ac.cn>
    ASoC: codecs: sma1307: validate setting firmware layout

Ian Rogers <irogers@google.com>
    perf stat: Avoid uninitialized memory read on error

Karl Mehltretter <kmehltretter@gmail.com>
    mtd: spinand: Fix spinand_manufacturer_ops kernel-doc

Mingpei CAO <caomingpei@gmail.com>
    libbpf: Fix array comparison in BTF dedup

Aaron Tomlin <atomlin@atomlin.com>
    perf trace: Add upper bound checks for augmented BTF struct printing

Aaron Tomlin <atomlin@atomlin.com>
    perf trace: Enhance BTF type formatting to symbolise kernel function pointers

Ian Rogers <irogers@google.com>
    perf test: Avoid call to missing cleanup function

Matt Turner <mattst88@gmail.com>
    perf thread: Fix live-session detection in thread__e_machine()

Thomas Richter <tmricht@linux.ibm.com>
    perf test: perf stat tests fails on s390

Qiuxu Zhuo <qiuxu.zhuo@intel.com>
    EDAC/i10nm: Fix Granite Rapids ADXL MC mapping

Tejun Heo <tj@kernel.org>
    cgroup: Make the offline drain interruptible

Tejun Heo <tj@kernel.org>
    cgroup: Return ERR_PTR from cgroup_kn_lock_live()

Tejun Heo <tj@kernel.org>
    cgroup: Return -ENODEV consistently for a dead cgroup

Tianyi Chen <hi@tychen.cc>
    selftests/sched_ext: Handle CPU hotplug write failures

Tianyi Chen <hi@tychen.cc>
    selftests/sched_ext: Fail interrupted test runs

Manush Prajwal <manushprajwal555@gmail.com>
    pwm: lp3943: fix NULL pointer dereference for an unconfigured channel

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt6797: fix wrong unwind order and error code in enable_clock

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8186: Fix MCK error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8186: Fix APLL enable error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8186: Fix AFE clock error handling

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8186: Fix clock handling in mux disable path

bui duc phuc <phucduc.bui@gmail.com>
    ASoC: mediatek: mt8186: Fix APLL mux setting error handling

Bert Karwatzki <spasswolf@web.de>
    mac80211: tx: Use info->flags in ieee80211_tx_h_select_key()

Chen-Yu Tsai <wenst@chromium.org>
    pwm: mtk-disp: Fix period readback

Karl Mehltretter <kmehltretter@gmail.com>
    virtio_ccw: always take irq_lock in the classic interrupt handler

Karl Mehltretter <kmehltretter@gmail.com>
    virtio_ccw: fix synchronize_cbs() after interrupt fallback

Igor Belwon <igor.belwon@mentallysanemainliners.org>
    arm64: dts: mediatek: mt6893-pinfunc: Fix pinctrl header path

Igor Belwon <igor.belwon@mentallysanemainliners.org>
    arm64: dts: mediatek: mt6878-pinfunc: Fix pinctrl header path

Brian Norris <briannorris@chromium.org>
    arm64: dts: mediatek: Add #{address,size}-cells to Chromium-based /firmware

Pengpeng Hou <hppiscas@163.com>
    ASoC: fs210x: report register restore errors

Pengpeng Hou <hppiscas@163.com>
    ASoC: es8389: report resume restore errors

Pengpeng Hou <hppiscas@163.com>
    ASoC: es8375: report resume restore errors

Pengpeng Hou <hppiscas@163.com>
    ASoC: es8326: report resume restore errors

Karl Mehltretter <kmehltretter@gmail.com>
    irqchip/gic-v3-its: Don't WARN on LPI free allocation failure

Linkai Gong <gonglinkai@kylinos.cn>
    drivers/base/node: fix UAF on device_register() failure

Miquel Raynal <miquel.raynal@bootlin.com>
    spi: ma35d1-qspi: Allow DTR operations with the regular SPI API

Varun Gupta <varun.gupta@intel.com>
    drm/xe: Guard page-fault worker with runtime PM check

Surendra Singh Chouhan <kr494167@gmail.com>
    pwm: ipq: Prevent potential 32-bit integer overflow in hi_div calculation

Keguang Zhang <keguang.zhang@gmail.com>
    pwm: loongson: Reload PWM configuration through counter reset

Junhui Liu <junhui.liu@pigmoral.tech>
    riscv: dts: spacemit: k3: Drop guest properties from M-level IMSIC

Karl Mehltretter <kmehltretter@gmail.com>
    ABI: sysfs-class-infiniband: Drop the entries of the removed qib driver

Dmitry Torokhov <dmitry.torokhov@gmail.com>
    gpio: crystalcove: add missing MODULE_ALIAS()

Leon Romanovsky <leon@kernel.org>
    RDMA/irdma: Preserve fast-registration IOVA on 32-bit

Li RongQing <lirongqing@baidu.com>
    RDMA/nldev: Put the device when dellink fails

Mark Amirkan <markdamirkan@gmail.com>
    perf evsel: Validate RAW sample before byte swapping

Mark Amirkan <markdamirkan@gmail.com>
    perf evsel: Validate branch stack before byte swapping

Aaron Tomlin <atomlin@atomlin.com>
    perf trace: Fix error checking in btf_struct_scnprintf()

Marcel Hofmann <marcel.hofmann@ingenics-digital.com>
    remoteproc: imx_rproc: Allow mappings ending at region boundary

Felix Gu <ustc.gu@gmail.com>
    spi: mtk-nor: fix runtime PM usage count leak in probe error path

Dave Jiang <dave.jiang@intel.com>
    ACPI: APEI: GHES: Bound AER info copy and sanitize software metadata

Dave Jiang <dave.jiang@intel.com>
    ACPI: APEI: GHES: Validate memory error section length before payload access

Dave Jiang <dave.jiang@intel.com>
    efi/cper: Read only validated fields in cper_mem_err_pack()

Dave Jiang <dave.jiang@intel.com>
    ACPI: APEI: GHES: Validate CXL protocol error section length before RAS cap copy

Dave Jiang <dave.jiang@intel.com>
    ACPI: extlog: Defer CXL protocol error handling to avoid lock inversion

Dave Jiang <dave.jiang@intel.com>
    ACPI: APEI: GHES: Bound CXL event record copy to the firmware section length

Dave Jiang <dave.jiang@intel.com>
    ACPI: extlog: Fix CONFIG_ACPI_APEI_PCIEAER guard typo

Dave Jiang <dave.jiang@intel.com>
    ACPI: extlog: Validate PCIe error section length before payload access

Dave Jiang <dave.jiang@intel.com>
    ACPI: extlog: Avoid populating software AER metadata from raw hardware buffer

Dave Jiang <dave.jiang@intel.com>
    ACPI: extlog: Validate elog record length before walking sections

Dave Jiang <dave.jiang@intel.com>
    efi/cper: Reject an error status block length that wraps a u32

Dave Jiang <dave.jiang@intel.com>
    efi/cper: Reject CPER records with an out-of-range error_data_length

Li Youhong <liyouhong@kylinos.cn>
    spi: ma35d1-qspi: assert reset on probe error paths

Jisheng Zhang <jszhang@kernel.org>
    regulator: mp886x: fix vsel_mask

James Hilliard <james.hilliard1@gmail.com>
    mtd: rawnand: sunxi: use a stack buffer for BBM randomization

James Hilliard <james.hilliard1@gmail.com>
    mtd: rawnand: sunxi: reserve a full user-data word for BBM

James Hilliard <james.hilliard1@gmail.com>
    mtd: rawnand: sunxi: propagate user-data allocation errors

Sunny Luo <sunny.luo@amlogic.com>
    spi: amlogic: spisg: Fix the incorrect keep_ss of the last descriptor

Xianwei Zhao <xianwei.zhao@amlogic.com>
    spi: amlogic: spisg: Fix transfer size limit and timeout handling

Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
    selftests/bpf: make cmdline_contains stricter

Richard Cheng <icheng@nvidia.com>
    cxl/fwctl: Propagate feature RPC delivery errors

Richard Cheng <icheng@nvidia.com>
    cxl/features: Reject feature offset that overflows 16-bit field

Jared McArthur <j-mcarthur@ti.com>
    arm64: dts: ti: k3-j722s-evm: Switch audio codec clock from audio_refclk1 to external clock

Maulik Shah <maulik.shah@oss.qualcomm.com>
    arm64: dts: qcom: purwa: Drop the Hamoa workaround for PDC

Pengpeng Hou <pengpeng@iscas.ac.cn>
    memory: brcmstb_dpfe: validate firmware section sizes

Pengpeng Hou <pengpeng@iscas.ac.cn>
    irqchip/riscv-imsic: Use GENMASK for base address masks

Julius Bairaktaris <julius@bairaktaris.de>
    wifi: mac80211: fix swapped fq_overlimit/fq_overmemory in aqm debugfs

Fabrice Derepas <fabrice.derepas@canonical.com>
    crypto: asymmetric_keys - fix OOB read in pefile_parse_binary

Ruoyu Wang <ruoyuw560@gmail.com>
    hwrng: cctrng - Fix runtime PM usage counter leak

Jérôme Pouiller <jerome.pouiller@silabs.com>
    wifi: wfx: fix possible device hang during init

Johannes Berg <johannes.berg@intel.com>
    wifi: mac80211: fix IEEE80211_TX_CTL_REQ_TX_STATUS mixup

Johannes Berg <johannes.berg@intel.com>
    wifi: mac80211: drop encap offload frames with a tainted key

Johannes Berg <johannes.berg@intel.com>
    wifi: mac80211: don't send encap offload frames unencrypted

Johannes Berg <johannes.berg@intel.com>
    wifi: mac80211: fix key selection for encap offload frames

Johannes Berg <johannes.berg@intel.com>
    wifi: mac80211: fix unauthorised port check for encap offload

Lachlan Hodges <lachlan.hodges@morsemicro.com>
    wifi: mac80211: don't seed an S1G sta's last_rate

Paul Dolan <paul.dolan.dev@gmail.com>
    selftests/pidfd: fix PPID values in error message

Paul Dolan <paul.dolan.dev@gmail.com>
    selftests/clone3: tighten CLONE_CLEAR_SIGHAND conflict test

Donggeun Yoo <donggeunyoo.kernel@gmail.com>
    regulator: pf1550: fix division by zero in the ramp rate selection

Gregor Herburger <gregor.herburger@linutronix.de>
    arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible

Peter Robinson <pbrobinson@gmail.com>
    arm64: dts: broadcom: bcm2712: adjust display status

Abel Vesa <abel.vesa@oss.qualcomm.com>
    PCI/pwrctrl: tc9563: Allow RESX reset assertion to sleep

Miaoqing Pan <miaoqing.pan@oss.qualcomm.com>
    wifi: ath11k: unregister PM notifier on QMI init failure path

Miaoqing Pan <miaoqing.pan@oss.qualcomm.com>
    wifi: ath11k: fix NULL dereference in ahb remove when QMI init incomplete

Miaoqing Pan <miaoqing.pan@oss.qualcomm.com>
    wifi: ath11k: fix sporadic WLAN initialization failures

Julius Bairaktaris <julius@bairaktaris.de>
    wifi: ath11k: disable interrupts during firmware crash recovery

Baochen Qiang <baochen.qiang@oss.qualcomm.com>
    wifi: ath12k: signal regd update completion when reg event is dropped

Miquel Raynal (Schneider Electric) <miquel.raynal@bootlin.com>
    clk: Use the generic OF phandle parsing in only one place

Wenjie Qi <qwjhust@gmail.com>
    f2fs: wait for inode record work before clearing ino bitmaps

Chengchang Tang <tangchengchang@huawei.com>
    RDMA/hns: Fix missing CQE when UD QP use different SL

Manush Prajwal <manushprajwal555@gmail.com>
    leds: max77705: Use fwnode_for_each_child_node_scoped() in max77705_add_led()

Alex Elder <elder@riscstar.com>
    arm64: dts: qcom: qcs8550-rb5gen2: clean up PCI function nodes

Alex Elder <elder@riscstar.com>
    arm64: dts: qcom: qcs6490-thundercomm-minipc-g1iot: clean up PCI function nodes

Alex Elder <elder@riscstar.com>
    arm64: dts: qcom: monaco-evk-ifp-mezzanine: clean up PCI function nodes

Alex Elder <elder@riscstar.com>
    arm64: dts: qcom: lemans-evk-ifp-mezzanine: clean up PCI function nodes

Alex Elder <elder@riscstar.com>
    arm64: dts: qcom: qcs6490-rb3gen2-industrial-mezzanine: clean up PCI function nodes

Alex Elder <elder@riscstar.com>
    arm64: dts: qcom: qcs6490-rb3gen2: clean up PCI function nodes

Rosen Penev <rosenp@gmail.com>
    dmaengine: at_hdmac: fix sparse '__iomem' cast warning in memset helpers

Rosen Penev <rosenp@gmail.com>
    dmaengine: fsl_raid: avoid free_q underflow in free_chan_resources

Rosen Penev <rosenp@gmail.com>
    dmaengine: fsl_raid: don't invoke client callback under desc_lock

Koichiro Den <den@valinux.co.jp>
    PCI: endpoint: pci-epf-vntb: Pass PF/VF number when BAR programming

David Yang <mmyangfl@gmail.com>
    net: dsa: yt921x: Check lock status with lockdep_assert_held_once()

Toke Høiland-Jørgensen <toke@redhat.com>
    libbpf: Move section-defined program flags to prog_flags

Toke Høiland-Jørgensen <toke@redhat.com>
    bpftool: Set BPF_F_XDP_DEV_BOUND_ONLY flag non-destructively

Ionut Nechita <ionut.nechita@windriver.com>
    x86/crash: Reserve elfcorehdr for CONFIG_NR_CPUS, not CONFIG_NR_CPUS_DEFAULT

Melissa Wen <mwen@igalia.com>
    drm/amd/display: use translate_curve_to_degamma_hw_format on DCN30

Tomasz Siemek <Tomasz.Siemek@amd.com>
    drm/amd/display: Refactor DPP_SET_INPUT_TRANSFER_FUNC to drop pipe_ctx

Tomasz Siemek <tomasz.siemek@amd.com>
    drm/amd/display: Refactor HUBP_WAIT_FOR_DCC_META_PROP to drop pipe_ctx

Gaghik Khachatrian <gaghik.khachatrian@amd.com>
    drm/amd/display: gate DCE ASIC code behind CONFIG_DRM_AMD_DC_DCE

Richard Zhu <hongxing.zhu@nxp.com>
    arm64: dts: imx943: Avoid 32-bit PCIe window System RAM overlap

Richard Zhu <hongxing.zhu@nxp.com>
    arm64: dts: imx94: Avoid 32-bit PCIe window System RAM overlap

Richard Zhu <hongxing.zhu@nxp.com>
    arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap

Pengpeng Hou <pengpeng@iscas.ac.cn>
    remoteproc: imx_dsp: Acquire runtime PM before adding carveouts

Alexander Aring <aahringo@redhat.com>
    dlm: fix variable key length lookup

Joseph Qi <joseph.qi@linux.alibaba.com>
    dlm: fix buffer overflow from negative len in dlm_search_rsb_tree

Danila Chernetsov <listdansp@mail.ru>
    dlm: fix NULL pointer dereference in dlm_dump_rsb_name()

Danila Chernetsov <listdansp@mail.ru>
    dlm: validate lock modes in recovery messages

Linmao Li <lilinmao@kylinos.cn>
    wifi: mm81x: do not discard a failed firmware segment write

Linmao Li <lilinmao@kylinos.cn>
    wifi: mm81x: free the firmware scratch buffer on parse failures

John Stultz <jstultz@google.com>
    sched: Switch rq->next_class in proxy_reset_donor()

Vasily Gorbik <gor@linux.ibm.com>
    sched/core: Don't proxy-exec unmatched cookie lock owners

Vasily Gorbik <gor@linux.ibm.com>
    sched/core: Don't steal a proxy-exec donor

Miklos Szeredi <mszeredi@redhat.com>
    fuse: fall back to copy_splice_read() on FOPEN_DIRECT_IO

Jingbo Xu <jefflexu@linux.alibaba.com>
    fuse: don't bump attr_version for async direct read completion

Miklos Szeredi <mszeredi@redhat.com>
    fuse: don't fill in.h.pid in case args->nocreds is set

Tao Cui <cuitao@kylinos.cn>
    sched_ext/scx_flatcg: Make cgv_node_less() wraparound-safe

Abdurrahman Karadag <abdurrahmankaradag19@gmail.com>
    wifi: rtw88: debugfs: don't vzalloc(0) when rsvd_page is read unconfigured

Dan Carpenter <error27@gmail.com>
    wifi: mm81x: fix type bugs handling sdio_readl/writel()

Gongwei Li <ligongwei@kylinos.cn>
    wifi: rtw89: coex: Fix wrong constant check of GPIO MUX signal

Dave Jiang <dave.jiang@intel.com>
    cxl/ras: Pass the PCI device's struct device to match_memdev_by_parent()

Chris Morgan <macromorgan@hotmail.com>
    arm64: dts: rockchip: Correct Device Orientation on Gameforce Ace

Lizhi Hou <lizhi.hou@amd.com>
    accel/amdxdna: Fix possible use-after-free when freeing device BO

Lizhi Hou <lizhi.hou@amd.com>
    accel/amdxdna: Fix unexpected wait when flushing notifier_wq

Boris Faure <boris@fau.re>
    soundwire: intel: initialise quirk_mask before reading it

Davidlohr Bueso <dave@stgolabs.net>
    cxl/test: Map mock device nodes to an online node

Hans Zhang <18255117159@163.com>
    PCI: cadence: Fix enum type mismatch warning in LTSSM debugfs

Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
    microblaze: prevent ptrace writes to MSR and pt_mode

Alexander A. Klimov <grandmaster@al2klimov.de>
    microblaze: CCF: fix refcount leak

Jerome Brunet <jbrunet@baylibre.com>
    clk: fix self-consuming provider module pinning

Orgad Shaneh <orgads@gmail.com>
    staging: octeon: schedule the TX cleanup tasklet every 1024th packet

Myeonghun Pak <mhun512@gmail.com>
    staging: rtl8723bs: disable SDIO function on block size failure

Rob Barnes <robbarnes@google.com>
    platform/chrome: cros_ec_proto: Fix deferred response

Hongyan Xu <getshell@seu.edu.cn>
    soc: qcom: apr: clean up failed service registrations

Dan Carpenter <error27@gmail.com>
    soc: qcom: smem: Fix signedness bug in smem_dram_parse()

Felix Gu <ustc.gu@gmail.com>
    spi: omap2-mcspi: Remove unbalanced pm_runtime_put_sync() calls

Ruoyu Wang <ruoyuw560@gmail.com>
    pwm: renesas-tpu: Fix runtime PM reference leak

David Heidelberg <david@ixit.cz>
    ASoC: wcd-mbhc-v2: Fix incorrect properties names and typos

Cai Xinchen <caixinchen1@huawei.com>
    lsm: don't call security_backing_file_free() multiple times

Taniya Das <taniya.das@oss.qualcomm.com>
    dt-bindings: clock: qcom: Add GCC video axi reset clocks for Nord

Taniya Das <taniya.das@oss.qualcomm.com>
    arm64: dts: qcom: milos: Add power-domains for camcc and videocc

Taniya Das <taniya.das@oss.qualcomm.com>
    dt-bindings: clock: qcom,milos-videocc: Add missing power-domains support

Taniya Das <taniya.das@oss.qualcomm.com>
    dt-bindings: clock: qcom,milos-camcc: Add missing power-domains support

Runyu Xiao <runyu.xiao@seu.edu.cn>
    remoteproc: xlnx: Initialize mailbox work before requesting channels

Shaikh Kamaluddin <shaikhkamal2012@gmail.com>
    cxl/mce: Avoid alias page retirement for corrected errors

Shujath Mohd <shujath@outlook.in>
    arm64: dts: qcom: sdm845-sony-xperia-tama: Fix Bluetooth UART pinctrl

Greg Ociepka <greg@ferrisoft.com>
    arm64: dts: qcom: glymur: Add missing USB clock, power and bandwidth votes

Linmao Li <lilinmao@kylinos.cn>
    soc: qcom: smem: Fix byte order in v3 14-frequency parser

Gopikrishna Garmidi <gopikrishna.garmidi@oss.qualcomm.com>
    soc: qcom: smem: fix 32-bit overflow in DDR frequency calculation

Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>
    remoteproc: qcom_q6v5_adsp: Fix double jiffies conversion in adsp_start()

Primoz Fiser <primoz.fiser@norik.com>
    arm64: dts: imx8mp-phyboard-pollux-peb-av-10: Fix SAI master assignment

Abel Vesa <abel.vesa@oss.qualcomm.com>
    arm64: dts: qcom: glymur-crd: Mark the EC reset gpio as reserved

Haibo Chen <haibo.chen@nxp.com>
    arm64: dts: imx95-15x15-frdm: fix duplicated can-phy node names

Sven Peter <sven@kernel.org>
    arm64: dts: apple: t6032: Fix cpus node indentation

Sven Peter <sven@kernel.org>
    arm64: dts: apple: t6030: Fix cpus node indentation

Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    dt-bindings: display: panel: samsung,s6e8aa5x01: Allow common properties

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Validate unwinding sizes against record payload

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Validate sym string NUL-termination in code load

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Validate debug entries on native (non-swap) path

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Use dirname() return value in jit_open()

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Free event in jit_repipe_code_move()

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Fix funlockfile on unlocked stream in jit_open() error path

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Check snprintf return before computing header size

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Bounds-check debug entry byte-swap loop

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Prevent integer underflow in debug info size calculation

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Validate code_size against total_size in code load

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Fix debug_data and unwinding_data leaks

Arnaldo Carvalho de Melo <acme@redhat.com>
    perf jitdump: Fix extended header read that always fails

Breno Leitao <leitao@debian.org>
    kexec_file: stop the top-down search before it underflows

Rosen Penev <rosenp@gmail.com>
    ARM: dts: helios4: fix spi1 location

Rosen Penev <rosenp@gmail.com>
    ARM: dts: helios4: fix vbus-supply for USB2 PHY

Mahad Ibrahim <mahad.ibrahim.dev@gmail.com>
    selftests/filesystems: Add .gitignore for fscontext_ns_test

Rosen Penev <rosenp@gmail.com>
    ARM: dts: armada-388-helios4: fix vmmc property name

Rosen Penev <rosenp@gmail.com>
    ARM: dts: armada-395-gp: drop unsupported SDHCI clock-frequency

Rosen Penev <rosenp@gmail.com>
    ARM: dts: armada-385-clearfog-gtr: fix vmmc property name

Rosen Penev <rosenp@gmail.com>
    ARM: dts: helios4: fix lm75 supply name

Pei Xiao <xiaopei01@kylinos.cn>
    ata: pata_parport: Fix use-after-free in new_device_store

Lucas Tanure <tanure@linux.com>
    clk: meson: t7: keep the memory fabric clocks running

Matti Vaittinen <mazziesaccount@gmail.com>
    iio: pressure: rohm-bm1390: Fix AVE_NUM initialization

Salah Triki <salah.triki@gmail.com>
    iio: temperature: tmp117: fix calibbias cache update on I2C write failure

Esben Haabendal <esben@geanix.com>
    dt-bindings: iio: light: ltr501: Add missing ltr303 compatible

Esben Haabendal <esben@geanix.com>
    dt-bindings: iio: light: ltr501: Sort compatible enum array

Adi Nata <adinata.softwareengineer@gmail.com>
    iio: humidity: hts221: report available values via read_avail()

Pengpeng Hou <pengpeng@iscas.ac.cn>
    spi: sh-msiof: propagate setup runtime-PM errors

Chandradhar Kumar <chandradhar.2003@gmail.com>
    regulator: fixed: reject incompatible platform devices

Ihor Solodrai <ihor.solodrai@linux.dev>
    bpftool: Don't drop a type in the sorted C dump

Ihor Solodrai <ihor.solodrai@linux.dev>
    selftests/bpf: Add tests for bpftool btf dump format c

Ihor Solodrai <ihor.solodrai@linux.dev>
    selftests/bpf: NUL-terminate bpftool command output

Raag Jadav <raag.jadav@intel.com>
    drm/ras: Cancel and free message on get counter failure

Leon Hwang <leon.hwang@linux.dev>
    selftests/bpf: Avoid flaky resize value test for percpu data

Yuan Chen <chenyuan_fl@163.com>
    bpftool: Fix spurious batch file read error

Harry Wentland <harry.wentland@amd.com>
    drm/vkms: Fix limited-range YCbCr to RGB conversion scaling

Tapio Reijonen <tapio.reijonen@vaisala.com>
    gpio: pcf857x: implement get_direction()

Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
    drm/amd/pm: Remove unused functions in smu_v15_0

Jiayuan Chen <jiayuan.chen@linux.dev>
    libbpf: Fix usdt attach failure when nop10 crosses page boundary

Kumar Kartikeya Dwivedi <memxor@gmail.com>
    bpf: Reject oversized stream read buffers

Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
    drm/panthor: Take reqs_lock in soft_reset for clearing pending_reqs

Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
    drm/panthor: Revisit reqs_lock handling in flush/reset paths

Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
    drm/panthor: Add tracepoint for cache flushing

Jianlin Shi <shijianlin11@foxmail.com>
    bpf: Reject oversized bpf_stream_vprintk output with -E2BIG

Jianlin Shi <shijianlin11@foxmail.com>
    bpf: Return partial progress from bpf_stream_read on fault

Jianlin Shi <shijianlin11@foxmail.com>
    bpf: Fix stream capacity leak in staging path

Jianlin Shi <shijianlin11@foxmail.com>
    bpf: Roll back stream capacity when allocation fails

Timur Tabi <ttabi@nvidia.com>
    gpu: nova-core: write initial RPCs before booting GSP-RM

Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
    selftests/bpf: Allocate a larger timeout for connection

Darren Carreras <carrerasdarren@gmail.com>
    libbpf: Avoid overflow in BTF.ext bounds check

Marek Vasut <marek.vasut+renesas@mailbox.org>
    drm: of: Fix drm_of_get_data_lanes_count_ep() return value documentation

Andreas Kemnade <andreas@kemnade.info>
    drm/omap: dsi: avoid sending bta sync all the time in writes

Tejun Heo <tj@kernel.org>
    bpf: sched_ext: Mark ops argument container pointer fields as trusted

Adrián Larumbe <adrian.larumbe@collabora.com>
    drm/panfrost: Prevent division by 0

Adrián Larumbe <adrian.larumbe@collabora.com>
    drm/panfrost: Check another bo field for cache option query

Chen-Yu Tsai <wenst@chromium.org>
    drm/verisilicon: Switch to drm_fb_dma_get_addr() for framebuffer addresses

Icenowy Zheng <zhengxingda@iscas.ac.cn>
    drm: verisilicon: fix cursor offset field update

Hao-Qun Huang <alvinhuang0603@gmail.com>
    accel/qaic: reject BO sizes that overflow page count

Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
    accel/qaic: Add <linux/device-id/mhi.h> to qaic_ssr.c

Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
    accel/qaic: Add <linux/device-id/mhi.h> to qaic_ras.c

Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
    accel/qaic: Add <linux/device-id/mhi.h> to qaic_debugfs.c

Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
    accel/qaic: Add <linux/device-id/mhi.h> to qaic_drv.c

Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
    accel/qaic: Add missing <linux/device-id/mhi.h> to sahara and timesync

Raveendra Talabattula <raveendra.talabattula@arm.com>
    drm/komeda: Fix bits parsing of GLB_CORE_ID

Tapio Reijonen <tapio.reijonen@vaisala.com>
    serial: max310x: schedule tx_work directly from the IRQ handler

Pei Xiao <xiaopei01@kylinos.cn>
    comedi: dt2811: fix shift-out-of-bounds in IRQ check

Yang Zi <2959243019@qq.com>
    comedi: addi_apci_3xxx: fix subdevice count underallocation

Amir Goldstein <amir73il@gmail.com>
    ovl: inherit FMODE_NONOTIFY when reading directory layers

Amir Goldstein <amir73il@gmail.com>
    ovl: add assertions in dir cache code

Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
    ASoC: qcom: q6apm: clear g_apm on driver removal

Lorenzo Stoakes (ARM) <ljs@kernel.org>
    fs/proc/task_mmu: fix missed VMAs when reading /proc/PID/maps and friends

YouYou Yu <youyouyu@amazon.com>
    quota: initialize dquot cache before mounting rootfs

Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
    ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure

Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
    ASoC: SDCA: export PM helpers keyed on sdca_class_drv

David Hildenbrand (Arm) <david@kernel.org>
    mm/madvise: preserve VMA_SOFTDIRTY_BIT when changing anonymous names

Lorenzo Stoakes (ARM) <ljs@kernel.org>
    mm/vma: avoid losing atomic VMA flags when setting sticky VMA flags

Guenter Roeck <linux@roeck-us.net>
    hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp()

Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
    hwmon: (coretemp) Read TjMax only when refreshing the temperature

Lorenzo Stoakes (ARM) <ljs@kernel.org>
    mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows

Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
    nvme-tcp: fix use-after-free in nvme_tcp_free_ctrl()

Jann Horn <jannh@google.com>
    cipso: stop modifying live ip_options_rcu

Qu Wenruo <wqu@suse.com>
    btrfs: raid56: do not verify the content if there is no data checksum

Qu Wenruo <wqu@suse.com>
    btrfs: remove on-stack paddrs[] array usage

Qu Wenruo <wqu@suse.com>
    btrfs: use a shared helper to calculate data checksum for a bio

Qu Wenruo <wqu@suse.com>
    btrfs: enhance btrfs_data_csum_ok() to use bio for page iteration

Qu Wenruo <wqu@suse.com>
    btrfs: replace btrfs_repair_io_failure() to use bio for page iteration

Eva Kurchatova <eva.kurchatova@virtuozzo.com>
    hugetlbfs: enforce F_SEAL_EXEC in setattr

Leo Liu <leo.liu@amd.com>
    drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg

Sonny Jiang <sonny.jiang@amd.com>
    drm/amdgpu: VCN 5_0_2 disable VCN_RRMT

Sonny Jiang <sonny.jiang@amd.com>
    drm/amdgpu: Correct VCN V5_0_2 doorbell index setting

Sonny Jiang <sonjiang@amd.com>
    drm/amdgpu: Config VCN instance for soc_v1_0"

Calvin Owens <calvin@wbinvd.org>
    Revert "drm/amd/display: Allocate DCN32/1 dmub memory to GTT"

Maxime Chevallier <maxime.chevallier@bootlin.com>
    net: Use a dedicated flag to track disabled napi instances

Takashi Iwai <tiwai@suse.de>
    ALSA: pcm: Prevent O_APPEND open on OSS streams

Takashi Iwai <tiwai@suse.de>
    ALSA: pcm: Optimize cpu_latency_qos_*() calls

Junjie Cao <junjie.cao@intel.com>
    Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728

Zijun Hu <zijun.hu@oss.qualcomm.com>
    Bluetooth: btusb: Build the driver from multiple source files

Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Bluetooth: Move H:4 reassembly into the Bluetooth core

Matt Turner <mattst88@gmail.com>
    alpha: select SYSCTL_EXCEPTION_TRACE

Gregory Price <gourry@gourry.net>
    mm/userfaultfd: compare exact registration modes before skipping

Eric Dumazet <edumazet@kernel.org>
    inet: frags: bound the wmem charge of the socket completing a reassembly

Ciro Pedrini <ciro.pedrini@gmail.com>
    platform/x86: hp-wmi: Add OMEN board 8A17 thermal profile support

Lorenzo Stoakes (ARM) <ljs@kernel.org>
    mm/vma: fix expansion of VMA_MIXEDMAP_BIT VMAs

Chao Yu <chao@kernel.org>
    f2fs: fix to fetch ino via ino_of_node() under cache lock

Sahil Chandna <sahilchandna@linux.microsoft.com>
    net: mana: Add support to process throttled EQEs

Manish Awasthi <mawasthi@linux.microsoft.com>
    net: mana: Introduce gdma_bus_ops for bus-specific operations

HOYOUNG SEO <hy50.seo@samsung.com>
    scsi: ufs: core: Change the error check sequence for auto hibern8

David Hildenbrand (Arm) <david@kernel.org>
    mm/userfaultfd: wake waiters when registration modes are removed

Ali Ahmet Memiş <aliamemis@disroot.org>
    platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively

Eklavya Singh <eklavyasingh2106@gmail.com>
    ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute

Karl Mehltretter <kmehltretter@gmail.com>
    ocfs2/cluster: hold a reference on the heartbeat thread

Lorenzo Stoakes (ARM) <ljs@kernel.org>
    mm: do not unintentionally overwrite atomic VMA flags

Priyank Rathod <rathodpriyank@google.com>
    PCI/AER: Fix memory leak in aer_recover_work_func() when pci_dev is missing

Josef Bacik <josef@toxicpanda.com>
    mm/shmem: hold off eviction in shmem_writeout()

Yizhou Zhao <zhaoyz24@mails.tsinghua.edu.cn>
    9p/xen: drain response work after unbinding IRQ

Sean Christopherson <seanjc@google.com>
    KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM

Shivansh Dhiman <shivansh.dhiman@amd.com>
    KVM: SVM: Add a vCPU-aware helper to get supported DEBUGCTL bits


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

Diffstat:

 .gitignore                                         |   1 -
 Documentation/ABI/stable/sysfs-class-infiniband    | 118 ---
 Documentation/ABI/testing/sysfs-bus-pci            |  14 +-
 Documentation/ABI/testing/sysfs-class-led          |   4 +-
 Documentation/ABI/testing/sysfs-class-power-mp2629 |   2 +-
 Documentation/admin-guide/LSM/LoadPin.rst          |  10 +-
 Documentation/admin-guide/LSM/ipe.rst              |   4 +-
 Documentation/admin-guide/cgroup-v2.rst            |   4 +-
 Documentation/admin-guide/kernel-parameters.txt    |  10 +-
 Documentation/admin-guide/pm/amd-pstate.rst        |   6 -
 Documentation/bpf/bpf_iterators.rst                |  10 +
 .../bindings/arm/mediatek/mediatek,audsys.yaml     |   2 +-
 .../bindings/clock/mediatek,apmixedsys.yaml        |   2 +-
 .../bindings/clock/mediatek,topckgen.yaml          |   2 +-
 .../bindings/clock/qcom,milos-camcc.yaml           |  19 +
 .../bindings/clock/qcom,milos-videocc.yaml         |  19 +
 .../devicetree/bindings/clock/qcom,sm8750-gcc.yaml |   7 +
 .../devicetree/bindings/display/msm/gmu.yaml       |   2 +-
 .../devicetree/bindings/display/msm/hdmi.yaml      |   4 +-
 .../panel/samsung,s6e8aa5x01-ams561ra01.yaml       |   2 +-
 .../devicetree/bindings/dma/stericsson,dma40.yaml  |  14 +
 .../bindings/iio/adc/renesas,r9a09g077-adc.yaml    |  10 +-
 .../bindings/iio/light/liteon,ltr501.yaml          |   3 +-
 .../interrupt-controller/chrp,open-pic.yaml        |   7 +-
 .../media/allwinner,sun4i-a10-video-engine.yaml    |  21 +-
 .../devicetree/bindings/phy/ti,tcan104x-can.yaml   |   9 +-
 .../devicetree/bindings/power/supply/bq27xxx.yaml  |   1 -
 .../power/supply/stericsson,ab8500-charger.yaml    |  76 +-
 .../bindings/thermal/amlogic,thermal.yaml          |  29 +-
 .../devicetree/bindings/timer/sifive,clint.yaml    |   1 -
 .../devicetree/bindings/vendor-prefixes.yaml       |  20 +
 Documentation/filesystems/erofs.rst                |   7 +
 Documentation/filesystems/f2fs.rst                 |   3 +-
 Documentation/filesystems/resctrl.rst              |   2 +-
 Documentation/leds/leds-st1202.rst                 |   5 +
 Documentation/mm/process_addrs.rst                 |  14 +-
 Documentation/netlink/specs/devlink.yaml           |  64 +-
 Documentation/networking/psp.rst                   |   8 +
 Documentation/networking/tls-offload.rst           |  16 +-
 Documentation/rust/testing.rst                     |   2 +-
 Documentation/trace/histogram.rst                  |   3 +
 Documentation/translations/zh_CN/rust/testing.rst  |   2 +-
 Documentation/virt/hyperv/overview.rst             |  12 +-
 Makefile                                           |   5 +-
 arch/alpha/Kconfig                                 |   1 +
 arch/alpha/include/asm/ptrace.h                    |   7 +-
 arch/alpha/kernel/ptrace.c                         |  12 +
 arch/alpha/mm/fault.c                              |  29 +
 arch/arc/Makefile                                  |   9 +-
 arch/arc/include/asm/cmpxchg.h                     |   4 +
 arch/arc/lib/Makefile                              |   8 +
 arch/arm/boot/dts/gemini/gemini.dtsi               |   2 +-
 .../boot/dts/marvell/armada-385-clearfog-gtr.dtsi  |   2 +-
 arch/arm/boot/dts/marvell/armada-388-helios4.dts   |  23 +-
 arch/arm/boot/dts/marvell/armada-395-gp.dts        |   1 -
 arch/arm/boot/dts/nvidia/tegra114-dalmore.dts      |   4 +-
 arch/arm/boot/dts/nvidia/tegra114-roth.dts         |   4 +-
 arch/arm/boot/dts/nvidia/tegra114-tn7.dts          |   4 +-
 arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi          |  40 +-
 arch/arm/boot/dts/qcom/qcom-msm8974.dtsi           |   3 +
 arch/arm/boot/dts/st/ste-ab8500.dtsi               |   6 -
 arch/arm/boot/dts/st/ste-ab8505.dtsi               |  23 +-
 arch/arm/boot/dts/st/ste-dbx5x0.dtsi               |   5 -
 arch/arm/boot/dts/st/ste-href-ab8500.dtsi          | 104 +++
 arch/arm/boot/dts/st/ste-href-ab8505.dtsi          | 118 ++-
 arch/arm/boot/dts/st/stm32mp135.dtsi               |  44 +-
 arch/arm/boot/dts/st/stm32mp135f-dk.dts            |   1 +
 .../arm/boot/dts/st/stm32mp153c-lxa-fairytux2.dtsi |   2 +-
 arch/arm/boot/dts/st/stm32mp157c-ev1.dts           |   1 +
 arch/arm/boot/dts/st/stm32mp157c-lxa-mc1.dts       |   2 +-
 arch/arm/boot/dts/st/stm32mp157f-dk2-scmi.dtsi     |   1 +
 arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi      |   2 +-
 arch/arm/boot/dts/st/stm32mp15xx-dhcom-som.dtsi    |   2 +
 arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi          |   1 +
 arch/arm/include/asm/domain.h                      |  17 -
 arch/arm/include/asm/memory.h                      |   4 +-
 arch/arm/include/asm/pgtable-2level-hwdef.h        |   1 -
 arch/arm/include/asm/pgtable-2level.h              |   7 -
 arch/arm/include/asm/sparsemem.h                   |   4 +
 arch/arm/kernel/efi.c                              |  13 +
 arch/arm/mach-mvebu/Kconfig                        |   4 +-
 arch/arm/mach-versatile/platsmp-vexpress.c         |   4 +-
 arch/arm/mach-versatile/v2m.c                      |   4 +-
 arch/arm/mm/Kconfig                                |   7 -
 arch/arm/mm/alignment.c                            |  10 +-
 arch/arm/mm/dma-mapping.c                          |   5 +-
 arch/arm/mm/ioremap.c                              |  53 +-
 arch/arm/mm/mmu.c                                  |  76 +-
 arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi       |   4 +-
 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi  |   9 +
 .../boot/dts/amlogic/meson-sm1-odroid-hc4.dts      |   4 +-
 arch/arm64/boot/dts/apple/t6030.dtsi               |   2 +-
 arch/arm64/boot/dts/apple/t6032.dtsi               |   2 +-
 arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts |   5 +
 .../boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi    |  35 +
 arch/arm64/boot/dts/broadcom/bcm2712.dtsi          |  11 +
 arch/arm64/boot/dts/freescale/imx8dxl-evk.dts      |  14 +-
 arch/arm64/boot/dts/freescale/imx8dxl-sr-som.dtsi  |  14 +-
 .../boot/dts/freescale/imx8mp-kontron-dl.dtso      |  11 +
 .../imx8mp-phyboard-pollux-peb-av-10.dtsi          |   5 +-
 arch/arm64/boot/dts/freescale/imx8qm-mek.dts       |  32 +-
 arch/arm64/boot/dts/freescale/imx8qxp-mek.dts      |  20 +-
 arch/arm64/boot/dts/freescale/imx8ulp-evk.dts      |   4 +-
 .../boot/dts/freescale/imx93-11x11-evk-common.dtsi |   4 +-
 .../dts/freescale/imx93-11x11-frdm-common.dtsi     | 680 ++++++++++++++
 arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 679 +-------------
 arch/arm64/boot/dts/freescale/imx93-14x14-evk.dts  |   4 +-
 arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts    |   4 +-
 arch/arm64/boot/dts/freescale/imx94.dtsi           |   2 +-
 arch/arm64/boot/dts/freescale/imx943.dtsi          |   2 +-
 arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts |  16 +-
 arch/arm64/boot/dts/freescale/imx95.dtsi           |   4 +-
 arch/arm64/boot/dts/mediatek/mt6878-pinfunc.h      |   2 +-
 arch/arm64/boot/dts/mediatek/mt6893-pinfunc.h      |   2 +-
 .../mediatek/mt7988a-bananapi-bpi-r4-pro-cn13.dtso |   1 +
 .../mediatek/mt7988a-bananapi-bpi-r4-pro-cn14.dtso |   1 +
 .../mediatek/mt7988a-bananapi-bpi-r4-pro-cn15.dtso |   1 +
 .../mediatek/mt7988a-bananapi-bpi-r4-pro-cn18.dtso |   1 +
 arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi       |   5 +
 arch/arm64/boot/dts/mediatek/mt8173.dtsi           |   2 +-
 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi     |   5 +
 arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi   |   5 +
 arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi    |   7 +-
 arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi   |   5 +
 arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi    |   5 +
 arch/arm64/boot/dts/qcom/agatti.dtsi               |  11 +
 arch/arm64/boot/dts/qcom/eliza.dtsi                |   2 +-
 .../dts/qcom/glymur-asus-zenbook-a16-ux3607oa.dts  |   3 +-
 arch/arm64/boot/dts/qcom/glymur-crd.dtsi           |   3 +-
 arch/arm64/boot/dts/qcom/glymur.dtsi               |  59 ++
 arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts         |  16 +-
 arch/arm64/boot/dts/qcom/kaanapali.dtsi            |   2 +
 .../boot/dts/qcom/lemans-evk-ifp-mezzanine.dtso    |  15 +-
 arch/arm64/boot/dts/qcom/lemans-evk.dts            |   3 +-
 arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi   |   8 +-
 arch/arm64/boot/dts/qcom/milos.dtsi                |  10 +
 .../boot/dts/qcom/monaco-evk-ifp-mezzanine.dtso    |  12 +-
 arch/arm64/boot/dts/qcom/monaco-evk.dts            |   3 +-
 arch/arm64/boot/dts/qcom/purwa-iot-evk.dts         |  27 +-
 arch/arm64/boot/dts/qcom/purwa.dtsi                |   5 +
 .../qcom/qcs6490-rb3gen2-industrial-mezzanine.dtso |  24 +-
 arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts       |  12 +-
 .../dts/qcom/qcs6490-thundercomm-minipc-g1iot.dts  |  12 +-
 arch/arm64/boot/dts/qcom/qcs8300-ride.dts          |   4 +-
 arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts       |  12 +-
 arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi     |  13 +-
 .../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi     |   2 +
 arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts  |   4 +
 arch/arm64/boot/dts/qcom/sm8150.dtsi               |   2 +-
 arch/arm64/boot/dts/qcom/x1-asus-vivobook-s15.dtsi |   1 +
 arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi  |   1 +
 arch/arm64/boot/dts/qcom/x1-crd.dtsi               |   1 +
 arch/arm64/boot/dts/qcom/x1-dell-thena.dtsi        |   1 +
 arch/arm64/boot/dts/qcom/x1-hp-omnibook-x14.dtsi   |   1 +
 arch/arm64/boot/dts/qcom/x1e001de-devkit.dts       |   3 +-
 .../dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi    |   1 +
 .../qcom/x1e80100-dell-inspiron-14-plus-7441.dts   |   4 +-
 .../boot/dts/qcom/x1e80100-dell-xps13-9345.dts     |   1 +
 .../dts/qcom/x1e80100-honor-magicbook-art-14.dts   |   3 +-
 .../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts  |   1 +
 .../dts/qcom/x1e80100-medion-sprchrgd-14-s1.dts    |   1 +
 arch/arm64/boot/dts/qcom/x1e80100-qcp.dts          |   1 +
 .../boot/dts/qcom/x1p42100-lenovo-thinkbook-16.dts |   1 +
 arch/arm64/boot/dts/renesas/r8a78000-ironhide.dts  |  12 +-
 arch/arm64/boot/dts/renesas/r9a09g077.dtsi         |  18 +-
 arch/arm64/boot/dts/renesas/r9a09g087.dtsi         |  18 +-
 arch/arm64/boot/dts/rockchip/rk3328.dtsi           |   2 +-
 arch/arm64/boot/dts/rockchip/rk3399-firefly.dts    |  32 +-
 arch/arm64/boot/dts/rockchip/rk3566-base.dtsi      |   4 +
 arch/arm64/boot/dts/rockchip/rk3568.dtsi           |   4 +
 arch/arm64/boot/dts/rockchip/rk356x-base.dtsi      |   1 -
 .../boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts |   9 -
 arch/arm64/boot/dts/rockchip/rk3576.dtsi           |   2 +-
 arch/arm64/boot/dts/rockchip/rk3588-base.dtsi      |   2 +-
 arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi     |   2 +-
 .../boot/dts/rockchip/rk3588s-gameforce-ace.dts    |   7 +-
 .../arm64/boot/dts/rockchip/rk3588s-nanopi-r6.dtsi |  20 +
 .../boot/dts/rockchip/rk3588s-orangepi-5-pro.dts   |  14 +-
 arch/arm64/boot/dts/st/stm32mp231.dtsi             |   4 +-
 arch/arm64/boot/dts/st/stm32mp251.dtsi             |   4 +-
 arch/arm64/boot/dts/ti/k3-am62-verdin-ivy.dtsi     |  41 +-
 arch/arm64/boot/dts/ti/k3-am62-verdin-zinnia.dtsi  |  41 +-
 arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi         |  41 +-
 arch/arm64/boot/dts/ti/k3-am62a-phycore-som.dtsi   |   2 +-
 arch/arm64/boot/dts/ti/k3-am62a7-sk.dts            |   2 +-
 arch/arm64/boot/dts/ti/k3-am62d2-evm.dts           |   2 +-
 arch/arm64/boot/dts/ti/k3-am62l3-evm.dts           |   4 +-
 arch/arm64/boot/dts/ti/k3-am62p-verdin.dtsi        |   2 +-
 arch/arm64/boot/dts/ti/k3-am62p5-sk.dts            |   2 +-
 arch/arm64/boot/dts/ti/k3-am62p5-var-som.dtsi      |   2 +-
 arch/arm64/boot/dts/ti/k3-am69-aquila.dtsi         |   2 +-
 arch/arm64/boot/dts/ti/k3-j722s-evm.dts            |  25 +-
 .../boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi   |   2 +
 arch/arm64/include/asm/rsi_smc.h                   |   2 +-
 arch/arm64/kernel/pi/Makefile                      |   1 +
 arch/arm64/net/bpf_jit_comp.c                      |  32 +-
 arch/arm64/net/bpf_timed_may_goto.S                |  10 +-
 arch/hexagon/include/asm/cmpxchg.h                 |   6 +
 arch/loongarch/net/bpf_jit.c                       |   8 +-
 arch/m68k/apollo/dn_ints.c                         |   6 +
 arch/m68k/mac/config.c                             |  31 +-
 arch/microblaze/Makefile                           |   6 +-
 arch/microblaze/include/asm/uaccess.h              |   3 +-
 arch/microblaze/kernel/cpu/cpuinfo.c               |   1 +
 arch/microblaze/kernel/ptrace.c                    |   3 +
 arch/mips/Makefile                                 |  22 +-
 arch/mips/cavium-octeon/dma-octeon.c               |   2 +-
 arch/mips/include/asm/dec/reset.h                  |   1 +
 arch/nios2/kernel/nios2_ksyms.c                    |   1 +
 arch/openrisc/include/asm/cmpxchg.h                |   2 +
 arch/powerpc/include/asm/interrupt.h               |   7 +-
 arch/powerpc/include/asm/kasan.h                   |  15 -
 arch/powerpc/include/asm/string.h                  |  21 +-
 arch/powerpc/kernel/cputable.c                     |  14 +-
 arch/powerpc/kernel/prom_init.c                    |  10 +-
 arch/powerpc/kernel/prom_init_check.sh             |  15 +-
 arch/powerpc/kernel/trace/ftrace_entry.S           |   6 +
 arch/powerpc/lib/copy_32.S                         |  10 +-
 arch/powerpc/lib/mem_64.S                          |   7 +-
 arch/powerpc/lib/memcpy_64.S                       |   4 +-
 arch/powerpc/net/bpf_jit.h                         |   6 +
 arch/powerpc/net/bpf_jit_comp.c                    |  46 +-
 arch/powerpc/net/bpf_jit_comp64.c                  |   8 +-
 arch/riscv/boot/dts/sophgo/cv180x.dtsi             |   2 +-
 arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts   |   2 +-
 arch/riscv/boot/dts/spacemit/k3-com260.dtsi        |   1 +
 arch/riscv/boot/dts/spacemit/k3-pico-itx.dts       |   2 +
 arch/riscv/boot/dts/spacemit/k3.dtsi               |  48 +-
 arch/riscv/boot/dts/starfive/jh7100-common.dtsi    |  28 +-
 arch/riscv/boot/dts/starfive/jh7100.dtsi           |  67 +-
 arch/riscv/boot/dts/starfive/jh7110-common.dtsi    |  27 +-
 arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts |   6 +-
 .../boot/dts/starfive/jh7110-milkv-marscm.dtsi     |   6 +-
 .../boot/dts/starfive/jh7110-pine64-star64.dts     |   6 +-
 .../jh7110-starfive-visionfive-2-lite.dtsi         |   6 +-
 .../dts/starfive/jh7110-starfive-visionfive-2.dtsi |   6 +-
 arch/riscv/boot/dts/starfive/jh7110.dtsi           |  67 +-
 arch/riscv/include/asm/insn.h                      |   2 +-
 arch/riscv/net/bpf_jit_comp64.c                    |  24 +-
 arch/riscv/net/bpf_jit_core.c                      |   1 +
 arch/riscv/net/bpf_timed_may_goto.S                |  33 +-
 arch/s390/include/asm/entry-percpu.h               |  71 +-
 arch/s390/include/asm/lowcore.h                    |   3 +
 arch/s390/include/asm/percpu.h                     | 356 +++++---
 arch/s390/kernel/early.c                           |  15 +-
 arch/s390/kernel/irq.c                             |  10 +-
 arch/s390/kernel/nmi.c                             |   4 +-
 arch/s390/kernel/ptrace.c                          |   9 +-
 arch/s390/kernel/traps.c                           |   4 +-
 arch/s390/kernel/uprobes.c                         |   2 +-
 arch/sh/Kconfig                                    |   1 +
 arch/sh/boards/board-sh7785lcr.c                   |   2 +-
 arch/sh/boot/dts/Makefile                          |   2 +-
 arch/sh/configs/migor_defconfig                    |   2 +-
 arch/sh/configs/sdk7786_defconfig                  |   2 +-
 arch/sh/configs/shx3_defconfig                     |   2 +-
 arch/sh/include/asm/uaccess_32.h                   |   8 +-
 arch/um/include/shared/skas/stub-data.h            |   9 +
 arch/um/kernel/skas/syscall.c                      |   5 +-
 arch/x86/boot/string.c                             |  13 +-
 arch/x86/include/asm/cpuid/api.h                   |   2 +-
 arch/x86/include/asm/shared/string.h               |  52 ++
 arch/x86/include/asm/string.h                      |  21 +-
 arch/x86/include/asm/svm.h                         |   4 +-
 arch/x86/kernel/cpu/common.c                       |  76 +-
 arch/x86/kernel/cpu/mshyperv.c                     |  27 +-
 arch/x86/kernel/crash.c                            |   6 +-
 arch/x86/kernel/fpu/xstate.c                       |   7 +-
 arch/x86/kvm/svm/nested.c                          |  31 +-
 arch/x86/kvm/svm/svm.c                             |   8 +-
 arch/x86/kvm/svm/svm.h                             |   9 +-
 arch/x86/net/bpf_jit_comp.c                        |  34 +-
 arch/x86/net/bpf_timed_may_goto.S                  |  13 +-
 arch/x86/platform/pvh/enlighten.c                  |   5 +-
 arch/x86/power/hibernate.c                         |  51 +-
 block/bdev.c                                       |  14 +-
 block/bfq-iosched.c                                |   4 +-
 block/bio-integrity-fs.c                           |  13 +-
 block/bio.c                                        |  50 +-
 block/blk-cgroup.c                                 |  39 +-
 block/blk-cgroup.h                                 |   6 +-
 block/blk-flush.c                                  |   8 +-
 block/blk-iocost.c                                 | 120 ++-
 block/blk-iolatency.c                              |   6 +-
 block/blk-map.c                                    |   1 +
 block/blk-mq-dma.c                                 |   2 +
 block/blk-mq-tag.c                                 |  25 +-
 block/blk-mq.c                                     |  93 +-
 block/blk-mq.h                                     |   2 +
 block/blk-settings.c                               |   6 +
 block/blk-throttle.c                               |  28 +-
 block/blk-timeout.c                                |   3 +-
 block/blk.h                                        |  14 +
 block/fops.c                                       | 117 ++-
 block/partitions/mac.c                             |   4 +-
 crypto/algapi.c                                    |  23 +-
 crypto/asymmetric_keys/pkcs7_parser.c              |   6 +
 crypto/asymmetric_keys/verify_pefile.c             |   5 +
 crypto/asymmetric_keys/x509_public_key.c           |   6 +-
 crypto/lskcipher.c                                 |   6 +-
 crypto/rsassa-pkcs1.c                              |   4 +-
 crypto/tcrypt.c                                    | 182 ++--
 drivers/accel/amdxdna/aie2_ctx.c                   | 126 ++-
 drivers/accel/amdxdna/aie2_pci.c                   |  15 +-
 drivers/accel/amdxdna/aie2_pci.h                   |   6 +-
 drivers/accel/amdxdna/amdxdna_gem.c                | 465 +++++++---
 drivers/accel/amdxdna/amdxdna_gem.h                |   6 +-
 drivers/accel/ethosu/ethosu_drv.c                  |   2 +-
 drivers/accel/ivpu/ivpu_gem.c                      |   2 +-
 drivers/accel/qaic/qaic_data.c                     |  22 +-
 drivers/accel/qaic/qaic_debugfs.c                  |   1 +
 drivers/accel/qaic/qaic_drv.c                      |   1 +
 drivers/accel/qaic/qaic_ras.c                      |   1 +
 drivers/accel/qaic/qaic_ssr.c                      |   1 +
 drivers/accel/qaic/qaic_timesync.c                 |   1 +
 drivers/accel/qaic/sahara.c                        |   1 +
 drivers/accel/rocket/rocket_gem.c                  |   2 +-
 drivers/accel/rocket/rocket_job.c                  |   2 -
 drivers/acpi/acpi_extlog.c                         |  64 +-
 drivers/acpi/acpi_pcc.c                            |  33 +-
 drivers/acpi/acpi_video.c                          |  12 +-
 drivers/acpi/acpica/dsfield.c                      |   3 +-
 drivers/acpi/acpica/exfield.c                      |  11 +-
 drivers/acpi/acpica/nsxfname.c                     |   1 +
 drivers/acpi/apei/ghes.c                           |  92 +-
 drivers/acpi/apei/ghes_helpers.c                   |  18 +-
 drivers/acpi/button.c                              |  12 +
 drivers/acpi/cppc_acpi.c                           |  22 +-
 drivers/acpi/device_pm.c                           |  77 +-
 drivers/acpi/fan_core.c                            |   9 +-
 drivers/acpi/glue.c                                | 142 ++-
 drivers/acpi/numa/hmat.c                           |   2 +-
 drivers/acpi/pci_link.c                            |   1 +
 drivers/acpi/pci_root.c                            |  76 +-
 drivers/acpi/platform_profile.c                    |  82 +-
 drivers/acpi/scan.c                                |  40 +-
 drivers/acpi/tables.c                              |   3 +
 drivers/android/binder/process.rs                  |   4 +-
 drivers/ata/ahci.c                                 |  31 +-
 drivers/ata/libahci.c                              |  15 +
 drivers/ata/libata-core.c                          |  21 +-
 drivers/ata/libata-scsi.c                          |   2 +-
 drivers/ata/pata_parport/pata_parport.c            |   9 +-
 drivers/ata/sata_dwc_460ex.c                       |   5 +-
 drivers/base/node.c                                |  17 +-
 drivers/base/power/runtime.c                       |   6 +-
 drivers/block/drbd/drbd_main.c                     |   1 +
 drivers/block/drbd/drbd_receiver.c                 |   2 +
 drivers/block/floppy.c                             |  10 +-
 drivers/block/rnbd/rnbd-srv-sysfs.c                |  28 +-
 drivers/block/rnbd/rnbd-srv.c                      |  36 +-
 drivers/block/rnull/configfs.rs                    |   2 +-
 drivers/block/swim.c                               | 287 +++---
 drivers/block/swim3.c                              |   8 +-
 drivers/block/swim_asm.S                           | 136 +--
 drivers/block/ublk_drv.c                           |   9 +-
 drivers/block/xen-blkback/blkback.c                |   7 +
 drivers/block/zloop.c                              |  80 +-
 drivers/block/zram/zram_drv.c                      | 110 +--
 drivers/bluetooth/Makefile                         |   2 +
 drivers/bluetooth/btintel.c                        |   8 +
 drivers/bluetooth/btintel.h                        |   1 +
 drivers/bluetooth/btintel_pcie.c                   | 530 +++++++++--
 drivers/bluetooth/btintel_pcie.h                   |  64 +-
 drivers/bluetooth/btmtk.c                          |  88 +-
 drivers/bluetooth/btmtksdio.c                      |  13 +-
 drivers/bluetooth/{btusb.c => btusb_main.c}        |  13 +-
 drivers/bluetooth/hci_h4.c                         | 123 +--
 drivers/bluetooth/hci_uart.h                       |  39 +-
 drivers/bluetooth/virtio_bt.c                      |   4 +-
 drivers/bus/arm-cci.c                              |   6 +-
 drivers/bus/mhi/host/pci_generic.c                 |   5 +-
 drivers/char/hw_random/cctrng.c                    |   7 +-
 drivers/char/hw_random/intel-rng.c                 |   5 +-
 drivers/char/hw_random/jh7110-trng.c               |  39 +-
 drivers/char/scx200_gpio.c                         |   8 +-
 drivers/clk/aspeed/Kconfig                         |   1 +
 drivers/clk/bcm/clk-raspberrypi.c                  |   2 +
 drivers/clk/clk-cdce925.c                          |   9 +-
 drivers/clk/clk-lmk04832.c                         |   3 +
 drivers/clk/clk-milbeaut.c                         |  10 +-
 drivers/clk/clk-renesas-pcie.c                     |   5 +
 drivers/clk/clk-s2mps11.c                          |  12 +-
 drivers/clk/clk-si521xx.c                          |   2 +-
 drivers/clk/clk-si5351.c                           |  20 +-
 drivers/clk/clk.c                                  |  65 +-
 drivers/clk/clk.h                                  |   5 +-
 drivers/clk/clk_test.c                             |  12 +-
 drivers/clk/clkdev.c                               |   4 +-
 drivers/clk/imx/clk-composite-93.c                 |  11 +-
 drivers/clk/kunit_clk_assigned_rates.h             |   4 +-
 drivers/clk/mediatek/reset.h                       |   6 +-
 drivers/clk/meson/t7-peripherals.c                 |  13 +-
 drivers/clk/qcom/Kconfig                           |   2 +-
 drivers/clk/qcom/cambistmclkcc-kaanapali.c         |   7 +
 drivers/clk/qcom/cambistmclkcc-sm8750.c            |   7 +
 drivers/clk/qcom/camcc-glymur.c                    |   7 +
 drivers/clk/qcom/clk-alpha-pll.c                   |   9 +
 drivers/clk/qcom/clk-rcg2.c                        |  35 +-
 drivers/clk/qcom/clk-rpmh.c                        |   5 +
 drivers/clk/qcom/dispcc-sm8450.c                   |   2 +-
 drivers/clk/qcom/gcc-eliza.c                       |   1 +
 drivers/clk/qcom/gcc-glymur.c                      |  69 +-
 drivers/clk/qcom/gcc-ipq5424.c                     |   4 +-
 drivers/clk/qcom/gcc-kaanapali.c                   |   1 +
 drivers/clk/qcom/gcc-qcs615.c                      |   2 +-
 drivers/clk/qcom/gcc-x1e80100.c                    |   6 +-
 drivers/clk/qcom/lpasscc-sm6115.c                  |   4 +-
 drivers/clk/qcom/mmcc-msm8960.c                    |   3 +-
 drivers/clk/qcom/mmcc-msm8996.c                    |   4 +-
 drivers/clk/qcom/mmcc-sdm660.c                     |   2 +-
 drivers/clk/qcom/negcc-nord.c                      |   4 +-
 drivers/clk/qcom/nwgcc-nord.c                      |   5 +-
 drivers/clk/qcom/segcc-nord.c                      |   8 +-
 drivers/clk/starfive/clk-starfive-jh7110-sys.c     |   3 +
 drivers/clk/stm32/clk-stm32mp21.c                  |   4 +-
 drivers/clk/sunxi-ng/ccu-sun55i-a523-r.c           |  37 +-
 drivers/clk/sunxi-ng/ccu-sun55i-a523.c             | 128 ++-
 drivers/clk/sunxi-ng/ccu_div.h                     |  18 +-
 drivers/clk/ti/adpll.c                             |   1 +
 drivers/clk/versatile/clk-icst.c                   |   4 +
 drivers/clocksource/clksrc-dbx500-prcmu.c          |   2 +
 drivers/clocksource/timer-econet-en751221.c        |   1 +
 drivers/clocksource/timer-mediatek.c               |   4 +-
 drivers/clocksource/timer-ti-dm.c                  |  10 +-
 drivers/comedi/drivers/addi_apci_3xxx.c            |   2 +-
 drivers/comedi/drivers/comedi_parport.c            |   3 +-
 drivers/comedi/drivers/dmm32at.c                   |   3 +-
 drivers/comedi/drivers/dt2811.c                    |   2 +-
 drivers/comedi/drivers/dt2814.c                    |   3 +-
 drivers/comedi/drivers/ni_atmio16d.c               |   4 +-
 drivers/comedi/drivers/pcmmio.c                    |   3 +-
 drivers/comedi/drivers/pcmuio.c                    |   5 +-
 drivers/cpufreq/amd-pstate-ut.c                    |  23 +-
 drivers/cpufreq/amd-pstate.c                       |  37 +-
 drivers/cpufreq/amd-pstate.h                       |  14 +
 drivers/cpufreq/qcom-cpufreq-hw.c                  |   3 +
 drivers/cpufreq/sparc-us2e-cpufreq.c               |  11 +-
 drivers/cpufreq/sti-cpufreq.c                      |   4 +-
 drivers/cpufreq/tegra194-cpufreq.c                 |   2 +-
 drivers/cpuidle/governors/menu.c                   |   8 +-
 drivers/cpuidle/governors/teo.c                    |  11 +
 drivers/crypto/amlogic/amlogic-gxl-cipher.c        |  25 +-
 drivers/crypto/atmel-aes.c                         |   2 +
 drivers/crypto/atmel-sha.c                         |  17 +
 drivers/crypto/caam/caamalg_qi.c                   |   2 +
 drivers/crypto/caam/caamalg_qi2.c                  |   2 +
 drivers/crypto/ccp/ccp-dev-v3.c                    |   4 +
 drivers/crypto/ccp/ccp-dev-v5.c                    |   4 +
 drivers/crypto/ccp/sfs.c                           |   9 +-
 drivers/crypto/hisilicon/hpre/hpre_crypto.c        |   2 -
 drivers/crypto/inside-secure/eip93/eip93-regs.h    |   2 +-
 drivers/crypto/inside-secure/safexcel_hash.c       |   3 +
 drivers/crypto/intel/qat/qat_common/adf_cfg.c      |  49 +-
 drivers/crypto/intel/qat/qat_common/adf_init.c     |  24 +-
 drivers/crypto/intel/qat/qat_common/adf_isr.c      |  15 +-
 .../crypto/intel/qat/qat_common/adf_sysfs_kpt.c    |  24 +-
 drivers/crypto/intel/qat/qat_common/qat_algs.c     |  15 +-
 .../crypto/intel/qat/qat_common/qat_asym_algs.c    |  38 +-
 drivers/crypto/mxs-dcp.c                           |   3 +
 drivers/crypto/starfive/jh7110-cryp.c              |  20 +-
 drivers/crypto/talitos.c                           |  54 +-
 drivers/cxl/core/cdat.c                            |   8 +-
 drivers/cxl/core/core.h                            |  14 +-
 drivers/cxl/core/edac.c                            |  30 +-
 drivers/cxl/core/features.c                        |  56 +-
 drivers/cxl/core/hdm.c                             |  62 +-
 drivers/cxl/core/mce.c                             |   8 +-
 drivers/cxl/core/pci.c                             |  21 +-
 drivers/cxl/core/port.c                            | 218 +++--
 drivers/cxl/core/ras.c                             |   6 +-
 drivers/cxl/core/ras_rch.c                         |  12 +-
 drivers/cxl/core/region.c                          |  15 +-
 drivers/cxl/core/region_pmem.c                     |   6 +-
 drivers/cxl/cxl.h                                  |  24 +-
 drivers/cxl/mem.c                                  |  28 +-
 drivers/cxl/pci.c                                  |  11 +-
 drivers/dax/bus.c                                  |   8 +-
 drivers/dax/fsdev.c                                |  23 +
 drivers/dax/super.c                                |   3 +-
 drivers/dma/at_hdmac.c                             |  44 +-
 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c     |  37 +-
 drivers/dma/dw-axi-dmac/dw-axi-dmac.h              |   5 +-
 drivers/dma/fsl_raid.c                             |  32 +-
 drivers/dma/img-mdc-dma.c                          |   2 +-
 drivers/dma/ioat/init.c                            |  18 +-
 drivers/dma/loongson/loongson2-apb-cmc-dma.c       |   2 +-
 drivers/dma/mediatek/mtk-hsdma.c                   |  26 +-
 drivers/dma/mv_xor.c                               |   1 +
 drivers/dma/plx_dma.c                              |  10 +-
 drivers/dma/sprd-dma.c                             |  45 +-
 drivers/dma/ste_dma40.c                            | 587 ++++++++++---
 drivers/dma/ste_dma40_ll.c                         |   8 +-
 drivers/dma/ste_dma40_ll.h                         |   4 +-
 drivers/dma/sun6i-dma.c                            |  31 +-
 drivers/dma/switchtec_dma.c                        |  56 +-
 drivers/dma/xilinx/xilinx_dma.c                    |  37 +-
 drivers/dma/xilinx/zynqmp_dma.c                    |  48 +-
 drivers/dpll/zl3073x/dpll.c                        | 241 +++--
 drivers/dpll/zl3073x/out.h                         |  36 +
 drivers/dpll/zl3073x/prop.c                        |  56 +-
 drivers/edac/i10nm_base.c                          |   1 +
 drivers/firmware/arm_scmi/common.h                 |  22 +
 drivers/firmware/arm_scmi/driver.c                 |  38 +-
 drivers/firmware/arm_scmi/protocols.h              |   9 +-
 drivers/firmware/arm_scmi/raw_mode.c               |  30 +-
 drivers/firmware/cirrus/cs_dsp.c                   |   2 +
 drivers/firmware/efi/cper.c                        |  51 +-
 drivers/firmware/efi/libstub/efi-stub-entry.c      |   4 +-
 drivers/firmware/efi/libstub/efi-stub-helper.c     |  10 +-
 drivers/firmware/efi/libstub/efi-stub.c            |   2 +-
 drivers/firmware/efi/libstub/efistub.h             |   4 +-
 drivers/firmware/efi/libstub/fdt.c                 |   6 +-
 drivers/firmware/efi/libstub/file.c                |   8 +-
 drivers/firmware/efi/libstub/kaslr.c               |   2 +-
 drivers/firmware/efi/libstub/mem.c                 |   2 +-
 drivers/firmware/efi/libstub/pci.c                 |   2 +-
 drivers/firmware/efi/libstub/random.c              |   8 +-
 drivers/firmware/efi/libstub/riscv-stub.c          |   7 +-
 drivers/firmware/efi/libstub/riscv.c               |   2 +-
 drivers/firmware/efi/libstub/tpm.c                 |   8 +-
 drivers/firmware/efi/libstub/unaccepted_memory.c   |   2 +-
 drivers/firmware/efi/libstub/x86-stub.c            |  10 +-
 drivers/firmware/efi/runtime-wrappers.c            |  14 +-
 drivers/firmware/imx/imx-dsp.c                     |   6 +-
 drivers/firmware/qcom/qcom_scm.c                   |  16 +-
 drivers/firmware/qcom/qcom_tzmem.c                 |   2 +-
 drivers/gpio/gpio-crystalcove.c                    |   1 +
 drivers/gpio/gpio-pcf857x.c                        |  16 +-
 drivers/gpio/gpiolib.c                             |  20 +-
 drivers/gpu/buddy.c                                |   1 -
 drivers/gpu/drm/Makefile                           |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c         |   5 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c    |   7 +-
 drivers/gpu/drm/amd/amdgpu/atom.c                  |  29 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c             |  72 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c             |   6 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c             |   6 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c             |   6 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c             |   6 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c           |   6 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c           |   6 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c           |   6 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c           |   6 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_2.c           |   6 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v5_3_0.c           |   6 +-
 drivers/gpu/drm/amd/amdgpu/mes_userqueue.c         |   3 +-
 drivers/gpu/drm/amd/amdgpu/soc_v1_0.c              |   8 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c              |   4 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c              |   4 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c              |   4 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c              |   4 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c              |   4 +-
 drivers/gpu/drm/amd/amdgpu/vce_v1_0.c              |   6 +-
 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c              |   6 +-
 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c              |   6 +-
 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c              |   6 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c              |  11 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c              |   8 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c              |  12 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c              |  12 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c              |  10 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c            |  10 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c            |  10 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c            |  10 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c            |  10 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c            |  14 +-
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h              |   2 -
 drivers/gpu/drm/amd/display/Kconfig                |   9 +
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |   4 +
 .../amd/display/amdgpu_dm/amdgpu_dm_connector.c    |  18 +
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_dmub.c |  11 +-
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c  |  18 +
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h    |  94 +-
 .../amdgpu_dm/tests/amdgpu_dm_helpers_test.c       |  17 +
 .../drm/amd/display/dc/bios/command_table_helper.c |   7 +-
 .../amd/display/dc/bios/command_table_helper2.c    |   2 +
 drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile    |   8 +
 drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c   |   4 +
 .../amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c    | 115 ---
 .../amd/display/dc/clk_mgr/dce100/dce_clk_mgr.h    |   8 +-
 .../amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c |  59 --
 .../amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.h |   4 +-
 .../amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.c   | 181 ++++
 .../amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.h   |  29 +
 drivers/gpu/drm/amd/display/dc/core/dc.c           |   4 +-
 .../gpu/drm/amd/display/dc/core/dc_hw_sequencer.c  | 113 ++-
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c  |  79 ++
 drivers/gpu/drm/amd/display/dc/dc_types.h          |   1 +
 .../gpu/drm/amd/display/dc/dce/dce_clock_source.c  |   6 +-
 .../src/dml2_core/dml2_core_dcn6_calcs_dchub.c     |   2 +-
 drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c   |   4 +
 drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c |   4 +
 .../drm/amd/display/dc/hubbub/dcn42/dcn42_hubbub.h |   7 +-
 drivers/gpu/drm/amd/display/dc/hwss/Makefile       |   6 +
 .../drm/amd/display/dc/hwss/dce110/dce110_hwseq.c  |  25 +-
 .../drm/amd/display/dc/hwss/dce60/dce60_hwseq.c    |   3 +-
 .../drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c    |  35 +-
 .../drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.h    |   3 +-
 .../drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c    |  63 +-
 .../drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.h    |   7 +-
 .../drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c    |  51 +-
 .../drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.h    |   8 +-
 .../drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c    |  60 +-
 .../drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.h    |  10 +-
 .../drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c  |  53 +-
 .../drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h  |   9 +-
 .../drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.c    |  51 +-
 .../drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.h    |  12 +-
 drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h |  23 +-
 .../drm/amd/display/dc/hwss/hw_sequencer_private.h |  18 +-
 drivers/gpu/drm/amd/display/dc/irq/Makefile        |   2 +
 .../amd/display/dc/irq/dce110/irq_service_dce110.c |  21 -
 .../amd/display/dc/irq/dce110/irq_service_dce110.h |   9 -
 drivers/gpu/drm/amd/display/dc/irq/irq_service.c   |  28 +
 drivers/gpu/drm/amd/display/dc/irq/irq_service.h   |   9 +
 drivers/gpu/drm/amd/display/dc/resource/Makefile   |   4 +
 .../display/dc/resource/dce112/dce112_resource.c   |  62 --
 .../display/dc/resource/dcn42b/dcn42b_resource.c   |   2 +
 .../gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c    |   3 +
 drivers/gpu/drm/amd/pm/swsmu/inc/smu_v15_0.h       |   6 -
 drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c     | 166 ----
 drivers/gpu/drm/amd/ras/core/eeprom.c              |   6 +-
 .../gpu/drm/arm/display/include/malidp_product.h   |  10 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c    |   5 -
 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c          |   2 +-
 drivers/gpu/drm/drm_connector.c                    |   2 +
 drivers/gpu/drm/drm_of.c                           |   8 +-
 drivers/gpu/drm/drm_pagemap.c                      |   3 +-
 drivers/gpu/drm/drm_ras.c                          |  19 +-
 drivers/gpu/drm/drm_syncobj.c                      |  35 +-
 drivers/gpu/drm/drm_timeout.c                      |  95 ++
 drivers/gpu/drm/exynos/exynos_drm_fimd.c           |   2 +-
 drivers/gpu/drm/i915/display/intel_psr.c           |  13 +
 drivers/gpu/drm/imx/lcdc/imx-lcdc.c                |   3 +-
 drivers/gpu/drm/lima/lima_gem.c                    |   2 +-
 drivers/gpu/drm/msm/adreno/a3xx_gpu.c              |  12 +-
 drivers/gpu/drm/msm/adreno/a5xx_gpu.c              |  49 +-
 drivers/gpu/drm/msm/adreno/a6xx_gmu.c              |  20 +-
 drivers/gpu/drm/msm/adreno/a6xx_gpu.c              |  40 +-
 drivers/gpu/drm/msm/adreno/a8xx_gpu.c              |   3 +
 drivers/gpu/drm/msm/adreno/adreno_gpu.c            |   3 +-
 drivers/gpu/drm/msm/adreno/adreno_gpu.h            |   7 +
 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c      |  17 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c        |  10 +-
 .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c   |   4 +-
 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c           |   9 -
 drivers/gpu/drm/msm/dp/dp_ctrl.c                   |   3 +
 drivers/gpu/drm/msm/dp/dp_debug.c                  |   1 +
 drivers/gpu/drm/msm/msm_io_utils.c                 |   6 +-
 drivers/gpu/drm/omapdrm/dss/dsi.c                  |  63 +-
 drivers/gpu/drm/panel/Kconfig                      |   2 +
 drivers/gpu/drm/panfrost/panfrost_devfreq.c        |   2 +-
 drivers/gpu/drm/panfrost/panfrost_device.c         |  19 +-
 drivers/gpu/drm/panfrost/panfrost_device.h         |   1 +
 drivers/gpu/drm/panfrost/panfrost_drv.c            |  43 +-
 drivers/gpu/drm/panfrost/panfrost_drv.h            |   9 -
 drivers/gpu/drm/panfrost/panfrost_gem.c            |  35 +-
 drivers/gpu/drm/panfrost/panfrost_gem.h            |   7 +-
 drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c   |   9 +-
 drivers/gpu/drm/panfrost/panfrost_gpu.c            |   2 +
 drivers/gpu/drm/panfrost/panfrost_job.c            |   2 +
 drivers/gpu/drm/panfrost/panfrost_mmu.c            |  14 +-
 drivers/gpu/drm/panfrost/panfrost_perfcnt.c        | 315 ++++---
 drivers/gpu/drm/panfrost/panfrost_perfcnt.h        |   1 +
 drivers/gpu/drm/panthor/panthor_gem.c              |   3 +
 drivers/gpu/drm/panthor/panthor_gpu.c              |  89 +-
 drivers/gpu/drm/panthor/panthor_mmu.c              |  28 +-
 drivers/gpu/drm/panthor/panthor_trace.h            |  38 +
 drivers/gpu/drm/pl111/pl111_display.c              |   6 -
 drivers/gpu/drm/pl111/pl111_drv.c                  |  16 -
 drivers/gpu/drm/pl111/pl111_versatile.c            |  18 -
 drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c     |  18 +-
 drivers/gpu/drm/tegra/submit.c                     |  12 +-
 drivers/gpu/drm/tegra/uapi.c                       |   2 +-
 drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c |  54 --
 drivers/gpu/drm/tiny/appletbdrm.c                  |  48 +-
 drivers/gpu/drm/vc4/vc4_bo.c                       |   3 +-
 drivers/gpu/drm/vc4/vc4_drv.c                      |  29 -
 drivers/gpu/drm/vc4/vc4_gem.c                      |   3 +-
 drivers/gpu/drm/vc4/vc4_hvs.c                      |  10 +
 drivers/gpu/drm/vc4/vc4_v3d.c                      |   8 +-
 drivers/gpu/drm/verisilicon/vs_cursor_plane.c      |   8 +-
 drivers/gpu/drm/verisilicon/vs_plane.c             |  20 -
 drivers/gpu/drm/verisilicon/vs_plane.h             |   2 -
 drivers/gpu/drm/verisilicon/vs_primary_plane.c     |   7 +-
 drivers/gpu/drm/vkms/tests/gen_yuv_conversion.py   |  87 ++
 drivers/gpu/drm/vkms/tests/vkms_format_test.c      |  38 +-
 drivers/gpu/drm/vkms/vkms_formats.c                |  55 +-
 drivers/gpu/drm/xe/xe_pagefault.c                  |   7 +
 drivers/gpu/drm/xe/xe_wait_user_fence.c            |   2 +-
 drivers/gpu/nova-core/gsp/boot.rs                  |  10 +-
 drivers/hid/hid-asus.c                             |  28 +-
 drivers/hid/hid-ids.h                              |   1 +
 drivers/hid/hid-logitech-hidpp.c                   |   1 +
 drivers/hid/hid-magicmouse.c                       |   4 +
 drivers/hid/hid-nintendo.c                         |  14 +-
 drivers/hid/i2c-hid/i2c-hid-core.c                 |  11 +-
 .../intel-thc-hid/intel-quicki2c/pci-quicki2c.c    |   4 +-
 .../intel-thc-hid/intel-quicki2c/quicki2c-dev.h    |   2 +
 .../intel-thc-hid/intel-quicki2c/quicki2c-hid.c    |   6 +-
 .../intel-thc-hid/intel-quicki2c/quicki2c-hid.h    |   2 +-
 .../intel-thc-hid/intel-quickspi/pci-quickspi.c    |   2 +
 .../intel-thc-hid/intel-quickspi/quickspi-dev.h    |   2 +
 .../intel-thc-hid/intel-quickspi/quickspi-hid.c    |   6 +-
 .../intel-thc-hid/intel-quickspi/quickspi-hid.h    |   2 +-
 .../intel-quickspi/quickspi-protocol.c             |   2 +-
 drivers/hid/wacom_wac.c                            |  14 +-
 drivers/hv/hv_common.c                             |  10 -
 drivers/hv/mshv_vtl_main.c                         |   4 +-
 drivers/hv/vmbus_drv.c                             |  30 +-
 drivers/hwmon/coretemp.c                           |  15 +-
 drivers/hwtracing/coresight/coresight-config.c     |  18 +-
 drivers/hwtracing/coresight/coresight-config.h     |  22 +
 drivers/hwtracing/coresight/coresight-etm.h        |   4 +-
 drivers/hwtracing/coresight/coresight-etm3x-core.c |  68 +-
 .../hwtracing/coresight/coresight-etm3x-sysfs.c    |  83 +-
 drivers/hwtracing/coresight/coresight-etm4x-cfg.c  |  13 +-
 drivers/hwtracing/coresight/coresight-etm4x-core.c | 123 +--
 .../hwtracing/coresight/coresight-etm4x-sysfs.c    |   6 +
 drivers/hwtracing/coresight/coresight-etm4x.h      |   4 +-
 drivers/i3c/device.c                               |  15 +-
 drivers/i3c/internals.h                            |   2 +
 drivers/i3c/master.c                               |  76 +-
 drivers/i3c/master/mipi-i3c-hci/core.c             |  16 +-
 drivers/i3c/master/mipi-i3c-hci/dma.c              | 134 ++-
 drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c |   1 +
 drivers/iio/accel/bma220_spi.c                     |   3 +-
 drivers/iio/accel/kionix-kx022a.h                  |   2 +-
 drivers/iio/dac/ad5758.c                           |   8 +-
 drivers/iio/dac/mcp47feb02.c                       |   4 +-
 drivers/iio/humidity/hts221_core.c                 | 106 +--
 drivers/iio/imu/adis16400.c                        |   5 +-
 drivers/iio/pressure/rohm-bm1390.c                 |   4 +-
 drivers/iio/temperature/tmp117.c                   |   9 +-
 drivers/infiniband/core/device.c                   |   2 +-
 drivers/infiniband/core/ib_core_uverbs.c           |  12 -
 drivers/infiniband/core/lag.c                      |  14 +-
 drivers/infiniband/core/mad.c                      |   2 +
 drivers/infiniband/core/mad_rmpp.c                 |   7 +-
 drivers/infiniband/core/nldev.c                    |   9 +-
 drivers/infiniband/core/rdma_core.c                |   2 +
 drivers/infiniband/core/rdma_core.h                |  17 +-
 drivers/infiniband/core/restrack.c                 |   3 +-
 drivers/infiniband/core/sysfs.c                    |   9 +-
 drivers/infiniband/core/uverbs_std_types_device.c  |   1 +
 drivers/infiniband/core/uverbs_std_types_wq.c      |   2 +-
 drivers/infiniband/core/verbs.c                    |   6 +-
 drivers/infiniband/hw/bnxt_re/bnxt_re.h            |   4 +
 drivers/infiniband/hw/bnxt_re/hw_counters.c        |   6 +-
 drivers/infiniband/hw/bnxt_re/ib_verbs.c           |  58 +-
 drivers/infiniband/hw/bnxt_re/main.c               |  26 +-
 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c         |   4 +
 drivers/infiniband/hw/bnxt_re/qplib_res.c          |  23 +-
 drivers/infiniband/hw/bnxt_re/qplib_sp.c           |   2 +-
 drivers/infiniband/hw/cxgb4/cm.c                   |   5 +-
 drivers/infiniband/hw/cxgb4/provider.c             |   5 +
 drivers/infiniband/hw/efa/efa_com.c                |  28 +-
 drivers/infiniband/hw/hfi1/sdma.c                  |   3 +
 drivers/infiniband/hw/hfi1/verbs.c                 |   4 +
 drivers/infiniband/hw/hns/hns_roce_bond.c          |   4 +-
 drivers/infiniband/hw/hns/hns_roce_cq.c            |   1 +
 drivers/infiniband/hw/hns/hns_roce_device.h        |   1 +
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c         |  55 +-
 drivers/infiniband/hw/ionic/ionic_controlpath.c    |  16 +-
 drivers/infiniband/hw/ionic/ionic_ibdev.c          |   4 +-
 drivers/infiniband/hw/irdma/ctrl.c                 |  14 +-
 drivers/infiniband/hw/irdma/hw.c                   |  14 +-
 drivers/infiniband/hw/irdma/main.c                 |   2 +
 drivers/infiniband/hw/irdma/pble.c                 |   8 +-
 drivers/infiniband/hw/irdma/type.h                 |   4 +-
 drivers/infiniband/hw/irdma/verbs.c                |  13 +-
 drivers/infiniband/hw/mlx4/cm.c                    |  10 +
 drivers/infiniband/hw/mlx4/main.c                  |   4 +
 drivers/infiniband/hw/mlx5/cq.c                    |   5 +-
 drivers/infiniband/hw/mlx5/fs.c                    |  48 +-
 drivers/infiniband/hw/mlx5/main.c                  |  54 +-
 drivers/infiniband/hw/mlx5/odp.c                   |   2 +-
 drivers/infiniband/hw/mlx5/qp.c                    |  30 +-
 drivers/infiniband/hw/mlx5/qpc.c                   |  18 +-
 drivers/infiniband/hw/mlx5/srq.c                   |   3 +-
 drivers/infiniband/hw/mlx5/wr.c                    |   1 +
 drivers/infiniband/hw/usnic/usnic_debugfs.c        |   2 +-
 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c       |   6 +-
 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c      |   3 +-
 drivers/infiniband/sw/rdmavt/qp.c                  |   2 +-
 drivers/infiniband/sw/rxe/rxe_loc.h                |   8 +-
 drivers/infiniband/sw/rxe/rxe_mr.c                 |  12 +-
 drivers/infiniband/sw/rxe/rxe_mw.c                 |   3 +
 drivers/infiniband/sw/rxe/rxe_net.c                |  73 +-
 drivers/infiniband/sw/rxe/rxe_odp.c                |   9 +-
 drivers/infiniband/sw/rxe/rxe_qp.c                 |  10 +
 drivers/infiniband/sw/rxe/rxe_recv.c               |   9 +-
 drivers/infiniband/sw/rxe/rxe_req.c                |  11 +-
 drivers/infiniband/sw/rxe/rxe_resp.c               |  23 +-
 drivers/infiniband/sw/rxe/rxe_verbs.h              |   1 +
 drivers/infiniband/sw/siw/siw_main.c               |   5 +-
 drivers/infiniband/sw/siw/siw_qp_tx.c              |  20 +-
 drivers/infiniband/ulp/ipoib/ipoib_main.c          |   7 +
 drivers/infiniband/ulp/isert/ib_isert.c            |   2 +-
 drivers/infiniband/ulp/rtrs/rtrs-clt.c             |  77 +-
 drivers/infiniband/ulp/srp/ib_srp.c                |   2 +-
 drivers/interconnect/qcom/bcm-voter.c              |  25 +-
 drivers/interconnect/qcom/icc-common.h             |   9 +
 drivers/interconnect/qcom/icc-rpm.c                | 101 ++-
 drivers/interconnect/qcom/icc-rpm.h                |   6 +-
 drivers/interconnect/qcom/msm8976.c                |   3 +-
 drivers/interconnect/qcom/msm8996.c                |   1 +
 drivers/interconnect/qcom/smd-rpm.c                |   8 +-
 drivers/interconnect/samsung/exynos.c              |   1 +
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c   |  19 +-
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c        |  20 +-
 drivers/iommu/intel/dmar.c                         |  70 +-
 drivers/iommu/intel/iommu.c                        | 152 +++-
 drivers/iommu/intel/nested.c                       |   2 +
 drivers/iommu/iommufd/device.c                     |   8 +-
 drivers/iommu/iommufd/selftest.c                   |   6 +-
 drivers/irqchip/Kconfig                            |   4 +-
 drivers/irqchip/irq-gic-common.c                   |   2 +-
 drivers/irqchip/irq-gic-v3-its.c                   |  20 +-
 drivers/irqchip/irq-gic-v3.c                       |  22 +-
 drivers/irqchip/irq-gic.c                          |   4 +-
 drivers/irqchip/irq-mips-gic.c                     |  59 +-
 drivers/irqchip/irq-mst-intc.c                     |   3 +
 drivers/irqchip/irq-riscv-imsic-state.c            |  21 +-
 drivers/irqchip/irq-sifive-plic.c                  |   2 +-
 drivers/leds/led-class-flash.c                     |   2 +-
 drivers/leds/led-class.c                           |  25 +-
 drivers/leds/led-triggers.c                        |  28 +
 drivers/leds/leds-lm3692x.c                        |   4 +-
 drivers/leds/leds-lp8860.c                         |   5 +-
 drivers/leds/leds-max77705.c                       |   3 +-
 drivers/leds/leds-pca9532.c                        |   9 +-
 drivers/leds/leds-st1202.c                         | 225 ++++-
 drivers/mailbox/arm_mhu_db.c                       |   4 +-
 drivers/mailbox/arm_mhuv2.c                        |   9 +-
 drivers/mailbox/axiado-mailbox.c                   | 116 ++-
 drivers/mailbox/pcc.c                              |   5 +-
 drivers/mailbox/qcom-cpucp-mbox.c                  |   2 +-
 drivers/mailbox/qcom-ipcc.c                        |   6 +-
 drivers/mailbox/ti-msgmgr.c                        |  12 +-
 drivers/md/dm-snap.c                               |  18 +-
 drivers/md/md.c                                    |  33 +-
 drivers/md/raid0.c                                 |  16 +-
 drivers/md/raid10.c                                |   3 +-
 drivers/md/raid5-cache.c                           |  14 +-
 drivers/md/raid5-ppl.c                             |  12 +-
 drivers/md/raid5.c                                 |  65 +-
 drivers/media/i2c/ar0521.c                         |   1 -
 drivers/media/i2c/imx471.c                         |   2 +-
 drivers/media/i2c/ov5648.c                         |   4 +-
 drivers/media/i2c/t4ka3.c                          |   1 -
 drivers/media/pci/intel/ivsc/mei_ace.c             |   4 +-
 drivers/media/platform/qcom/iris/iris_ctrls.c      |   2 +
 drivers/media/platform/qcom/iris/iris_firmware.c   | 119 +--
 drivers/media/platform/qcom/iris/iris_hfi_common.c |   3 +-
 .../platform/qcom/iris/iris_hfi_gen1_response.c    |   2 +
 .../platform/qcom/iris/iris_hfi_gen2_response.c    |   1 +
 drivers/media/platform/qcom/iris/iris_instance.h   |   4 +
 .../platform/qcom/iris/iris_platform_common.h      |   6 +-
 .../media/platform/qcom/iris/iris_platform_vpu2.c  |  13 +-
 .../media/platform/qcom/iris/iris_platform_vpu3x.c |  10 +-
 drivers/media/platform/qcom/iris/iris_probe.c      |   6 +
 drivers/media/platform/qcom/iris/iris_utils.c      |   6 +
 drivers/media/platform/qcom/iris/iris_utils.h      |   1 +
 drivers/media/platform/qcom/iris/iris_vb2.c        |   6 +-
 drivers/media/platform/qcom/iris/iris_vidc.c       |  45 +-
 drivers/media/platform/qcom/iris/iris_vpu_common.c |   2 +-
 drivers/media/platform/qcom/venus/hfi_msgs.c       |   3 +
 drivers/media/platform/renesas/rcar-isp/core-io.c  |  40 +-
 drivers/media/usb/em28xx/em28xx-video.c            |   3 +-
 drivers/memory/brcmstb_dpfe.c                      |  17 +-
 drivers/memory/emif.c                              |   3 +
 drivers/memory/samsung/exynos5422-dmc.c            |  11 +-
 drivers/mfd/cs42l43-i2c.c                          |   8 +
 drivers/mfd/cs42l43-sdw.c                          |   8 +
 drivers/mfd/cs42l43.c                              |  12 +-
 drivers/mfd/cs42l43.h                              |   1 +
 drivers/mfd/da9150-core.c                          |   8 +-
 drivers/mfd/intel_quark_i2c_gpio.c                 |  52 +-
 drivers/mfd/rk8xx-core.c                           |   2 +-
 drivers/misc/enclosure.c                           |   3 +-
 drivers/misc/mei/vsc-tp.c                          |  17 +-
 drivers/misc/nsm.c                                 |   7 +-
 drivers/mtd/mtd_blkdevs.c                          |   5 +
 drivers/mtd/nand/raw/pl35x-nand-controller.c       |   1 +
 drivers/mtd/nand/raw/sunxi_nand.c                  |  32 +-
 drivers/mtd/spi-nor/spansion.c                     |   7 -
 drivers/net/amt.c                                  |   8 +-
 drivers/net/dsa/mt7530.c                           |   7 +-
 drivers/net/dsa/mv88e6xxx/chip.c                   |  10 +-
 drivers/net/dsa/yt921x.c                           |   4 +-
 drivers/net/ethernet/alacritech/slicoss.c          |   2 +-
 .../net/ethernet/aquantia/atlantic/aq_pci_func.c   |   2 +-
 drivers/net/ethernet/broadcom/asp2/bcmasp.c        | 121 +--
 drivers/net/ethernet/broadcom/asp2/bcmasp.h        |   4 -
 drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c   |  32 +-
 drivers/net/ethernet/broadcom/bgmac.c              |  51 +-
 drivers/net/ethernet/broadcom/bnge/bnge_netdev.c   |  28 +-
 drivers/net/ethernet/broadcom/bnge/bnge_resc.c     |   6 +-
 drivers/net/ethernet/broadcom/bnge/bnge_resc.h     |   9 +-
 drivers/net/ethernet/broadcom/bnge/bnge_txrx.c     |   6 +-
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c    |   3 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt.c          |  58 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c  |   1 +
 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c      |   1 +
 drivers/net/ethernet/broadcom/genet/bcmgenet.c     | 102 ++-
 drivers/net/ethernet/broadcom/genet/bcmgenet.h     |   1 +
 drivers/net/ethernet/broadcom/tg3.c                |   6 +
 drivers/net/ethernet/cadence/macb.h                |   2 -
 drivers/net/ethernet/cadence/macb_main.c           |  20 +-
 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c   |   1 +
 drivers/net/ethernet/freescale/enetc/enetc_ptp.c   |   1 +
 drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c  |   2 +-
 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c      |  12 +-
 drivers/net/ethernet/ibm/ibmveth.c                 | 670 ++++++++++++--
 drivers/net/ethernet/ibm/ibmveth.h                 |   5 +
 drivers/net/ethernet/intel/ice/ice.h               |   8 +-
 drivers/net/ethernet/intel/ice/ice_adapter.c       |  17 +-
 drivers/net/ethernet/intel/ice/ice_adapter.h       |  17 +-
 drivers/net/ethernet/intel/ice/ice_lib.c           | 343 +++++---
 drivers/net/ethernet/intel/ice/ice_ptp.c           | 174 +++-
 drivers/net/ethernet/intel/ice/ice_ptp.h           |  10 +-
 .../net/ethernet/marvell/octeontx2/af/rvu_nix.c    |   4 +-
 .../ethernet/marvell/octeontx2/nic/cn10k_ipsec.c   |   5 +-
 .../ethernet/marvell/octeontx2/nic/otx2_common.c   |   5 +-
 .../ethernet/marvell/octeontx2/nic/otx2_common.h   |   3 +-
 .../net/ethernet/marvell/octeontx2/nic/otx2_txrx.c |  10 +-
 drivers/net/ethernet/marvell/octeontx2/nic/qos.c   |   2 +
 drivers/net/ethernet/mellanox/mlx4/intf.c          |  15 +-
 drivers/net/ethernet/mellanox/mlx5/core/devlink.c  |   6 +
 drivers/net/ethernet/mellanox/mlx5/core/dpll.c     |   2 +-
 drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c   |   2 +-
 .../mellanox/mlx5/core/en_accel/en_accel.h         |   6 +
 .../ethernet/mellanox/mlx5/core/en_accel/ipsec.c   |   3 +
 .../mellanox/mlx5/core/en_accel/psp_rxtx.h         |  13 +
 .../net/ethernet/mellanox/mlx5/core/en_ethtool.c   |  17 +-
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c  |   1 -
 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c    |   6 +-
 .../net/ethernet/mellanox/mlx5/core/en_selftest.c  |   4 +
 .../mellanox/mlx5/core/steering/hws/fs_hws.c       |  66 +-
 .../mellanox/mlx5/core/steering/hws/fs_hws.h       |   1 +
 .../mellanox/mlx5/core/steering/hws/fs_hws_pools.c |  11 +-
 .../mellanox/mlx5/core/steering/hws/pat_arg.c      |  12 +-
 .../mellanox/mlx5/core/steering/hws/pat_arg.h      |   5 +
 drivers/net/ethernet/meta/fbnic/fbnic.h            |   7 +-
 drivers/net/ethernet/meta/fbnic/fbnic_fw.c         |  78 +-
 drivers/net/ethernet/meta/fbnic/fbnic_fw.h         |  15 +-
 drivers/net/ethernet/meta/fbnic/fbnic_rpc.c        |  24 +-
 drivers/net/ethernet/meta/fbnic/fbnic_txrx.c       |   2 +-
 drivers/net/ethernet/microchip/fdma/fdma_api.c     |  45 +-
 drivers/net/ethernet/microchip/fdma/fdma_api.h     |  20 +-
 .../net/ethernet/microchip/lan966x/lan966x_fdma.c  |  17 +-
 .../net/ethernet/microchip/lan966x/lan966x_mac.c   |   4 +-
 .../net/ethernet/microchip/lan966x/lan966x_main.c  |  19 +-
 .../net/ethernet/microchip/lan966x/lan966x_ptp.c   |  10 +-
 .../microchip/sparx5/lan969x/lan969x_calendar.c    |   8 +-
 .../microchip/sparx5/lan969x/lan969x_fdma.c        |   5 +-
 .../net/ethernet/microchip/sparx5/sparx5_fdma.c    |   3 +-
 .../net/ethernet/microchip/sparx5/sparx5_packet.c  |  15 +-
 .../net/ethernet/microchip/sparx5/sparx5_psfp.c    |  10 +-
 drivers/net/ethernet/microsoft/mana/gdma_main.c    | 975 +++++++++++++--------
 drivers/net/ethernet/microsoft/mana/hw_channel.c   |   9 +-
 drivers/net/ethernet/microsoft/mana/mana_en.c      |  32 +-
 drivers/net/ethernet/microsoft/mana/mana_ethtool.c |  19 +-
 drivers/net/ethernet/netronome/nfp/bpf/verifier.c  |   2 +-
 drivers/net/ethernet/netronome/nfp/flower/main.h   |   2 +
 .../ethernet/netronome/nfp/flower/tunnel_conf.c    |  24 +-
 .../net/ethernet/pensando/ionic/ionic_bus_pci.c    |   1 +
 drivers/net/ethernet/pensando/ionic/ionic_main.c   |  13 +-
 drivers/net/ethernet/qlogic/qede/qede_filter.c     |   2 +-
 drivers/net/ethernet/sfc/Kconfig                   |   2 +-
 drivers/net/ethernet/stmicro/stmmac/descs.h        |   6 +-
 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c |   2 +-
 drivers/net/ethernet/stmicro/stmmac/enh_desc.c     |  25 +-
 drivers/net/ethernet/stmicro/stmmac/hwif.h         |   6 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac.h       |   7 +
 .../net/ethernet/stmicro/stmmac/stmmac_ethtool.c   |  11 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  | 115 ++-
 .../net/ethernet/stmicro/stmmac/stmmac_selftests.c |   2 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c    |  16 +-
 drivers/net/ethernet/ti/am65-cpts.c                |   1 +
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c  |  86 +-
 drivers/net/gtp.c                                  |  51 +-
 drivers/net/loopback.c                             |   8 +-
 drivers/net/macsec.c                               |   5 +
 drivers/net/phy/marvell.c                          |  97 +-
 drivers/net/phy/qcom/at803x.c                      |  96 +-
 drivers/net/phy/qcom/qca83xx.c                     |  58 ++
 drivers/net/phy/realtek/realtek_main.c             |   2 +-
 drivers/net/ppp/ppp_generic.c                      |  95 +-
 drivers/net/ppp/pppoe.c                            |   8 +
 drivers/net/pse-pd/si3474.c                        |  27 +-
 drivers/net/team/team_core.c                       |  11 +
 drivers/net/tun.c                                  |  10 +
 drivers/net/usb/cdc_mbim.c                         |   5 +-
 drivers/net/usb/cdc_ncm.c                          |   7 +-
 drivers/net/usb/lan78xx.c                          |  18 +-
 drivers/net/usb/usbnet.c                           |  32 +-
 drivers/net/veth.c                                 |   7 +-
 drivers/net/virtio_net.c                           |  12 +-
 drivers/net/vxlan/vxlan_core.c                     |   2 +-
 drivers/net/wireless/ath/ath10k/htt_tx.c           |  12 +-
 drivers/net/wireless/ath/ath11k/Kconfig            |   3 +
 drivers/net/wireless/ath/ath11k/ahb.c              |   7 +-
 drivers/net/wireless/ath/ath11k/ce.c               |   2 +-
 drivers/net/wireless/ath/ath11k/core.c             |  11 +-
 drivers/net/wireless/ath/ath11k/dp_rx.c            |  19 +-
 drivers/net/wireless/ath/ath11k/mac.c              |  33 +-
 drivers/net/wireless/ath/ath11k/mac.h              |   2 +-
 drivers/net/wireless/ath/ath11k/wmi.c              |   9 +
 drivers/net/wireless/ath/ath12k/ahb.c              |  41 +-
 drivers/net/wireless/ath/ath12k/core.c             |   3 +-
 .../net/wireless/ath/ath12k/debugfs_htt_stats.c    |   2 +-
 drivers/net/wireless/ath/ath12k/dp.c               |   9 +-
 drivers/net/wireless/ath/ath12k/dp_mon.c           |  15 +-
 drivers/net/wireless/ath/ath12k/dp_mon.h           |   2 +-
 drivers/net/wireless/ath/ath12k/mac.c              |  40 +-
 drivers/net/wireless/ath/ath12k/mac.h              |   2 +-
 drivers/net/wireless/ath/ath12k/pci.c              |  55 +-
 drivers/net/wireless/ath/ath12k/wifi7/dp_mon.c     |  45 +-
 drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c      |  30 +-
 drivers/net/wireless/ath/ath12k/wmi.c              |  11 +-
 drivers/net/wireless/ath/ath6kl/cfg80211.c         |   2 -
 drivers/net/wireless/ath/ath9k/xmit.c              |   2 +-
 drivers/net/wireless/ath/carl9170/debug.c          |   5 +-
 drivers/net/wireless/broadcom/b43/debugfs.c        |   2 +-
 drivers/net/wireless/broadcom/b43legacy/debugfs.c  |   2 +-
 .../net/wireless/intel/iwlwifi/mld/low_latency.c   |   3 +-
 drivers/net/wireless/intel/iwlwifi/mvm/utils.c     |   4 +-
 drivers/net/wireless/marvell/mwifiex/cmdevt.c      |  10 +-
 drivers/net/wireless/marvell/mwifiex/fw.h          |   6 +
 drivers/net/wireless/marvell/mwifiex/init.c        |   1 +
 drivers/net/wireless/marvell/mwifiex/main.h        |   1 +
 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c   |   3 +-
 drivers/net/wireless/mediatek/mt76/Kconfig         |   1 +
 drivers/net/wireless/mediatek/mt76/channel.c       |  21 +-
 drivers/net/wireless/mediatek/mt76/mac80211.c      |  17 +-
 drivers/net/wireless/mediatek/mt76/mt76.h          |  27 +-
 drivers/net/wireless/mediatek/mt76/mt7603/dma.c    |  18 +-
 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c    |  13 +
 drivers/net/wireless/mediatek/mt76/mt7615/usb.c    |  17 +-
 .../net/wireless/mediatek/mt76/mt76_connac_mac.c   |  20 +-
 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c   |  11 +-
 .../net/wireless/mediatek/mt76/mt7915/coredump.c   |   7 +-
 drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c |   6 +
 drivers/net/wireless/mediatek/mt76/mt7915/init.c   |  17 +-
 drivers/net/wireless/mediatek/mt76/mt7915/main.c   |   2 +-
 drivers/net/wireless/mediatek/mt76/mt7921/main.c   |  47 +-
 drivers/net/wireless/mediatek/mt76/mt7921/mcu.c    |   9 +-
 drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h |   5 +
 drivers/net/wireless/mediatek/mt76/mt7921/pci.c    |   1 +
 .../net/wireless/mediatek/mt76/mt7921/pci_mac.c    |   4 +-
 drivers/net/wireless/mediatek/mt76/mt7921/regd.c   |  28 +-
 drivers/net/wireless/mediatek/mt76/mt7925/init.c   |   2 +
 drivers/net/wireless/mediatek/mt76/mt7925/mac.c    |   2 +-
 drivers/net/wireless/mediatek/mt76/mt7925/main.c   | 113 ++-
 drivers/net/wireless/mediatek/mt76/mt7925/mcu.c    |  67 +-
 drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h |   9 +-
 drivers/net/wireless/mediatek/mt76/mt7925/nan.c    | 694 +++++++++------
 drivers/net/wireless/mediatek/mt76/mt7925/nan.h    | 103 ++-
 drivers/net/wireless/mediatek/mt76/mt7925/pci.c    |   5 +-
 .../net/wireless/mediatek/mt76/mt7925/pci_mac.c    |   6 +-
 drivers/net/wireless/mediatek/mt76/mt7925/usb.c    |  15 +-
 drivers/net/wireless/mediatek/mt76/mt792x.h        |  10 +
 drivers/net/wireless/mediatek/mt76/mt792x_mac.c    |   9 +-
 drivers/net/wireless/mediatek/mt76/mt792x_usb.c    |  13 +-
 drivers/net/wireless/mediatek/mt76/mt7996/Kconfig  |   1 +
 .../net/wireless/mediatek/mt76/mt7996/coredump.c   |   7 +-
 .../net/wireless/mediatek/mt76/mt7996/debugfs.c    | 319 ++++---
 drivers/net/wireless/mediatek/mt76/mt7996/init.c   |   6 +
 drivers/net/wireless/mediatek/mt76/mt7996/mac.c    |  15 +-
 drivers/net/wireless/mediatek/mt76/mt7996/main.c   | 379 +++++---
 drivers/net/wireless/mediatek/mt76/mt7996/mcu.c    | 120 ++-
 drivers/net/wireless/mediatek/mt76/mt7996/mcu.h    |  23 +
 drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h |   7 +
 drivers/net/wireless/mediatek/mt76/mt7996/regs.h   |  38 +-
 drivers/net/wireless/mediatek/mt76/scan.c          | 227 +++--
 drivers/net/wireless/mediatek/mt76/tx.c            |   7 +-
 drivers/net/wireless/mediatek/mt76/usb.c           |  16 +-
 drivers/net/wireless/morsemicro/mm81x/fw.c         |   9 +-
 drivers/net/wireless/morsemicro/mm81x/mac.c        |  94 +-
 drivers/net/wireless/morsemicro/mm81x/sdio.c       |   9 +-
 drivers/net/wireless/morsemicro/mm81x/yaps_hw.c    |  14 +-
 drivers/net/wireless/nxp/nxpwifi/11ax.c            |   2 +
 drivers/net/wireless/nxp/nxpwifi/cfg80211.c        |   6 +-
 drivers/net/wireless/nxp/nxpwifi/main.c            |  10 +-
 drivers/net/wireless/nxp/nxpwifi/scan.c            |  18 +
 drivers/net/wireless/nxp/nxpwifi/sdio.c            |   2 +-
 drivers/net/wireless/realtek/rtl8xxxu/core.c       | 154 ++--
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h   |   2 +-
 drivers/net/wireless/realtek/rtw88/debug.c         |   5 +
 drivers/net/wireless/realtek/rtw88/sdio.c          |  12 +
 drivers/net/wireless/realtek/rtw89/Kconfig         |   2 +-
 drivers/net/wireless/realtek/rtw89/coex.c          |   2 +-
 drivers/net/wireless/silabs/wfx/bh.c               |   6 +-
 drivers/net/wireless/silabs/wfx/bus_sdio.c         |   1 +
 drivers/net/wireless/silabs/wfx/main.c             |  36 +-
 drivers/nvdimm/pmem.c                              |   6 +-
 drivers/nvme/host/fabrics.c                        |  30 +-
 drivers/nvme/host/ioctl.c                          |   2 +-
 drivers/nvme/host/pci.c                            |   2 +-
 drivers/nvme/host/rdma.c                           |   2 +-
 drivers/nvme/host/tcp.c                            |  35 +-
 drivers/nvme/target/configfs.c                     |  24 +-
 drivers/nvme/target/core.c                         |  16 +-
 drivers/nvme/target/fabrics-cmd-auth.c             |   9 +-
 drivers/nvme/target/fabrics-cmd.c                  |   3 +-
 drivers/nvme/target/fc.c                           |  15 +-
 drivers/nvme/target/io-cmd-bdev.c                  |   3 +-
 drivers/nvme/target/loop.c                         |   2 -
 drivers/nvme/target/nvmet.h                        |   3 +-
 drivers/nvme/target/rdma.c                         |  26 +-
 drivers/nvme/target/tcp.c                          |   7 +-
 drivers/nvme/target/zns.c                          |  12 +-
 drivers/nvmem/layouts/onie-tlv.c                   |   1 +
 drivers/nvmem/layouts/sl28vpd.c                    |   1 +
 drivers/of/irq.c                                   |   2 +-
 drivers/opp/of.c                                   |   2 +-
 .../pci/controller/cadence/pcie-cadence-debugfs.c  |  15 +-
 drivers/pci/controller/dwc/pci-dra7xx.c            |  22 +-
 drivers/pci/controller/dwc/pci-imx6.c              |  54 +-
 drivers/pci/controller/dwc/pcie-eswin.c            |   1 +
 drivers/pci/controller/dwc/pcie-qcom.c             |  93 +-
 drivers/pci/controller/dwc/pcie-rcar-gen4.c        |  27 +
 drivers/pci/controller/pci-aardvark.c              |  31 +-
 drivers/pci/controller/pci-xgene.c                 |  11 +-
 drivers/pci/controller/pcie-iproc-bcma.c           |  40 +-
 drivers/pci/controller/pcie-tegra264.c             |   9 +-
 drivers/pci/endpoint/functions/pci-epf-vntb.c      | 160 +++-
 drivers/pci/hotplug/pciehp_core.c                  |   2 +-
 drivers/pci/iov.c                                  |  25 -
 drivers/pci/p2pdma.c                               |  23 +-
 drivers/pci/pci-acpi.c                             |   3 -
 drivers/pci/pci-label.c                            |  92 +-
 drivers/pci/pci.c                                  |  24 +-
 drivers/pci/pci.h                                  |   4 -
 drivers/pci/pcie/aer.c                             |  17 +-
 drivers/pci/pcie/aer_cxl_rch.c                     |   2 +-
 drivers/pci/pcie/err.c                             |   2 +-
 drivers/pci/pcie/portdrv.c                         |   6 +-
 drivers/pci/pcie/portdrv.h                         |   2 -
 drivers/pci/probe.c                                |  15 +-
 drivers/pci/pwrctrl/core.c                         |  19 +-
 drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c           |   4 +-
 drivers/pci/quirks.c                               |   2 +-
 drivers/pci/tph.c                                  |   6 +-
 drivers/pci/xen-pcifront.c                         |   5 +-
 drivers/perf/cxl_pmu.c                             | 100 ++-
 drivers/perf/dwc_pcie_pmu.c                        |  11 +-
 drivers/perf/marvell_cn10k_ddr_pmu.c               |  85 +-
 drivers/perf/marvell_cn10k_tad_pmu.c               |   1 +
 drivers/phy/cadence/phy-cadence-sierra.c           |  11 +-
 drivers/phy/freescale/phy-fsl-samsung-hdmi.c       |  59 +-
 drivers/phy/hisilicon/phy-hi3670-pcie.c            |   4 +-
 drivers/phy/qualcomm/Kconfig                       |   1 +
 drivers/phy/qualcomm/phy-qcom-qmp-pcie-multiphy.c  | 103 +--
 drivers/phy/rockchip/phy-rockchip-naneng-combphy.c |  19 +
 drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c  |   8 +-
 drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c  |   8 +-
 drivers/phy/rockchip/phy-rockchip-usbdp.c          | 248 ++----
 drivers/phy/samsung/phy-exynos5-usbdrd.c           |  78 +-
 drivers/phy/spacemit/Kconfig                       |   2 +
 drivers/pinctrl/mediatek/pinctrl-mt7629.c          |   2 +-
 drivers/pinctrl/microchip/pinctrl-mpfs-mssio.c     |   2 +-
 drivers/pinctrl/nuvoton/pinctrl-ma35.c             |   8 +-
 drivers/pinctrl/pinctrl-amd.c                      |   8 +-
 drivers/pinctrl/pinctrl-generic-mux.c              |  76 +-
 drivers/pinctrl/sprd/pinctrl-sprd.c                |   3 +
 drivers/pinctrl/stm32/Kconfig                      |   2 +-
 drivers/pinctrl/stm32/pinctrl-stm32.c              |  19 +-
 drivers/pinctrl/sunplus/Kconfig                    |   8 +-
 drivers/platform/arm64/qcom-hamoa-ec.c             |  19 +-
 drivers/platform/chrome/cros_ec_proto.c            |  32 +-
 drivers/platform/chrome/cros_ec_proto_test.c       | 158 +++-
 drivers/platform/chrome/cros_ec_typec.c            | 104 ++-
 drivers/platform/cznic/turris-omnia-mcu-gpio.c     |  31 +-
 drivers/platform/olpc/olpc-ec.c                    |   2 +-
 .../platform/surface/surface_aggregator_registry.c |   3 +-
 drivers/platform/x86/amd/pmc/pmc.c                 |   5 +-
 drivers/platform/x86/amd/pmf/util.c                |   1 +
 drivers/platform/x86/asus-armoury.c                |  26 +-
 drivers/platform/x86/asus-wmi.c                    |  32 +
 drivers/platform/x86/gpd-pocket-fan.c              |   9 +-
 .../platform/x86/hp/hp-bioscfg/int-attributes.c    |   7 +-
 .../x86/hp/hp-bioscfg/passwdobj-attributes.c       |   2 +-
 .../platform/x86/hp/hp-bioscfg/spmobj-attributes.c |   7 +
 drivers/platform/x86/hp/hp-wmi.c                   |  23 +-
 drivers/platform/x86/ibm_rtl.c                     |   8 +-
 drivers/platform/x86/intel/pmc/core.h              |   2 +-
 drivers/platform/x86/intel/pmc/nvl.c               |   2 +-
 drivers/platform/x86/intel/pmt/class.c             |   5 +-
 drivers/platform/x86/intel/pmt/class.h             |   3 +-
 drivers/platform/x86/intel/pmt/discovery.c         |   2 +-
 drivers/platform/x86/intel/telemetry/core.c        |   4 +
 drivers/platform/x86/intel/tpmi_power_domains.c    |   9 +
 drivers/platform/x86/intel/vsec.c                  |  15 +
 drivers/platform/x86/lenovo/ideapad-laptop.c       |  12 +-
 drivers/platform/x86/msi-ec.c                      |   9 +
 drivers/platform/x86/msi-wmi.c                     |   6 +-
 drivers/platform/x86/topstar-laptop.c              |   6 +-
 drivers/pmdomain/imx/scu-pd.c                      |  10 +-
 drivers/pmdomain/renesas/r8a78000-mdlc.c           |   6 +-
 drivers/power/sequencing/pwrseq-pcie-m2.c          |   2 +
 drivers/power/supply/ab8500_bmdata.c               |   2 +-
 drivers/power/supply/ab8500_btemp.c                |  28 +-
 drivers/power/supply/ab8500_chargalg.c             |   9 +-
 drivers/power/supply/ab8500_charger.c              | 402 +++++++--
 drivers/power/supply/ab8500_fg.c                   |  27 +-
 drivers/power/supply/bq24190_charger.c             |  39 +-
 drivers/power/supply/bq2515x_charger.c             |  15 +-
 drivers/power/supply/bq257xx_charger.c             |   2 +-
 drivers/power/supply/generic-adc-battery.c         |   3 +
 drivers/power/supply/gpio-charger.c                |   5 +-
 drivers/power/supply/mm8013.c                      |   1 +
 drivers/power/supply/qcom_battmgr.c                |  27 +-
 drivers/power/supply/s2mu005-battery.c             |   4 +-
 drivers/pps/generators/pps_gen.c                   |  10 +-
 drivers/ptp/ptp_qoriq.c                            |   1 +
 drivers/pwm/core.c                                 |   1 +
 drivers/pwm/pwm-ipq.c                              |   2 +-
 drivers/pwm/pwm-loongson.c                         |   2 +
 drivers/pwm/pwm-lp3943.c                           |   3 +
 drivers/pwm/pwm-mtk-disp.c                         |   4 +-
 drivers/pwm/pwm-renesas-tpu.c                      |  23 +-
 drivers/regulator/ab8500.c                         | 158 +++-
 drivers/regulator/fixed.c                          |   4 +
 drivers/regulator/irq_helpers.c                    |  38 +-
 drivers/regulator/mp886x.c                         |  13 +-
 drivers/regulator/pf1550-regulator.c               |  19 +-
 drivers/regulator/qcom-rpmh-regulator.c            |   2 +-
 drivers/remoteproc/imx_dsp_rproc.c                 |   7 +-
 drivers/remoteproc/imx_rproc.c                     |  18 +-
 drivers/remoteproc/qcom_q6v5_adsp.c                |   2 +-
 drivers/remoteproc/remoteproc_core.c               |   3 +
 drivers/remoteproc/xlnx_r5_remoteproc.c            |   8 +-
 drivers/resctrl/mpam_devices.c                     | 119 ++-
 drivers/resctrl/mpam_resctrl.c                     |  13 +-
 drivers/rpmsg/mtk_rpmsg.c                          |   1 +
 drivers/rpmsg/virtio_rpmsg_bus.c                   |   5 +-
 drivers/rtc/Kconfig                                |  21 +
 drivers/rtc/class.c                                |   8 +-
 drivers/rtc/rtc-abx80x.c                           |  58 +-
 drivers/rtc/rtc-bd70528.c                          |   5 +
 drivers/rtc/rtc-ds1685.c                           |  20 +-
 drivers/rtc/rtc-ftrtc010.c                         |  74 +-
 drivers/rtc/rtc-mpfs.c                             |   4 +-
 drivers/rtc/rtc-s35390a.c                          | 109 ++-
 drivers/s390/net/ism_drv.c                         |   3 +-
 drivers/s390/virtio/virtio_ccw.c                   |   6 +-
 drivers/scsi/ch.c                                  |   2 +-
 drivers/scsi/device_handler/scsi_dh_hp_sw.c        |   4 +-
 drivers/scsi/device_handler/scsi_dh_rdac.c         |  10 +-
 drivers/scsi/elx/libefc/efclib.c                   |   2 +
 drivers/scsi/hisi_sas/hisi_sas.h                   |   3 +
 drivers/scsi/hisi_sas/hisi_sas_main.c              |  43 +
 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c             |   4 +
 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c             |   4 +
 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c             |  13 +-
 drivers/scsi/libsas/sas_task.c                     |   2 +-
 drivers/scsi/mpi3mr/mpi3mr_app.c                   |  43 +-
 drivers/scsi/mpi3mr/mpi3mr_fw.c                    |  17 +-
 drivers/scsi/mpi3mr/mpi3mr_os.c                    |  95 +-
 drivers/scsi/mpi3mr/mpi3mr_transport.c             |   7 +
 drivers/scsi/pm8001/pm8001_defs.h                  |  98 +++
 drivers/scsi/pm8001/pm8001_hwi.c                   |   2 +-
 drivers/scsi/pm8001/pm8001_hwi.h                   |   4 +-
 drivers/scsi/pm8001/pm80xx_hwi.c                   |   2 +-
 drivers/scsi/pm8001/pm80xx_hwi.h                   | 100 +--
 drivers/scsi/scsi_debug.c                          | 409 +++++----
 drivers/scsi/scsi_lib.c                            |   6 +-
 drivers/scsi/scsi_lib_test.c                       |  25 +-
 drivers/scsi/scsi_scan.c                           |   8 +-
 drivers/scsi/scsi_transport_spi.c                  |   2 +-
 drivers/scsi/sd.c                                  |  20 +-
 drivers/scsi/ses.c                                 |   8 +-
 drivers/scsi/st.c                                  |  75 ++
 drivers/soc/microchip/mpfs-sys-controller.c        |   7 +-
 drivers/soc/qcom/apr.c                             |  50 +-
 drivers/soc/qcom/pmic_glink.c                      |   3 +-
 drivers/soc/qcom/pmic_pdcharger_ulog.c             |   2 +-
 drivers/soc/qcom/qcom-geni-se.c                    |  14 +-
 drivers/soc/qcom/smem_dramc.c                      |  17 +-
 drivers/soc/tegra/flowctrl.c                       |   7 +-
 drivers/soundwire/intel_auxdevice.c                |   2 +-
 drivers/spi/spi-amlogic-spisg.c                    |  43 +-
 drivers/spi/spi-axi-spi-engine.c                   |  20 +-
 drivers/spi/spi-bcm63xx-hsspi.c                    |   1 +
 drivers/spi/spi-cs42l43.c                          |   8 +
 drivers/spi/spi-fsl-spi.c                          |   8 +
 drivers/spi/spi-ma35d1-qspi.c                      |  27 +-
 drivers/spi/spi-meson-spicc.c                      |  11 +-
 drivers/spi/spi-mtk-nor.c                          |   1 +
 drivers/spi/spi-mxic.c                             |   8 +-
 drivers/spi/spi-omap2-mcspi.c                      | 242 +++--
 drivers/spi/spi-qpic-snand.c                       |  30 +-
 drivers/spi/spi-rockchip-sfc.c                     |  21 +-
 drivers/spi/spi-rspi.c                             |  49 +-
 drivers/spi/spi-sh-msiof.c                         |   5 +-
 drivers/spi/spi-sun4i.c                            |  56 +-
 drivers/spi/spi-tegra114.c                         |  49 ++
 drivers/spi/spi-virtio.c                           |   4 +-
 drivers/spi/spi.c                                  |   2 +-
 drivers/spmi/spmi-mtk-pmif.c                       |  42 +-
 drivers/spmi/spmi-pmic-arb.c                       |   2 +-
 drivers/staging/iio/adc/ad7816.c                   |  33 +-
 drivers/staging/media/ipu7/ipu7-isys.c             |   1 +
 drivers/staging/media/tegra-video/tegra20.c        |   7 +-
 drivers/staging/octeon/ethernet-tx.c               |   2 +-
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c       |   4 +-
 drivers/staging/sm750fb/sm750.c                    |  10 +-
 drivers/thermal/airoha_thermal.c                   |  34 +-
 drivers/thermal/amlogic_thermal.c                  |  14 +-
 drivers/thermal/gov_power_allocator.c              |   7 +-
 drivers/thermal/qcom/qcom-spmi-temp-alarm.c        |   8 +-
 drivers/thermal/renesas/rzg3e_thermal.c            |  38 +-
 drivers/thermal/sprd_thermal.c                     |   6 +
 drivers/thermal/thermal_trace.h                    |   4 +-
 drivers/thermal/ti-soc-thermal/ti-bandgap.c        |  10 +-
 drivers/thermal/ti-soc-thermal/ti-thermal-common.c |   4 +
 drivers/tty/serial/8250/8250.h                     |  11 +-
 drivers/tty/serial/8250/8250_hub6.c                |  11 +-
 drivers/tty/serial/8250/8250_mid.c                 |  16 +-
 drivers/tty/serial/8250/8250_mxpcie.c              |  30 +-
 drivers/tty/serial/8250/8250_platform.c            |   9 +-
 drivers/tty/serial/8250/8250_port.c                |  13 +-
 drivers/tty/serial/8250/8250_uniphier.c            |  10 +-
 drivers/tty/serial/8250/Kconfig                    |   4 +-
 drivers/tty/serial/8250/Makefile                   |   2 +-
 drivers/tty/serial/Kconfig                         |   1 +
 drivers/tty/serial/ma35d1_serial.c                 |   2 +-
 drivers/tty/serial/max310x.c                       | 632 ++++++++++++-
 drivers/tty/serial/pmac_zilog.c                    |   1 +
 drivers/tty/serial/qcom_geni_serial.c              |   6 +
 drivers/tty/serial/serial_txx9.c                   |  55 +-
 drivers/tty/serial/sh-sci.c                        |   8 +-
 drivers/tty/serial/sifive.c                        |   2 +-
 drivers/ufs/core/ufshcd.c                          |  40 +-
 drivers/ufs/host/ufs-exynos.c                      |   4 +-
 drivers/ufs/host/ufs-mediatek.c                    |  16 +-
 drivers/ufs/host/ufs-qcom.c                        |   5 +
 drivers/ufs/host/ufshcd-pci.c                      |   3 +-
 drivers/usb/gadget/composite.c                     |   2 +-
 drivers/usb/gadget/function/f_mass_storage.c       |   7 +-
 drivers/usb/gadget/udc/dummy_hcd.c                 |   4 +-
 drivers/usb/host/pci-quirks.c                      |   1 +
 drivers/usb/host/xhci-dbgtty.c                     |   2 +
 drivers/usb/image/microtek.c                       |   1 +
 drivers/usb/mon/mon_main.c                         |   3 +
 drivers/usb/musb/da8xx.c                           |   8 +-
 drivers/usb/storage/alauda.c                       |  95 +-
 drivers/vdpa/vdpa_sim/vdpa_sim_blk.c               |   9 +-
 drivers/vdpa/vdpa_sim/vdpa_sim_net.c               |   9 +-
 drivers/vfio/cdx/main.c                            |  10 +-
 drivers/vfio/device_cdev.c                         |  12 +
 drivers/vfio/fsl-mc/vfio_fsl_mc.c                  |  10 +-
 drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c     |  73 +-
 drivers/vfio/pci/ism/main.c                        |  19 +-
 drivers/vfio/pci/mlx5/main.c                       |  13 +-
 drivers/vfio/pci/nvgrace-gpu/main.c                |  19 +-
 drivers/vfio/pci/pds/pci_drv.c                     |   8 +-
 drivers/vfio/pci/pds/vfio_dev.c                    |   5 +-
 drivers/vfio/pci/qat/main.c                        |  12 +-
 drivers/vfio/pci/vfio_pci.c                        |  33 +-
 drivers/vfio/pci/vfio_pci_core.c                   |  37 +-
 drivers/vfio/pci/virtio/main.c                     |   8 +-
 drivers/vfio/pci/xe/main.c                         |   8 +-
 drivers/vfio/platform/vfio_platform_common.c       |  10 +-
 drivers/vfio/vfio_main.c                           |   7 -
 drivers/vhost/vringh.c                             |   4 +-
 drivers/video/fbdev/atafb.c                        |  28 +-
 drivers/video/fbdev/gxt4500.c                      |   1 +
 drivers/virtio/virtio.c                            |   2 +
 drivers/virtio/virtio_pci_modern.c                 |  12 +-
 fs/btrfs/accessors.c                               |   2 +-
 fs/btrfs/bio.c                                     | 141 ++-
 fs/btrfs/bio.h                                     |   5 +-
 fs/btrfs/block-group.c                             |   6 +-
 fs/btrfs/btrfs_inode.h                             |  12 +-
 fs/btrfs/ctree.h                                   |   2 +-
 fs/btrfs/defrag.c                                  |   2 +-
 fs/btrfs/disk-io.c                                 |  31 +-
 fs/btrfs/extent-tree.c                             |   3 +-
 fs/btrfs/file-item.c                               |  19 +-
 fs/btrfs/free-space-cache.c                        |  10 +
 fs/btrfs/inode.c                                   | 118 +--
 fs/btrfs/messages.c                                |   9 +-
 fs/btrfs/qgroup.c                                  |   4 +-
 fs/btrfs/raid56.c                                  |  57 +-
 fs/btrfs/tree-mod-log.c                            |  13 +-
 fs/btrfs/verity.c                                  |  31 +-
 fs/btrfs/volumes.c                                 |  37 +
 fs/btrfs/zoned.c                                   |   8 +-
 fs/ceph/addr.c                                     |  67 +-
 fs/ceph/inode.c                                    |   2 +-
 fs/ceph/super.c                                    |  18 +-
 fs/ceph/super.h                                    |   1 -
 fs/dcache.c                                        |   2 +
 fs/debugfs/file.c                                  |  81 +-
 fs/dlm/config.c                                    |  39 +-
 fs/dlm/dlm_internal.h                              |   5 +
 fs/dlm/lock.c                                      |  18 +-
 fs/dlm/lock.h                                      |   4 +-
 fs/dlm/member.c                                    |  17 +-
 fs/erofs/data.c                                    |   5 +-
 fs/erofs/internal.h                                |   1 +
 fs/erofs/super.c                                   |  63 +-
 fs/eventpoll.c                                     |  18 +-
 fs/exfat/fatent.c                                  |  46 +-
 fs/ext2/file.c                                     |   7 +
 fs/ext4/inode.c                                    |   3 +-
 fs/f2fs/checkpoint.c                               |  14 +-
 fs/f2fs/gc.c                                       |   6 +-
 fs/f2fs/inode.c                                    |   4 +-
 fs/f2fs/node.c                                     |   4 +-
 fs/f2fs/segment.c                                  |   2 +-
 fs/f2fs/segment.h                                  |  11 +
 fs/f2fs/super.c                                    |  48 +-
 fs/fs-writeback.c                                  |  20 +-
 fs/fs_pin.c                                        |  15 +-
 fs/fuse/dev.c                                      | 105 ++-
 fs/fuse/dev.h                                      |   2 +-
 fs/fuse/file.c                                     |   7 +-
 fs/fuse/notify.c                                   |   2 +-
 fs/fuse/req.c                                      |   7 +-
 fs/gfs2/bmap.c                                     |   2 +-
 fs/gfs2/inode.c                                    |   2 +-
 fs/hfs/btree.c                                     |   7 +-
 fs/hfsplus/btree.c                                 |   7 +-
 fs/hugetlbfs/inode.c                               |   5 +
 fs/internal.h                                      |   1 -
 fs/iomap/bio.c                                     |   4 +-
 fs/iomap/direct-io.c                               |  21 +-
 fs/iomap/ioend.c                                   |  14 +-
 fs/isofs/dir.c                                     |   4 +-
 fs/isofs/isofs.h                                   |  11 +-
 fs/isofs/joliet.c                                  |  27 +-
 fs/isofs/namei.c                                   |   3 +-
 fs/kernfs/dir.c                                    |  67 +-
 fs/kernfs/file.c                                   |  25 +-
 fs/kernfs/symlink.c                                |  17 +-
 fs/minix/namei.c                                   |   4 +
 fs/namei.c                                         |  10 +-
 fs/namespace.c                                     |   2 -
 fs/netfs/internal.h                                |  32 +-
 fs/nfs/client.c                                    |   2 +-
 fs/nfs/dir.c                                       |  13 +-
 fs/nfs/filelayout/filelayout.c                     |   5 +-
 fs/nfs/flexfilelayout/flexfilelayout.c             |  81 +-
 fs/nfs/fs_context.c                                |   1 +
 fs/nfs/internal.h                                  |  31 +
 fs/nfs/nfs3proc.c                                  |   8 +
 fs/nfs/nfs4client.c                                |   7 +-
 fs/nfs/nfs4proc.c                                  |   5 +
 fs/nfs/nfs4xdr.c                                   |   3 +-
 fs/nfs/pnfs.c                                      |  12 +-
 fs/nfs/proc.c                                      |   8 +
 fs/nfs_common/nfslocalio.c                         | 101 ++-
 fs/nilfs2/namei.c                                  |   8 +-
 fs/nilfs2/recovery.c                               |  17 +
 fs/nsfs.c                                          |   4 +-
 fs/ntfs/aops.c                                     |   7 +-
 fs/ntfs/attrib.c                                   |  10 +-
 fs/ntfs/attrlist.c                                 |   9 +-
 fs/ntfs/bitmap.c                                   |  19 +-
 fs/ntfs/collate.c                                  |   2 +-
 fs/ntfs/compress.c                                 |   4 +-
 fs/ntfs/dir.c                                      |  15 +-
 fs/ntfs/ea.c                                       |   2 +-
 fs/ntfs/file.c                                     |  22 +-
 fs/ntfs/index.c                                    |  27 +-
 fs/ntfs/inode.c                                    | 132 ++-
 fs/ntfs/layout.h                                   |  13 +-
 fs/ntfs/lcnalloc.c                                 |  35 +-
 fs/ntfs/logfile.c                                  |   2 +-
 fs/ntfs/mft.c                                      |  14 +-
 fs/ntfs/mst.c                                      |   4 +-
 fs/ntfs/reparse.c                                  |   2 +-
 fs/ntfs/runlist.c                                  |   5 +-
 fs/ntfs3/attrib.c                                  |  10 +-
 fs/ntfs3/dir.c                                     |  62 +-
 fs/ntfs3/file.c                                    |   3 +
 fs/ntfs3/frecord.c                                 |  11 +-
 fs/ntfs3/fsntfs.c                                  |   3 +
 fs/ntfs3/index.c                                   |  19 +-
 fs/ntfs3/inode.c                                   |   9 +-
 fs/ntfs3/xattr.c                                   |   8 +-
 fs/ocfs2/cluster/heartbeat.c                       |  52 +-
 fs/ocfs2/cluster/tcp.c                             |   8 +-
 fs/ocfs2/dlmglue.c                                 |  29 +-
 fs/ocfs2/dlmglue.h                                 |   5 +-
 fs/ocfs2/export.c                                  |  10 +-
 fs/ocfs2/inode.c                                   |   5 +-
 fs/ocfs2/namei.c                                   |   6 +-
 fs/ocfs2/ocfs2.h                                   |   5 +
 fs/ocfs2/quota_local.c                             |  24 +
 fs/ocfs2/suballoc.c                                | 202 ++++-
 fs/ocfs2/suballoc.h                                |   2 +-
 fs/ocfs2/super.c                                   |  16 +
 fs/ocfs2/xattr.c                                   | 266 ++++--
 fs/ocfs2/xattr.h                                   |  12 +-
 fs/overlayfs/readdir.c                             |  54 +-
 fs/pidfs.c                                         |   8 +
 fs/proc/base.c                                     |   8 +-
 fs/proc/internal.h                                 |   1 +
 fs/proc/kcore.c                                    |   8 +-
 fs/proc/task_mmu.c                                 |   9 +-
 fs/pstore/ram.c                                    |   1 +
 fs/pstore/ram_core.c                               |   6 +
 fs/quota/dquot.c                                   |  10 +-
 fs/resctrl/rdtgroup.c                              |   2 +-
 fs/smb/client/connect.c                            |   6 +-
 fs/smb/server/Kconfig                              |   1 +
 fs/smb/server/connection.c                         |   2 +-
 fs/smb/server/connection.h                         |   3 +
 fs/smb/server/ksmbd_work.h                         |   9 +-
 fs/smb/server/mgmt/share_config.c                  |  43 +-
 fs/smb/server/mgmt/share_config.h                  |   2 +
 fs/smb/server/mgmt/user_session.c                  | 138 ++-
 fs/smb/server/mgmt/user_session.h                  |  18 +
 fs/smb/server/oplock.c                             |  46 +-
 fs/smb/server/oplock.h                             |   3 +-
 fs/smb/server/server.c                             |   8 +-
 fs/smb/server/smb2pdu.c                            | 862 ++++++++++++------
 fs/smb/server/smb2pdu.h                            |   1 +
 fs/smb/server/smb_common.c                         |   4 +-
 fs/smb/server/transport_ipc.c                      |  45 +-
 fs/smb/server/transport_ipc.h                      |  14 +-
 fs/smb/server/transport_tcp.c                      |   8 +-
 fs/smb/server/vfs.c                                |   9 +-
 fs/smb/server/vfs_cache.c                          |  31 +-
 fs/smb/smbdirect/accept.c                          |   2 +-
 fs/smb/smbdirect/connect.c                         |   2 +-
 fs/smb/smbdirect/connection.c                      |   2 +-
 fs/splice.c                                        |  43 +-
 fs/super.c                                         | 365 ++++----
 fs/xattr.c                                         |   2 +-
 include/acpi/acpi_bus.h                            |   2 +-
 include/acpi/ghes.h                                |   4 +
 include/asm-generic/mshyperv.h                     |   2 -
 include/asm-generic/vmlinux.lds.h                  |   2 +-
 include/cxl/event.h                                |   4 +-
 include/drm/drm_timeout.h                          |  17 +
 include/drm/drm_utils.h                            |   2 -
 include/dt-bindings/clock/qcom,nord-nwgcc.h        |   3 +
 include/linux/acpi.h                               |  24 +-
 include/linux/bio-integrity.h                      |   3 +-
 include/linux/blk-mq.h                             |   9 +-
 include/linux/blkdev.h                             |   7 +-
 include/linux/bpf.h                                |  49 +-
 include/linux/bpf_local_storage.h                  |  13 +
 include/linux/bpf_verifier.h                       | 115 ++-
 include/linux/btf.h                                |   1 +
 include/linux/clk-provider.h                       |  22 +-
 include/linux/dax.h                                |   3 +-
 include/linux/device.h                             |   1 +
 include/linux/dibs.h                               |   6 +-
 include/linux/dma-fence.h                          |   2 +-
 include/linux/etherdevice.h                        |  28 +
 include/linux/firewire.h                           |   1 -
 include/linux/fortify-string.h                     |   2 -
 include/linux/fs/super_types.h                     |  11 +-
 include/linux/fs_context.h                         |   4 +
 include/linux/ftrace.h                             |   1 +
 include/linux/hrtimer.h                            |  24 +
 include/linux/i3c/master.h                         |   3 +
 include/linux/iomap.h                              |  11 +-
 include/linux/kernel_stat.h                        |   7 +-
 include/linux/kexec.h                              |   2 +
 include/linux/leds.h                               |  10 +
 include/linux/mfd/da9150/core.h                    |   1 +
 include/linux/mm.h                                 | 172 ++--
 include/linux/mm_types.h                           |  12 +-
 include/linux/mmap_lock.h                          |  54 +-
 include/linux/mtd/spinand.h                        |   2 +-
 include/linux/netdevice.h                          |   7 +
 include/linux/nfslocalio.h                         |  12 +
 include/linux/pci.h                                |   2 +
 include/linux/platform_data/dmtimer-omap.h         |   2 +
 include/linux/platform_data/mipi-i3c-hci.h         |   4 +
 include/linux/platform_data/x86/asus-wmi.h         |   3 +-
 include/linux/ppp_channel.h                        |   1 +
 include/linux/quotaops.h                           |   5 +
 include/linux/rcuref.h                             |   2 +-
 include/linux/sched.h                              |   5 +-
 include/linux/sched/ext.h                          |   1 +
 include/linux/seq_buf.h                            |   4 +-
 include/linux/skbuff.h                             |  12 +-
 include/linux/soc/ti/k3-ringacc.h                  |  31 +-
 include/linux/sunrpc/svc_rdma.h                    |   2 +-
 include/linux/trace_seq.h                          |   5 +-
 include/linux/vfio_pci_core.h                      |  41 +-
 include/linux/watch_queue.h                        |   6 +-
 include/net/bluetooth/bluetooth.h                  |   4 +-
 include/net/bluetooth/hci.h                        |   1 +
 include/net/bluetooth/hci_h4.h                     |  60 ++
 include/net/bluetooth/hci_sync.h                   |   1 +
 include/net/bluetooth/l2cap.h                      |  20 +-
 include/net/cfg80211.h                             |  36 +-
 include/net/cipso_ipv4.h                           |  11 +-
 include/net/ip.h                                   |   2 +-
 include/net/ip_vs.h                                |  50 +-
 include/net/mac80211.h                             |   2 +
 include/net/mana/gdma.h                            | 121 ++-
 include/net/mana/mana.h                            |   1 +
 include/net/netfilter/nf_conntrack_seqadj.h        |   1 +
 include/net/netlabel.h                             |  11 +-
 include/net/netns/netfilter.h                      |   2 +
 include/net/seg6_hmac.h                            |   3 +-
 include/net/xsk_buff_pool.h                        |   3 +
 include/scsi/scsi_cmnd.h                           |   7 +
 include/scsi/scsi_common.h                         |  31 +-
 include/scsi/scsi_device.h                         |  37 +-
 include/scsi/scsi_proto.h                          |  20 +-
 include/scsi/scsi_sense.h                          | 950 ++++++++++++++++++++
 include/sound/aw88399.h                            |   5 +
 include/sound/control.h                            |   4 +-
 include/sound/core.h                               |   4 +-
 include/sound/hda_codec.h                          |   6 +-
 include/sound/hdaudio.h                            |   2 +
 include/sound/pcm.h                                |   2 +
 include/sound/pcm_oss.h                            |   1 +
 {sound/soc/sdca => include/sound}/sdca_class.h     |  14 +
 include/sound/soc-component.h                      |   2 +-
 include/sound/ump.h                                |   5 +
 include/trace/events/iocost.h                      |   7 +-
 include/trace/events/power.h                       |   3 +
 include/trace/events/rxrpc.h                       |   2 +-
 include/uapi/drm/panfrost_drm.h                    |  29 +-
 include/uapi/linux/amd-pmf.h                       |   3 +
 include/uapi/linux/firewire-cdev.h                 |   4 +-
 include/uapi/linux/iommufd.h                       |   2 +-
 include/uapi/linux/nl80211.h                       |  31 +
 include/ufs/ufshcd.h                               |   8 +
 include/vdso/math64.h                              |  20 +
 init/do_mounts.c                                   |  10 +-
 init/main.c                                        |   8 +-
 kernel/bpf/arena.c                                 | 410 +++++----
 kernel/bpf/arraymap.c                              |   8 +-
 kernel/bpf/backtrack.c                             |  18 +-
 kernel/bpf/bpf_insn_array.c                        |  15 +-
 kernel/bpf/bpf_iter.c                              |  24 +-
 kernel/bpf/bpf_local_storage.c                     |  51 +-
 kernel/bpf/bpf_lsm.c                               |   4 +-
 kernel/bpf/btf.c                                   |  40 +-
 kernel/bpf/cfg.c                                   | 111 ++-
 kernel/bpf/const_fold.c                            |   2 +
 kernel/bpf/core.c                                  |  56 +-
 kernel/bpf/cpumap.c                                |  35 +-
 kernel/bpf/devmap.c                                |   1 +
 kernel/bpf/diagnostics.c                           |  37 +-
 kernel/bpf/fixups.c                                | 135 ++-
 kernel/bpf/hashtab.c                               |  32 +-
 kernel/bpf/helpers.c                               |  74 +-
 kernel/bpf/liveness.c                              | 586 ++++++++-----
 kernel/bpf/log.c                                   |  13 +-
 kernel/bpf/map_in_map.c                            |   7 +-
 kernel/bpf/offload.c                               |  25 +-
 kernel/bpf/states.c                                | 109 ++-
 kernel/bpf/stream.c                                |  64 +-
 kernel/bpf/syscall.c                               |  92 +-
 kernel/bpf/task_iter.c                             |  12 +-
 kernel/bpf/token.c                                 |   5 +-
 kernel/bpf/trampoline.c                            |  29 +-
 kernel/bpf/verifier.c                              | 590 +++++++++----
 kernel/cgroup/cgroup-internal.h                    |   2 +-
 kernel/cgroup/cgroup-v1.c                          |  16 +-
 kernel/cgroup/cgroup.c                             |  98 ++-
 kernel/cgroup/cpuset-internal.h                    |   6 +
 kernel/cgroup/cpuset.c                             | 502 +++++++----
 kernel/cgroup/debug.c                              |  10 +-
 kernel/cgroup/dmem.c                               |   4 +-
 kernel/debug/kdb/kdb_io.c                          |   1 -
 kernel/debug/kdb/kdb_main.c                        |   7 +-
 kernel/debug/kdb/kdb_private.h                     |   3 +-
 kernel/dma/debug.c                                 |   7 +-
 kernel/dma/direct.c                                |  22 +-
 kernel/events/core.c                               |   3 +
 kernel/fork.c                                      |  12 +-
 kernel/kcov.c                                      |  35 +-
 kernel/kexec_core.c                                |   7 +
 kernel/kexec_file.c                                |   4 +-
 kernel/kthread.c                                   |   2 +-
 kernel/module/tracking.c                           |   2 +-
 kernel/nsproxy.c                                   |   2 +-
 kernel/power/suspend.c                             |  20 +-
 kernel/profile.c                                   |   2 +-
 kernel/rcu/rcutorture.c                            |   2 +-
 kernel/rcu/srcutree.c                              |   7 +-
 kernel/rcu/tree_nocb.h                             |   3 +-
 kernel/reboot.c                                    |   4 +-
 kernel/resource_kunit.c                            |   3 +
 kernel/sched/core.c                                |  37 +-
 kernel/sched/cputime.c                             |  44 +-
 kernel/sched/deadline.c                            |   7 +-
 kernel/sched/ext/cid.c                             |   6 +
 kernel/sched/ext/ext.c                             | 459 +++++++---
 kernel/sched/ext/ext.h                             |   7 +
 kernel/sched/ext/inlines.h                         |  15 +-
 kernel/sched/ext/internal.h                        |  86 +-
 kernel/sched/ext/sub.c                             | 320 ++++++-
 kernel/sched/ext/sub.h                             |  12 +-
 kernel/sched/fair.c                                |  29 +-
 kernel/sched/idle.c                                |  21 +-
 kernel/sched/rt.c                                  |   7 +-
 kernel/sched/sched.h                               |  20 +-
 kernel/sched/stop_task.c                           |   5 +-
 kernel/signal.c                                    |   5 +-
 kernel/time/hrtimer.c                              |   8 +-
 kernel/time/tick-sched.c                           |  22 +-
 kernel/time/timeconv.c                             |   6 +-
 kernel/time/timer.c                                |   2 +
 kernel/time/vsyscall.c                             |  26 +-
 kernel/trace/bpf_trace.c                           |  29 +-
 kernel/trace/rv/monitors/wakeup/wakeup.c           |   6 +-
 kernel/trace/rv/rv_reactors.c                      |  10 +-
 kernel/trace/trace.h                               |   3 -
 kernel/trace/trace_btf.c                           |   3 +
 kernel/trace/trace_events_hist.c                   |  25 +-
 kernel/ucount.c                                    |   7 +-
 kernel/watch_queue.c                               |   2 +-
 kernel/watchdog_perf.c                             |   4 +-
 lib/Kconfig.debug                                  |   1 -
 lib/bitmap-str.c                                   |  24 +-
 lib/decompress_unlz4.c                             |   4 +
 lib/kobject.c                                      |   2 +-
 lib/maple_tree.c                                   |  43 +-
 lib/region_alloc_benchmark.c                       |   8 +-
 lib/seq_buf.c                                      |   2 +-
 lib/test_hmm.c                                     |   2 +
 lib/test_sysctl.c                                  |   2 +-
 lib/tests/seq_buf_kunit.c                          | 174 ++++
 lib/vdso/gettimeofday.c                            |   4 +-
 mm/gup.c                                           |  17 +-
 mm/gup_test.c                                      |  11 +-
 mm/madvise.c                                       |  10 +-
 mm/memblock.c                                      |   9 +-
 mm/memory_hotplug.c                                |   6 +-
 mm/mlock.c                                         |   6 +-
 mm/mmap_lock.c                                     | 150 +++-
 mm/mprotect.c                                      |   2 +-
 mm/shmem.c                                         |  22 +-
 mm/slab_common.c                                   |   4 +-
 mm/slub.c                                          |   1 +
 mm/userfaultfd.c                                   |  23 +-
 mm/vma.c                                           |  77 +-
 net/9p/trans_xen.c                                 |   4 +-
 net/Kconfig                                        |   1 -
 net/bluetooth/6lowpan.c                            |  45 +-
 net/bluetooth/Makefile                             |   2 +-
 net/bluetooth/hci_core.c                           |   4 +-
 net/bluetooth/hci_event.c                          | 104 ++-
 net/bluetooth/hci_h4.c                             | 160 ++++
 net/bluetooth/hci_sync.c                           |  66 +-
 net/bluetooth/iso.c                                |   3 +
 net/bluetooth/l2cap_core.c                         |  85 +-
 net/bluetooth/l2cap_sock.c                         |  93 +-
 net/bluetooth/mgmt.c                               | 122 ++-
 net/bluetooth/msft.c                               |   6 +
 net/bpf/test_run.c                                 |  27 +-
 net/bridge/br_mdb.c                                |  16 +-
 net/bridge/br_multicast.c                          |   9 +
 net/bridge/br_netlink.c                            |   2 +-
 net/bridge/br_private.h                            |   1 +
 net/ceph/messenger_v1.c                            |   8 +-
 net/core/bpf_ksock.c                               |   7 +-
 net/core/bpf_sk_storage.c                          |  79 +-
 net/core/dev.c                                     |  48 +-
 net/core/dev.h                                     |   1 +
 net/core/devmem.c                                  | 174 ++--
 net/core/devmem.h                                  |  41 +-
 net/core/filter.c                                  |  71 +-
 net/core/gro.c                                     |   5 +-
 net/core/net-sysfs.c                               |   7 +
 net/core/netdev-genl.c                             |  11 +-
 net/core/selftests.c                               |   2 +-
 net/core/skbuff.c                                  |  11 +-
 net/core/sock.c                                    |   3 +-
 net/core/sysctl_net_core.c                         |   7 +-
 net/dcb/dcbnl.c                                    |   2 +
 net/devlink/region.c                               |   5 +
 net/ethtool/ioctl.c                                |   7 +
 net/ipv4/cipso_ipv4.c                              |  16 +-
 net/ipv4/devinet.c                                 |  35 +-
 net/ipv4/gre_offload.c                             |   2 +-
 net/ipv4/inet_connection_sock.c                    |   3 +-
 net/ipv4/inet_fragment.c                           |  61 +-
 net/ipv4/ip_fragment.c                             |  13 +-
 net/ipv4/ip_output.c                               |  15 +-
 net/ipv4/ip_tunnel.c                               |  14 +-
 net/ipv4/ipmr.c                                    |   5 +
 net/ipv4/syncookies.c                              |  12 +-
 net/ipv4/tcp.c                                     |  26 +-
 net/ipv4/tcp_bic.c                                 |  14 +-
 net/ipv4/tcp_bpf.c                                 |   1 +
 net/ipv4/tcp_cubic.c                               |  14 +-
 net/ipv4/tcp_hybla.c                               |  16 +-
 net/ipv4/tcp_ipv4.c                                |  17 +-
 net/ipv4/tcp_metrics.c                             |  20 +-
 net/ipv4/tcp_offload.c                             |  12 +-
 net/ipv6/calipso.c                                 |   6 +-
 net/ipv6/exthdrs.c                                 |   2 +-
 net/ipv6/ip6_fib.c                                 |   4 -
 net/ipv6/ip6mr.c                                   |   6 +
 net/ipv6/netfilter/nf_conntrack_reasm.c            |  15 +-
 net/ipv6/reassembly.c                              |  13 +-
 net/ipv6/route.c                                   |  37 +-
 net/ipv6/seg6_hmac.c                               |   5 +-
 net/ipv6/seg6_local.c                              |   6 +-
 net/ipv6/sit.c                                     |   6 +-
 net/ipv6/tcp_ipv6.c                                |   9 +-
 net/mac80211/cfg.c                                 |  62 +-
 net/mac80211/debugfs.c                             |   2 +-
 net/mac80211/ieee80211_i.h                         |   6 +-
 net/mac80211/main.c                                |   2 +
 net/mac80211/mesh_pathtbl.c                        |  17 +-
 net/mac80211/mlme.c                                |  14 +-
 net/mac80211/nan.c                                 |  33 +
 net/mac80211/rate.c                                |   1 -
 net/mac80211/rx.c                                  |   1 +
 net/mac80211/s1g.c                                 |   8 -
 net/mac80211/tx.c                                  | 216 +++--
 net/mctp/route.c                                   |  10 +-
 net/mptcp/options.c                                |   9 +-
 net/netfilter/core.c                               |  18 +-
 net/netfilter/ipvs/ip_vs_conn.c                    |   8 +-
 net/netfilter/ipvs/ip_vs_ctl.c                     |  38 +-
 net/netfilter/ipvs/ip_vs_dh.c                      |  16 +-
 net/netfilter/ipvs/ip_vs_fo.c                      |   2 +-
 net/netfilter/ipvs/ip_vs_lblc.c                    |   4 +-
 net/netfilter/ipvs/ip_vs_lblcr.c                   |   8 +-
 net/netfilter/ipvs/ip_vs_lc.c                      |   2 +-
 net/netfilter/ipvs/ip_vs_mh.c                      |   2 +-
 net/netfilter/ipvs/ip_vs_nq.c                      |   2 +-
 net/netfilter/ipvs/ip_vs_ovf.c                     |   2 +-
 net/netfilter/ipvs/ip_vs_rr.c                      |   2 +-
 net/netfilter/ipvs/ip_vs_sed.c                     |   4 +-
 net/netfilter/ipvs/ip_vs_sh.c                      |   2 +-
 net/netfilter/ipvs/ip_vs_sync.c                    |  23 +-
 net/netfilter/ipvs/ip_vs_twos.c                    |   4 +-
 net/netfilter/ipvs/ip_vs_wlc.c                     |   4 +-
 net/netfilter/ipvs/ip_vs_wrr.c                     |   2 +-
 net/netfilter/nf_conntrack_core.c                  |   5 +
 net/netfilter/nf_conntrack_seqadj.c                |  17 +
 net/netfilter/nf_flow_table_ip.c                   |   6 +-
 net/netfilter/nf_nat_core.c                        |  11 +
 net/netfilter/nf_synproxy_core.c                   |   4 +-
 net/netfilter/nfnetlink_hook.c                     |  74 +-
 net/netfilter/nft_compat.c                         |  15 +
 net/netfilter/nft_set_rbtree.c                     |   3 +-
 net/netfilter/xt_dccp.c                            |   2 +-
 net/netlabel/netlabel_kapi.c                       |  24 +-
 net/netlink/af_netlink.c                           |  12 +-
 net/openvswitch/actions.c                          |   9 +
 net/openvswitch/vport-internal_dev.c               |   8 +-
 net/psp/psp_sock.c                                 |  12 +
 net/rds/af_rds.c                                   |  29 +-
 net/rds/bind.c                                     |   4 +-
 net/rds/ib_sysctl.c                                |   2 +-
 net/rds/rdma_transport.c                           |   3 +
 net/rds/rds.h                                      |   3 +
 net/rds/recv.c                                     |  11 +-
 net/rds/send.c                                     |   9 +-
 net/rds/sysctl.c                                   |   2 +-
 net/rds/tcp.c                                      |   5 +-
 net/rxrpc/rxperf.c                                 |  25 +-
 net/rxrpc/sendmsg.c                                |  17 +-
 net/sched/act_api.c                                |  24 +-
 net/sched/sch_etf.c                                |   1 +
 net/sched/sch_gred.c                               |  16 +-
 net/sched/sch_taprio.c                             |   6 +-
 net/sctp/ipv6.c                                    |   6 +-
 net/sctp/sm_make_chunk.c                           |  24 +-
 net/sctp/sm_statefuns.c                            |   2 +-
 net/smc/smc_pnet.c                                 |  29 +-
 net/sunrpc/xprtsock.c                              |  34 +-
 net/tipc/bearer.c                                  |   4 +
 net/tipc/node.c                                    |   2 +-
 net/tls/tls_device.c                               |  45 +-
 net/tls/tls_main.c                                 |  26 +-
 net/tls/tls_sw.c                                   |   9 +-
 net/wireless/core.c                                |  35 +
 net/wireless/core.h                                |   4 +
 net/wireless/nl80211.c                             |  84 +-
 net/wireless/rdev-ops.h                            |  17 +
 net/wireless/reg.c                                 |  41 +-
 net/wireless/sme.c                                 |  38 +-
 net/wireless/trace.h                               |  25 +
 net/xdp/xsk.c                                      |   5 +
 net/xdp/xsk_buff_pool.c                            |  46 +-
 rust/Makefile                                      |   9 +-
 rust/helpers/dma.c                                 |   5 +
 rust/kernel/bitmap.rs                              |  17 +-
 rust/kernel/clk.rs                                 |  15 +
 rust/kernel/configfs.rs                            |  63 +-
 rust/kernel/i2c.rs                                 |  21 -
 rust/kernel/id_pool.rs                             |  15 +-
 rust/kernel/scatterlist.rs                         |  12 +-
 rust/kernel/sync/completion.rs                     |   2 +-
 rust/kernel/sync/lock/spinlock.rs                  |   2 +-
 rust/kernel/workqueue.rs                           |  52 +-
 rust/macros/lib.rs                                 |   2 +-
 rust/macros/module.rs                              |   2 +-
 rust/pin-init/internal/src/init.rs                 | 502 +++++++++--
 rust/pin-init/internal/src/lib.rs                  |  11 +-
 rust/pin-init/src/lib.rs                           |  48 +-
 rust/zerocopy-derive/README.md                     |   2 +-
 rust/zerocopy/README.md                            |   2 +-
 scripts/Makefile.vmlinux                           |  20 +-
 scripts/Makefile.vmlinux_o                         |   2 +-
 scripts/checkkconfigsymbols.py                     |   2 +-
 scripts/checkpatch.pl                              |   2 +
 scripts/clang-tools/run-clang-tools.py             |   1 +
 scripts/gcc-plugins/randomize_layout_plugin.c      |  61 +-
 scripts/gdb/linux/radixtree.py                     |  72 +-
 scripts/gdb/linux/stackdepot.py                    |   2 +-
 scripts/kconfig/conf.c                             |  19 +-
 scripts/kconfig/symbol.c                           |  39 +-
 scripts/kconfig/tests/conftest.py                  |  20 +-
 .../kconfig/tests/randconfig_probability/Kconfig   |  12 +
 .../tests/randconfig_probability/__init__.py       | 130 +++
 scripts/kconfig/tests/savedefconfig_range/Kconfig  |  60 ++
 .../kconfig/tests/savedefconfig_range/__init__.py  |   8 +
 scripts/kconfig/tests/savedefconfig_range/config   |   7 +
 .../tests/savedefconfig_range/expected_defconfig   |   0
 scripts/make_fit.py                                |   3 +-
 security/apparmor/af_inet.c                        |   5 +-
 security/apparmor/include/match.h                  |  11 +-
 security/apparmor/label.c                          |  14 +-
 security/apparmor/lsm.c                            |  19 +
 security/apparmor/match.c                          |  58 +-
 security/apparmor/net.c                            |   4 +-
 security/apparmor/policy_ns.c                      |   6 +-
 security/apparmor/policy_unpack.c                  |  10 +-
 security/integrity/ima/ima_template.c              |   5 +
 security/ipe/audit.c                               |   8 -
 security/security.c                                |   3 +-
 security/selinux/netlabel.c                        |   5 +-
 security/smack/smack_lsm.c                         |  14 +-
 sound/core/control_led.c                           |  62 +-
 sound/core/ctljack.c                               |   1 +
 sound/core/info.c                                  |   3 +-
 sound/core/init.c                                  |  47 +-
 sound/core/jack.c                                  |  11 +-
 sound/core/misc.c                                  |   5 +-
 sound/core/oss/mixer_oss.c                         |  36 +-
 sound/core/oss/pcm_oss.c                           |  12 +
 sound/core/pcm.c                                   |  13 +-
 sound/core/pcm_compat.c                            |   4 +-
 sound/core/pcm_lib.c                               |  16 +-
 sound/core/pcm_local.h                             |   6 +
 sound/core/pcm_native.c                            | 122 +--
 sound/core/rawmidi.c                               |   3 +
 sound/core/seq/seq_clientmgr.c                     |  21 +-
 sound/core/seq/seq_compat.c                        |  15 +-
 sound/core/seq/seq_ports.c                         |  41 +-
 sound/core/seq/seq_ports.h                         |   1 +
 sound/core/seq/seq_ump_client.c                    |   5 +-
 sound/core/timer.c                                 |   1 +
 sound/core/ump.c                                   |  61 +-
 sound/core/vmaster.c                               |  10 +-
 sound/drivers/aloop.c                              |  39 +-
 sound/drivers/pcmtest.c                            |  94 +-
 sound/hda/codecs/realtek/alc269.c                  |  64 +-
 sound/hda/common/bind.c                            |  15 +-
 sound/hda/common/codec.c                           |   4 +-
 sound/hda/common/hda_jack.h                        |   1 +
 sound/hda/common/jack.c                            |  88 +-
 sound/hda/controllers/intel.c                      |  33 +-
 sound/hda/core/bus.c                               |  30 +-
 sound/pci/oxygen/oxygen_pcm.c                      |  37 +-
 sound/pci/via82xx.c                                |  11 +-
 sound/sh/aica.c                                    |   2 +-
 sound/soc/amd/acp-es8336.c                         |   5 +-
 sound/soc/amd/acp/Kconfig                          |   4 +-
 sound/soc/amd/acp/acp-platform.c                   |   2 +-
 sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c      |  14 +-
 sound/soc/amd/ps/ps-pdm-dma.c                      |   2 +-
 sound/soc/amd/ps/ps-sdw-dma.c                      |   2 +-
 sound/soc/amd/raven/acp3x-pcm-dma.c                |   4 +-
 sound/soc/amd/renoir/acp3x-pdm-dma.c               |   2 +-
 sound/soc/amd/vangogh/acp5x-pcm-dma.c              |   2 +-
 sound/soc/amd/yc/acp6x-pdm-dma.c                   |   2 +-
 sound/soc/atmel/atmel-i2s.c                        |  43 +-
 sound/soc/atmel/atmel-pcm-pdc.c                    |   2 +
 sound/soc/codecs/ab8500-codec.c                    | 144 +--
 sound/soc/codecs/adau17x1.c                        |   4 +-
 sound/soc/codecs/ak4642.c                          |   3 +-
 sound/soc/codecs/aw88399-lib.c                     |  13 +
 sound/soc/codecs/cs42l56.c                         |   1 -
 sound/soc/codecs/da7213.c                          |  23 +-
 sound/soc/codecs/da732x.c                          |   2 +-
 sound/soc/codecs/es8316.c                          |   4 +-
 sound/soc/codecs/es8323.c                          |   4 +-
 sound/soc/codecs/es8326.c                          |  26 +-
 sound/soc/codecs/es8375.c                          |  20 +-
 sound/soc/codecs/es8375.h                          |   2 +-
 sound/soc/codecs/es8389.c                          |  20 +-
 sound/soc/codecs/fs210x.c                          |   5 +-
 sound/soc/codecs/mt6359-accdet.c                   |  50 +-
 sound/soc/codecs/nau8540.c                         |   4 +-
 sound/soc/codecs/nau8822.c                         |  15 +-
 sound/soc/codecs/rt1011.c                          |   4 +-
 sound/soc/codecs/rt1015.c                          |  81 +-
 sound/soc/codecs/rt1016.c                          |   4 +-
 sound/soc/codecs/rt1305.c                          |   4 +-
 sound/soc/codecs/rt1308.c                          |   4 +-
 sound/soc/codecs/rt1318.c                          |   3 +-
 sound/soc/codecs/rt1320-sdw.c                      |   2 +-
 sound/soc/codecs/rt5616.c                          |   3 +-
 sound/soc/codecs/rt5645.c                          |   7 +-
 sound/soc/codecs/rt5659.c                          |  10 +-
 sound/soc/codecs/rt5660.c                          |   4 +-
 sound/soc/codecs/rt5665.c                          |   4 +-
 sound/soc/codecs/rt5682-sdw.c                      |   3 +-
 sound/soc/codecs/rt711-sdca-sdw.c                  |   6 +-
 sound/soc/codecs/rt711-sdw.c                       |   8 +-
 sound/soc/codecs/rt712-sdca-sdw.c                  |   6 +-
 sound/soc/codecs/rt712-sdca.c                      |   5 +-
 sound/soc/codecs/rt721-sdca-sdw.c                  |   6 +-
 sound/soc/codecs/rt722-sdca-sdw.c                  |   6 +-
 sound/soc/codecs/sma1307.c                         |  14 +-
 sound/soc/codecs/sta32x.c                          | 121 ++-
 sound/soc/codecs/sta350.c                          |  20 +-
 sound/soc/codecs/tas2781-fmwlib.c                  |   6 +-
 sound/soc/codecs/tlv320adc3xxx.c                   |   2 +-
 sound/soc/codecs/tlv320aic32x4.c                   |   2 +-
 sound/soc/codecs/tlv320aic32x4.h                   |   1 +
 sound/soc/codecs/wcd-mbhc-v2.c                     |   8 +-
 sound/soc/codecs/wcd937x.c                         |  44 +-
 sound/soc/codecs/wcd939x.c                         |  10 +-
 sound/soc/codecs/wcd939x.h                         |   1 -
 sound/soc/codecs/wm5100.c                          |   2 +-
 sound/soc/codecs/wm8510.c                          |   2 +-
 sound/soc/codecs/wm8737.c                          |   8 +-
 sound/soc/codecs/wm8750.c                          |   2 +-
 sound/soc/codecs/wm8955.c                          |   2 +-
 sound/soc/codecs/wm8983.c                          |   2 +-
 sound/soc/codecs/wm8985.c                          |   2 +-
 sound/soc/codecs/wm8990.c                          |  10 +-
 sound/soc/codecs/wm8991.c                          |  10 +-
 sound/soc/codecs/wm8994.c                          | 159 ++--
 sound/soc/codecs/wm8994.h                          |   2 +
 sound/soc/codecs/wm_hubs.c                         |   2 +-
 sound/soc/codecs/wsa881x.c                         |  18 +-
 sound/soc/codecs/wsa883x.c                         |   8 +-
 sound/soc/codecs/wsa884x.c                         |   8 +-
 sound/soc/dwc/dwc-i2s.c                            |   6 +-
 sound/soc/fsl/fsl_asrc.c                           |   8 +-
 sound/soc/fsl/fsl_asrc_dma.c                       |   5 +
 sound/soc/fsl/fsl_asrc_m2m.c                       |   4 +-
 sound/soc/fsl/imx-pcm-rpmsg.c                      |   2 +-
 sound/soc/intel/atom/sst-mfld-platform-pcm.c       |   2 +-
 sound/soc/intel/avs/pcm.c                          |   2 +
 sound/soc/intel/avs/utils.c                        |   6 +-
 sound/soc/mediatek/common/mtk-afe-fe-dai.c         |   8 +-
 sound/soc/mediatek/common/mtk-soundcard-driver.c   |  67 +-
 sound/soc/mediatek/mt6797/mt6797-afe-clk.c         |  14 +-
 sound/soc/mediatek/mt8183/mt8183-afe-clk.c         |  22 +-
 sound/soc/mediatek/mt8186/mt8186-afe-clk.c         |  95 +-
 sound/soc/mediatek/mt8188/mt8188-afe-clk.c         | 104 ++-
 sound/soc/mediatek/mt8188/mt8188-afe-pcm.c         |  24 +-
 sound/soc/mediatek/mt8188/mt8188-audsys-clk.c      |  12 +-
 sound/soc/mediatek/mt8188/mt8188-mt6359.c          |   3 +
 sound/soc/mediatek/mt8189/mt8189-afe-clk.c         | 127 ++-
 sound/soc/mediatek/mt8189/mt8189-afe-pcm.c         |  40 +-
 sound/soc/mediatek/mt8189/mt8189-dai-i2s.c         |  18 +-
 sound/soc/mediatek/mt8189/mt8189-dai-tdm.c         |  19 +-
 sound/soc/mediatek/mt8192/mt8192-afe-clk.c         | 139 +--
 sound/soc/mediatek/mt8192/mt8192-afe-gpio.c        |  86 +-
 sound/soc/mediatek/mt8192/mt8192-afe-pcm.c         |   6 +-
 sound/soc/mediatek/mt8192/mt8192-dai-adda.c        |  44 +-
 sound/soc/mediatek/mt8192/mt8192-dai-i2s.c         |  20 +-
 sound/soc/mediatek/mt8192/mt8192-dai-tdm.c         |  18 +-
 .../mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c  |  37 +-
 sound/soc/mediatek/mt8195/mt8195-afe-clk.c         |  77 +-
 sound/soc/mediatek/mt8195/mt8195-afe-pcm.c         | 102 ++-
 sound/soc/mediatek/mt8195/mt8195-dai-etdm.c        |  99 ++-
 sound/soc/mediatek/mt8196/mt8196-afe-clk.c         | 138 ++-
 sound/soc/mediatek/mt8196/mt8196-afe-pcm.c         |  18 +-
 sound/soc/mediatek/mt8196/mt8196-dai-i2s.c         |  17 +-
 sound/soc/mediatek/mt8196/mt8196-dai-tdm.c         |  16 +-
 sound/soc/mediatek/mt8365/mt8365-afe-pcm.c         |   7 +-
 sound/soc/mediatek/mt8365/mt8365-dai-i2s.c         |   2 +-
 sound/soc/qcom/qdsp6/q6apm.c                       |   1 +
 sound/soc/qcom/sdm845.c                            |  19 +-
 sound/soc/renesas/rcar/msiof.c                     |   6 +-
 sound/soc/rockchip/rk3288_hdmi_analog.c            |  42 +-
 sound/soc/rockchip/rockchip_i2s.c                  |   4 +-
 sound/soc/rockchip/rockchip_sai.c                  |   4 +-
 sound/soc/samsung/midas_wm1811.c                   |  14 +-
 sound/soc/sdca/sdca_class.c                        |  82 +-
 sound/soc/sdca/sdca_class_function.c               |   2 +-
 sound/soc/sdca/sdca_fdl.c                          |  18 +-
 sound/soc/soc-ac97.c                               |   4 +-
 sound/soc/soc-card-test.c                          |   7 +-
 sound/soc/soc-component.c                          |   2 +-
 sound/soc/soc-link.c                               |   2 +-
 sound/soc/soc-ops.c                                |  10 +-
 sound/soc/soc-topology-test.c                      |   8 +-
 sound/soc/sof/amd/acp.c                            |  11 +-
 sound/soc/sof/imx/imx-common.c                     |   1 +
 sound/soc/sof/intel/hda-codec.c                    |   4 +-
 sound/soc/sof/intel/hda-ctrl.c                     |   1 +
 sound/soc/sof/intel/hda.c                          |   4 +
 sound/soc/xilinx/xlnx_formatter_pcm.c              |  18 +-
 sound/usb/6fire/control.c                          |   7 +
 sound/usb/caiaq/device.c                           |   9 +-
 sound/usb/caiaq/device.h                           |   6 +-
 sound/usb/caiaq/input.c                            |  29 +-
 sound/usb/caiaq/midi.c                             |   2 +
 sound/usb/line6/capture.c                          |   3 +-
 sound/usb/line6/pcm.c                              |   8 +-
 sound/usb/mixer.c                                  | 172 +++-
 sound/usb/mixer.h                                  |  10 +-
 sound/usb/mixer_quirks.c                           |   2 +-
 sound/usb/mixer_scarlett.c                         |  18 +-
 sound/usb/mixer_us16x08.c                          |  39 +-
 sound/usb/quirks-table.h                           |   2 +
 sound/usb/quirks.c                                 |   9 +-
 sound/usb/usx2y/us122l.c                           |   2 +-
 sound/virtio/virtio_pcm.h                          |   2 +
 sound/virtio/virtio_pcm_msg.c                      |  19 +
 sound/virtio/virtio_pcm_ops.c                      |   1 +
 tools/bpf/bpftool/Documentation/bpftool-prog.rst   |  11 +-
 tools/bpf/bpftool/btf.c                            |   6 +-
 tools/bpf/bpftool/common.c                         |  40 +
 tools/bpf/bpftool/gen.c                            |  26 +-
 tools/bpf/bpftool/link.c                           |   4 +-
 tools/bpf/bpftool/main.c                           |  16 +-
 tools/bpf/bpftool/main.h                           |   1 +
 tools/bpf/bpftool/map.c                            |  95 +-
 tools/bpf/bpftool/prog.c                           | 240 +++--
 tools/bpf/bpftool/skeleton/profiler.bpf.c          |  29 +-
 tools/bpf/bpftool/tracelog.c                       |   2 +-
 tools/bpf/resolve_btfids/main.c                    |   3 +-
 tools/cgroup/iocost_monitor.py                     |   7 +-
 tools/cgroup/memcg_shrinker.py                     |   2 +-
 tools/hv/vmbus_bufring.c                           |   6 -
 tools/include/nolibc/dirent.h                      |   7 +-
 tools/include/nolibc/err.h                         |   2 +-
 tools/include/nolibc/stdlib.h                      |   8 +-
 tools/include/nolibc/sys/select.h                  |   6 +-
 tools/include/nolibc/types.h                       |   2 +-
 tools/lib/api/fd/array.c                           |   4 +
 tools/lib/bpf/btf.c                                |  16 +-
 tools/lib/bpf/libbpf.c                             |  53 +-
 tools/lib/bpf/skel_internal.h                      |  48 +-
 tools/lib/bpf/usdt.c                               |   4 +
 tools/lib/perf/evlist.c                            |   5 +-
 tools/lib/perf/include/internal/evsel.h            |   2 +
 tools/lib/perf/mmap.c                              |   2 +-
 tools/perf/Build                                   |   4 +-
 tools/perf/Documentation/perf-c2c.txt              |   2 +-
 tools/perf/Documentation/perf-record.txt           |   7 +-
 tools/perf/Documentation/perf-sched.txt            |   6 +-
 tools/perf/Makefile.config                         |  13 +-
 tools/perf/Makefile.perf                           |  25 +-
 tools/perf/arch/arm/tests/dwarf-unwind.c           |   1 +
 tools/perf/arch/arm64/tests/dwarf-unwind.c         |   1 +
 tools/perf/arch/powerpc/tests/dwarf-unwind.c       |   1 +
 tools/perf/arch/powerpc/util/skip-callchain-idx.c  |   4 +-
 tools/perf/arch/x86/tests/topdown.c                |  30 +
 tools/perf/arch/x86/util/topdown.c                 |   3 +-
 tools/perf/builtin-buildid-list.c                  |  17 +-
 tools/perf/builtin-c2c.c                           |  16 +-
 tools/perf/builtin-inject.c                        |   3 +
 tools/perf/builtin-lock.c                          |  61 +-
 tools/perf/builtin-record.c                        |  15 +
 tools/perf/builtin-sched.c                         | 195 +++--
 tools/perf/builtin-stat.c                          |   4 +-
 tools/perf/builtin-trace.c                         | 114 ++-
 tools/perf/pmu-events/Build                        |   6 +-
 .../arch/x86/clearwaterforest/pipeline.json        |   3 +-
 .../arch/x86/clearwaterforest/uncore-cache.json    |   5 +
 .../x86/clearwaterforest/uncore-interconnect.json  |   2 +
 .../perf/pmu-events/arch/x86/lunarlake/cache.json  |   3 +
 .../pmu-events/arch/x86/lunarlake/pipeline.json    |   2 +
 .../arch/x86/sierraforest/uncore-cache.json        |   5 +
 .../arch/x86/sierraforest/uncore-interconnect.json |   2 +
 .../arch/x86/skylakex/uncore-interconnect.json     |   6 +
 .../arch/x86/snowridgex/uncore-cache.json          |  68 ++
 .../arch/x86/snowridgex/uncore-interconnect.json   |  10 +
 tools/perf/pmu-events/jevents.py                   |  11 +-
 tools/perf/tests/Build                             |   4 +-
 tools/perf/tests/code-reading.c                    |  12 +-
 tools/perf/tests/demangle-java-test.c              |   1 +
 tools/perf/tests/demangle-rust-v0-test.c           |   1 +
 tools/perf/tests/fdarray.c                         |  32 +
 tools/perf/tests/hists_cumulate.c                  |   2 +-
 tools/perf/tests/hists_filter.c                    |   2 +-
 tools/perf/tests/hists_link.c                      |   2 +-
 tools/perf/tests/hists_output.c                    |   2 +-
 tools/perf/tests/make                              |   3 -
 tools/perf/tests/pe-file-parsing.c                 |   2 +-
 tools/perf/tests/sample-parsing.c                  | 109 +++
 tools/perf/tests/shell/attr.sh                     |   7 +-
 tools/perf/tests/shell/attr/README                 |  10 +-
 tools/perf/tests/shell/attr/base-record            |   2 +-
 tools/perf/tests/shell/attr/base-stat              |   2 +-
 tools/perf/tests/shell/attr/base-stat-group        |  45 +
 tools/perf/tests/shell/attr/system-wide-dummy      |   2 +-
 tools/perf/tests/shell/attr/test-record-dummy-C0   |   2 +-
 .../perf/tests/shell/attr/test-record-graph-dwarf  |   2 +-
 .../tests/shell/attr/test-record-group-sampling    |   4 +-
 .../tests/shell/attr/test-record-group-sampling1   |   4 +-
 .../tests/shell/attr/test-record-group-sampling2   |   4 +-
 tools/perf/tests/shell/attr/test-record-group1     |   2 +-
 tools/perf/tests/shell/attr/test-record-group2     |   2 +-
 tools/perf/tests/shell/attr/test-record-group3     |   2 +-
 tools/perf/tests/shell/attr/test-stat-default      |  90 +-
 tools/perf/tests/shell/attr/test-stat-detailed-1   |  98 ++-
 tools/perf/tests/shell/attr/test-stat-detailed-2   | 110 ++-
 tools/perf/tests/shell/attr/test-stat-detailed-3   | 114 ++-
 tools/perf/tests/shell/attr/test-stat-group1       |   2 +-
 tools/perf/tests/shell/c2c.sh                      |   1 +
 tools/perf/tests/shell/coresight/callchain.sh      |   7 +-
 tools/perf/tests/shell/data_type_profiling.sh      |  46 +-
 tools/perf/tests/shell/lib/attr.py                 |  11 +-
 tools/perf/tests/shell/schedstat_snapshots.sh      | 155 ++++
 tools/perf/tests/shell/stat.sh                     |   5 +
 tools/perf/tests/shell/test_event_open_fallback.sh |   2 -
 tools/perf/tests/symbols.c                         |  96 +-
 tools/perf/tests/thread-maps-share.c               |   3 +-
 tools/perf/tests/workloads/code_with_type.c        |   2 +-
 tools/perf/ui/browsers/annotate-data.c             |   2 +-
 tools/perf/util/Build                              |   2 +-
 tools/perf/util/addr2line.c                        |  68 +-
 tools/perf/util/annotate-data.c                    |  21 +-
 tools/perf/util/aslr.c                             |  10 +-
 tools/perf/util/aslr.h                             |   2 +
 tools/perf/util/bpf-filter.c                       |  29 +-
 tools/perf/util/cs-etm.c                           |  12 +-
 tools/perf/util/debug.c                            |   2 +-
 tools/perf/util/dso.c                              |  61 +-
 tools/perf/util/dso.h                              |  26 +-
 tools/perf/util/evlist.c                           |   6 +-
 tools/perf/util/evsel.c                            |  92 +-
 tools/perf/util/evsel.h                            |   1 +
 tools/perf/util/header.c                           |  18 +-
 tools/perf/util/jitdump.c                          | 126 ++-
 tools/perf/util/libbfd.c                           |  76 +-
 tools/perf/util/libbfd.h                           |   9 +
 tools/perf/util/libdw.c                            |  54 +-
 tools/perf/util/libdw.h                            |   5 +-
 tools/perf/util/llvm-c-helpers.cpp                 |  66 +-
 tools/perf/util/llvm.c                             |  16 +-
 tools/perf/util/machine.c                          |   4 +-
 tools/perf/util/machine.h                          |  10 +-
 tools/perf/util/mem-events.c                       |   2 +-
 tools/perf/util/mmap.c                             |   3 +-
 tools/perf/util/parse-events.c                     |   3 +-
 tools/perf/util/pmus.c                             |  21 +-
 tools/perf/util/print_insn.h                       |   1 +
 tools/perf/util/python.c                           |   1 +
 tools/perf/util/session.c                          |   2 +-
 tools/perf/util/setup.py                           |   1 +
 tools/perf/util/srcline.c                          |  83 +-
 tools/perf/util/symbol.c                           |  40 +-
 tools/perf/util/synthetic-events.c                 |  16 +-
 tools/perf/util/thread.c                           |   8 +-
 tools/perf/util/thread_map.c                       |  26 +
 tools/perf/util/thread_map.h                       |   1 +
 tools/perf/util/tp_pmu.c                           |   8 +-
 tools/perf/util/unwind-libdw.c                     |   2 +
 tools/perf/util/unwind-libunwind.c                 |  62 +-
 tools/power/x86/turbostat/turbostat.c              |   8 +-
 .../x86_energy_perf_policy.c                       |  18 +-
 tools/sched_ext/include/scx/enum_defs.autogen.h    |   1 +
 tools/sched_ext/scx_flatcg.bpf.c                   |   2 +-
 tools/testing/cxl/test/cxl.c                       |   8 +-
 tools/testing/selftests/Makefile                   |   4 +-
 tools/testing/selftests/alsa/mixer-test.c          |   2 +
 tools/testing/selftests/alsa/test-pcmtest-driver.c |  27 +-
 tools/testing/selftests/arm64/signal/Makefile      |   4 +-
 tools/testing/selftests/bpf/Makefile               |   8 +-
 .../selftests/bpf/bpftool_btf_dump_sorted.expected |  48 +
 .../bpf/bpftool_btf_dump_unsorted.expected         |  48 +
 tools/testing/selftests/bpf/bpftool_helpers.c      |   7 +-
 tools/testing/selftests/bpf/network_helpers.c      |  46 +-
 .../selftests/bpf/prog_tests/bpftool_btf_dump.c    | 178 ++++
 .../bpf/prog_tests/cgroup_hierarchical_stats.c     |   4 +-
 .../testing/selftests/bpf/prog_tests/dmabuf_iter.c |   5 +-
 tools/testing/selftests/bpf/prog_tests/empty_skb.c |  19 +-
 .../selftests/bpf/prog_tests/flow_dissector.c      |   2 +-
 .../selftests/bpf/prog_tests/global_data_init.c    |  96 +-
 .../selftests/bpf/prog_tests/lwt_ip_encap.c        |  53 ++
 tools/testing/selftests/bpf/prog_tests/missed.c    |   8 +-
 .../bpf/prog_tests/prog_tests_framework.c          |  16 +-
 tools/testing/selftests/bpf/prog_tests/sockopt.c   |   4 +-
 .../bpf/prog_tests/test_struct_ops_assoc.c         |  37 +-
 .../selftests/bpf/prog_tests/test_task_work.c      |   2 +-
 .../testing/selftests/bpf/prog_tests/test_tc_edt.c |  13 +-
 .../testing/selftests/bpf/prog_tests/test_tunnel.c |  13 +-
 .../selftests/bpf/prog_tests/uprobe_multi_test.c   |   4 +-
 tools/testing/selftests/bpf/prog_tests/wq.c        |   5 +-
 .../testing/selftests/bpf/progs/cpumask_success.c  |   6 +
 tools/testing/selftests/bpf/progs/dynptr_fail.c    |   4 +-
 .../bpf/progs/struct_ops_assoc_in_timer.c          |  16 +
 .../selftests/bpf/progs/test_global_percpu_data.c  |  10 +-
 tools/testing/selftests/bpf/progs/test_tc_edt.c    |  13 +-
 tools/testing/selftests/bpf/progs/test_tc_link.c   |  10 +
 .../selftests/bpf/progs/verifier_jit_inline.c      |   2 +-
 tools/testing/selftests/bpf/progs/verifier_ldsx.c  |  17 +
 .../selftests/bpf/progs/verifier_stack_arg.c       |   4 +-
 tools/testing/selftests/bpf/test_progs.c           |   5 +-
 tools/testing/selftests/bpf/unpriv_helpers.c       |   9 +-
 tools/testing/selftests/cgroup/test_cpuset_prs.sh  |  54 +-
 tools/testing/selftests/cgroup/test_zswap.c        |  22 +-
 .../selftests/clone3/clone3_clear_sighand.c        |   6 +-
 .../selftests/coredump/coredump_test_helpers.c     |   8 +-
 .../selftests/damon/sysfs_no_op_commit_break.py    |  35 +-
 tools/testing/selftests/drivers/net/psp.py         |  56 +-
 tools/testing/selftests/exec/Makefile              |   2 +-
 tools/testing/selftests/filelock/ofdlocks.c        |   2 +-
 .../filesystems/epoll/epoll_wakeup_test.c          |  32 +-
 .../selftests/filesystems/fscontext_ns/.gitignore  |   2 +
 .../filesystems/overlayfs/set_layers_via_fds.c     |  18 +-
 tools/testing/selftests/ftrace/ftracetest          |   2 +-
 .../selftests/namespaces/ns_active_ref_test.c      |  29 +
 tools/testing/selftests/net/lib/csum.c             |  55 +-
 tools/testing/selftests/net/lib/gro.c              |   2 -
 .../selftests/net/netfilter/conntrack_vrf.sh       |  25 +-
 tools/testing/selftests/net/tcp_mmap.c             |   6 +-
 tools/testing/selftests/net/txtimestamp.c          |  23 +-
 tools/testing/selftests/nolibc/Makefile            |   2 +-
 tools/testing/selftests/pidfd/pidfd_open_test.c    |   2 +-
 tools/testing/selftests/proc/proc-pid-vm.c         |  14 +-
 tools/testing/selftests/rdma/config                |  12 +-
 .../testing/selftests/rdma/rxe_sent_rcvd_bytes.sh  |   6 +
 tools/testing/selftests/sched_ext/hotplug.c        |  34 +-
 tools/testing/selftests/sched_ext/rt_stall.c       |  80 +-
 tools/testing/selftests/sched_ext/runner.c         |   2 +-
 .../selftests/tc-testing/tc-tests/qdiscs/hfsc.json |   2 +-
 .../selftests/thermal/intel/power_floor/Makefile   |  12 +-
 .../selftests/thermal/intel/workload_hint/Makefile |  12 +-
 .../testing/selftests/timers/clocksource-switch.c  |  23 +-
 tools/testing/selftests/ublk/fault_inject.c        |  14 +-
 tools/testing/selftests/vfio/lib/sysfs.c           |   1 +
 tools/testing/shared/linux.c                       |   4 +-
 tools/testing/vma/include/dup.h                    |  82 +-
 tools/testing/vma/include/stubs.h                  |   2 +-
 tools/testing/vma/shared.c                         |   8 +-
 tools/testing/vma/shared.h                         |  16 +-
 tools/thermal/tmon/tmon.c                          |   2 +-
 tools/tracing/rtla/tests/engine.sh                 |   2 +-
 usr/gen_init_cpio.c                                |   1 +
 2347 files changed, 40439 insertions(+), 18166 deletions(-)



^ permalink raw reply	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0001/2651] KVM: SVM: Add a vCPU-aware helper to get supported DEBUGCTL bits
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0002/2651] KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM Greg Kroah-Hartman
                   ` (190 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Shivansh Dhiman, Nikunj A Dadhania,
	Sean Christopherson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Shivansh Dhiman <shivansh.dhiman@amd.com>

[ Upstream commit cd0e6f4d7cec11be97fe6476309719b23ab5accb ]

Replace DEBUGCTL_RESERVED_BITS with a vCPU-aware helper that provides the
set of supported bits so that KVM can handle bits that are conditionally
supported based on the vCPU model, e.g. for features like Bus Lock Detect.

No functional change intended.

Signed-off-by: Shivansh Dhiman <shivansh.dhiman@amd.com>
Reviewed-by: Nikunj A Dadhania <nikunj@amd.com>
[sean: invert from reserved => supported, massage changelog]
Link: https://patch.msgid.link/20260930193634.3415089-12-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Stable-dep-of: 053621535f01 ("KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/x86/kvm/svm/nested.c | 8 ++++----
 arch/x86/kvm/svm/svm.c    | 6 +++---
 arch/x86/kvm/svm/svm.h    | 7 +++++--
 3 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c
index 2aa87ae6b8f31..ae5688e5c7fb0 100644
--- a/arch/x86/kvm/svm/nested.c
+++ b/arch/x86/kvm/svm/nested.c
@@ -821,7 +821,7 @@ static void nested_vmcb02_prepare_save(struct vcpu_svm *svm)
 		 * svm_set_msr's definition of reserved bits.
 		 */
 		svm_copy_lbrs(&vmcb02->save, save);
-		vmcb02->save.dbgctl &= ~DEBUGCTL_RESERVED_BITS;
+		vmcb02->save.dbgctl &= svm_get_supported_debugctl(vcpu);
 	} else {
 		svm_copy_lbrs(&vmcb02->save, &vmcb01->save);
 	}
@@ -1203,7 +1203,7 @@ int nested_svm_vmrun(struct kvm_vcpu *vcpu)
 }
 
 /* Copy state save area fields which are handled by VMRUN */
-void svm_copy_vmrun_state(struct vmcb_save_area *to_save,
+void svm_copy_vmrun_state(struct kvm_vcpu *vcpu, struct vmcb_save_area *to_save,
 			  struct vmcb_save_area *from_save)
 {
 	to_save->es = from_save->es;
@@ -1230,7 +1230,7 @@ void svm_copy_vmrun_state(struct vmcb_save_area *to_save,
 
 	if (kvm_cpu_cap_has(X86_FEATURE_LBRV)) {
 		svm_copy_lbrs(to_save, from_save);
-		to_save->dbgctl &= ~DEBUGCTL_RESERVED_BITS;
+		to_save->dbgctl &= svm_get_supported_debugctl(vcpu);
 	}
 }
 
@@ -2070,7 +2070,7 @@ static int svm_set_nested_state(struct kvm_vcpu *vcpu,
 
 	svm->nested.vmcb12_gpa = kvm_state->hdr.svm.vmcb_pa;
 
-	svm_copy_vmrun_state(&svm->vmcb01.ptr->save, save);
+	svm_copy_vmrun_state(vcpu, &svm->vmcb01.ptr->save, save);
 	nested_copy_vmcb_control_to_cache(svm, ctl);
 
 	svm_switch_vmcb(svm, &svm->nested.vmcb02);
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
index 13c44d6196513..bb8a14f21e3e5 100644
--- a/arch/x86/kvm/svm/svm.c
+++ b/arch/x86/kvm/svm/svm.c
@@ -3169,7 +3169,7 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr)
 			data &= ~DEBUGCTLMSR_BTF;
 		}
 
-		if (data & DEBUGCTL_RESERVED_BITS)
+		if (data & ~svm_get_supported_debugctl(vcpu))
 			return 1;
 
 		if (svm->vmcb->save.dbgctl == data)
@@ -5064,7 +5064,7 @@ static int svm_enter_smm(struct kvm_vcpu *vcpu, union kvm_smram *smram)
 
 	BUILD_BUG_ON(offsetof(struct vmcb, save) != 0x400);
 
-	svm_copy_vmrun_state(m_save.map.hva + 0x400, &svm->vmcb01.ptr->save);
+	svm_copy_vmrun_state(vcpu, m_save.map.hva + 0x400, &svm->vmcb01.ptr->save);
 	return 0;
 }
 
@@ -5104,7 +5104,7 @@ static int svm_leave_smm(struct kvm_vcpu *vcpu, const union kvm_smram *smram)
 	 * used during SMM (see svm_enter_smm())
 	 */
 
-	svm_copy_vmrun_state(&svm->vmcb01.ptr->save, m_save.map.hva + 0x400);
+	svm_copy_vmrun_state(vcpu, &svm->vmcb01.ptr->save, m_save.map.hva + 0x400);
 
 	/*
 	 * Enter the nested guest now
diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h
index 29bde741874ad..2216988365593 100644
--- a/arch/x86/kvm/svm/svm.h
+++ b/arch/x86/kvm/svm/svm.h
@@ -786,7 +786,10 @@ BUILD_SVM_MSR_BITMAP_HELPERS(bool, test, test)
 BUILD_SVM_MSR_BITMAP_HELPERS(void, clear, __clear)
 BUILD_SVM_MSR_BITMAP_HELPERS(void, set, __set)
 
-#define DEBUGCTL_RESERVED_BITS (~DEBUGCTLMSR_LBR)
+static inline u64 svm_get_supported_debugctl(struct kvm_vcpu *vcpu)
+{
+	return DEBUGCTLMSR_LBR;
+}
 
 /* svm.c */
 extern bool dump_invalid_vmcb;
@@ -876,7 +879,7 @@ void svm_leave_nested(struct kvm_vcpu *vcpu);
 void svm_free_nested(struct vcpu_svm *svm);
 int svm_allocate_nested(struct vcpu_svm *svm);
 int nested_svm_vmrun(struct kvm_vcpu *vcpu);
-void svm_copy_vmrun_state(struct vmcb_save_area *to_save,
+void svm_copy_vmrun_state(struct kvm_vcpu *vcpu, struct vmcb_save_area *to_save,
 			  struct vmcb_save_area *from_save);
 void svm_copy_vmloadsave_state(struct vmcb *to_vmcb, struct vmcb *from_vmcb);
 void nested_svm_vmexit(struct vcpu_svm *svm);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0002/2651] KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0001/2651] KVM: SVM: Add a vCPU-aware helper to get supported DEBUGCTL bits Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0003/2651] 9p/xen: drain response work after unbinding IRQ Greg Kroah-Hartman
                   ` (189 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Bill Wendling, Stefan Teodorescu,
	Sean Christopherson, Paolo Bonzini, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Sean Christopherson <seanjc@google.com>

[ Upstream commit 053621535f014085c935879582dd3b65964a0dce ]

When doing RSM to L2, validate L1's state after copying it back into vmcb01
from SMRAM, as SMRAM is carved out of guest memory, i.e. is writable by the
guest.  Failure to validate L1's state is especially problematic for inputs
to MMU context, as KVM can end up with impossible CR4 vs. EFER state.  E.g.
without the recent hardening FNAME(walk_addr_generic), a guest can trigger:

  ------------[ cut here ]------------
  UBSAN: array-index-out-of-bounds in arch/x86/kvm/mmu/paging_tmpl.h:435:15
  index 3 is out of range for type 'u32 [2]'
  CPU: 3 UID: 0 PID: 92 Comm: CPU 1/KVM Not tainted 7.3.0-rc1 #2 PREEMPT(lazy)
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 04/01/2014
  Call Trace:
   <TASK>
   dump_stack_lvl+0x5f/0x90
   dump_stack+0x10/0x18
   ubsan_epilogue+0x9/0x39
   __ubsan_handle_out_of_bounds.cold+0x50/0x55
   paging32_walk_addr_generic+0x889/0x970
   paging32_page_fault+0x79/0xa60
   kvm_mmu_do_page_fault+0x125/0x270
   kvm_mmu_page_fault+0x88/0x7b0
   npf_interception+0xc8/0x220 [kvm_amd]
   svm_invoke_exit_handler+0x16d/0x1d0 [kvm_amd]
   svm_handle_exit+0xb7/0x160 [kvm_amd]
   vcpu_enter_guest+0x428/0x16a0
   kvm_arch_vcpu_ioctl_run+0x479/0x920
   kvm_vcpu_ioctl+0x316/0xb00
   __x64_sys_ioctl+0xa3/0x100
   x64_sys_call+0x281/0x23d0
   do_syscall_64+0xba/0x550
   entry_SYSCALL_64_after_hwframe+0x76/0x7e
  RIP: 0033:0x79bb30deb04b
   </TASK>
  ---[ end trace ]---

Fixes: 37be407b2ce8 ("KVM: nSVM: Fix L1 state corruption upon return from SMM")
Cc: stable@vger.kernel.org
Reported-by: Bill Wendling <morbo@google.com>
Reported-by: Stefan Teodorescu <fane@google.com>
Tested-by: Stefan Teodorescu <fane@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20261022021046.295001-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/x86/kvm/svm/nested.c | 23 ++++++++++++++++-------
 arch/x86/kvm/svm/svm.c    |  2 ++
 arch/x86/kvm/svm/svm.h    |  2 ++
 3 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c
index ae5688e5c7fb0..b0406f3f86e14 100644
--- a/arch/x86/kvm/svm/nested.c
+++ b/arch/x86/kvm/svm/nested.c
@@ -1878,6 +1878,21 @@ static void nested_copy_vmcb_cache_to_control(struct vmcb_control_area *dst,
 	/* 'clean' and 'hv_enlightenments' are not changed by KVM */
 }
 
+bool nested_svm_check_vmcb01_save(struct kvm_vcpu *vcpu,
+				  struct vmcb_save_area *save)
+{
+	struct vmcb_save_area_cached save_cached;
+
+	if (!(save->cr0 & X86_CR0_PG) ||
+	    !(save->cr0 & X86_CR0_PE) ||
+	    (save->rflags & X86_EFLAGS_VM) ||
+	    ((save->efer & EFER_LMA) && !(save->efer & EFER_LME)))
+		return false;
+
+	__nested_copy_vmcb_save_to_cache(&save_cached, save);
+	return nested_vmcb_check_save(vcpu, &save_cached, false);
+}
+
 static int svm_get_nested_state(struct kvm_vcpu *vcpu,
 				struct kvm_nested_state __user *user_kvm_nested_state,
 				u32 user_data_size)
@@ -1957,7 +1972,6 @@ static int svm_set_nested_state(struct kvm_vcpu *vcpu,
 		&user_kvm_nested_state->data.svm[0];
 	struct vmcb_control_area *ctl;
 	struct vmcb_save_area *save;
-	struct vmcb_save_area_cached save_cached;
 	struct vmcb_ctrl_area_cached ctl_cached;
 	bool use_separate_l2_pat;
 	unsigned long cr0;
@@ -2029,12 +2043,7 @@ static int svm_set_nested_state(struct kvm_vcpu *vcpu,
 	 * KVM_GET_NESTED_STATE, and (b) it is not loaded at emulated
 	 * #VMEXIT.
 	 */
-	__nested_copy_vmcb_save_to_cache(&save_cached, save);
-	if (!(save->cr0 & X86_CR0_PG) ||
-	    !(save->cr0 & X86_CR0_PE) ||
-	    (save->rflags & X86_EFLAGS_VM) ||
-	    ((save->efer & EFER_LMA) && !(save->efer & EFER_LME)) ||
-	    !nested_vmcb_check_save(vcpu, &save_cached, false))
+	if (!nested_svm_check_vmcb01_save(vcpu, save))
 		goto out_free;
 
 	/*
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
index bb8a14f21e3e5..ef1796aff6818 100644
--- a/arch/x86/kvm/svm/svm.c
+++ b/arch/x86/kvm/svm/svm.c
@@ -5105,6 +5105,8 @@ static int svm_leave_smm(struct kvm_vcpu *vcpu, const union kvm_smram *smram)
 	 */
 
 	svm_copy_vmrun_state(vcpu, &svm->vmcb01.ptr->save, m_save.map.hva + 0x400);
+	if (!nested_svm_check_vmcb01_save(vcpu, &svm->vmcb01.ptr->save))
+		return 1;
 
 	/*
 	 * Enter the nested guest now
diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h
index 2216988365593..0d1cc83007c19 100644
--- a/arch/x86/kvm/svm/svm.h
+++ b/arch/x86/kvm/svm/svm.h
@@ -905,6 +905,8 @@ void nested_copy_vmcb_control_to_cache(struct vcpu_svm *svm,
 void nested_copy_vmcb_save_to_cache(struct vcpu_svm *svm,
 				    struct vmcb_save_area *save);
 void nested_sync_control_from_vmcb02(struct vcpu_svm *svm);
+bool nested_svm_check_vmcb01_save(struct kvm_vcpu *vcpu,
+				  struct vmcb_save_area *save);
 void svm_switch_vmcb(struct vcpu_svm *svm, struct kvm_vmcb_info *target_vmcb);
 
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0003/2651] 9p/xen: drain response work after unbinding IRQ
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0001/2651] KVM: SVM: Add a vCPU-aware helper to get supported DEBUGCTL bits Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0002/2651] KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0004/2651] mm/shmem: hold off eviction in shmem_writeout() Greg Kroah-Hartman
                   ` (188 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Yizhou Zhao, Yuxiang Yang, Ao Wang,
	Xuewei Feng, Qi Li, Ke Xu, Dominique Martinet, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Yizhou Zhao <zhaoyz24@mails.tsinghua.edu.cn>

[ Upstream commit 7b6f2e3c29fb4d76f1e4973280792eabbd526602 ]

commit ea4f1009408e ("9p/xen : Fix use after free bug in
xen_9pfs_front_remove due to race condition") added cancel_work_sync()
to keep xen_9pfs_front_free() from freeing a ring while
p9_xen_response() is still running.

The work is currently drained before the event channel IRQ is unbound.
That leaves a race window where xen_9pfs_front_event_handler() can run
after cancel_work_sync() returns and queue p9_xen_response() again.  The
following unbind_from_irqhandler() synchronizes with the IRQ handler, but
it does not cancel work that the handler already queued.  The teardown
can then free the ring and private data while the response work remains
pending, and the worker later dereferences ring->priv and priv->client.

Unbind the event channel IRQ before draining the work.  Once the IRQ is
unbound, no new response work can be queued by the backend event channel,
and cancel_work_sync() waits for any work that was queued before or
during the unbind.  It is then safe to release the ring resources.

Fixes: ea4f1009408e ("9p/xen : Fix use after free bug in xen_9pfs_front_remove due to race condition")
Cc: stable@vger.kernel.org
Reported-by: Yizhou Zhao <zhaoyz24@mails.tsinghua.edu.cn>
Reported-by: Yuxiang Yang <yangyx22@mails.tsinghua.edu.cn>
Reported-by: Ao Wang <wangao@seu.edu.cn>
Reported-by: Xuewei Feng <fengxw06@126.com>
Reported-by: Qi Li <qli01@tsinghua.edu.cn>
Reported-by: Ke Xu <xuke@tsinghua.edu.cn>
Assisted-by: GLM:GLM-5.1
Signed-off-by: Yizhou Zhao <zhaoyz24@mails.tsinghua.edu.cn>
Message-ID: <20260609155202.1706-1-zhaoyz24@mails.tsinghua.edu.cn>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
[ sashal: Adjusted indentation to fit the existing if (priv->rings) cleanup wrapper for separately allocated rings. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 net/9p/trans_xen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/9p/trans_xen.c b/net/9p/trans_xen.c
index 71a4d276321e2..69a5129a9b64a 100644
--- a/net/9p/trans_xen.c
+++ b/net/9p/trans_xen.c
@@ -291,14 +291,14 @@ static void xen_9pfs_front_free(struct xen_9pfs_front_priv *priv)
 		for (i = 0; i < XEN_9PFS_NUM_RINGS; i++) {
 			struct xen_9pfs_dataring *ring = &priv->rings[i];
 
-			cancel_work_sync(&ring->work);
-
 			if (!ring->intf)
 				break;
 			if (ring->irq >= 0) {
 				unbind_from_irqhandler(ring->irq, ring);
 				ring->irq = -1;
 			}
+			cancel_work_sync(&ring->work);
+
 			if (ring->data.in) {
 				for (j = 0; j < (1 << ring->intf->ring_order);
 				     j++) {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0004/2651] mm/shmem: hold off eviction in shmem_writeout()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (2 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0003/2651] 9p/xen: drain response work after unbinding IRQ Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0005/2651] PCI/AER: Fix memory leak in aer_recover_work_func() when pci_dev is missing Greg Kroah-Hartman
                   ` (187 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Josef Bacik, Pedro Falcato,
	Kiryl Shutsemau (Meta), Nhat Pham, Baolin Wang,
	Gregory Price (Meta), David Hildenbrand (Arm), Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Josef Bacik <josef@toxicpanda.com>

[ Upstream commit 8f59173b5ca358bf4d1017b44da3cbe6faa80daf ]

Once shmem_writeout() has moved the folio from the page cache to the
swap cache, the folio lock no longer keeps the inode alive: truncation
and eviction find a swap entry, free it and do not wait for anybody.
That did not matter as long as swap_writeout() was the last thing the
function did.  But since it puts the folio back when swap_writeout()
returns AOP_WRITEPAGE_ACTIVATE, it uses the mapping and the inode
afterwards:

  reclaim                               last close of an unlinked file
  shmem_writeout()
    shmem_delete_from_page_cache()
    swap_writeout()
      zswap_store() fails               shmem_evict_inode()
      writeback is disabled               shmem_truncate_range()
      return AOP_WRITEPAGE_ACTIVATE         shmem_free_swap()
                                        destroy_inode()
                                        ... RCU grace period, freed
    shmem_add_to_page_cache(mapping)
      xas_lock_irq()            <- use after free

swap_writeout() behaves that way if zswap is enabled, cannot take the
folio and the memcg or one of its ancestors has memory.zswap.writeback
set to 0.

shmem_unuse() already added infrastructure to deal with that.
Reuse info->stop_eviction to protect the inode during writeout. Increment
it before removing the folio from the page cache, and decrement it after
swap_writeout() and any attempted reinsertion and inode accounting.
In shmem_evict_inode(), wait for the counter to reach zero even if
swapoff has already removed the inode from the swap list. Add some helpers
to make the code easier to digest.

There is a known remaining issue with two swapoffs racing, and the empty
list check not being able to detect that race. That will be addressed
separately later.

Fix generated by an LLM and sent by Josef Bacik in private.

Fixes: 6344a6d9ce13 ("mm/shmem: writeout free swap if swap_writeout() reactivates")
Cc: stable@vger.kernel.org
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Acked-by: Pedro Falcato <pfalcato@suse.de>
Acked-by: Kiryl Shutsemau (Meta) <kas@kernel.org>
Reviewed-by: Nhat Pham <nphamcs@gmail.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Tested-by: Baolin Wang <baolin.wang@linux.alibaba.com>
[ david: code cleanups; improve description ]
Tested-by: Gregory Price (Meta) <gourry@gourry.net>
Link: https://patch.msgid.link/20261029-fixes_shmem-v4-6-392fc715d8f6@kernel.org
Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
[ sashal: expanded upstream eviction helpers inline at their call sites to avoid adding new functions ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 mm/shmem.c | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/mm/shmem.c b/mm/shmem.c
index 597bbc2e7321a..eac9017cfb8d2 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -1447,16 +1447,21 @@ static void shmem_evict_inode(struct inode *inode)
 			}
 			spin_unlock(&sbinfo->shrinklist_lock);
 		}
-		while (!list_empty(&info->swaplist)) {
-			/* Wait while shmem_unuse() is scanning this inode... */
+		/*
+		 * Writeout may still use the inode after swapoff has removed it
+		 * from the swaplist, so always wait at least once.
+		 */
+		do {
 			wait_var_event(&info->stop_eviction,
 				       !atomic_read(&info->stop_eviction));
+			if (list_empty(&info->swaplist))
+				break;
 			spin_lock(&shmem_swaplist_lock);
 			/* ...but beware of the race if we peeked too early */
 			if (!atomic_read(&info->stop_eviction))
 				list_del_init(&info->swaplist);
 			spin_unlock(&shmem_swaplist_lock);
-		}
+		} while (!list_empty(&info->swaplist));
 	}
 
 	simple_xattrs_free(&sbinfo->xa_cache, &info->xattrs, sbinfo->max_inodes ? &freed : NULL);
@@ -1737,6 +1742,13 @@ int shmem_writeout(struct swap_io_ctx *ctx, struct folio *folio,
 			spin_unlock(&shmem_swaplist_lock);
 		}
 
+		/*
+		 * Once the folio has left the page cache, its lock no longer
+		 * keeps the inode from being evicted and freed: hold eviction
+		 * off, in case the folio has to be put back below.
+		 */
+		atomic_inc(&info->stop_eviction);
+
 		folio_dup_swap(folio, NULL);
 		shmem_delete_from_page_cache(folio, swp_to_radix_entry(folio->swap));
 
@@ -1744,6 +1756,8 @@ int shmem_writeout(struct swap_io_ctx *ctx, struct folio *folio,
 		error = swap_writeout(ctx, folio);
 		if (error != AOP_WRITEPAGE_ACTIVATE) {
 			/* folio has been unlocked */
+			if (atomic_dec_and_test(&info->stop_eviction))
+				wake_up_var(&info->stop_eviction);
 			return error;
 		}
 
@@ -1760,6 +1774,8 @@ int shmem_writeout(struct swap_io_ctx *ctx, struct folio *folio,
 			shmem_recalc_inode(inode, 0, -nr_pages);
 			folio_put_swap(folio, NULL);
 		}
+		if (atomic_dec_and_test(&info->stop_eviction))
+			wake_up_var(&info->stop_eviction);
 
 		/*
 		 * The swap_cache_del_folio() below could be left for
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0005/2651] PCI/AER: Fix memory leak in aer_recover_work_func() when pci_dev is missing
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (3 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0004/2651] mm/shmem: hold off eviction in shmem_writeout() Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0006/2651] mm: do not unintentionally overwrite atomic VMA flags Greg Kroah-Hartman
                   ` (186 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Priyank Rathod, Bjorn Helgaas,
	Kuppuswamy Sathyanarayanan, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Priyank Rathod <rathodpriyank@google.com>

[ Upstream commit d4c842c3af5bc52b3ca0b8a7f116114e43b6ba44 ]

When ACPI APEI/GHES processes PCIe AER error records, it allocates memory
for aer_capability_regs (entry.regs) from ghes_estatus_pool and queues the
entry into aer_recover_ring.

In aer_recover_work_func(), items are popped from aer_recover_ring via
kfifo_get(). If pci_get_domain_bus_and_slot() fails to find a matching
pci_dev, the code previously executed 'continue', bypassing the call to
ghes_estatus_pool_region_free(). As a result, the memory allocated for
entry.regs from ghes_estatus_pool was leaked.

This is reachable whenever the device reported by firmware is not (or is no
longer) present in the PCI device tree, e.g. after hot-removal or when
firmware reports an error for a device the kernel never enumerated.

Refactor aer_recover_work_func() to ensure ghes_estatus_pool_region_free()
is called unconditionally for every dequeued entry, releasing the pool
memory even when pci_dev is missing.

Fixes: e2abc47a5a1a ("ACPI: APEI: Fix AER info corruption when error status data has multiple sections")
Signed-off-by: Priyank Rathod <rathodpriyank@google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260928-b4-fix-aer-memleaks-v5-2-ba6b94c9c9a6@google.com
[ sashal: Combined the upstream pdev recovery guard with the existing err check to preserve false-alarm filtering. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/pci/pcie/aer.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c
index be332d3f106cb..490f096cfe91c 100644
--- a/drivers/pci/pcie/aer.c
+++ b/drivers/pci/pcie/aer.c
@@ -1369,14 +1369,13 @@ static void aer_recover_work_func(struct work_struct *work)
 	while (kfifo_get(&aer_recover_ring, &entry)) {
 		pdev = pci_get_domain_bus_and_slot(entry.domain, entry.bus,
 						   entry.devfn);
-		if (!pdev) {
+		if (!pdev)
 			pr_err_ratelimited("%04x:%02x:%02x.%x: no pci_dev found\n",
 					   entry.domain, entry.bus,
 					   PCI_SLOT(entry.devfn),
 					   PCI_FUNC(entry.devfn));
-			continue;
-		}
-		pci_print_aer(pdev, entry.severity, entry.regs);
+		else
+			pci_print_aer(pdev, entry.severity, entry.regs);
 
 		regs = entry.regs;
 		if (entry.severity == AER_CORRECTABLE)
@@ -1394,7 +1393,7 @@ static void aer_recover_work_func(struct work_struct *work)
 		ghes_estatus_pool_region_free((unsigned long)entry.regs,
 					    sizeof(struct aer_capability_regs));
 
-		if (err) {
+		if (pdev && err) {
 			if (entry.severity == AER_NONFATAL)
 				pcie_do_recovery(pdev, pci_channel_io_normal,
 						 aer_root_reset);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0006/2651] mm: do not unintentionally overwrite atomic VMA flags
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (4 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0005/2651] PCI/AER: Fix memory leak in aer_recover_work_func() when pci_dev is missing Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0007/2651] ocfs2/cluster: hold a reference on the heartbeat thread Greg Kroah-Hartman
                   ` (185 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Lorenzo Stoakes (ARM), Andrew Morton,
	David Hildenbrand (Arm), Pedro Falcato, Gregory Price (Meta),
	Liam R. Howlett, Vlastimil Babka, Mike Rapoport,
	Suren Baghdasaryan, Michal Hocko, Jann Horn, Davidlohr Bueso,
	SJ Park, Kees Cook, Colin Cross, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Lorenzo Stoakes (ARM) <ljs@kernel.org>

[ Upstream commit 13fc99f46399c9d38d1b54ecf0a3f387ba04d05d ]

Patch series "mm: avoid losing atomic VMA flags", v1.

Since commit 2ab7f1bbafc9 ("mm/madvise: allow guard page install/remove
under VMA lock"), VMA_MAYBE_GUARD_BIT can be set atomically under the VMA
read lock.

However, a number of places wrongly assume the flags are stable under the
read lock, which can cause stale atomic VMA flags to overwrite existing
valid ones.

Additionally, one case in which VMA_SOFTDIRTY_BIT was overwritten is also
addressed.

This series addresses each of these, while keeping the logic inline with
existing conventions.

Each patch in this series is a hotfix.

This patch (of 4):

madvise, mlock and mprotect take a copy of a VMA's flags holding only the
VMA read lock, later writing it back under the write lock (in
madvise_update_vma(), mlock_fixup(), mlock_vma_pages_range() and
mprotect_fixup()).

This was done on the assumption that VMA flags cannot change with a read
lock held.

However this changed in commit 2ab7f1bbafc9 ("mm/madvise: allow guard page
install/remove under VMA lock"), which allowed VM_ATOMIC_SET_ALLOWED
flags (currently only VMA_MAYBE_GUARD_BIT) to be written concurrently under
a VMA read lock.

The actual write itself is safe as this is done under the VMA write lock
at which point no further concurrent writes can occur, however at this
point the stale flags mean that these callers can unintentionally overwrite
atomic flags incorrectly.

The consequences of this are significant - a missing VMA_MAYBE_GUARD_BIT
could result in page tables not being copied on fork (the vma_needs_copy()
check can return false) or being overwritten on file-backed THP
collapse (the file_backed_vma_is_retractable() can return true).

Resolve the issue by always taking care to retain existing atomic flags
when overwriting VMA flags, replacing the inconsistently named
vma_flags_reset_once() with vma_overwrite_flags() to do so, and always
invoking it when flags are overwritten like this.

Reads are a problem too - madvise, mlock and mprotect all compare VMA flags
without a VMA write lock held via vma_flags_same_pair().

This has more serious impact, as concurrent changes to atomic VMA flags can
cause two sets of VMA flags to be wrongly considered different.

For mprotect and madvise this causes a useless split, but mlock is impacted
more seriously as it can result in mm->locked_vm underflow.

Fix this by updating vma_flags_same_pair() to disregard
VM_ATOMIC_SET_ALLOWED VMAs - VMA equality is the same as VMA mergeability,
and atomic VMA flags are disregarded when comparing VMA flags for merge -
so this is justified semantically.

Additionally, remove the redundant vma_flags_same_mask() and the unused
vma_flags_same() as part of the change, and replace VM_ATOMIC_SET_ALLOWED
with VMA_ATOMIC_SET_ALLOWED, using the new VMA flag API.

Finally, update userland VMA tests to reflect the changes.

Link: https://lore.kernel.org/20261023-fix-vma-atomic-v1-0-8ff4fae1fc85@kernel.org
Link: https://lore.kernel.org/20261023-fix-vma-atomic-v1-1-8ff4fae1fc85@kernel.org
Fixes: 2ab7f1bbafc9 ("mm/madvise: allow guard page install/remove under VMA lock")
Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Pedro Falcato <pfalcato@suse.de>
Tested-by: Gregory Price (Meta) <gourry@gourry.net>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Jann Horn <jannh@google.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: SJ Park <sj@kernel.org>
Cc: Kees Cook <kees@kernel.org>
Cc: Colin Cross <ccross@google.com>
Cc: <stable@vger.kernel.org>
[ sashal: adapted mlock page-walk flag writes to the existing temporary VMA_IO_BIT protocol instead of walk_flags. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 include/linux/mm.h              | 166 ++++++++++++++++----------------
 mm/madvise.c                    |   4 +-
 mm/mlock.c                      |   6 +-
 mm/mprotect.c                   |   2 +-
 tools/testing/vma/include/dup.h |  76 +++++++++------
 tools/testing/vma/shared.h      |  16 +--
 6 files changed, 146 insertions(+), 124 deletions(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index dd09c438fa23e..cfdf0e3039563 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -622,7 +622,7 @@ enum {
 #define VMA_LOCKED_MASK	mk_vma_flags(VMA_LOCKED_BIT, VMA_LOCKONFAULT_BIT)
 
 /* These flags can be updated atomically via VMA/mmap read lock. */
-#define VM_ATOMIC_SET_ALLOWED VM_MAYBE_GUARD
+#define VMA_ATOMIC_SET_ALLOWED mk_vma_flags(VMA_MAYBE_GUARD_BIT)
 
 /* Arch-specific flags to clear when updating VM flags on protection change */
 #ifndef VM_ARCH_CLEAR
@@ -1019,22 +1019,6 @@ static inline void vm_flags_reset(struct vm_area_struct *vma,
 	vm_flags_init(vma, flags);
 }
 
-static inline void vma_flags_reset_once(struct vm_area_struct *vma,
-					vma_flags_t *flags)
-{
-	const unsigned long word = flags->__vma_flags[0];
-
-	/* It is assumed only the first system word must be written once. */
-	vma_flags_overwrite_word_once(&vma->flags, word);
-	/* The remainder can be copied normally. */
-	if (NUM_VMA_FLAG_BITS > BITS_PER_LONG) {
-		unsigned long *dst = &vma->flags.__vma_flags[1];
-		const unsigned long *src = &flags->__vma_flags[1];
-
-		bitmap_copy(dst, src, NUM_VMA_FLAG_BITS - BITS_PER_LONG);
-	}
-}
-
 static inline void vm_flags_set(struct vm_area_struct *vma,
 				vm_flags_t flags)
 {
@@ -1071,48 +1055,6 @@ static inline void vm_flags_mod(struct vm_area_struct *vma,
 	__vm_flags_mod(vma, set, clear);
 }
 
-static __always_inline bool __vma_atomic_valid_flag(struct vm_area_struct *vma,
-		vma_flag_t bit)
-{
-	const vm_flags_t mask = BIT((__force int)bit);
-
-	/* Only specific flags are permitted */
-	if (WARN_ON_ONCE(!(mask & VM_ATOMIC_SET_ALLOWED)))
-		return false;
-
-	return true;
-}
-
-/*
- * Set VMA flag atomically. Requires only VMA/mmap read lock. Only specific
- * valid flags are allowed to do this.
- */
-static __always_inline void vma_set_atomic_flag(struct vm_area_struct *vma,
-		vma_flag_t bit)
-{
-	unsigned long *bitmap = vma->flags.__vma_flags;
-
-	vma_assert_stabilised(vma);
-	if (__vma_atomic_valid_flag(vma, bit))
-		set_bit((__force int)bit, bitmap);
-}
-
-/*
- * Test for VMA flag atomically. Requires no locks. Only specific valid flags
- * are allowed to do this.
- *
- * This is necessarily racey, so callers must ensure that serialisation is
- * achieved through some other means, or that races are permissible.
- */
-static __always_inline bool vma_test_atomic_flag(struct vm_area_struct *vma,
-		vma_flag_t bit)
-{
-	if (__vma_atomic_valid_flag(vma, bit))
-		return test_bit((__force int)bit, &vma->vm_flags);
-
-	return false;
-}
-
 /* Set an individual VMA flag in flags, non-atomically. */
 static __always_inline void vma_flags_set_flag(vma_flags_t *flags,
 		vma_flag_t bit)
@@ -1334,34 +1276,24 @@ static __always_inline vma_flags_t vma_flags_diff_pair(const vma_flags_t *flags,
 	return dst;
 }
 
-/* Determine if flags and flags_other have precisely the same flags set. */
+/*
+ * Determine if flags and flags_other have precisely the same flags set,
+ * excluding atomic VMA flags.
+ */
 static __always_inline bool vma_flags_same_pair(const vma_flags_t *flags,
-						const vma_flags_t *flags_other)
+		const vma_flags_t *flags_other)
 {
-	const unsigned long *bitmap = flags->__vma_flags;
-	const unsigned long *bitmap_other = flags_other->__vma_flags;
-
-	return bitmap_equal(bitmap, bitmap_other, NUM_VMA_FLAG_BITS);
-}
+	vma_flags_t diff = vma_flags_diff_pair(flags, flags_other);
 
-/* Determine if flags and flags_other have precisely the same flags set.  */
-static __always_inline bool vma_flags_same_mask(const vma_flags_t *flags,
-						vma_flags_t flags_other)
-{
-	const unsigned long *bitmap = flags->__vma_flags;
-	const unsigned long *bitmap_other = flags_other.__vma_flags;
+	/*
+	 * Atomic VMA flags may be set concurrently under the VMA read lock, so
+	 * are disregarded for equality testing purposes.
+	 */
+	vma_flags_clear_mask(&diff, VMA_ATOMIC_SET_ALLOWED);
 
-	return bitmap_equal(bitmap, bitmap_other, NUM_VMA_FLAG_BITS);
+	return vma_flags_empty(&diff);
 }
 
-/*
- * Helper macro to determine if only the specific flags are set, e.g.:
- *
- * if (vma_flags_same(&flags, VMA_WRITE_BIT) { ... }
- */
-#define vma_flags_same(flags, ...) \
-	vma_flags_same_mask(flags, mk_vma_flags(__VA_ARGS__))
-
 /*
  * Test whether a specific flag in the VMA is set, e.g.:
  *
@@ -1468,6 +1400,78 @@ static __always_inline void vma_clear_flags_mask(struct vm_area_struct *vma,
 #define vma_clear_flags(vma, ...) \
 	vma_clear_flags_mask(vma, mk_vma_flags(__VA_ARGS__))
 
+static __always_inline bool __vma_atomic_valid_flag(struct vm_area_struct *vma,
+		vma_flag_t bit)
+{
+	const vma_flags_t mask = VMA_ATOMIC_SET_ALLOWED;
+
+	/* Is this flag allowed to be set atomically? */
+	if (WARN_ON_ONCE(!vma_flags_test(&mask, bit)))
+		return false;
+
+	return true;
+}
+
+/*
+ * Set VMA flag atomically. Requires only VMA/mmap read lock. Only specific
+ * valid flags are allowed to do this.
+ */
+static __always_inline void vma_set_atomic_flag(struct vm_area_struct *vma,
+		vma_flag_t bit)
+{
+	unsigned long *bitmap = vma->flags.__vma_flags;
+
+	vma_assert_stabilised(vma);
+	if (__vma_atomic_valid_flag(vma, bit))
+		set_bit((__force int)bit, bitmap);
+}
+
+/*
+ * Test for VMA flag atomically. Requires no locks. Only specific valid flags
+ * are allowed to do this.
+ *
+ * This is necessarily racey, so callers must ensure that serialisation is
+ * achieved through some other means, or that races are permissible.
+ */
+static __always_inline bool vma_test_atomic_flag(struct vm_area_struct *vma,
+		vma_flag_t bit)
+{
+	if (__vma_atomic_valid_flag(vma, bit))
+		return test_bit((__force int)bit, &vma->vm_flags);
+
+	return false;
+}
+
+/*
+ * Overwrite the VMA's flags with new ones, preserving atomic VMA flags in the
+ * process. The write is done once and once only.
+ */
+static inline void vma_overwrite_flags(struct vm_area_struct *vma,
+		vma_flags_t new_flags)
+{
+	vma_flags_t atomic;
+
+	vma_assert_write_locked(vma);
+
+	/*
+	 * Preserve the VMA's atomic flags, which are kept stable by the VMA
+	 * write lock.
+	 */
+	atomic = vma_flags_and_mask(&vma->flags, VMA_ATOMIC_SET_ALLOWED);
+	vma_flags_clear_mask(&new_flags, VMA_ATOMIC_SET_ALLOWED);
+	vma_flags_set_mask(&new_flags, atomic);
+
+	/* It is assumed only the first system word must be written once. */
+	vma_flags_overwrite_word_once(&vma->flags, new_flags.__vma_flags[0]);
+	/* The remainder can be copied normally. */
+	if (NUM_VMA_FLAG_BITS > BITS_PER_LONG) {
+		unsigned long *dst = &vma->flags.__vma_flags[1];
+		const unsigned long *src = &new_flags.__vma_flags[1];
+
+		bitmap_copy(dst, src, NUM_VMA_FLAG_BITS - BITS_PER_LONG);
+	}
+}
+
 /*
  * Test whether a specific VMA flag is set in a VMA descriptor, e.g.:
  *
diff --git a/mm/madvise.c b/mm/madvise.c
index 222c10eb61eb4..9d64e15dfdb48 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -158,7 +158,7 @@ static int madvise_update_vma(vm_flags_t new_flags,
 	bool set_new_anon_name = madv_behavior->behavior == __MADV_SET_ANON_VMA_NAME;
 	VMA_ITERATOR(vmi, madv_behavior->mm, range->start);
 
-	if (vma_flags_same_mask(&vma->flags, new_vma_flags) &&
+	if (vma_flags_same_pair(&vma->flags, &new_vma_flags) &&
 	    (!set_new_anon_name ||
 	     anon_vma_name_eq(anon_vma_name(vma), anon_name)))
 		return 0;
@@ -177,7 +177,7 @@ static int madvise_update_vma(vm_flags_t new_flags,
 
 	/* vm_flags is protected by the mmap_lock held in write mode. */
 	vma_start_write(vma);
-	vma->flags = new_vma_flags;
+	vma_overwrite_flags(vma, new_vma_flags);
 	/*
 	 * If the vma become good for khugepaged to scan,
 	 * register it here without waiting a page fault that
diff --git a/mm/mlock.c b/mm/mlock.c
index 4fb43cddafa84..d88683ca2a6fe 100644
--- a/mm/mlock.c
+++ b/mm/mlock.c
@@ -443,7 +443,7 @@ static void mlock_vma_pages_range(struct vm_area_struct *vma,
 	if (vma_flags_test(new_vma_flags, VMA_LOCKED_BIT))
 		vma_flags_set(new_vma_flags, VMA_IO_BIT);
 	vma_start_write(vma);
-	vma_flags_reset_once(vma, new_vma_flags);
+	vma_overwrite_flags(vma, *new_vma_flags);
 
 	lru_add_drain();
 	walk_page_range_vma(vma, start, end, &mlock_walk_ops, NULL);
@@ -451,7 +451,7 @@ static void mlock_vma_pages_range(struct vm_area_struct *vma,
 
 	if (vma_flags_test(new_vma_flags, VMA_IO_BIT)) {
 		vma_flags_clear(new_vma_flags, VMA_IO_BIT);
-		vma_flags_reset_once(vma, new_vma_flags);
+		vma_overwrite_flags(vma, *new_vma_flags);
 	}
 }
 
@@ -507,7 +507,7 @@ static int mlock_fixup(struct vma_iterator *vmi, struct vm_area_struct *vma,
 	    vma_flags_test(&old_vma_flags, VMA_LOCKED_BIT)) {
 		/* No work to do, and mlocking twice would be wrong */
 		vma_start_write(vma);
-		vma->flags = *new_vma_flags;
+		vma_overwrite_flags(vma, *new_vma_flags);
 	} else {
 		mlock_vma_pages_range(vma, start, end, new_vma_flags);
 	}
diff --git a/mm/mprotect.c b/mm/mprotect.c
index 2888ee638d872..e923a3bf4f680 100644
--- a/mm/mprotect.c
+++ b/mm/mprotect.c
@@ -834,7 +834,7 @@ mprotect_fixup(struct vma_iterator *vmi, struct mmu_gather *tlb,
 	 * held in write mode.
 	 */
 	vma_start_write(vma);
-	vma_flags_reset_once(vma, &new_vma_flags);
+	vma_overwrite_flags(vma, new_vma_flags);
 	if (vma_wants_manual_pte_write_upgrade(vma))
 		mm_cp_flags |= MM_CP_TRY_CHANGE_WRITABLE;
 	vma_set_page_prot(vma);
diff --git a/tools/testing/vma/include/dup.h b/tools/testing/vma/include/dup.h
index b5abd7802d7d1..fc9c920fb8061 100644
--- a/tools/testing/vma/include/dup.h
+++ b/tools/testing/vma/include/dup.h
@@ -374,6 +374,9 @@ enum {
 
 #define VMA_LOCKED_MASK	mk_vma_flags(VMA_LOCKED_BIT, VMA_LOCKONFAULT_BIT)
 
+/* These flags can be updated atomically via VMA/mmap read lock. */
+#define VMA_ATOMIC_SET_ALLOWED mk_vma_flags(VMA_MAYBE_GUARD_BIT)
+
 #define RLIMIT_STACK		3	/* max stack size */
 #define RLIMIT_MEMLOCK		8	/* max locked-in-memory address space */
 
@@ -899,22 +902,6 @@ static inline void vm_flags_reset(struct vm_area_struct *vma,
 	vm_flags_init(vma, flags);
 }
 
-static inline void vma_flags_reset_once(struct vm_area_struct *vma,
-					vma_flags_t *flags)
-{
-	const unsigned long word = flags->__vma_flags[0];
-
-	/* It is assumed only the first system word must be written once. */
-	vma_flags_overwrite_word_once(&vma->flags, word);
-	/* The remainder can be copied normally. */
-	if (NUM_VMA_FLAG_BITS > BITS_PER_LONG) {
-		unsigned long *dst = &vma->flags.__vma_flags[1];
-		const unsigned long *src = &flags->__vma_flags[1];
-
-		bitmap_copy(dst, src, NUM_VMA_FLAG_BITS - BITS_PER_LONG);
-	}
-}
-
 static inline void vm_flags_set(struct vm_area_struct *vma,
 				vm_flags_t flags)
 {
@@ -1041,27 +1028,24 @@ static __always_inline vma_flags_t vma_flags_diff_pair(const vma_flags_t *flags,
 	return dst;
 }
 
+/*
+ * Determine if flags and flags_other have precisely the same flags set,
+ * excluding atomic VMA flags.
+ */
 static __always_inline bool vma_flags_same_pair(const vma_flags_t *flags,
-						const vma_flags_t *flags_other)
+		const vma_flags_t *flags_other)
 {
-	const unsigned long *bitmap = flags->__vma_flags;
-	const unsigned long *bitmap_other = flags_other->__vma_flags;
-
-	return bitmap_equal(bitmap, bitmap_other, NUM_VMA_FLAG_BITS);
-}
+	vma_flags_t diff = vma_flags_diff_pair(flags, flags_other);
 
-static __always_inline bool vma_flags_same_mask(const vma_flags_t *flags,
-						vma_flags_t flags_other)
-{
-	const unsigned long *bitmap = flags->__vma_flags;
-	const unsigned long *bitmap_other = flags_other.__vma_flags;
+	/*
+	 * Atomic VMA flags may be set concurrently under the VMA read lock, so
+	 * are disregarded for equality testing purposes.
+	 */
+	vma_flags_clear_mask(&diff, VMA_ATOMIC_SET_ALLOWED);
 
-	return bitmap_equal(bitmap, bitmap_other, NUM_VMA_FLAG_BITS);
+	return vma_flags_empty(&diff);
 }
 
-#define vma_flags_same(flags, ...) \
-	vma_flags_same_mask(flags, mk_vma_flags(__VA_ARGS__))
-
 static __always_inline bool vma_test(const struct vm_area_struct *vma,
 		vma_flag_t bit)
 {
@@ -1110,6 +1094,36 @@ static __always_inline void vma_clear_flags_mask(struct vm_area_struct *vma,
 #define vma_clear_flags(vma, ...) \
 	vma_clear_flags_mask(vma, mk_vma_flags(__VA_ARGS__))
 
+/*
+ * Overwrite the VMA's flags with new ones, preserving atomic VMA flags in the
+ * process. The write is done once and once only.
+ */
+static inline void vma_overwrite_flags(struct vm_area_struct *vma,
+				       vma_flags_t new_flags)
+{
+	vma_flags_t atomic;
+
+	vma_assert_write_locked(vma);
+
+	/*
+	 * Preserve the VMA's atomic flags, which are kept stable by the VMA
+	 * write lock.
+	 */
+	atomic = vma_flags_and_mask(&vma->flags, VMA_ATOMIC_SET_ALLOWED);
+	vma_flags_clear_mask(&new_flags, VMA_ATOMIC_SET_ALLOWED);
+	vma_flags_set_mask(&new_flags, atomic);
+
+	/* It is assumed only the first system word must be written once. */
+	vma_flags_overwrite_word_once(&vma->flags, new_flags.__vma_flags[0]);
+	/* The remainder can be copied normally. */
+	if (NUM_VMA_FLAG_BITS > BITS_PER_LONG) {
+		unsigned long *dst = &vma->flags.__vma_flags[1];
+		const unsigned long *src = &new_flags.__vma_flags[1];
+
+		bitmap_copy(dst, src, NUM_VMA_FLAG_BITS - BITS_PER_LONG);
+	}
+}
+
 static __always_inline bool vma_desc_test(const struct vm_area_desc *desc,
 		vma_flag_t bit)
 {
diff --git a/tools/testing/vma/shared.h b/tools/testing/vma/shared.h
index 97cd7a679dc19..646edf367d7c4 100644
--- a/tools/testing/vma/shared.h
+++ b/tools/testing/vma/shared.h
@@ -51,17 +51,21 @@
 		      __TO_SCALAR(__val1), __TO_SCALAR(__val2)); \
 	} while (0)
 
-#define ASSERT_FLAGS_SAME_MASK(_flags, _flags_other) \
-	ASSERT_TRUE(vma_flags_same_mask((_flags), (_flags_other)))
+#define ASSERT_FLAGS_SAME_MASK(_flags, _flags_other) do {		\
+	const vma_flags_t __flags_other = (_flags_other);		\
+	ASSERT_TRUE(vma_flags_same_pair((_flags), &__flags_other));	\
+	} while (0)
 
-#define ASSERT_FLAGS_NOT_SAME_MASK(_flags, _flags_other) \
-	ASSERT_FALSE(vma_flags_same_mask((_flags), (_flags_other)))
+#define ASSERT_FLAGS_NOT_SAME_MASK(_flags, _flags_other) do {		\
+	const vma_flags_t __flags_other = (_flags_other);		\
+	ASSERT_FALSE(vma_flags_same_pair((_flags), &__flags_other));	\
+	} while (0)
 
 #define ASSERT_FLAGS_SAME(_flags, ...) \
-	ASSERT_TRUE(vma_flags_same(_flags, __VA_ARGS__))
+	ASSERT_FLAGS_SAME_MASK(_flags, mk_vma_flags(__VA_ARGS__))
 
 #define ASSERT_FLAGS_NOT_SAME(_flags, ...) \
-	ASSERT_FALSE(vma_flags_same(_flags, __VA_ARGS__))
+	ASSERT_FLAGS_NOT_SAME_MASK(_flags, mk_vma_flags(__VA_ARGS__))
 
 #define ASSERT_FLAGS_EMPTY(_flags) \
 	ASSERT_TRUE(vma_flags_empty(_flags))
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0007/2651] ocfs2/cluster: hold a reference on the heartbeat thread
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (5 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0006/2651] mm: do not unintentionally overwrite atomic VMA flags Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0008/2651] ocfs2/heartbeat: serialize concurrent writes to a regions dev attribute Greg Kroah-Hartman
                   ` (184 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Karl Mehltretter, Andrew Morton,
	Sashiko, Joseph Qi, Mark Fasheh, Joel Becker, Cen Zhang,
	Junxiao Bi, Heming Zhao, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Karl Mehltretter <kmehltretter@gmail.com>

[ Upstream commit aa2e38aabaae87236290e486a2b77cfa3adfbebe ]

Since commit 688bc88e2046 ("ocfs2/cluster: keep heartbeat local node
stable"), o2hb_thread() leaves its loop and returns when the local node
changes, for example after "echo 0 > node/<name>/local".  The thread was
started with kthread_run() and nothing holds a reference to its
task_struct, so the task is freed once it exits, while reg->hr_task still
points to it.

Reading the region's pid attribute then reads the freed task, and removing
the region calls kthread_stop() on it:

  BUG: KASAN: slab-use-after-free in o2hb_region_pid_show+0xb3/0xc0
  refcount_t: addition on 0; use-after-free.
  Oops: Oops: 0000 [#1] SMP KASAN NOPTI
  RIP: 0010:kthread_stop+0xb1/0x390

The thread could already return by itself before, when heartbeat start was
aborted or on an unclean stop, but the local node change makes it
reachable from userspace at any time.

Create the thread, take a reference on it and only then wake it, so the
reference cannot race with the thread exiting.  Drop it with
kthread_stop_put().

Link: https://lore.kernel.org/20260923010149.14391-1-kmehltretter@gmail.com
Fixes: 688bc88e2046 ("ocfs2/cluster: keep heartbeat local node stable")
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/patchset/20260616074931.3774929-1-zzzccc427%40gmail.com
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Assisted-by: LLM
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Cen Zhang <zzzccc427@gmail.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Heming Zhao <heming.zhao@suse.com>
Stable-dep-of: 0a8f258c0f01 ("ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/ocfs2/cluster/heartbeat.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
index dbc146717e8f3..b45adc39aacca 100644
--- a/fs/ocfs2/cluster/heartbeat.c
+++ b/fs/ocfs2/cluster/heartbeat.c
@@ -1971,18 +1971,22 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
 	atomic_set(&reg->hr_unsteady_iterations, (live_threshold * 3));
 	o2hb_set_region_stopping(reg, false);
 
-	hb_task = kthread_run(o2hb_thread, reg, "o2hb-%s",
-			      reg->hr_item.ci_name);
+	hb_task = kthread_create(o2hb_thread, reg, "o2hb-%s",
+				 reg->hr_item.ci_name);
 	if (IS_ERR(hb_task)) {
 		ret = PTR_ERR(hb_task);
 		mlog_errno(ret);
 		goto out;
 	}
+	/* The thread may exit on its own, so pin it before it can run. */
+	get_task_struct(hb_task);
 
 	spin_lock(&o2hb_live_lock);
 	reg->hr_task = hb_task;
 	spin_unlock(&o2hb_live_lock);
 
+	wake_up_process(hb_task);
+
 	ret = wait_event_interruptible(o2hb_steady_queue,
 				atomic_read(&reg->hr_steady_iterations) == 0 ||
 				reg->hr_node_deleted);
@@ -2027,7 +2031,7 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
 		spin_unlock(&o2hb_live_lock);
 
 		if (hb_task)
-			kthread_stop(hb_task);
+			kthread_stop_put(hb_task);
 
 		o2hb_unmap_slot_data(reg);
 
@@ -2221,7 +2225,7 @@ static void o2hb_heartbeat_group_drop_item(struct config_group *group,
 	spin_unlock(&o2hb_live_lock);
 
 	if (hb_task)
-		kthread_stop(hb_task);
+		kthread_stop_put(hb_task);
 
 	if (o2hb_global_heartbeat_active()) {
 		spin_lock(&o2hb_live_lock);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0008/2651] ocfs2/heartbeat: serialize concurrent writes to a regions dev attribute
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (6 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0007/2651] ocfs2/cluster: hold a reference on the heartbeat thread Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0009/2651] platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively Greg Kroah-Hartman
                   ` (183 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Eklavya Singh, Andrew Morton,
	syzbot+5d4e96acd0febccb5e87, Joseph Qi, Mark Fasheh, Joel Becker,
	Heming Zhao, Deepanshu Kartikey, Cen Zhang, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Eklavya Singh <eklavyasingh2106@gmail.com>

[ Upstream commit 0a8f258c0f012314c36b9e4818cdc0178c68f891 ]

o2hb_region_dev_store() checks reg->hr_bdev_file to see if the region
is already started, but nothing stops two writers from doing that at
the same time. configfs only serializes writes through the same open
file, so two processes that each open the dev attribute can both get
past the check:

  A: hr_bdev_file is NULL, opens file A, sets hr_bdev_file = A
  B: hr_bdev_file is NULL, opens file B, sets hr_bdev_file = B
  A: start fails, fput(hr_bdev_file) drops B, sets it to NULL
  B: start fails, fput(NULL)

Both calls also use the same hr_slots, hr_slot_data and hr_tmp_block,
so the error paths can free the slot data twice.

syzbot hit the fput(NULL) with an unbound loop device, where every
start fails with -EIO. With four threads doing the same thing on a
KASAN kernel I get both crashes within a second:

  BUG: KASAN: double-free in o2hb_unmap_slot_data+0x14d/0x2f0
  BUG: kernel NULL pointer dereference, address: 0000000000000158

Add a mutex to the region and hold it in dev_store(), in the
block_bytes, start_block and blocks stores, and in dev_show(), since
they all look at hr_bdev_file. dev_store() cleans up with goto, so it
takes the mutex in a small wrapper rather than with guard(). The mutex
is dropped while dev_store() waits for the heartbeat to become steady,
which takes seconds, so a read of dev doesn't stall behind a start.
hr_bdev_file is already set at that point, so other writers still get
-EINVAL, and the cleanup after the wait retakes the mutex.

With the patch the same test ran for 10 minutes with lockdep on and
nothing was reported. So did a second one, with a working loop device,
that interrupts starts during the wait while other threads read and
write the attributes.

Link: https://lore.kernel.org/20261020212339.46591-1-eklavyasingh2106@gmail.com
Fixes: a7f6a5fb4bde ("[PATCH] OCFS2: The Second Oracle Cluster Filesystem")
Signed-off-by: Eklavya Singh <eklavyasingh2106@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reported-by: <syzbot+5d4e96acd0febccb5e87@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=5d4e96acd0febccb5e87
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Heming Zhao <heming.zhao@suse.com>
Cc: Deepanshu Kartikey <kartikey406@gmail.com>
Cc: Cen Zhang <zzzccc427@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/ocfs2/cluster/heartbeat.c | 40 ++++++++++++++++++++++++++++++------
 1 file changed, 34 insertions(+), 6 deletions(-)

diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
index b45adc39aacca..7a18e71b507b3 100644
--- a/fs/ocfs2/cluster/heartbeat.c
+++ b/fs/ocfs2/cluster/heartbeat.c
@@ -269,6 +269,8 @@ struct o2hb_region {
 	struct list_head	hr_handler_list;
 	/* Serializes timeout arming against failed-start and teardown. */
 	struct mutex		hr_arming_mutex;
+	/* Serializes the dev, block_bytes, start_block and blocks attributes. */
+	struct mutex		hr_dev_mutex;
 	bool			hr_stopping;
 
 	/* last hb status, 0 for success, other value for error. */
@@ -1681,6 +1683,7 @@ static ssize_t o2hb_region_block_bytes_store(struct config_item *item,
 	unsigned long block_bytes;
 	unsigned int block_bits;
 
+	guard(mutex)(&reg->hr_dev_mutex);
 	if (reg->hr_bdev_file)
 		return -EINVAL;
 
@@ -1710,6 +1713,7 @@ static ssize_t o2hb_region_start_block_store(struct config_item *item,
 	char *p = (char *)page;
 	ssize_t ret;
 
+	guard(mutex)(&reg->hr_dev_mutex);
 	if (reg->hr_bdev_file)
 		return -EINVAL;
 
@@ -1736,6 +1740,7 @@ static ssize_t o2hb_region_blocks_store(struct config_item *item,
 	char *p = (char *)page;
 	int ret;
 
+	guard(mutex)(&reg->hr_dev_mutex);
 	if (reg->hr_bdev_file)
 		return -EINVAL;
 
@@ -1753,10 +1758,12 @@ static ssize_t o2hb_region_blocks_store(struct config_item *item,
 
 static ssize_t o2hb_region_dev_show(struct config_item *item, char *page)
 {
+	struct o2hb_region *reg = to_o2hb_region(item);
 	unsigned int ret = 0;
 
-	if (to_o2hb_region(item)->hr_bdev_file)
-		ret = sprintf(page, "%pg\n", reg_bdev(to_o2hb_region(item)));
+	guard(mutex)(&reg->hr_dev_mutex);
+	if (reg->hr_bdev_file)
+		ret = sprintf(page, "%pg\n", reg_bdev(reg));
 
 	return ret;
 }
@@ -1872,11 +1879,9 @@ static int o2hb_populate_slot_data(struct o2hb_region *reg)
  * this is acting as commit; we set up all of hr_bdev_file and hr_task or
  * nothing
  */
-static ssize_t o2hb_region_dev_store(struct config_item *item,
-				     const char *page,
-				     size_t count)
+static ssize_t __o2hb_region_dev_store(struct o2hb_region *reg,
+				       const char *page, size_t count)
 {
-	struct o2hb_region *reg = to_o2hb_region(item);
 	struct task_struct *hb_task;
 	long fd;
 	int sectsize;
@@ -1884,6 +1889,8 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
 	ssize_t ret = -EINVAL;
 	int live_threshold;
 
+	lockdep_assert_held(&reg->hr_dev_mutex);
+
 	if (reg->hr_bdev_file)
 		return -EINVAL;
 
@@ -1987,9 +1994,15 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
 
 	wake_up_process(hb_task);
 
+	/*
+	 * Don't hold hr_dev_mutex across the wait, which can take seconds.
+	 * hr_bdev_file is already set, so other writers still get -EINVAL.
+	 */
+	mutex_unlock(&reg->hr_dev_mutex);
 	ret = wait_event_interruptible(o2hb_steady_queue,
 				atomic_read(&reg->hr_steady_iterations) == 0 ||
 				reg->hr_node_deleted);
+	mutex_lock(&reg->hr_dev_mutex);
 	if (ret) {
 		atomic_set(&reg->hr_steady_iterations, 0);
 		reg->hr_aborted_start = 1;
@@ -2041,6 +2054,20 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
 	return ret;
 }
 
+static ssize_t o2hb_region_dev_store(struct config_item *item,
+				     const char *page,
+				     size_t count)
+{
+	struct o2hb_region *reg = to_o2hb_region(item);
+	ssize_t ret;
+
+	mutex_lock(&reg->hr_dev_mutex);
+	ret = __o2hb_region_dev_store(reg, page, count);
+	mutex_unlock(&reg->hr_dev_mutex);
+
+	return ret;
+}
+
 static ssize_t o2hb_region_pid_show(struct config_item *item, char *page)
 {
 	struct o2hb_region *reg = to_o2hb_region(item);
@@ -2143,6 +2170,7 @@ static struct config_item *o2hb_heartbeat_group_make_item(struct config_group *g
 
 	INIT_LIST_HEAD(&reg->hr_all_item);
 	mutex_init(&reg->hr_arming_mutex);
+	mutex_init(&reg->hr_dev_mutex);
 	reg->hr_stopping = true;
 	INIT_DELAYED_WORK(&reg->hr_write_timeout_work, o2hb_write_timeout);
 	INIT_DELAYED_WORK(&reg->hr_nego_timeout_work, o2hb_nego_timeout);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0009/2651] platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (7 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0008/2651] ocfs2/heartbeat: serialize concurrent writes to a regions dev attribute Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0010/2651] mm/userfaultfd: wake waiters when registration modes are removed Greg Kroah-Hartman
                   ` (182 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Ali Ahmet Memiş, Rong Zhang,
	Rafael J. Wysocki, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Ali Ahmet Memiş <aliamemis@disroot.org>

[ Upstream commit f91c2cd6dbcedf52e227b2eea8d7b99ecbac7552 ]

On some Lenovo IdeaPad and Yoga models, the battery _BIX takes the EC
AML mutex and then calls the serialized RDER through RDIF, while GBMD
calls RDER first and then takes the EC mutex. When the two run
interleaved they deadlock until the mutex acquisition in RDER times
out, and GBMD returns garbage that is reported as both charge types
being enabled.

Evaluate all methods with the exclusive helpers, so that GBMD never runs
interleaved with the battery methods.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=221065
Link: https://lore.kernel.org/all/58586fa666f09c209f9d7fe8c692a8bdda6d4410.camel@rong.moe/
Signed-off-by: Ali Ahmet Memiş <aliamemis@disroot.org>
Reviewed-by: Rong Zhang <i@rong.moe>
Cc: All applicable <stable@vger.kernel.org> # 80892972ff23 ACPI: utils: Add exclusive AML evaluation helpers
Link: https://patch.msgid.link/20261018122348.679126-1-aliamemis@disroot.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/platform/x86/lenovo/ideapad-laptop.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/lenovo/ideapad-laptop.c b/drivers/platform/x86/lenovo/ideapad-laptop.c
index 8213524504eeb..1335f4e488702 100644
--- a/drivers/platform/x86/lenovo/ideapad-laptop.c
+++ b/drivers/platform/x86/lenovo/ideapad-laptop.c
@@ -297,12 +297,16 @@ static void ideapad_shared_exit(struct ideapad_private *priv)
 #define IDEAPAD_EC_POLL_MIN_US 150
 #define IDEAPAD_EC_POLL_MAX_US 300
 
+/*
+ * On some models GBMD and the battery _BIX take the EC mutex and a
+ * serialized method in opposite order, so evaluate all methods exclusively.
+ */
 static int eval_int(acpi_handle handle, const char *name, unsigned long *res)
 {
 	unsigned long long result;
 	acpi_status status;
 
-	status = acpi_evaluate_integer(handle, (char *)name, NULL, &result);
+	status = acpi_evaluate_integer_exclusive(handle, (char *)name, NULL, &result);
 	if (ACPI_FAILURE(status))
 		return -EIO;
 
@@ -324,7 +328,7 @@ static int eval_int_with_arg(acpi_handle handle, const char *name, unsigned long
 	in_obj.type = ACPI_TYPE_INTEGER;
 	in_obj.integer.value = arg;
 
-	status = acpi_evaluate_integer(handle, (char *)name, &params, &result);
+	status = acpi_evaluate_integer_exclusive(handle, (char *)name, &params, &result);
 	if (ACPI_FAILURE(status))
 		return -EIO;
 
@@ -336,7 +340,7 @@ static int eval_int_with_arg(acpi_handle handle, const char *name, unsigned long
 
 static int exec_simple_method(acpi_handle handle, const char *name, unsigned long arg)
 {
-	acpi_status status = acpi_execute_simple_method(handle, (char *)name, arg);
+	acpi_status status = acpi_execute_simple_method_exclusive(handle, (char *)name, arg);
 
 	return ACPI_FAILURE(status) ? -EIO : 0;
 }
@@ -394,7 +398,7 @@ static int eval_vpcw(acpi_handle handle, unsigned long cmd, unsigned long data)
 	in_obj[1].type = ACPI_TYPE_INTEGER;
 	in_obj[1].integer.value = data;
 
-	status = acpi_evaluate_object(handle, "VPCW", &params, NULL);
+	status = acpi_evaluate_object_exclusive(handle, "VPCW", &params, NULL);
 	if (ACPI_FAILURE(status))
 		return -EIO;
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0010/2651] mm/userfaultfd: wake waiters when registration modes are removed
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (8 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0009/2651] platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0011/2651] scsi: ufs: core: Change the error check sequence for auto hibern8 Greg Kroah-Hartman
                   ` (181 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Gregory Price (Meta),
	Mike Rapoport (Microsoft), Lorenzo Stoakes (ARM),
	Muhammad Usama Anjum, David Hildenbrand (Arm), Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: David Hildenbrand (Arm) <david@kernel.org>

[ Upstream commit 4eee9c389b072e161549d46dcb1ae10b0222717e ]

UFFDIO_REGISTER can replace MISSING or MINOR tracking without waking
faults that are already queued. For example, switching an anonymous
range from MISSING to WP leaves a missing-fault waiter asleep until
userspace explicitly wakes it.

When a registration change removes a UFFD mode, wake waiters in the
affected interval after updating the VMA. The VMA is write-locked at
this point, so no new faults can queue under the old modes and woken
threads cannot retry until mmap_write_unlock(). Waiters for retained
modes in the same interval may also wake and refault.

The hang reproduces for MISSING-to-WP and MINOR-to-MISSING transitions,
with both read and unread fault events.

Fixes: 63b2d4174c4a ("userfaultfd: wp: add the writeprotect API to userfaultfd ioctl")
Cc: stable@vger.kernel.org
Reviewed-by: Gregory Price (Meta) <gourry@gourry.net>
Tested-by: Gregory Price (Meta) <gourry@gourry.net>
Signed-off-by: Gregory Price (Meta) <gourry@gourry.net>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Tested-by: Muhammad Usama Anjum <usama.anjum@arm.com>
Link: https://patch.msgid.link/20261031-fixes_core-v3-25-d6437171ecc3@kernel.org
Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
[ sashal: Adjusted context to retain is_vm_hugetlb_page() instead of vma_is_hugetlb(). ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 mm/userfaultfd.c |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

--- a/mm/userfaultfd.c
+++ b/mm/userfaultfd.c
@@ -2286,6 +2286,9 @@ static struct vm_area_struct *userfaultf
 	return ret;
 }
 
+static void wake_userfault_range(struct userfaultfd_ctx *ctx,
+		unsigned long start, unsigned long end);
+
 /* Assumes mmap write lock taken, and mm_struct pinned. */
 static int userfaultfd_register_range(struct userfaultfd_ctx *ctx,
 			       struct vm_area_struct *vma,
@@ -2303,6 +2306,8 @@ static int userfaultfd_register_range(st
 		prev = vma;
 
 	for_each_vma_range(vmi, vma, end) {
+		const bool any_mode_removed = vma->vm_flags & __VM_UFFD_FLAGS & ~vm_flags;
+
 		cond_resched();
 
 		VM_WARN_ON_ONCE(!vma_can_userfault(vma, vm_flags, wp_async));
@@ -2348,6 +2353,10 @@ static int userfaultfd_register_range(st
 		 */
 		userfaultfd_set_ctx(vma, ctx, vm_flags);
 
+		/* Retry faults for removed modes while the VMA is write-locked. */
+		if (any_mode_removed)
+			wake_userfault_range(ctx, start, vma_end);
+
 		if (is_vm_hugetlb_page(vma) && uffd_disable_huge_pmd_share(vma))
 			hugetlb_unshare_all_pmds(vma);
 
@@ -3664,6 +3673,17 @@ static __always_inline void wake_userfau
 		__wake_userfault(ctx, range);
 }
 
+static void wake_userfault_range(struct userfaultfd_ctx *ctx,
+		unsigned long start, unsigned long end)
+{
+	struct userfaultfd_wake_range range = {
+		.start = start,
+		.len = end - start,
+	};
+
+	wake_userfault(ctx, &range);
+}
+
 static __always_inline int validate_unaligned_range(
 	struct mm_struct *mm, __u64 start, __u64 len)
 {



^ permalink raw reply	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0011/2651] scsi: ufs: core: Change the error check sequence for auto hibern8
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (9 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0010/2651] mm/userfaultfd: wake waiters when registration modes are removed Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0012/2651] net: mana: Introduce gdma_bus_ops for bus-specific operations Greg Kroah-Hartman
                   ` (180 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, HOYOUNG SEO, Stanley Jhu, Bean Huo,
	Bart Van Assche, Martin K. Petersen (Oracle), Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: HOYOUNG SEO <hy50.seo@samsung.com>

[ Upstream commit 6b2ff2b3eafa381db9b4c8a6ed98b353b2a09f39 ]

Auto-hibern8 enter and exit are performed by the host controller without a
UIC command, and the auto-hibern8 idle timer only runs while no UIC command
is outstanding. An auto-hibern8 error (IS.UHES or IS.UHXS) is therefore
usually reported while hba->active_uic_cmd is NULL.

Since commit fcd8b0450a9a ("scsi: ufs: core: Make ufshcd_uic_cmd_compl()
easier to analyze"), ufshcd_uic_cmd_compl() returns early when
hba->active_uic_cmd is NULL, before ufshcd_is_auto_hibern8_error() is
called. Such auto-hibern8 errors are no longer recorded in hba->errors, so
ufshcd_check_errors() is not called for them and the error handler is not
scheduled.

Check for auto-hibern8 errors before checking for an active UIC command, as
was done before that commit, but keep returning early when there is no
active UIC command so that a NULL cmd is never dereferenced. Only report
the missing UIC command if no auto-hibern8 error was found.

Fixes: fcd8b0450a9a ("scsi: ufs: core: Make ufshcd_uic_cmd_compl() easier to analyze")
Cc: stable@vger.kernel.org # v6.13+
Signed-off-by: HOYOUNG SEO <hy50.seo@samsung.com>
Reviewed-by: Stanley Jhu <stanleyjhu@google.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20261027110357.3649301-1-hy50.seo@samsung.com
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
[ sashal: Retained hba->host->host_lock without the address-of operator because host_lock is a pointer. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/ufs/core/ufshcd.c | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index dfbcf036d356c..490feaeee10b2 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -5876,18 +5876,26 @@ static irqreturn_t ufshcd_uic_cmd_compl(struct ufs_hba *hba, u32 intr_status)
 {
 	irqreturn_t retval = IRQ_NONE;
 	struct uic_command *cmd;
+	bool ah8_err;
 
 	guard(spinlock_irqsave)(hba->host->host_lock);
+
+	/*
+	 * Auto-hibern8 is performed without a UIC command, so check for
+	 * auto-hibern8 errors before checking for an active UIC command.
+	 */
+	ah8_err = ufshcd_is_auto_hibern8_error(hba, intr_status);
+	if (ah8_err)
+		hba->errors |= (UFSHCD_UIC_HIBERN8_MASK & intr_status);
+
 	cmd = hba->active_uic_cmd;
 	if (!cmd) {
-		dev_err(hba->dev,
-			"No active UIC command. Maybe a timeout occurred?\n");
+		if (!ah8_err)
+			dev_err(hba->dev,
+				"No active UIC command. Maybe a timeout occurred?\n");
 		return retval;
 	}
 
-	if (ufshcd_is_auto_hibern8_error(hba, intr_status))
-		hba->errors |= (UFSHCD_UIC_HIBERN8_MASK & intr_status);
-
 	if (intr_status & UIC_COMMAND_COMPL) {
 		/*
 		 * Store the UIC command result in the lowest byte of
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0012/2651] net: mana: Introduce gdma_bus_ops for bus-specific operations
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (10 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0011/2651] scsi: ufs: core: Change the error check sequence for auto hibern8 Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0013/2651] net: mana: Add support to process throttled EQEs Greg Kroah-Hartman
                   ` (179 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Manish Awasthi, Simon Horman,
	Haiyang Zhang, Jakub Kicinski, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Manish Awasthi <mawasthi@linux.microsoft.com>

[ Upstream commit c03e69c95a18e957dd461d60bd343e0488a986c4 ]

Introduce per-device gdma_bus_ops for interrupt allocation, IRQ lookup,
reset, servicing, and bus-specific capabilities. Route the shared GDMA
code through these callbacks and provide the PCI implementation.

Move common device bring-up and teardown into mana_gd_setup() and
mana_gd_cleanup(), including hardware-channel initialization, device
enumeration, interrupt-pool sizing, and servicing workqueue management.
Record the vPort count for transport-specific queue sizing and keep shared
IRQ context bookkeeping in the core.

This prepares the driver for additional bus transports without duplicating
the core or adding configuration checks throughout it.

Signed-off-by: Manish Awasthi <mawasthi@linux.microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://patch.msgid.link/20260924173054.589291-2-mawasthi@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 684603842b78 ("net: mana: Add support to process throttled EQEs")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../net/ethernet/microsoft/mana/gdma_main.c   | 907 ++++++++++--------
 drivers/net/ethernet/microsoft/mana/mana_en.c |  10 +-
 include/net/mana/gdma.h                       | 102 +-
 3 files changed, 630 insertions(+), 389 deletions(-)

diff --git a/drivers/net/ethernet/microsoft/mana/gdma_main.c b/drivers/net/ethernet/microsoft/mana/gdma_main.c
index 8e9bfc1d6a2ae..b076760b2dc50 100644
--- a/drivers/net/ethernet/microsoft/mana/gdma_main.c
+++ b/drivers/net/ethernet/microsoft/mana/gdma_main.c
@@ -2,49 +2,42 @@
 /* Copyright (c) 2021, Microsoft Corporation. */
 
 #include <linux/bitfield.h>
+#include <linux/cpumask.h>
 #include <linux/debugfs.h>
+#include <linux/delay.h>
+#include <linux/list.h>
 #include <linux/module.h>
-#include <linux/pci.h>
 #include <linux/sizes.h>
 #include <linux/utsname.h>
 #include <linux/version.h>
 #include <linux/msi.h>
 #include <linux/irqdomain.h>
 #include <linux/export.h>
+#include <linux/pci.h>
+#include <linux/slab.h>
+#include <linux/topology.h>
 #include <linux/uaccess.h>
+#include <linux/xarray.h>
 
 #include <net/mana/mana.h>
 #include <net/mana/hw_channel.h>
 
 struct dentry *mana_debugfs_root;
 
-struct mana_dev_recovery {
-	struct list_head list;
-	struct pci_dev *pdev;
-	enum gdma_eqe_type type;
-};
-
-static struct mana_dev_recovery_work {
-	struct list_head dev_list;
-	struct delayed_work work;
-
-	/* Lock for dev_list above */
-	spinlock_t lock;
-} mana_dev_recovery_work;
-
-static u32 mana_gd_r32(struct gdma_context *g, u64 offset)
+/*
+ * True if the underlying bus can allocate MSI-X vectors after probe time.
+ * Buses that size their vector pool at probe install no callback.
+ */
+static bool mana_gd_msix_can_alloc_dyn(struct gdma_context *gc)
 {
-	return readl(g->bar0_va + offset);
-}
+	if (!gc->bus_ops || !gc->bus_ops->msix_can_alloc_dyn)
+		return false;
 
-static u64 mana_gd_r64(struct gdma_context *g, u64 offset)
-{
-	return readq(g->bar0_va + offset);
+	return gc->bus_ops->msix_can_alloc_dyn(gc);
 }
 
-static int mana_gd_init_pf_regs(struct pci_dev *pdev)
+static int mana_gd_init_pf_regs(struct gdma_context *gc)
 {
-	struct gdma_context *gc = pci_get_drvdata(pdev);
 	u64 remaining_barsize;
 	u64 sriov_base_off;
 	u64 sriov_shm_off;
@@ -102,9 +95,8 @@ static int mana_gd_init_pf_regs(struct pci_dev *pdev)
 	return 0;
 }
 
-static int mana_gd_init_vf_regs(struct pci_dev *pdev)
+static int mana_gd_init_vf_regs(struct gdma_context *gc)
 {
-	struct gdma_context *gc = pci_get_drvdata(pdev);
 	u64 shm_off;
 
 	gc->db_page_size = mana_gd_r32(gc, GDMA_REG_DB_PAGE_SIZE) & 0xFFFF;
@@ -148,14 +140,12 @@ static int mana_gd_init_vf_regs(struct pci_dev *pdev)
 	return 0;
 }
 
-static int mana_gd_init_registers(struct pci_dev *pdev)
+int mana_gd_init_registers(struct gdma_context *gc)
 {
-	struct gdma_context *gc = pci_get_drvdata(pdev);
-
 	if (gc->is_pf && !gc->is_pf2)
-		return mana_gd_init_pf_regs(pdev);
+		return mana_gd_init_pf_regs(gc);
 	else
-		return mana_gd_init_vf_regs(pdev);
+		return mana_gd_init_vf_regs(gc);
 }
 
 /* Suppress logging when we set timeout to zero */
@@ -176,9 +166,8 @@ bool mana_need_log(struct gdma_context *gc, int err)
 	return true;
 }
 
-static int mana_gd_query_max_resources(struct pci_dev *pdev)
+int mana_gd_query_max_resources(struct gdma_context *gc)
 {
-	struct gdma_context *gc = pci_get_drvdata(pdev);
 	struct gdma_query_max_resources_resp resp = {};
 	struct gdma_general_req req = {};
 	unsigned int max_num_queues;
@@ -194,7 +183,7 @@ static int mana_gd_query_max_resources(struct pci_dev *pdev)
 	 * MSI-X allocation; on non-dyn platforms msi_sharing is
 	 * unconditionally true (set in mana_gd_setup_hwc_irqs).
 	 */
-	if (pci_msix_can_alloc_dyn(to_pci_dev(gc->dev)))
+	if (mana_gd_msix_can_alloc_dyn(gc))
 		gc->msi_sharing = false;
 
 	mana_gd_init_req_hdr(&req.hdr, GDMA_QUERY_MAX_RESOURCES,
@@ -207,7 +196,11 @@ static int mana_gd_query_max_resources(struct pci_dev *pdev)
 		return err ? err : -EPROTO;
 	}
 
-	if (!pci_msix_can_alloc_dyn(pdev)) {
+	if (!mana_gd_msix_can_alloc_dyn(gc)) {
+		/* Buses that size their vector pool at probe time cannot grow
+		 * it afterwards, so never raise num_msix_usable above what has
+		 * already been allocated.
+		 */
 		if (gc->num_msix_usable > resp.max_msix)
 			gc->num_msix_usable = resp.max_msix;
 	} else {
@@ -221,20 +214,24 @@ static int mana_gd_query_max_resources(struct pci_dev *pdev)
 
 	/* MSI-X vectors are allocated by index into the device MSI-X table, so
 	 * never ask for more than the table holds. It can be smaller than both
-	 * resp.max_msix and the CPU count.
+	 * resp.max_msix and the CPU count. A bus that cannot report a table
+	 * size installs no callback and skips the clamp.
 	 */
-	err = pci_msix_vec_count(pdev);
-	if (err <= 0) {
-		dev_err(gc->dev, "Failed to query MSI-X table size: %d\n", err);
-		return err < 0 ? err : -ENOSPC;
-	}
-	msix_vec_count = err;
+	if (gc->bus_ops && gc->bus_ops->msix_vec_count) {
+		err = gc->bus_ops->msix_vec_count(gc);
+		if (err <= 0) {
+			dev_err(gc->dev,
+				"Failed to query MSI-X table size: %d\n", err);
+			return err < 0 ? err : -ENOSPC;
+		}
+		msix_vec_count = err;
 
-	if (gc->num_msix_usable > msix_vec_count) {
-		dev_info(gc->dev,
-			 "Limiting MSI-X vectors from %u to table size %u\n",
-			 gc->num_msix_usable, msix_vec_count);
-		gc->num_msix_usable = msix_vec_count;
+		if (gc->num_msix_usable > msix_vec_count) {
+			dev_info(gc->dev,
+				 "Limiting MSI-X vectors from %u to table size %u\n",
+				 gc->num_msix_usable, msix_vec_count);
+			gc->num_msix_usable = msix_vec_count;
+		}
 	}
 
 	if (gc->num_msix_usable <= 1)
@@ -286,6 +283,8 @@ static int mana_gd_query_max_resources(struct pci_dev *pdev)
 	if (num_ports > MAX_PORTS_IN_MANA_DEV)
 		num_ports = MAX_PORTS_IN_MANA_DEV;
 
+	gc->num_ports = num_ports;
+
 	/*
 	 * Adjust the per-vPort max queue count to allow dedicated
 	 * MSIx for each vPort. Prefer at least MANA_DEF_NUM_QUEUES,
@@ -317,9 +316,8 @@ static int mana_gd_query_max_resources(struct pci_dev *pdev)
 	return 0;
 }
 
-static int mana_gd_query_hwc_timeout(struct pci_dev *pdev, u32 *timeout_val)
+static int mana_gd_query_hwc_timeout(struct gdma_context *gc, u32 *timeout_val)
 {
-	struct gdma_context *gc = pci_get_drvdata(pdev);
 	struct gdma_query_hwc_timeout_resp resp = {};
 	struct gdma_query_hwc_timeout_req req = {};
 	int err;
@@ -336,9 +334,8 @@ static int mana_gd_query_hwc_timeout(struct pci_dev *pdev, u32 *timeout_val)
 	return 0;
 }
 
-static int mana_gd_detect_devices(struct pci_dev *pdev)
+int mana_gd_detect_devices(struct gdma_context *gc)
 {
-	struct gdma_context *gc = pci_get_drvdata(pdev);
 	struct gdma_list_devices_resp resp = {};
 	struct gdma_general_req req = {};
 	struct gdma_dev_id dev;
@@ -657,187 +654,31 @@ void mana_gd_ring_dim(struct gdma_queue *cq, u32 mod_usec, bool mod_usec_vld,
 }
 EXPORT_SYMBOL_NS(mana_gd_ring_dim, "NET_MANA");
 
-#define MANA_SERVICE_PERIOD 10
-
-static void mana_serv_rescan(struct pci_dev *pdev)
-{
-	struct pci_bus *parent;
-
-	pci_lock_rescan_remove();
-
-	parent = pdev->bus;
-	if (!parent) {
-		dev_err(&pdev->dev, "MANA service: no parent bus\n");
-		goto out;
-	}
-
-	pci_stop_and_remove_bus_device(pdev);
-	pci_rescan_bus(parent);
-
-out:
-	pci_unlock_rescan_remove();
-}
-
-static void mana_serv_fpga(struct pci_dev *pdev)
-{
-	struct pci_bus *bus, *parent;
-
-	pci_lock_rescan_remove();
-
-	bus = pdev->bus;
-	if (!bus) {
-		dev_err(&pdev->dev, "MANA service: no bus\n");
-		goto out;
-	}
-
-	parent = bus->parent;
-	if (!parent) {
-		dev_err(&pdev->dev, "MANA service: no parent bus\n");
-		goto out;
-	}
-
-	pci_stop_and_remove_bus_device(bus->self);
-
-	msleep(MANA_SERVICE_PERIOD * 1000);
-
-	pci_rescan_bus(parent);
-
-out:
-	pci_unlock_rescan_remove();
-}
-
-static void mana_serv_reset(struct pci_dev *pdev)
-{
-	struct gdma_context *gc = pci_get_drvdata(pdev);
-	struct hw_channel_context *hwc;
-	int ret;
-
-	if (!gc) {
-		/* Perform PCI rescan on device if GC is not set up */
-		dev_err(&pdev->dev, "MANA service: GC not setup, rescanning\n");
-		mana_serv_rescan(pdev);
-		return;
-	}
-
-	hwc = gc->hwc.driver_data;
-	if (!hwc) {
-		dev_err(&pdev->dev, "MANA service: no HWC\n");
-		goto out;
-	}
-
-	/* HWC is not responding in this case, so don't wait */
-	hwc->hwc_timeout = 0;
-
-	dev_info(&pdev->dev, "MANA reset cycle start\n");
-
-	mana_gd_suspend(pdev, PMSG_SUSPEND);
-
-	msleep(MANA_SERVICE_PERIOD * 1000);
-
-	ret = mana_gd_resume(pdev);
-	if (ret == -ETIMEDOUT || ret == -EPROTO) {
-		/* Perform PCI rescan on device if we failed on HWC */
-		dev_err(&pdev->dev, "MANA service: resume failed, rescanning\n");
-		mana_serv_rescan(pdev);
-		return;
-	}
-
-	if (ret)
-		dev_info(&pdev->dev, "MANA reset cycle failed err %d\n", ret);
-	else
-		dev_info(&pdev->dev, "MANA reset cycle completed\n");
-
-out:
-	clear_bit(GC_IN_SERVICE, &gc->flags);
-}
-
-static void mana_do_service(enum gdma_eqe_type type, struct pci_dev *pdev)
-{
-	switch (type) {
-	case GDMA_EQE_HWC_FPGA_RECONFIG:
-		mana_serv_fpga(pdev);
-		break;
-
-	case GDMA_EQE_HWC_RESET_REQUEST:
-		mana_serv_reset(pdev);
-		break;
-
-	default:
-		dev_err(&pdev->dev, "MANA service: unknown type %d\n", type);
-		break;
-	}
-}
-
-static void mana_recovery_delayed_func(struct work_struct *w)
-{
-	struct mana_dev_recovery_work *work;
-	struct mana_dev_recovery *dev;
-	unsigned long flags;
-
-	work = container_of(w, struct mana_dev_recovery_work, work.work);
-
-	spin_lock_irqsave(&work->lock, flags);
-
-	while (!list_empty(&work->dev_list)) {
-		dev = list_first_entry(&work->dev_list,
-				       struct mana_dev_recovery, list);
-		list_del(&dev->list);
-		spin_unlock_irqrestore(&work->lock, flags);
-
-		mana_do_service(dev->type, dev->pdev);
-		pci_dev_put(dev->pdev);
-		kfree(dev);
-
-		spin_lock_irqsave(&work->lock, flags);
-	}
-
-	spin_unlock_irqrestore(&work->lock, flags);
-}
-
-static void mana_serv_func(struct work_struct *w)
+/*
+ * Queue device servicing or recovery on buses that support it.
+ *
+ * Servicing tears the device down and brings it back up, so it depends on
+ * bus-level facilities the GDMA core does not have. Buses that provide no
+ * servicing path install no callback and the request is rejected.
+ */
+int mana_schedule_serv_work(struct gdma_context *gc, enum gdma_eqe_type type)
 {
-	struct mana_serv_work *mns_wk;
-	struct pci_dev *pdev;
-
-	mns_wk = container_of(w, struct mana_serv_work, serv_work);
-	pdev = mns_wk->pdev;
-
-	if (pdev)
-		mana_do_service(mns_wk->type, pdev);
+	if (!gc->bus_ops || !gc->bus_ops->schedule_serv_work)
+		return -EOPNOTSUPP;
 
-	pci_dev_put(pdev);
-	kfree(mns_wk);
-	module_put(THIS_MODULE);
+	return gc->bus_ops->schedule_serv_work(gc, type);
 }
 
-int mana_schedule_serv_work(struct gdma_context *gc, enum gdma_eqe_type type)
+/* The servicing workqueue is owned by the GDMA core because the queueing
+ * sites live here and in mana_en.c, which every transport shares. Each bus
+ * driver creates it during setup and destroys it during cleanup.
+ */
+int mana_gd_alloc_service_wq(struct gdma_context *gc)
 {
-	struct mana_serv_work *mns_wk;
-
-	if (test_and_set_bit(GC_IN_SERVICE, &gc->flags)) {
-		dev_info(gc->dev, "Already in service\n");
-		return -EBUSY;
-	}
-
-	if (!try_module_get(THIS_MODULE)) {
-		dev_info(gc->dev, "Module is unloading\n");
-		clear_bit(GC_IN_SERVICE, &gc->flags);
-		return -ENODEV;
-	}
-
-	mns_wk = kzalloc_obj(*mns_wk, GFP_ATOMIC);
-	if (!mns_wk) {
-		module_put(THIS_MODULE);
-		clear_bit(GC_IN_SERVICE, &gc->flags);
+	gc->service_wq = alloc_ordered_workqueue("gdma_service_wq", 0);
+	if (!gc->service_wq)
 		return -ENOMEM;
-	}
 
-	dev_info(gc->dev, "Start MANA service type:%d\n", type);
-	mns_wk->pdev = to_pci_dev(gc->dev);
-	mns_wk->type = type;
-	pci_dev_get(mns_wk->pdev);
-	INIT_WORK(&mns_wk->serv_work, mana_serv_func);
-	schedule_work(&mns_wk->serv_work);
 	return 0;
 }
 
@@ -904,6 +745,15 @@ ssize_t mana_gd_read_ring(struct gdma_queue *q, char __user *buf,
 	return copied;
 }
 
+void mana_gd_free_service_wq(struct gdma_context *gc)
+{
+	if (!gc->service_wq)
+		return;
+
+	destroy_workqueue(gc->service_wq);
+	gc->service_wq = NULL;
+}
+
 static void mana_gd_process_eqe(struct gdma_queue *eq)
 {
 	u32 head = eq->head % (eq->queue_size / GDMA_EQE_SIZE);
@@ -975,7 +825,7 @@ static void mana_gd_process_eqe(struct gdma_queue *eq)
 	}
 }
 
-static void mana_gd_process_eq_events(void *arg)
+void mana_gd_process_eq_events(void *arg)
 {
 	u32 owner_bits, new_bits, old_bits;
 	union gdma_eqe_info eqe_info;
@@ -1530,9 +1380,8 @@ void mana_gd_destroy_queue(struct gdma_context *gc, struct gdma_queue *queue)
 }
 EXPORT_SYMBOL_NS(mana_gd_destroy_queue, "NET_MANA");
 
-int mana_gd_verify_vf_version(struct pci_dev *pdev)
+int mana_gd_verify_vf_version(struct gdma_context *gc)
 {
-	struct gdma_context *gc = pci_get_drvdata(pdev);
 	struct gdma_verify_ver_resp resp = {};
 	struct gdma_verify_ver_req req = {};
 	struct hw_channel_context *hwc;
@@ -1546,6 +1395,8 @@ int mana_gd_verify_vf_version(struct pci_dev *pdev)
 	req.protocol_ver_max = GDMA_PROTOCOL_LAST;
 
 	req.gd_drv_cap_flags1 = GDMA_DRV_CAP_FLAGS1;
+	if (gc->bus_ops)
+		req.gd_drv_cap_flags1 |= gc->bus_ops->drv_cap_flags1;
 	req.gd_drv_cap_flags2 = GDMA_DRV_CAP_FLAGS2;
 	req.gd_drv_cap_flags3 = GDMA_DRV_CAP_FLAGS3;
 	req.gd_drv_cap_flags4 = GDMA_DRV_CAP_FLAGS4;
@@ -1574,7 +1425,7 @@ int mana_gd_verify_vf_version(struct pci_dev *pdev)
 			   &gc->pf_cap_flags1);
 
 	if (resp.pf_cap_flags1 & GDMA_DRV_CAP_FLAG_1_HWC_TIMEOUT_RECONFIG) {
-		err = mana_gd_query_hwc_timeout(pdev, &hwc->hwc_timeout);
+		err = mana_gd_query_hwc_timeout(gc, &hwc->hwc_timeout);
 		if (err) {
 			dev_err(gc->dev, "Failed to set the hwc timeout %d\n", err);
 			return err;
@@ -1873,7 +1724,7 @@ int mana_gd_poll_cq(struct gdma_queue *cq, struct gdma_comp *comp, int num_cqe)
 }
 EXPORT_SYMBOL_NS(mana_gd_poll_cq, "NET_MANA");
 
-static irqreturn_t mana_gd_intr(int irq, void *arg)
+irqreturn_t mana_gd_intr(int irq, void *arg)
 {
 	struct gdma_irq_context *gic = arg;
 	struct list_head *eq_list = &gic->eq_list;
@@ -1888,11 +1739,25 @@ static irqreturn_t mana_gd_intr(int irq, void *arg)
 	return IRQ_HANDLED;
 }
 
+/*
+ * Reset the device using whatever mechanism the bus provides.
+ */
+int mana_gd_dev_reset(struct gdma_context *gc)
+{
+	if (!gc->bus_ops || !gc->bus_ops->dev_reset)
+		return -EOPNOTSUPP;
+
+	return gc->bus_ops->dev_reset(gc);
+}
+
+/*
+ * Release a reference on the IRQ context backing an MSI vector, freeing
+ * the vector once the last user is gone.
+ */
 void mana_gd_put_gic(struct gdma_context *gc, bool use_msi_bitmap, int msi)
 {
-	struct pci_dev *dev = to_pci_dev(gc->dev);
+	const struct gdma_bus_ops *ops = gc->bus_ops;
 	struct gdma_irq_context *gic;
-	struct msi_map irq_map;
 	int irq;
 
 	mutex_lock(&gc->gic_mutex);
@@ -1917,11 +1782,8 @@ void mana_gd_put_gic(struct gdma_context *gc, bool use_msi_bitmap, int msi)
 	irq_update_affinity_hint(irq, NULL);
 	free_irq(irq, gic);
 
-	if (gic->dyn_msix) {
-		irq_map.virq = irq;
-		irq_map.index = msi;
-		pci_msix_free_irq(dev, irq_map);
-	}
+	if (gic->dyn_msix)
+		ops->msix_free(gc, msi, irq);
 
 	xa_erase(&gc->irq_contexts, msi);
 	kfree(gic);
@@ -1944,12 +1806,10 @@ struct gdma_irq_context *mana_gd_get_gic(struct gdma_context *gc,
 					 bool use_msi_bitmap,
 					 int *msi_requested)
 {
-	struct pci_dev *dev = to_pci_dev(gc->dev);
+	const struct gdma_bus_ops *ops = gc->bus_ops;
 	struct gdma_irq_context *gic;
-	struct msi_map irq_map = { };
-	int irq;
-	int msi;
-	int err;
+	bool dyn_msix = false;
+	int msi, irq, err;
 
 	mutex_lock(&gc->gic_mutex);
 
@@ -1975,27 +1835,34 @@ struct gdma_irq_context *mana_gd_get_gic(struct gdma_context *gc,
 		goto out;
 	}
 
-	irq = pci_irq_vector(dev, msi);
+	irq = ops->msix_virq(gc, msi);
 	if (irq == -EINVAL) {
-		irq_map = pci_msix_alloc_irq_at(dev, msi, NULL);
-		if (!irq_map.virq) {
-			err = irq_map.index;
-			dev_err(gc->dev,
-				"Failed to alloc irq_map msi %d err %d\n",
-				msi, err);
-			gic = ERR_PTR(err);
+		/* A bus that sizes its vector pool up front has nothing left
+		 * to hand out once every vector has been claimed.
+		 */
+		if (!ops->msix_alloc_at) {
+			dev_err(gc->dev, "No IRQ for MSI %d\n", msi);
+			gic = ERR_PTR(-ENOENT);
+			goto out;
+		}
+
+		irq = ops->msix_alloc_at(gc, &msi);
+		if (irq < 0) {
+			dev_err(gc->dev, "Failed to alloc irq msi %d err %d\n",
+				*msi_requested, irq);
+			gic = ERR_PTR(irq);
 			goto out;
 		}
-		irq = irq_map.virq;
-		msi = irq_map.index;
+
+		dyn_msix = true;
 		*msi_requested = msi;
 	}
 
 	gic = kzalloc_obj(*gic);
 	if (!gic) {
 		gic = ERR_PTR(-ENOMEM);
-		if (irq_map.virq)
-			pci_msix_free_irq(dev, irq_map);
+		if (dyn_msix)
+			ops->msix_free(gc, msi, irq);
 		goto out;
 	}
 
@@ -2006,11 +1873,11 @@ struct gdma_irq_context *mana_gd_get_gic(struct gdma_context *gc,
 	spin_lock_init(&gic->lock);
 
 	if (!gic->msi)
-		snprintf(gic->name, MANA_IRQ_NAME_SZ, "mana_hwc@pci:%s",
-			 pci_name(dev));
+		snprintf(gic->name, MANA_IRQ_NAME_SZ, "mana_hwc@%s:%s",
+			 ops->bus_name, dev_name(gc->dev));
 	else
-		snprintf(gic->name, MANA_IRQ_NAME_SZ, "mana_msi%d@pci:%s",
-			 gic->msi, pci_name(dev));
+		snprintf(gic->name, MANA_IRQ_NAME_SZ, "mana_msi%d@%s:%s",
+			 gic->msi, ops->bus_name, dev_name(gc->dev));
 
 	err = request_irq(irq, mana_gd_intr, 0, gic->name, gic);
 	if (err) {
@@ -2018,12 +1885,12 @@ struct gdma_irq_context *mana_gd_get_gic(struct gdma_context *gc,
 			irq, gic->name);
 		kfree(gic);
 		gic = ERR_PTR(err);
-		if (irq_map.virq)
-			pci_msix_free_irq(dev, irq_map);
+		if (dyn_msix)
+			ops->msix_free(gc, msi, irq);
 		goto out;
 	}
 
-	gic->dyn_msix = !!irq_map.virq;
+	gic->dyn_msix = dyn_msix;
 	refcount_set(&gic->refcount, 1);
 	gic->bitmap_refs = use_msi_bitmap ? 1 : 0;
 
@@ -2034,8 +1901,8 @@ struct gdma_irq_context *mana_gd_get_gic(struct gdma_context *gc,
 		free_irq(irq, gic);
 		kfree(gic);
 		gic = ERR_PTR(err);
-		if (irq_map.virq)
-			pci_msix_free_irq(dev, irq_map);
+		if (dyn_msix)
+			ops->msix_free(gc, msi, irq);
 		goto out;
 	}
 
@@ -2067,20 +1934,340 @@ void mana_gd_free_res_map(struct gdma_resource *r)
 	r->size = 0;
 }
 
-/*
- * Spread on CPUs with the following heuristics:
- *
- * 1. No more than one IRQ per CPU, if possible;
- * 2. NUMA locality is the second priority;
- * 3. Sibling dislocality is the last priority.
- *
- * Let's consider this topology:
- *
- * Node            0               1
- * Core        0       1       2       3
- * CPU       0   1   2   3   4   5   6   7
- *
- * The most performant IRQ distribution based on the above topology
+/* Bring up the GDMA context on a probed device: create the debugfs directory,
+ * map the shared-memory registers, start the hardware channel and size the
+ * interrupt pool. Every step here is common to all buses; the ones that are
+ * not are reached through gdma_bus_ops.
+ */
+int mana_gd_setup(struct gdma_context *gc)
+{
+	int err;
+
+	gc->mana_pci_debugfs = debugfs_create_dir(dev_name(gc->dev),
+						  mana_debugfs_root);
+
+	err = mana_gd_init_registers(gc);
+	if (err)
+		goto remove_debugfs;
+
+	mana_smc_init(&gc->shm_channel, gc->dev, gc->shm_base);
+
+	err = mana_gd_alloc_service_wq(gc);
+	if (err)
+		goto remove_debugfs;
+
+	err = gc->bus_ops->setup_hwc_irqs(gc);
+	if (err) {
+		dev_err(gc->dev, "Failed to setup IRQs for HWC creation: %d\n",
+			err);
+		goto free_workqueue;
+	}
+
+	err = mana_hwc_create_channel(gc);
+	if (err)
+		goto remove_irq;
+
+	err = mana_gd_verify_vf_version(gc);
+	if (err)
+		goto destroy_hwc;
+
+	err = mana_gd_detect_devices(gc);
+	if (err)
+		goto destroy_hwc;
+
+	err = mana_gd_query_max_resources(gc);
+	if (err)
+		goto destroy_hwc;
+
+	err = gc->bus_ops->setup_remaining_irqs(gc);
+	if (err)
+		goto destroy_hwc;
+
+	dev_dbg(gc->dev, "mana gdma setup successful\n");
+	return 0;
+
+destroy_hwc:
+	mana_hwc_destroy_channel(gc);
+remove_irq:
+	gc->bus_ops->remove_irqs(gc);
+free_workqueue:
+	mana_gd_free_service_wq(gc);
+remove_debugfs:
+	debugfs_remove_recursive(gc->mana_pci_debugfs);
+	gc->mana_pci_debugfs = NULL;
+	dev_err(gc->dev, "%s failed (error %d)\n", __func__, err);
+	return err;
+}
+
+void mana_gd_cleanup(struct gdma_context *gc)
+{
+	mana_hwc_destroy_channel(gc);
+
+	gc->bus_ops->remove_irqs(gc);
+
+	mana_gd_free_service_wq(gc);
+
+	debugfs_remove_recursive(gc->mana_pci_debugfs);
+	gc->mana_pci_debugfs = NULL;
+
+	dev_dbg(gc->dev, "mana gdma cleanup successful\n");
+}
+
+struct mana_dev_recovery {
+	struct list_head list;
+	struct pci_dev *pdev;
+	enum gdma_eqe_type type;
+};
+
+static struct mana_dev_recovery_work {
+	struct list_head dev_list;
+	struct delayed_work work;
+
+	/* Lock for dev_list above */
+	spinlock_t lock;
+} mana_dev_recovery_work;
+
+static int mana_gd_suspend(struct pci_dev *pdev, pm_message_t state);
+static int mana_gd_resume(struct pci_dev *pdev);
+
+#define MANA_SERVICE_PERIOD 10
+
+static void mana_serv_rescan(struct pci_dev *pdev)
+{
+	struct pci_bus *parent;
+
+	pci_lock_rescan_remove();
+
+	parent = pdev->bus;
+	if (!parent) {
+		dev_err(&pdev->dev, "MANA service: no parent bus\n");
+		goto out;
+	}
+
+	pci_stop_and_remove_bus_device(pdev);
+	pci_rescan_bus(parent);
+
+out:
+	pci_unlock_rescan_remove();
+}
+
+static void mana_serv_fpga(struct pci_dev *pdev)
+{
+	struct pci_bus *bus, *parent;
+
+	pci_lock_rescan_remove();
+
+	bus = pdev->bus;
+	if (!bus) {
+		dev_err(&pdev->dev, "MANA service: no bus\n");
+		goto out;
+	}
+
+	parent = bus->parent;
+	if (!parent) {
+		dev_err(&pdev->dev, "MANA service: no parent bus\n");
+		goto out;
+	}
+
+	pci_stop_and_remove_bus_device(bus->self);
+
+	msleep(MANA_SERVICE_PERIOD * 1000);
+
+	pci_rescan_bus(parent);
+
+out:
+	pci_unlock_rescan_remove();
+}
+
+static void mana_serv_reset(struct pci_dev *pdev)
+{
+	struct gdma_context *gc = pci_get_drvdata(pdev);
+	struct hw_channel_context *hwc;
+	int ret;
+
+	if (!gc) {
+		/* Perform PCI rescan on device if GC is not set up */
+		dev_err(&pdev->dev, "MANA service: GC not setup, rescanning\n");
+		mana_serv_rescan(pdev);
+		return;
+	}
+
+	hwc = gc->hwc.driver_data;
+	if (!hwc) {
+		dev_err(&pdev->dev, "MANA service: no HWC\n");
+		goto out;
+	}
+
+	/* HWC is not responding in this case, so don't wait */
+	hwc->hwc_timeout = 0;
+
+	dev_info(&pdev->dev, "MANA reset cycle start\n");
+
+	mana_gd_suspend(pdev, PMSG_SUSPEND);
+
+	msleep(MANA_SERVICE_PERIOD * 1000);
+
+	ret = mana_gd_resume(pdev);
+	if (ret == -ETIMEDOUT || ret == -EPROTO) {
+		/* Perform PCI rescan on device if we failed on HWC */
+		dev_err(&pdev->dev, "MANA service: resume failed, rescanning\n");
+		mana_serv_rescan(pdev);
+		return;
+	}
+
+	if (ret)
+		dev_info(&pdev->dev, "MANA reset cycle failed err %d\n", ret);
+	else
+		dev_info(&pdev->dev, "MANA reset cycle completed\n");
+
+out:
+	clear_bit(GC_IN_SERVICE, &gc->flags);
+}
+
+static void mana_do_service(enum gdma_eqe_type type, struct pci_dev *pdev)
+{
+	switch (type) {
+	case GDMA_EQE_HWC_FPGA_RECONFIG:
+		mana_serv_fpga(pdev);
+		break;
+
+	case GDMA_EQE_HWC_RESET_REQUEST:
+		mana_serv_reset(pdev);
+		break;
+
+	default:
+		dev_err(&pdev->dev, "MANA service: unknown type %d\n", type);
+		break;
+	}
+}
+
+static void mana_recovery_delayed_func(struct work_struct *w)
+{
+	struct mana_dev_recovery_work *work;
+	struct mana_dev_recovery *dev;
+	unsigned long flags;
+
+	work = container_of(w, struct mana_dev_recovery_work, work.work);
+
+	spin_lock_irqsave(&work->lock, flags);
+
+	while (!list_empty(&work->dev_list)) {
+		dev = list_first_entry(&work->dev_list,
+				       struct mana_dev_recovery, list);
+		list_del(&dev->list);
+		spin_unlock_irqrestore(&work->lock, flags);
+
+		mana_do_service(dev->type, dev->pdev);
+		pci_dev_put(dev->pdev);
+		kfree(dev);
+
+		spin_lock_irqsave(&work->lock, flags);
+	}
+
+	spin_unlock_irqrestore(&work->lock, flags);
+}
+
+static void mana_serv_func(struct work_struct *w)
+{
+	struct mana_serv_work *mns_wk;
+	struct pci_dev *pdev;
+
+	mns_wk = container_of(w, struct mana_serv_work, serv_work);
+	pdev = mns_wk->pdev;
+
+	if (pdev)
+		mana_do_service(mns_wk->type, pdev);
+
+	pci_dev_put(pdev);
+	kfree(mns_wk);
+	module_put(THIS_MODULE);
+}
+
+static int mana_pci_schedule_serv_work(struct gdma_context *gc,
+				       enum gdma_eqe_type type)
+{
+	struct mana_serv_work *mns_wk;
+
+	if (test_and_set_bit(GC_IN_SERVICE, &gc->flags)) {
+		dev_info(gc->dev, "Already in service\n");
+		return -EBUSY;
+	}
+
+	if (!try_module_get(THIS_MODULE)) {
+		dev_info(gc->dev, "Module is unloading\n");
+		clear_bit(GC_IN_SERVICE, &gc->flags);
+		return -ENODEV;
+	}
+
+	mns_wk = kzalloc(sizeof(*mns_wk), GFP_ATOMIC);
+	if (!mns_wk) {
+		module_put(THIS_MODULE);
+		clear_bit(GC_IN_SERVICE, &gc->flags);
+		return -ENOMEM;
+	}
+
+	dev_info(gc->dev, "Start MANA service type:%d\n", type);
+	mns_wk->pdev = to_pci_dev(gc->dev);
+	mns_wk->type = type;
+	pci_dev_get(mns_wk->pdev);
+	INIT_WORK(&mns_wk->serv_work, mana_serv_func);
+	schedule_work(&mns_wk->serv_work);
+	return 0;
+}
+
+static bool mana_pci_msix_can_alloc_dyn(struct gdma_context *gc)
+{
+	return pci_msix_can_alloc_dyn(to_pci_dev(gc->dev));
+}
+
+static int mana_pci_msix_virq(struct gdma_context *gc, int msi)
+{
+	return pci_irq_vector(to_pci_dev(gc->dev), msi);
+}
+
+static int mana_pci_msix_alloc_at(struct gdma_context *gc, int *msi)
+{
+	struct msi_map irq_map;
+
+	irq_map = pci_msix_alloc_irq_at(to_pci_dev(gc->dev), *msi, NULL);
+	if (!irq_map.virq)
+		return irq_map.index;
+
+	*msi = irq_map.index;
+	return irq_map.virq;
+}
+
+static void mana_pci_msix_free(struct gdma_context *gc, int msi, int irq)
+{
+	struct msi_map irq_map = { .virq = irq, .index = msi };
+
+	pci_msix_free_irq(to_pci_dev(gc->dev), irq_map);
+}
+
+static int mana_pci_msix_vec_count(struct gdma_context *gc)
+{
+	return pci_msix_vec_count(to_pci_dev(gc->dev));
+}
+
+static int mana_pci_dev_reset(struct gdma_context *gc)
+{
+	return pcie_flr(to_pci_dev(gc->dev));
+}
+
+/*
+ * Spread on CPUs with the following heuristics:
+ *
+ * 1. No more than one IRQ per CPU, if possible;
+ * 2. NUMA locality is the second priority;
+ * 3. Sibling dislocality is the last priority.
+ *
+ * Let's consider this topology:
+ *
+ * Node            0               1
+ * Core        0       1       2       3
+ * CPU       0   1   2   3   4   5   6   7
+ *
+ * The most performant IRQ distribution based on the above topology
  * and heuristics may look like this:
  *
  * IRQ     Nodes   Cores   CPUs
@@ -2396,101 +2583,52 @@ static void mana_gd_remove_irqs(struct pci_dev *pdev)
 	gc->num_msix_usable = 0;
 }
 
-static int mana_gd_setup(struct pci_dev *pdev)
+static int mana_pci_setup_hwc_irqs(struct gdma_context *gc)
 {
-	struct gdma_context *gc = pci_get_drvdata(pdev);
-	int err;
-
-	gc->mana_pci_debugfs = debugfs_create_dir(pci_name(pdev),
-						  mana_debugfs_root);
-
-	err = mana_gd_init_registers(pdev);
-	if (err)
-		goto remove_debugfs;
-
-	mana_smc_init(&gc->shm_channel, gc->dev, gc->shm_base);
-
-	gc->service_wq = alloc_ordered_workqueue("gdma_service_wq", 0);
-	if (!gc->service_wq) {
-		err = -ENOMEM;
-		goto remove_debugfs;
-	}
-
-	err = mana_gd_setup_hwc_irqs(pdev);
-	if (err) {
-		dev_err(gc->dev, "Failed to setup IRQs for HWC creation: %d\n",
-			err);
-		goto free_workqueue;
-	}
-
-	err = mana_hwc_create_channel(gc);
-	if (err)
-		goto remove_irq;
-
-	err = mana_gd_verify_vf_version(pdev);
-	if (err)
-		goto destroy_hwc;
-
-	err = mana_gd_detect_devices(pdev);
-	if (err)
-		goto destroy_hwc;
+	return mana_gd_setup_hwc_irqs(to_pci_dev(gc->dev));
+}
 
-	err = mana_gd_query_max_resources(pdev);
-	if (err)
-		goto destroy_hwc;
+static int mana_pci_setup_remaining_irqs(struct gdma_context *gc)
+{
+	int err;
 
-	err = mana_gd_setup_remaining_irqs(pdev);
+	err = mana_gd_setup_remaining_irqs(to_pci_dev(gc->dev));
 	if (err) {
 		dev_err(gc->dev, "Failed to setup remaining IRQs: %d", err);
-		goto destroy_hwc;
+		return err;
 	}
 
 	if (!gc->msi_sharing) {
 		gc->msi_bitmap = bitmap_zalloc(gc->num_msix_usable, GFP_KERNEL);
-		if (!gc->msi_bitmap) {
-			err = -ENOMEM;
-			goto destroy_hwc;
-		}
+		if (!gc->msi_bitmap)
+			return -ENOMEM;
 		/* Set bit for HWC */
 		set_bit(0, gc->msi_bitmap);
 	}
 
-	dev_dbg(&pdev->dev, "mana gdma setup successful\n");
 	return 0;
-
-destroy_hwc:
-	mana_hwc_destroy_channel(gc);
-remove_irq:
-	mana_gd_remove_irqs(pdev);
-free_workqueue:
-	destroy_workqueue(gc->service_wq);
-	gc->service_wq = NULL;
-remove_debugfs:
-	debugfs_remove_recursive(gc->mana_pci_debugfs);
-	gc->mana_pci_debugfs = NULL;
-	dev_err(&pdev->dev, "%s failed (error %d)\n", __func__, err);
-	return err;
 }
 
-static void mana_gd_cleanup_device(struct pci_dev *pdev)
+static void mana_pci_remove_irqs(struct gdma_context *gc)
 {
-	struct gdma_context *gc = pci_get_drvdata(pdev);
-
-	mana_hwc_destroy_channel(gc);
-
-	mana_gd_remove_irqs(pdev);
-
-	if (gc->service_wq) {
-		destroy_workqueue(gc->service_wq);
-		gc->service_wq = NULL;
-	}
-
-	debugfs_remove_recursive(gc->mana_pci_debugfs);
-	gc->mana_pci_debugfs = NULL;
-
-	dev_dbg(&pdev->dev, "mana gdma cleanup successful\n");
+	mana_gd_remove_irqs(to_pci_dev(gc->dev));
 }
 
+static const struct gdma_bus_ops mana_pci_bus_ops = {
+	.bus_name		= "pci",
+	.msix_can_alloc_dyn	= mana_pci_msix_can_alloc_dyn,
+	.msix_virq		= mana_pci_msix_virq,
+	.msix_alloc_at		= mana_pci_msix_alloc_at,
+	.msix_free		= mana_pci_msix_free,
+	.msix_vec_count		= mana_pci_msix_vec_count,
+	.setup_hwc_irqs		= mana_pci_setup_hwc_irqs,
+	.setup_remaining_irqs	= mana_pci_setup_remaining_irqs,
+	.remove_irqs		= mana_pci_remove_irqs,
+	.dev_reset		= mana_pci_dev_reset,
+	.schedule_serv_work	= mana_pci_schedule_serv_work,
+	.drv_cap_flags1		= GDMA_DRV_CAP_FLAGS1_PCI,
+};
+
 static bool mana_is_pf(unsigned short dev_id)
 {
 	return dev_id == MANA_PF_DEVICE_ID || dev_id == MANA_PF2_DEVICE_ID;
@@ -2546,9 +2684,10 @@ static int mana_gd_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 
 	gc->bar0_va = bar0_va;
 	gc->dev = &pdev->dev;
+	gc->bus_ops = &mana_pci_bus_ops;
 	xa_init(&gc->irq_contexts);
 
-	err = mana_gd_setup(pdev);
+	err = mana_gd_setup(gc);
 	if (err)
 		goto unmap_bar;
 
@@ -2576,7 +2715,7 @@ static int mana_gd_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 cleanup_mana:
 	mana_remove(&gc->mana, false);
 cleanup_gd:
-	mana_gd_cleanup_device(pdev);
+	mana_gd_cleanup(gc);
 unmap_bar:
 	xa_destroy(&gc->irq_contexts);
 	pci_iounmap(pdev, bar0_va);
@@ -2629,7 +2768,7 @@ static void mana_gd_remove(struct pci_dev *pdev)
 	mana_rdma_remove(&gc->mana_ib);
 	mana_remove(&gc->mana, false);
 
-	mana_gd_cleanup_device(pdev);
+	mana_gd_cleanup(gc);
 
 	xa_destroy(&gc->irq_contexts);
 
@@ -2644,24 +2783,24 @@ static void mana_gd_remove(struct pci_dev *pdev)
 }
 
 /* The 'state' parameter is not used. */
-int mana_gd_suspend(struct pci_dev *pdev, pm_message_t state)
+static int mana_gd_suspend(struct pci_dev *pdev, pm_message_t state)
 {
 	struct gdma_context *gc = pci_get_drvdata(pdev);
 
 	mana_rdma_remove(&gc->mana_ib);
 	mana_remove(&gc->mana, true);
 
-	mana_gd_cleanup_device(pdev);
+	mana_gd_cleanup(gc);
 
 	return 0;
 }
 
-int mana_gd_resume(struct pci_dev *pdev)
+static int mana_gd_resume(struct pci_dev *pdev)
 {
 	struct gdma_context *gc = pci_get_drvdata(pdev);
 	int err;
 
-	err = mana_gd_setup(pdev);
+	err = mana_gd_setup(gc);
 	if (err)
 		return err;
 
@@ -2676,7 +2815,7 @@ int mana_gd_resume(struct pci_dev *pdev)
 	return err;
 
 cleanup_gd:
-	mana_gd_cleanup_device(pdev);
+	mana_gd_cleanup(gc);
 	return err;
 }
 
@@ -2690,7 +2829,7 @@ static void mana_gd_shutdown(struct pci_dev *pdev)
 	mana_rdma_remove(&gc->mana_ib);
 	mana_remove(&gc->mana, true);
 
-	mana_gd_cleanup_device(pdev);
+	mana_gd_cleanup(gc);
 
 	pci_disable_device(pdev);
 }
@@ -2734,26 +2873,19 @@ static struct pci_driver mana_driver = {
 	.sriov_configure = mana_sriov_configure,
 };
 
-static int __init mana_driver_init(void)
-{
-	int err;
+MODULE_DEVICE_TABLE(pci, mana_id_table);
 
+static int mana_pci_driver_register(void)
+{
 	INIT_LIST_HEAD(&mana_dev_recovery_work.dev_list);
 	spin_lock_init(&mana_dev_recovery_work.lock);
-	INIT_DELAYED_WORK(&mana_dev_recovery_work.work, mana_recovery_delayed_func);
-
-	mana_debugfs_root = debugfs_create_dir("mana", NULL);
-
-	err = pci_register_driver(&mana_driver);
-	if (err) {
-		debugfs_remove(mana_debugfs_root);
-		mana_debugfs_root = NULL;
-	}
+	INIT_DELAYED_WORK(&mana_dev_recovery_work.work,
+			  mana_recovery_delayed_func);
 
-	return err;
+	return pci_register_driver(&mana_driver);
 }
 
-static void __exit mana_driver_exit(void)
+static void mana_pci_driver_unregister(void)
 {
 	struct mana_dev_recovery *dev;
 	unsigned long flags;
@@ -2771,6 +2903,29 @@ static void __exit mana_driver_exit(void)
 	spin_unlock_irqrestore(&mana_dev_recovery_work.lock, flags);
 
 	pci_unregister_driver(&mana_driver);
+}
+
+static int __init mana_driver_init(void)
+{
+	int err;
+
+	mana_debugfs_root = debugfs_create_dir("mana", NULL);
+
+	err = mana_pci_driver_register();
+	if (err)
+		goto err_debugfs;
+
+	return 0;
+
+err_debugfs:
+	debugfs_remove(mana_debugfs_root);
+	mana_debugfs_root = NULL;
+	return err;
+}
+
+static void __exit mana_driver_exit(void)
+{
+	mana_pci_driver_unregister();
 
 	debugfs_remove(mana_debugfs_root);
 
@@ -2780,7 +2935,5 @@ static void __exit mana_driver_exit(void)
 module_init(mana_driver_init);
 module_exit(mana_driver_exit);
 
-MODULE_DEVICE_TABLE(pci, mana_id_table);
-
 MODULE_LICENSE("Dual BSD/GPL");
 MODULE_DESCRIPTION("Microsoft Azure Network Adapter driver");
diff --git a/drivers/net/ethernet/microsoft/mana/mana_en.c b/drivers/net/ethernet/microsoft/mana/mana_en.c
index a1fb06b239476..44122c2ef7f98 100644
--- a/drivers/net/ethernet/microsoft/mana/mana_en.c
+++ b/drivers/net/ethernet/microsoft/mana/mana_en.c
@@ -9,7 +9,6 @@
 #include <linux/ethtool.h>
 #include <linux/filter.h>
 #include <linux/mm.h>
-#include <linux/pci.h>
 #include <linux/export.h>
 #include <linux/skbuff.h>
 
@@ -20,6 +19,7 @@
 #include <net/xdp.h>
 
 #include <net/mana/mana.h>
+
 #include <net/mana/mana_auxiliary.h>
 #include <net/mana/hw_channel.h>
 
@@ -3754,10 +3754,9 @@ static int mana_dealloc_queues(struct net_device *ndev)
 				tsleep <<= 1;
 			}
 			if (atomic_read(&txq->pending_sends)) {
-				err =
-				    pcie_flr(to_pci_dev(gd->gdma_context->dev));
+				err = mana_gd_dev_reset(gd->gdma_context);
 				if (err) {
-					netdev_err(ndev, "flr failed %d with %d pkts pending in txq %u\n",
+					netdev_err(ndev, "device reset failed %d with %d pkts pending in txq %u\n",
 						   err,
 					    atomic_read(&txq->pending_sends),
 					    txq->gdma_txq_id);
@@ -4060,6 +4059,9 @@ int mana_rdma_service_event(struct gdma_context *gc, enum gdma_service_type even
 		return 0;
 	}
 
+	if (!gc->service_wq)
+		return -EOPNOTSUPP;
+
 	serv_work = kzalloc_obj(*serv_work, GFP_ATOMIC);
 	if (!serv_work)
 		return -ENOMEM;
diff --git a/include/net/mana/gdma.h b/include/net/mana/gdma.h
index 308950f9b54b0..cdec5558304ff 100644
--- a/include/net/mana/gdma.h
+++ b/include/net/mana/gdma.h
@@ -422,14 +422,72 @@ enum gdma_context_flags {
 	GC_IN_SERVICE		= 1,
 };
 
+struct gdma_context;
+
+/**
+ * struct gdma_bus_ops - transport-specific operations
+ *
+ * Lets the bus-agnostic GDMA core drive PCI and CDX devices without
+ * testing configuration symbols. Each bus driver installs its own
+ * instance in gdma_context.bus_ops at probe time.
+ *
+ * @bus_name: Bus token used to build the per-vector IRQ names.
+ * @msix_can_alloc_dyn: True if the bus can allocate MSI-X vectors after
+ *	probe time. Buses that size their vector pool at probe and cannot
+ *	grow it later leave this NULL.
+ * @msix_virq: Return the Linux IRQ number backing an MSI vector, or
+ *	-EINVAL if the vector has not been allocated yet.
+ * @msix_alloc_at: Allocate an MSI vector on demand and return its IRQ
+ *	number, updating @msi with the index actually assigned. Buses that
+ *	allocate their whole pool up front leave this NULL.
+ * @msix_free: Release a vector obtained from @msix_alloc_at. Only needed
+ *	by buses that implement @msix_alloc_at.
+ * @msix_vec_count: Return the number of entries in the device MSI-X table,
+ *	used to clamp the vector count the core asks for. Buses that cannot
+ *	report a table size leave this NULL and the clamp is skipped.
+ * @setup_hwc_irqs: Set up the interrupts the hardware channel needs before
+ *	it is created.
+ * @setup_remaining_irqs: Set up the remaining interrupts once the device
+ *	resource limits are known.
+ * @remove_irqs: Release the interrupts set up by @setup_hwc_irqs and
+ *	@setup_remaining_irqs.
+ * @dev_reset: Reset the device using the bus-level reset mechanism.
+ * @schedule_serv_work: Queue device servicing or recovery. Buses without
+ *	a servicing path leave this NULL.
+ * @drv_cap_flags1: Extra capability bits this transport can honour, OR'ed
+ *	into GDMA_DRV_CAP_FLAGS1 when the driver version is negotiated.
+ */
+struct gdma_bus_ops {
+	const char *bus_name;
+	bool (*msix_can_alloc_dyn)(struct gdma_context *gc);
+	int (*msix_virq)(struct gdma_context *gc, int msi);
+	int (*msix_alloc_at)(struct gdma_context *gc, int *msi);
+	void (*msix_free)(struct gdma_context *gc, int msi, int irq);
+	int (*msix_vec_count)(struct gdma_context *gc);
+	int (*setup_hwc_irqs)(struct gdma_context *gc);
+	int (*setup_remaining_irqs)(struct gdma_context *gc);
+	void (*remove_irqs)(struct gdma_context *gc);
+	int (*dev_reset)(struct gdma_context *gc);
+	int (*schedule_serv_work)(struct gdma_context *gc,
+				  enum gdma_eqe_type type);
+	u64 drv_cap_flags1;
+};
+
 struct gdma_context {
 	struct device		*dev;
 	struct dentry		*mana_pci_debugfs;
 
+	/* Transport-specific operations, installed by the bus driver */
+	const struct gdma_bus_ops *bus_ops;
+
 	/* Hardware max number of queues */
 	unsigned int		max_num_queues;
 	/* Per-vPort max number of queues */
 	unsigned int		max_num_queues_vport;
+	/* Number of vPorts reported by the device, capped at
+	 * MAX_PORTS_IN_MANA_DEV
+	 */
+	u16			num_ports;
 	unsigned int		max_num_msix;
 	unsigned int		num_msix_usable;
 	struct xarray		irq_contexts;
@@ -529,6 +587,10 @@ ssize_t mana_gd_read_ring(struct gdma_queue *q, char __user *buf,
 
 int mana_schedule_serv_work(struct gdma_context *gc, enum gdma_eqe_type type);
 
+int mana_gd_alloc_service_wq(struct gdma_context *gc);
+
+void mana_gd_free_service_wq(struct gdma_context *gc);
+
 void mana_gd_ring_dim(struct gdma_queue *cq, u32 mod_usec, bool mod_usec_vld,
 		      u32 mod_comps, bool mod_comps_vld);
 
@@ -686,21 +748,28 @@ enum {
 /* Driver supports non-contiguous queue buffers */
 #define GDMA_DRV_CAP_FLAG_1_NON_CONTIGUOUS_BUFFERS BIT(30)
 
+/* Capabilities in the PCI-only group below rely on dynamic MSI-X allocation
+ * and on the servicing and reset paths reached through
+ * mana_schedule_serv_work(). Transports that provide neither leave
+ * gdma_bus_ops.drv_cap_flags1 unset so the group is not advertised.
+ */
+#define GDMA_DRV_CAP_FLAGS1_PCI \
+	(GDMA_DRV_CAP_FLAG_1_DYNAMIC_IRQ_ALLOC_SUPPORT | \
+	 GDMA_DRV_CAP_FLAG_1_SELF_RESET_ON_EQE | \
+	 GDMA_DRV_CAP_FLAG_1_HANDLE_RECONFIG_EQE | \
+	 GDMA_DRV_CAP_FLAG_1_PROBE_RECOVERY | \
+	 GDMA_DRV_CAP_FLAG_1_HWC_TIMEOUT_RECOVERY)
+
 #define GDMA_DRV_CAP_FLAGS1 \
 	(GDMA_DRV_CAP_FLAG_1_EQ_SHARING_MULTI_VPORT | \
 	 GDMA_DRV_CAP_FLAG_1_NAPI_WKDONE_FIX | \
 	 GDMA_DRV_CAP_FLAG_1_HWC_TIMEOUT_RECONFIG | \
 	 GDMA_DRV_CAP_FLAG_1_VARIABLE_INDIRECTION_TABLE_SUPPORT | \
 	 GDMA_DRV_CAP_FLAG_1_DEV_LIST_HOLES_SUP | \
-	 GDMA_DRV_CAP_FLAG_1_DYNAMIC_IRQ_ALLOC_SUPPORT | \
-	 GDMA_DRV_CAP_FLAG_1_SELF_RESET_ON_EQE | \
-	 GDMA_DRV_CAP_FLAG_1_HANDLE_RECONFIG_EQE | \
 	 GDMA_DRV_CAP_FLAG_1_HW_VPORT_LINK_AWARE | \
 	 GDMA_DRV_CAP_FLAG_1_PERIODIC_STATS_QUERY | \
 	 GDMA_DRV_CAP_FLAG_1_SKB_LINEARIZE | \
-	 GDMA_DRV_CAP_FLAG_1_PROBE_RECOVERY | \
 	 GDMA_DRV_CAP_FLAG_1_HANDLE_STALL_SQ_RECOVERY | \
-	 GDMA_DRV_CAP_FLAG_1_HWC_TIMEOUT_RECOVERY | \
 	 GDMA_DRV_CAP_FLAG_1_EQ_MSI_UNSHARE_MULTI_VPORT | \
 	 GDMA_DRV_CAP_FLAG_1_DYN_INTERRUPT_MODERATION | \
 	 GDMA_DRV_CAP_FLAG_1_NON_CONTIGUOUS_BUFFERS)
@@ -1044,7 +1113,24 @@ struct gdma_destroy_dm_resp {
 	struct gdma_resp_hdr hdr;
 }; /* HW Data */
 
-int mana_gd_verify_vf_version(struct pci_dev *pdev);
+int mana_gd_verify_vf_version(struct gdma_context *gc);
+int mana_gd_query_max_resources(struct gdma_context *gc);
+int mana_gd_setup(struct gdma_context *gc);
+void mana_gd_cleanup(struct gdma_context *gc);
+int mana_gd_detect_devices(struct gdma_context *gc);
+int mana_gd_init_registers(struct gdma_context *gc);
+irqreturn_t mana_gd_intr(int irq, void *arg);
+void mana_gd_process_eq_events(void *arg);
+
+static inline u32 mana_gd_r32(struct gdma_context *g, u64 offset)
+{
+	return readl(g->bar0_va + offset);
+}
+
+static inline u64 mana_gd_r64(struct gdma_context *g, u64 offset)
+{
+	return readq(g->bar0_va + offset);
+}
 
 int mana_gd_register_device(struct gdma_dev *gd);
 int mana_gd_deregister_device(struct gdma_dev *gd);
@@ -1077,8 +1163,6 @@ void mana_unregister_debugfs(void);
 
 int mana_rdma_service_event(struct gdma_context *gc, enum gdma_service_type event);
 
-int mana_gd_suspend(struct pci_dev *pdev, pm_message_t state);
-int mana_gd_resume(struct pci_dev *pdev);
 
 bool mana_need_log(struct gdma_context *gc, int err);
 
@@ -1089,4 +1173,6 @@ void mana_gd_put_gic(struct gdma_context *gc, bool use_msi_bitmap, int msi);
 int mana_gd_query_device_cfg(struct gdma_context *gc, u32 proto_major_ver,
 			     u32 proto_minor_ver, u32 proto_micro_ver,
 			     u16 *max_num_vports, u8 *bm_hostmode);
+int mana_gd_dev_reset(struct gdma_context *gc);
+
 #endif /* _GDMA_H */
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0013/2651] net: mana: Add support to process throttled EQEs
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (11 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0012/2651] net: mana: Introduce gdma_bus_ops for bus-specific operations Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0014/2651] f2fs: fix to fetch ino via ino_of_node() under cache lock Greg Kroah-Hartman
                   ` (178 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Sahil Chandna, Paolo Abeni,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Sahil Chandna <sahilchandna@linux.microsoft.com>

[ Upstream commit 684603842b78f75835d21fdf5c19ae717ed8eb1a ]

When an event queue nears full, the hardware coalesces the per-CQ
GDMA_EQE_COMPLETION notifications into a single throttle EQE (type 4)
that carries no cq_id. The driver does not handle this event type, so
it falls through to the default case and is dropped. Any CQ whose
completion notification was replaced by the throttle EQE can remain
unserviced, causing its queue to stall.

This was observed internally as a TX stall:

  ens1: NETDEV WATCHDOG: CPU: 45: transmit queue 1 timed out 15133 ms
  mana 7870:00:00.0: HWC: Request timed out: 60000 ms
  mana 7870:00:00.0: Gf stats wk handler: gf stats query timed out.
  ens1: NETDEV WATCHDOG: CPU: 20: transmit queue 0 timed out 15859 ms
  ens1: NETDEV WATCHDOG: CPU: 15: transmit queue 0 timed out 31731 ms
  ens1: NETDEV WATCHDOG: CPU: 21: transmit queue 0 timed out 47603 ms
  ens1: NETDEV WATCHDOG: CPU: 42: transmit queue 0 timed out 62451 ms

Handle the throttle EQE:

- Record up to two child CQs per EQ when a CQ is created with a parent
  EQ. A mana_en EQ serves one TX CQ and one RX CQ, and the HWC EQ
  serves the HWC CQ.
- On a throttle EQE, call the callback of each child CQ that is still
  in cq_table[].
- Before a child CQ is freed, unlink it from its parent EQ and from
  cq_table[] in mana_gd_detach_cq(), then wait for an RCU
  grace period, because mana_gd_intr() reads both under
  rcu_read_lock(). mana_destroy_txq() and mana_destroy_rxq() detach
  the CQ before deleting its NAPI, so the synchronize_net() that NAPI
  deletion already needs also covers the CQ. mana_hwc_destroy_channel()
  detaches the HWC CQ and waits for a grace period before freeing the
  HWC queues.
- Advertise the capability bit for throttled EQE.
- Add a throttle eqe counter per queue.

Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)")
Cc: stable@vger.kernel.org
Signed-off-by: Sahil Chandna <sahilchandna@linux.microsoft.com>
Link: https://patch.msgid.link/20261028084020.2051254-1-sahilchandna@linux.microsoft.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../net/ethernet/microsoft/mana/gdma_main.c   | 88 +++++++++++++++++--
 .../net/ethernet/microsoft/mana/hw_channel.c  |  9 +-
 drivers/net/ethernet/microsoft/mana/mana_en.c | 22 ++++-
 .../ethernet/microsoft/mana/mana_ethtool.c    | 19 +++-
 include/net/mana/gdma.h                       | 19 +++-
 include/net/mana/mana.h                       |  1 +
 6 files changed, 143 insertions(+), 15 deletions(-)

diff --git a/drivers/net/ethernet/microsoft/mana/gdma_main.c b/drivers/net/ethernet/microsoft/mana/gdma_main.c
index b076760b2dc50..5df4deee57846 100644
--- a/drivers/net/ethernet/microsoft/mana/gdma_main.c
+++ b/drivers/net/ethernet/microsoft/mana/gdma_main.c
@@ -754,6 +754,27 @@ void mana_gd_free_service_wq(struct gdma_context *gc)
 	gc->service_wq = NULL;
 }
 
+static void mana_gd_schedule_eq_cqs(struct gdma_queue *eq)
+{
+	struct gdma_context *gc = eq->gdma_dev->gdma_context;
+	struct gdma_queue *cq;
+	u8 i;
+
+	for (i = 0; i < GDMA_EQ_MAX_CHILD_CQ; i++) {
+		cq = rcu_dereference(eq->eq.child_cq[i]);
+
+		if (!cq)
+			continue;
+
+		if (cq->id >= READ_ONCE(gc->max_num_cqs) ||
+		    !gc->cq_table || gc->cq_table[cq->id] != cq)
+			continue;
+
+		if (cq->cq.callback)
+			cq->cq.callback(cq->cq.context, cq);
+	}
+}
+
 static void mana_gd_process_eqe(struct gdma_queue *eq)
 {
 	u32 head = eq->head % (eq->queue_size / GDMA_EQE_SIZE);
@@ -784,6 +805,14 @@ static void mana_gd_process_eqe(struct gdma_queue *eq)
 
 		break;
 
+	case GDMA_EQE_THROTTLE:
+		u64_stats_update_begin(&eq->eq.stats.syncp);
+		u64_stats_inc(&eq->eq.stats.throttle_count);
+		u64_stats_update_end(&eq->eq.stats.syncp);
+
+		mana_gd_schedule_eq_cqs(eq);
+		break;
+
 	case GDMA_EQE_TEST_EVENT:
 		gc->test_event_eq_id = eq->id;
 		complete(&gc->eq_test_event);
@@ -1029,6 +1058,8 @@ static int mana_gd_create_eq(struct gdma_dev *gd,
 	queue->eq.msix_index = INVALID_PCI_MSIX_INDEX;
 	queue->id = INVALID_QUEUE_ID;
 
+	u64_stats_init(&queue->eq.stats.syncp);
+
 	log2_num_entries = ilog2(queue->queue_size / GDMA_EQE_SIZE);
 
 	if (spec->eq.log2_throttle_limit > log2_num_entries) {
@@ -1070,25 +1101,66 @@ static void mana_gd_create_cq(const struct gdma_queue_spec *spec,
 			      struct gdma_queue *queue)
 {
 	u32 log2_num_entries = ilog2(spec->queue_size / GDMA_CQE_SIZE);
+	struct gdma_queue *parent;
+	u8 i;
 
 	queue->head |= INITIALIZED_OWNER_BIT(log2_num_entries);
-	queue->cq.parent = spec->cq.parent_eq;
+	parent = spec->cq.parent_eq;
+	queue->cq.parent = parent;
 	queue->cq.context = spec->cq.context;
 	queue->cq.callback = spec->cq.callback;
+
+	if (!parent)
+		return;
+
+	/* For throttled EQE store the child CQ */
+	for (i = 0; i < GDMA_EQ_MAX_CHILD_CQ; i++) {
+		if (!rcu_access_pointer(parent->eq.child_cq[i])) {
+			rcu_assign_pointer(parent->eq.child_cq[i], queue);
+			return;
+		}
+	}
+
+	WARN_ONCE(1, "mana: EQ %u has no free child CQ slot\n", parent->id);
 }
 
-static void mana_gd_destroy_cq(struct gdma_context *gc,
-			       struct gdma_queue *queue)
+/* Unlink queue from its parent EQ's child_cq[] and from gc->cq_table[].
+ *
+ * Return: true if queue was in the parent EQ's child_cq[]. In that case the
+ * caller must wait for an RCU grace period before freeing queue, because
+ * mana_gd_intr() may still be handling a throttle EQE for it.
+ */
+bool mana_gd_detach_cq(struct gdma_context *gc, struct gdma_queue *queue)
 {
+	struct gdma_queue *eq = queue->cq.parent;
+	bool attached = false;
 	u32 id = queue->id;
+	u8 i;
 
-	if (id >= gc->max_num_cqs)
-		return;
+	if (eq) {
+		for (i = 0; i < GDMA_EQ_MAX_CHILD_CQ; i++) {
+			if (rcu_access_pointer(eq->eq.child_cq[i]) == queue) {
+				RCU_INIT_POINTER(eq->eq.child_cq[i], NULL);
+				attached = true;
+			}
+		}
+	}
 
-	if (!gc->cq_table[id])
-		return;
+	/* Check if CQ might have been detached already, only clear if
+	 * it still points to same queue .
+	 */
+	if (id < gc->max_num_cqs && READ_ONCE(gc->cq_table[id]) == queue)
+		WRITE_ONCE(gc->cq_table[id], NULL);
 
-	gc->cq_table[id] = NULL;
+	return attached;
+}
+
+static void mana_gd_destroy_cq(struct gdma_context *gc,
+			       struct gdma_queue *queue)
+{
+	/* Wait for irq reader holding the cq */
+	if (mana_gd_detach_cq(gc, queue))
+		synchronize_net();
 }
 
 int mana_gd_create_hwc_queue(struct gdma_dev *gd,
diff --git a/drivers/net/ethernet/microsoft/mana/hw_channel.c b/drivers/net/ethernet/microsoft/mana/hw_channel.c
index 263e7c4e29341..2f7f32f55785f 100644
--- a/drivers/net/ethernet/microsoft/mana/hw_channel.c
+++ b/drivers/net/ethernet/microsoft/mana/hw_channel.c
@@ -364,7 +364,7 @@ static void mana_hwc_comp_event(void *ctx, struct gdma_queue *q_self)
 
 	completions = hwc_cq->comp_buf;
 	comp_read = mana_gd_poll_cq(q_self, completions, hwc_cq->queue_depth);
-	WARN_ON_ONCE(comp_read <= 0 || comp_read > hwc_cq->queue_depth);
+	WARN_ON_ONCE(comp_read < 0 || comp_read > hwc_cq->queue_depth);
 
 	for (i = 0; i < comp_read; ++i) {
 		comp_data = *(struct hwc_rx_oob *)completions[i].cqe_data;
@@ -820,9 +820,14 @@ void mana_hwc_destroy_channel(struct gdma_context *gc)
 	 */
 	if (gc->max_num_cqs > 0) {
 		mana_smc_teardown_hwc(&gc->shm_channel, false);
-		gc->max_num_cqs = 0;
+		WRITE_ONCE(gc->max_num_cqs, 0);
 	}
 
+	if (hwc->cq)
+		mana_gd_detach_cq(gc, hwc->cq->gdma_cq);
+
+	synchronize_rcu();
+
 	if (hwc->txq)
 		mana_hwc_destroy_wq(hwc, hwc->txq);
 
diff --git a/drivers/net/ethernet/microsoft/mana/mana_en.c b/drivers/net/ethernet/microsoft/mana/mana_en.c
index 44122c2ef7f98..89af8bf6758b7 100644
--- a/drivers/net/ethernet/microsoft/mana/mana_en.c
+++ b/drivers/net/ethernet/microsoft/mana/mana_en.c
@@ -2672,6 +2672,7 @@ static void mana_deinit_txq(struct mana_port_context *apc, struct mana_txq *txq)
 
 static void mana_destroy_txq(struct mana_port_context *apc)
 {
+	struct gdma_context *gc = apc->ac->gdma_dev->gdma_context;
 	struct napi_struct *napi;
 	int i;
 
@@ -2690,13 +2691,23 @@ static void mana_destroy_txq(struct mana_port_context *apc)
 			napi_synchronize(napi);
 			napi_disable_locked(napi);
 			cancel_work_sync(&apc->tx_qp[i]->tx_cq.dim.work);
-			netif_napi_del_locked(napi);
-			apc->tx_qp[i]->txq.napi_initialized = false;
 		}
 
 		if (apc->tx_qp[i]->tx_object != INVALID_MANA_HANDLE)
 			mana_destroy_wq_obj(apc, GDMA_SQ, apc->tx_qp[i]->tx_object);
 
+		if (apc->tx_qp[i]->txq.napi_initialized) {
+			/* Detach the CQ only after the WQ object is destroyed,
+			 * so a completion EQE that arrives before then still
+			 * finds the CQ in cq_table[] rather than hitting the
+			 * WARN in mana_gd_process_eqe(). One grace period then
+			 * covers both mana_gd_intr() and NAPI users.
+			 */
+			mana_gd_detach_cq(gc, apc->tx_qp[i]->tx_cq.gdma_cq);
+			netif_napi_del_locked(napi);
+			apc->tx_qp[i]->txq.napi_initialized = false;
+		}
+
 		mana_deinit_cq(apc, &apc->tx_qp[i]->tx_cq);
 
 		mana_deinit_txq(apc, &apc->tx_qp[i]->txq);
@@ -2903,7 +2914,6 @@ static void mana_destroy_rxq(struct mana_port_context *apc,
 
 		napi_disable_locked(napi);
 		cancel_work_sync(&rxq->rx_cq.dim.work);
-		netif_napi_del_locked(napi);
 	}
 
 	if (xdp_rxq_info_is_reg(&rxq->xdp_rxq))
@@ -2912,6 +2922,12 @@ static void mana_destroy_rxq(struct mana_port_context *apc,
 	if (rxq->rxobj != INVALID_MANA_HANDLE)
 		mana_destroy_wq_obj(apc, GDMA_RQ, rxq->rxobj);
 
+	if (napi_initialized) {
+		/* See the comment in mana_destroy_txq() */
+		mana_gd_detach_cq(gc, rxq->rx_cq.gdma_cq);
+		netif_napi_del_locked(napi);
+	}
+
 	mana_deinit_cq(apc, &rxq->rx_cq);
 
 	if (rxq->xdp_save_va)
diff --git a/drivers/net/ethernet/microsoft/mana/mana_ethtool.c b/drivers/net/ethernet/microsoft/mana/mana_ethtool.c
index 33db79569d3b6..a91eb12badca4 100644
--- a/drivers/net/ethernet/microsoft/mana/mana_ethtool.c
+++ b/drivers/net/ethernet/microsoft/mana/mana_ethtool.c
@@ -147,7 +147,8 @@ static int mana_get_sset_count(struct net_device *ndev, int stringset)
 		return ARRAY_SIZE(mana_eth_stats) +
 		       ARRAY_SIZE(mana_phy_stats) +
 		       ARRAY_SIZE(mana_hc_stats)  +
-		       num_queues * (MANA_STATS_RX_COUNT + MANA_STATS_TX_COUNT);
+		       num_queues * (MANA_STATS_RX_COUNT + MANA_STATS_TX_COUNT +
+				       MANA_STATS_EQ_COUNT);
 
 	case ETH_SS_PRIV_FLAGS:
 		return MANA_PRIV_FLAG_MAX;
@@ -198,6 +199,9 @@ static void mana_get_strings_stats(struct mana_port_context *apc, u8 **data)
 		ethtool_sprintf(data, "tx_%d_csum_partial", i);
 		ethtool_sprintf(data, "tx_%d_mana_map_err", i);
 	}
+
+	for (i = 0; i < num_queues; i++)
+		ethtool_sprintf(data, "eq_%d_throttle_events", i);
 }
 
 static void mana_get_strings_priv_flags(u8 **data)
@@ -234,6 +238,7 @@ static void mana_get_ethtool_stats(struct net_device *ndev,
 	void *phy_stats = &apc->phy_stats;
 	struct mana_stats_rx *rx_stats;
 	struct mana_stats_tx *tx_stats;
+	struct gdma_eq_stats *eq_stats;
 	unsigned int start;
 	u64 packets, bytes;
 	u64 xdp_redirect;
@@ -251,6 +256,7 @@ static void mana_get_ethtool_stats(struct net_device *ndev,
 	u64 csum_partial;
 	u64 mana_map_err;
 	int q, i = 0, j;
+	u64 throttled;
 
 	if (!apc->port_is_up)
 		return;
@@ -325,6 +331,17 @@ static void mana_get_ethtool_stats(struct net_device *ndev,
 		data[i++] = csum_partial;
 		data[i++] = mana_map_err;
 	}
+
+	for (q = 0; q < num_queues; q++) {
+		eq_stats = &apc->eqs[q].eq->eq.stats;
+
+		do {
+			start = u64_stats_fetch_begin(&eq_stats->syncp);
+			throttled = u64_stats_read(&eq_stats->throttle_count);
+		} while (u64_stats_fetch_retry(&eq_stats->syncp, start));
+
+		data[i++] = throttled;
+	}
 }
 
 static u32 mana_get_rx_ring_count(struct net_device *ndev)
diff --git a/include/net/mana/gdma.h b/include/net/mana/gdma.h
index cdec5558304ff..f43028a398d69 100644
--- a/include/net/mana/gdma.h
+++ b/include/net/mana/gdma.h
@@ -58,6 +58,7 @@ enum gdma_work_request_flags {
 
 enum gdma_eqe_type {
 	GDMA_EQE_COMPLETION		= 3,
+	GDMA_EQE_THROTTLE		= 4,
 	GDMA_EQE_TEST_EVENT		= 64,
 	GDMA_EQE_HWC_INIT_EQ_ID_DB	= 129,
 	GDMA_EQE_HWC_INIT_DATA		= 130,
@@ -286,6 +287,7 @@ struct gdma_dev {
 #define GDMA_EQE_SIZE 16
 #define GDMA_MAX_SQE_SIZE 512
 #define GDMA_MAX_RQE_SIZE 256
+#define GDMA_EQ_MAX_CHILD_CQ 2
 
 #define GDMA_COMP_DATA_SIZE 0x3C
 
@@ -313,6 +315,11 @@ struct gdma_event {
 
 struct gdma_queue;
 
+struct gdma_eq_stats {
+	u64_stats_t throttle_count;
+	struct u64_stats_sync syncp;
+};
+
 struct mana_eq {
 	struct gdma_queue	*eq;
 	struct dentry		*mana_eq_debugfs;
@@ -366,6 +373,10 @@ struct gdma_queue {
 			unsigned int irq;
 
 			u32 log2_throttle_limit;
+
+			struct gdma_eq_stats stats;
+
+			struct gdma_queue __rcu *child_cq[GDMA_EQ_MAX_CHILD_CQ];
 		} eq;
 
 		struct {
@@ -594,6 +605,8 @@ void mana_gd_free_service_wq(struct gdma_context *gc);
 void mana_gd_ring_dim(struct gdma_queue *cq, u32 mod_usec, bool mod_usec_vld,
 		      u32 mod_comps, bool mod_comps_vld);
 
+bool mana_gd_detach_cq(struct gdma_context *gc, struct gdma_queue *queue);
+
 struct gdma_wqe {
 	u32 reserved	:24;
 	u32 last_vbytes	:8;
@@ -748,6 +761,9 @@ enum {
 /* Driver supports non-contiguous queue buffers */
 #define GDMA_DRV_CAP_FLAG_1_NON_CONTIGUOUS_BUFFERS BIT(30)
 
+/* Driver supports handling throttled EQEs */
+#define GDMA_DRV_CAP_FLAG_1_THROTTLED_EVENT_QUEUE BIT_ULL(32)
+
 /* Capabilities in the PCI-only group below rely on dynamic MSI-X allocation
  * and on the servicing and reset paths reached through
  * mana_schedule_serv_work(). Transports that provide neither leave
@@ -772,7 +788,8 @@ enum {
 	 GDMA_DRV_CAP_FLAG_1_HANDLE_STALL_SQ_RECOVERY | \
 	 GDMA_DRV_CAP_FLAG_1_EQ_MSI_UNSHARE_MULTI_VPORT | \
 	 GDMA_DRV_CAP_FLAG_1_DYN_INTERRUPT_MODERATION | \
-	 GDMA_DRV_CAP_FLAG_1_NON_CONTIGUOUS_BUFFERS)
+	 GDMA_DRV_CAP_FLAG_1_NON_CONTIGUOUS_BUFFERS | \
+	 GDMA_DRV_CAP_FLAG_1_THROTTLED_EVENT_QUEUE)
 
 #define GDMA_DRV_CAP_FLAGS2 0
 
diff --git a/include/net/mana/mana.h b/include/net/mana/mana.h
index 8c3dc9d0b2993..e46ba02529c29 100644
--- a/include/net/mana/mana.h
+++ b/include/net/mana/mana.h
@@ -90,6 +90,7 @@ enum mana_priv_flag_bits {
 /* Update this count whenever the respective structures are changed */
 #define MANA_STATS_RX_COUNT (6 + MANA_CQE_COAL_PKTS_8 - 1)
 #define MANA_STATS_TX_COUNT 11
+#define MANA_STATS_EQ_COUNT 1
 
 #define MANA_RX_FRAG_ALIGNMENT 64
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0014/2651] f2fs: fix to fetch ino via ino_of_node() under cache lock
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (12 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0013/2651] net: mana: Add support to process throttled EQEs Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0015/2651] mm/vma: fix expansion of VMA_MIXEDMAP_BIT VMAs Greg Kroah-Hartman
                   ` (177 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, stable, Chao Yu, Jaegeuk Kim,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Chao Yu <chao@kernel.org>

[ Upstream commit cd6d8b1891395b681f2060916a4b83880b765698 ]

In f2fs_writeback_node_caches(), it's better to fetch ino via ino_of_node()
under cache lock, otherwise, node cache content may become stale after cache
is unlocked due to racing w/ truncation.

Commit 493b9dc8b52c ("f2fs: cache: use node cache") fixes similar issue in
f2fs_flush_inline_data() introduced in commit 34c061ad85a2 ("f2fs: Avoid double
lock for cp_rwsem during checkpoint").

Cc: stable@kernel.org
Fixes: 2049d4fcb057 ("f2fs: avoid multiple node page writes due to inline_data")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
[ sashal: adapted cache-entry operations in f2fs_writeback_node_caches() to folio operations in f2fs_sync_node_pages() ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/f2fs/node.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index e166c5a5d1703..dff42b74d66f8 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -2195,9 +2195,11 @@ int f2fs_sync_node_pages(struct f2fs_sb_info *sbi,
 
 			/* flush inline_data */
 			if (folio_test_f2fs_inline(folio)) {
+				nid_t ino = ino_of_node(folio);
+
 				folio_clear_f2fs_inline(folio);
 				folio_unlock(folio);
-				flush_inline_data(sbi, ino_of_node(folio));
+				flush_inline_data(sbi, ino);
 				goto lock_node;
 			}
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0015/2651] mm/vma: fix expansion of VMA_MIXEDMAP_BIT VMAs
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (13 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0014/2651] f2fs: fix to fetch ino via ino_of_node() under cache lock Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0016/2651] platform/x86: hp-wmi: Add OMEN board 8A17 thermal profile support Greg Kroah-Hartman
                   ` (176 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Lorenzo Stoakes (ARM), Andrew Morton,
	Luiz Capitulino, Vlastimil Babka (SUSE), Pedro Falcato,
	Liam R. Howlett, Jann Horn, Jakub Matěna, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Lorenzo Stoakes (ARM) <ljs@kernel.org>

[ Upstream commit 8146c6478224d8f6395c6b08a19c344a56d79867 ]

Commit ca3d76b0aa80 ("mm: add merging after mremap resize") combined
merging with expansion of mremap()'d VMAs, however it also unintentionally
disallowed the expansion of unmergeable VMAs.

Previously it was possible to expand a mixed mapping which mremap() had
already ensured was a legal expansion.

This is clearly seen in the mremap() logic, as it checks
vma_is_fixed_mapping() to determine legality of an expansion rather than
vma_can_merge().

Additionally, copy_vma() allows for a failed merge to result in a new VMA
being instantiated if MREMAP_MAYMOVE is specified.

However, this is not attempted, as a failure in vma_merge_extend() is
assumed to be an -ENOMEM failure.

Since vma_merge_extend() is used exclusively by mremap() to perform a merge
and/or expansion, resolve the issue by invoking vma_expand() for
unmergeable VMAs there.

Explicitly assert that the VMA is both non-fixed and a mixed mapping.
This provides double insurance against broken changes in future.

Note that khugepaged_enter_vma() (which vma_merge_new_range() runs) is
redundant in this case, as a mixed mapping is not subject to khugepaged.

Also update the VMA userland tests to add a required predicate.

Link: https://lore.kernel.org/20261023-vma-expansion-fix-v1-1-6142baf1f46b@kernel.org
Fixes: ca3d76b0aa80 ("mm: add merging after mremap resize")
Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reported-by: Luiz Capitulino <luizcap@redhat.com>
Closes: https://lore.kernel.org/all/20261023023106.515365-1-luizcap@redhat.com/
Acked-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Reviewed-by: Pedro Falcato <pfalcato@suse.de>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Jann Horn <jannh@google.com>
Cc: Jakub Matěna <matenajakub@gmail.com>
Cc: <stable@vger.kernel.org>
[ sashal: Replaced vma_can_merge() and vma_is_fixed_mapping() with equivalent flag checks and is_vm_hugetlb_page(). ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 mm/vma.c | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/mm/vma.c b/mm/vma.c
index e382fd32f0fff..9863668b9d6bc 100644
--- a/mm/vma.c
+++ b/mm/vma.c
@@ -1882,12 +1882,28 @@ struct vm_area_struct *vma_merge_extend(struct vma_iterator *vmi,
 					struct vm_area_struct *vma,
 					unsigned long delta)
 {
-	VMG_VMA_STATE(vmg, vmi, vma, vma, vma->vm_end, vma->vm_end + delta);
+	const bool can_merge = !vma_test_any(vma, VMA_PFNMAP_BIT,
+					   VMA_DONTEXPAND_BIT, VMA_MIXEDMAP_BIT) &&
+			      !is_vm_hugetlb_page(vma);
+	const unsigned long start =
+		can_merge ? vma->vm_end : vma->vm_start;
+	VMG_VMA_STATE(vmg, vmi, vma, vma, start, vma->vm_end + delta);
 
-	vmg.next = vma_iter_next_rewind(vmi, NULL);
 	vmg.middle = NULL; /* We use the VMA to populate VMG fields only. */
 
-	return vma_merge_new_range(&vmg);
+	if (can_merge) {
+		vmg.next = vma_iter_next_rewind(vmi, NULL);
+		return vma_merge_new_range(&vmg);
+	}
+
+	/* Mixed mappings are permitted to be expanded, not merged. */
+	VM_WARN_ON_ONCE(vma_test_any(vma, VMA_PFNMAP_BIT, VMA_DONTEXPAND_BIT));
+	VM_WARN_ON_ONCE(!vma_test(vma, VMA_MIXEDMAP_BIT));
+	vma_prev(vmi); /* Reposition to start of VMA. */
+	vmg.target = vma;
+	if (vma_expand(&vmg))
+		return NULL;
+	return vma;
 }
 
 void unlink_file_vma_batch_init(struct unlink_vma_file_batch *vb)
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0016/2651] platform/x86: hp-wmi: Add OMEN board 8A17 thermal profile support
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (14 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0015/2651] mm/vma: fix expansion of VMA_MIXEDMAP_BIT VMAs Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0017/2651] inet: frags: bound the wmem charge of the socket completing a reassembly Greg Kroah-Hartman
                   ` (175 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Ciro Pedrini, Ilpo Järvinen,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Ciro Pedrini <ciro.pedrini@gmail.com>

[ Upstream commit d35a1ea827a2efaea7fb059ffafefae7c13b9556 ]

The HP OMEN 17-ck1xxx (board 8A17) isn't in omen_thermal_profile_boards,
so hp-wmi uses the generic thermal profile query. The firmware only
stores that value and never acts on it, so the EC stays in its default
mode and the CPU is held at 45 W whatever profile is selected.

The board uses the OMEN interface (mode byte at EC 0x95, thermal policy
v1) and also needs the timed profile quirk: without it, the EC drops
back to the default mode about two minutes after each profile change.

Add 8A17 to omen_thermal_profile_boards and
omen_timed_thermal_profile_boards.

With this, all three profiles work and sustained package power under
load goes from 45 W to 56-79 W.

Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Ciro Pedrini <ciro.pedrini@gmail.com>
Link: https://patch.msgid.link/20260925205226.883724-1-ciro.pedrini@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
[ sashal: Adjusted board-list context to account for the missing neighboring 8A18 entry. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/platform/x86/hp/hp-wmi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
index 8a0fe50ef0c29..022100d9d5503 100644
--- a/drivers/platform/x86/hp/hp-wmi.c
+++ b/drivers/platform/x86/hp/hp-wmi.c
@@ -207,7 +207,7 @@ static const char * const omen_thermal_profile_boards[] = {
 	"886B", "886C", "88C8", "88CB", "88D1", "88D2", "88F4", "88F5", "88F6",
 	"88F7", "88FD", "88FE", "88FF",
 	"8900", "8901", "8902", "8912", "8917", "8918", "8949", "894A", "89EB",
-	"8A15", "8A42", "8A43",
+	"8A15", "8A17", "8A42", "8A43",
 	"8BAD",
 	"8C58",
 	"8E41",
@@ -227,7 +227,7 @@ static const char * const omen_thermal_profile_force_v0_boards[] = {
  * "balanced" when reaching zero.
  */
 static const char * const omen_timed_thermal_profile_boards[] = {
-	"8A15", "8A42",
+	"8A15", "8A17", "8A42",
 	"8BAD",
 };
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0017/2651] inet: frags: bound the wmem charge of the socket completing a reassembly
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (15 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0016/2651] platform/x86: hp-wmi: Add OMEN board 8A17 thermal profile support Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0018/2651] mm/userfaultfd: compare exact registration modes before skipping Greg Kroah-Hartman
                   ` (174 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Paolo Abeni, Eric Dumazet,
	Ido Schimmel, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Eric Dumazet <edumazet@kernel.org>

[ Upstream commit b71c101bbb9814d163c00234d43c41f0a17907d4 ]

When a socket owned fragment completes a reassembly queue,
inet_frag_reasm_prepare() and inet_frag_reasm_finish() charge the
truesize of all other fragments to its sk_wmem_alloc. These fragments
were orphaned when queued, and might have been sent by someone else,
for instance padded TUN packets.

Commit 3ae20e4697eb ("inet: frags: limit the truesize of a reassembly
queue") bounds this charge to INT_MAX / 2 per queue, but a socket can
complete several queues while the reassembled skbs are still alive,
for instance held in a qdisc. sk_wmem_alloc can then go past INT_MAX,
refcount_add() saturates it with a WARN, and the socket is leaked.

This is reachable from an unprivileged user/network namespace, by
raising ipfrag_high_thresh.

Refuse the reassembly if the charge would push sk_wmem_alloc above
2 * sk_sndbuf, the bound ip_append_data() uses, plus 4MB of slack for
fragments inflated by a refragmentation with a small MTU, and never
above INT_MAX / 2. The cap matters for tun sockets, which use
sk_sndbuf = INT_MAX, and whose skbs are still owned when act_ct or
openvswitch reassemble them at ingress.

Several queues can complete at the same time on different cpus for
the same socket, so the charge is reserved with a cmpxchg() loop in
inet_frag_reasm_prepare(), before it modifies the queue, and settled
in inet_frag_reasm_finish(). Move the size checks of ip_frag_reasm(),
ip6_frag_reasm() and nf_ct_frag6_reasm() before
inet_frag_reasm_prepare(), using the first fragment which becomes the
head, so that a successful inet_frag_reasm_prepare() is always followed
by inet_frag_reasm_finish(). All callers already kill the queue when
inet_frag_reasm_prepare() returns NULL.

Found by code inspection (AI review), not reproduced.

Fixes: 18685451fc4e ("inet: inet_defrag: prevent sk release while still in use")
Reported-by: Paolo Abeni <pabeni@redhat.com>
Closes: https://lore.kernel.org/netdev/24feda7d-ae49-45af-9596-2cc5f149f28e@redhat.com/
Signed-off-by: Eric Dumazet <edumazet@kernel.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20261104122927.1033747-1-edumazet@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 net/ipv4/inet_fragment.c                | 61 ++++++++++++++++++++++---
 net/ipv4/ip_fragment.c                  | 13 ++++--
 net/ipv6/netfilter/nf_conntrack_reasm.c | 13 ++++--
 net/ipv6/reassembly.c                   | 13 ++++--
 4 files changed, 78 insertions(+), 22 deletions(-)

diff --git a/net/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c
index 0b8d22ffafca6..f330d0a398233 100644
--- a/net/ipv4/inet_fragment.c
+++ b/net/ipv4/inet_fragment.c
@@ -17,6 +17,7 @@
 #include <linux/rtnetlink.h>
 #include <linux/slab.h>
 #include <linux/rhashtable.h>
+#include <linux/sizes.h>
 
 #include <net/sock.h>
 #include <net/inet_frag.h>
@@ -519,6 +520,43 @@ int inet_frag_queue_insert(struct inet_frag_queue *q, struct sk_buff *skb,
 }
 EXPORT_SYMBOL(inet_frag_queue_insert);
 
+/* When a socket owned fragment completes a queue, the truesize of all
+ * other fragments is charged to its sk_wmem_alloc, although they were
+ * orphaned when queued and possibly sent by someone else.
+ * Bound this like ip_append_data() bounds the memory a socket can
+ * allocate (2 * sk_sndbuf), plus slack for fragments inflated by a
+ * refragmentation using a small MTU. Otherwise, several reassembled skbs
+ * alive at the same time can saturate sk_wmem_alloc, and leak the socket.
+ *
+ * Several queues can complete at the same time for the same socket,
+ * and some sockets (tun) use sk_sndbuf = INT_MAX. The charge is reserved
+ * with a cmpxchg() loop, a refcount_t has no helper for this.
+ */
+#define INET_FRAG_WMEM_SLACK	SZ_4M
+
+static bool inet_frag_wmem_reserve(struct sock *sk, unsigned int charge)
+{
+	u64 limit = 2ULL * READ_ONCE(sk->sk_sndbuf) + INET_FRAG_WMEM_SLACK;
+	int old = refcount_read(&sk->sk_wmem_alloc);
+
+	limit = min_t(u64, limit, INET_FRAG_MAX_TRUESIZE);
+	do {
+		if (old <= 0 || (u64)old + charge > limit)
+			return false;
+	} while (!atomic_try_cmpxchg(&sk->sk_wmem_alloc.refs, &old,
+				     old + charge));
+
+	return true;
+}
+
+static void inet_frag_wmem_adjust(struct sock *sk, int delta)
+{
+	if (delta >= 0)
+		refcount_add(delta, &sk->sk_wmem_alloc);
+	else
+		WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc));
+}
+
 void *inet_frag_reasm_prepare(struct inet_frag_queue *q, struct sk_buff *skb,
 			      struct sk_buff *parent)
 {
@@ -530,6 +568,11 @@ void *inet_frag_reasm_prepare(struct inet_frag_queue *q, struct sk_buff *skb,
 	int delta;
 
 	if (sk && is_skb_wmem(skb)) {
+		/* skb->truesize is already charged to sk, and is part of
+		 * q->truesize. inet_frag_reasm_finish() settles the charge.
+		 */
+		if (!inet_frag_wmem_reserve(sk, q->truesize - skb->truesize))
+			return NULL;
 		/* TX: skb->sk might have been passed as argument to
 		 * dst->output and must remain valid until tx completes.
 		 *
@@ -605,17 +648,18 @@ void *inet_frag_reasm_prepare(struct inet_frag_queue *q, struct sk_buff *skb,
 
 out_restore_sk:
 	if (orig_truesize) {
-		int ts_delta = head->truesize - orig_truesize;
-
 		/* if this reassembled skb is fragmented later,
 		 * fraglist skbs will get skb->sk assigned from head->sk,
 		 * and each frag skb will be released via sock_wfree.
-		 *
-		 * Update sk_wmem_alloc.
 		 */
 		head->sk = sk;
 		head->destructor = destructor;
-		refcount_add(ts_delta, &sk->sk_wmem_alloc);
+		/* On failure, head stays in the queue and will be freed
+		 * with the queue: only charge its truesize.
+		 */
+		if (!nextp)
+			inet_frag_wmem_adjust(sk, (int)head->truesize -
+						  (int)q->truesize);
 	}
 
 	return nextp;
@@ -626,7 +670,6 @@ void inet_frag_reasm_finish(struct inet_frag_queue *q, struct sk_buff *head,
 			    void *reasm_data, bool try_coalesce)
 {
 	struct sock *sk = is_skb_wmem(head) ? head->sk : NULL;
-	const unsigned int head_truesize = head->truesize;
 	struct sk_buff **nextp = reasm_data;
 	struct rb_node *rbn;
 	struct sk_buff *fp;
@@ -691,8 +734,12 @@ void inet_frag_reasm_finish(struct inet_frag_queue *q, struct sk_buff *head,
 	head->tstamp = q->stamp;
 	head->tstamp_type = q->tstamp_type;
 
+	/* After inet_frag_reasm_prepare(), q->truesize is charged to sk.
+	 * sum_truesize also includes what it added (skb_unclone() and
+	 * frag_list clone).
+	 */
 	if (sk)
-		refcount_add(sum_truesize - head_truesize, &sk->sk_wmem_alloc);
+		inet_frag_wmem_adjust(sk, sum_truesize - (int)q->truesize);
 }
 EXPORT_SYMBOL(inet_frag_reasm_finish);
 
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c
index 36105dd192823..ef7fd61284a3f 100644
--- a/net/ipv4/ip_fragment.c
+++ b/net/ipv4/ip_fragment.c
@@ -413,16 +413,19 @@ static int ip_frag_reasm(struct ipq *qp, struct sk_buff *skb,
 		goto out_fail;
 	}
 
+	/* Check the size on the first fragment, which will become the head:
+	 * inet_frag_reasm_finish() must follow inet_frag_reasm_prepare().
+	 */
+	len = ip_hdrlen(skb_rb_first(&qp->q.rb_fragments)) + qp->q.len;
+	err = -E2BIG;
+	if (len > 65535)
+		goto out_oversize;
+
 	/* Make the one we just received the head. */
 	reasm_data = inet_frag_reasm_prepare(&qp->q, skb, prev_tail);
 	if (!reasm_data)
 		goto out_nomem;
 
-	len = ip_hdrlen(skb) + qp->q.len;
-	err = -E2BIG;
-	if (len > 65535)
-		goto out_oversize;
-
 	inet_frag_reasm_finish(&qp->q, skb, reasm_data,
 			       ip_frag_coalesce_ok(qp));
 
diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c
index 599c49bf0a0af..02341c64baaa6 100644
--- a/net/ipv6/netfilter/nf_conntrack_reasm.c
+++ b/net/ipv6/netfilter/nf_conntrack_reasm.c
@@ -330,11 +330,10 @@ static int nf_ct_frag6_reasm(struct frag_queue *fq, struct sk_buff *skb,
 	if (unlikely(ecn == 0xff))
 		goto err;
 
-	reasm_data = inet_frag_reasm_prepare(&fq->q, skb, prev_tail);
-	if (!reasm_data)
-		goto err;
-
-	payload_len = -skb_network_offset(skb) -
+	/* Check the size on the first fragment, which will become the head:
+	 * inet_frag_reasm_finish() must follow inet_frag_reasm_prepare().
+	 */
+	payload_len = -skb_network_offset(skb_rb_first(&fq->q.rb_fragments)) -
 		       sizeof(struct ipv6hdr) + fq->q.len -
 		       sizeof(struct frag_hdr);
 	if (payload_len > IPV6_MAXPLEN) {
@@ -343,6 +342,10 @@ static int nf_ct_frag6_reasm(struct frag_queue *fq, struct sk_buff *skb,
 		goto err;
 	}
 
+	reasm_data = inet_frag_reasm_prepare(&fq->q, skb, prev_tail);
+	if (!reasm_data)
+		goto err;
+
 	/* We have to remove fragment header from datagram and to relocate
 	 * header in order to calculate ICV correctly. */
 	skb_network_header(skb)[fq->nhoffset] = skb_transport_header(skb)[0];
diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c
index 8418ed9423f4b..91a65fe673500 100644
--- a/net/ipv6/reassembly.c
+++ b/net/ipv6/reassembly.c
@@ -275,16 +275,19 @@ static int ip6_frag_reasm(struct frag_queue *fq, struct sk_buff *skb,
 	if (unlikely(ecn == 0xff))
 		goto out_fail;
 
-	reasm_data = inet_frag_reasm_prepare(&fq->q, skb, prev_tail);
-	if (!reasm_data)
-		goto out_oom;
-
-	payload_len = -skb_network_offset(skb) -
+	/* Check the size on the first fragment, which will become the head:
+	 * inet_frag_reasm_finish() must follow inet_frag_reasm_prepare().
+	 */
+	payload_len = -skb_network_offset(skb_rb_first(&fq->q.rb_fragments)) -
 		       sizeof(struct ipv6hdr) + fq->q.len -
 		       sizeof(struct frag_hdr);
 	if (payload_len > IPV6_MAXPLEN)
 		goto out_oversize;
 
+	reasm_data = inet_frag_reasm_prepare(&fq->q, skb, prev_tail);
+	if (!reasm_data)
+		goto out_oom;
+
 	/* We have to remove fragment header from datagram and to relocate
 	 * header in order to calculate ICV correctly. */
 	nhoff = fq->nhoffset;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0018/2651] mm/userfaultfd: compare exact registration modes before skipping
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (16 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0017/2651] inet: frags: bound the wmem charge of the socket completing a reassembly Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:20 ` [PATCH 7.3 0019/2651] alpha: select SYSCTL_EXCEPTION_TRACE Greg Kroah-Hartman
                   ` (173 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Gregory Price (Meta),
	Muhammad Usama Anjum, David Hildenbrand (Arm), Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Gregory Price <gourry@gourry.net>

[ Upstream commit 05f64f211a25f7d9771d4fde109aad97174a1cf3 ]

Changing registration from MISSING|WP to WP returns success but leaves
MISSING enabled. The no-op check sees that WP is already set and skips
the update, so later accesses to missing pages still wait for userspace.

Skip the update only when the current and requested UFFD modes match
exactly.

Fixes: 63b2d4174c4a ("userfaultfd: wp: add the writeprotect API to userfaultfd ioctl")
Cc: stable@vger.kernel.org
Signed-off-by: Gregory Price (Meta) <gourry@gourry.net>
[ david: apply fixup from Lorenzo ]
Tested-by: Muhammad Usama Anjum <usama.anjum@arm.com>
Link: https://patch.msgid.link/20261031-fixes_core-v3-26-d6437171ecc3@kernel.org
Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 mm/userfaultfd.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/mm/userfaultfd.c
+++ b/mm/userfaultfd.c
@@ -2307,6 +2307,7 @@ static int userfaultfd_register_range(st
 
 	for_each_vma_range(vmi, vma, end) {
 		const bool any_mode_removed = vma->vm_flags & __VM_UFFD_FLAGS & ~vm_flags;
+		const vma_flags_t curr_vma_flags = vma_flags_and_mask(&vma->flags, __VMA_UFFD_FLAGS);
 
 		cond_resched();
 
@@ -2320,7 +2321,7 @@ static int userfaultfd_register_range(st
 		 * userfaultfd and with the right tracking mode too.
 		 */
 		if (vma->vm_userfaultfd_ctx.ctx == ctx &&
-		    vma_test_all_mask(vma, vma_flags))
+		    vma_flags_same_pair(&curr_vma_flags, &vma_flags))
 			goto skip;
 
 		/*



^ permalink raw reply	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0019/2651] alpha: select SYSCTL_EXCEPTION_TRACE
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (17 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0018/2651] mm/userfaultfd: compare exact registration modes before skipping Greg Kroah-Hartman
@ 2026-11-18 14:20 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0020/2651] Bluetooth: Move H:4 reassembly into the Bluetooth core Greg Kroah-Hartman
                   ` (172 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:20 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Matt Turner, Magnus Lindholm,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Matt Turner <mattst88@gmail.com>

[ Upstream commit e517a172b77601839e1c52ac4303602e285804bb ]

Report unhandled user faults the way other architectures do, and hook up
the debug.exception-trace sysctl that controls the reporting.

The message gives the faulting address, the PC and the user stack
pointer, and is rate limited.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Matt Turner <mattst88@gmail.com>
Tested-by: Magnus Lindholm <linmag7@gmail.com>
Reviewed-by: Magnus Lindholm <linmag7@gmail.com>
Link: https://lore.kernel.org/r/20260905-arch-kconfig-options-v2-v2-17-83e8245761a2@gmail.com
Signed-off-by: Magnus Lindholm <linmag7@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/alpha/Kconfig    |  1 +
 arch/alpha/mm/fault.c | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
index e53ef2d884636..c9aba0ab96e5e 100644
--- a/arch/alpha/Kconfig
+++ b/arch/alpha/Kconfig
@@ -44,6 +44,7 @@ config ALPHA
 	select MMU_GATHER_NO_RANGE
 	select MMU_GATHER_RCU_TABLE_FREE
 	select SPARSEMEM_EXTREME if SPARSEMEM
+	select SYSCTL_EXCEPTION_TRACE
 	select ZONE_DMA
 	select TRACE_IRQFLAGS_SUPPORT
 	select ARCH_WANT_FRAME_POINTERS
diff --git a/arch/alpha/mm/fault.c b/arch/alpha/mm/fault.c
index 53e170e965915..63a24afa7a155 100644
--- a/arch/alpha/mm/fault.c
+++ b/arch/alpha/mm/fault.c
@@ -28,8 +28,32 @@
 #include <linux/uaccess.h>
 #include <linux/perf_event.h>
 
+#include <asm/pal.h>
+
 extern void die_if_kernel(char *,struct pt_regs *,long, unsigned long *);
 
+int show_unhandled_signals = 1;
+
+static void
+show_signal_msg(struct pt_regs *regs, unsigned long address, int signo,
+		const char *desc)
+{
+	const char *level;
+
+	if (!show_unhandled_signals || !unhandled_signal(current, signo))
+		return;
+	if (!printk_ratelimit())
+		return;
+
+	/* Losing init is fatal, so shout about it.  */
+	level = task_pid_nr(current) > 1 ? KERN_INFO : KERN_EMERG;
+
+	printk("%s%s[%d]: %s at %016lx pc %016lx sp %016lx\n",
+	       level, current->comm, task_pid_nr(current), desc,
+	       address, regs->pc, rdusp());
+	print_vma_addr(KERN_CONT "  in ", regs->pc);
+	printk(KERN_CONT "\n");
+}
 
 /*
  * Force a new ASN for a task.
@@ -223,6 +247,8 @@ do_page_fault(unsigned long address, unsigned long mmcsr,
 	mmap_read_unlock(mm);
 	/* Send a sigbus, regardless of whether we were in kernel
 	   or user mode.  */
+	if (user_mode(regs))
+		show_signal_msg(regs, address, SIGBUS, "bus error");
 	force_sig_fault(SIGBUS, BUS_ADRERR, (void __user *) address);
 	if (!user_mode(regs))
 		goto no_context;
@@ -244,6 +270,9 @@ do_page_fault(unsigned long address, unsigned long mmcsr,
 	return;
 
  do_sigsegv:
+	show_signal_msg(regs, address, SIGSEGV,
+			si_code == SEGV_MAPERR ? "unmapped access"
+					       : "access violation");
 	force_sig_fault(SIGSEGV, si_code, (void __user *) address);
 	return;
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0020/2651] Bluetooth: Move H:4 reassembly into the Bluetooth core
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (18 preceding siblings ...)
  2026-11-18 14:20 ` [PATCH 7.3 0019/2651] alpha: select SYSCTL_EXCEPTION_TRACE Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0021/2651] Bluetooth: btusb: Build the driver from multiple source files Greg Kroah-Hartman
                   ` (171 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Luiz Augusto von Dentz, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

[ Upstream commit 5299db91df03894253e8fa08627cfb9ec1429e89 ]

h4_recv_buf() is currently implemented in hci_h4.c which is only built as
part of the hci_uart module, and only when CONFIG_BT_HCIUART_H4 is
enabled. That makes the H:4 reassembly logic unusable by drivers which do
not depend on hci_uart, e.g. btusb which needs it to implement Bulk
Serialization Mode.

Move the transport agnostic part into the Bluetooth core as
h4_recv_skb(), which takes a struct hci_dev instead of a struct hci_uart,
along with struct h4_recv_pkt and the H4_RECV_* helpers, and keep
h4_recv_buf() as a thin wrapper for the hci_uart protocols.

Since every Bluetooth driver already depends on the bluetooth module this
introduces no new module dependency and no new Kconfig symbol.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Stable-dep-of: df5e35f1663a ("Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/bluetooth/hci_h4.c     | 123 ++-----------------------
 drivers/bluetooth/hci_uart.h   |  39 +-------
 include/net/bluetooth/hci_h4.h |  60 +++++++++++++
 net/bluetooth/Makefile         |   2 +-
 net/bluetooth/hci_h4.c         | 160 +++++++++++++++++++++++++++++++++
 5 files changed, 229 insertions(+), 155 deletions(-)
 create mode 100644 include/net/bluetooth/hci_h4.h
 create mode 100644 net/bluetooth/hci_h4.c

diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c
index 7673727074985..cbdf51458ec3c 100644
--- a/drivers/bluetooth/hci_h4.c
+++ b/drivers/bluetooth/hci_h4.c
@@ -29,6 +29,7 @@
 
 #include <net/bluetooth/bluetooth.h>
 #include <net/bluetooth/hci_core.h>
+#include <net/bluetooth/hci_h4.h>
 
 #include "hci_uart.h"
 
@@ -112,8 +113,9 @@ static int h4_recv(struct hci_uart *hu, const void *data, int count)
 	if (!h4)
 		return -ENODEV;
 
-	h4->rx_skb = h4_recv_buf(hu, h4->rx_skb, data, count,
-				 h4_recv_pkts, ARRAY_SIZE(h4_recv_pkts));
+	h4->rx_skb = h4_recv_skb(hu->hdev, &hu->alignment, &hu->padding,
+				 h4->rx_skb, data, count, h4_recv_pkts,
+				 ARRAY_SIZE(h4_recv_pkts));
 	if (IS_ERR(h4->rx_skb)) {
 		int err = PTR_ERR(h4->rx_skb);
 		bt_dev_err(hu->hdev, "Frame reassembly failed (%d)", err);
@@ -155,120 +157,7 @@ struct sk_buff *h4_recv_buf(struct hci_uart *hu, struct sk_buff *skb,
 			    const unsigned char *buffer, int count,
 			    const struct h4_recv_pkt *pkts, int pkts_count)
 {
-	u8 alignment = hu->alignment ? hu->alignment : 1;
-	struct hci_dev *hdev = hu->hdev;
-
-	/* Check for error from previous call */
-	if (IS_ERR(skb))
-		skb = NULL;
-
-	while (count) {
-		int i, len;
-
-		/* remove padding bytes from buffer */
-		for (; hu->padding && count > 0; hu->padding--) {
-			count--;
-			buffer++;
-		}
-		if (!count)
-			break;
-
-		if (!skb) {
-			for (i = 0; i < pkts_count; i++) {
-				if (buffer[0] != (&pkts[i])->type)
-					continue;
-
-				skb = bt_skb_alloc((&pkts[i])->maxlen,
-						   GFP_ATOMIC);
-				if (!skb)
-					return ERR_PTR(-ENOMEM);
-
-				hci_skb_pkt_type(skb) = (&pkts[i])->type;
-				hci_skb_expect(skb) = (&pkts[i])->hlen;
-				break;
-			}
-
-			/* Check for invalid packet type */
-			if (!skb)
-				return ERR_PTR(-EILSEQ);
-
-			count -= 1;
-			buffer += 1;
-		}
-
-		len = min_t(uint, hci_skb_expect(skb) - skb->len, count);
-		skb_put_data(skb, buffer, len);
-
-		count -= len;
-		buffer += len;
-
-		/* Check for partial packet */
-		if (skb->len < hci_skb_expect(skb))
-			continue;
-
-		for (i = 0; i < pkts_count; i++) {
-			if (hci_skb_pkt_type(skb) == (&pkts[i])->type)
-				break;
-		}
-
-		if (i >= pkts_count) {
-			kfree_skb(skb);
-			return ERR_PTR(-EILSEQ);
-		}
-
-		if (skb->len == (&pkts[i])->hlen) {
-			u16 dlen;
-
-			switch ((&pkts[i])->lsize) {
-			case 0:
-				/* No variable data length */
-				dlen = 0;
-				break;
-			case 1:
-				/* Single octet variable length */
-				dlen = skb->data[(&pkts[i])->loff];
-				hci_skb_expect(skb) += dlen;
-
-				if (skb_tailroom(skb) < dlen) {
-					kfree_skb(skb);
-					return ERR_PTR(-EMSGSIZE);
-				}
-				break;
-			case 2:
-				/* Double octet variable length */
-				dlen = get_unaligned_le16(skb->data +
-							  (&pkts[i])->loff);
-				hci_skb_expect(skb) += dlen;
-
-				if (skb_tailroom(skb) < dlen) {
-					kfree_skb(skb);
-					return ERR_PTR(-EMSGSIZE);
-				}
-				break;
-			default:
-				/* Unsupported variable length */
-				kfree_skb(skb);
-				return ERR_PTR(-EILSEQ);
-			}
-
-			if (!dlen) {
-				hu->padding = (skb->len + 1) % alignment;
-				hu->padding = (alignment - hu->padding) % alignment;
-
-				/* No more data, complete frame */
-				(&pkts[i])->recv(hdev, skb);
-				skb = NULL;
-			}
-		} else {
-			hu->padding = (skb->len + 1) % alignment;
-			hu->padding = (alignment - hu->padding) % alignment;
-
-			/* Complete frame */
-			(&pkts[i])->recv(hdev, skb);
-			skb = NULL;
-		}
-	}
-
-	return skb;
+	return h4_recv_skb(hu->hdev, &hu->alignment, &hu->padding, skb, buffer,
+			   count, pkts, pkts_count);
 }
 EXPORT_SYMBOL_GPL(h4_recv_buf);
diff --git a/drivers/bluetooth/hci_uart.h b/drivers/bluetooth/hci_uart.h
index 48ac7ca9334e5..7fbe8dffab988 100644
--- a/drivers/bluetooth/hci_uart.h
+++ b/drivers/bluetooth/hci_uart.h
@@ -8,6 +8,8 @@
  *  Copyright (C) 2004-2005  Marcel Holtmann <marcel@holtmann.org>
  */
 
+#include <net/bluetooth/hci_h4.h>
+
 #ifndef N_HCI
 #define N_HCI	15
 #endif
@@ -121,43 +123,6 @@ void hci_uart_set_flow_control(struct hci_uart *hu, bool enable);
 void hci_uart_set_speeds(struct hci_uart *hu, unsigned int init_speed,
 			 unsigned int oper_speed);
 
-struct h4_recv_pkt {
-	u8  type;	/* Packet type */
-	u8  hlen;	/* Header length */
-	u8  loff;	/* Data length offset in header */
-	u8  lsize;	/* Data length field size */
-	u16 maxlen;	/* Max overall packet length */
-	int (*recv)(struct hci_dev *hdev, struct sk_buff *skb);
-};
-
-#define H4_RECV_ACL \
-	.type = HCI_ACLDATA_PKT, \
-	.hlen = HCI_ACL_HDR_SIZE, \
-	.loff = 2, \
-	.lsize = 2, \
-	.maxlen = HCI_MAX_FRAME_SIZE \
-
-#define H4_RECV_SCO \
-	.type = HCI_SCODATA_PKT, \
-	.hlen = HCI_SCO_HDR_SIZE, \
-	.loff = 2, \
-	.lsize = 1, \
-	.maxlen = HCI_MAX_SCO_SIZE
-
-#define H4_RECV_EVENT \
-	.type = HCI_EVENT_PKT, \
-	.hlen = HCI_EVENT_HDR_SIZE, \
-	.loff = 1, \
-	.lsize = 1, \
-	.maxlen = HCI_MAX_EVENT_SIZE
-
-#define H4_RECV_ISO \
-	.type = HCI_ISODATA_PKT, \
-	.hlen = HCI_ISO_HDR_SIZE, \
-	.loff = 2, \
-	.lsize = 2, \
-	.maxlen = HCI_MAX_FRAME_SIZE \
-
 #ifdef CONFIG_BT_HCIUART_H4
 int h4_init(void);
 int h4_deinit(void);
diff --git a/include/net/bluetooth/hci_h4.h b/include/net/bluetooth/hci_h4.h
new file mode 100644
index 0000000000000..a37e7df8c9ce8
--- /dev/null
+++ b/include/net/bluetooth/hci_h4.h
@@ -0,0 +1,60 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ *  Bluetooth HCI H:4 packet reassembly
+ *
+ *  Copyright (C) 2000-2001  Qualcomm Incorporated
+ *  Copyright (C) 2002-2003  Maxim Krasnyansky <maxk@qualcomm.com>
+ *  Copyright (C) 2004-2005  Marcel Holtmann <marcel@holtmann.org>
+ */
+
+#ifndef __HCI_H4_H
+#define __HCI_H4_H
+
+#include <linux/skbuff.h>
+#include <linux/types.h>
+
+struct hci_dev;
+
+struct h4_recv_pkt {
+	u8  type;	/* Packet type */
+	u8  hlen;	/* Header length */
+	u8  loff;	/* Data length offset in header */
+	u8  lsize;	/* Data length field size */
+	u16 maxlen;	/* Max overall packet length */
+	int (*recv)(struct hci_dev *hdev, struct sk_buff *skb);
+};
+
+#define H4_RECV_ACL \
+	.type = HCI_ACLDATA_PKT, \
+	.hlen = HCI_ACL_HDR_SIZE, \
+	.loff = 2, \
+	.lsize = 2, \
+	.maxlen = HCI_MAX_FRAME_SIZE \
+
+#define H4_RECV_SCO \
+	.type = HCI_SCODATA_PKT, \
+	.hlen = HCI_SCO_HDR_SIZE, \
+	.loff = 2, \
+	.lsize = 1, \
+	.maxlen = HCI_MAX_SCO_SIZE
+
+#define H4_RECV_EVENT \
+	.type = HCI_EVENT_PKT, \
+	.hlen = HCI_EVENT_HDR_SIZE, \
+	.loff = 1, \
+	.lsize = 1, \
+	.maxlen = HCI_MAX_EVENT_SIZE
+
+#define H4_RECV_ISO \
+	.type = HCI_ISODATA_PKT, \
+	.hlen = HCI_ISO_HDR_SIZE, \
+	.loff = 2, \
+	.lsize = 2, \
+	.maxlen = HCI_MAX_FRAME_SIZE \
+
+struct sk_buff *h4_recv_skb(struct hci_dev *hdev, u8 *alignment, u8 *padding,
+			    struct sk_buff *skb, const unsigned char *buffer,
+			    int count, const struct h4_recv_pkt *pkts,
+			    int pkts_count);
+
+#endif /* __HCI_H4_H */
diff --git a/net/bluetooth/Makefile b/net/bluetooth/Makefile
index ff466ea97436a..b78ad98864d4f 100644
--- a/net/bluetooth/Makefile
+++ b/net/bluetooth/Makefile
@@ -14,7 +14,7 @@ bluetooth_6lowpan-y := 6lowpan.o
 bluetooth-y := af_bluetooth.o hci_core.o hci_conn.o hci_event.o mgmt.o \
 	hci_sock.o hci_sysfs.o l2cap_core.o l2cap_sock.o smp.o lib.o \
 	ecdh_helper.o mgmt_util.o mgmt_config.o hci_codec.o eir.o hci_sync.o \
-	hci_drv.o
+	hci_drv.o hci_h4.o
 
 bluetooth-$(CONFIG_DEV_COREDUMP) += coredump.o
 
diff --git a/net/bluetooth/hci_h4.c b/net/bluetooth/hci_h4.c
new file mode 100644
index 0000000000000..86f809018062f
--- /dev/null
+++ b/net/bluetooth/hci_h4.c
@@ -0,0 +1,160 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ *  Bluetooth HCI H:4 packet reassembly
+ *
+ *  Copyright (C) 2000-2001  Qualcomm Incorporated
+ *  Copyright (C) 2002-2003  Maxim Krasnyansky <maxk@qualcomm.com>
+ *  Copyright (C) 2004-2005  Marcel Holtmann <marcel@holtmann.org>
+ */
+
+#include <linux/export.h>
+#include <linux/skbuff.h>
+#include <linux/unaligned.h>
+
+#include <net/bluetooth/bluetooth.h>
+#include <net/bluetooth/hci_core.h>
+#include <net/bluetooth/hci_h4.h>
+
+/* h4_recv_skb - Reassemble H:4 framed packets
+ * @hdev: HCI device the packets are received on
+ * @alignment: optional packet alignment, NULL or 0 means no alignment
+ * @padding: optional padding state carried over between calls
+ * @skb: partially received packet from a previous call, may be NULL or an
+ *	 ERR_PTR returned by a previous call
+ * @buffer: buffer holding the received data
+ * @count: number of bytes in @buffer
+ * @pkts: table of supported packet types
+ * @pkts_count: number of entries in @pkts
+ *
+ * Returns the partially received packet to be passed to the next call, or an
+ * ERR_PTR on error. The returned value can be fed back into this function as
+ * is, but must be checked with IS_ERR() before being freed.
+ */
+struct sk_buff *h4_recv_skb(struct hci_dev *hdev, u8 *alignment, u8 *padding,
+			    struct sk_buff *skb, const unsigned char *buffer,
+			    int count, const struct h4_recv_pkt *pkts,
+			    int pkts_count)
+{
+	u8 align = alignment && *alignment ? *alignment : 1;
+
+	/* Check for error from previous call */
+	if (IS_ERR(skb))
+		skb = NULL;
+
+	while (count) {
+		int i, len;
+
+		/* remove padding bytes from buffer */
+		if (padding) {
+			for (; (*padding) && count > 0; (*padding)--) {
+				count--;
+				buffer++;
+			}
+		}
+
+		if (!count)
+			break;
+
+		if (!skb) {
+			for (i = 0; i < pkts_count; i++) {
+				if (buffer[0] != pkts[i].type)
+					continue;
+
+				skb = bt_skb_alloc(pkts[i].maxlen,
+						   GFP_ATOMIC);
+				if (!skb)
+					return ERR_PTR(-ENOMEM);
+
+				hci_skb_pkt_type(skb) = pkts[i].type;
+				hci_skb_expect(skb) = pkts[i].hlen;
+				break;
+			}
+
+			/* Check for invalid packet type */
+			if (!skb)
+				return ERR_PTR(-EILSEQ);
+
+			count -= 1;
+			buffer += 1;
+		}
+
+		len = min_t(uint, hci_skb_expect(skb) - skb->len, count);
+		skb_put_data(skb, buffer, len);
+
+		count -= len;
+		buffer += len;
+
+		/* Check for partial packet */
+		if (skb->len < hci_skb_expect(skb))
+			continue;
+
+		for (i = 0; i < pkts_count; i++) {
+			if (hci_skb_pkt_type(skb) == pkts[i].type)
+				break;
+		}
+
+		if (i >= pkts_count) {
+			kfree_skb(skb);
+			return ERR_PTR(-EILSEQ);
+		}
+
+		if (skb->len == pkts[i].hlen) {
+			u16 dlen;
+
+			switch (pkts[i].lsize) {
+			case 0:
+				/* No variable data length */
+				dlen = 0;
+				break;
+			case 1:
+				/* Single octet variable length */
+				dlen = skb->data[pkts[i].loff];
+				hci_skb_expect(skb) += dlen;
+
+				if (skb_tailroom(skb) < dlen) {
+					kfree_skb(skb);
+					return ERR_PTR(-EMSGSIZE);
+				}
+				break;
+			case 2:
+				/* Double octet variable length */
+				dlen = get_unaligned_le16(skb->data +
+							  pkts[i].loff);
+				hci_skb_expect(skb) += dlen;
+
+				if (skb_tailroom(skb) < dlen) {
+					kfree_skb(skb);
+					return ERR_PTR(-EMSGSIZE);
+				}
+				break;
+			default:
+				/* Unsupported variable length */
+				kfree_skb(skb);
+				return ERR_PTR(-EILSEQ);
+			}
+
+			if (!dlen) {
+				if (padding) {
+					*padding = (skb->len + 1) % align;
+					*padding = (align - *padding) % align;
+				}
+
+				/* No more data, complete frame */
+				pkts[i].recv(hdev, skb);
+				skb = NULL;
+			}
+		} else {
+			if (padding) {
+				*padding = (skb->len + 1) % align;
+				*padding = (align - *padding) % align;
+			}
+
+			/* Complete frame */
+			pkts[i].recv(hdev, skb);
+			skb = NULL;
+		}
+	}
+
+	return skb;
+}
+EXPORT_SYMBOL_GPL(h4_recv_skb);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0021/2651] Bluetooth: btusb: Build the driver from multiple source files
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (19 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0020/2651] Bluetooth: Move H:4 reassembly into the Bluetooth core Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0022/2651] Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728 Greg Kroah-Hartman
                   ` (170 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Zijun Hu, Luiz Augusto von Dentz,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Zijun Hu <zijun.hu@oss.qualcomm.com>

[ Upstream commit be58267a34ae562a4a6932f68f1487bceb0345d7 ]

Allow the driver to include vendor USB-transport-specific source files by:
- renaming btusb.c to btusb_main.c
- making btusb.o a composite object

Used by Qualcomm QCC2072 support.

Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Stable-dep-of: df5e35f1663a ("Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/bluetooth/Makefile                  | 2 ++
 drivers/bluetooth/{btusb.c => btusb_main.c} | 0
 2 files changed, 2 insertions(+)
 rename drivers/bluetooth/{btusb.c => btusb_main.c} (100%)

diff --git a/drivers/bluetooth/Makefile b/drivers/bluetooth/Makefile
index e6b1c1180d1dc..8b436c6de8b76 100644
--- a/drivers/bluetooth/Makefile
+++ b/drivers/bluetooth/Makefile
@@ -51,4 +51,6 @@ hci_uart-$(CONFIG_BT_HCIUART_MRVL)	+= hci_mrvl.o
 hci_uart-$(CONFIG_BT_HCIUART_AML)	+= hci_aml.o
 hci_uart-objs				:= $(hci_uart-y)
 
+btusb-y				:= btusb_main.o
+
 CONTEXT_ANALYSIS := y
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb_main.c
similarity index 100%
rename from drivers/bluetooth/btusb.c
rename to drivers/bluetooth/btusb_main.c
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0022/2651] Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (20 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0021/2651] Bluetooth: btusb: Build the driver from multiple source files Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0023/2651] ALSA: pcm: Optimize cpu_latency_qos_*() calls Greg Kroah-Hartman
                   ` (169 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Andy Tsvetinskiy, Junjie Cao,
	Luiz Augusto von Dentz, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Junjie Cao <junjie.cao@intel.com>

[ Upstream commit df5e35f1663abc2702cf9f9e7eba024129ac5df1 ]

Commit 5ead2063611a ("Bluetooth: btrtl: fix RTL8761B/BU broken LE
extended scan") set HCI_QUIRK_BROKEN_EXT_SCAN on every RTL8761B, and
commit ca0583c24661 ("Bluetooth: btusb: limit RTL8761B BROKEN_EXT_SCAN
quirk to 0bda:a728") kept it on 0bda:a728 on the assumption that the
USB id separates dongles with broken extended scan from those with a
broken legacy scan path. It does not. An 0bda:a728 unit (RTL8761BUV,
fw 0xdfc6d922) on 6.18.51 fails the same way the UB500 and 0bda:8771
did: LE Set Scan Enable (0x200c) times out with -110 and btusb resets
the device. With the flag removed from the table entry, scanning works
on that unit.

Two dongles with the same USB id need opposite settings, so the device
table cannot key the quirk either. The costs are not symmetric. Without
the quirk, the unit it was written for gets -EBUSY on LE Set Extended
Scan Enable (0x2042) while a connection is up. With it, 0x200c times
out and btusb resets the device on three reported units, two of them in
a re-enumeration loop.

Remove the flag and the table entry. 0bda:a728 matches the generic
Realtek entry again and runs without the quirk, as before v7.2.

Reported-by: Andy Tsvetinskiy <andrew.tsvetinskiy@gmail.com>
Closes: https://lore.kernel.org/all/CAE4bxw+ofDFVx0aTHqCrzns9oP1CRQDm_wzeyHPeMBYOhSpcuA@mail.gmail.com/
Fixes: 5ead2063611a ("Bluetooth: btrtl: fix RTL8761B/BU broken LE extended scan")
Fixes: ca0583c24661 ("Bluetooth: btusb: limit RTL8761B BROKEN_EXT_SCAN quirk to 0bda:a728")
Cc: stable@vger.kernel.org
Signed-off-by: Junjie Cao <junjie.cao@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
[ sashal: Adjusted context to account for the missing BTUSB_QUALCOMM definition. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/bluetooth/btusb_main.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/bluetooth/btusb_main.c b/drivers/bluetooth/btusb_main.c
index ece1fd426f12b..d0e5ab764e9dc 100644
--- a/drivers/bluetooth/btusb_main.c
+++ b/drivers/bluetooth/btusb_main.c
@@ -68,7 +68,6 @@ static struct usb_driver btusb_driver;
 #define BTUSB_INTEL_NO_WBS_SUPPORT	BIT(26)
 #define BTUSB_ACTIONS_SEMI		BIT(27)
 #define BTUSB_BARROT			BIT(28)
-#define BTUSB_BROKEN_EXT_SCAN		BIT(29)
 
 static const struct usb_device_id btusb_table[] = {
 	/*
@@ -636,10 +635,6 @@ static const struct usb_device_id quirks_table[] = {
 	{ USB_DEVICE(0x0489, 0xe130), .driver_info = BTUSB_REALTEK |
 						     BTUSB_WIDEBAND_SPEECH },
 
-	/* Realtek 8761BU Bluetooth devices */
-	{ USB_DEVICE(0x0bda, 0xa728), .driver_info = BTUSB_REALTEK |
-						     BTUSB_BROKEN_EXT_SCAN },
-
 	/* Realtek Bluetooth devices */
 	{ USB_VENDOR_AND_INTERFACE_INFO(0x0bda, 0xe0, 0x01, 0x01),
 	  .driver_info = BTUSB_REALTEK },
@@ -4492,9 +4487,6 @@ static int btusb_probe(struct usb_interface *intf,
 	if (id->driver_info & BTUSB_INVALID_LE_STATES)
 		hci_set_quirk(hdev, HCI_QUIRK_BROKEN_LE_STATES);
 
-	if (id->driver_info & BTUSB_BROKEN_EXT_SCAN)
-		hci_set_quirk(hdev, HCI_QUIRK_BROKEN_EXT_SCAN);
-
 	if (id->driver_info & BTUSB_DIGIANSWER) {
 		data->cmdreq_type = USB_TYPE_VENDOR;
 		hci_set_quirk(hdev, HCI_QUIRK_RESET_ON_CLOSE);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0023/2651] ALSA: pcm: Optimize cpu_latency_qos_*() calls
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (21 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0022/2651] Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728 Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0024/2651] ALSA: pcm: Prevent O_APPEND open on OSS streams Greg Kroah-Hartman
                   ` (168 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Takashi Iwai, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Takashi Iwai <tiwai@suse.de>

[ Upstream commit 9f6f4e97fd53908aecb0979507d9ff10a22288eb ]

We have a few cpu_latency_qos_*() calls in PCM callbacks, but they
seem suboptimal in a few aspects:
- We call them at each time when the hw_params changed, but explicitly
  do remove and (re-)add; this could be
  cpu_latency_qos_update_request(), instead
- The setup of cpu_latency_qos_*() doesn't have to be in hw_params at
  all; it's not the place where the actual parameters are set up, but
  rather better at the prepare callback.
- The hw_free calls cpu_latency_qos_remove_request() unconditionally,
  which may be poking a WARNING when it wasn't queued.

For addressing the issues above, this patch cleans up and reorganize
the cpu_latency_qos_*() calls in the PCM core by a couple helper
functions.  Now, they are set up at prepare callback, and cleared at
hw_free and release callbacks via the new helpers.

Link: https://patch.msgid.link/20261002150420.879056-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Stable-dep-of: 9017bc3d13da ("ALSA: pcm: Prevent O_APPEND open on OSS streams")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 sound/core/pcm_native.c | 35 +++++++++++++++++++++++++----------
 1 file changed, 25 insertions(+), 10 deletions(-)

diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 6d32c12fb79bd..c9e80617f508b 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -778,11 +778,32 @@ EXPORT_SYMBOL_GPL(snd_pcm_runtime_buffer_set_silence);
 #define is_oss_stream(substream)	false
 #endif
 
+static void pcm_qos_req_clear(struct snd_pcm_substream *substream)
+{
+	if (cpu_latency_qos_request_active(&substream->latency_pm_qos_req))
+		cpu_latency_qos_remove_request(&substream->latency_pm_qos_req);
+}
+
+static void pcm_qos_req_update(struct snd_pcm_substream *substream, int usecs)
+{
+	if (usecs < 0) {
+		pcm_qos_req_clear(substream);
+		return;
+	}
+
+	if (cpu_latency_qos_request_active(&substream->latency_pm_qos_req))
+		cpu_latency_qos_update_request(&substream->latency_pm_qos_req,
+					       usecs);
+	else
+		cpu_latency_qos_add_request(&substream->latency_pm_qos_req,
+					    usecs);
+}
+
 static int snd_pcm_hw_params(struct snd_pcm_substream *substream,
 			     struct snd_pcm_hw_params *params)
 {
 	struct snd_pcm_runtime *runtime;
-	int err, usecs;
+	int err;
 	unsigned int bits;
 	snd_pcm_uframes_t frames;
 
@@ -889,12 +910,6 @@ static int snd_pcm_hw_params(struct snd_pcm_substream *substream,
 	snd_pcm_timer_resolution_change(substream);
 	snd_pcm_set_state(substream, SNDRV_PCM_STATE_SETUP);
 
-	if (cpu_latency_qos_request_active(&substream->latency_pm_qos_req))
-		cpu_latency_qos_remove_request(&substream->latency_pm_qos_req);
-	usecs = period_to_usecs(runtime);
-	if (usecs >= 0)
-		cpu_latency_qos_add_request(&substream->latency_pm_qos_req,
-					    usecs);
 	err = 0;
  _error:
 	if (err) {
@@ -971,7 +986,7 @@ static int snd_pcm_hw_free(struct snd_pcm_substream *substream)
 		goto unlock;
 	result = do_hw_free(substream);
 	snd_pcm_set_state(substream, SNDRV_PCM_STATE_OPEN);
-	cpu_latency_qos_remove_request(&substream->latency_pm_qos_req);
+	pcm_qos_req_clear(substream);
  unlock:
 	snd_pcm_buffer_access_unlock(runtime);
 	return result;
@@ -2005,6 +2020,7 @@ static int snd_pcm_do_prepare(struct snd_pcm_substream *substream,
 	err = substream->ops->prepare(substream);
 	if (err < 0)
 		return err;
+	pcm_qos_req_update(substream, period_to_usecs(substream->runtime));
 	return snd_pcm_do_reset(substream, state);
 }
 
@@ -2795,8 +2811,7 @@ void snd_pcm_release_substream(struct snd_pcm_substream *substream)
 		substream->ops->close(substream);
 		substream->hw_opened = 0;
 	}
-	if (cpu_latency_qos_request_active(&substream->latency_pm_qos_req))
-		cpu_latency_qos_remove_request(&substream->latency_pm_qos_req);
+	pcm_qos_req_clear(substream);
 	if (substream->pcm_release) {
 		substream->pcm_release(substream);
 		substream->pcm_release = NULL;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0024/2651] ALSA: pcm: Prevent O_APPEND open on OSS streams
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (22 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0023/2651] ALSA: pcm: Optimize cpu_latency_qos_*() calls Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0025/2651] net: Use a dedicated flag to track disabled napi instances Greg Kroah-Hartman
                   ` (167 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Bo Cao, Takashi Iwai, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Takashi Iwai <tiwai@suse.de>

[ Upstream commit 9017bc3d13da0ea4e63be618c87143a7b69185e6 ]

ALSA PCM core accepts to re-use the existing stream when O_APPEND is
passed, and it's been used for dmix, etc.  However, this mode isn't
supposed to be used for OSS: the OSS stream allows re-configuration
via its hw_params/hw_refine procedure even while it's being mmapped,
so it implies the usage of only a single stream.  Because of this
assumption, the sanity check is skipped for OSS streams, and if user
may attach to an existing OSS stream with O_APPEND, it may result in a
UAF of the mapped pages which could be used as a privilege escalation
exploit.

For addressing it, this patch simply prohibits the O_APPEND behavior
on the OSS stream.  O_APPEND is never used for OSS layer itself, so
this can't break for the right applications.

Fixes: 0df63e44c3e3 ("[ALSA] Add O_APPEND flag support to PCM")
Cc: stable@vger.kernel.org
Reported-by: Bo Cao <treebacker@foxmail.com>
Link: https://lore.kernel.org/tencent_E90BB4F086165FAA3313723567A5C675EA06@qq.com
Link: https://patch.msgid.link/20261103155844.120838-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 sound/core/pcm.c        | 2 ++
 sound/core/pcm_local.h  | 6 ++++++
 sound/core/pcm_native.c | 6 ------
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/sound/core/pcm.c b/sound/core/pcm.c
index 41c2cab7a52c4..6aad7a1fbf1a9 100644
--- a/sound/core/pcm.c
+++ b/sound/core/pcm.c
@@ -919,6 +919,8 @@ int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream,
 			return -ENODEV;
 		if (! SUBSTREAM_BUSY(substream))
 			return -EBADFD;
+		if (is_oss_stream(substream))
+			return -EINVAL;
 		substream->ref_count++;
 		*rsubstream = substream;
 		return 0;
diff --git a/sound/core/pcm_local.h b/sound/core/pcm_local.h
index ecb21697ae3a4..4b134d435c24f 100644
--- a/sound/core/pcm_local.h
+++ b/sound/core/pcm_local.h
@@ -80,4 +80,10 @@ static inline void snd_pcm_dma_buffer_sync(struct snd_pcm_substream *substream,
 		snd_dma_buffer_sync(snd_pcm_get_dma_buf(substream), mode);
 }
 
+#if IS_ENABLED(CONFIG_SND_PCM_OSS)
+#define is_oss_stream(substream)	((substream)->oss.oss)
+#else
+#define is_oss_stream(substream)	false
+#endif
+
 #endif	/* __SOUND_CORE_PCM_LOCAL_H */
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index c9e80617f508b..1164ee7f14f07 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -772,12 +772,6 @@ int snd_pcm_runtime_buffer_set_silence(struct snd_pcm_runtime *runtime)
 }
 EXPORT_SYMBOL_GPL(snd_pcm_runtime_buffer_set_silence);
 
-#if IS_ENABLED(CONFIG_SND_PCM_OSS)
-#define is_oss_stream(substream)	((substream)->oss.oss)
-#else
-#define is_oss_stream(substream)	false
-#endif
-
 static void pcm_qos_req_clear(struct snd_pcm_substream *substream)
 {
 	if (cpu_latency_qos_request_active(&substream->latency_pm_qos_req))
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0025/2651] net: Use a dedicated flag to track disabled napi instances
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (23 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0024/2651] ALSA: pcm: Prevent O_APPEND open on OSS streams Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0026/2651] Revert "drm/amd/display: Allocate DCN32/1 dmub memory to GTT" Greg Kroah-Hartman
                   ` (166 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Daniel Machon, Maxime Chevallier,
	Jakub Kicinski, Chris J Arges, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Maxime Chevallier <maxime.chevallier@bootlin.com>

commit 8dc87fc5d6a0eb337744737008177342a708bf36 upstream.

Trying to disable the napi threaded state while the napi instance is
disabled will hang forever in napi_stop_kthread(), as it waits for
NAPIF_STATE_SCHED_THREADED to clear.

This won't happen until the next ____napi_schedule() call, which won't
happen as it's disabled.

This happens in 2 instances :

 - Drivers that create but don't use napi instances (stmmac's rxtx napi
   for AF_XDP for example), here it's a driver bug

 - Drivers that create their napi instances in .probe(). Here, setting
   threaded off while the interface is down will hang :

   ip link set eth0 down
   echo 1 > /sys/class/net/eth0/threaded
   echo 0 > /sys/class/net/eth0/threaded
   -> hang

Checking on netif_running() isn't enough, as napi instances may be
transiently disabled when changing the MTU for example, let's use a
dedicated flag to track if the instance is disabled.

This allows immediately disabling the kthread when the instance is
disabled.

This was tested on mvpp2 (probe-time napi_add) and stmmac.

[ Backport: place the disabled state after the threaded busy-poll state;
  the adjacent per-CPU NAPI state is not present in 7.3.y. ]

Fixes: 689883de94dd ("net: stop napi kthreads when THREADED napi is disabled")
Tested-by: Daniel Machon <daniel.machon@microchip.com>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20261029153130.121204-1-maxime.chevallier@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Chris J Arges <carges@cloudflare.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 include/linux/netdevice.h |  2 ++
 net/core/dev.c            | 15 +++++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 3e64af0b932d7..02119fa153c97 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -433,6 +433,7 @@ enum {
 	NAPI_STATE_SCHED_THREADED,	/* Napi is currently scheduled in threaded mode */
 	NAPI_STATE_HAS_NOTIFIER,	/* Napi has an IRQ notifier */
 	NAPI_STATE_THREADED_BUSY_POLL,	/* The threaded NAPI poller will busy poll */
+	NAPI_STATE_DISABLED,		/* NAPI is disabled */
 };
 
 enum {
@@ -448,6 +449,7 @@ enum {
 	NAPIF_STATE_SCHED_THREADED	= BIT(NAPI_STATE_SCHED_THREADED),
 	NAPIF_STATE_HAS_NOTIFIER	= BIT(NAPI_STATE_HAS_NOTIFIER),
 	NAPIF_STATE_THREADED_BUSY_POLL	= BIT(NAPI_STATE_THREADED_BUSY_POLL),
+	NAPIF_STATE_DISABLED		= BIT(NAPI_STATE_DISABLED),
 };
 
 enum gro_result {
diff --git a/net/core/dev.c b/net/core/dev.c
index f803d8ba866ff..e0ce0fd728a8b 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -7266,6 +7266,13 @@ static void napi_stop_kthread(struct napi_struct *napi)
 {
 	unsigned long val, new;
 
+	/* Instance is disabled, we can immediately stop the kthread */
+	if (test_bit(NAPI_STATE_DISABLED, &napi->state)) {
+		clear_bit(NAPI_STATE_THREADED, &napi->state);
+		clear_bit(NAPI_STATE_THREADED_BUSY_POLL, &napi->state);
+		goto stop;
+	}
+
 	/* Wait until the napi STATE_THREADED is unset. */
 	while (true) {
 		val = READ_ONCE(napi->state);
@@ -7296,6 +7303,7 @@ static void napi_stop_kthread(struct napi_struct *napi)
 		msleep(20);
 	}
 
+stop:
 	kthread_stop(napi->thread);
 	napi->thread = NULL;
 }
@@ -7691,6 +7699,7 @@ void netif_napi_add_weight_locked(struct net_device *dev,
 	napi->list_owner = -1;
 	set_bit(NAPI_STATE_SCHED, &napi->state);
 	set_bit(NAPI_STATE_NPSVC, &napi->state);
+	set_bit(NAPI_STATE_DISABLED, &napi->state);
 	netif_napi_dev_list_add(dev, napi);
 
 	/* default settings from sysfs are applied to all NAPIs. any per-NAPI
@@ -7727,7 +7736,8 @@ void napi_disable_locked(struct napi_struct *n)
 			val = READ_ONCE(n->state);
 		}
 
-		new = val | NAPIF_STATE_SCHED | NAPIF_STATE_NPSVC;
+		new = val | NAPIF_STATE_SCHED | NAPIF_STATE_NPSVC |
+		      NAPIF_STATE_DISABLED;
 		new &= ~(NAPIF_STATE_THREADED |
 			 NAPIF_STATE_THREADED_BUSY_POLL |
 			 NAPIF_STATE_PREFER_BUSY_POLL);
@@ -7772,7 +7782,8 @@ void napi_enable_locked(struct napi_struct *n)
 	do {
 		BUG_ON(!test_bit(NAPI_STATE_SCHED, &val));
 
-		new = val & ~(NAPIF_STATE_SCHED | NAPIF_STATE_NPSVC);
+		new = val & ~(NAPIF_STATE_SCHED | NAPIF_STATE_NPSVC |
+			      NAPIF_STATE_DISABLED);
 		if (n->dev->threaded && n->thread)
 			new |= NAPIF_STATE_THREADED;
 	} while (!try_cmpxchg(&n->state, &val, new));
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0026/2651] Revert "drm/amd/display: Allocate DCN32/1 dmub memory to GTT"
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (24 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0025/2651] net: Use a dedicated flag to track disabled napi instances Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0027/2651] drm/amdgpu: Config VCN instance for soc_v1_0" Greg Kroah-Hartman
                   ` (165 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Alex Deucher, Calvin Owens,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Calvin Owens <calvin@wbinvd.org>

[ Upstream commit 5b3717a14ef602c961a4abeb2ce8039f0394bebb ]

After commit a637a140ab860310 ("drm/amd/display: Allocate DCN32/1 dmub
memory to GTT"), a machine with a Radeon RX 7900 shows random garbage on
the screen. It reproduces sporadically, but at times it is so bad the
machine is more or less unusable.

The garbage is always horizontal bars extending across the entire
screen, always approximately 200 pixels tall on a 3840x2160 screen,
for what looks like a single frame. The bars are mostly black, but will
sometimes exhibit striping and periodic artifacts which smell like
non-framebuffer data is being rendered to the screen.

It took some patience on the "good" side, but I was able to nail it down
to commit a637a140ab860310818a14fb4d37e39e51a06be4 with this bisect:

  bad: [cee9395acd8043be0644b25c34bfa86623f2b935] Linux 7.3-rc1
  good: [8d3ae59288f1e7d58d76558a6ee96d533bc5019f] Linux 7.2
  good: [55ab7e14222e5f0b0fd9f7711ca391d2924b35e3] Merge tag 'for-7.3/block-20260819' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux
  bad: [df51bdc5e80dae43cab81f6cc641e98638303c88] Merge tag 'mtd/for-7.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux
  bad: [29daacacf4cd84e6917f09de6a99fb170071c14c] Merge tag 'drm-rust-next-2026-08-08' of https://gitlab.freedesktop.org/drm/rust/kernel into drm-next
  good: [fff648aec5e2790d117a0ec5c849a284d9d33d70] drm/amdgpu: include amdgpu_video_codecs.h only where needed
  bad: [336e0cd576817ac64a4b394ca2b3680029f3e37f] Revert "drm/amdgpu: fix aperture mapping leak"
  bad: [789f7486a384ca58b9d7a76abba5efa0e80e8dab] drm/amd/display: Test plane colorop helper walkers
  good: [e0e426f10ad653c5e9dd33fb4a76d55f06101992] drm/amd/display: Test helper_check_state rejects
  bad: [982b2a43682b55e7d9800000f2592832ff2865ba] drm/amdgpu: Fix IP block NULL check during soft reset
  bad: [9102b39fa924dcc3dc75a3137bfa9633c40b88c0] drm/amdgpu/userq: fix indefinite fence wait during GPU reset
  bad: [b23470a026afe64de5c1df4ad181587b49c22923] drm/amd/display: Exit LS for ISHARP before coefficient write
  bad: [f02b2e47355e9d381a7f34acc997e1c47879ca21] drm/amd/display: Add KUnit test for wb jobs
  bad: [c6a13d145cc811b19c8a0620f25868cf7d5700c0] drm/amd/display: remove unused dcn42 socbb values
  good: [1d8327353de6f1f34063840f362c208c84064f54] drm/amd/display: Fix VABC Init and OLED Support
  bad: [a637a140ab860310818a14fb4d37e39e51a06be4] drm/amd/display: Allocate DCN32/1 dmub memory to GTT
  first 'bad' commit: [a637a140ab860310818a14fb4d37e39e51a06be4] drm/amd/display: Allocate DCN32/1 dmub memory to GTT

Sure enough, reverting a637a140ab860310818a14fb4d37e39e51a06be4 on top
of v7.3 completely and totally eliminates the problem for me.

Mikhail has separately reported this regression:

  https://lore.kernel.org/all/20260829010525.29935-1-mikhail.v.gavrilov@gmail.com/

...but it seems to be much more consistent for me than for Mikhail, it's
never taken more than 30 minutes even when the machine is completely
idle. I've also never been able to reproduce any artifact one single
time without commit a637a140, despite a lot of effort.

I'm not sure reverting this is the right way forward, since presumably
this would re-regress the timing issue Fangzhi alluded to in the
original commit. But nobody has proposed anything concrete yet... so
let's start the discussion here.

I'm happy to help test other better ideas as well :)

Fixes: a637a140ab86 ("drm/amd/display: Allocate DCN32/1 dmub memory to GTT")
Closes: https://lore.kernel.org/all/20260829010525.29935-1-mikhail.v.gavrilov@gmail.com/
Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/5714
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Calvin Owens <calvin@wbinvd.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 899489d2e2aa854cf5e933677d6561dfcbb94529)
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_dmub.c    | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_dmub.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_dmub.c
index 9ff25bc8ee5ae..870534b7cf46d 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_dmub.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_dmub.c
@@ -511,7 +511,6 @@ int dm_dmub_sw_init(struct amdgpu_device *adev)
 		DMUB_WINDOW_MEMORY_TYPE_FB,		/* DMUB_WINDOW_CURSOR_OFFLOAD */
 	};
 	int r;
-	int mem_domain = AMDGPU_GEM_DOMAIN_GTT;
 
 	switch (amdgpu_ip_version(adev, DCE_HWIP, 0)) {
 	case IP_VERSION(2, 1, 0):
@@ -648,19 +647,13 @@ int dm_dmub_sw_init(struct amdgpu_device *adev)
 		return -EINVAL;
 	}
 
-	/* Limit to allocate dmub to GTT on DCN32/1
-	 * TODO: Other asics with GDDR7 may have worse latency
-	 */
-	if (dmub_asic != DMUB_ASIC_DCN32 &&
-	    dmub_asic != DMUB_ASIC_DCN321)
-		mem_domain |= AMDGPU_GEM_DOMAIN_VRAM;
-
 	/*
 	 * Allocate a framebuffer based on the total size of all the regions.
 	 * TODO: Move this into GART.
 	 */
 	r = amdgpu_bo_create_kernel(adev, region_info.fb_size, PAGE_SIZE,
-				    mem_domain,
+				    AMDGPU_GEM_DOMAIN_VRAM |
+				    AMDGPU_GEM_DOMAIN_GTT,
 				    &adev->dm.dmub_bo,
 				    &adev->dm.dmub_bo_gpu_addr,
 				    &adev->dm.dmub_bo_cpu_addr);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0027/2651] drm/amdgpu: Config VCN instance for soc_v1_0"
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (25 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0026/2651] Revert "drm/amd/display: Allocate DCN32/1 dmub memory to GTT" Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0028/2651] drm/amdgpu: Correct VCN V5_0_2 doorbell index setting Greg Kroah-Hartman
                   ` (164 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Sonny Jiang, Leo Liu, Alex Deucher,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Sonny Jiang <sonjiang@amd.com>

[ Upstream commit ab2fb550bc1fabd96c948fdbebbc05f61a9810d6 ]

Set up the default VCN instance mask and related instance counts during
soc_v1_0 SOC configuration, before IP discovery is enabled.

Signed-off-by: Sonny Jiang <sonjiang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: a56c2536c399 ("drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/amd/amdgpu/soc_v1_0.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c b/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c
index 43e92e2a85e89..37e2068b6fda2 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c
@@ -849,6 +849,11 @@ int soc_v1_0_init_soc_config(struct amdgpu_device *adev)
 	adev->sdma.sdma_mask = sdma_mask;
 	adev->sdma.num_instances = NUM_XCC(adev->sdma.sdma_mask);
 
+	adev->vcn.harvest_config = 0;
+	adev->vcn.num_inst_per_aid = 1;
+	adev->vcn.inst_mask = 1;
+	adev->vcn.num_vcn_inst = hweight32(adev->vcn.inst_mask);
+
 	ret = soc_v1_0_xcp_mgr_init(adev);
 	if (ret)
 		return ret;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0028/2651] drm/amdgpu: Correct VCN V5_0_2 doorbell index setting
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (26 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0027/2651] drm/amdgpu: Config VCN instance for soc_v1_0" Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0029/2651] drm/amdgpu: VCN 5_0_2 disable VCN_RRMT Greg Kroah-Hartman
                   ` (163 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Sonny Jiang, Boyuan Zhang,
	Alex Deucher, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Sonny Jiang <sonny.jiang@amd.com>

[ Upstream commit 66421e37897ddd29c03a3290cd559f7c72622f80 ]

Each VCN 5.0.2 instance has 11 doorbells. Use an 11-doorbell when
calculating the per-instance VCN ring doorbell index.

Signed-off-by: Sonny Jiang <sonny.jiang@amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: a56c2536c399 ("drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
index b9f6ae75ea727..5291ebbc5c3e2 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
@@ -129,7 +129,7 @@ static int vcn_v5_0_2_sw_init(struct amdgpu_ip_block *ip_block)
 		ring->use_doorbell = true;
 
 		ring->doorbell_index =
-			(adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 32 * vcn_inst;
+			(adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 11 * vcn_inst;
 
 		ring->vm_hub = AMDGPU_MMHUB0(adev->vcn.inst[i].aid_id);
 		sprintf(ring->name, "vcn_unified_%d", adev->vcn.inst[i].aid_id);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0029/2651] drm/amdgpu: VCN 5_0_2 disable VCN_RRMT
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (27 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0028/2651] drm/amdgpu: Correct VCN V5_0_2 doorbell index setting Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0030/2651] drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg Greg Kroah-Hartman
                   ` (162 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Sonny Jiang, Leo Liu, Alex Deucher,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Sonny Jiang <sonny.jiang@amd.com>

[ Upstream commit 400af1fb41676c25966624b8ce0f5c09aee2a9b3 ]

When RRMT is enabled, VCN firmware's register access is remapped so
that VCN instances on different dies (VCN0/1 on MID0, VCN2/3 on MID1)
require different target addresses for the same logical register.

Remove the RRMT capability detection so the driver always assumes RRMT
is disabled, using local-die SMN addresses for all instances.

Signed-off-by: Sonny Jiang <sonny.jiang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: a56c2536c399 ("drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
index 5291ebbc5c3e2..9f9b3a47f63ba 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
@@ -203,8 +203,6 @@ static int vcn_v5_0_2_hw_init(struct amdgpu_ip_block *ip_block)
 	int i, r, vcn_inst;
 	uint32_t tmp;
 
-	if (RREG32_SOC15(VCN, GET_INST(VCN, 0), regVCN_RRMT_CNTL) & 0x200)
-		adev->vcn.caps |= AMDGPU_VCN_CAPS(RRMT_ENABLED);
 	for (i = 0; i < adev->vcn.num_vcn_inst; ++i) {
 		vcn_inst = GET_INST(VCN, i);
 		ring = &adev->vcn.inst[i].ring_enc[0];
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0030/2651] drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (28 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0029/2651] drm/amdgpu: VCN 5_0_2 disable VCN_RRMT Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0031/2651] hugetlbfs: enforce F_SEAL_EXEC in setattr Greg Kroah-Hartman
                   ` (161 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Leo Liu, Alex Deucher, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Leo Liu <leo.liu@amd.com>

[ Upstream commit a56c2536c399d57a9bb1c02fd411e0c25859af3b ]

When hw_init() fails, amdgpu_device_ip_fini_early() skips hw_fini()
because status.hw was never set.  For VCN, UVD (including UVD ENC), VCE,
and JPEG, hw_fini() is where cancel_delayed_work_sync() is called.  Any
idle work queued during the partial hw_init() is therefore left pending
after sw_fini() frees the adev state the handler touches.

Cancel the idle work in each hw_init() error path, immediately before
returning the error, so that hw_fini() remains the sole cancel site on
the normal teardown path with no duplication.

Link: https://github.com/ROCm/amdgpu/issues/234
Fixes: 416e1fab4752 ("drm/amdgpu: drop redundant cancel_delayed_work_sync call")
Assisted-by: Claude:Claude-Sonnet-4.6
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 7ff2327fde029e97d0050fcb94e3f4063c318547)
Cc: stable@vger.kernel.org
[ sashal: Adjusted context and indentation in vcn_v5_0_2_hw_init() to account for the missing SR-IOV conditional. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c   |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c   |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c   |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c   |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_2.c |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/jpeg_v5_3_0.c |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c    |  4 +++-
 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c    |  4 +++-
 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c    |  4 +++-
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c    |  4 +++-
 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c    |  4 +++-
 drivers/gpu/drm/amd/amdgpu/vce_v1_0.c    |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c    |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c    |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c    |  6 +++++-
 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c    | 11 +++++++++--
 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c    |  8 ++++++--
 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c    | 12 ++++++++++--
 drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c    | 12 ++++++++++--
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c    | 10 +++++++++-
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c  | 10 +++++++++-
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c  | 10 +++++++++-
 drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c  | 10 +++++++++-
 drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c  | 10 +++++++++-
 drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c  | 10 +++++++++-
 29 files changed, 174 insertions(+), 33 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c
index a9c00adcfe410..2f4167f74ca22 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c
@@ -159,11 +159,15 @@ static int jpeg_v2_0_hw_init(struct amdgpu_ip_block *ip_block)
 {
 	struct amdgpu_device *adev = ip_block->adev;
 	struct amdgpu_ring *ring = adev->jpeg.inst->ring_dec;
+	int r;
 
 	adev->nbio.funcs->vcn_doorbell_range(adev, ring->use_doorbell,
 		(adev->doorbell_index.vcn.vcn_ring0_1 << 1), 0);
 
-	return amdgpu_ring_test_helper(ring);
+	r = amdgpu_ring_test_helper(ring);
+	if (r)
+		cancel_delayed_work_sync(&adev->jpeg.idle_work);
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c
index 5208312e7017c..cd3ea918a392e 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c
@@ -221,10 +221,14 @@ static int jpeg_v2_5_hw_init(struct amdgpu_ip_block *ip_block)
 
 		r = amdgpu_ring_test_helper(ring);
 		if (r)
-			return r;
+			goto error;
 	}
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->jpeg.idle_work);
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
index e9ccadeb76961..e63ee43831c70 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
@@ -174,11 +174,15 @@ static int jpeg_v3_0_hw_init(struct amdgpu_ip_block *ip_block)
 {
 	struct amdgpu_device *adev = ip_block->adev;
 	struct amdgpu_ring *ring = adev->jpeg.inst->ring_dec;
+	int r;
 
 	adev->nbio.funcs->vcn_doorbell_range(adev, ring->use_doorbell,
 		(adev->doorbell_index.vcn.vcn_ring0_1 << 1), 0);
 
-	return amdgpu_ring_test_helper(ring);
+	r = amdgpu_ring_test_helper(ring);
+	if (r)
+		cancel_delayed_work_sync(&adev->jpeg.idle_work);
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
index 6fd4238a8471a..88646b5792596 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
@@ -204,10 +204,14 @@ static int jpeg_v4_0_hw_init(struct amdgpu_ip_block *ip_block)
 
 		r = amdgpu_ring_test_helper(ring);
 		if (r)
-			return r;
+			goto error;
 	}
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->jpeg.idle_work);
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c
index 0fdc32b3ae91b..d6dbf855c1368 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c
@@ -434,12 +434,16 @@ static int jpeg_v4_0_3_hw_init(struct amdgpu_ip_block *ip_block)
 							VCN_JPEG_DB_CTRL__EN_MASK);
 				r = amdgpu_ring_test_helper(ring);
 				if (r)
-					return r;
+					goto error;
 			}
 		}
 	}
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->jpeg.idle_work);
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c
index 3f61d5367d946..2e15214525ff3 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c
@@ -231,10 +231,14 @@ static int jpeg_v4_0_5_hw_init(struct amdgpu_ip_block *ip_block)
 		ring = adev->jpeg.inst[i].ring_dec;
 		r = amdgpu_ring_test_helper(ring);
 		if (r)
-			return r;
+			goto error;
 	}
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->jpeg.idle_work);
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c
index e6e99f7e0a8a9..daead8213bab4 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c
@@ -172,9 +172,13 @@ static int jpeg_v5_0_0_hw_init(struct amdgpu_ip_block *ip_block)
 
 	r = amdgpu_ring_test_helper(ring);
 	if (r)
-		return r;
+		goto error;
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->jpeg.idle_work);
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
index db3fbe4eabb99..044deab6febde 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
@@ -306,11 +306,15 @@ static int jpeg_v5_0_1_hw_init(struct amdgpu_ip_block *ip_block)
 						    VCN_JPEG_DB_CTRL__EN_MASK);
 			r = amdgpu_ring_test_helper(ring);
 			if (r)
-				return r;
+				goto error;
 		}
 	}
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->jpeg.idle_work);
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_2.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_2.c
index ea54a2b6eddb8..ad554733a6995 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_2.c
@@ -252,11 +252,15 @@ static int jpeg_v5_0_2_hw_init(struct amdgpu_ip_block *ip_block)
 						    VCN_JPEG_DB_CTRL__EN_MASK);
 			r = amdgpu_ring_test_helper(ring);
 			if (r)
-				return r;
+				goto error;
 		}
 	}
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->jpeg.idle_work);
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_3_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_3_0.c
index c929d6f83bac6..9f8f3a3cbc041 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_3_0.c
@@ -156,9 +156,13 @@ static int jpeg_v5_3_0_hw_init(struct amdgpu_ip_block *ip_block)
 
 	r = amdgpu_ring_test_helper(ring);
 	if (r)
-		return r;
+		goto error;
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->jpeg.idle_work);
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c b/drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c
index b7d451f439a76..603ee842fda75 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c
@@ -710,7 +710,9 @@ static int uvd_v3_1_hw_init(struct amdgpu_ip_block *ip_block)
 	amdgpu_ring_commit(ring);
 
 done:
-	if (!r)
+	if (r)
+		cancel_delayed_work_sync(&adev->uvd.idle_work);
+	else
 		drm_info(adev_to_drm(adev), "UVD initialized successfully.\n");
 
 	return r;
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
index 8a9ba2276275c..174868aebd414 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
@@ -198,7 +198,9 @@ static int uvd_v4_2_hw_init(struct amdgpu_ip_block *ip_block)
 	amdgpu_ring_commit(ring);
 
 done:
-	if (!r)
+	if (r)
+		cancel_delayed_work_sync(&adev->uvd.idle_work);
+	else
 		drm_info(adev_to_drm(adev), "UVD initialized successfully.\n");
 
 	return r;
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
index 454f109cbb2e2..90e8fbfb5a321 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
@@ -190,7 +190,9 @@ static int uvd_v5_0_hw_init(struct amdgpu_ip_block *ip_block)
 	amdgpu_ring_commit(ring);
 
 done:
-	if (!r)
+	if (r)
+		cancel_delayed_work_sync(&adev->uvd.idle_work);
+	else
 		drm_info(adev_to_drm(adev), "UVD initialized successfully.\n");
 
 	return r;
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
index bbd0e05d39e51..b084c92609bc9 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
@@ -515,7 +515,9 @@ static int uvd_v6_0_hw_init(struct amdgpu_ip_block *ip_block)
 	}
 
 done:
-	if (!r) {
+	if (r) {
+		cancel_delayed_work_sync(&adev->uvd.idle_work);
+	} else {
 		if (uvd_v6_0_enc_support(adev))
 			drm_info(adev_to_drm(adev), "UVD and UVD ENC initialized successfully.\n");
 		else
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
index 46222fc30be65..48eac56f758e1 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
@@ -583,7 +583,9 @@ static int uvd_v7_0_hw_init(struct amdgpu_ip_block *ip_block)
 		}
 	}
 done:
-	if (!r)
+	if (r)
+		cancel_delayed_work_sync(&adev->uvd.idle_work);
+	else
 		drm_info(adev_to_drm(adev), "UVD and UVD ENC initialized successfully.\n");
 
 	return r;
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v1_0.c
index 93253db5e2de4..cc9dec9c3621a 100644
--- a/drivers/gpu/drm/amd/amdgpu/vce_v1_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v1_0.c
@@ -651,12 +651,16 @@ static int vce_v1_0_hw_init(struct amdgpu_ip_block *ip_block)
 	for (i = 0; i < adev->vce.num_rings; i++) {
 		r = amdgpu_ring_test_helper(&adev->vce.ring[i]);
 		if (r)
-			return r;
+			goto error;
 	}
 
 	dev_info(adev->dev, "VCE initialized successfully.\n");
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->vce.idle_work);
+	return r;
 }
 
 static int vce_v1_0_hw_fini(struct amdgpu_ip_block *ip_block)
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c
index 3a6fc8604108c..f8c65fb4ee56a 100644
--- a/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c
@@ -483,12 +483,16 @@ static int vce_v2_0_hw_init(struct amdgpu_ip_block *ip_block)
 	for (i = 0; i < adev->vce.num_rings; i++) {
 		r = amdgpu_ring_test_helper(&adev->vce.ring[i]);
 		if (r)
-			return r;
+			goto error;
 	}
 
 	drm_info(adev_to_drm(adev), "VCE initialized successfully.\n");
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->vce.idle_work);
+	return r;
 }
 
 static int vce_v2_0_hw_fini(struct amdgpu_ip_block *ip_block)
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
index 4dbbeaf97ad19..e5b7f64b94baf 100644
--- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
@@ -482,12 +482,16 @@ static int vce_v3_0_hw_init(struct amdgpu_ip_block *ip_block)
 	for (i = 0; i < adev->vce.num_rings; i++) {
 		r = amdgpu_ring_test_helper(&adev->vce.ring[i]);
 		if (r)
-			return r;
+			goto error;
 	}
 
 	drm_info(adev_to_drm(adev), "VCE initialized successfully.\n");
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->vce.idle_work);
+	return r;
 }
 
 static int vce_v3_0_hw_fini(struct amdgpu_ip_block *ip_block)
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
index ee445d8abe474..4e1fbc7b50f53 100644
--- a/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
@@ -533,12 +533,16 @@ static int vce_v4_0_hw_init(struct amdgpu_ip_block *ip_block)
 	for (i = 0; i < adev->vce.num_rings; i++) {
 		r = amdgpu_ring_test_helper(&adev->vce.ring[i]);
 		if (r)
-			return r;
+			goto error;
 	}
 
 	drm_info(adev_to_drm(adev), "VCE initialized successfully.\n");
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->vce.idle_work);
+	return r;
 }
 
 static int vce_v4_0_hw_fini(struct amdgpu_ip_block *ip_block)
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
index e9d790914761c..70ad27daeb511 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
@@ -252,18 +252,25 @@ static int vcn_v1_0_hw_init(struct amdgpu_ip_block *ip_block)
 
 	r = amdgpu_ring_test_helper(ring);
 	if (r)
-		return r;
+		goto error_vcn;
 
 	for (i = 0; i < adev->vcn.inst[0].num_enc_rings; ++i) {
 		ring = &adev->vcn.inst->ring_enc[i];
 		r = amdgpu_ring_test_helper(ring);
 		if (r)
-			return r;
+			goto error_vcn;
 	}
 
 	ring = adev->jpeg.inst->ring_dec;
 	r = amdgpu_ring_test_helper(ring);
+	if (r)
+		goto error_both;
+	return 0;
 
+error_both:
+	cancel_delayed_work_sync(&adev->jpeg.idle_work);
+error_vcn:
+	cancel_delayed_work_sync(&adev->vcn.inst[0].idle_work);
 	return r;
 }
 
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
index 0442bfcfd384d..a8bead3124ccf 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
@@ -293,7 +293,7 @@ static int vcn_v2_0_hw_init(struct amdgpu_ip_block *ip_block)
 
 	r = amdgpu_ring_test_helper(ring);
 	if (r)
-		return r;
+		goto error;
 
 	//Disable vcn decode for sriov
 	if (amdgpu_sriov_vf(adev))
@@ -303,10 +303,14 @@ static int vcn_v2_0_hw_init(struct amdgpu_ip_block *ip_block)
 		ring = &adev->vcn.inst->ring_enc[i];
 		r = amdgpu_ring_test_helper(ring);
 		if (r)
-			return r;
+			goto error;
 	}
 
 	return 0;
+
+error:
+	cancel_delayed_work_sync(&adev->vcn.inst->idle_work);
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c b/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c
index 0d8a3cea63ee2..2592927d2fd4d 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c
@@ -480,18 +480,26 @@ static int vcn_v2_5_hw_init(struct amdgpu_ip_block *ip_block)
 
 			r = amdgpu_ring_test_helper(ring);
 			if (r)
-				return r;
+				goto error;
 
 			for (i = 0; i < adev->vcn.inst[j].num_enc_rings; ++i) {
 				ring = &adev->vcn.inst[j].ring_enc[i];
 				r = amdgpu_ring_test_helper(ring);
 				if (r)
-					return r;
+					goto error;
 			}
 		}
 	}
 
 	return r;
+
+error:
+	for (i = 0; i <= j; i++) {
+		if (adev->vcn.harvest_config & (1 << i))
+			continue;
+		cancel_delayed_work_sync(&adev->vcn.inst[i].idle_work);
+	}
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
index 00d8f35846f22..d4a3d5da3f769 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
@@ -416,18 +416,26 @@ static int vcn_v3_0_hw_init(struct amdgpu_ip_block *ip_block)
 
 			r = amdgpu_ring_test_helper(ring);
 			if (r)
-				return r;
+				goto error;
 
 			for (j = 0; j < adev->vcn.inst[i].num_enc_rings; ++j) {
 				ring = &adev->vcn.inst[i].ring_enc[j];
 				r = amdgpu_ring_test_helper(ring);
 				if (r)
-					return r;
+					goto error;
 			}
 		}
 	}
 
 	return 0;
+
+error:
+	while (i >= 0) {
+		if (!(adev->vcn.harvest_config & (1 << i)))
+			cancel_delayed_work_sync(&adev->vcn.inst[i].idle_work);
+		i--;
+	}
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
index c2ddf3cb368fd..f2e89ba9fe41f 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
@@ -348,11 +348,19 @@ static int vcn_v4_0_hw_init(struct amdgpu_ip_block *ip_block)
 
 			r = amdgpu_ring_test_helper(ring);
 			if (r)
-				return r;
+				goto error;
 		}
 	}
 
 	return 0;
+
+error:
+	while (i >= 0) {
+		if (!(adev->vcn.harvest_config & (1 << i)))
+			cancel_delayed_work_sync(&adev->vcn.inst[i].idle_work);
+		i--;
+	}
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
index 62e2e04314dca..44a5d57c07a38 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
@@ -394,11 +394,19 @@ static int vcn_v4_0_3_hw_init(struct amdgpu_ip_block *ip_block)
 
 			r = amdgpu_ring_test_helper(ring);
 			if (r)
-				return r;
+				goto error;
 		}
 	}
 
 	return r;
+
+error:
+	while (i >= 0) {
+		if (!(adev->vcn.harvest_config & (1 << i)))
+			cancel_delayed_work_sync(&adev->vcn.inst[i].idle_work);
+		i--;
+	}
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
index c8879a6e5297d..f3a57cb8b6ae5 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
@@ -302,10 +302,18 @@ static int vcn_v4_0_5_hw_init(struct amdgpu_ip_block *ip_block)
 
 		r = amdgpu_ring_test_helper(ring);
 		if (r)
-			return r;
+			goto error;
 	}
 
 	return 0;
+
+error:
+	while (i >= 0) {
+		if (!(adev->vcn.harvest_config & (1 << i)))
+			cancel_delayed_work_sync(&adev->vcn.inst[i].idle_work);
+		i--;
+	}
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
index 886e2c2074a9e..b2936da0786c7 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
@@ -266,10 +266,18 @@ static int vcn_v5_0_0_hw_init(struct amdgpu_ip_block *ip_block)
 
 		r = amdgpu_ring_test_helper(ring);
 		if (r)
-			return r;
+			goto error;
 	}
 
 	return 0;
+
+error:
+	while (i >= 0) {
+		if (!(adev->vcn.harvest_config & (1 << i)))
+			cancel_delayed_work_sync(&adev->vcn.inst[i].idle_work);
+		i--;
+	}
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
index 011afc0fdc879..5abd0da3dd921 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
@@ -341,11 +341,19 @@ static int vcn_v5_0_1_hw_init(struct amdgpu_ip_block *ip_block)
 
 			r = amdgpu_ring_test_helper(ring);
 			if (r)
-				return r;
+				goto error;
 		}
 	}
 
 	return 0;
+
+error:
+	while (i >= 0) {
+		if (!(adev->vcn.harvest_config & (1 << i)))
+			cancel_delayed_work_sync(&adev->vcn.inst[i].idle_work);
+		i--;
+	}
+	return r;
 }
 
 /**
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
index 9f9b3a47f63ba..70706703b02c6 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
@@ -223,10 +223,18 @@ static int vcn_v5_0_2_hw_init(struct amdgpu_ip_block *ip_block)
 
 		r = amdgpu_ring_test_helper(ring);
 		if (r)
-			return r;
+			goto error;
 	}
 
 	return 0;
+
+error:
+	while (i >= 0) {
+		if (!(adev->vcn.harvest_config & (1 << i)))
+			cancel_delayed_work_sync(&adev->vcn.inst[i].idle_work);
+		i--;
+	}
+	return r;
 }
 
 /**
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0031/2651] hugetlbfs: enforce F_SEAL_EXEC in setattr
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (29 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0030/2651] drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0032/2651] btrfs: replace btrfs_repair_io_failure() to use bio for page iteration Greg Kroah-Hartman
                   ` (160 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Eva Kurchatova, Pedro Falcato,
	Kiryl Shutsemau (Meta), Zi Yan, Gregory Price (Meta), Muchun Song,
	Oscar Salvador, David Hildenbrand (Arm), Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Eva Kurchatova <eva.kurchatova@virtuozzo.com>

[ Upstream commit b7f570e7cea761ec7eb4a3a9557a3a082d14e88c ]

F_SEAL_EXEC is enforced by shmem_setattr(), but hugetlbfs_setattr() does
not check it. As a result, fchmod() can change the execute bits of a
sealed hugetlbfs memfd.

Use memfd_check_seals_mode() in hugetlbfs_setattr() to reject changes
to execute bits when F_SEAL_EXEC is set.

This also fixes the memfd_test hugetlbfs SEAL-EXEC subtest, where
fchmod() incorrectly succeeded after applying F_SEAL_EXEC.

Fixes: 6fd7353829ca ("mm/memfd: add F_SEAL_EXEC")
Cc: stable@vger.kernel.org
Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
Link: https://patch.msgid.link/20260629180247.2343229-1-eva.kurchatova@virtuozzo.com
Acked-by: Pedro Falcato <pfalcato@suse.de>
Acked-by: Kiryl Shutsemau (Meta) <kas@kernel.org>
Acked-by: Zi Yan <ziy@nvidia.com>
Tested-by: Gregory Price (Meta) <gourry@gourry.net>
Reviewed-by: Muchun Song <muchun.song@linux.dev>
[ david: use common helper; fixup Fixes:; check only regular files ]
Acked-by: Oscar Salvador <osalvador@suse.de>
Link: https://patch.msgid.link/20261029-fixes_shmem-v4-5-392fc715d8f6@kernel.org
Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
[ sashal: Replaced the unavailable memfd_check_seals_mode() helper with an equivalent inline check. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/hugetlbfs/inode.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index 7611a8470ea26..2eca1855e0973 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -841,6 +841,11 @@ static int hugetlbfs_setattr(struct mnt_idmap *idmap,
 	if (error)
 		return error;
 
+	if (S_ISREG(inode->i_mode) && (ia_valid & ATTR_MODE) &&
+	    (info->seals & F_SEAL_EXEC) &&
+	    ((inode->i_mode ^ attr->ia_mode) & 0111))
+		return -EPERM;
+
 	trace_hugetlbfs_setattr(inode, dentry, attr);
 
 	if (ia_valid & ATTR_SIZE) {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0032/2651] btrfs: replace btrfs_repair_io_failure() to use bio for page iteration
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (30 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0031/2651] hugetlbfs: enforce F_SEAL_EXEC in setattr Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0033/2651] btrfs: enhance btrfs_data_csum_ok() " Greg Kroah-Hartman
                   ` (159 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Boris Burkov, Qu Wenruo,
	David Sterba, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Qu Wenruo <wqu@suse.com>

[ Upstream commit 15ed4a938b30fcb72e96187f36e2c4ff0e6e2227 ]

Currently btrfs_repair_io_failure() uses a @paddrs[] array to iterate
pages.

Such a parameter is required for bs > ps cases, as one fs block crosses
several pages.

However there is a much simpler and existing way to iterate pages: bio
and bvec_iter.

This changes btrfs_repair_io_failure() by:

- Use a const @bvec_iter pointer to locate where the pages are
- Extract file offset/logical from the @bbio
- Require no @step parameter
  Above features allow us to shorten the parameter list.

- Rename the function to btrfs_repair_bbio_failure()

- Change the caller in btrfs_repair_eb_io_failure() to allocate a bbio
  Unlike the data read path, we do not have a handy bbio in that case.
  So we need to allocate one just for btrfs_repair_bbio_failure().

- Change the error reporting in btrfs_repair_bbio_failure() to include
  root id and use inode number directly
  Now for btree inode we will report a proper inode number (1).

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: d00b85308abe ("btrfs: raid56: do not verify the content if there is no data checksum")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/btrfs/bio.c     | 61 ++++++++++++++++++++++++++--------------------
 fs/btrfs/bio.h     |  5 ++--
 fs/btrfs/disk-io.c | 25 +++++++++++++------
 3 files changed, 55 insertions(+), 36 deletions(-)

diff --git a/fs/btrfs/bio.c b/fs/btrfs/bio.c
index cc0bd03048bae..f8d4c2d550073 100644
--- a/fs/btrfs/bio.c
+++ b/fs/btrfs/bio.c
@@ -186,7 +186,6 @@ static void btrfs_end_repair_bio(struct btrfs_bio *repair_bbio,
 	 */
 	struct bvec_iter saved_iter = repair_bbio->saved_iter;
 	const u32 step = min(fs_info->sectorsize, PAGE_SIZE);
-	const u64 logical = repair_bbio->saved_iter.bi_sector << SECTOR_SHIFT;
 	const u32 nr_steps = repair_bbio->saved_iter.bi_size / step;
 	int mirror = repair_bbio->mirror_num;
 	phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE / PAGE_SIZE];
@@ -220,9 +219,8 @@ static void btrfs_end_repair_bio(struct btrfs_bio *repair_bbio,
 
 	do {
 		mirror = prev_repair_mirror(fbio, mirror);
-		btrfs_repair_io_failure(fs_info, btrfs_ino(inode),
-				  repair_bbio->file_offset, fs_info->sectorsize,
-				  logical, paddrs, step, mirror);
+		btrfs_repair_bbio_failure(repair_bbio, &repair_bbio->saved_iter,
+					  fs_info->sectorsize, mirror);
 	} while (mirror != fbio->bbio->mirror_num);
 
 done:
@@ -925,21 +923,23 @@ void btrfs_submit_bbio(struct btrfs_bio *bbio, int mirror_num)
  * The I/O is issued synchronously to block the repair read completion from
  * freeing the bio.
  *
- * @ino:	Offending inode number
- * @fileoff:	File offset inside the inode
+ * @bbio:	Original bbio where the repair is needed
+ * @orig_iter:	Points to where the repair start is
  * @length:	Length of the repair write
- * @logical:	Logical address of the range
- * @paddrs:	Physical address array of the content
- * @step:	Length of for each paddrs
  * @mirror_num: Mirror number to write to. Must not be zero
  */
-int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 fileoff,
-			    u32 length, u64 logical, const phys_addr_t paddrs[],
-			    unsigned int step, int mirror_num)
+int btrfs_repair_bbio_failure(struct btrfs_bio *bbio, const struct bvec_iter *orig_iter,
+			      u32 length, int mirror_num)
 {
-	const u32 nr_steps = DIV_ROUND_UP_POW2(length, step);
+	struct btrfs_inode *inode = bbio->inode;
+	struct btrfs_fs_info *fs_info = inode->root->fs_info;
 	struct btrfs_io_stripe smap = { 0 };
-	struct bio *bio = NULL;
+	struct bvec_iter iter = *orig_iter;
+	struct bio *repair_bio = NULL;
+	const u64 logical = iter.bi_sector << SECTOR_SHIFT;
+	const u64 fileoff = bbio->file_offset +
+			    ((iter.bi_sector - bbio->saved_iter.bi_sector) << SECTOR_SHIFT);
+	u32 cur = 0;
 	int ret = 0;
 
 	BUG_ON(!mirror_num);
@@ -950,8 +950,9 @@ int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 fileoff,
 	ASSERT(IS_ALIGNED(fileoff, fs_info->sectorsize));
 	/* Either it's a single data or metadata block. */
 	ASSERT(length <= BTRFS_MAX_BLOCKSIZE);
-	ASSERT(step <= length);
-	ASSERT(is_power_of_2(step));
+
+	/* Our current iter should not be before the original bbio saved_iter. */
+	ASSERT(iter.bi_sector >= bbio->saved_iter.bi_sector);
 
 	/*
 	 * The fs either mounted RO or hit critical errors, no need
@@ -979,15 +980,22 @@ int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 fileoff,
 		goto out_counter_dec;
 	}
 
-	bio = bio_alloc(smap.dev->bdev, nr_steps, REQ_OP_WRITE | REQ_SYNC, GFP_NOFS);
-	bio->bi_iter.bi_sector = smap.physical >> SECTOR_SHIFT;
-	for (int i = 0; i < nr_steps; i++) {
-		ret = bio_add_page(bio, phys_to_page(paddrs[i]), step, offset_in_page(paddrs[i]));
-		/* We should have allocated enough slots to contain all the different pages. */
-		ASSERT(ret == step);
+	repair_bio = bio_alloc(smap.dev->bdev, max(1, length >> PAGE_SHIFT),
+			       REQ_OP_WRITE | REQ_SYNC, GFP_NOFS);
+	repair_bio->bi_iter.bi_sector = smap.physical >> SECTOR_SHIFT;
+	while (cur < length) {
+		struct page *page = bio_iter_page(&bbio->bio, iter);
+		const u32 pg_off = bio_iter_offset(&bbio->bio, iter);
+		const u32 cur_len = min(bio_iter_len(&bbio->bio, iter), length - cur);
+
+		ret = bio_add_page(repair_bio, page, cur_len, pg_off);
+		ASSERT(ret == cur_len);
+		bio_advance_iter_single(&bbio->bio, &iter, cur_len);
+		cur += cur_len;
 	}
-	ret = submit_bio_wait(bio);
-	bio_put(bio);
+
+	ret = submit_bio_wait(repair_bio);
+	bio_put(repair_bio);
 	if (ret) {
 		/* try to remap that extent elsewhere? */
 		btrfs_dev_stat_inc_and_print(smap.dev, BTRFS_DEV_STAT_WRITE_ERRS);
@@ -995,8 +1003,9 @@ int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 fileoff,
 	}
 
 	btrfs_info_rl(fs_info,
-		"read error corrected: ino %llu off %llu (dev %s sector %llu)",
-			     ino, fileoff, btrfs_dev_name(smap.dev),
+		"read error corrected: root %llu ino %llu off %llu (dev %s sector %llu)",
+			     btrfs_root_id(inode->root), btrfs_ino(inode), fileoff,
+			     btrfs_dev_name(smap.dev),
 			     smap.physical >> SECTOR_SHIFT);
 	ret = 0;
 
diff --git a/fs/btrfs/bio.h b/fs/btrfs/bio.h
index 303ed6c7103d9..b7bd377a01624 100644
--- a/fs/btrfs/bio.h
+++ b/fs/btrfs/bio.h
@@ -126,8 +126,7 @@ void btrfs_bio_end_io(struct btrfs_bio *bbio, blk_status_t status);
 
 void btrfs_submit_bbio(struct btrfs_bio *bbio, int mirror_num);
 void btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_replace);
-int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 fileoff,
-			    u32 length, u64 logical, const phys_addr_t paddrs[],
-			    unsigned int step, int mirror_num);
+int btrfs_repair_bbio_failure(struct btrfs_bio *bbio, const struct bvec_iter *orig_iter,
+			      u32 length, int mirror_num);
 
 #endif
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index dc7ad92876c0b..0f3e8e74b7682 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -176,19 +176,24 @@ static int btrfs_repair_eb_io_failure(const struct extent_buffer *eb,
 				      int mirror_num)
 {
 	struct btrfs_fs_info *fs_info = eb->fs_info;
-	const u32 step = min(fs_info->nodesize, PAGE_SIZE);
-	const u32 nr_steps = eb->len / step;
-	phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE / PAGE_SIZE];
+	struct btrfs_bio *bbio;
+	int ret;
 
 	if (sb_rdonly(fs_info->sb))
 		return -EROFS;
 
+	/*
+	 * This bbio is only to queue all pages for btrfs_repair_bbio_failure().
+	 * Thus it will never get its endio called.
+	 */
+	bbio = btrfs_bio_alloc(max(1, fs_info->nodesize >> PAGE_SHIFT), REQ_OP_READ,
+			       BTRFS_I(fs_info->btree_inode), eb->start, NULL, NULL);
+	bbio->bio.bi_iter.bi_sector = eb->start >> SECTOR_SHIFT;
 	for (int i = 0; i < num_extent_pages(eb); i++) {
 		struct folio *folio = eb->folios[i];
 
 		/* No large folio support yet. */
 		ASSERT(folio_order(folio) == 0);
-		ASSERT(i < nr_steps);
 
 		/*
 		 * For nodesize < page size, there is just one paddr, with some
@@ -197,11 +202,17 @@ static int btrfs_repair_eb_io_failure(const struct extent_buffer *eb,
 		 * For nodesize >= page size, it's one or more paddrs, and eb->start
 		 * must be aligned to page boundary.
 		 */
-		paddrs[i] = page_to_phys(&folio->page) + offset_in_page(eb->start);
+		ret = bio_add_page(&bbio->bio, &folio->page, min(PAGE_SIZE, fs_info->nodesize),
+				   offset_in_page(eb->start));
+		ASSERT(ret == min(PAGE_SIZE, fs_info->nodesize));
 	}
+	/* Since the bbio is never submitted, we have to save the iter manually. */
+	bbio->saved_iter = bbio->bio.bi_iter;
 
-	return btrfs_repair_io_failure(fs_info, 0, eb->start, eb->len,
-				       eb->start, paddrs, step, mirror_num);
+	ret = btrfs_repair_bbio_failure(bbio, &bbio->saved_iter, fs_info->nodesize,
+					mirror_num);
+	bio_put(&bbio->bio);
+	return ret;
 }
 
 /*
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0033/2651] btrfs: enhance btrfs_data_csum_ok() to use bio for page iteration
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (31 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0032/2651] btrfs: replace btrfs_repair_io_failure() to use bio for page iteration Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0034/2651] btrfs: use a shared helper to calculate data checksum for a bio Greg Kroah-Hartman
                   ` (158 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Boris Burkov, Qu Wenruo,
	David Sterba, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Qu Wenruo <wqu@suse.com>

[ Upstream commit 3e4a083bf0c8bb727517ae781052b80167443077 ]

Currently btrfs_data_csum_ok() requires a @paddr[] array to iterate all
possible pages for bs > ps cases.

However for all btrfs_data_csum_ok() call sites, we already have a
btrfs_bio, and the bio infrastructure has many flexible ways to iterate
multiple pages already.

Change btrfs_data_csum_ok() to make full use of btrfs_bio by:

- Change the parameter list to require a @bvec_iter pointer
  And remove @bio_offset, which can be calculated through @bvec_iter and
  bbio->saved_iter.

  Also remove paddrs[], we will iterate all the pages using bio
  interfaces.

- Make the same parameter changes to repair_one_sector()

- Use bio interfaces to iterate pages from a bio

- Rename the function to btrfs_bio_data_csum_ok()

- Remove on-stack paddrs[] array usage

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: d00b85308abe ("btrfs: raid56: do not verify the content if there is no data checksum")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/btrfs/bio.c         | 82 +++++++++++++++---------------------------
 fs/btrfs/btrfs_inode.h |  4 +--
 fs/btrfs/inode.c       | 49 +++++++++++++++++++------
 3 files changed, 70 insertions(+), 65 deletions(-)

diff --git a/fs/btrfs/bio.c b/fs/btrfs/bio.c
index f8d4c2d550073..19b4855969f53 100644
--- a/fs/btrfs/bio.c
+++ b/fs/btrfs/bio.c
@@ -180,29 +180,13 @@ static void btrfs_end_repair_bio(struct btrfs_bio *repair_bbio,
 	struct btrfs_failed_bio *fbio = repair_bbio->private;
 	struct btrfs_inode *inode = repair_bbio->inode;
 	struct btrfs_fs_info *fs_info = inode->root->fs_info;
-	/*
-	 * We can not move forward the saved_iter, as it will be later
-	 * utilized by repair_bbio again.
-	 */
-	struct bvec_iter saved_iter = repair_bbio->saved_iter;
-	const u32 step = min(fs_info->sectorsize, PAGE_SIZE);
-	const u32 nr_steps = repair_bbio->saved_iter.bi_size / step;
 	int mirror = repair_bbio->mirror_num;
-	phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE / PAGE_SIZE];
-	phys_addr_t paddr;
-	unsigned int slot = 0;
 
-	/* Repair bbio should be eaxctly one block sized. */
+	/* Repair bbio should be exactly one block sized. */
 	ASSERT(repair_bbio->saved_iter.bi_size == fs_info->sectorsize);
 
-	btrfs_bio_for_each_block(paddr, &repair_bbio->bio, &saved_iter, step) {
-		ASSERT(slot < nr_steps);
-		paddrs[slot] = paddr;
-		slot++;
-	}
-
 	if (repair_bbio->bio.bi_status ||
-	    !btrfs_data_csum_ok(repair_bbio, dev, 0, paddrs)) {
+	    !btrfs_bio_data_csum_ok(repair_bbio, &repair_bbio->saved_iter, dev)) {
 		bio_reset(&repair_bbio->bio, NULL, REQ_OP_READ);
 		repair_bbio->bio.bi_iter = repair_bbio->saved_iter;
 
@@ -236,25 +220,21 @@ static void btrfs_end_repair_bio(struct btrfs_bio *repair_bbio,
  * read succeeded to restore the redundancy.
  */
 static struct btrfs_failed_bio *repair_one_sector(struct btrfs_bio *failed_bbio,
-						  u32 bio_offset,
-						  phys_addr_t paddrs[],
+						  const struct bvec_iter *orig_iter,
 						  struct btrfs_failed_bio *fbio)
 {
 	struct btrfs_inode *inode = failed_bbio->inode;
 	struct btrfs_fs_info *fs_info = inode->root->fs_info;
-	const u32 sectorsize = fs_info->sectorsize;
-	const u32 step = min(fs_info->sectorsize, PAGE_SIZE);
-	const u32 nr_steps = sectorsize / step;
-	/*
-	 * For bs > ps cases, the saved_iter can be partially moved forward.
-	 * In that case we should round it down to the block boundary.
-	 */
-	const u64 logical = round_down(failed_bbio->saved_iter.bi_sector << SECTOR_SHIFT,
-				       sectorsize);
 	struct btrfs_bio *repair_bbio;
 	struct bio *repair_bio;
+	struct bvec_iter iter = *orig_iter;
+	const u32 sectorsize = fs_info->sectorsize;
+	const u32 bio_offset = ((iter.bi_sector - failed_bbio->saved_iter.bi_sector) <<
+				SECTOR_SHIFT);
+	const u64 logical = (iter.bi_sector << SECTOR_SHIFT);
 	int num_copies;
 	int mirror;
+	u32 cur = 0;
 
 	btrfs_debug(fs_info, "repair read error: read error at %llu",
 		    failed_bbio->file_offset + bio_offset);
@@ -275,17 +255,21 @@ static struct btrfs_failed_bio *repair_one_sector(struct btrfs_bio *failed_bbio,
 
 	atomic_inc(&fbio->repair_count);
 
-	repair_bio = bio_alloc_bioset(NULL, nr_steps, REQ_OP_READ, GFP_NOFS,
-				      &btrfs_repair_bioset);
+	repair_bio = bio_alloc_bioset(NULL, max(1, sectorsize >> PAGE_SHIFT),
+				      REQ_OP_READ, GFP_NOFS, &btrfs_repair_bioset);
 	repair_bio->bi_iter.bi_sector = logical >> SECTOR_SHIFT;
-	for (int i = 0; i < nr_steps; i++) {
+	while (cur < sectorsize) {
+		struct page *page = bio_iter_page(&failed_bbio->bio, iter);
+		const u32 pg_off = bio_iter_offset(&failed_bbio->bio, iter);
+		const u32 cur_len = min(bio_iter_len(&failed_bbio->bio, iter),
+					sectorsize - cur);
 		int ret;
 
-		ASSERT(offset_in_page(paddrs[i]) + step <= PAGE_SIZE);
+		ret = bio_add_page(repair_bio, page, cur_len, pg_off);
+		ASSERT(ret == cur_len);
 
-		ret = bio_add_page(repair_bio, phys_to_page(paddrs[i]), step,
-				   offset_in_page(paddrs[i]));
-		ASSERT(ret == step);
+		bio_advance_iter_single(&failed_bbio->bio, &iter, cur_len);
+		cur += cur_len;
 	}
 
 	repair_bbio = btrfs_bio(repair_bio);
@@ -303,18 +287,16 @@ static void btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *de
 	struct btrfs_inode *inode = bbio->inode;
 	struct btrfs_fs_info *fs_info = inode->root->fs_info;
 	const u32 sectorsize = fs_info->sectorsize;
-	const u32 step = min(sectorsize, PAGE_SIZE);
-	const u32 nr_steps = sectorsize / step;
-	struct bvec_iter *iter = &bbio->saved_iter;
+	struct bvec_iter iter;
 	blk_status_t status = bbio->bio.bi_status;
 	struct btrfs_failed_bio *fbio = NULL;
-	phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE / PAGE_SIZE];
-	phys_addr_t paddr;
-	u32 offset = 0;
 
 	/* Read-repair requires the inode field to be set by the submitter. */
 	ASSERT(inode);
 
+	/* The original bbio should be sectorsize aligned. */
+	ASSERT(IS_ALIGNED(bbio->saved_iter.bi_size, sectorsize));
+
 	/*
 	 * Hand off repair bios to the repair code as there is no upper level
 	 * submitter for them.
@@ -327,16 +309,10 @@ static void btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *de
 	/* Clear the I/O error. A failed repair will reset it. */
 	bbio->bio.bi_status = BLK_STS_OK;
 
-	btrfs_bio_for_each_block(paddr, &bbio->bio, iter, step) {
-		paddrs[(offset / step) % nr_steps] = paddr;
-		offset += step;
-
-		if (IS_ALIGNED(offset, sectorsize)) {
-			if (status ||
-			    !btrfs_data_csum_ok(bbio, dev, offset - sectorsize, paddrs))
-				fbio = repair_one_sector(bbio, offset - sectorsize,
-							 paddrs, fbio);
-		}
+	for (iter = bbio->saved_iter; iter.bi_size;
+	     bio_advance_iter(&bbio->bio, &iter, sectorsize)) {
+		if (status || !btrfs_bio_data_csum_ok(bbio, &iter, dev))
+			fbio = repair_one_sector(bbio, &iter, fbio);
 	}
 	if (bbio->csum != bbio->csum_inline)
 		kvfree(bbio->csum);
@@ -924,7 +900,7 @@ void btrfs_submit_bbio(struct btrfs_bio *bbio, int mirror_num)
  * freeing the bio.
  *
  * @bbio:	Original bbio where the repair is needed
- * @orig_iter:	Points to where the repair start is
+ * @orig_iter:	Points to where the repair starts
  * @length:	Length of the repair write
  * @mirror_num: Mirror number to write to. Must not be zero
  */
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h
index 1082fa92c1457..171f96bdb8aa7 100644
--- a/fs/btrfs/btrfs_inode.h
+++ b/fs/btrfs/btrfs_inode.h
@@ -513,8 +513,8 @@ void btrfs_calculate_block_csum_pages(struct btrfs_fs_info *fs_info,
 				      const phys_addr_t paddrs[], u8 *dest);
 int btrfs_check_block_csum(struct btrfs_fs_info *fs_info, phys_addr_t paddr, u8 *csum,
 			   const u8 * const csum_expected);
-bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev,
-			u32 bio_offset, const phys_addr_t paddrs[]);
+bool btrfs_bio_data_csum_ok(struct btrfs_bio *bbio, const struct bvec_iter *orig_iter,
+			    struct btrfs_device *dev);
 noinline int can_nocow_extent(struct btrfs_inode *inode, u64 offset, u64 *len,
 			      struct btrfs_file_extent *file_extent,
 			      bool nowait);
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index aa1201fe4d7f8..f842884722081 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -3551,27 +3551,31 @@ int btrfs_check_block_csum(struct btrfs_fs_info *fs_info, phys_addr_t paddr, u8
  * different noncontiguous pages.
  *
  * @bbio:	btrfs_io_bio which contains the csum
- * @dev:	device the sector is on
- * @bio_offset:	offset to the beginning of the bio (in bytes)
- * @paddrs:	physical addresses which back the fs block
+ * @orig_iter:	bvec iter pointing to the start of the block
+ * @dev:	device the sector is on (optional)
  *
  * Check if the checksum on a data block is valid.  When a checksum mismatch is
  * detected, report the error and fill the corrupted range with zero.
  *
  * Return %true if the sector is ok or had no checksum to start with, else %false.
  */
-bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev,
-			u32 bio_offset, const phys_addr_t paddrs[])
+bool btrfs_bio_data_csum_ok(struct btrfs_bio *bbio,
+			    const struct bvec_iter *orig_iter,
+			    struct btrfs_device *dev)
 {
 	struct btrfs_inode *inode = bbio->inode;
 	struct btrfs_fs_info *fs_info = inode->root->fs_info;
+	struct bvec_iter iter = *orig_iter;
+	struct btrfs_csum_ctx cctx;
 	const u32 blocksize = fs_info->sectorsize;
-	const u32 step = min(blocksize, PAGE_SIZE);
-	const u32 nr_steps = blocksize / step;
+	const u32 bio_offset = (iter.bi_sector - bbio->saved_iter.bi_sector) << SECTOR_SHIFT;
 	u64 file_offset = bbio->file_offset + bio_offset;
 	u64 end = file_offset + blocksize - 1;
 	u8 *csum_expected;
 	u8 csum[BTRFS_CSUM_SIZE];
+	u32 cur = 0;
+
+	ASSERT(iter.bi_sector >= bbio->saved_iter.bi_sector);
 
 	if (!bbio->csum)
 		return true;
@@ -3587,7 +3591,22 @@ bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev,
 
 	csum_expected = bbio->csum + (bio_offset >> fs_info->sectorsize_bits) *
 				fs_info->csum_size;
-	btrfs_calculate_block_csum_pages(fs_info, paddrs, csum);
+	btrfs_csum_init(&cctx, fs_info->csum_type);
+	while (cur < blocksize) {
+		struct page *page = bio_iter_page(&bbio->bio, iter);
+		const u32 pg_off = bio_iter_offset(&bbio->bio, iter);
+		const u32 cur_len = min(bio_iter_len(&bbio->bio, iter), blocksize - cur);
+		void *kaddr;
+
+		kaddr = kmap_local_page(page) + pg_off;
+		btrfs_csum_update(&cctx, kaddr, cur_len);
+		kunmap_local(kaddr);
+
+		bio_advance_iter_single(&bbio->bio, &iter, cur_len);
+		cur += cur_len;
+	}
+	btrfs_csum_final(&cctx, csum);
+
 	if (unlikely(memcmp(csum, csum_expected, fs_info->csum_size) != 0))
 		goto zeroit;
 	return true;
@@ -3597,8 +3616,18 @@ bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev,
 				    bbio->mirror_num);
 	if (dev)
 		btrfs_dev_stat_inc_and_print(dev, BTRFS_DEV_STAT_CORRUPTION_ERRS);
-	for (int i = 0; i < nr_steps; i++)
-		memzero_page(phys_to_page(paddrs[i]), offset_in_page(paddrs[i]), step);
+	cur = 0;
+	iter = *orig_iter;
+	while (cur < blocksize) {
+		struct page *page = bio_iter_page(&bbio->bio, iter);
+		const u32 pg_off = bio_iter_offset(&bbio->bio, iter);
+		const u32 cur_len = min(bio_iter_len(&bbio->bio, iter), blocksize - cur);
+
+		memzero_page(page, pg_off, cur_len);
+
+		bio_advance_iter_single(&bbio->bio, &iter, cur_len);
+		cur += cur_len;
+	}
 	return false;
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0034/2651] btrfs: use a shared helper to calculate data checksum for a bio
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (32 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0033/2651] btrfs: enhance btrfs_data_csum_ok() " Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0035/2651] btrfs: remove on-stack paddrs[] array usage Greg Kroah-Hartman
                   ` (157 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Boris Burkov, Qu Wenruo,
	David Sterba, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Qu Wenruo <wqu@suse.com>

[ Upstream commit 64978a4eced2b8f769cdfc27d68c6710e9c92627 ]

Since we are already calculating data checksum using bio interface,
extract the generation part into btrfs_csum_one_bio_block(), and use that
to replace the paddrs[] array based solution in csum_one_bio().

This will reduce 128 bytes on-stack memory usage for csum_one_bio().

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: d00b85308abe ("btrfs: raid56: do not verify the content if there is no data checksum")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/btrfs/btrfs_inode.h |  2 ++
 fs/btrfs/file-item.c   | 19 +++++------------
 fs/btrfs/inode.c       | 46 +++++++++++++++++++++++++-----------------
 3 files changed, 34 insertions(+), 33 deletions(-)

diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h
index 171f96bdb8aa7..e137a99151bd0 100644
--- a/fs/btrfs/btrfs_inode.h
+++ b/fs/btrfs/btrfs_inode.h
@@ -515,6 +515,8 @@ int btrfs_check_block_csum(struct btrfs_fs_info *fs_info, phys_addr_t paddr, u8
 			   const u8 * const csum_expected);
 bool btrfs_bio_data_csum_ok(struct btrfs_bio *bbio, const struct bvec_iter *orig_iter,
 			    struct btrfs_device *dev);
+void btrfs_csum_one_bio_block(struct btrfs_fs_info *fs_info, struct bio *bio,
+			      const struct bvec_iter *orig_iter, u8 *csum);
 noinline int can_nocow_extent(struct btrfs_inode *inode, u64 offset, u64 *len,
 			      struct btrfs_file_extent *file_extent,
 			      bool nowait);
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c
index cf50fd623f41a..581ca5653be93 100644
--- a/fs/btrfs/file-item.c
+++ b/fs/btrfs/file-item.c
@@ -801,25 +801,16 @@ static void csum_one_bio(struct btrfs_bio *bbio, struct bvec_iter *src)
 {
 	struct btrfs_inode *inode = bbio->inode;
 	struct btrfs_fs_info *fs_info = inode->root->fs_info;
-	struct bio *bio = &bbio->bio;
 	struct btrfs_ordered_sum *sums = bbio->sums;
-	struct bvec_iter iter = *src;
-	phys_addr_t paddr;
+	struct bvec_iter iter;
 	const u32 blocksize = fs_info->sectorsize;
-	const u32 step = min(blocksize, PAGE_SIZE);
-	const u32 nr_steps = blocksize / step;
-	phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE / PAGE_SIZE];
-	u32 offset = 0;
 	int index = 0;
 
-	btrfs_bio_for_each_block(paddr, bio, &iter, step) {
-		paddrs[(offset / step) % nr_steps] = paddr;
-		offset += step;
+	for (iter = *src; iter.bi_size; bio_advance_iter(&bbio->bio, &iter, blocksize)) {
+		btrfs_csum_one_bio_block(fs_info, &bbio->bio, &iter,
+					 sums->sums + index);
 
-		if (IS_ALIGNED(offset, blocksize)) {
-			btrfs_calculate_block_csum_pages(fs_info, paddrs, sums->sums + index);
-			index += fs_info->csum_size;
-		}
+		index += fs_info->csum_size;
 	}
 }
 
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index f842884722081..c8479ffc8d1df 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -3546,6 +3546,32 @@ int btrfs_check_block_csum(struct btrfs_fs_info *fs_info, phys_addr_t paddr, u8
 	return 0;
 }
 
+/* Generate data checksum for a single fs block, pointed to by @orig_iter. */
+void btrfs_csum_one_bio_block(struct btrfs_fs_info *fs_info, struct bio *bio,
+			      const struct bvec_iter *orig_iter, u8 *csum)
+{
+	struct btrfs_csum_ctx cctx;
+	struct bvec_iter iter = *orig_iter;
+	const u32 blocksize = fs_info->sectorsize;
+	u32 cur = 0;
+
+	btrfs_csum_init(&cctx, fs_info->csum_type);
+	while (cur < blocksize) {
+		struct page *page = bio_iter_page(bio, iter);
+		const u32 pg_off = bio_iter_offset(bio, iter);
+		const u32 cur_len = min(bio_iter_len(bio, iter), blocksize - cur);
+		void *kaddr;
+
+		kaddr = kmap_local_page(page) + pg_off;
+		btrfs_csum_update(&cctx, kaddr, cur_len);
+		kunmap_local(kaddr);
+
+		bio_advance_iter_single(bio, &iter, cur_len);
+		cur += cur_len;
+	}
+	btrfs_csum_final(&cctx, csum);
+}
+
 /*
  * Verify the checksum of a single data sector, which can be scattered at
  * different noncontiguous pages.
@@ -3566,7 +3592,6 @@ bool btrfs_bio_data_csum_ok(struct btrfs_bio *bbio,
 	struct btrfs_inode *inode = bbio->inode;
 	struct btrfs_fs_info *fs_info = inode->root->fs_info;
 	struct bvec_iter iter = *orig_iter;
-	struct btrfs_csum_ctx cctx;
 	const u32 blocksize = fs_info->sectorsize;
 	const u32 bio_offset = (iter.bi_sector - bbio->saved_iter.bi_sector) << SECTOR_SHIFT;
 	u64 file_offset = bbio->file_offset + bio_offset;
@@ -3591,22 +3616,7 @@ bool btrfs_bio_data_csum_ok(struct btrfs_bio *bbio,
 
 	csum_expected = bbio->csum + (bio_offset >> fs_info->sectorsize_bits) *
 				fs_info->csum_size;
-	btrfs_csum_init(&cctx, fs_info->csum_type);
-	while (cur < blocksize) {
-		struct page *page = bio_iter_page(&bbio->bio, iter);
-		const u32 pg_off = bio_iter_offset(&bbio->bio, iter);
-		const u32 cur_len = min(bio_iter_len(&bbio->bio, iter), blocksize - cur);
-		void *kaddr;
-
-		kaddr = kmap_local_page(page) + pg_off;
-		btrfs_csum_update(&cctx, kaddr, cur_len);
-		kunmap_local(kaddr);
-
-		bio_advance_iter_single(&bbio->bio, &iter, cur_len);
-		cur += cur_len;
-	}
-	btrfs_csum_final(&cctx, csum);
-
+	btrfs_csum_one_bio_block(fs_info, &bbio->bio, orig_iter, csum);
 	if (unlikely(memcmp(csum, csum_expected, fs_info->csum_size) != 0))
 		goto zeroit;
 	return true;
@@ -3616,8 +3626,6 @@ bool btrfs_bio_data_csum_ok(struct btrfs_bio *bbio,
 				    bbio->mirror_num);
 	if (dev)
 		btrfs_dev_stat_inc_and_print(dev, BTRFS_DEV_STAT_CORRUPTION_ERRS);
-	cur = 0;
-	iter = *orig_iter;
 	while (cur < blocksize) {
 		struct page *page = bio_iter_page(&bbio->bio, iter);
 		const u32 pg_off = bio_iter_offset(&bbio->bio, iter);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0035/2651] btrfs: remove on-stack paddrs[] array usage
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (33 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0034/2651] btrfs: use a shared helper to calculate data checksum for a bio Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0036/2651] btrfs: raid56: do not verify the content if there is no data checksum Greg Kroah-Hartman
                   ` (156 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Boris Burkov, Qu Wenruo,
	David Sterba, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Qu Wenruo <wqu@suse.com>

[ Upstream commit f41f4dcddea1b9eb41fc3a5491b2a8dd1f7c21ff ]

Since the bs > ps support, we have to handle cases where a data block is
inside several discontiguous pages.

Thus we need a local paddrs[] array to assemble a data block for bs > ps
cases.

However to handle all possible bs/ps combinations, we have to declare
such array using the max block size vs page size, no matter the current
block size and page size.

This adds 128 bytes on-stack memory usage for several call sites, and
also introduced several duplicated helpers to calculate checksum for a
data block:

- btrfs_calculate_block_csum_folio()
- btrfs_calculate_block_csum_pages()
- btrfs_check_block_csum()

The differences are mostly in how the data is passed.
The first one accepts a contiguous paddr range.
The second one accepts an array of paddrs[].
The last one is just a simple wrapper of the first one.

However the most common interface to iterate a data block is through
bio, and we have already converted most callers to use the bio based
interface, e.g. btrfs_bio_data_csum_ok() and btrfs_csum_one_bio_block().

Convert the remaining two call sites to address the remaining paddrs[]
usage:

- btrfs_calculate_block_csum_pages() inside verify_bio_data_sectors()
  This can be switched to btrfs_csum_one_bio_block().

  This removes the 128 bytes on-stack memory usage.

- btrfs_calculate_block_csum_pages() inside verify_one_sector()
  This call site doesn't use on-stack memory for paddrs[], but reuses
  the existing btrfs_raid_bio::bio_paddrs[] or
  btrfs_raid_bio::stripe_paddrs[].

  So implement a local version called calculate_block_csum_paddrs().

Now there is no fixed on-stack paddrs[] usage anymore.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: d00b85308abe ("btrfs: raid56: do not verify the content if there is no data checksum")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/btrfs/btrfs_inode.h |  6 ----
 fs/btrfs/inode.c       | 75 ------------------------------------------
 fs/btrfs/raid56.c      | 46 +++++++++++++++-----------
 3 files changed, 27 insertions(+), 100 deletions(-)

diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h
index e137a99151bd0..89e5e9c0c904f 100644
--- a/fs/btrfs/btrfs_inode.h
+++ b/fs/btrfs/btrfs_inode.h
@@ -507,12 +507,6 @@ static inline void btrfs_set_inode_mapping_order(struct btrfs_inode *inode)
 				      inode->root->fs_info->block_max_order);
 }
 
-void btrfs_calculate_block_csum_folio(struct btrfs_fs_info *fs_info,
-				      const phys_addr_t paddr, u8 *dest);
-void btrfs_calculate_block_csum_pages(struct btrfs_fs_info *fs_info,
-				      const phys_addr_t paddrs[], u8 *dest);
-int btrfs_check_block_csum(struct btrfs_fs_info *fs_info, phys_addr_t paddr, u8 *csum,
-			   const u8 * const csum_expected);
 bool btrfs_bio_data_csum_ok(struct btrfs_bio *bbio, const struct bvec_iter *orig_iter,
 			    struct btrfs_device *dev);
 void btrfs_csum_one_bio_block(struct btrfs_fs_info *fs_info, struct bio *bio,
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index c8479ffc8d1df..c2a720f74d56d 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -3471,81 +3471,6 @@ int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered)
 	return btrfs_finish_one_ordered(ordered);
 }
 
-/*
- * Calculate the checksum of an fs block at physical memory address @paddr,
- * and save the result to @dest.
- *
- * The folio containing @paddr must be large enough to contain a full fs block.
- */
-void btrfs_calculate_block_csum_folio(struct btrfs_fs_info *fs_info,
-				      const phys_addr_t paddr, u8 *dest)
-{
-	struct folio *folio = page_folio(phys_to_page(paddr));
-	const u32 blocksize = fs_info->sectorsize;
-	const u32 step = min(blocksize, PAGE_SIZE);
-	const u32 nr_steps = blocksize / step;
-	phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE / PAGE_SIZE];
-
-	/* The full block must be inside the folio. */
-	ASSERT(offset_in_folio(folio, paddr) + blocksize <= folio_size(folio));
-
-	for (int i = 0; i < nr_steps; i++) {
-		u32 pindex = offset_in_folio(folio, paddr + i * step) >> PAGE_SHIFT;
-
-		/*
-		 * For bs <= ps cases, we will only run the loop once, so the offset
-		 * inside the page will only added to paddrs[0].
-		 *
-		 * For bs > ps cases, the block must be page aligned, thus offset
-		 * inside the page will always be 0.
-		 */
-		paddrs[i] = page_to_phys(folio_page(folio, pindex)) + offset_in_page(paddr);
-	}
-	return btrfs_calculate_block_csum_pages(fs_info, paddrs, dest);
-}
-
-/*
- * Calculate the checksum of a fs block backed by multiple noncontiguous pages
- * at @paddrs[] and save the result to @dest.
- *
- * The folio containing @paddr must be large enough to contain a full fs block.
- */
-void btrfs_calculate_block_csum_pages(struct btrfs_fs_info *fs_info,
-				      const phys_addr_t paddrs[], u8 *dest)
-{
-	const u32 blocksize = fs_info->sectorsize;
-	const u32 step = min(blocksize, PAGE_SIZE);
-	const u32 nr_steps = blocksize / step;
-	struct btrfs_csum_ctx csum;
-
-	btrfs_csum_init(&csum, fs_info->csum_type);
-	for (int i = 0; i < nr_steps; i++) {
-		const phys_addr_t paddr = paddrs[i];
-		void *kaddr;
-
-		ASSERT(offset_in_page(paddr) + step <= PAGE_SIZE);
-		kaddr = kmap_local_page(phys_to_page(paddr)) + offset_in_page(paddr);
-		btrfs_csum_update(&csum, kaddr, step);
-		kunmap_local(kaddr);
-	}
-	btrfs_csum_final(&csum, dest);
-}
-
-/*
- * Verify the checksum for a single sector without any extra action that depend
- * on the type of I/O.
- *
- * @kaddr must be a properly kmapped address.
- */
-int btrfs_check_block_csum(struct btrfs_fs_info *fs_info, phys_addr_t paddr, u8 *csum,
-			   const u8 * const csum_expected)
-{
-	btrfs_calculate_block_csum_folio(fs_info, paddr, csum);
-	if (unlikely(memcmp(csum, csum_expected, fs_info->csum_size) != 0))
-		return -EIO;
-	return 0;
-}
-
 /* Generate data checksum for a single fs block, pointed to by @orig_iter. */
 void btrfs_csum_one_bio_block(struct btrfs_fs_info *fs_info, struct bio *bio,
 			      const struct bvec_iter *orig_iter, u8 *csum)
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c
index 1ee52a9dcee36..a5d0ef09d92ab 100644
--- a/fs/btrfs/raid56.c
+++ b/fs/btrfs/raid56.c
@@ -1652,12 +1652,7 @@ static void verify_bio_data_sectors(struct btrfs_raid_bio *rbio,
 				    struct bio *bio)
 {
 	struct btrfs_fs_info *fs_info = rbio->bioc->fs_info;
-	const u32 step = min(fs_info->sectorsize, PAGE_SIZE);
-	const u32 nr_steps = rbio->sector_nsteps;
 	int total_sector_nr = get_bio_sector_nr(rbio, bio);
-	u32 offset = 0;
-	phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE / PAGE_SIZE];
-	phys_addr_t paddr;
 
 	/* No data csum for the whole stripe, no need to verify. */
 	if (!rbio->csum_bitmap || !rbio->csum_buf)
@@ -1667,28 +1662,20 @@ static void verify_bio_data_sectors(struct btrfs_raid_bio *rbio,
 	if (total_sector_nr >= rbio->nr_data * rbio->stripe_nsectors)
 		return;
 
-	btrfs_bio_for_each_block_all(paddr, bio, step) {
+	for (struct bvec_iter iter = init_bvec_iter_for_bio(bio);
+	     iter.bi_size;
+	     bio_advance_iter(bio, &iter, fs_info->sectorsize), total_sector_nr++) {
 		u8 csum_buf[BTRFS_CSUM_SIZE];
 		u8 *expected_csum;
 
-		paddrs[(offset / step) % nr_steps] = paddr;
-		offset += step;
-
-		/* Not yet covering the full fs block, continue to the next step. */
-		if (!IS_ALIGNED(offset, fs_info->sectorsize))
-			continue;
-
 		/* No csum for this sector, skip to the next sector. */
-		if (!test_bit(total_sector_nr, rbio->csum_bitmap)) {
-			total_sector_nr++;
+		if (!test_bit(total_sector_nr, rbio->csum_bitmap))
 			continue;
-		}
 
 		expected_csum = rbio->csum_buf + total_sector_nr * fs_info->csum_size;
-		btrfs_calculate_block_csum_pages(fs_info, paddrs, csum_buf);
+		btrfs_csum_one_bio_block(fs_info, bio, &iter, csum_buf);
 		if (unlikely(memcmp(csum_buf, expected_csum, fs_info->csum_size) != 0))
 			set_bit(total_sector_nr, rbio->error_bitmap);
-		total_sector_nr++;
 	}
 }
 
@@ -1879,6 +1866,27 @@ void raid56_parity_write(struct bio *bio, struct btrfs_io_context *bioc)
 	start_async_work(rbio, rmw_rbio_work);
 }
 
+static void calculate_block_csum_paddrs(struct btrfs_fs_info *fs_info,
+					const phys_addr_t paddrs[], u8 *dest)
+{
+	const u32 blocksize = fs_info->sectorsize;
+	const u32 step = min(blocksize, PAGE_SIZE);
+	const u32 nr_steps = blocksize / step;
+	struct btrfs_csum_ctx csum;
+
+	btrfs_csum_init(&csum, fs_info->csum_type);
+	for (int i = 0; i < nr_steps; i++) {
+		const phys_addr_t paddr = paddrs[i];
+		void *kaddr;
+
+		ASSERT(offset_in_page(paddr) + step <= PAGE_SIZE);
+		kaddr = kmap_local_page(phys_to_page(paddr)) + offset_in_page(paddr);
+		btrfs_csum_update(&csum, kaddr, step);
+		kunmap_local(kaddr);
+	}
+	btrfs_csum_final(&csum, dest);
+}
+
 static int verify_one_sector(struct btrfs_raid_bio *rbio,
 			     int stripe_nr, int sector_nr)
 {
@@ -1906,7 +1914,7 @@ static int verify_one_sector(struct btrfs_raid_bio *rbio,
 	csum_expected = rbio->csum_buf +
 			(stripe_nr * rbio->stripe_nsectors + sector_nr) *
 			fs_info->csum_size;
-	btrfs_calculate_block_csum_pages(fs_info, paddrs, csum_buf);
+	calculate_block_csum_paddrs(fs_info, paddrs, csum_buf);
 	if (unlikely(memcmp(csum_buf, csum_expected, fs_info->csum_size) != 0))
 		return -EIO;
 	return 0;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0036/2651] btrfs: raid56: do not verify the content if there is no data checksum
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (34 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0035/2651] btrfs: remove on-stack paddrs[] array usage Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0037/2651] cipso: stop modifying live ip_options_rcu Greg Kroah-Hartman
                   ` (155 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Bartosz Fenski, Filipe Manana,
	Qu Wenruo, David Sterba, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Qu Wenruo <wqu@suse.com>

[ Upstream commit d00b85308abee300dfb7e1ac642f38bab9ec7492 ]

[BUG]
There is a bug report that fio can fail to sync the data on a degraded
RAID56 mount:

  # mkfs.btrfs -m raid1 -d raid5 -f $dev1 $dev2 $dev3
  # mount $dev1 $mnt
  # btrfs balance start -d $mnt
  # umount $mnt
  # btrfs dev scan -u $dev2
  # wipefs -fa $dev2
  # mount -o degraded $dev1 $mnt
  # fio --name=degraded-write --directory=$mnt --rw=randwrite --fdatasync=4 \
		--bs=4k --size=512M --randrepeat=1

The run will fail at fsync:

  fio: io_u error on file /mnt/btrfs/degraded-write.0.0: Input/output error: datasync offset=142254080, buflen=0
  fio: pid=2064, err=5/file:io_u.c:2008, func=io_u error, error=Input/output error

[CAUSE]
With extra debug output, it shows the problem pretty well:

  rbio=2876243968 faila=0 sectornr=0
  rbio=2876243968 error=0-15 csum=2 bio=15

The first line shows the rbio's full stripe logical, and stripe/sector
number when verify_one_sector() failed.

The second line shows more detail about the rbio, the sector range [0, 16)
is corrupted, which indicates the first data stripe is corrupted, matching
the missing device.

The important part is that the csum bitmap shows the data csum is only
for sector number 2, meanwhile the failed verification is at sector
number 0.

This means we did the checksum verification even if no corresponding
checksum is populated.

[FIX]
There is already a similar check at verify_bio_data_sectors(), but
unfortunately there is no such check at verify_one_sector().

Add the missing check to skip the csum verification if there is no
corresponding data checksum.

Reported-by: Bartosz Fenski <bartosz@fenski.pl>
Link: https://lore.kernel.org/linux-btrfs/a72409af-45ef-45df-9970-2e38bcb22ea6@fenski.pl/
Fixes: 7a3150723061 ("btrfs: raid56: do data csum verification during RMW cycle")
CC: stable@vger.kernel.org
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/btrfs/raid56.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c
index a5d0ef09d92ab..3412f43d5dec1 100644
--- a/fs/btrfs/raid56.c
+++ b/fs/btrfs/raid56.c
@@ -1892,6 +1892,8 @@ static int verify_one_sector(struct btrfs_raid_bio *rbio,
 {
 	struct btrfs_fs_info *fs_info = rbio->bioc->fs_info;
 	phys_addr_t *paddrs;
+	const unsigned int total_sector_nr =
+		stripe_nr * rbio->stripe_nsectors + sector_nr;
 	u8 csum_buf[BTRFS_CSUM_SIZE];
 	u8 *csum_expected;
 
@@ -1901,6 +1903,11 @@ static int verify_one_sector(struct btrfs_raid_bio *rbio,
 	/* No way to verify P/Q as they are not covered by data csum. */
 	if (stripe_nr >= rbio->nr_data)
 		return 0;
+
+	/* No data checksum for this sector. */
+	if (!test_bit(total_sector_nr, rbio->csum_bitmap))
+		return 0;
+
 	/*
 	 * If we're rebuilding a read, we have to use pages from the
 	 * bio list if possible.
@@ -1911,9 +1918,7 @@ static int verify_one_sector(struct btrfs_raid_bio *rbio,
 		paddrs = rbio_stripe_paddrs(rbio, stripe_nr, sector_nr);
 	}
 
-	csum_expected = rbio->csum_buf +
-			(stripe_nr * rbio->stripe_nsectors + sector_nr) *
-			fs_info->csum_size;
+	csum_expected = rbio->csum_buf + total_sector_nr * fs_info->csum_size;
 	calculate_block_csum_paddrs(fs_info, paddrs, csum_buf);
 	if (unlikely(memcmp(csum_buf, csum_expected, fs_info->csum_size) != 0))
 		return -EIO;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0037/2651] cipso: stop modifying live ip_options_rcu
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (35 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0036/2651] btrfs: raid56: do not verify the content if there is no data checksum Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0038/2651] nvme-tcp: fix use-after-free in nvme_tcp_free_ctrl() Greg Kroah-Hartman
                   ` (154 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Jann Horn, Eric Dumazet, Paul Moore,
	Jakub Kicinski, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Jann Horn <jannh@google.com>

[ Upstream commit 1f2c5183fc0902892648f0453e38c0951cef3fec ]

cipso_v4_delopt() operates on the ip_options_rcu of a socket or a request
socket, and tries to remove CIPSO options from the middle by moving all
subsequent options.
That's not allowed - ip_options_rcu can be read locklessly and must always
be consistent. For example, ip_options_undo() reads trusted offsets and
length values from the options buffer.
Fix it by doing the modification in a copy.

The core change is in cipso_v4_delopt(), the rest is ugly plumbing to
propagate memory allocation failures.

Triggering this bug requires that the system is configured to use CIPSO.
(Setting up CIPSO requires privileges in init_user_ns.)

Fixes: f6d8bd051c39 ("inet: add RCU protection to inet->opt")
Cc: stable@vger.kernel.org
Signed-off-by: Jann Horn <jannh@google.com>
Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Acked-by: Paul Moore <paul@paul-moore.com>
Link: https://patch.msgid.link/20261106-cipso-rcuopts-v1-1-31ae931d7a0f@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 include/net/cipso_ipv4.h     | 11 ++++++-----
 include/net/netlabel.h       | 11 ++++++-----
 net/ipv4/cipso_ipv4.c        | 16 +++++++++++++---
 net/netlabel/netlabel_kapi.c | 24 ++++++++++--------------
 security/selinux/netlabel.c  |  5 +++--
 security/smack/smack_lsm.c   | 14 +++++++++-----
 6 files changed, 47 insertions(+), 34 deletions(-)

diff --git a/include/net/cipso_ipv4.h b/include/net/cipso_ipv4.h
index d6780d7903f4a..b41672221797b 100644
--- a/include/net/cipso_ipv4.h
+++ b/include/net/cipso_ipv4.h
@@ -185,12 +185,12 @@ int cipso_v4_sock_setattr(struct sock *sk,
 			  const struct cipso_v4_doi *doi_def,
 			  const struct netlbl_lsm_secattr *secattr,
 			  bool sk_locked);
-void cipso_v4_sock_delattr(struct sock *sk);
+int cipso_v4_sock_delattr(struct sock *sk);
 int cipso_v4_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr);
 int cipso_v4_req_setattr(struct request_sock *req,
 			 const struct cipso_v4_doi *doi_def,
 			 const struct netlbl_lsm_secattr *secattr);
-void cipso_v4_req_delattr(struct request_sock *req);
+int cipso_v4_req_delattr(struct request_sock *req);
 int cipso_v4_skbuff_setattr(struct sk_buff *skb,
 			    const struct cipso_v4_doi *doi_def,
 			    const struct netlbl_lsm_secattr *secattr);
@@ -221,8 +221,9 @@ static inline int cipso_v4_sock_setattr(struct sock *sk,
 	return -ENOSYS;
 }
 
-static inline void cipso_v4_sock_delattr(struct sock *sk)
+static inline int cipso_v4_sock_delattr(struct sock *sk)
 {
+	return 0;
 }
 
 static inline int cipso_v4_sock_getattr(struct sock *sk,
@@ -238,9 +239,9 @@ static inline int cipso_v4_req_setattr(struct request_sock *req,
 	return -ENOSYS;
 }
 
-static inline void cipso_v4_req_delattr(struct request_sock *req)
+static inline int cipso_v4_req_delattr(struct request_sock *req)
 {
-	return;
+	return 0;
 }
 
 static inline int cipso_v4_skbuff_setattr(struct sk_buff *skb,
diff --git a/include/net/netlabel.h b/include/net/netlabel.h
index 02914b1df38ba..f896b9d52ed16 100644
--- a/include/net/netlabel.h
+++ b/include/net/netlabel.h
@@ -477,7 +477,7 @@ int netlbl_sock_setattr(struct sock *sk,
 			u16 family,
 			const struct netlbl_lsm_secattr *secattr,
 			bool sk_locked);
-void netlbl_sock_delattr(struct sock *sk);
+int netlbl_sock_delattr(struct sock *sk);
 int netlbl_sock_getattr(struct sock *sk,
 			struct netlbl_lsm_secattr *secattr);
 int netlbl_conn_setattr(struct sock *sk,
@@ -485,7 +485,7 @@ int netlbl_conn_setattr(struct sock *sk,
 			const struct netlbl_lsm_secattr *secattr);
 int netlbl_req_setattr(struct request_sock *req,
 		       const struct netlbl_lsm_secattr *secattr);
-void netlbl_req_delattr(struct request_sock *req);
+int netlbl_req_delattr(struct request_sock *req);
 int netlbl_skbuff_setattr(struct sk_buff *skb,
 			  u16 family,
 			  const struct netlbl_lsm_secattr *secattr);
@@ -626,8 +626,9 @@ static inline int netlbl_sock_setattr(struct sock *sk,
 {
 	return -ENOSYS;
 }
-static inline void netlbl_sock_delattr(struct sock *sk)
+static inline int netlbl_sock_delattr(struct sock *sk)
 {
+	return 0;
 }
 static inline int netlbl_sock_getattr(struct sock *sk,
 				      struct netlbl_lsm_secattr *secattr)
@@ -645,9 +646,9 @@ static inline int netlbl_req_setattr(struct request_sock *req,
 {
 	return -ENOSYS;
 }
-static inline void netlbl_req_delattr(struct request_sock *req)
+static inline int netlbl_req_delattr(struct request_sock *req)
 {
-	return;
+	return 0;
 }
 static inline int netlbl_skbuff_setattr(struct sk_buff *skb,
 				      u16 family,
diff --git a/net/ipv4/cipso_ipv4.c b/net/ipv4/cipso_ipv4.c
index e65a3f29d2caf..ee0c72fbc8773 100644
--- a/net/ipv4/cipso_ipv4.c
+++ b/net/ipv4/cipso_ipv4.c
@@ -2004,11 +2004,16 @@ static int cipso_v4_delopt(struct ip_options_rcu __rcu **opt_ptr)
 	if (!opt || opt->opt.cipso == 0)
 		return 0;
 	if (opt->opt.srr || opt->opt.rr || opt->opt.ts || opt->opt.router_alert) {
+		struct ip_options_rcu *old_opt = opt;
 		u8 cipso_len;
 		u8 cipso_off;
 		unsigned char *cipso_ptr;
 		int optlen_new;
 
+		/* ip_options_rcu must not be modified in place, use a copy */
+		opt = kmemdup(opt, sizeof(*opt) + opt->opt.optlen, GFP_ATOMIC);
+		if (!opt)
+			return -ENOMEM;
 		cipso_off = opt->opt.cipso - sizeof(struct iphdr);
 		cipso_ptr = &opt->opt.__data[cipso_off];
 		cipso_len = cipso_ptr[1];
@@ -2036,6 +2041,8 @@ static int cipso_v4_delopt(struct ip_options_rcu __rcu **opt_ptr)
 
 		memset(&opt->opt.__data[optlen_new], IPOPT_END,
 		       opt->opt.optlen - optlen_new);
+		rcu_assign_pointer(*opt_ptr, opt);
+		kfree_rcu(old_opt, rcu);
 	} else {
 		/* only the cipso option was present on the socket so we can
 		 * remove the entire option struct */
@@ -2055,7 +2062,7 @@ static int cipso_v4_delopt(struct ip_options_rcu __rcu **opt_ptr)
  * Removes the CIPSO option from a socket, if present.
  *
  */
-void cipso_v4_sock_delattr(struct sock *sk)
+int cipso_v4_sock_delattr(struct sock *sk)
 {
 	struct inet_sock *sk_inet;
 	int hdr_delta;
@@ -2068,6 +2075,7 @@ void cipso_v4_sock_delattr(struct sock *sk)
 		sk_conn->icsk_ext_hdr_len -= hdr_delta;
 		sk_conn->icsk_sync_mss(sk, sk_conn->icsk_pmtu_cookie);
 	}
+	return (hdr_delta < 0) ? hdr_delta : 0;
 }
 
 /**
@@ -2078,9 +2086,11 @@ void cipso_v4_sock_delattr(struct sock *sk)
  * Removes the CIPSO option from a request socket, if present.
  *
  */
-void cipso_v4_req_delattr(struct request_sock *req)
+int cipso_v4_req_delattr(struct request_sock *req)
 {
-	cipso_v4_delopt(&inet_rsk(req)->ireq_opt);
+	int hdr_delta = cipso_v4_delopt(&inet_rsk(req)->ireq_opt);
+
+	return (hdr_delta < 0) ? hdr_delta : 0;
 }
 
 /**
diff --git a/net/netlabel/netlabel_kapi.c b/net/netlabel/netlabel_kapi.c
index 3583fa63dd01f..c0eddb6afef3c 100644
--- a/net/netlabel/netlabel_kapi.c
+++ b/net/netlabel/netlabel_kapi.c
@@ -1045,18 +1045,18 @@ int netlbl_sock_setattr(struct sock *sk,
  * ensuring that @sk is locked.
  *
  */
-void netlbl_sock_delattr(struct sock *sk)
+int netlbl_sock_delattr(struct sock *sk)
 {
 	switch (sk->sk_family) {
 	case AF_INET:
-		cipso_v4_sock_delattr(sk);
-		break;
+		return cipso_v4_sock_delattr(sk);
 #if IS_ENABLED(CONFIG_IPV6)
 	case AF_INET6:
 		calipso_sock_delattr(sk);
 		break;
 #endif /* IPv6 */
 	}
+	return 0;
 }
 
 /**
@@ -1156,8 +1156,7 @@ int netlbl_conn_setattr(struct sock *sk,
 		case NETLBL_NLTYPE_UNLABELED:
 			/* just delete the protocols we support for right now
 			 * but we could remove other protocols if needed */
-			netlbl_sock_delattr(sk);
-			ret_val = 0;
+			ret_val = netlbl_sock_delattr(sk);
 			break;
 		default:
 			ret_val = -ENOENT;
@@ -1185,8 +1184,7 @@ int netlbl_conn_setattr(struct sock *sk,
 		case NETLBL_NLTYPE_UNLABELED:
 			/* just delete the protocols we support for right now
 			 * but we could remove other protocols if needed */
-			netlbl_sock_delattr(sk);
-			ret_val = 0;
+			ret_val = netlbl_sock_delattr(sk);
 			break;
 		default:
 			ret_val = -ENOENT;
@@ -1234,8 +1232,7 @@ int netlbl_req_setattr(struct request_sock *req,
 						       entry->cipso, secattr);
 			break;
 		case NETLBL_NLTYPE_UNLABELED:
-			netlbl_req_delattr(req);
-			ret_val = 0;
+			ret_val = netlbl_req_delattr(req);
 			break;
 		default:
 			ret_val = -ENOENT;
@@ -1255,8 +1252,7 @@ int netlbl_req_setattr(struct request_sock *req,
 						      entry->calipso, secattr);
 			break;
 		case NETLBL_NLTYPE_UNLABELED:
-			netlbl_req_delattr(req);
-			ret_val = 0;
+			ret_val = netlbl_req_delattr(req);
 			break;
 		default:
 			ret_val = -ENOENT;
@@ -1280,18 +1276,18 @@ int netlbl_req_setattr(struct request_sock *req,
 * Remove all the NetLabel labeling from @req.
 *
 */
-void netlbl_req_delattr(struct request_sock *req)
+int netlbl_req_delattr(struct request_sock *req)
 {
 	switch (req->rsk_ops->family) {
 	case AF_INET:
-		cipso_v4_req_delattr(req);
-		break;
+		return cipso_v4_req_delattr(req);
 #if IS_ENABLED(CONFIG_IPV6)
 	case AF_INET6:
 		calipso_req_delattr(req);
 		break;
 #endif /* IPv6 */
 	}
+	return 0;
 }
 
 /**
diff --git a/security/selinux/netlabel.c b/security/selinux/netlabel.c
index d51dfe8923122..24b11d1891d85 100644
--- a/security/selinux/netlabel.c
+++ b/security/selinux/netlabel.c
@@ -557,9 +557,10 @@ static int selinux_netlbl_socket_connect_helper(struct sock *sk,
 	 * is set to AF_UNSPEC, if that is what is happening we want to reset
 	 * the socket */
 	if (addr->sa_family == AF_UNSPEC) {
-		netlbl_sock_delattr(sk);
+		rc = netlbl_sock_delattr(sk);
+		if (rc)
+			return rc;
 		sksec->nlbl_state = NLBL_REQSKB;
-		rc = 0;
 		return rc;
 	}
 	secattr = selinux_netlbl_sock_genattr(sk);
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 8e88ac65fd7fc..3dd6c1ec15cad 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -2653,22 +2653,26 @@ static int smack_netlbl_add(struct sock *sk)
  *
  * Remove the outbound smack value from a socket
  */
-static void smack_netlbl_delete(struct sock *sk)
+static int smack_netlbl_delete(struct sock *sk)
 {
 	struct socket_smack *ssp = smack_sock(sk);
+	int rc;
 
 	/*
 	 * Take the label off the socket if one is set.
 	 */
 	if (ssp->smk_state != SMK_NETLBL_LABELED)
-		return;
+		return 0;
 
 	local_bh_disable();
 	bh_lock_sock_nested(sk);
-	netlbl_sock_delattr(sk);
+	rc = netlbl_sock_delattr(sk);
 	bh_unlock_sock(sk);
 	local_bh_enable();
+	if (rc)
+		return rc;
 	ssp->smk_state = SMK_NETLBL_UNLABELED;
+	return 0;
 }
 
 /**
@@ -2708,7 +2712,7 @@ static int smk_ipv4_check(struct sock *sk, struct sockaddr_in *sap)
 		 * Clear the socket netlabel if it's set.
 		 */
 		if (!rc)
-			smack_netlbl_delete(sk);
+			rc = smack_netlbl_delete(sk);
 	}
 	rcu_read_unlock();
 
@@ -4545,7 +4549,7 @@ static int smack_inet_conn_request(const struct sock *sk, struct sk_buff *skb,
 	if (hskp == NULL)
 		rc = netlbl_req_setattr(req, &ssp->smk_out->smk_netlabel);
 	else
-		netlbl_req_delattr(req);
+		rc = netlbl_req_delattr(req);
 
 	return rc;
 }
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0038/2651] nvme-tcp: fix use-after-free in nvme_tcp_free_ctrl()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (36 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0037/2651] cipso: stop modifying live ip_options_rcu Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0039/2651] mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows Greg Kroah-Hartman
                   ` (153 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Nilay Shroff,
	Christian Aurich Zanettini Martins, Keith Busch, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>

[ Upstream commit b1d1f6b1ee03285690f12c2ebf23616416e6d881 ]

nvme_tcp_free_ctrl() reads ctrl->ctrl.opts to know how many queue
mutexes to destroy. When creating the controller fails,
nvmf_create_ctrl() frees opts as soon as nvme_tcp_create_ctrl()
returns, but a concurrent open of the character device can hold the
last reference to the controller. With CONFIG_DEBUG_KOBJECT_RELEASE,
which delays the release, every failed connect reads freed memory:

  BUG: KASAN: slab-use-after-free in nvme_tcp_free_ctrl+0x38b/0x430
  Read of size 4 at addr ffff888005b93740 by task kworker/2:1/51

Keep the size of the queue array in the controller and use it instead.

Fixes: 2eeeaa9c1ff0 ("nvme-tcp: Validate the queue state under the queue lock in the address attribute")
Cc: stable@vger.kernel.org
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
[ sashal: adapted to a tree without the netns/init_queue refactor, so the fix edits the mutex_init/mutex_destroy queue loops instead of nvme_tcp_init_queue()/exit_queue() and has no net member context. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/nvme/host/tcp.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
index 50297ce8bdde6..edb41cb3a7a15 100644
--- a/drivers/nvme/host/tcp.c
+++ b/drivers/nvme/host/tcp.c
@@ -191,6 +191,7 @@ struct nvme_tcp_ctrl {
 	struct delayed_work	connect_work;
 	struct nvme_tcp_request async_req;
 	u32			io_queues[HCTX_MAX_TYPES];
+	unsigned int		nr_allocated_queues;
 };
 
 static struct workqueue_struct *nvme_tcp_wq;
@@ -2791,8 +2792,6 @@ static void nvme_tcp_stop_ctrl(struct nvme_ctrl *ctrl)
 static void nvme_tcp_free_ctrl(struct nvme_ctrl *nctrl)
 {
 	struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl);
-	/* the same count used to size and initialize the queue array */
-	unsigned int nr_queues = NVME_TCP_OPT_NR_QUEUES(nctrl->opts);
 	unsigned int i;
 
 	if (list_empty_careful(&ctrl->list))
@@ -2804,7 +2803,7 @@ static void nvme_tcp_free_ctrl(struct nvme_ctrl *nctrl)
 
 	nvmf_free_options(nctrl->opts);
 free_ctrl:
-	for (i = 0; i < nr_queues; i++)
+	for (i = 0; i < ctrl->nr_allocated_queues; i++)
 		mutex_destroy(&ctrl->queues[i].queue_lock);
 	kfree(ctrl->queues);
 	kfree(ctrl);
@@ -3198,7 +3197,8 @@ static struct nvme_tcp_ctrl *nvme_tcp_alloc_ctrl(struct device *dev,
 		goto out_free_ctrl;
 	}
 
-	ctrl->queues = kzalloc_objs(*ctrl->queues, ctrl->ctrl.queue_count);
+	ctrl->nr_allocated_queues = ctrl->ctrl.queue_count;
+	ctrl->queues = kzalloc_objs(*ctrl->queues, ctrl->nr_allocated_queues);
 	if (!ctrl->queues) {
 		ret = -ENOMEM;
 		goto out_free_ctrl;
@@ -3209,7 +3209,7 @@ static struct nvme_tcp_ctrl *nvme_tcp_alloc_ctrl(struct device *dev,
 	 * they outlive the per-queue connect/disconnect cycles so that
 	 * sysfs readers can never race their destruction.
 	 */
-	for (i = 0; i < ctrl->ctrl.queue_count; i++)
+	for (i = 0; i < ctrl->nr_allocated_queues; i++)
 		mutex_init(&ctrl->queues[i].queue_lock);
 
 	ret = nvme_init_ctrl(&ctrl->ctrl, dev, &nvme_tcp_ctrl_ops, 0);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0039/2651] mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (37 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0038/2651] nvme-tcp: fix use-after-free in nvme_tcp_free_ctrl() Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0040/2651] hwmon: (coretemp) Read TjMax only when refreshing the temperature Greg Kroah-Hartman
                   ` (152 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Lorenzo Stoakes (ARM), Andrew Morton,
	Daehyeon Ko, Jose A. Perez de Azpillaga, Suren Baghdasaryan,
	Liam R. Howlett, Vlastimil Babka, Shakeel Butt, David Hildenbrand,
	Mike Rapoport, Michal Hocko, Jonathan Corbet, Randy Dunlap,
	Jann Horn, Pedro Falcato, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Lorenzo Stoakes (ARM) <ljs@kernel.org>

[ Upstream commit 7135a05838e85845e1bbf6caa6596a7e3b791a40 ]

So far the assumption has been that mm->mm_lock_seq overflow is benign,
resulting only in readers spuriously falling back to the mmap lock, however
it turns out that this was an unsafe assumption.

If a VMA can be spuriously considered write locked that means read lock
exclusion does not take place, and thus a VMA can end up write-locked with
concurrent readers.

Since overflow only occurs every 2^31 write lock/unlock cycles, resolve the
issue by resetting every VMA's vma->vm_lock_seq each time such an overflow
occurs.

This is done in vma_end_write_all(), which is called when the mmap write
lock is released, i.e. in mmap_write_unlock() and mmap_write_downgrade().

Care must be taken, as resetting the sequence count at overflow means
changing the seqcount of VMAs which are already attached and observable.

The mm's seqcount is guaranteed to be odd when a write lock is held, and
thus any write locked VMA will have an odd seqcount assigned.

Therefore resetting to an even value prevents spurious write locks, since
these can only occur with the mmap write lock held, at which point the mmap
seqcount will be odd.

However, vma_start_read() also checks vma->vm_lock_seq == mm->mm_lock_seq,
bailing if so (indicating a write lock).

This would cause any even reset value chosen to prevent VMA read locks from
being taken - avoid this by also checking whether the VMA seqcount is odd
before bailing on the read lock.

So far, vma->vm_lock_seq has defaulted to UINT_MAX, but this has been
unnecessary since commit e5e7fb278e59 ("mm: convert mm_lock_seq to a proper
seqcount"), since this is assigned when the VMA is still detached, and
cannot be observed.

Therefore perform both reset and initialisation of vma->vm_lock_seq by
simply setting vma->vm_lock_seq to zero.

The reset, performed in __mm_reset_vma_seqcounts(), only needs to
WRITE_ONCE() the value.

However the read of vma->vm_lock_seq in vma_start_read() needs to have
acquire semantics to pair with the smp_wmb() in do_raw_write_seqcount_end()
so a reader reading a reset value also observes VMA modifications made
under the write lock.

Since all VMA write locks were just released and the mmap write lock is
still held, there are no concurrent VMA writers.

Concurrent VMA readers are unaffected. New VMA readers observe either zero,
never a write lock, or the prior seqcount, behaving as before the reset.

Since this only occurs every 2^31 write lock/unlock cycles, the time taken
to update all VMAs is considered to be acceptable.

Also update comments, documentation and VMA userland tests to reflect the
change.

User facing effects are - dangerous races that could cause memory
corruption or NULL pointer derefences (especially on page table traversal)
are avoided.

Link: https://lore.kernel.org/20261016-fix-vma-lock-overflow-v2-1-9eb778b79b58@kernel.org
Fixes: 5e31275cc997 ("mm: add per-VMA lock and helper functions to control it")
Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reported-by: Daehyeon Ko <4ncienth@gmail.com>
Closes: https://lore.kernel.org/all/20261015143735.1630957-1-4ncienth@gmail.com/
Reviewed-by: Jose A. Perez de Azpillaga <azpijr@gmail.com>
Tested-by: Jose A. Perez de Azpillaga <azpijr@gmail.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: David Hildenbrand <david@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Jann Horn <jannh@google.com>
Cc: Pedro Falcato <pfalcato@suse.de>
Cc: <stable@vger.kernel.org> # 7.3.x
[ ljs - Placed the seqcount reset under CONFIG_PER_VMA_LOCK to fix the build without it. ]
Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 Documentation/mm/process_addrs.rst | 14 ++++-
 include/linux/mm_types.h           | 12 ++--
 include/linux/mmap_lock.h          | 32 ++++++++---
 mm/mmap_lock.c                     | 89 ++++++++++++++++++++++++++----
 tools/testing/vma/include/dup.h    |  2 +-
 tools/testing/vma/shared.c         |  8 +--
 6 files changed, 126 insertions(+), 31 deletions(-)

diff --git a/Documentation/mm/process_addrs.rst b/Documentation/mm/process_addrs.rst
index a7296f251799c..bfd4dfada663c 100644
--- a/Documentation/mm/process_addrs.rst
+++ b/Documentation/mm/process_addrs.rst
@@ -808,9 +808,17 @@ All this is achieved by the use of per-mm and per-VMA sequence counts, which are
 used in order to reduce complexity, especially for operations which write-lock
 multiple VMAs at once.
 
-If the mm sequence count, :c:member:`!mm->mm_lock_seq` is equal to the VMA
-sequence count :c:member:`!vma->vm_lock_seq` then the VMA is write-locked. If
-they differ, then it is not.
+The mm sequence count :c:member:`!mm->mm_lock_seq` is incremented on both mmap
+write lock and unlock, so it is odd while the mmap write lock is held. If it is
+equal to the VMA sequence count :c:member:`!vma->vm_lock_seq`, and that value
+is odd, then the VMA is write-locked. If they differ, then it is not.
+
+A VMA's sequence count is not updated on unlock, so after 2^31 write lock/unlock
+cycles the mm sequence count would wrap and match stale VMA values again. To
+prevent this, when the mm sequence count wraps to zero,
+:c:func:`!vma_end_write_all` invokes :c:func:`!__mm_reset_vma_seqcounts` to
+reset every VMA's sequence count to zero, an even value which can never
+indicate a write lock.
 
 Each time the mmap write lock is released in :c:func:`!mmap_write_unlock` or
 :c:func:`!mmap_write_downgrade`, :c:func:`!vma_end_write_all` is invoked which
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index f3e5a2fadbe5b..44e6639818378 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -955,15 +955,19 @@ struct vm_area_struct {
 	 * Can only be written (using WRITE_ONCE()) while holding both:
 	 *  - mmap_lock (in write mode)
 	 *  - vm_refcnt bit at VM_REFCNT_EXCLUDE_READERS_FLAG is set
+	 * The one exception is __mm_reset_vma_seqcounts(), which stores zero
+	 * (an even value, which can never indicate a write lock) under the
+	 * mmap write lock alone once the mm seqcount has wrapped, so a reader
+	 * holding only vm_refcnt may observe the value change from odd to zero.
 	 * Can be read reliably while holding one of:
 	 *  - mmap_lock (in read or write mode)
-	 *  - vm_refcnt bit at VM_REFCNT_EXCLUDE_READERS_BIT is set or vm_refcnt > 1
+	 *  - vm_refcnt bit at VM_REFCNT_EXCLUDE_READERS_BIT is set
 	 * Can be read unreliably (using READ_ONCE()) for pessimistic bailout
 	 * while holding nothing (except RCU to keep the VMA struct allocated).
 	 *
-	 * This sequence counter is explicitly allowed to overflow; sequence
-	 * counter reuse can only lead to occasional unnecessary use of the
-	 * slowpath.
+	 * Assigned the (odd) mm seqcount on write lock and not updated on
+	 * unlock, so a stale value would alias the mm seqcount again 2^31 write
+	 * lock/unlock cycles later. The reset described above prevents this.
 	 */
 	unsigned int vm_lock_seq;
 #endif
diff --git a/include/linux/mmap_lock.h b/include/linux/mmap_lock.h
index b8a13b8d36a45..a63911a513749 100644
--- a/include/linux/mmap_lock.h
+++ b/include/linux/mmap_lock.h
@@ -156,7 +156,7 @@ static inline void vma_lock_init(struct vm_area_struct *vma, bool reset_refcnt)
 #endif
 	if (reset_refcnt)
 		refcount_set(&vma->vm_refcnt, 0);
-	vma->vm_lock_seq = UINT_MAX;
+	vma->vm_lock_seq = 0;
 }
 
 /*
@@ -230,9 +230,10 @@ static inline void vma_refcount_put(struct vm_area_struct *vma)
 }
 
 /*
- * Use only while holding mmap read lock which guarantees that locking will not
- * fail (nobody can concurrently write-lock the vma). vma_start_read() should
- * not be used in such cases because it might fail due to mm_lock_seq overflow.
+ * Use only while holding mmap read lock which guarantees that vma lock is not
+ * contended (nobody can concurrently write-lock the vma). vma_start_read() need
+ * not be used in such cases, as the mmap lock already excludes VMA writers so
+ * its sequence number checks are redundant.
  * This functionality is used to obtain vma read lock and drop the mmap read lock.
  */
 static inline bool vma_start_read_locked_nested(struct vm_area_struct *vma, int subclass)
@@ -249,9 +250,10 @@ static inline bool vma_start_read_locked_nested(struct vm_area_struct *vma, int
 }
 
 /*
- * Use only while holding mmap read lock which guarantees that locking will not
- * fail (nobody can concurrently write-lock the vma). vma_start_read() should
- * not be used in such cases because it might fail due to mm_lock_seq overflow.
+ * Use only while holding mmap read lock which guarantees that vma lock is not
+ * contended (nobody can concurrently write-lock the vma). vma_start_read() need
+ * not be used in such cases, as the mmap lock already excludes VMA writers so
+ * its sequence number checks are redundant.
  * This functionality is used to obtain vma read lock and drop the mmap read lock.
  */
 static inline bool vma_start_read_locked(struct vm_area_struct *vma)
@@ -566,6 +568,10 @@ static inline int __must_check mmap_write_lock_killable(struct mm_struct *mm)
 	return ret;
 }
 
+#ifdef CONFIG_PER_VMA_LOCK
+void __mm_reset_vma_seqcounts(struct mm_struct *mm);
+#endif
+
 /*
  * Drop all currently-held per-VMA locks.
  * This is called from the mmap_lock implementation directly before releasing
@@ -578,6 +584,18 @@ static inline void vma_end_write_all(struct mm_struct *mm)
 {
 	mmap_assert_write_locked(mm);
 	mm_lock_seqcount_end(mm);
+
+#ifdef CONFIG_PER_VMA_LOCK
+	/*
+	 * VMA seqcounts are not updated on unlock, so once the mm seqcount has
+	 * wrapped, any VMA still carrying a sequence number from before the
+	 * wrap would satisfy __is_vma_write_locked() when that number comes
+	 * round again, and readers would not be excluded. Reset every VMA's
+	 * seqcount so that no stale value survives the wrap.
+	 */
+	if (unlikely(!mm->mm_lock_seq.sequence))
+		__mm_reset_vma_seqcounts(mm);
+#endif
 }
 
 static inline void mmap_write_unlock(struct mm_struct *mm)
diff --git a/mm/mmap_lock.c b/mm/mmap_lock.c
index 898c2ef1e9580..2682af771f0fb 100644
--- a/mm/mmap_lock.c
+++ b/mm/mmap_lock.c
@@ -197,21 +197,38 @@ void __vma_exclude_readers_for_detach(struct vm_area_struct *vma)
 	WARN_ON_ONCE(!ves.detached);
 }
 
+/* Do the VMA, mm seqcounts indicate the VMA is write locked? */
+static bool vma_seqcount_is_write_locked(unsigned int vma_seq, unsigned int mm_seq)
+{
+	/* VMA and mm sequence numbers must match for a write lock. */
+	if (vma_seq != mm_seq)
+		return false;
+
+	/*
+	 * The VMA seqcount is always odd if locked. For an attached VMA an even
+	 * value can only be the zero stored by __mm_reset_vma_seqcounts(),
+	 * never a write lock.
+	 */
+	return vma_seq & 1;
+}
+
 /*
  * Try to read-lock a vma. The function is allowed to occasionally yield false
  * locked result to avoid performance overhead, in which case we fall back to
  * using mmap_lock. The function should never yield false unlocked result.
- * False locked result is possible if mm_lock_seq overflows or if vma gets
- * reused and attached to a different mm before we lock it.
+ * False locked result is possible if vma gets reused and attached to a
+ * different mm before we lock it.
  * Returns the vma on success, NULL on failure to lock and EAGAIN if vma got
  * detached.
  *
  * IMPORTANT: RCU lock must be held upon entering the function, but upon error
  *            IT IS RELEASED. The caller must handle this correctly.
  */
-static inline struct vm_area_struct *vma_start_read(struct mm_struct *mm,
-						    struct vm_area_struct *vma)
+static struct vm_area_struct *vma_start_read(struct mm_struct *mm,
+					     struct vm_area_struct *vma)
 {
+	unsigned int vma_seq;
+	unsigned int mm_seq;
 	struct mm_struct *other_mm;
 	int oldcnt;
 
@@ -223,7 +240,9 @@ static inline struct vm_area_struct *vma_start_read(struct mm_struct *mm,
 	 * we don't rely on for anything - the mm_lock_seq read against which we
 	 * need ordering is below.
 	 */
-	if (READ_ONCE(vma->vm_lock_seq) == READ_ONCE(mm->mm_lock_seq.sequence)) {
+	vma_seq = READ_ONCE(vma->vm_lock_seq);
+	mm_seq = READ_ONCE(mm->mm_lock_seq.sequence);
+	if (vma_seqcount_is_write_locked(vma_seq, mm_seq)) {
 		vma = NULL;
 		goto err;
 	}
@@ -249,17 +268,26 @@ static inline struct vm_area_struct *vma_start_read(struct mm_struct *mm,
 		goto err_unstable;
 
 	/*
-	 * Overflow of vm_lock_seq/mm_lock_seq might produce false locked result.
-	 * False unlocked result is impossible because we modify and check
+	 * False unlocked result is impossible because a write lock sets
 	 * vma->vm_lock_seq under vma->vm_refcnt protection and mm->mm_lock_seq
 	 * modification invalidates all existing locks.
 	 *
-	 * We must use ACQUIRE semantics for the mm_lock_seq so that if we are
-	 * racing with vma_end_write_all(), we only start reading from the VMA
-	 * after it has been unlocked.
-	 * This pairs with RELEASE semantics in vma_end_write_all().
+	 * ACQUIRE semantics are required for both reads.
+	 *
+	 * __mm_reset_vma_seqcounts() might reset vma->vm_lock_seq to zero
+	 * after an overflow. A reader observing that zero must also observe
+	 * the VMA modifications made under the write lock which just ended, so
+	 * the ACQUIRE pairs with the smp_wmb() in do_raw_write_seqcount_end()
+	 * that precedes the reset stores.
+	 *
+	 * The ACQUIRE semantics for the mm_lock_seq read is required so that,
+	 * if we are racing with vma_end_write_all(), we only start reading from
+	 * the VMA after it has been unlocked. This pairs with the RELEASE
+	 * semantics in vma_end_write_all().
 	 */
-	if (unlikely(vma->vm_lock_seq == raw_read_seqcount(&mm->mm_lock_seq))) {
+	vma_seq = smp_load_acquire(&vma->vm_lock_seq);
+	mm_seq = raw_read_seqcount(&mm->mm_lock_seq);
+	if (unlikely(vma_seqcount_is_write_locked(vma_seq, mm_seq))) {
 		vma_refcount_put(vma);
 		vma = NULL;
 		goto err;
@@ -431,6 +459,43 @@ struct vm_area_struct *lock_next_vma(struct mm_struct *mm,
 
 	return vma;
 }
+
+/*
+ * Called with mmap write lock held after mm->mm_lock_seq just overflowed (and
+ * therefore zero), with all VMA write locks now released.
+ *
+ * The stores below follow the smp_wmb() in do_raw_write_seqcount_end(), so
+ * a reader that observes a reset value also observes this cycle's VMA
+ * modifications (ordered by the ACQUIRE on vma->vm_lock_seq in
+ * vma_start_read()).
+ */
+void __mm_reset_vma_seqcounts(struct mm_struct *mm)
+{
+	struct vm_area_struct *vma;
+	VMA_ITERATOR(vmi, mm, 0);
+
+	mmap_assert_write_locked(mm);
+	VM_WARN_ON_ONCE(mm->mm_lock_seq.sequence);
+
+	/*
+	 * Failing to reset means stale vma->vm_lock_seq values could result in
+	 * those VMAs becoming spuriously write locked when mm->mm_lock_seq
+	 * happens to match their values.
+	 *
+	 * This is problematic, as it causes the VMA write lock to not exclude
+	 * readers, which can result in concurrent readers while a VMA write
+	 * lock is held.
+	 *
+	 * Avoid this by resetting to an even value (indicates no write lock
+	 * held).
+	 *
+	 * Readers will either observe zero (not write locked) or the previous
+	 * value, so this is safe.
+	 */
+	for_each_vma(vmi, vma)
+		WRITE_ONCE(vma->vm_lock_seq, 0);
+}
+EXPORT_SYMBOL(__mm_reset_vma_seqcounts);
 #endif /* CONFIG_PER_VMA_LOCK */
 
 #ifdef CONFIG_LOCK_MM_AND_FIND_VMA
diff --git a/tools/testing/vma/include/dup.h b/tools/testing/vma/include/dup.h
index e7724b2ca2ff8..fc9c920fb8061 100644
--- a/tools/testing/vma/include/dup.h
+++ b/tools/testing/vma/include/dup.h
@@ -1243,7 +1243,7 @@ static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm)
 	vma->vm_mm = mm;
 	vma->vm_ops = &vma_dummy_vm_ops;
 	INIT_LIST_HEAD(&vma->anon_vma_chain);
-	vma->vm_lock_seq = UINT_MAX;
+	vma->vm_lock_seq = 0;
 }
 
 /*
diff --git a/tools/testing/vma/shared.c b/tools/testing/vma/shared.c
index 4a39c9d504896..4ba7786be5f14 100644
--- a/tools/testing/vma/shared.c
+++ b/tools/testing/vma/shared.c
@@ -56,7 +56,7 @@ struct vm_area_struct *alloc_and_link_vma(struct mm_struct *mm,
 	 * begun. Linking to the tree will have caused this to be incremented,
 	 * which means we will get a false positive otherwise.
 	 */
-	vma->vm_lock_seq = UINT_MAX;
+	vma->vm_lock_seq = 0;
 
 	return vma;
 }
@@ -88,13 +88,13 @@ int cleanup_mm(struct mm_struct *mm, struct vma_iterator *vmi)
 
 bool vma_write_started(struct vm_area_struct *vma)
 {
-	int seq = vma->vm_lock_seq;
+	unsigned int seq = vma->vm_lock_seq;
 
 	/* We reset after each check. */
-	vma->vm_lock_seq = UINT_MAX;
+	vma->vm_lock_seq = 0;
 
 	/* The vma_start_write() stub simply increments this value. */
-	return seq > -1;
+	return seq > 0;
 }
 
 void __vma_set_dummy_anon_vma(struct vm_area_struct *vma,
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0040/2651] hwmon: (coretemp) Read TjMax only when refreshing the temperature
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (38 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0039/2651] mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0041/2651] hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp() Greg Kroah-Hartman
                   ` (151 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Ricardo Neri, Guenter Roeck,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>

[ Upstream commit 5407d2b7d5279b7100621d92f2181184c8f00d62 ]

show_temp() reads TjMax before checking whether the cached temperature is
still fresh, but consumes it only when recomputing that temperature. On a
cache hit the value is discarded.

Discarding it is not free. On CPUs that report TjMax in
MSR_IA32_TEMPERATURE_TARGET, get_tjmax() returns the value it just read
without storing it in tdata->tjmax, so every call reads the MSR again.
That is a cross-CPU call whenever the CPU owning the sensor is not the
current one, and it is made while holding tdata->update_lock.

Read TjMax where it is used. The value cannot go stale in the meantime:
bits 23:16 of MSR_IA32_TEMPERATURE_TARGET are read-only, and the register
is package-scoped, so every CPU of the package reads the same value.

The temperature reported to userspace does not change.

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Link: https://patch.msgid.link/20260924-coretemp-temp-fault-v1-2-1884f0ff97d5@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Stable-dep-of: 9a6aa085c94c ("hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/hwmon/coretemp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index 2d7487b2f80a1..7fced0e2abeba 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -406,9 +406,9 @@ static ssize_t show_temp(struct device *dev,
 
 	mutex_lock(&tdata->update_lock);
 
-	tjmax = get_tjmax(tdata, dev);
 	/* Check whether the time interval has elapsed */
 	if (time_after(jiffies, tdata->last_updated + HZ)) {
+		tjmax = get_tjmax(tdata, dev);
 		rdmsrq_on_cpu(tdata->cpu, tdata->status_reg, &val.q);
 		/*
 		 * Bit 31 indicates whether the reading is valid. Some CPUs
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0041/2651] hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (39 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0040/2651] hwmon: (coretemp) Read TjMax only when refreshing the temperature Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0042/2651] mm/vma: avoid losing atomic VMA flags when setting sticky VMA flags Greg Kroah-Hartman
                   ` (150 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Sashiko, Asaf Nuri Bertizlioğlu,
	Guenter Roeck, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Guenter Roeck <linux@roeck-us.net>

[ Upstream commit 9a6aa085c94c7f2817c4d50a7264e6fb51286f40 ]

show_temp() rate-limits MSR reads by storing tdata->last_updated as an
unsigned long and comparing it against jiffies using
time_after(jiffies, tdata->last_updated + HZ).

time_after() relies on signed long subtraction, which only produces the
expected result while the two timestamps are within LONG_MAX jiffies of
each other. On 32-bit kernels, if tempX_input is not read for more than
LONG_MAX jiffies (~24.85 days at HZ=1000), the signed difference flips
sign and time_after() evaluates to false. Because tdata->last_updated is
only refreshed when time_after() succeeds, subsequent reads remain
blocked from refreshing for another ~24.85 days until jiffies wraps
past tdata->last_updated + HZ again, returning either a stale cached
temperature or -ENODATA if the sensor had never been read since
initialization.

Store tdata->last_updated as a u64 and use get_jiffies_64() with
time_after64(), which does not wrap in any practical uptime.

Reported-by: Sashiko <sashiko-bot@kernel.org>
Fixes: bebe467823c0 ("hwmon: New coretemp driver")
Cc: stable@vger.kernel.org
Tested-by: Asaf Nuri Bertizlioğlu <ycistak@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/hwmon/coretemp.c | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index 7fced0e2abeba..96d57fe12de6d 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -76,7 +76,7 @@ struct temp_data {
 	int temp;
 	bool temp_valid;
 	int tjmax;
-	unsigned long last_updated;
+	u64 last_updated;
 	unsigned int cpu;
 	int index;
 	u32 cpu_core_id;
@@ -407,7 +407,7 @@ static ssize_t show_temp(struct device *dev,
 	mutex_lock(&tdata->update_lock);
 
 	/* Check whether the time interval has elapsed */
-	if (time_after(jiffies, tdata->last_updated + HZ)) {
+	if (time_after64(get_jiffies_64(), tdata->last_updated + HZ)) {
 		tjmax = get_tjmax(tdata, dev);
 		rdmsrq_on_cpu(tdata->cpu, tdata->status_reg, &val.q);
 		/*
@@ -417,7 +417,7 @@ static ssize_t show_temp(struct device *dev,
 		 */
 		tdata->temp_valid = (val.l >> 31) & 1;
 		tdata->temp = tjmax - ((val.l >> 16) & 0xff) * 1000;
-		tdata->last_updated = jiffies;
+		tdata->last_updated = get_jiffies_64();
 	}
 
 	valid = tdata->temp_valid;
@@ -521,11 +521,8 @@ init_temp_data(struct platform_data *pdata, unsigned int cpu, int pkg_flag)
 	tdata->cpu = cpu;
 	tdata->cpu_core_id = topology_core_id(cpu);
 	tdata->attr_size = MAX_CORE_ATTRS;
-	/*
-	 * A zero timestamp does not look stale on 32-bit, where jiffies
-	 * starts just short of wrapping. Backdate it instead.
-	 */
-	tdata->last_updated = jiffies - HZ - 1;
+	/* Backdate to force a refresh on the first read */
+	tdata->last_updated = get_jiffies_64() - HZ - 1;
 	mutex_init(&tdata->update_lock);
 	return tdata;
 }
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0042/2651] mm/vma: avoid losing atomic VMA flags when setting sticky VMA flags
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (40 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0041/2651] hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp() Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0043/2651] mm/madvise: preserve VMA_SOFTDIRTY_BIT when changing anonymous names Greg Kroah-Hartman
                   ` (149 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Lorenzo Stoakes (ARM), Andrew Morton,
	David Hildenbrand (Arm), Pedro Falcato, Gregory Price (Meta),
	Liam R. Howlett, Vlastimil Babka, Mike Rapoport,
	Suren Baghdasaryan, Michal Hocko, Jann Horn, Davidlohr Bueso,
	SJ Park, Kees Cook, Colin Cross, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Lorenzo Stoakes (ARM) <ljs@kernel.org>

[ Upstream commit c386d799f423685952138cab8d89f0331825bdee ]

vma_merge_existing_range() merges an existing VMA (middle) when its
attributes have changed to match those of one or both adjacent VMAs.

Sticky flags are propagated if they are set in any of the merged VMAs. They
are initialised from vmg->vma_flags, which is assumed to contain middle's
sticky flags when the function is invoked.

However, the VMA write lock is not held for middle when they are first
populated, so concurrent updates to atomic VMA flags may occur, which will
be lost upon merge.

This can result in fork failing to propagate guard region markers and (if
file-backed) THP collapse discarding them.

Resolve this by propagating the sticky flags after middle is locked.

Make life easier by factoring this into propagate_sticky_flags(), which
treats vmg->vma_flags as its base (in case any sticky flags are set there),
updating it as sticky flags are accumulated from merged VMAs.

Also update vma_expand() to use propagate_sticky_flags() so all merge paths
utilise it.

propagate_sticky_flags() also asserts that the VMA write lock is held for
the VMA whose sticky flags are being read, with a comment explaining why.

Another means by which atomic VMA flags can fail to be observed is when the
merge is finalised in commit_merge().

rmap locks are dropped in vma_complete() before the sticky flags are
written, meaning an rmap walker can observe the VMA without sticky flags
set, which can also result in retract_page_tables() discarding guard
markers.

Resolve this by assigning the sticky flags before dropping rmap locks,
factored into commit_sticky_flags() with a write assert on the VMA being
written to.

Also remove the vma_set_flags_mask() invocation at the end of
vma_merge_existing_range() as this was introduced by commit
64212ba02e66 ("mm: implement sticky VMA flags") to propagate sticky flags,
which is now redundant with the introduction of commit_sticky_flags().

The vma_set_flags_mask() invocation at the end of vma_expand() setting
sticky flags only is also removed for the same reason.

Also update vma_merge_existing_range()'s comment to reflect the fact that
vmg->vma_flags gets updated.

Finally, update the userland VMA tests to reflect a previously missed
const-ification in vma_assert_write_locked() which would otherwise cause a
warning when building them.

Link: https://lore.kernel.org/20261023-fix-vma-atomic-v1-4-8ff4fae1fc85@kernel.org
Fixes: 2ab7f1bbafc9 ("mm/madvise: allow guard page install/remove under VMA lock")
Fixes: 49e14dabed7a ("mm: set the VM_MAYBE_GUARD flag on guard region install")
Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Pedro Falcato <pfalcato@suse.de>
Tested-by: Gregory Price (Meta) <gourry@gourry.net>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Jann Horn <jannh@google.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: SJ Park <sj@kernel.org>
Cc: Kees Cook <kees@kernel.org>
Cc: Colin Cross <ccross@google.com>
Cc: <stable@vger.kernel.org>
[ sashal: Removed const from the propagate_sticky_flags() VMA parameter to match vma_assert_write_locked()'s non-const pointer requirement. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 mm/vma.c                          | 55 +++++++++++++++++--------------
 tools/testing/vma/include/dup.h   |  2 +-
 tools/testing/vma/include/stubs.h |  2 +-
 3 files changed, 32 insertions(+), 27 deletions(-)

diff --git a/mm/vma.c b/mm/vma.c
index 9863668b9d6bc..a9ebccea27190 100644
--- a/mm/vma.c
+++ b/mm/vma.c
@@ -807,6 +807,27 @@ static void vmg_adjust_set_range(struct vma_merge_struct *vmg)
 	}
 }
 
+static void propagate_sticky_flags(struct vma_merge_struct *vmg,
+		struct vm_area_struct *vma)
+{
+	const vma_flags_t sticky =
+		vma_flags_and_mask(&vma->flags, VMA_STICKY_FLAGS);
+
+	/* Write lock prevents concurrent atomic VMA flag updates. */
+	vma_assert_write_locked(vma);
+	vma_flags_set_mask(&vmg->vma_flags, sticky);
+}
+
+static void commit_sticky_flags(struct vma_merge_struct *vmg)
+{
+	const vma_flags_t sticky =
+		vma_flags_and_mask(&vmg->vma_flags, VMA_STICKY_FLAGS);
+	struct vm_area_struct *target = vmg->target;
+
+	vma_assert_write_locked(target);
+	vma_set_flags_mask(target, sticky);
+}
+
 /*
  * Actually perform the VMA merge operation.
  *
@@ -842,6 +863,8 @@ static int commit_merge(struct vma_merge_struct *vmg)
 		return -ENOMEM;
 
 	vma_prepare(&vp);
+	/* Must be made visible before vma_complete() for rmap walkers. */
+	commit_sticky_flags(vmg);
 	/*
 	 * THP pages may need to do additional splits if we increase
 	 * middle->vm_start.
@@ -881,8 +904,8 @@ static bool can_merge_remove_vma(struct vm_area_struct *vma)
  * merge.
  *
  * As part of this operation, if a merge occurs, the @vmg object will have its
- * vma, start, end, and pgoff fields modified to execute the merge. Subsequent
- * calls to this function should reset these fields.
+ * vma, start, end, pgoff and vma_flags fields modified to execute the merge.
+ * Subsequent calls to this function should reset these fields.
  *
  * Returns: The merged VMA if merge succeeds, or NULL otherwise.
  *
@@ -896,8 +919,6 @@ static bool can_merge_remove_vma(struct vm_area_struct *vma)
 static __must_check struct vm_area_struct *vma_merge_existing_range(
 		struct vma_merge_struct *vmg)
 {
-	vma_flags_t sticky_flags = vma_flags_and_mask(&vmg->vma_flags,
-						      VMA_STICKY_FLAGS);
 	struct vm_area_struct *middle = vmg->middle;
 	struct vm_area_struct *prev = vmg->prev;
 	struct vm_area_struct *next;
@@ -993,24 +1014,18 @@ static __must_check struct vm_area_struct *vma_merge_existing_range(
 
 	/* No matter what happens, we will be adjusting middle. */
 	vma_start_write(middle);
+	propagate_sticky_flags(vmg, middle);
 
 	if (merge_right) {
-		vma_flags_t next_sticky;
-
 		vma_start_write(next);
 		vmg->target = next;
-		next_sticky = vma_flags_and_mask(&next->flags, VMA_STICKY_FLAGS);
-		vma_flags_set_mask(&sticky_flags, next_sticky);
+		propagate_sticky_flags(vmg, next);
 	}
 
 	if (merge_left) {
-		vma_flags_t prev_sticky;
-
 		vma_start_write(prev);
 		vmg->target = prev;
-
-		prev_sticky = vma_flags_and_mask(&prev->flags, VMA_STICKY_FLAGS);
-		vma_flags_set_mask(&sticky_flags, prev_sticky);
+		propagate_sticky_flags(vmg, prev);
 	}
 
 	if (merge_both) {
@@ -1081,7 +1096,6 @@ static __must_check struct vm_area_struct *vma_merge_existing_range(
 	if (err || commit_merge(vmg))
 		goto abort;
 
-	vma_set_flags_mask(vmg->target, sticky_flags);
 	khugepaged_enter_vma(vmg->target, vmg->vm_flags);
 	vmg->state = VMA_MERGE_SUCCESS;
 	return vmg->target;
@@ -1274,16 +1288,11 @@ int vma_expand(struct vma_merge_struct *vmg)
 	struct vm_area_struct *target = vmg->target;
 	struct vm_area_struct *next = vmg->next;
 	bool remove_next = false;
-	vma_flags_t sticky_flags =
-		vma_flags_and_mask(&vmg->vma_flags, VMA_STICKY_FLAGS);
-	vma_flags_t target_sticky;
 	int ret = 0;
 
 	mmap_assert_write_locked(vmg->mm);
 	vma_start_write(target);
 
-	target_sticky = vma_flags_and_mask(&target->flags, VMA_STICKY_FLAGS);
-
 	if (next && target != next && vmg->end == next->vm_end)
 		remove_next = true;
 
@@ -1298,7 +1307,7 @@ int vma_expand(struct vma_merge_struct *vmg)
 	VM_WARN_ON_VMG(target->vm_start < vmg->start ||
 		       target->vm_end > vmg->end, vmg);
 
-	vma_flags_set_mask(&sticky_flags, target_sticky);
+	propagate_sticky_flags(vmg, target);
 
 	/*
 	 * If we are removing the next VMA or copying from a VMA
@@ -1315,18 +1324,14 @@ int vma_expand(struct vma_merge_struct *vmg)
 		goto nomem;
 
 	if (remove_next) {
-		vma_flags_t next_sticky;
-
 		vma_start_write(next);
 		vmg->__remove_next = true;
 
-		next_sticky = vma_flags_and_mask(&next->flags, VMA_STICKY_FLAGS);
-		vma_flags_set_mask(&sticky_flags, next_sticky);
+		propagate_sticky_flags(vmg, next);
 	}
 	if (commit_merge(vmg))
 		goto nomem;
 
-	vma_set_flags_mask(target, sticky_flags);
 	return 0;
 
 nomem:
diff --git a/tools/testing/vma/include/dup.h b/tools/testing/vma/include/dup.h
index fc9c920fb8061..daa57ab5dabb6 100644
--- a/tools/testing/vma/include/dup.h
+++ b/tools/testing/vma/include/dup.h
@@ -1216,7 +1216,7 @@ static inline void vma_assert_detached(struct vm_area_struct *vma)
 	WARN_ON_ONCE(vma_is_attached(vma));
 }
 
-static inline void vma_assert_write_locked(struct vm_area_struct *);
+static inline void vma_assert_write_locked(const struct vm_area_struct *);
 static inline void vma_mark_attached(struct vm_area_struct *vma)
 {
 	vma_assert_write_locked(vma);
diff --git a/tools/testing/vma/include/stubs.h b/tools/testing/vma/include/stubs.h
index ab441162ac10e..227652c9b81bf 100644
--- a/tools/testing/vma/include/stubs.h
+++ b/tools/testing/vma/include/stubs.h
@@ -298,7 +298,7 @@ static inline void anon_vma_lock_write(struct anon_vma *anon_vma)
 {
 }
 
-static inline void vma_assert_write_locked(struct vm_area_struct *vma)
+static inline void vma_assert_write_locked(const struct vm_area_struct *vma)
 {
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0043/2651] mm/madvise: preserve VMA_SOFTDIRTY_BIT when changing anonymous names
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (41 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0042/2651] mm/vma: avoid losing atomic VMA flags when setting sticky VMA flags Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0044/2651] ASoC: SDCA: export PM helpers keyed on sdca_class_drv Greg Kroah-Hartman
                   ` (148 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, David Hildenbrand (Arm),
	Lorenzo Stoakes (ARM), Andrew Morton, Pedro Falcato,
	Gregory Price (Meta), Liam R. Howlett, Vlastimil Babka,
	Mike Rapoport, Suren Baghdasaryan, Michal Hocko, Jann Horn,
	Davidlohr Bueso, SJ Park, Kees Cook, Colin Cross, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: David Hildenbrand (Arm) <david@kernel.org>

[ Upstream commit 652f15be3c11415725694ccea317c51e35c0b582 ]

When changing the anonymous VMA name, madvise_update_vma() calls
vma_modify_name() to possibly merge with adjacent VMAs. We don't call
vma_modify_flags() and consequently don't obtain the new VMA flags.

Later in the function we update the VMA flags to the stale new_vma_flags
we obtained before. This can result in us losing the VMA_SOFTDIRTY_BIT
flag set on a VMA we just merged with.

There is no need to update the VMA flags at all, so just exit early. This
skips calling khugepaged_enter_vma(), but since the flags didn't change
this is fine.

[ljs@kernel.org: minor edit of commit message, rebased]
Link: https://lore.kernel.org/20261023-fix-vma-atomic-v1-3-8ff4fae1fc85@kernel.org
Fixes: 9a10064f5625 ("mm: add a field to store names for private anonymous memory")
Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Reviewed-by: Pedro Falcato <pfalcato@suse.de>
Tested-by: Gregory Price (Meta) <gourry@gourry.net>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Jann Horn <jannh@google.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: SJ Park <sj@kernel.org>
Cc: Kees Cook <kees@kernel.org>
Cc: Colin Cross <ccross@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 mm/madvise.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mm/madvise.c b/mm/madvise.c
index 9d64e15dfdb48..7291d03d66928 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -177,6 +177,9 @@ static int madvise_update_vma(vm_flags_t new_flags,
 
 	/* vm_flags is protected by the mmap_lock held in write mode. */
 	vma_start_write(vma);
+	if (set_new_anon_name)
+		return replace_anon_vma_name(vma, anon_name);
+
 	vma_overwrite_flags(vma, new_vma_flags);
 	/*
 	 * If the vma become good for khugepaged to scan,
@@ -186,9 +189,6 @@ static int madvise_update_vma(vm_flags_t new_flags,
 	if (vma_flags_test(&new_vma_flags, VMA_HUGEPAGE_BIT))
 		khugepaged_enter_vma(vma, vma_flags_to_legacy(new_vma_flags));
 
-	if (set_new_anon_name)
-		return replace_anon_vma_name(vma, anon_name);
-
 	return 0;
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0044/2651] ASoC: SDCA: export PM helpers keyed on sdca_class_drv
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (42 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0043/2651] mm/madvise: preserve VMA_SOFTDIRTY_BIT when changing anonymous names Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0045/2651] ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure Greg Kroah-Hartman
                   ` (147 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Srinivas Kandagatla, Charles Keepax,
	Mark Brown, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>

[ Upstream commit 0985313a2a9d2e84d6a6b1041c88b5c57ee46dfa ]

The class PM callbacks pull sdca_class_drv out of drvdata, so the
built-in class_sdw_driver owns the drvdata slot. That works for the
generic case but blocks codec drivers that want to embed
sdca_class_drv in their own private struct -- they need drvdata for
their codec priv.

Split the four callbacks into exported helpers that take a
struct sdca_class_drv * directly:

  sdca_class_system_suspend()
  sdca_class_system_resume()
  sdca_class_runtime_suspend()
  sdca_class_runtime_resume()

Codec drivers can now compose these into their own dev_pm_ops without
going through drvdata.

For the built-in class_sdw_driver, add small dev_pm_ops wrappers that
fetch drv from drvdata and wire them into sdca_class_pm_ops. The ops
struct itself stays private to this file; codec drivers build their
own dev_pm_ops from the four exported helpers above.

No functional change: the built-in class_sdw_driver keeps the same PM
semantics; only the internal plumbing shifts to operate on
sdca_class_drv instead of struct device *dev.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260925161049.758913-3-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: d34a818a331f ("ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../soc/sdca => include/sound}/sdca_class.h   | 14 ++++
 sound/soc/sdca/sdca_class.c                   | 81 ++++++++++++++-----
 sound/soc/sdca/sdca_class_function.c          |  2 +-
 3 files changed, 78 insertions(+), 19 deletions(-)
 rename {sound/soc/sdca => include/sound}/sdca_class.h (58%)

diff --git a/sound/soc/sdca/sdca_class.h b/include/sound/sdca_class.h
similarity index 58%
rename from sound/soc/sdca/sdca_class.h
rename to include/sound/sdca_class.h
index 57f7f8d08f497..8a6a34a8dd4c3 100644
--- a/sound/soc/sdca/sdca_class.h
+++ b/include/sound/sdca_class.h
@@ -32,4 +32,18 @@ struct sdca_class_drv {
 	struct work_struct boot_work;
 };
 
+/*
+ * PM helpers.  Codec drivers embed sdca_class_drv in their own priv,
+ * own dev_set_drvdata(), and compose these into their own dev_pm_ops:
+ *
+ *	static int wcd_runtime_suspend(struct device *dev) {
+ *		struct wcd_priv *priv = dev_get_drvdata(dev);
+ *		return sdca_class_runtime_suspend(&priv->class);
+ *	}
+ */
+int sdca_class_runtime_suspend(struct sdca_class_drv *drv);
+int sdca_class_runtime_resume(struct sdca_class_drv *drv);
+int sdca_class_system_suspend(struct sdca_class_drv *drv);
+int sdca_class_system_resume(struct sdca_class_drv *drv);
+
 #endif /* __SDCA_CLASS_H__ */
diff --git a/sound/soc/sdca/sdca_class.c b/sound/soc/sdca/sdca_class.c
index e0e7aff70f93d..c5d6cf9896545 100644
--- a/sound/soc/sdca/sdca_class.c
+++ b/sound/soc/sdca/sdca_class.c
@@ -20,7 +20,7 @@
 #include <sound/sdca_function.h>
 #include <sound/sdca_interrupts.h>
 #include <sound/sdca_regmap.h>
-#include "sdca_class.h"
+#include <sound/sdca_class.h>
 
 #define CLASS_SDW_ATTACH_TIMEOUT_MS	5000
 
@@ -199,30 +199,41 @@ static void class_sdw_remove(struct sdw_slave *sdw)
 	cancel_work_sync(&drv->boot_work);
 }
 
-static int class_suspend(struct device *dev)
+/**
+ * sdca_class_system_suspend - SDCA class system suspend helper
+ * @drv: caller-owned sdca_class_drv.
+ *
+ * Codec drivers compose this into their own dev_pm_ops.  Disables the
+ * SoundWire interrupt and forces runtime suspend of the underlying
+ * class regmap.
+ */
+int sdca_class_system_suspend(struct sdca_class_drv *drv)
 {
-	struct sdca_class_drv *drv = dev_get_drvdata(dev);
 	int ret;
 
 	disable_irq(drv->sdw->irq);
 
-	ret = pm_runtime_force_suspend(dev);
+	ret = pm_runtime_force_suspend(drv->dev);
 	if (ret) {
-		dev_err(dev, "failed to force suspend: %d\n", ret);
+		dev_err(drv->dev, "failed to force suspend: %d\n", ret);
 		return ret;
 	}
 
 	return 0;
 }
+EXPORT_SYMBOL_NS_GPL(sdca_class_system_suspend, "SND_SOC_SDCA_CLASS");
 
-static int class_resume(struct device *dev)
+/**
+ * sdca_class_system_resume - SDCA class system resume helper
+ * @drv: caller-owned sdca_class_drv.
+ */
+int sdca_class_system_resume(struct sdca_class_drv *drv)
 {
-	struct sdca_class_drv *drv = dev_get_drvdata(dev);
 	int ret;
 
-	ret = pm_runtime_force_resume(dev);
+	ret = pm_runtime_force_resume(drv->dev);
 	if (ret) {
-		dev_err(dev, "failed to force resume: %d\n", ret);
+		dev_err(drv->dev, "failed to force resume: %d\n", ret);
 		return ret;
 	}
 
@@ -230,11 +241,14 @@ static int class_resume(struct device *dev)
 
 	return 0;
 }
+EXPORT_SYMBOL_NS_GPL(sdca_class_system_resume, "SND_SOC_SDCA_CLASS");
 
-static int class_runtime_suspend(struct device *dev)
+/**
+ * sdca_class_runtime_suspend - SDCA class runtime suspend helper
+ * @drv: caller-owned sdca_class_drv.
+ */
+int sdca_class_runtime_suspend(struct sdca_class_drv *drv)
 {
-	struct sdca_class_drv *drv = dev_get_drvdata(dev);
-
 	/*
 	 * Whilst the driver doesn't power the chip down here, going into runtime
 	 * suspend lets the SoundWire bus power down, which means the driver
@@ -244,10 +258,14 @@ static int class_runtime_suspend(struct device *dev)
 
 	return 0;
 }
+EXPORT_SYMBOL_NS_GPL(sdca_class_runtime_suspend, "SND_SOC_SDCA_CLASS");
 
-static int class_runtime_resume(struct device *dev)
+/**
+ * sdca_class_runtime_resume - SDCA class runtime resume helper
+ * @drv: caller-owned sdca_class_drv.
+ */
+int sdca_class_runtime_resume(struct sdca_class_drv *drv)
 {
-	struct sdca_class_drv *drv = dev_get_drvdata(dev);
 	int ret;
 
 	ret = sdw_slave_wait_for_init(drv->sdw, CLASS_SDW_ATTACH_TIMEOUT_MS);
@@ -270,10 +288,37 @@ static int class_runtime_resume(struct device *dev)
 
 	return ret;
 }
+EXPORT_SYMBOL_NS_GPL(sdca_class_runtime_resume, "SND_SOC_SDCA_CLASS");
+
+/*
+ * Convenience dev_pm_ops used by the built-in class_sdw_driver, which
+ * stashes its sdca_class_drv in drvdata directly.  Codec drivers that
+ * embed sdca_class_drv in their own priv compose their own dev_pm_ops
+ * using the sdca_class_*_suspend/resume helpers above.
+ */
+static int class_pm_system_suspend(struct device *dev)
+{
+	return sdca_class_system_suspend(dev_get_drvdata(dev));
+}
+
+static int class_pm_system_resume(struct device *dev)
+{
+	return sdca_class_system_resume(dev_get_drvdata(dev));
+}
+
+static int class_pm_runtime_suspend(struct device *dev)
+{
+	return sdca_class_runtime_suspend(dev_get_drvdata(dev));
+}
+
+static int class_pm_runtime_resume(struct device *dev)
+{
+	return sdca_class_runtime_resume(dev_get_drvdata(dev));
+}
 
-static const struct dev_pm_ops class_pm_ops = {
-	SYSTEM_SLEEP_PM_OPS(class_suspend, class_resume)
-	RUNTIME_PM_OPS(class_runtime_suspend, class_runtime_resume, NULL)
+static const struct dev_pm_ops sdca_class_pm_ops = {
+	SYSTEM_SLEEP_PM_OPS(class_pm_system_suspend, class_pm_system_resume)
+	RUNTIME_PM_OPS(class_pm_runtime_suspend, class_pm_runtime_resume, NULL)
 };
 
 static const struct sdw_device_id class_sdw_id[] = {
@@ -287,7 +332,7 @@ MODULE_DEVICE_TABLE(sdw, class_sdw_id);
 static struct sdw_driver class_sdw_driver = {
 	.driver = {
 		.name		= "sdca_class",
-		.pm		= pm_ptr(&class_pm_ops),
+		.pm		= pm_ptr(&sdca_class_pm_ops),
 	},
 
 	.probe		= class_sdw_probe,
diff --git a/sound/soc/sdca/sdca_class_function.c b/sound/soc/sdca/sdca_class_function.c
index 610931ae5531f..616d5f9736716 100644
--- a/sound/soc/sdca/sdca_class_function.c
+++ b/sound/soc/sdca/sdca_class_function.c
@@ -26,7 +26,7 @@
 #include <sound/soc-component.h>
 #include <sound/soc-dai.h>
 #include <sound/soc.h>
-#include "sdca_class.h"
+#include <sound/sdca_class.h>
 #include "sdca_function_device.h"
 
 struct class_function_drv {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0045/2651] ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (43 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0044/2651] ASoC: SDCA: export PM helpers keyed on sdca_class_drv Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0046/2651] quota: initialize dquot cache before mounting rootfs Greg Kroah-Hartman
                   ` (146 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Charles Keepax, Srinivas Kandagatla,
	Mark Brown, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>

[ Upstream commit d34a818a331f7e270fa9dc3db3d96f6a0d4fa7ab ]

The SoundWire IRQ was disabled before pm_runtime_force_suspend() but
never re-enabled when the force suspend failed, leaving the codec
unable to receive interrupts.

Fixes: 2d877d0659cb ("ASoC: SDCA: Add basic SDCA class driver")
Cc: stable@vger.kernel.org
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Assisted-by: LLM
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20261020073856.1177749-4-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 sound/soc/sdca/sdca_class.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/sdca/sdca_class.c b/sound/soc/sdca/sdca_class.c
index c5d6cf9896545..3cabed663008c 100644
--- a/sound/soc/sdca/sdca_class.c
+++ b/sound/soc/sdca/sdca_class.c
@@ -216,6 +216,7 @@ int sdca_class_system_suspend(struct sdca_class_drv *drv)
 	ret = pm_runtime_force_suspend(drv->dev);
 	if (ret) {
 		dev_err(drv->dev, "failed to force suspend: %d\n", ret);
+		enable_irq(drv->sdw->irq);
 		return ret;
 	}
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0046/2651] quota: initialize dquot cache before mounting rootfs
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (44 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0045/2651] ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0047/2651] fs/proc/task_mmu: fix missed VMAs when reading /proc/PID/maps and friends Greg Kroah-Hartman
                   ` (145 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Dylan Johnson, YouYou Yu,
	Gunnar Kudrjavets, Jan Kara, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: YouYou Yu <youyouyu@amazon.com>

[ Upstream commit e21a6f39aa6d0336ffbf5f34e5fa20ff8de36773 ]

On some systems, a tmpfs backed rootfs is extensively used throughout
system's lifecycle. tmpfs quotas are needed to limit per user rootfs
usage. However, booting with CONFIG_TMPFS_QUOTA=y, an initramfs, no root=
and "initramfs_options=usrquota" panics at boot:

  BUG: kernel NULL pointer dereference, address: 0000000000000000
  RIP: 0010:dqget+0x1ac/0x490
  Call Trace:
   __dquot_initialize
   dquot_initialize
   shmem_get_inode
   shmem_fill_super
   ...
   mnt_init
   vfs_caches_init
   start_kernel

The rootfs is mounted from mnt_init(), but the dquot hash table and
cache are only set up later by dquot_init(), an fs_initcall. Creating
the root inode of a quota enabled rootfs thus dereferences the NULL
dquot_hash in dqget().

Rename dquot_init() to dquot_cache_init() and call it from
vfs_caches_init() before mnt_init(). The slab, percpu and early
workqueue code it relies on is available there, and the workqueue
rescuer and shrinker debugfs entries are set up later by their own
subsystems. Keep the sysctl registration in an fs_initcall, as done
for the dcache, inode and mount sysctls. This only moves existing
allocations earlier in boot.

Fixes: 278033a225e1 ("fs: Add 'initramfs_options' to set initramfs mount options")
Cc: stable@vger.kernel.org
Assisted-by: LLM
Co-developed-by: Dylan Johnson <dgj@amazon.com>
Signed-off-by: Dylan Johnson <dgj@amazon.com>
Signed-off-by: YouYou Yu <youyouyu@amazon.com>
Reviewed-by: Gunnar Kudrjavets <gunnarku@amazon.com>
Link: https://patch.msgid.link/20261021181217.20171-1-youyouyu@amazon.com
Signed-off-by: Jan Kara <jack@suse.cz>
[ sashal: Adjusted include-list context because the neighboring namei header is absent. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/dcache.c              |  2 ++
 fs/quota/dquot.c         | 10 ++++++----
 include/linux/quotaops.h |  5 +++++
 3 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/fs/dcache.c b/fs/dcache.c
index f9c9f3b1ba807..7d7d96a098d78 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -32,6 +32,7 @@
 #include <linux/bit_spinlock.h>
 #include <linux/rculist_bl.h>
 #include <linux/list_lru.h>
+#include <linux/quotaops.h>
 #include "internal.h"
 #include "mount.h"
 
@@ -3537,6 +3538,7 @@ void __init vfs_caches_init(void)
 	inode_init();
 	files_init();
 	files_maxfiles_init();
+	dquot_cache_init();
 	mnt_init();
 	bdev_cache_init();
 	chrdev_init();
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
index 1c78c695d0ddf..cd142c9cc7e0c 100644
--- a/fs/quota/dquot.c
+++ b/fs/quota/dquot.c
@@ -2942,7 +2942,7 @@ static const struct ctl_table fs_dqstats_table[] = {
 	},
 };
 
-static int __init dquot_init(void)
+void __init dquot_cache_init(void)
 {
 	int i, ret;
 	unsigned long nr_hash;
@@ -2950,8 +2950,6 @@ static int __init dquot_init(void)
 
 	printk(KERN_NOTICE "VFS: Disk quotas %s\n", __DQUOT_VERSION__);
 
-	register_sysctl_init("fs/quota", fs_dqstats_table);
-
 	dquot_cachep = kmem_cache_create("dquot",
 			sizeof(struct dquot), sizeof(unsigned long) * 4,
 			(SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
@@ -2992,7 +2990,11 @@ static int __init dquot_init(void)
 					   WQ_UNBOUND | WQ_MEM_RECLAIM, WQ_MAX_ACTIVE);
 	if (!quota_unbound_wq)
 		panic("Cannot create quota_unbound_wq\n");
+}
 
+static int __init init_fs_dquot_sysctls(void)
+{
+	register_sysctl_init("fs/quota", fs_dqstats_table);
 	return 0;
 }
-fs_initcall(dquot_init);
+fs_initcall(init_fs_dquot_sysctls);
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h
index f9c0f9d7c9d93..bbe22c22439ed 100644
--- a/include/linux/quotaops.h
+++ b/include/linux/quotaops.h
@@ -40,6 +40,7 @@ void __quota_error(struct super_block *sb, const char *func,
 /*
  * declaration of quota_function calls in kernel.
  */
+void dquot_cache_init(void);
 int dquot_initialize(struct inode *inode);
 bool dquot_initialize_needed(struct inode *inode);
 void dquot_drop(struct inode *inode);
@@ -206,6 +207,10 @@ static inline int sb_has_quota_active(struct super_block *sb, int type)
 	return 0;
 }
 
+static inline void dquot_cache_init(void)
+{
+}
+
 static inline int dquot_initialize(struct inode *inode)
 {
 	return 0;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0047/2651] fs/proc/task_mmu: fix missed VMAs when reading /proc/PID/maps and friends
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (45 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0046/2651] quota: initialize dquot cache before mounting rootfs Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0048/2651] ASoC: qcom: q6apm: clear g_apm on driver removal Greg Kroah-Hartman
                   ` (144 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, David Hildenbrand (Arm),
	Lorenzo Stoakes (ARM), Andrew Morton, Suren Baghdasaryan,
	Jose A. Perez de Azpillaga, Liam R. Howlett, Vlastimil Babka,
	Jann Horn, Pedro Falcato, Shakeel Butt, SJ Park, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Lorenzo Stoakes (ARM) <ljs@kernel.org>

[ Upstream commit ee1afc5539b6fe03569a5855b6041b13343b0993 ]

Reading /proc/PID/maps under per-VMA locks can skip continuously mapped
address ranges during concurrent VMA splits or merges. This violates the
guarantee in Documentation/filesystems/proc.rst:

"If there is something at a given vaddr during the entirety of the
life of the smaps/maps walk, there will be some output for it."

lock_next_vma() reuses a tree iterator across calls under RCU. The iterator
remembers the range of its last entry. When its node is replaced,
mas_next_slot() walks the tree again at the last index of that range, then
advances past the entry containing that index. If VMA boundaries changed,
this can skip a range that has not been reported:

- A lookup finds [A, C), then mprotect() splits it into [A, B) and [B, C)
  before vma_start_read() locks the first VMA. The reader reports [A, B),
  but the iterator still covers [A, C). The next call starts from B yet
  advances past C, omitting [B, C).

- The reader reports [A, B) and unlocks it. A concurrent mprotect() then
  merges it with [B, C). On the next call, the iterator resumes at B - 1,
  which now belongs to [A, C), and advances past C. Again, [B, C) is lost.

Checking the mmap_lock sequence only within the next call misses writers
that completed before that call began. Also, a NULL result is currently
accepted without validation, so a race can terminate the walk early.

Even a fresh lookup can skip a mapping. Suppose it finds a gap before
[B, C). A writer inserts an adjacent VMA at the end of that gap, then
merges it into [B, C), replacing the node. The lookup resumes at the old
gap's last index, now inside the merged VMA, and steps past it. The
original [B, C) remains mapped throughout. Repeating the forward lookup
is insufficient: another merge can make it skip the same mapping again,
returning the same later VMA or NULL.

The fresh-lookup race also affects /proc/PID/smaps, numa_maps and
smaps_rollup. Resetting the iterator after gathering each VMA's statistics
does not prevent a merge during the next lookup. Fixing lock_next_vma()
also prevents omitted entries and incomplete rollup statistics.

Tie VMA iterator state with the current mm and the write generation at the
point of last mm speculation in vma_rcu_iter, whose values we call 'rvmi'.

This allows us to neatly abstract the existing priv->iter logic alongside
query_vma_find_by_addr() which uses its own VMA iterator.

Then, provide helpers that act on the rvmi - vma_rcu_iter_[maybe_changed,
may_have_skipped]() to determine whether any VMAs may have
been altered since last mm speculation.

Additionally introduce vma_range_is_empty(), used by
vma_rcu_iter_may_have_skipped(), to determine conclusively whether VMAs
exist in a set range, needing to be traversed.

Original fix generated by an LLM and sent by Josef Bacik in private, then
amended by David Hildenbrand, and Lorenzo Stoakes added additional
abstraction.

Link: https://lore.kernel.org/20261027-fix-proc-pid-maps-missing-vmas-v2-1-2791cc9fc95f@kernel.org
Fixes: 5631da56c9a8 ("fs/proc/task_mmu: read proc/pid/maps under per-vma lock")
Fixes: ea3085dd7a4e ("fs/proc/task_mmu: read proc/pid/{smaps|numa_maps} under per-vma lock")
Fixes: 0e985559d72a ("proc/task_mmu: read proc/pid/smaps_rollup under per-vma lock")
Fixes: d9d1c2d81797 ("fs/proc/task_mmu: execute PROCMAP_QUERY ioctl under per-vma locks")
Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Co-developed-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Jose A. Perez de Azpillaga <azpijr@gmail.com>
Tested-by: Jose A. Perez de Azpillaga <azpijr@gmail.com>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Jann Horn <jannh@google.com>
Cc: Pedro Falcato <pfalcato@suse.de>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: SJ Park <sj@kernel.org>
Cc: <stable@vger.kernel.org>
[ sashal: Retained mmap_lock-based show_smaps_rollup() initialization while moving vma_rcu_iter_init() outside CONFIG_PER_VMA_LOCK. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/proc/internal.h        |  1 +
 fs/proc/task_mmu.c        |  9 +++---
 include/linux/mmap_lock.h | 22 ++++++++++++--
 mm/mmap_lock.c            | 61 +++++++++++++++++++++++++++++----------
 4 files changed, 70 insertions(+), 23 deletions(-)

diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index 04bd6c9e65a72..b1913f851b705 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -395,6 +395,7 @@ struct proc_maps_private {
 	struct inode *inode;
 	struct task_struct *task;
 	struct vma_iterator iter;
+	struct vma_rcu_iter rvmi;
 	loff_t last_pos;
 	struct proc_maps_locking_ctx lock_ctx;
 #ifdef CONFIG_NUMA
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index 2eaa79ab11389..a0b12cfb34c32 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -191,7 +191,7 @@ static struct vm_area_struct *get_next_vma(struct proc_maps_private *priv,
 		return vma_next(&priv->iter);
 
 	unlock_ctx_vma(lock_ctx);
-	vma = lock_next_vma(lock_ctx->mm, &priv->iter, last_pos);
+	vma = lock_next_vma(&priv->rvmi, last_pos);
 	if (!IS_ERR_OR_NULL(vma))
 		lock_ctx->locked_vma = vma;
 
@@ -341,7 +341,7 @@ static void *m_start(struct seq_file *m, loff_t *ppos)
 	 */
 	if (last_addr > 0)
 		*ppos = last_addr = priv->last_pos;
-	vma_iter_init(&priv->iter, mm, (unsigned long)last_addr);
+	vma_rcu_iter_init(&priv->rvmi, mm, &priv->iter, (unsigned long)last_addr);
 	hold_task_mempolicy(priv);
 	if (last_addr == SENTINEL_VMA_GATE)
 		return get_gate_vma(mm);
@@ -583,6 +583,7 @@ static struct vm_area_struct *query_vma_find_by_addr(struct proc_maps_locking_ct
 	struct mm_struct *mm = lock_ctx->mm;
 	struct vm_area_struct *vma;
 	struct vma_iterator vmi;
+	struct vma_rcu_iter rvmi;
 
 	if (lock_ctx->mmap_locked)
 		return find_vma(mm, addr);
@@ -590,8 +591,8 @@ static struct vm_area_struct *query_vma_find_by_addr(struct proc_maps_locking_ct
 	/* Unlock previously locked VMA and find the next one under RCU */
 	unlock_ctx_vma(lock_ctx);
 	rcu_read_lock();
-	vma_iter_init(&vmi, mm, addr);
-	vma = lock_next_vma(mm, &vmi, addr);
+	vma_rcu_iter_init(&rvmi, mm, &vmi, addr);
+	vma = lock_next_vma(&rvmi, addr);
 	rcu_read_unlock();
 
 	if (!vma)
diff --git a/include/linux/mmap_lock.h b/include/linux/mmap_lock.h
index a63911a513749..c7f4c8b488828 100644
--- a/include/linux/mmap_lock.h
+++ b/include/linux/mmap_lock.h
@@ -17,6 +17,13 @@ extern int rcuwait_wake_up(struct rcuwait *w);
 #define MMAP_LOCK_INITIALIZER(name) \
 	.mmap_lock = __RWSEM_INITIALIZER((name).mmap_lock),
 
+/* Tie a VMA iterator to mm write lock state at iterator initialisation. */
+struct vma_rcu_iter {
+	struct mm_struct *mm;
+	struct vma_iterator *vmi;
+	unsigned int mm_wr_seq;
+};
+
 DECLARE_TRACEPOINT(mmap_lock_start_locking);
 DECLARE_TRACEPOINT(mmap_lock_acquire_returned);
 DECLARE_TRACEPOINT(mmap_lock_released);
@@ -482,9 +489,8 @@ struct vm_area_struct *lock_vma_under_rcu(struct mm_struct *mm,
  * Returns either a valid locked VMA, NULL if no more VMAs or -EINTR if the
  * process was interrupted.
  */
-struct vm_area_struct *lock_next_vma(struct mm_struct *mm,
-				     struct vma_iterator *iter,
-				     unsigned long address);
+struct vm_area_struct *lock_next_vma(struct vma_rcu_iter *rvmi,
+				     unsigned long from_addr);
 
 #else /* CONFIG_PER_VMA_LOCK */
 
@@ -534,6 +540,16 @@ static inline void vma_assert_stabilised(struct vm_area_struct *vma)
 
 #endif /* CONFIG_PER_VMA_LOCK */
 
+static inline void vma_rcu_iter_init(struct vma_rcu_iter *rvmi,
+		struct mm_struct *mm, struct vma_iterator *vmi,
+		unsigned long addr)
+{
+	vma_iter_init(vmi, mm, addr);
+	rvmi->mm = mm;
+	rvmi->vmi = vmi;
+	rvmi->mm_wr_seq = UINT_MAX; /* Start odd so changed by default. */
+}
+
 static inline void vma_assert_can_modify(struct vm_area_struct *vma)
 {
 	if (vma_is_attached(vma))
diff --git a/mm/mmap_lock.c b/mm/mmap_lock.c
index 2682af771f0fb..9a77343cfbc91 100644
--- a/mm/mmap_lock.c
+++ b/mm/mmap_lock.c
@@ -13,6 +13,8 @@
 #include <linux/trace_events.h>
 #include <linux/local_lock.h>
 
+#include "internal.h"
+
 EXPORT_TRACEPOINT_SYMBOL(mmap_lock_start_locking);
 EXPORT_TRACEPOINT_SYMBOL(mmap_lock_acquire_returned);
 EXPORT_TRACEPOINT_SYMBOL(mmap_lock_released);
@@ -394,21 +396,53 @@ static struct vm_area_struct *lock_next_vma_under_mmap_lock(struct mm_struct *mm
 	return vma;
 }
 
-struct vm_area_struct *lock_next_vma(struct mm_struct *mm,
-				     struct vma_iterator *vmi,
+/* Is there no VMA in [start, last]? */
+static bool vma_range_is_empty(struct mm_struct *mm, unsigned long start,
+		unsigned long last)
+{
+	VMA_ITERATOR(vmi, mm, start);
+
+	return !vma_iter_load(&vmi) && vma_iter_end(&vmi) - 1 >= last;
+}
+
+/* Might the VMA tree have been modified since last mm speculation? */
+static bool vma_rcu_iter_maybe_changed(const struct vma_rcu_iter *rvmi)
+{
+	return (rvmi->mm_wr_seq & 1) || /* Odd implies write-lock. */
+	       mmap_lock_speculate_retry(rvmi->mm, rvmi->mm_wr_seq);
+}
+
+/* Could the VMA iterator have skipped a VMA due to the tree changing? */
+static bool vma_rcu_iter_may_have_skipped(const struct vma_rcu_iter *rvmi,
+		unsigned long from, unsigned long to)
+{
+	return vma_rcu_iter_maybe_changed(rvmi) &&
+	       !vma_range_is_empty(rvmi->mm, from, to);
+}
+
+struct vm_area_struct *lock_next_vma(struct vma_rcu_iter *rvmi,
 				     unsigned long from_addr)
 {
+	struct mm_struct *mm = rvmi->mm;
+	struct vma_iterator *vmi = rvmi->vmi;
 	struct vm_area_struct *vma;
-	unsigned int mm_wr_seq;
-	bool mmap_unlocked;
 
 	RCU_LOCKDEP_WARN(!rcu_read_lock_held(), "no rcu read lock held");
 retry:
-	/* Start mmap_lock speculation in case we need to verify the vma later */
-	mmap_unlocked = mmap_lock_speculate_try_begin(mm, &mm_wr_seq);
+	/* Only trust the iterator's position if the tree cannot have changed. */
+	if (vma_rcu_iter_maybe_changed(rvmi)) {
+		vma_iter_set(vmi, from_addr);
+		mmap_lock_speculate_try_begin(mm, &rvmi->mm_wr_seq);
+	}
 	vma = vma_next(vmi);
-	if (!vma)
-		return NULL;
+	if (!vma) {
+		/* No reason to fallback if nothing left in range. */
+		if (!vma_rcu_iter_may_have_skipped(rvmi, from_addr, ULONG_MAX))
+			return NULL;
+
+		rcu_read_unlock();
+		goto fallback;
+	}
 
 	vma = vma_start_read(mm, vma);
 	if (IS_ERR_OR_NULL(vma)) {
@@ -437,14 +471,9 @@ struct vm_area_struct *lock_next_vma(struct mm_struct *mm,
 	 * installed ahead of it. Otherwise we might observe a gap that should
 	 * not be there.
 	 */
-	if (from_addr < vma->vm_start) {
-		/* Verify only if the address space might have changed since vma lookup. */
-		if (!mmap_unlocked || mmap_lock_speculate_retry(mm, mm_wr_seq)) {
-			vma_iter_set(vmi, from_addr);
-			if (vma != vma_next(vmi))
-				goto fallback_unlock;
-		}
-	}
+	if (from_addr < vma->vm_start &&
+	    vma_rcu_iter_may_have_skipped(rvmi, from_addr, vma->vm_start - 1))
+		goto fallback_unlock;
 
 	return vma;
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0048/2651] ASoC: qcom: q6apm: clear g_apm on driver removal
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (46 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0047/2651] fs/proc/task_mmu: fix missed VMAs when reading /proc/PID/maps and friends Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0049/2651] ovl: add assertions in dir cache code Greg Kroah-Hartman
                   ` (143 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Ajay Kumar Nandam, Mark Brown,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>

[ Upstream commit be2172758f2b7c801ae80b9c8d1510b31eeffdaa ]

The global g_apm pointer is set during apm_probe() but never cleared
in apm_remove(). After the driver is removed the devm-managed struct
q6apm is freed, leaving g_apm dangling. A subsequent call to
q6apm_is_adsp_ready() dereferences the freed pointer.

Clear g_apm in apm_remove() before the component is unregistered so
that q6apm_is_adsp_ready() returns false instead of triggering a
use-after-free.

Fixes: 5477518b8a0e ("ASoC: qdsp6: audioreach: add q6apm support")
Signed-off-by: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
Link: https://patch.msgid.link/20260923-vmid-v4-v6-1-3d61a0319b1c@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 sound/soc/qcom/qdsp6/q6apm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/qcom/qdsp6/q6apm.c b/sound/soc/qcom/qdsp6/q6apm.c
index 8a756249e5884..dea1dc2a79358 100644
--- a/sound/soc/qcom/qdsp6/q6apm.c
+++ b/sound/soc/qcom/qdsp6/q6apm.c
@@ -917,6 +917,7 @@ static int apm_probe(gpr_device_t *gdev)
 
 static void apm_remove(gpr_device_t *gdev)
 {
+	g_apm = NULL;
 	of_platform_depopulate(&gdev->dev);
 	snd_soc_unregister_component(&gdev->dev);
 }
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0049/2651] ovl: add assertions in dir cache code
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (47 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0048/2651] ASoC: qcom: q6apm: clear g_apm on driver removal Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0050/2651] ovl: inherit FMODE_NONOTIFY when reading directory layers Greg Kroah-Hartman
                   ` (142 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Nirmoy Das, Amir Goldstein,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Amir Goldstein <amir73il@gmail.com>

[ Upstream commit ba227ed05b385926094741e2d566789525c36085 ]

Overlayfs may keep two different types of directory cache
merged (refcounted) and impure (not refcounted) in the inode.

They are mutually exclusive and an overlayfs directory is never
expected to switch between merged and impure modes.

Nevertheless it is hard to prove that races in the code are not
possible, so add assertions to fortify the code accessing the
directory cache to make sure it does not free the unexpected
cache type.

If an assertion fires the code may leak dir cache memory
but it will not access freed cache memory.

Suggested-by: Nirmoy Das <nirmoyd@nvidia.com>
Link: https://lore.kernel.org/r/20260511062057.2365769-1-nirmoyd@nvidia.com/
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Stable-dep-of: 9ff338af0e00 ("ovl: inherit FMODE_NONOTIFY when reading directory layers")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/overlayfs/readdir.c | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/fs/overlayfs/readdir.c b/fs/overlayfs/readdir.c
index e23331212a29b..5d21a328fad46 100644
--- a/fs/overlayfs/readdir.c
+++ b/fs/overlayfs/readdir.c
@@ -36,6 +36,7 @@ struct ovl_cache_entry {
 struct ovl_dir_cache {
 	long refcount;
 	u64 version;
+	bool is_refcounted;
 	struct list_head entries;
 	struct rb_root root;
 };
@@ -479,13 +480,31 @@ static void ovl_seek_cursor(struct ovl_dir_file *od, loff_t pos)
 	od->cursor = p;
 }
 
+/*
+ * Merged (refcounted) and impure (not refcounted) caches are never
+ * expected to be mixed. On mismatch, detach the cache from the inode
+ * and leak it rather than misuse it. A merged cache is still freed by
+ * its last ovl_cache_put().
+ */
+static struct ovl_dir_cache *ovl_dir_cache_check(struct inode *inode,
+						 bool is_refcounted)
+{
+	struct ovl_dir_cache *cache = ovl_dir_cache(inode);
+
+	if (cache && WARN_ON(cache->is_refcounted != is_refcounted)) {
+		ovl_set_dir_cache(inode, NULL);
+		return NULL;
+	}
+	return cache;
+}
+
 static struct ovl_dir_cache *ovl_cache_get(struct dentry *dentry)
 {
 	int res;
 	struct ovl_dir_cache *cache;
 	struct inode *inode = d_inode(dentry);
 
-	cache = ovl_dir_cache(inode);
+	cache = ovl_dir_cache_check(inode, true);
 	if (cache && ovl_inode_version_get(inode) == cache->version) {
 		WARN_ON(!cache->refcount);
 		cache->refcount++;
@@ -498,6 +517,7 @@ static struct ovl_dir_cache *ovl_cache_get(struct dentry *dentry)
 		return ERR_PTR(-ENOMEM);
 
 	cache->refcount = 1;
+	cache->is_refcounted = true;
 	INIT_LIST_HEAD(&cache->entries);
 	cache->root = RB_ROOT;
 
@@ -698,7 +718,7 @@ static struct ovl_dir_cache *ovl_cache_get_impure(const struct path *path)
 	struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
 	struct ovl_dir_cache *cache;
 
-	cache = ovl_dir_cache(inode);
+	cache = ovl_dir_cache_check(inode, false);
 	if (cache && ovl_inode_version_get(inode) == cache->version)
 		return cache;
 
@@ -710,6 +730,7 @@ static struct ovl_dir_cache *ovl_cache_get_impure(const struct path *path)
 	if (!cache)
 		return ERR_PTR(-ENOMEM);
 
+	cache->is_refcounted = false;
 	res = ovl_dir_read_impure(path, &cache->entries, &cache->root);
 	if (res) {
 		ovl_cache_free(&cache->entries);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0050/2651] ovl: inherit FMODE_NONOTIFY when reading directory layers
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (48 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0049/2651] ovl: add assertions in dir cache code Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0051/2651] comedi: addi_apci_3xxx: fix subdevice count underallocation Greg Kroah-Hartman
                   ` (141 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Edvard Conrad, Amir Goldstein,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Amir Goldstein <amir73il@gmail.com>

[ Upstream commit 9ff338af0e002fe217cfa16b1289b76f6b21fc72 ]

Listing a merged or impure overlay directory opens the real layer
directories from ovl_dir_read(), when the readdir cache is filled.
Those opens use plain ovl_path_open(), so when the directory fd is
one that fanotify created for a permission event, they can still raise
FS_OPEN_PERM.  A listener that also marks the backing filesystem and
calls getdents() on the event fd before answering then deadlocks the
same way as with the directory open fixed by the previous commit.

Store the overlay user file in struct ovl_readdir_data and pass it to
ovl_path_open_realfile() from ovl_dir_read(), for both the merged and
the impure cache.  Internal readers such as ovl_check_empty_dir() and
the mount-time workdir cleanup still pass no user file.

A note about severity and real world impact: The FAN_OPEN_PERM event is
traditionally used by anti-malware protection agents and security/audit
agents. The scope that is often used in those use cases is FAN_MARK_MOUNT
and agents typically monitor multiple mounts in a mount namespace.
FAN_OPEN_PERM from directory open requires user opt-in with FAN_ONDIR.
It is often not the case that anti-malware agents monitor open of
directories. Security/audit engines are more likely to opt-into
FAN_OPEN_PERM on directories, but are less likely to list the content
of a directory within the scope of FAN_OPEN_PERM event, so the real
world impact of this bug is likely not significant.

Reported-by: Edvard Conrad <edvard@tuta.io>
Closes: https://lore.kernel.org/all/P5Qu3co--N-9@tuta.io/
Cc: stable@vger.kernel.org
Tested-by: Edvard Conrad <edvard@tuta.io>
Link: https://lore.kernel.org/ltp/P5WKBbq--F-9@tuta.io/
Co-developed-by: Edvard Conrad <edvard@tuta.io>
Signed-off-by: Edvard Conrad <edvard@tuta.io>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/overlayfs/readdir.c | 29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/fs/overlayfs/readdir.c b/fs/overlayfs/readdir.c
index 5d21a328fad46..4cd4af097e5c1 100644
--- a/fs/overlayfs/readdir.c
+++ b/fs/overlayfs/readdir.c
@@ -43,6 +43,7 @@ struct ovl_dir_cache {
 
 struct ovl_readdir_data {
 	struct dir_context ctx;
+	const struct file *user_file;
 	struct dentry *dentry;
 	bool is_lowest;
 	struct rb_root *root;
@@ -377,7 +378,8 @@ static inline int ovl_dir_read(const struct path *realpath,
 	struct file *realfile;
 	int err;
 
-	realfile = ovl_path_open(realpath, O_RDONLY | O_LARGEFILE);
+	realfile = ovl_path_open_realfile(rdd->user_file, realpath,
+					  O_RDONLY | O_LARGEFILE);
 	if (IS_ERR(realfile))
 		return PTR_ERR(realfile);
 
@@ -421,13 +423,14 @@ static void ovl_dir_reset(struct file *file)
 }
 
 static int ovl_dir_read_merged(struct dentry *dentry, struct list_head *list,
-	struct rb_root *root)
+	struct rb_root *root, const struct file *user_file)
 {
 	int err;
 	struct path realpath;
 	struct ovl_readdir_data rdd = {
 		.ctx.actor = ovl_fill_merge,
 		.ctx.count = INT_MAX,
+		.user_file = user_file,
 		.dentry = dentry,
 		.list = list,
 		.root = root,
@@ -498,9 +501,10 @@ static struct ovl_dir_cache *ovl_dir_cache_check(struct inode *inode,
 	return cache;
 }
 
-static struct ovl_dir_cache *ovl_cache_get(struct dentry *dentry)
+static struct ovl_dir_cache *ovl_dir_cache_get(struct file *file)
 {
 	int res;
+	struct dentry *dentry = file->f_path.dentry;
 	struct ovl_dir_cache *cache;
 	struct inode *inode = d_inode(dentry);
 
@@ -521,7 +525,7 @@ static struct ovl_dir_cache *ovl_cache_get(struct dentry *dentry)
 	INIT_LIST_HEAD(&cache->entries);
 	cache->root = RB_ROOT;
 
-	res = ovl_dir_read_merged(dentry, &cache->entries, &cache->root);
+	res = ovl_dir_read_merged(dentry, &cache->entries, &cache->root, file);
 	if (res) {
 		ovl_cache_free(&cache->entries);
 		kfree(cache);
@@ -665,8 +669,8 @@ static bool ovl_fill_plain(struct dir_context *ctx, const char *name,
 	return true;
 }
 
-static int ovl_dir_read_impure(const struct path *path,  struct list_head *list,
-			       struct rb_root *root)
+static int ovl_dir_read_impure(const struct path *path, struct list_head *list,
+			       struct rb_root *root, const struct file *user_file)
 {
 	int err;
 	struct path realpath;
@@ -674,6 +678,7 @@ static int ovl_dir_read_impure(const struct path *path,  struct list_head *list,
 	struct ovl_readdir_data rdd = {
 		.ctx.actor = ovl_fill_plain,
 		.ctx.count = INT_MAX,
+		.user_file = user_file,
 		.list = list,
 		.root = root,
 	};
@@ -710,9 +715,10 @@ static int ovl_dir_read_impure(const struct path *path,  struct list_head *list,
 	return 0;
 }
 
-static struct ovl_dir_cache *ovl_cache_get_impure(const struct path *path)
+static struct ovl_dir_cache *ovl_cache_get_impure(struct file *file)
 {
 	int res;
+	const struct path *path = &file->f_path;
 	struct dentry *dentry = path->dentry;
 	struct inode *inode = d_inode(dentry);
 	struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
@@ -731,7 +737,7 @@ static struct ovl_dir_cache *ovl_cache_get_impure(const struct path *path)
 		return ERR_PTR(-ENOMEM);
 
 	cache->is_refcounted = false;
-	res = ovl_dir_read_impure(path, &cache->entries, &cache->root);
+	res = ovl_dir_read_impure(path, &cache->entries, &cache->root, file);
 	if (res) {
 		ovl_cache_free(&cache->entries);
 		kfree(cache);
@@ -852,7 +858,7 @@ static int ovl_iterate_real(struct file *file, struct dir_context *ctx)
 	dput(parent);
 
 	if (ovl_is_impure_dir(file)) {
-		rdt.cache = ovl_cache_get_impure(&file->f_path);
+		rdt.cache = ovl_cache_get_impure(file);
 		if (IS_ERR(rdt.cache))
 			return PTR_ERR(rdt.cache);
 	}
@@ -866,14 +872,13 @@ static int ovl_iterate_real(struct file *file, struct dir_context *ctx)
 static int ovl_iterate_merged(struct file *file, struct dir_context *ctx)
 {
 	struct ovl_dir_file *od = file->private_data;
-	struct dentry *dentry = file->f_path.dentry;
 	struct ovl_cache_entry *p;
 	int err;
 
 	if (!od->cache) {
 		struct ovl_dir_cache *cache;
 
-		cache = ovl_cache_get(dentry);
+		cache = ovl_dir_cache_get(file);
 		if (IS_ERR(cache))
 			return PTR_ERR(cache);
 
@@ -1120,7 +1125,7 @@ int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list)
 	struct rb_root root = RB_ROOT;
 
 	with_ovl_creds(dentry->d_sb)
-		err = ovl_dir_read_merged(dentry, list, &root);
+		err = ovl_dir_read_merged(dentry, list, &root, NULL);
 	if (err)
 		return err;
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0051/2651] comedi: addi_apci_3xxx: fix subdevice count underallocation
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (49 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0050/2651] ovl: inherit FMODE_NONOTIFY when reading directory layers Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0052/2651] comedi: dt2811: fix shift-out-of-bounds in IRQ check Greg Kroah-Hartman
                   ` (140 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Yang Zi, Ian Abbott, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Yang Zi <2959243019@qq.com>

[ Upstream commit 3de5aa458dede472a253266d02902bd95af8e849 ]

In apci3xxx_auto_attach(), the number of subdevices is computed with

    n_subdevices = (board->ai_n_chan ? 0 : 1) + board->has_ao + ...

The ternary is inverted: when the board has analog input channels
(ai_n_chan != 0), it counts 0 instead of 1, so the AI subdevice that is
actually created is not accounted for. As a result
comedi_alloc_subdevices() allocates one entry too few, and the later
subdevice initialization (notably the TTL Digital I/O subdevice, which
is populated last) writes past the end of the allocated array, causing a
slab out-of-bounds write.

Flip the ternary to count 1 when ai_n_chan is non-zero and 0 otherwise,
matching the subdevice creation order in the function.

Signed-off-by: Yang Zi <2959243019@qq.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20261014101803.11036-1-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Fixes: 656e39fedcf0 ("staging: comedi: addi_apci_3xxx: only allocate needed subdevices")
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/comedi/drivers/addi_apci_3xxx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/comedi/drivers/addi_apci_3xxx.c b/drivers/comedi/drivers/addi_apci_3xxx.c
index 695cce1031779..1dcda82d95032 100644
--- a/drivers/comedi/drivers/addi_apci_3xxx.c
+++ b/drivers/comedi/drivers/addi_apci_3xxx.c
@@ -787,7 +787,7 @@ static int apci3xxx_auto_attach(struct comedi_device *dev,
 			dev->irq = pcidev->irq;
 	}
 
-	n_subdevices = (board->ai_n_chan ? 0 : 1) + board->has_ao +
+	n_subdevices = (board->ai_n_chan ? 1 : 0) + board->has_ao +
 		       board->has_dig_in + board->has_dig_out +
 		       board->has_ttl_io;
 	ret = comedi_alloc_subdevices(dev, n_subdevices);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0052/2651] comedi: dt2811: fix shift-out-of-bounds in IRQ check
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (50 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0051/2651] comedi: addi_apci_3xxx: fix subdevice count underallocation Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0053/2651] serial: max310x: schedule tx_work directly from the IRQ handler Greg Kroah-Hartman
                   ` (139 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, syzbot+a4cedab706d0a8a3f988,
	Pei Xiao, Ian Abbott, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Pei Xiao <xiaopei01@kylinos.cn>

[ Upstream commit 471ce96a9c415b8a67bd5081ac2089a458cacc2f ]

The IRQ number passed via comedi_devconfig->options[1] is a signed int
that comes from userspace.  The check `it->options[1] <= 7` does not
reject negative values, so a negative IRQ number reaches
`BIT(it->options[1])`, which is undefined behavior and triggers a UBSAN
shift-out-of-bounds warning:

  UBSAN: shift-out-of-bounds in drivers/comedi/drivers/dt2811.c:570:31
  shift exponent -251 is negative

Add an explicit lower bound check (`it->options[1] >= 0`) so that only
valid IRQ numbers 0..7 are accepted before the shift.

Fixes: f2975a9b2ab9 ("staging: comedi: dt2811: add async command support for AI subdevice")
Reported-by: syzbot+a4cedab706d0a8a3f988@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/6ab21240.e548f532.1ca396.0018.GAE@google.com/#R
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Tested-by: syzbot+a4cedab706d0a8a3f988@syzkaller.appspotmail.com
Link: https://patch.msgid.link/02c46315293a26169d2a3862a2047959a1651ef4.1790061387.git.xiaopei01@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/comedi/drivers/dt2811.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/comedi/drivers/dt2811.c b/drivers/comedi/drivers/dt2811.c
index 0438b8c90e441..53cb17993ae79 100644
--- a/drivers/comedi/drivers/dt2811.c
+++ b/drivers/comedi/drivers/dt2811.c
@@ -567,7 +567,7 @@ static int dt2811_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 	dt2811_reset(dev);
 
 	/* IRQ's 2,3,5,7 are valid for async command support */
-	if (it->options[1] <= 7  && (BIT(it->options[1]) & 0xac)) {
+	if (it->options[1] >= 0 && it->options[1] <= 7 && (BIT(it->options[1]) & 0xac)) {
 		ret = request_irq(it->options[1], dt2811_interrupt, 0,
 				  dev->board_name, dev);
 		if (ret == 0)
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0053/2651] serial: max310x: schedule tx_work directly from the IRQ handler
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (51 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0052/2651] comedi: dt2811: fix shift-out-of-bounds in IRQ check Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0054/2651] drm/komeda: Fix bits parsing of GLB_CORE_ID Greg Kroah-Hartman
                   ` (138 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Tapio Reijonen

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Tapio Reijonen <tapio.reijonen@vaisala.com>

commit c06fcc258db0c0c7f607e64a7ce6a157bb2414b1 upstream.

The TXEMPTY interrupt asks for a FIFO refill, and start_tx() does
nothing beyond scheduling tx_work, so going through it makes no
functional difference. It does conflate two distinct events, though:
start_tx() is the serial core starting a new transmission, while
TXEMPTY can only fire for a transmission that is already running -
the bit latches on the FIFO's non-empty to empty transition, and the
IRQ handler's read of IRQSTS consumes the latch, so a stale TXEMPTY
cannot exist on an idle port (if the bit were level-triggered, the
handler's read-until-clear loop would never terminate).

Schedule tx_work directly, keeping the interrupt path a pure FIFO
refill. This is preparation for a following patch that adds
software-timed RS485 RTS control, where start_tx() also starts the
RTS envelope and a refill must not restart it.

No functional change.

Assisted-by: Claude:claude-fable-5
Signed-off-by: Tapio Reijonen <tapio.reijonen@vaisala.com>
Link: https://patch.msgid.link/20261008-max310x-rs485-sw-delay-v8-7-6ba881f81e1f@vaisala.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/tty/serial/max310x.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- a/drivers/tty/serial/max310x.c
+++ b/drivers/tty/serial/max310x.c
@@ -840,8 +840,12 @@ static irqreturn_t max310x_port_irq(stru
 		}
 		if (rxlen)
 			max310x_handle_rx(port, rxlen);
+		/*
+		 * TXEMPTY latches on the FIFO becoming empty, so a stale
+		 * interrupt cannot pump data during an RTS setup delay.
+		 */
 		if (ists & MAX310X_IRQ_TXEMPTY_BIT)
-			max310x_start_tx(port);
+			schedule_work(&s->p[portno].tx_work);
 	} while (1);
 
 	return res;



^ permalink raw reply	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0054/2651] drm/komeda: Fix bits parsing of GLB_CORE_ID
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (52 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0053/2651] serial: max310x: schedule tx_work directly from the IRQ handler Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0055/2651] accel/qaic: Add missing <linux/device-id/mhi.h> to sahara and timesync Greg Kroah-Hartman
                   ` (137 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Raveendra Talabattula, Liviu Dudau,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Raveendra Talabattula <raveendra.talabattula@arm.com>

[ Upstream commit ec902de0221747094f9ccbb61454e9633fbf282f ]

GLB_CORE_ID contains the product and version information returned by the
hardware. The current macros parses VERSION_MINOR as a 4-bit field and
VERSION_STATUS as an 8-bit field, which does not match the register
layout. As a result, the driver reports an incorrect version number.

Fix the parsing macros to match the hardware specification:
- VERSION_MINOR is 8 bits at [11:4]
- VERSION_STATUS is 4 bits at [3:0]

Fixes: bd628c1bed79 ("drm/komeda: komeda_dev/pipeline/component definition and initialzation")
Signed-off-by: Raveendra Talabattula <raveendra.talabattula@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20260803142122.4127851-2-raveendra.talabattula@arm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/arm/display/include/malidp_product.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/arm/display/include/malidp_product.h b/drivers/gpu/drm/arm/display/include/malidp_product.h
index 6f954bcdf40ea..f9a3ee7ba4b75 100644
--- a/drivers/gpu/drm/arm/display/include/malidp_product.h
+++ b/drivers/gpu/drm/arm/display/include/malidp_product.h
@@ -8,14 +8,18 @@
 #define _MALIDP_PRODUCT_H_
 
 /* Product identification */
+/* GLB_CORE_ID fields as per HW specification:
+ * MINOR is 8 bits ([11:4]) and STATUS is 4 bits ([3:0]).
+ * Update masks/shifts accordingly.
+ */
 #define MALIDP_CORE_ID(__product, __major, __minor, __status) \
 	((((__product) & 0xFFFF) << 16) | (((__major) & 0xF) << 12) | \
-	(((__minor) & 0xF) << 8) | ((__status) & 0xFF))
+	(((__minor) & 0xFF) << 4) | ((__status) & 0xF))
 
 #define MALIDP_CORE_ID_PRODUCT_ID(__core_id) ((__u32)(__core_id) >> 16)
 #define MALIDP_CORE_ID_MAJOR(__core_id)      (((__u32)(__core_id) >> 12) & 0xF)
-#define MALIDP_CORE_ID_MINOR(__core_id)      (((__u32)(__core_id) >> 8) & 0xF)
-#define MALIDP_CORE_ID_STATUS(__core_id)     (((__u32)(__core_id)) & 0xFF)
+#define MALIDP_CORE_ID_MINOR(__core_id)      (((__u32)(__core_id) >>  4) & 0xFF)
+#define MALIDP_CORE_ID_STATUS(__core_id)     ((__u32)(__core_id) & 0xF)
 
 /* Mali-display product IDs */
 #define MALIDP_D71_PRODUCT_ID	0x0071
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0055/2651] accel/qaic: Add missing <linux/device-id/mhi.h> to sahara and timesync
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (53 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0054/2651] drm/komeda: Fix bits parsing of GLB_CORE_ID Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0056/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_drv.c Greg Kroah-Hartman
                   ` (136 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Youssef Samir, Jeff Hugo,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>

[ Upstream commit 0fb9e5faa8220db6b3268b3c8a39e31e0a963743 ]

qaic_timesync.c and sahara.c use struct mhi_device_id implicitly since
commit 995832b2cebe ("Replace <linux/mod_devicetable.h> by more specific
<linux/device-id/*.h> (c files)") removed <linux/mod_devicetable.h>.

Explicitly include <linux/device-id/mhi.h> in qaic_timesync.c and sahara.c.

Fixes: 995832b2cebe ("Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files)")
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patch.msgid.link/20260727173326.2219191-2-youssef.abdulrahman@oss.qualcomm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/accel/qaic/qaic_timesync.c | 1 +
 drivers/accel/qaic/sahara.c        | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/accel/qaic/qaic_timesync.c b/drivers/accel/qaic/qaic_timesync.c
index 45e5f0728ebe8..b5162677ccc46 100644
--- a/drivers/accel/qaic/qaic_timesync.c
+++ b/drivers/accel/qaic/qaic_timesync.c
@@ -2,6 +2,7 @@
 
 /* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. */
 
+#include <linux/device-id/mhi.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/math64.h>
diff --git a/drivers/accel/qaic/sahara.c b/drivers/accel/qaic/sahara.c
index 6333c45ef7d2a..e951181e424f2 100644
--- a/drivers/accel/qaic/sahara.c
+++ b/drivers/accel/qaic/sahara.c
@@ -3,6 +3,7 @@
 /* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. */
 
 #include <linux/devcoredump.h>
+#include <linux/device-id/mhi.h>
 #include <linux/firmware.h>
 #include <linux/limits.h>
 #include <linux/mhi.h>
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0056/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_drv.c
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (54 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0055/2651] accel/qaic: Add missing <linux/device-id/mhi.h> to sahara and timesync Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0057/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_debugfs.c Greg Kroah-Hartman
                   ` (135 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Youssef Samir, Jeff Hugo,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>

[ Upstream commit c8e6229a81d0400a8347c70b89ff363ec08c816f ]

qaic_drv.c uses mhi_device_id implicitly. Include <linux/device-id/mhi.h>.

Fixes: c501ca23a6a3 ("accel/qaic: Add uapi and core driver file")
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Reviewd-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patch.msgid.link/20260727173326.2219191-3-youssef.abdulrahman@oss.qualcomm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/accel/qaic/qaic_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/accel/qaic/qaic_drv.c b/drivers/accel/qaic/qaic_drv.c
index 0acf6cdd44f81..c1bb6db78d129 100644
--- a/drivers/accel/qaic/qaic_drv.c
+++ b/drivers/accel/qaic/qaic_drv.c
@@ -4,6 +4,7 @@
 /* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. */
 
 #include <linux/delay.h>
+#include <linux/device-id/mhi.h>
 #include <linux/dma-mapping.h>
 #include <linux/idr.h>
 #include <linux/interrupt.h>
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0057/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_debugfs.c
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (55 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0056/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_drv.c Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0058/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_ras.c Greg Kroah-Hartman
                   ` (134 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Youssef Samir, Jeff Hugo,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>

[ Upstream commit cef139aa5394844f61fdb81d9fb07e71ba4e2407 ]

qaic_debugfs.c uses mhi_device_id implicitly. Include
<linux/device-id/mhi.h>.

Fixes: 5f8df5c6def6 ("accel/qaic: Add bootlog debugfs")
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Reviewd-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patch.msgid.link/20260727173326.2219191-4-youssef.abdulrahman@oss.qualcomm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/accel/qaic/qaic_debugfs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/accel/qaic/qaic_debugfs.c b/drivers/accel/qaic/qaic_debugfs.c
index 95c78e12dd61b..909a4d774d906 100644
--- a/drivers/accel/qaic/qaic_debugfs.c
+++ b/drivers/accel/qaic/qaic_debugfs.c
@@ -5,6 +5,7 @@
 
 #include <linux/debugfs.h>
 #include <linux/device.h>
+#include <linux/device-id/mhi.h>
 #include <linux/fs.h>
 #include <linux/list.h>
 #include <linux/mhi.h>
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0058/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_ras.c
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (56 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0057/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_debugfs.c Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0059/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_ssr.c Greg Kroah-Hartman
                   ` (133 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Youssef Samir, Jeff Hugo,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>

[ Upstream commit 7de023a5a251b6599ca767415e07a0ea79fc2dcb ]

qaic_ras.c uses mhi_device_id implicitly. Include <linux/device-id/mhi.h>.

Fixes: c11a50b170e7 ("accel/qaic: Add Reliability, Accessibility, Serviceability (RAS)")
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Reviewd-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patch.msgid.link/20260727173326.2219191-5-youssef.abdulrahman@oss.qualcomm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/accel/qaic/qaic_ras.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/accel/qaic/qaic_ras.c b/drivers/accel/qaic/qaic_ras.c
index e0205c2cda3df..236e520f708f7 100644
--- a/drivers/accel/qaic/qaic_ras.c
+++ b/drivers/accel/qaic/qaic_ras.c
@@ -5,6 +5,7 @@
 
 #include <asm/byteorder.h>
 #include <linux/device.h>
+#include <linux/device-id/mhi.h>
 #include <linux/kernel.h>
 #include <linux/mhi.h>
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0059/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_ssr.c
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (57 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0058/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_ras.c Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0060/2651] accel/qaic: reject BO sizes that overflow page count Greg Kroah-Hartman
                   ` (132 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Youssef Samir, Jeff Hugo,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>

[ Upstream commit f29ab62f7ed55eae7b246bb535ede56d3b338674 ]

qaic_ssr.c uses mhi_device_id implicitly. Include <linux/device-id/mhi.h>.

Fixes: 9675093acea0 ("accel/qaic: Implement basic SSR handling")
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Reviewd-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patch.msgid.link/20260727173326.2219191-6-youssef.abdulrahman@oss.qualcomm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/accel/qaic/qaic_ssr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/accel/qaic/qaic_ssr.c b/drivers/accel/qaic/qaic_ssr.c
index a989286549599..418f14936f9a0 100644
--- a/drivers/accel/qaic/qaic_ssr.c
+++ b/drivers/accel/qaic/qaic_ssr.c
@@ -8,6 +8,7 @@
 #include <drm/drm_managed.h>
 #include <linux/devcoredump.h>
 #include <linux/device.h>
+#include <linux/device-id/mhi.h>
 #include <linux/kernel.h>
 #include <linux/mhi.h>
 #include <linux/workqueue.h>
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0060/2651] accel/qaic: reject BO sizes that overflow page count
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (58 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0059/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_ssr.c Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0061/2651] drm: verisilicon: fix cursor offset field update Greg Kroah-Hartman
                   ` (131 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Hao-Qun Huang, Jeff Hugo,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Hao-Qun Huang <alvinhuang0603@gmail.com>

[ Upstream commit 568d4cb5dcc5ec4e22975699b6ea67a30806884c ]

create_sgt() receives the BO size as a u64 but stores the number of
pages in an int. qaic_create_bo_ioctl() page-aligns the user-supplied
size without an upper bound, so DIV_ROUND_UP(size, PAGE_SIZE) can exceed
INT_MAX and truncate when assigned to nr_pages.

When the page count wraps to a small positive value (for example a BO
larger than 16 TiB on a 4 KiB page kernel), create_sgt() succeeds after
allocating only a handful of pages while the GEM object still records
the full size, so the request never fails with -ENOMEM. The temporary
pages array and the allocation loop both use the truncated count, so the
backing SG table ends up smaller than obj->size. Later slice operations
validate against obj->size and then clone ranges from this short sgt.

Compute the page count as a u64 and reject sizes that do not fit in
nr_pages before the narrowing conversion.

Fixes: ff13be830333 ("accel/qaic: Add datapath")
Assisted-by: Claude:claude-fable-5
Signed-off-by: Hao-Qun Huang <alvinhuang0603@gmail.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patch.msgid.link/20260708031959.966009-1-alvinhuang0603@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/accel/qaic/qaic_data.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/accel/qaic/qaic_data.c b/drivers/accel/qaic/qaic_data.c
index ef0351b6dc9b5..4d55531bf1c9e 100644
--- a/drivers/accel/qaic/qaic_data.c
+++ b/drivers/accel/qaic/qaic_data.c
@@ -15,6 +15,7 @@
 #include <linux/math64.h>
 #include <linux/mm.h>
 #include <linux/moduleparam.h>
+#include <linux/overflow.h>
 #include <linux/scatterlist.h>
 #include <linux/spinlock.h>
 #include <linux/srcu.h>
@@ -455,7 +456,12 @@ static int create_sgt(struct qaic_device *qdev, struct sg_table **sgt_out, u64 s
 	int order;
 
 	if (size) {
-		nr_pages = DIV_ROUND_UP(size, PAGE_SIZE);
+		u64 nr_pages_u64 = DIV_ROUND_UP_ULL(size, PAGE_SIZE);
+
+		if (overflows_type(nr_pages_u64, int))
+			return -E2BIG;
+
+		nr_pages = nr_pages_u64;
 		/*
 		 * calculate how much extra we are going to allocate, to remove
 		 * later
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0061/2651] drm: verisilicon: fix cursor offset field update
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (59 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0060/2651] accel/qaic: reject BO sizes that overflow page count Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0062/2651] drm/verisilicon: Switch to drm_fb_dma_get_addr() for framebuffer addresses Greg Kroah-Hartman
                   ` (130 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Icenowy Zheng, Chen-Yu Tsai,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Icenowy Zheng <zhengxingda@iscas.ac.cn>

[ Upstream commit 6575bb5d0d3c7db0d7d293428ecc07cb38e46ecc ]

The 4th argument of regmap_update_bits() expects a pre-shifted register
value instead of the field value when it's used to set a single field,
however I forgot this when writing the code setting the cursor X/Y
offset fields, thus the write operation doesn't happen at all (because
of the non-shifted values being masked by regmap_update_bits()).

Fix this problem so the cursor is correctly clipped.

The framebuffer address is also clipped so the cursor offset problem was
previously not discovered, and the framebuffer address deserves another
fix for proper cursor behavior when it's clipped.

Fixes: 8c4ae2189125 ("drm: verisilicon: add support for cursor planes")
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://patch.msgid.link/20260812154829.671777-1-zhengxingda@iscas.ac.cn
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/verisilicon/vs_cursor_plane.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
index da456dced88aa..472d5d70b5cc9 100644
--- a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
+++ b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
@@ -200,7 +200,7 @@ static void vs_cursor_plane_atomic_update(struct drm_plane *plane,
 	} else {
 		regmap_update_bits(dc->regs, VSDC_CURSOR_CONFIG(output),
 				   VSDC_CURSOR_CONFIG_X_OFF_MASK,
-				   -state->crtc_x);
+				   VSDC_CURSOR_CONFIG_X_OFF(-state->crtc_x));
 		regmap_update_bits(dc->regs, VSDC_CURSOR_LOCATION(output),
 				   VSDC_CURSOR_LOCATION_X_MASK, 0);
 	}
@@ -214,7 +214,7 @@ static void vs_cursor_plane_atomic_update(struct drm_plane *plane,
 	} else {
 		regmap_update_bits(dc->regs, VSDC_CURSOR_CONFIG(output),
 				   VSDC_CURSOR_CONFIG_Y_OFF_MASK,
-				   -state->crtc_y);
+				   VSDC_CURSOR_CONFIG_Y_OFF(-state->crtc_y));
 		regmap_update_bits(dc->regs, VSDC_CURSOR_LOCATION(output),
 				   VSDC_CURSOR_LOCATION_Y_MASK, 0);
 	}
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0062/2651] drm/verisilicon: Switch to drm_fb_dma_get_addr() for framebuffer addresses
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (60 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0061/2651] drm: verisilicon: fix cursor offset field update Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0063/2651] drm/panfrost: Check another bo field for cache option query Greg Kroah-Hartman
                   ` (129 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Icenowy Zheng, Chen-Yu Tsai,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Chen-Yu Tsai <wenst@chromium.org>

[ Upstream commit 063019ac51afffda4ab3d658701b086caa0c8e9e ]

The verisilicon driver has a custom framebuffer address calculating
helper that the common drm_fb_dma_get_addr() can substitute.

Differences from drm_fb_dma_get_addr():

- Uses drm_format_info_min_pitch() to calculate the horizontal offset;
  however the driver does not support any of the blocked formats, so
  this just ends up being the same as in drm_fb_dma_get_addr():
  "cpp[plane] * y"

- Uses clipped source coordinates instead of non-clipped coordinates
  as in drm_fb_dma_get_addr();

  For the primary plane this doesn't matter, since the primary plane
  must match the output, i.e. it cannot be clipped. Also this driver
  doesn't support scaling.

  For the cursor plane this seems wrong, as the clipping seems to be
  done by the hardware, and thus the buffer address should be unclipped.

As such, it should be fine to use the common helper and drop the custom
code.

Tested-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Fixes: 8c4ae2189125 ("drm: verisilicon: add support for cursor planes")
Link: https://patch.msgid.link/20260813065127.341349-1-wenst@chromium.org
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/verisilicon/vs_cursor_plane.c |  4 +++-
 drivers/gpu/drm/verisilicon/vs_plane.c        | 20 -------------------
 drivers/gpu/drm/verisilicon/vs_plane.h        |  2 --
 .../gpu/drm/verisilicon/vs_primary_plane.c    |  7 ++++++-
 4 files changed, 9 insertions(+), 24 deletions(-)

diff --git a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
index 472d5d70b5cc9..b1e71da48350e 100644
--- a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
+++ b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
@@ -13,6 +13,7 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_blend.h>
 #include <drm/drm_crtc.h>
+#include <drm/drm_fb_dma_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem_atomic_helper.h>
@@ -177,7 +178,8 @@ static void vs_cursor_plane_atomic_update(struct drm_plane *plane,
 		break;
 	}
 
-	dma_addr = vs_fb_get_dma_addr(fb, &state->src);
+	/* hardware handles clipping as seen below */
+	dma_addr = drm_fb_dma_get_gem_addr(fb, state, 0);
 
 	regmap_write(dc->regs, VSDC_CURSOR_ADDRESS(output),
 		     lower_32_bits(dma_addr));
diff --git a/drivers/gpu/drm/verisilicon/vs_plane.c b/drivers/gpu/drm/verisilicon/vs_plane.c
index 7ddb9d2dcb83d..f189c0bba5b72 100644
--- a/drivers/gpu/drm/verisilicon/vs_plane.c
+++ b/drivers/gpu/drm/verisilicon/vs_plane.c
@@ -107,26 +107,6 @@ int drm_format_to_vs_format(u32 drm_format, struct vs_format *vs_format)
 	return 0;
 }
 
-dma_addr_t vs_fb_get_dma_addr(struct drm_framebuffer *fb,
-			      const struct drm_rect *src_rect)
-{
-	struct drm_gem_dma_object *gem;
-	dma_addr_t dma_addr;
-
-	/* Get the physical address of the buffer in memory */
-	gem = drm_fb_dma_get_gem_obj(fb, 0);
-
-	/* Compute the start of the displayed memory */
-	dma_addr = gem->dma_addr + fb->offsets[0];
-
-	/* Fixup framebuffer address for src coordinates */
-	dma_addr += drm_format_info_min_pitch(fb->format, 0,
-					      src_rect->x1 >> 16);
-	dma_addr += (src_rect->y1 >> 16) * fb->pitches[0];
-
-	return dma_addr;
-}
-
 struct drm_plane_state *vs_plane_duplicate_state(struct drm_plane *plane)
 {
 	struct vs_plane_state *vs_state, *vs_state_old;
diff --git a/drivers/gpu/drm/verisilicon/vs_plane.h b/drivers/gpu/drm/verisilicon/vs_plane.h
index 32ed1d70f3b8c..e4f82f1fc6e91 100644
--- a/drivers/gpu/drm/verisilicon/vs_plane.h
+++ b/drivers/gpu/drm/verisilicon/vs_plane.h
@@ -75,8 +75,6 @@ static inline struct vs_plane_state *to_vs_plane_state(struct drm_plane_state *s
 }
 
 int drm_format_to_vs_format(u32 drm_format, struct vs_format *vs_format);
-dma_addr_t vs_fb_get_dma_addr(struct drm_framebuffer *fb,
-			      const struct drm_rect *src_rect);
 
 struct drm_plane_state *vs_plane_duplicate_state(struct drm_plane *plane);
 void vs_plane_destroy_state(struct drm_plane *plane,
diff --git a/drivers/gpu/drm/verisilicon/vs_primary_plane.c b/drivers/gpu/drm/verisilicon/vs_primary_plane.c
index 8e94491693019..d5a8d61e9a489 100644
--- a/drivers/gpu/drm/verisilicon/vs_primary_plane.c
+++ b/drivers/gpu/drm/verisilicon/vs_primary_plane.c
@@ -8,6 +8,7 @@
 #include <drm/drm_atomic.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_crtc.h>
+#include <drm/drm_fb_dma_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem_atomic_helper.h>
@@ -126,7 +127,11 @@ static void vs_primary_plane_atomic_update(struct drm_plane *plane,
 			   VSDC_FB_CONFIG_UV_SWIZZLE_EN,
 			   vs_state->format.uv_swizzle);
 
-	dma_addr = vs_fb_get_dma_addr(fb, &state->src);
+	/*
+	 * Primary plane cannot be moved, no clipping is involved,
+	 * so the non-clipped framebuffer address can be used.
+	 */
+	dma_addr = drm_fb_dma_get_gem_addr(fb, state, 0);
 
 	regmap_write(dc->regs, VSDC_FB_ADDRESS(output),
 		     lower_32_bits(dma_addr));
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0063/2651] drm/panfrost: Check another bo field for cache option query
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (61 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0062/2651] drm/verisilicon: Switch to drm_fb_dma_get_addr() for framebuffer addresses Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0064/2651] drm/panfrost: Prevent division by 0 Greg Kroah-Hartman
                   ` (128 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Claude, Steven Price,
	Boris Brezillon, Adrián Larumbe, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Adrián Larumbe <adrian.larumbe@collabora.com>

[ Upstream commit a34340574bad0e3280d8b43b3836147bf2149abc ]

When querying the properties of a BO, whether it was created in
Writeback caching mode for userspace mappings, is recorded in a Panfrost
BO's wb_mmap field.

Reported-by: Claude <noreply@anthropic.com>
Closes: https://gitlab.freedesktop.org/panfrost/linux/-/work_items/88
Fixes: 62eedf1ccba5 ("drm/panfrost: Add flag to map GEM object Write-Back Cacheable")
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patch.msgid.link/20260820-b4-panfrost-fixes-v1-1-1b2c2376f4bc@collabora.com
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/panfrost/panfrost_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c
index 36cc2e67a3080..96a66d673ba60 100644
--- a/drivers/gpu/drm/panfrost/panfrost_drv.c
+++ b/drivers/gpu/drm/panfrost/panfrost_drv.c
@@ -662,7 +662,7 @@ static int panfrost_ioctl_query_bo_info(struct drm_device *dev, void *data,
 		if (bo->is_heap)
 			args->create_flags |= PANFROST_BO_HEAP;
 
-		if (!bo->base.map_wc)
+		if (bo->wb_mmap)
 			args->create_flags |= PANFROST_BO_WB_MMAP;
 	}
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0064/2651] drm/panfrost: Prevent division by 0
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (62 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0063/2651] drm/panfrost: Check another bo field for cache option query Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0065/2651] bpf: sched_ext: Mark ops argument container pointer fields as trusted Greg Kroah-Hartman
                   ` (127 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Claude, Steven Price,
	Boris Brezillon, Adrián Larumbe, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Adrián Larumbe <adrian.larumbe@collabora.com>

[ Upstream commit fd4227f03546c323b5b21568f727233e9792d298 ]

When updating and debug-printing devfreq stats, in the very unlikely
off-chance that total device time is less than 100 ns, division by 0
would happen. Fix the divisor when relevant and rearrange operands.

Reported-by: Claude <noreply@anthropic.com>
Closes: https://gitlab.freedesktop.org/panfrost/linux/-/work_items/88
Fixes: f3ba91228e8e ("drm/panfrost: Add initial panfrost driver")
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patch.msgid.link/20260820-b4-panfrost-fixes-v1-2-1b2c2376f4bc@collabora.com
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/panfrost/panfrost_devfreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
index b51c307788110..0fe81d259274e 100644
--- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c
+++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
@@ -78,7 +78,7 @@ static int panfrost_devfreq_get_dev_status(struct device *dev,
 
 	dev_dbg(pfdev->base.dev, "busy %lu total %lu %lu %% freq %lu MHz\n",
 		status->busy_time, status->total_time,
-		status->busy_time / (status->total_time / 100),
+		status->busy_time * 100 / MAX(status->total_time, 1),
 		status->current_frequency / 1000 / 1000);
 
 	return 0;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0065/2651] bpf: sched_ext: Mark ops argument container pointer fields as trusted
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (63 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0064/2651] drm/panfrost: Prevent division by 0 Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0066/2651] drm/omap: dsi: avoid sending bta sync all the time in writes Greg Kroah-Hartman
                   ` (126 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Tejun Heo, Kumar Kartikeya Dwivedi,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Tejun Heo <tj@kernel.org>

[ Upstream commit aed1bf1a352acd4f5ffd2a81e23d2bb6e8e9b636 ]

Walking an unannotated pointer field of a trusted struct yields a bare
PTR_TO_BTF_ID in non-sleepable programs, which kfuncs and helpers accept,
but PTR_UNTRUSTED in sleepable programs, which they reject. This gets in the
way of making ops.init_task() sleepable, which schedulers want for
allocations. For example, passing args->cgroup into bpf_cgrp_storage_get()
then fails verification and the only recourse is round-tripping through the
cgroup ID with bpf_cgroup_from_id().

The pointer fields in the sched_ext ops argument containers are all pinned
by the callers for the duration of the ops calls and are never NULL. Add
them to the verifier's trusted-fields whitelist so that they are PTR_TRUSTED
in both sleepable and non-sleepable programs.

Fixes: 8195136669661 ("sched_ext: Add cgroup support")
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/bpf/95d7ccc17681aa3a4a2eeb1b073f00f7@kernel.org
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 kernel/bpf/verifier.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index 5f874979b8d75..bc87b15d4556c 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -5923,6 +5923,28 @@ BTF_TYPE_SAFE_TRUSTED(struct file) {
 	struct inode *f_inode;
 };
 
+/*
+ * The pointer fields in the sched_ext ops argument containers are pinned by the
+ * callers for the duration of the ops calls and are never NULL.
+ */
+BTF_TYPE_SAFE_TRUSTED(struct scx_init_task_args) {
+#ifdef CONFIG_EXT_GROUP_SCHED
+	struct cgroup *cgroup;
+#endif
+};
+
+BTF_TYPE_SAFE_TRUSTED(struct scx_cpu_release_args) {
+	struct task_struct *task;
+};
+
+BTF_TYPE_SAFE_TRUSTED(struct scx_sub_attach_args) {
+	struct sched_ext_ops *ops;
+};
+
+BTF_TYPE_SAFE_TRUSTED(struct scx_sub_detach_args) {
+	struct sched_ext_ops *ops;
+};
+
 BTF_TYPE_SAFE_TRUSTED_OR_NULL(struct dentry) {
 	struct inode *d_inode;
 };
@@ -5967,6 +5989,10 @@ static bool type_is_trusted(struct bpf_verifier_env *env,
 	BTF_TYPE_EMIT(BTF_TYPE_SAFE_TRUSTED(struct bpf_iter__task));
 	BTF_TYPE_EMIT(BTF_TYPE_SAFE_TRUSTED(struct linux_binprm));
 	BTF_TYPE_EMIT(BTF_TYPE_SAFE_TRUSTED(struct file));
+	BTF_TYPE_EMIT(BTF_TYPE_SAFE_TRUSTED(struct scx_init_task_args));
+	BTF_TYPE_EMIT(BTF_TYPE_SAFE_TRUSTED(struct scx_cpu_release_args));
+	BTF_TYPE_EMIT(BTF_TYPE_SAFE_TRUSTED(struct scx_sub_attach_args));
+	BTF_TYPE_EMIT(BTF_TYPE_SAFE_TRUSTED(struct scx_sub_detach_args));
 
 	return btf_nested_type_is_trusted(&env->log, reg, field_name, btf_id, "__safe_trusted");
 }
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0066/2651] drm/omap: dsi: avoid sending bta sync all the time in writes
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (64 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0065/2651] bpf: sched_ext: Mark ops argument container pointer fields as trusted Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0067/2651] drm: of: Fix drm_of_get_data_lanes_count_ep() return value documentation Greg Kroah-Hartman
                   ` (125 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Andreas Kemnade, Tomi Valkeinen,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Andreas Kemnade <andreas@kemnade.info>

[ Upstream commit 20207f78382ff339f3a7f7c5db2c0219b157d32a ]

Some chips need configuration commands to be sent first, before they can
send data. TC358762 for example needs PPI_LPTXTIMECNT configured
and PPI_STARTPPI set to 1 to be able to transmit anything. To be able to
configure such chips, do not send bta sync during writes if no acks are
requested. Instead just wait for the packet to be sent to avoid FIFO
overflows. There might be more to do about acks, but there seem to be
virtually no users of that flag.

This came to light when fiddling with the Epson Moverio BT-200 display
which consists of 2 TC358762 bridges with SPI funneled through
to the unknown display chip. With that patch the bridge can be accessed,
Reading back registers works, when the above-mentioned registers are set.

In Command-Mode update, there was a nop sent, apparently the most
relevant part was the bta sync to actually force low power mode.

Video mode panel at OMAP4 (BT-200) and video mode at OMAP5 was tested.

Fixes: e70965386353e ("drm/omap: dsi: simplify write function")
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Link: https://patch.msgid.link/20260629-vm-upstr-v4-1-9f0c62d8808e@kemnade.info
Link: https://patch.msgid.link/20260628-vm-upstr-v3-1-9e9add93378b@kemnade.info
Link: https://patch.msgid.link/20260529-vm-upstr-v2-1-24c30671719f@kernel.org
Link: https://lore.gitlab.freedesktop.org/drm-ai-reviews/review-patch1-20260529-vm-upstr-v2-1-24c30671719f@kernel.org/
Link: https://patch.msgid.link/20260528-vm-upstr-v1-1-fb93ef8cbe47@kernel.org
Link: https://patch.msgid.link/20260804-vm-upstr-v6-1-1bf3748b2fa3@kemnade.info
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/omapdrm/dss/dsi.c | 63 +++++++++++++++----------------
 1 file changed, 31 insertions(+), 32 deletions(-)

diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c
index 6da720e8732d7..a57f5df5c8305 100644
--- a/drivers/gpu/drm/omapdrm/dss/dsi.c
+++ b/drivers/gpu/drm/omapdrm/dss/dsi.c
@@ -59,9 +59,6 @@ static void dsi_uninit_dispc(struct dsi_data *dsi);
 
 static int dsi_vc_send_null(struct dsi_data *dsi, int vc, int channel);
 
-static ssize_t _omap_dsi_host_transfer(struct dsi_data *dsi, int vc,
-				       const struct mipi_dsi_msg *msg);
-
 #ifdef DSI_PERF_MEASURE
 static bool dsi_perf;
 module_param(dsi_perf, bool, 0644);
@@ -2190,28 +2187,45 @@ static int dsi_vc_send_null(struct dsi_data *dsi, int vc, int channel)
 static int dsi_vc_write_common(struct omap_dss_device *dssdev, int vc,
 			       const struct mipi_dsi_msg *msg)
 {
+	DECLARE_COMPLETION_ONSTACK(completion);
 	struct dsi_data *dsi = to_dsi_data(dssdev);
+	u32 err;
 	int r;
 
+	/* wait for IRQ for packet transmission confirmation */
+	r = dsi_register_isr_vc(dsi, vc, dsi_completion_handler,
+				&completion, DSI_VC_IRQ_PACKET_SENT);
+	if (r)
+		return r;
+
 	if (mipi_dsi_packet_format_is_short(msg->type))
 		r = dsi_vc_send_short(dsi, vc, msg);
 	else
 		r = dsi_vc_send_long(dsi, vc, msg);
 
-	if (r < 0)
+	if ((!r) && wait_for_completion_timeout(&completion,
+				msecs_to_jiffies(500)) == 0)
+		r = -EIO;
+
+	dsi_unregister_isr_vc(dsi, vc, dsi_completion_handler,
+			      &completion, DSI_VC_IRQ_PACKET_SENT);
+	if (r)
 		return r;
 
-	/*
-	 * TODO: we do not always have to do the BTA sync, for example
-	 * we can improve performance by setting the update window
-	 * information without sending BTA sync between the commands.
-	 * In that case we can return early.
-	 */
+	/* TODO: find out if more needs to be done for MIPI_DSI_MSG_REQ_ACK */
 
-	r = dsi_vc_send_bta_sync(dssdev, vc);
-	if (r) {
-		DSSERR("bta sync failed\n");
-		return r;
+	if (msg->flags & MIPI_DSI_MSG_REQ_ACK) {
+		r = dsi_vc_send_bta_sync(dssdev, vc);
+		if (r) {
+			DSSERR("bta sync failed\n");
+			return r;
+		}
+	} else {
+		err = dsi_get_errors(dsi);
+		if (err) {
+			DSSERR("Error while sending: %x\n", err);
+			return -EIO;
+		}
 	}
 
 	/* RX_FIFO_NOT_EMPTY */
@@ -3229,21 +3243,6 @@ static int _dsi_update(struct dsi_data *dsi)
 	return 0;
 }
 
-static int _dsi_send_nop(struct dsi_data *dsi, int vc, int channel)
-{
-	const u8 payload[] = { MIPI_DCS_NOP };
-	const struct mipi_dsi_msg msg = {
-		.channel = channel,
-		.type = MIPI_DSI_DCS_SHORT_WRITE,
-		.tx_len = 1,
-		.tx_buf = payload,
-	};
-
-	WARN_ON(!dsi_bus_is_locked(dsi));
-
-	return _omap_dsi_host_transfer(dsi, vc, &msg);
-}
-
 static int dsi_update_channel(struct omap_dss_device *dssdev, int vc)
 {
 	struct dsi_data *dsi = to_dsi_data(dssdev);
@@ -3264,13 +3263,13 @@ static int dsi_update_channel(struct omap_dss_device *dssdev, int vc)
 	DSSDBG("dsi_update_channel: %d", vc);
 
 	/*
-	 * Send NOP between the frames. If we don't send something here, the
+	 * Transition to LP here. If we don't send something here, the
 	 * updates stop working. This is probably related to DSI spec stating
 	 * that the DSI host should transition to LP at least once per frame.
 	 */
-	r = _dsi_send_nop(dsi, VC_CMD, dsi->dsidev->channel);
+	r = dsi_vc_send_bta_sync(dssdev, VC_CMD);
 	if (r < 0) {
-		DSSWARN("failed to send nop between frames: %d\n", r);
+		DSSWARN("failed to send bta sync between frames: %d\n", r);
 		goto err;
 	}
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0067/2651] drm: of: Fix drm_of_get_data_lanes_count_ep() return value documentation
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (65 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0066/2651] drm/omap: dsi: avoid sending bta sync all the time in writes Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0068/2651] libbpf: Avoid overflow in BTF.ext bounds check Greg Kroah-Hartman
                   ` (124 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Geert Uytterhoeven, Marek Vasut,
	Maxime Ripard, Tomi Valkeinen, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Marek Vasut <marek.vasut+renesas@mailbox.org>

[ Upstream commit e3eca845ef7d6cd8c407f9b42beb45af94ff096b ]

Update drm_of_get_data_lanes_count_ep() return value documentation
to match the drm_of_get_data_lanes_count() return value documentation.
The drm_of_get_data_lanes_count_ep() is only a wrapper around the
drm_of_get_data_lanes_count() and therefore returns the same error
codes.

Simplify the return code description of drm_of_get_data_lanes_count()
and drm_of_get_data_lanes_count_ep() to -ENODATA and -EINVAL.

Fixes: fc801750b197 ("drm: of: Add drm_of_get_data_lanes_count and drm_of_get_data_lanes_ep")
Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20260305205840.95978-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/drm_of.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c
index e495117735e1f..cf02dbca54581 100644
--- a/drivers/gpu/drm/drm_of.c
+++ b/drivers/gpu/drm/drm_of.c
@@ -550,8 +550,8 @@ EXPORT_SYMBOL_GPL(drm_of_lvds_get_data_mapping);
  *
  * Return:
  * * min..max - positive integer count of "data-lanes" elements
- * * -ve - the "data-lanes" property is missing or invalid
- * * -EINVAL - the "data-lanes" property is unsupported
+ * * -ENODATA - the property does not have a value.
+ * * -EINVAL - the "data-lanes" property is missing or invalid
  */
 int drm_of_get_data_lanes_count(const struct device_node *endpoint,
 				const unsigned int min, const unsigned int max)
@@ -582,8 +582,8 @@ EXPORT_SYMBOL_GPL(drm_of_get_data_lanes_count);
  *
  * Return:
  * * min..max - positive integer count of "data-lanes" elements
- * * -EINVAL - the "data-mapping" property is unsupported
- * * -ENODEV - the "data-mapping" property is missing
+ * * -ENODATA - the property does not have a value.
+ * * -EINVAL - the "data-lanes" property is missing or invalid
  */
 int drm_of_get_data_lanes_count_ep(const struct device_node *port,
 				   int port_reg, int reg,
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0068/2651] libbpf: Avoid overflow in BTF.ext bounds check
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (66 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0067/2651] drm: of: Fix drm_of_get_data_lanes_count_ep() return value documentation Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0069/2651] selftests/bpf: Allocate a larger timeout for connection Greg Kroah-Hartman
                   ` (123 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Darren Carreras, Andrii Nakryiko,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Darren Carreras <carrerasdarren@gmail.com>

[ Upstream commit e40f61a31688898e7cf81e91074a42f805883e4d ]

A malformed BTF.ext subsection length in an ELF input can wrap the
pointer addition used by btf_ext_parse_sec_info() on 32-bit builds. The
wrapped pointer passes the bounds check and parsing then reads beyond the
copied BTF.ext data.

Ensure the header fits in the copied data, then validate the subsection
offset and length with subtraction before forming its pointer.

Fixes: ae4ab4b4117d ("btf: expose API to work with raw btf_ext data")
Closes: https://issues.oss-fuzz.com/issues/477315119
Signed-off-by: Darren Carreras <carrerasdarren@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260813-b4-libbpf-v6-send-20260813-v6-1-56be61c52758@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/lib/bpf/btf.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/tools/lib/bpf/btf.c b/tools/lib/bpf/btf.c
index 8417de92d0282..c783359977b46 100644
--- a/tools/lib/bpf/btf.c
+++ b/tools/lib/bpf/btf.c
@@ -3364,7 +3364,7 @@ static int btf_ext_parse_sec_info(struct btf_ext *btf_ext,
 {
 	const struct btf_ext_info_sec *sinfo;
 	struct btf_ext_info *ext_info;
-	__u32 info_left, record_size;
+	__u32 data_left, info_left, record_size;
 	size_t sec_cnt = 0;
 	void *info;
 
@@ -3377,16 +3377,20 @@ static int btf_ext_parse_sec_info(struct btf_ext *btf_ext,
 		return -EINVAL;
 	}
 
-	/* The start of the info sec (including the __u32 record_size). */
-	info = btf_ext->data + btf_ext->hdr->hdr_len + ext_sec->off;
-	info_left = ext_sec->len;
+	if (btf_ext->hdr->hdr_len > btf_ext->data_size)
+		return -EINVAL;
 
-	if (btf_ext->data + btf_ext->data_size < info + ext_sec->len) {
+	data_left = btf_ext->data_size - btf_ext->hdr->hdr_len;
+	if (ext_sec->off > data_left || ext_sec->len > data_left - ext_sec->off) {
 		pr_debug("%s section (off:%u len:%u) is beyond the end of the ELF section .BTF.ext\n",
 			 ext_sec->desc, ext_sec->off, ext_sec->len);
 		return -EINVAL;
 	}
 
+	/* The start of the info sec (including the __u32 record_size). */
+	info = btf_ext->data + btf_ext->hdr->hdr_len + ext_sec->off;
+	info_left = ext_sec->len;
+
 	/* At least a record size */
 	if (info_left < sizeof(__u32)) {
 		pr_debug(".BTF.ext %s record size not found\n", ext_sec->desc);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0069/2651] selftests/bpf: Allocate a larger timeout for connection
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (67 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0068/2651] libbpf: Avoid overflow in BTF.ext bounds check Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0070/2651] gpu: nova-core: write initial RPCs before booting GSP-RM Greg Kroah-Hartman
                   ` (122 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Alexis Lothoré  ,
	Andrii Nakryiko, Ihor Solodrai, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>

[ Upstream commit 669e4fa766000ae4137bb02eb22ce75ba78ad32d ]

Some tests, like tc_tunnel or tc_edt, sporadically fail in CI with the
following logs:

  (network_helpers.c:309: errno: Operation now in progress) \
    Failed to connect to server
  send_and_test_data:FAIL:connect to server unexpected error: -115

This is due to SO_RCVTIMEO and SO_SNDTIMEO being set on the client
socket (see settimeo() in client_socket()), allowing connect() to return
an error and to set errno to EINPROGRESS instead of ETIMEDOUT.
Increasing the timeout value for those tests is likely not a good
solution (and it has already been done by commit 2790db208b44
("selftests/bpf: Improve tc_tunnel test reliability")): some tests
expect some data transfer to fail, and so the timeout value would
increase overall test execution duration again (not only the connection,
but any socket operation).

Another solution is to allocate a timeout budget specific to the
connection: we can apply a larger timeout only for connections, and once
the connection is established, set back the timeout configured through
opts->timeout_ms; this would allow connection to succeed under heavy CI
load, while keeping timeout reasonable for the rest of the test traffic.

Create a dedicated connect helper that sets a large timeout for the
connect step, tries to connect, and if successful, finally sets the
timeout value to the one configured by the test.

Fixes: 99126abec5e5 ("bpf: selftests: A few improvements to network_helpers.c")
Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Link: https://lore.kernel.org/bpf/20260818-tc_tunnel_flaky-v7-1-aec161e74ef2@bootlin.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/testing/selftests/bpf/network_helpers.c | 46 ++++++++++++++-----
 1 file changed, 35 insertions(+), 11 deletions(-)

diff --git a/tools/testing/selftests/bpf/network_helpers.c b/tools/testing/selftests/bpf/network_helpers.c
index cdf2d7d3ab321..d27dc79475de6 100644
--- a/tools/testing/selftests/bpf/network_helpers.c
+++ b/tools/testing/selftests/bpf/network_helpers.c
@@ -49,6 +49,8 @@
 			errno = __save;					\
 })
 
+#define CONNECT_MIN_TIMEOUT_MS	5000
+
 struct ipv4_packet pkt_v4 = {
 	.eth.h_proto = __bpf_constant_htons(ETH_P_IP),
 	.iph.ihl = 5,
@@ -291,6 +293,37 @@ int client_socket(int family, int type,
 	return -1;
 }
 
+static int connect_with_timeout(int fd, const struct sockaddr_storage *addr,
+				socklen_t addrlen, int timeout_ms)
+{
+	int connect_timeout_ms = MAX(timeout_ms, CONNECT_MIN_TIMEOUT_MS);
+
+	/*
+	 * Override timeout configuration with a larger value for the
+	 * connection
+	 */
+	if (settimeo(fd, connect_timeout_ms)) {
+		log_err("Failed to set connect timeout");
+		return -1;
+	}
+
+	if (connect(fd, (const struct sockaddr *)addr, addrlen)) {
+		log_err("Failed to connect");
+		return -1;
+	}
+
+	/*
+	 * If the timeout configured by the test is different from the
+	 * connect timeout, restore it
+	 */
+	if (timeout_ms != connect_timeout_ms && settimeo(fd, timeout_ms)) {
+		log_err("Failed to set timeout for connected socket");
+		return -1;
+	}
+
+	return 0;
+}
+
 int connect_to_addr(int type, const struct sockaddr_storage *addr, socklen_t addrlen,
 		    const struct network_helper_opts *opts)
 {
@@ -305,8 +338,7 @@ int connect_to_addr(int type, const struct sockaddr_storage *addr, socklen_t add
 		return -1;
 	}
 
-	if (connect(fd, (const struct sockaddr *)addr, addrlen)) {
-		log_err("Failed to connect to server");
+	if (connect_with_timeout(fd, addr, addrlen, opts->timeout_ms)) {
 		save_errno_close(fd);
 		return -1;
 	}
@@ -376,20 +408,12 @@ int connect_fd_to_fd(int client_fd, int server_fd, int timeout_ms)
 	struct sockaddr_storage addr;
 	socklen_t len = sizeof(addr);
 
-	if (settimeo(client_fd, timeout_ms))
-		return -1;
-
 	if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) {
 		log_err("Failed to get server addr");
 		return -1;
 	}
 
-	if (connect(client_fd, (const struct sockaddr *)&addr, len)) {
-		log_err("Failed to connect to server");
-		return -1;
-	}
-
-	return 0;
+	return connect_with_timeout(client_fd, &addr, len, timeout_ms);
 }
 
 int make_sockaddr(int family, const char *addr_str, __u16 port,
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0070/2651] gpu: nova-core: write initial RPCs before booting GSP-RM
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (68 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0069/2651] selftests/bpf: Allocate a larger timeout for connection Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0071/2651] bpf: Roll back stream capacity when allocation fails Greg Kroah-Hartman
                   ` (121 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Timur Tabi, Alexandre Courbot,
	John Hubbard, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Timur Tabi <ttabi@nvidia.com>

[ Upstream commit 6556f7556d622dbbc5c936df9d39c2f33600adfb ]

Make sure that the two setup RPCs, SetSystemInfo and SetRegistry, are in
the command queue before booting GSP-RM.  These message are expected to
already be present, because GSP-RM will process the queue early in boot
but will silently ignore the error if absent.  GSP-RM then continues
booting, but since the registry is not set up, it fails to initialize.

Fixes: 0e42ec83d46a ("gpu: nova-core: gsp: shuffle boot code a bit to keep chipset-specific parts close")
Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Link: https://patch.msgid.link/20260810181243.3036669-1-ttabi@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/nova-core/gsp/boot.rs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/nova-core/gsp/boot.rs b/drivers/gpu/nova-core/gsp/boot.rs
index e03700ee7beaf..874f6e9499f01 100644
--- a/drivers/gpu/nova-core/gsp/boot.rs
+++ b/drivers/gpu/nova-core/gsp/boot.rs
@@ -44,6 +44,11 @@ pub(crate) fn boot(
 
         let gsp_fw = KBox::pin_init(GspFirmware::new(dev, chipset), GFP_KERNEL)?;
 
+        self.cmdq
+            .send_command_no_wait(bar, commands::SetSystemInfo::new(pdev, chipset))?;
+        self.cmdq
+            .send_command_no_wait(bar, commands::SetRegistry::new(ctx.vgpu.state())?)?;
+
         // Perform the chipset-specific boot sequence, and retrieve the unload bundle.
         let unload_bundle = hal.boot(&self, &mut ctx, &gsp_fw)?.or_else(|| {
             dev_warn!(dev, "The GSP won't be able to unload properly on unbind.\n");
@@ -73,11 +78,6 @@ pub(crate) fn boot(
 
         dev_dbg!(pdev, "RISC-V active? {}\n", gsp_falcon.is_riscv_active(),);
 
-        self.cmdq
-            .send_command_no_wait(bar, commands::SetSystemInfo::new(pdev, chipset))?;
-        self.cmdq
-            .send_command_no_wait(bar, commands::SetRegistry::new(ctx.vgpu.state())?)?;
-
         hal.post_boot(&self, ctx, &gsp_fw)?;
 
         // Wait until GSP is fully initialized.
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0071/2651] bpf: Roll back stream capacity when allocation fails
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (69 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0070/2651] gpu: nova-core: write initial RPCs before booting GSP-RM Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0072/2651] bpf: Fix stream capacity leak in staging path Greg Kroah-Hartman
                   ` (120 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Jianlin Shi, Kumar Kartikeya Dwivedi,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Jianlin Shi <shijianlin11@foxmail.com>

[ Upstream commit bd2466ed8fc2ee54408bfe433e75f9f46bfa04f7 ]

bpf_stream_push_str() accounts the string length before allocating a
stream element. If the allocation fails, the length remains charged even
though no element is queued and therefore cannot be released by a reader.
Repeated failures can exhaust the stream capacity permanently until the
BPF program is freed.

Refactor bpf_stream_release_capacity() to take a length so the consume
and release sides are symmetric, and use it to roll back the charge when
creating the stream element fails.

Fixes: 5ab154f1463a ("bpf: Introduce BPF standard streams")
Signed-off-by: Jianlin Shi <shijianlin11@foxmail.com>
Link: https://lore.kernel.org/r/c0ad7b18c59be6695fcc9e4e1200b2f4d5cbbea2.1787492521.git.shijianlin11@foxmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 kernel/bpf/stream.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/kernel/bpf/stream.c b/kernel/bpf/stream.c
index be9ce98e94692..0b157ec4e38eb 100644
--- a/kernel/bpf/stream.c
+++ b/kernel/bpf/stream.c
@@ -68,10 +68,8 @@ static int bpf_stream_consume_capacity(struct bpf_stream *stream, int len)
 	return 0;
 }
 
-static void bpf_stream_release_capacity(struct bpf_stream *stream, struct bpf_stream_elem *elem)
+static void bpf_stream_release_capacity(struct bpf_stream *stream, int len)
 {
-	int len = elem->total_len;
-
 	atomic_sub(len, &stream->capacity);
 }
 
@@ -79,7 +77,14 @@ static int bpf_stream_push_str(struct bpf_stream *stream, const char *str, int l
 {
 	int ret = bpf_stream_consume_capacity(stream, len);
 
-	return ret ?: __bpf_stream_push_str(&stream->log, str, len);
+	if (ret)
+		return ret;
+
+	ret = __bpf_stream_push_str(&stream->log, str, len);
+	if (ret)
+		bpf_stream_release_capacity(stream, len);
+
+	return ret;
 }
 
 static struct bpf_stream *bpf_stream_get(enum bpf_stream_id stream_id, struct bpf_prog_aux *aux)
@@ -188,7 +193,7 @@ static int bpf_stream_read(struct bpf_stream *stream, void __user *buf, int len)
 		if (cont)
 			continue;
 		bpf_stream_backlog_pop(stream);
-		bpf_stream_release_capacity(stream, elem);
+		bpf_stream_release_capacity(stream, elem->total_len);
 		bpf_stream_free_elem(elem);
 	}
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0072/2651] bpf: Fix stream capacity leak in staging path
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (70 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0071/2651] bpf: Roll back stream capacity when allocation fails Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0073/2651] bpf: Return partial progress from bpf_stream_read on fault Greg Kroah-Hartman
                   ` (119 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Jianlin Shi, Kumar Kartikeya Dwivedi,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Jianlin Shi <shijianlin11@foxmail.com>

[ Upstream commit effa6370ba89e7839c9bfeb802d8f05d6843ddf1 ]

bpf_stream_stage_printk() increments ss->len before pushing the
formatted string to the staging log. If element allocation fails,
ss->len remains inflated and bpf_stream_stage_commit() permanently
charges the stream capacity for data that was never queued.

Only account the string length after a successful push, and use
vscnprintf() so the staged length is the truncated payload without
the trailing NUL.

Fixes: 5ab154f1463a ("bpf: Introduce BPF standard streams")
Signed-off-by: Jianlin Shi <shijianlin11@foxmail.com>
Link: https://lore.kernel.org/r/46898fb1ae482b2f8b1da459922b187378dfdc1d.1787492521.git.shijianlin11@foxmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 kernel/bpf/stream.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/kernel/bpf/stream.c b/kernel/bpf/stream.c
index 0b157ec4e38eb..a36fc93389677 100644
--- a/kernel/bpf/stream.c
+++ b/kernel/bpf/stream.c
@@ -316,17 +316,18 @@ int bpf_stream_stage_printk(struct bpf_stream_stage *ss, const char *fmt, ...)
 {
 	struct bpf_bprintf_buffers *buf;
 	va_list args;
-	int ret;
+	int len, ret;
 
 	if (bpf_try_get_buffers(&buf))
 		return -EBUSY;
 
 	va_start(args, fmt);
-	ret = vsnprintf(buf->buf, ARRAY_SIZE(buf->buf), fmt, args);
+	len = vscnprintf(buf->buf, ARRAY_SIZE(buf->buf), fmt, args);
 	va_end(args);
-	ss->len += ret;
 	/* Exclude NULL byte during push. */
-	ret = __bpf_stream_push_str(&ss->log, buf->buf, ret);
+	ret = __bpf_stream_push_str(&ss->log, buf->buf, len);
+	if (!ret)
+		ss->len += len;
 	bpf_put_buffers();
 	return ret;
 }
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0073/2651] bpf: Return partial progress from bpf_stream_read on fault
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (71 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0072/2651] bpf: Fix stream capacity leak in staging path Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0074/2651] bpf: Reject oversized bpf_stream_vprintk output with -E2BIG Greg Kroah-Hartman
                   ` (118 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Jianlin Shi, Kumar Kartikeya Dwivedi,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Jianlin Shi <shijianlin11@foxmail.com>

[ Upstream commit 16790357a50baae10de1f619b608a85145d54bc2 ]

bpf_stream_read() pops and frees stream elements after a successful
copy_to_user(). If a later copy_to_user() fails, it currently restores
only the current element's consumed_len and returns -EFAULT, hiding
bytes already delivered to userspace and making the consumed data
unrecoverable on retry.

On a short copy, keep the successfully copied prefix of the current
element and return the number of bytes copied. Return -EFAULT only when
no bytes were copied for the call.

Fixes: 5ab154f1463a ("bpf: Introduce BPF standard streams")
Signed-off-by: Jianlin Shi <shijianlin11@foxmail.com>
Link: https://lore.kernel.org/r/7668c5838c6beafeea719df8d55319e2fe08cfef.1787492521.git.shijianlin11@foxmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 kernel/bpf/stream.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/kernel/bpf/stream.c b/kernel/bpf/stream.c
index a36fc93389677..09471a6052682 100644
--- a/kernel/bpf/stream.c
+++ b/kernel/bpf/stream.c
@@ -167,6 +167,7 @@ static int bpf_stream_read(struct bpf_stream *stream, void __user *buf, int len)
 
 	while (rem_len) {
 		int pos = len - rem_len;
+		int chunk, n;
 		bool cont;
 
 		node = bpf_stream_backlog_peek(stream);
@@ -180,13 +181,14 @@ static int bpf_stream_read(struct bpf_stream *stream, void __user *buf, int len)
 
 		cons_len = elem->consumed_len;
 		cont = bpf_stream_consume_elem(elem, &rem_len) == false;
-
-		ret = copy_to_user(buf + pos, elem->str + cons_len,
-				   elem->consumed_len - cons_len);
-		/* Restore in case of error. */
-		if (ret) {
-			ret = -EFAULT;
-			elem->consumed_len = cons_len;
+		chunk = elem->consumed_len - cons_len;
+
+		n = copy_to_user(buf + pos, elem->str + cons_len, chunk);
+		if (n) {
+			/* Keep any successfully copied bytes; -EFAULT only if none. */
+			elem->consumed_len -= n;
+			rem_len += n;
+			ret = (len == rem_len) ? -EFAULT : 0;
 			break;
 		}
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0074/2651] bpf: Reject oversized bpf_stream_vprintk output with -E2BIG
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (72 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0073/2651] bpf: Return partial progress from bpf_stream_read on fault Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0075/2651] drm/panthor: Add tracepoint for cache flushing Greg Kroah-Hartman
                   ` (117 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Jianlin Shi, Kumar Kartikeya Dwivedi,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Jianlin Shi <shijianlin11@foxmail.com>

[ Upstream commit 41c0348f6e65c26df4866d5dc96c57b1995fe36c ]

bstr_printf() returns the would-be length excluding the trailing NUL.
When that value is >= MAX_BPRINTF_BUF the message was truncated, but
bpf_stream_push_str() still tried to allocate with the inflated length
and failed with -ENOMEM. The boundary case of exactly MAX_BPRINTF_BUF
could also copy the trailing NUL into the stream element.

Reject such lengths with -E2BIG before charging stream capacity, and
tighten bpf_stream_elem_alloc() to accept only payloads strictly shorter
than the bprintf buffer.

Fixes: 5ab154f1463a ("bpf: Introduce BPF standard streams")
Signed-off-by: Jianlin Shi <shijianlin11@foxmail.com>
Link: https://lore.kernel.org/r/74387ae5024d7e2996095e97211430285095b525.1787492521.git.shijianlin11@foxmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 kernel/bpf/stream.c | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/kernel/bpf/stream.c b/kernel/bpf/stream.c
index 09471a6052682..7a5c3ac8676b9 100644
--- a/kernel/bpf/stream.c
+++ b/kernel/bpf/stream.c
@@ -22,11 +22,11 @@ static struct bpf_stream_elem *bpf_stream_elem_alloc(int len)
 	size_t alloc_size;
 
 	/*
-	 * Length denotes the amount of data to be written as part of stream element,
-	 * thus includes '\0' byte. We're capped by how much bpf_bprintf_buffers can
-	 * accomodate, therefore deny allocations that won't fit into them.
+	 * Length is the payload pushed into the stream, excluding the
+	 * trailing NUL of the bprintf buffer. Reject anything that cannot
+	 * fit without copying that NUL into the stream element.
 	 */
-	if (len < 0 || len > max_len)
+	if (len < 0 || len >= max_len)
 		return NULL;
 
 	alloc_size = offsetof(struct bpf_stream_elem, str[len]);
@@ -245,6 +245,11 @@ __bpf_kfunc int bpf_stream_vprintk(int stream_id, const char *fmt__str, const vo
 		return ret;
 
 	ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt__str, data.bin_args);
+	/* Truncation: reject before capacity charge (not -ENOMEM). */
+	if (ret >= MAX_BPRINTF_BUF) {
+		bpf_bprintf_cleanup(&data);
+		return -E2BIG;
+	}
 	/* Exclude NULL byte during push. */
 	ret = bpf_stream_push_str(stream, data.buf, ret);
 	bpf_bprintf_cleanup(&data);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0075/2651] drm/panthor: Add tracepoint for cache flushing
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (73 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0074/2651] bpf: Reject oversized bpf_stream_vprintk output with -E2BIG Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0076/2651] drm/panthor: Revisit reqs_lock handling in flush/reset paths Greg Kroah-Hartman
                   ` (116 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Nicolas Frattaroli, Liviu Dudau,
	Steven Price, Boris Brezillon, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

[ Upstream commit 3fc4721629c40bb5f7bc7696875a9df633e6a35a ]

Add a new event tracepoint: gpu_cache_flush to be emitted after a GPU
cache flush completes, with duration and return status arguments.

This allows debugging the duration a flush takes irrespective of initial
function entry lock contention, and communicates information about
whether the flush timed out or errored out in other ways, and which
caches were flushed.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20260812-panthor-cache-flush-fix-v4-1-751e32901898@collabora.com
Stable-dep-of: 4fd08b3d1da7 ("drm/panthor: Revisit reqs_lock handling in flush/reset paths")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/panthor/panthor_gpu.c   | 26 ++++++++++++++++-
 drivers/gpu/drm/panthor/panthor_trace.h | 38 +++++++++++++++++++++++++
 2 files changed, 63 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panthor/panthor_gpu.c b/drivers/gpu/drm/panthor/panthor_gpu.c
index c013d6bf9a599..7088371c6d648 100644
--- a/drivers/gpu/drm/panthor/panthor_gpu.c
+++ b/drivers/gpu/drm/panthor/panthor_gpu.c
@@ -317,6 +317,21 @@ int panthor_gpu_l2_power_on(struct panthor_device *ptdev)
 	return panthor_gpu_power_on(ptdev, L2, 1, 20000);
 }
 
+static inline void panthor_gpu_emit_flush_caches_tp(struct panthor_device *ptdev,
+						    u64 start, u32 l2, u32 lsc,
+						    u32 other, int ret)
+{
+	u32 duration;
+
+	if (!tracepoint_enabled(gpu_cache_flush) || !start)
+		return;
+
+	if (check_sub_overflow(ktime_get_ns(), start, &duration))
+		duration = U32_MAX;
+
+	trace_gpu_cache_flush(ptdev->base.dev, l2, lsc, other, duration, ret);
+}
+
 /**
  * panthor_gpu_flush_caches() - Flush caches
  * @ptdev: Device.
@@ -331,12 +346,17 @@ int panthor_gpu_flush_caches(struct panthor_device *ptdev,
 {
 	struct panthor_gpu *gpu = ptdev->gpu;
 	unsigned long flags;
+	u64 start = 0;
 	int ret = 0;
 
 	/* Serialize cache flush operations. */
 	guard(mutex)(&ptdev->gpu->cache_flush_lock);
 
 	spin_lock_irqsave(&ptdev->gpu->reqs_lock, flags);
+
+	if (tracepoint_enabled(gpu_cache_flush))
+		start = ktime_get_ns();
+
 	if (!(ptdev->gpu->pending_reqs & GPU_IRQ_CLEAN_CACHES_COMPLETED)) {
 		ptdev->gpu->pending_reqs |= GPU_IRQ_CLEAN_CACHES_COMPLETED;
 		gpu_write(gpu->iomem, GPU_CMD, GPU_FLUSH_CACHES(l2, lsc, other));
@@ -345,8 +365,10 @@ int panthor_gpu_flush_caches(struct panthor_device *ptdev,
 	}
 	spin_unlock_irqrestore(&ptdev->gpu->reqs_lock, flags);
 
-	if (ret)
+	if (ret) {
+		panthor_gpu_emit_flush_caches_tp(ptdev, start, l2, lsc, other, ret);
 		return ret;
+	}
 
 	if (!wait_event_timeout(ptdev->gpu->reqs_acked,
 				!(ptdev->gpu->pending_reqs & GPU_IRQ_CLEAN_CACHES_COMPLETED),
@@ -360,6 +382,8 @@ int panthor_gpu_flush_caches(struct panthor_device *ptdev,
 		spin_unlock_irqrestore(&ptdev->gpu->reqs_lock, flags);
 	}
 
+	panthor_gpu_emit_flush_caches_tp(ptdev, start, l2, lsc, other, ret);
+
 	if (ret) {
 		panthor_device_schedule_reset(ptdev);
 		drm_err(&ptdev->base, "Flush caches timeout");
diff --git a/drivers/gpu/drm/panthor/panthor_trace.h b/drivers/gpu/drm/panthor/panthor_trace.h
index 6ffeb4fe65992..bd8652549ab46 100644
--- a/drivers/gpu/drm/panthor/panthor_trace.h
+++ b/drivers/gpu/drm/panthor/panthor_trace.h
@@ -76,6 +76,44 @@ TRACE_EVENT(gpu_job_irq,
 		  __entry->events, __entry->duration_ns)
 );
 
+/**
+ * gpu_cache_flush - emitted after cache flush completes
+ * @dev: pointer to the &struct device, for printing the device name
+ * @l2: "l2" flush flags
+ * @lsc: "lsc" flush flags
+ * @other: "other" flush flags
+ * @duration_ns: how long the cache flush operation took, in nanoseconds
+ * @ret: return status, 0 == success, negative errno on error
+ *
+ * Begins measuring after any initial lock contention around the locks needed
+ * for flushing caches, but before the actual cache flush is requested. Stops
+ * measuring and is emitted after flush operation is over.
+ */
+TRACE_EVENT(gpu_cache_flush,
+	    TP_PROTO(const struct device *dev, u32 l2, u32 lsc, u32 other,
+		     u32 duration_ns, int ret),
+	    TP_ARGS(dev, l2, lsc, other, duration_ns, ret),
+	    TP_STRUCT__entry(
+		    __string(dev_name, dev_name(dev))
+		    __field(u32, l2)
+		    __field(u32, lsc)
+		    __field(u32, other)
+		    __field(u32, duration_ns)
+		    __field(int, ret)
+	    ),
+	    TP_fast_assign(
+		    __assign_str(dev_name);
+		    __entry->l2          = l2;
+		    __entry->lsc         = lsc;
+		    __entry->other       = other;
+		    __entry->duration_ns = duration_ns;
+		    __entry->ret         = ret;
+	    ),
+	    TP_printk("%s: l2=0x%x lsc=0x%x other=0x%x duration_ns=%u ret=%d",
+		      __get_str(dev_name), __entry->l2, __entry->lsc,
+		      __entry->other, __entry->duration_ns, __entry->ret)
+);
+
 #endif /* __PANTHOR_TRACE_H__ */
 
 #undef TRACE_INCLUDE_PATH
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0076/2651] drm/panthor: Revisit reqs_lock handling in flush/reset paths
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (74 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0075/2651] drm/panthor: Add tracepoint for cache flushing Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0077/2651] drm/panthor: Take reqs_lock in soft_reset for clearing pending_reqs Greg Kroah-Hartman
                   ` (115 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Boris Brezillon, Nicolas Frattaroli,
	Liviu Dudau, Steven Price, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

[ Upstream commit 4fd08b3d1da78e33cb5939f0086e61f9d660cd6c ]

panthor_gpu_flush_caches() and panthor_gpu_soft_reset() acquire their
reqs_lock spinlock with the IRQ-disabling variants of the spinlocking
functions. This isn't necessary, as the lock is never taken from an
atomic context, as Panthor uses threaded interrupt handlers. The result
of this overly strict locking is that IRQs may be disabled more
frequently and for longer than they should be, resulting in increased
system latency.

Switch the locking to use non-IRQ-disabling scoped_guard statements for
locking. The wait_event_timeout read of pending_reqs outside of the
spinlock is fine as wait_event_timeout is a memory barrier according to
the Linux Memory Model.

Fixes: 5cd894e258c4 ("drm/panthor: Add the GPU logical block")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20260812-panthor-cache-flush-fix-v4-2-751e32901898@collabora.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/panthor/panthor_gpu.c | 72 ++++++++++++---------------
 1 file changed, 33 insertions(+), 39 deletions(-)

diff --git a/drivers/gpu/drm/panthor/panthor_gpu.c b/drivers/gpu/drm/panthor/panthor_gpu.c
index 7088371c6d648..110ca6cd3d098 100644
--- a/drivers/gpu/drm/panthor/panthor_gpu.c
+++ b/drivers/gpu/drm/panthor/panthor_gpu.c
@@ -345,41 +345,36 @@ int panthor_gpu_flush_caches(struct panthor_device *ptdev,
 			     u32 l2, u32 lsc, u32 other)
 {
 	struct panthor_gpu *gpu = ptdev->gpu;
-	unsigned long flags;
 	u64 start = 0;
 	int ret = 0;
 
 	/* Serialize cache flush operations. */
 	guard(mutex)(&ptdev->gpu->cache_flush_lock);
 
-	spin_lock_irqsave(&ptdev->gpu->reqs_lock, flags);
-
-	if (tracepoint_enabled(gpu_cache_flush))
-		start = ktime_get_ns();
-
-	if (!(ptdev->gpu->pending_reqs & GPU_IRQ_CLEAN_CACHES_COMPLETED)) {
-		ptdev->gpu->pending_reqs |= GPU_IRQ_CLEAN_CACHES_COMPLETED;
-		gpu_write(gpu->iomem, GPU_CMD, GPU_FLUSH_CACHES(l2, lsc, other));
-	} else {
-		ret = -EIO;
-	}
-	spin_unlock_irqrestore(&ptdev->gpu->reqs_lock, flags);
-
-	if (ret) {
-		panthor_gpu_emit_flush_caches_tp(ptdev, start, l2, lsc, other, ret);
-		return ret;
+	scoped_guard(spinlock, &ptdev->gpu->reqs_lock) {
+		if (tracepoint_enabled(gpu_cache_flush))
+			start = ktime_get_ns();
+
+		if (!(ptdev->gpu->pending_reqs & GPU_IRQ_CLEAN_CACHES_COMPLETED)) {
+			ptdev->gpu->pending_reqs |= GPU_IRQ_CLEAN_CACHES_COMPLETED;
+			gpu_write(gpu->iomem, GPU_CMD, GPU_FLUSH_CACHES(l2, lsc, other));
+		} else {
+			panthor_gpu_emit_flush_caches_tp(ptdev, start, l2, lsc,
+							 other, -EIO);
+			return -EIO;
+		}
 	}
 
 	if (!wait_event_timeout(ptdev->gpu->reqs_acked,
 				!(ptdev->gpu->pending_reqs & GPU_IRQ_CLEAN_CACHES_COMPLETED),
 				msecs_to_jiffies(100))) {
-		spin_lock_irqsave(&ptdev->gpu->reqs_lock, flags);
-		if ((ptdev->gpu->pending_reqs & GPU_IRQ_CLEAN_CACHES_COMPLETED) != 0 &&
-		    !(gpu_read(gpu->irq.iomem, INT_RAWSTAT) & GPU_IRQ_CLEAN_CACHES_COMPLETED))
-			ret = -ETIMEDOUT;
-		else
-			ptdev->gpu->pending_reqs &= ~GPU_IRQ_CLEAN_CACHES_COMPLETED;
-		spin_unlock_irqrestore(&ptdev->gpu->reqs_lock, flags);
+		scoped_guard(spinlock, &ptdev->gpu->reqs_lock) {
+			if ((ptdev->gpu->pending_reqs & GPU_IRQ_CLEAN_CACHES_COMPLETED) != 0 &&
+			    !(gpu_read(gpu->irq.iomem, INT_RAWSTAT) & GPU_IRQ_CLEAN_CACHES_COMPLETED))
+				ret = -ETIMEDOUT;
+			else
+				ptdev->gpu->pending_reqs &= ~GPU_IRQ_CLEAN_CACHES_COMPLETED;
+		}
 	}
 
 	panthor_gpu_emit_flush_caches_tp(ptdev, start, l2, lsc, other, ret);
@@ -402,27 +397,26 @@ int panthor_gpu_soft_reset(struct panthor_device *ptdev)
 {
 	struct panthor_gpu *gpu = ptdev->gpu;
 	bool timedout = false;
-	unsigned long flags;
 
-	spin_lock_irqsave(&ptdev->gpu->reqs_lock, flags);
-	if (!drm_WARN_ON(&ptdev->base,
-			 ptdev->gpu->pending_reqs & GPU_IRQ_RESET_COMPLETED)) {
-		ptdev->gpu->pending_reqs |= GPU_IRQ_RESET_COMPLETED;
-		gpu_write(gpu->irq.iomem, INT_CLEAR, GPU_IRQ_RESET_COMPLETED);
-		gpu_write(gpu->iomem, GPU_CMD, GPU_SOFT_RESET);
+	scoped_guard(spinlock, &ptdev->gpu->reqs_lock) {
+		if (!drm_WARN_ON(&ptdev->base,
+				ptdev->gpu->pending_reqs & GPU_IRQ_RESET_COMPLETED)) {
+			ptdev->gpu->pending_reqs |= GPU_IRQ_RESET_COMPLETED;
+			gpu_write(gpu->irq.iomem, INT_CLEAR, GPU_IRQ_RESET_COMPLETED);
+			gpu_write(gpu->iomem, GPU_CMD, GPU_SOFT_RESET);
+		}
 	}
-	spin_unlock_irqrestore(&ptdev->gpu->reqs_lock, flags);
 
 	if (!wait_event_timeout(ptdev->gpu->reqs_acked,
 				!(ptdev->gpu->pending_reqs & GPU_IRQ_RESET_COMPLETED),
 				msecs_to_jiffies(100))) {
-		spin_lock_irqsave(&ptdev->gpu->reqs_lock, flags);
-		if ((ptdev->gpu->pending_reqs & GPU_IRQ_RESET_COMPLETED) != 0 &&
-		    !(gpu_read(gpu->irq.iomem, INT_RAWSTAT) & GPU_IRQ_RESET_COMPLETED))
-			timedout = true;
-		else
-			ptdev->gpu->pending_reqs &= ~GPU_IRQ_RESET_COMPLETED;
-		spin_unlock_irqrestore(&ptdev->gpu->reqs_lock, flags);
+		scoped_guard(spinlock, &ptdev->gpu->reqs_lock) {
+			if ((ptdev->gpu->pending_reqs & GPU_IRQ_RESET_COMPLETED) != 0 &&
+			    !(gpu_read(gpu->irq.iomem, INT_RAWSTAT) & GPU_IRQ_RESET_COMPLETED))
+				timedout = true;
+			else
+				ptdev->gpu->pending_reqs &= ~GPU_IRQ_RESET_COMPLETED;
+		}
 	}
 
 	if (timedout) {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0077/2651] drm/panthor: Take reqs_lock in soft_reset for clearing pending_reqs
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (75 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0076/2651] drm/panthor: Revisit reqs_lock handling in flush/reset paths Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0078/2651] bpf: Reject oversized stream read buffers Greg Kroah-Hartman
                   ` (114 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Boris Brezillon, Nicolas Frattaroli,
	Liviu Dudau, Steven Price, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

[ Upstream commit 2d354adc5bbabe2e818be09bbe13f6bfde4a30c7 ]

panthor_gpu_soft_reset() sets pending_reqs to 0 without taking the
requisite reqs_lock.

Fix this by taking the lock for the duration of the modification.

Fixes: 5cd894e258c4 ("drm/panthor: Add the GPU logical block")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20260812-panthor-cache-flush-fix-v4-3-751e32901898@collabora.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/panthor/panthor_gpu.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panthor/panthor_gpu.c b/drivers/gpu/drm/panthor/panthor_gpu.c
index 110ca6cd3d098..aa903fda20a59 100644
--- a/drivers/gpu/drm/panthor/panthor_gpu.c
+++ b/drivers/gpu/drm/panthor/panthor_gpu.c
@@ -424,7 +424,10 @@ int panthor_gpu_soft_reset(struct panthor_device *ptdev)
 		return -ETIMEDOUT;
 	}
 
-	ptdev->gpu->pending_reqs = 0;
+	scoped_guard(spinlock, &ptdev->gpu->reqs_lock) {
+		ptdev->gpu->pending_reqs = 0;
+	}
+
 	return 0;
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0078/2651] bpf: Reject oversized stream read buffers
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (76 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0077/2651] drm/panthor: Take reqs_lock in soft_reset for clearing pending_reqs Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:21 ` [PATCH 7.3 0079/2651] libbpf: Fix usdt attach failure when nop10 crosses page boundary Greg Kroah-Hartman
                   ` (113 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Kumar Kartikeya Dwivedi,
	Daniel Borkmann, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Kumar Kartikeya Dwivedi <memxor@gmail.com>

[ Upstream commit ea0b60fae724aa1147d4a07eda5131d3a9a9977e ]

BPF_PROG_STREAM_READ_BY_FD exposes stream_buf_len as a u32, but the
internal stream reader accepts an int. Values above INT_MAX therefore
become negative before bpf_stream_read(), producing negative consumption
lengths. The generic usercopy size check prevents the oversized copy, but
emits a warning and reports EFAULT for an unchecked argument.

Change bpf_prog_stream_read() to accept u32 and reject values that the
signed reader cannot represent.

Fixes: 5ab154f1463a ("bpf: Introduce BPF standard streams")
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20260823193202.2389715-2-memxor@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 include/linux/bpf.h | 2 +-
 kernel/bpf/stream.c | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/linux/bpf.h b/include/linux/bpf.h
index 0ecb9418dfbd6..5ca24186c6503 100644
--- a/include/linux/bpf.h
+++ b/include/linux/bpf.h
@@ -4140,7 +4140,7 @@ void bpf_put_buffers(void);
 
 void bpf_prog_stream_init(struct bpf_prog *prog);
 void bpf_prog_stream_free(struct bpf_prog *prog);
-int bpf_prog_stream_read(struct bpf_prog *prog, enum bpf_stream_id stream_id, void __user *buf, int len);
+int bpf_prog_stream_read(struct bpf_prog *prog, enum bpf_stream_id stream_id, void __user *buf, u32 len);
 void bpf_stream_stage_init(struct bpf_stream_stage *ss);
 void bpf_stream_stage_free(struct bpf_stream_stage *ss);
 __printf(2, 3)
diff --git a/kernel/bpf/stream.c b/kernel/bpf/stream.c
index 7a5c3ac8676b9..2b80a0599865e 100644
--- a/kernel/bpf/stream.c
+++ b/kernel/bpf/stream.c
@@ -203,13 +203,15 @@ static int bpf_stream_read(struct bpf_stream *stream, void __user *buf, int len)
 	return ret ? ret : len - rem_len;
 }
 
-int bpf_prog_stream_read(struct bpf_prog *prog, enum bpf_stream_id stream_id, void __user *buf, int len)
+int bpf_prog_stream_read(struct bpf_prog *prog, enum bpf_stream_id stream_id, void __user *buf, u32 len)
 {
 	struct bpf_stream *stream;
 
 	stream = bpf_stream_get(stream_id, prog->aux);
 	if (!stream)
 		return -ENOENT;
+	if (len > INT_MAX)
+		return -EINVAL;
 	return bpf_stream_read(stream, buf, len);
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0079/2651] libbpf: Fix usdt attach failure when nop10 crosses page boundary
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (77 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0078/2651] bpf: Reject oversized stream read buffers Greg Kroah-Hartman
@ 2026-11-18 14:21 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0080/2651] drm/amd/pm: Remove unused functions in smu_v15_0 Greg Kroah-Hartman
                   ` (112 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:21 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Jiayuan Chen, Andrii Nakryiko,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Jiayuan Chen <jiayuan.chen@linux.dev>

[ Upstream commit 8b94878b2572f0f41e6002d0fe2cc4086ddc2a47 ]

The kernel refuses to attach to a nop10 that crosses a page boundary,
since it can't be atomically rewritten:

	/* can_optimize(), arch/x86/kernel/uprobes.c */
	/* We can't do cross page atomic writes yet. */
	return PAGE_SIZE - (vaddr & ~PAGE_MASK) >= OPT_INSN_SIZE;

Whether the nop10 crosses a page is purely up to the binary layout, so
this does happen in practice. libbpf doesn't check for it and blindly
shifts the uprobe onto the nop10, and the attach then fails with
-ENOTSUPP. Just keep the uprobe on the preceding 1-byte nop in that
case, it works everywhere as a regular int3 uprobe.

Fixes: ee2862439e5c ("libbpf: Change has_nop_combo to work on top of nop10")
Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260825150444.31603-1-jiayuan.chen@linux.dev
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/lib/bpf/usdt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/lib/bpf/usdt.c b/tools/lib/bpf/usdt.c
index 2e56e3ab5b6cc..ee9d1b614883c 100644
--- a/tools/lib/bpf/usdt.c
+++ b/tools/lib/bpf/usdt.c
@@ -608,8 +608,12 @@ static bool has_nop_combo(int fd, long off)
 	unsigned char nop_combo[11] = {
 		0x90, 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00,
 	};
+	long page_sz = getpagesize();
 	unsigned char buf[11];
 
+	/* the kernel can't attach to a nop10 that crosses a page boundary */
+	if ((off + 1) % page_sz + 10 > page_sz)
+		return false;
 	if (pread(fd, buf, 11, off) != 11)
 		return false;
 	return memcmp(buf, nop_combo, 11) == 0;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0080/2651] drm/amd/pm: Remove unused functions in smu_v15_0
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (78 preceding siblings ...)
  2026-11-18 14:21 ` [PATCH 7.3 0079/2651] libbpf: Fix usdt attach failure when nop10 crosses page boundary Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0081/2651] gpio: pcf857x: implement get_direction() Greg Kroah-Hartman
                   ` (111 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Dan Carpenter, Lijo Lazar,
	Alex Deucher, Christian König, Asad Kamal,
	Srinivasan Shanmugam, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>

[ Upstream commit f65ae77aac72caed6d99c7d73f16b71cebbc6753 ]

smu_v15_0_load_microcode() and smu_v15_0_set_single_dpm_table() are not
called anywhere; the latter is a carry-over from a previous version. The
static helpers smu_v15_0_get_dpm_freq_by_index(),
smu_v15_0_get_dpm_level_count() and smu_v15_0_get_fine_grained_status()
were only called from smu_v15_0_set_single_dpm_table(), so remove those
as well. Remove all functions along with their declarations from the
header.

Fixes: c7fc0f372374 ("drm/amd: Enable SMU 15_0_0 support")
Fixes: f7bee962d92a ("drm/amd/pm: Update dpm table structs for smu_v15_0")
Reported-by: Dan Carpenter <error27@gmail.com>
Suggested-by: Lijo Lazar <lijo.lazar@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/amd/pm/swsmu/inc/smu_v15_0.h  |   6 -
 .../gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c    | 166 ------------------
 2 files changed, 172 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v15_0.h b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v15_0.h
index ec96dc7754859..0c97bee2c4bbc 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v15_0.h
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v15_0.h
@@ -113,8 +113,6 @@ int smu_v15_0_init_microcode(struct smu_context *smu);
 
 void smu_v15_0_fini_microcode(struct smu_context *smu);
 
-int smu_v15_0_load_microcode(struct smu_context *smu);
-
 int smu_v15_0_init_smc_tables(struct smu_context *smu);
 
 int smu_v15_0_fini_smc_tables(struct smu_context *smu);
@@ -183,10 +181,6 @@ int smu_v15_0_set_performance_level(struct smu_context *smu,
 int smu_v15_0_set_power_source(struct smu_context *smu,
 			       enum smu_power_src_type power_src);
 
-int smu_v15_0_set_single_dpm_table(struct smu_context *smu,
-				   enum smu_clk_type clk_type,
-				   struct smu_dpm_table *single_dpm_table);
-
 int smu_v15_0_gfx_ulv_control(struct smu_context *smu,
 			      bool enablement);
 
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
index 4c0236196de4f..2269703869f9e 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
@@ -106,44 +106,6 @@ void smu_v15_0_fini_microcode(struct smu_context *smu)
 	adev->pm.fw_version = 0;
 }
 
-int smu_v15_0_load_microcode(struct smu_context *smu)
-{
-	struct amdgpu_device *adev = smu->adev;
-	const uint32_t *src;
-	const struct smc_firmware_header_v1_0 *hdr;
-	uint32_t addr_start = MP1_SRAM;
-	uint32_t i;
-	uint32_t smc_fw_size;
-	uint32_t mp1_fw_flags;
-
-	hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
-	src = (const uint32_t *)(adev->pm.fw->data +
-				 le32_to_cpu(hdr->header.ucode_array_offset_bytes));
-	smc_fw_size = hdr->header.ucode_size_bytes;
-
-	for (i = 1; i < smc_fw_size/4 - 1; i++) {
-		WREG32_PCIE(addr_start, src[i]);
-		addr_start += 4;
-	}
-
-
-	for (i = 0; i < adev->usec_timeout; i++) {
-		if (smu->is_apu)
-			mp1_fw_flags = RREG32_PCIE(MP1_Public |
-						   (smnMP1_FIRMWARE_FLAGS & 0xffffffff));
-
-		if ((mp1_fw_flags & MP1_CRU1_MP1_FIRMWARE_FLAGS__INTERRUPTS_ENABLED_MASK) >>
-		    MP1_CRU1_MP1_FIRMWARE_FLAGS__INTERRUPTS_ENABLED__SHIFT)
-			break;
-		udelay(1);
-	}
-
-	if (i == adev->usec_timeout)
-		return -ETIME;
-
-	return 0;
-}
-
 int smu_v15_0_init_pptable_microcode(struct smu_context *smu)
 {
 	struct amdgpu_device *adev = smu->adev;
@@ -1161,134 +1123,6 @@ int smu_v15_0_set_power_source(struct smu_context *smu,
 					       NULL);
 }
 
-static int smu_v15_0_get_dpm_freq_by_index(struct smu_context *smu,
-					   enum smu_clk_type clk_type,
-					   uint16_t level,
-					   uint32_t *value)
-{
-	int ret = 0, clk_id = 0;
-	uint32_t param;
-
-	if (!value)
-		return -EINVAL;
-
-	if (!smu_cmn_clk_dpm_is_enabled(smu, clk_type))
-		return 0;
-
-	clk_id = smu_cmn_to_asic_specific_index(smu,
-						CMN2ASIC_MAPPING_CLK,
-						clk_type);
-	if (clk_id < 0)
-		return clk_id;
-
-	param = (uint32_t)(((clk_id & 0xffff) << 16) | (level & 0xffff));
-
-	ret = smu_cmn_send_smc_msg_with_param(smu,
-					      SMU_MSG_GetDpmFreqByIndex,
-					      param,
-					      value);
-	if (ret)
-		return ret;
-
-	*value = *value & 0x7fffffff;
-
-	return ret;
-}
-
-static int smu_v15_0_get_dpm_level_count(struct smu_context *smu,
-					 enum smu_clk_type clk_type,
-					 uint32_t *value)
-{
-	int ret;
-
-	ret = smu_v15_0_get_dpm_freq_by_index(smu, clk_type, 0xff, value);
-
-	return ret;
-}
-
-static int smu_v15_0_get_fine_grained_status(struct smu_context *smu,
-					     enum smu_clk_type clk_type,
-					     bool *is_fine_grained_dpm)
-{
-	int ret = 0, clk_id = 0;
-	uint32_t param;
-	uint32_t value;
-
-	if (!is_fine_grained_dpm)
-		return -EINVAL;
-
-	if (!smu_cmn_clk_dpm_is_enabled(smu, clk_type))
-		return 0;
-
-	clk_id = smu_cmn_to_asic_specific_index(smu,
-						CMN2ASIC_MAPPING_CLK,
-						clk_type);
-	if (clk_id < 0)
-		return clk_id;
-
-	param = (uint32_t)(((clk_id & 0xffff) << 16) | 0xff);
-
-	ret = smu_cmn_send_smc_msg_with_param(smu,
-					      SMU_MSG_GetDpmFreqByIndex,
-					      param,
-					      &value);
-	if (ret)
-		return ret;
-
-	/*
-	 * BIT31:  1 - Fine grained DPM, 0 - Dicrete DPM
-	 * now, we un-support it
-	 */
-	*is_fine_grained_dpm = value & 0x80000000;
-
-	return 0;
-}
-
-int smu_v15_0_set_single_dpm_table(struct smu_context *smu,
-				   enum smu_clk_type clk_type,
-				   struct smu_dpm_table *single_dpm_table)
-{
-	int ret = 0;
-	uint32_t clk;
-	bool is_fine_grained;
-	int i;
-
-	ret = smu_v15_0_get_dpm_level_count(smu,
-					    clk_type,
-					    &single_dpm_table->count);
-	if (ret) {
-		dev_err(smu->adev->dev, "[%s] failed to get dpm levels!\n", __func__);
-		return ret;
-	}
-
-	ret = smu_v15_0_get_fine_grained_status(smu,
-						clk_type,
-						&is_fine_grained);
-	if (ret) {
-		dev_err(smu->adev->dev, "[%s] failed to get fine grained status!\n", __func__);
-		return ret;
-	}
-
-	if (is_fine_grained)
-		single_dpm_table->flags |= SMU_DPM_TABLE_FINE_GRAINED;
-
-	for (i = 0; i < single_dpm_table->count; i++) {
-		ret = smu_v15_0_get_dpm_freq_by_index(smu,
-						      clk_type,
-						      i,
-						      &clk);
-		if (ret) {
-			dev_err(smu->adev->dev, "[%s] failed to get dpm freq by index!\n", __func__);
-			return ret;
-		}
-
-		single_dpm_table->dpm_levels[i].value = clk;
-		single_dpm_table->dpm_levels[i].enabled = true;
-	}
-
-	return 0;
-}
-
 int smu_v15_0_set_vcn_enable(struct smu_context *smu,
 			      bool enable,
 			      int inst)
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0081/2651] gpio: pcf857x: implement get_direction()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (79 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0080/2651] drm/amd/pm: Remove unused functions in smu_v15_0 Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0082/2651] drm/vkms: Fix limited-range YCbCr to RGB conversion scaling Greg Kroah-Hartman
                   ` (110 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Tapio Reijonen, Linus Walleij,
	Bartosz Golaszewski, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Tapio Reijonen <tapio.reijonen@vaisala.com>

[ Upstream commit ed14364ae8c310cc3f3f649ffcbc7f82befe1579 ]

The GPIO core warns (and taints the kernel) when a gpiochip lacks
.get_direction() and a consumer queries a line's direction, for example
via /sys/kernel/debug/gpio. pcf857x provided direction_input/output but
no get_direction.

These quasi-bidirectional expanders cannot report direction in hardware,
and the 'out' software latch alone is ambiguous - a released (input)
line and an output driven high both read back as a set bit. Track the
direction explicitly in a 'dir' latch updated by the direction_input(),
direction_output() and set_multiple() paths, and return it from
get_direction(). Initialise it from the same reset state as 'out':
released lines are inputs, lines flagged in the power-on latch are
driven-low outputs.

Fixes: 15fae37d9f5f ("gpiolib: pcf857x i2c gpio expander support")
Signed-off-by: Tapio Reijonen <tapio.reijonen@vaisala.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260825-b4-gpio-pcf857x-get-direction-v1-1-de15996ae354@vaisala.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpio/gpio-pcf857x.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-pcf857x.c b/drivers/gpio/gpio-pcf857x.c
index c1f5e10a3c202..1ba6a09542f3c 100644
--- a/drivers/gpio/gpio-pcf857x.c
+++ b/drivers/gpio/gpio-pcf857x.c
@@ -71,8 +71,9 @@ MODULE_DEVICE_TABLE(of, pcf857x_of_table);
 struct pcf857x {
 	struct gpio_chip	chip;
 	struct i2c_client	*client;
-	struct mutex		lock;		/* protect 'out' */
+	struct mutex		lock;		/* protect 'out' and 'dir' */
 	unsigned int		out;		/* software latch */
+	unsigned int		dir;		/* direction latch (1 = input) */
 	unsigned int		status;		/* current status */
 	unsigned int		irq_enabled;	/* enabled irqs */
 
@@ -126,12 +127,21 @@ static int pcf857x_input(struct gpio_chip *chip, unsigned int offset)
 
 	mutex_lock(&gpio->lock);
 	gpio->out |= (1 << offset);
+	gpio->dir |= (1 << offset);
 	status = gpio->write(gpio->client, gpio->out);
 	mutex_unlock(&gpio->lock);
 
 	return status;
 }
 
+static int pcf857x_get_direction(struct gpio_chip *chip, unsigned int offset)
+{
+	struct pcf857x *gpio = gpiochip_get_data(chip);
+
+	return (gpio->dir & (1 << offset)) ? GPIO_LINE_DIRECTION_IN
+					   : GPIO_LINE_DIRECTION_OUT;
+}
+
 static int pcf857x_get(struct gpio_chip *chip, unsigned int offset)
 {
 	struct pcf857x *gpio = gpiochip_get_data(chip);
@@ -167,6 +177,7 @@ static int pcf857x_output(struct gpio_chip *chip, unsigned int offset, int value
 		gpio->out |= bit;
 	else
 		gpio->out &= ~bit;
+	gpio->dir &= ~bit;
 	status = gpio->write(gpio->client, gpio->out);
 	mutex_unlock(&gpio->lock);
 
@@ -187,6 +198,7 @@ static int pcf857x_set_multiple(struct gpio_chip *chip, unsigned long *mask,
 	mutex_lock(&gpio->lock);
 	gpio->out &= ~*mask;
 	gpio->out |= *bits & *mask;
+	gpio->dir &= ~*mask;
 	status = gpio->write(gpio->client, gpio->out);
 	mutex_unlock(&gpio->lock);
 
@@ -301,6 +313,7 @@ static int pcf857x_probe(struct i2c_client *client)
 	gpio->chip.set_multiple		= pcf857x_set_multiple;
 	gpio->chip.direction_input	= pcf857x_input;
 	gpio->chip.direction_output	= pcf857x_output;
+	gpio->chip.get_direction	= pcf857x_get_direction;
 	gpio->chip.ngpio		= (uintptr_t)i2c_get_match_data(client);
 
 	reset_gpio = devm_gpiod_get_optional(&client->dev, "reset", GPIOD_OUT_HIGH);
@@ -396,6 +409,7 @@ static int pcf857x_probe(struct i2c_client *client)
 	 * reset state.  Otherwise it flags pins to be driven low.
 	 */
 	gpio->out = ~n_latch;
+	gpio->dir = ~n_latch;
 	gpio->status = gpio->read(gpio->client);
 
 	/* Enable irqchip if we have an interrupt */
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0082/2651] drm/vkms: Fix limited-range YCbCr to RGB conversion scaling
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (80 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0081/2651] gpio: pcf857x: implement get_direction() Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0083/2651] bpftool: Fix spurious batch file read error Greg Kroah-Hartman
                   ` (109 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Harry Wentland, Alex Hung,
	Robert Mader, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Harry Wentland <harry.wentland@amd.com>

[ Upstream commit 8af5fccd9e8af443efd6f0fec5ba56366f57309a ]

The limited-/studio-range YCbCr to RGB conversion matrices were generated
with colour.matrix_YCbCr(is_legal=True, bits=8), which normalises the
narrow range by 2^bits (256 for 8-bit) rather than by the full-range
maximum 2^bits - 1 (255). As a result the luma scale was 256/219 and the
chroma scale 256/224 instead of the correct 255/219 and 255/224.

This over-scales every limited-range conversion by a factor of 256/255,
producing an error of up to ~3/255 (8-bit) and causing IGT tests that
compare software-computed surfaces against VKMS-processed ones to fail.

Recompute the three limited-range matrices from first principles rather
than relying on colour's is_legal scaling:

 1. Start from the standard ITU-R YCbCr -> RGB relations for the luma
    weights Kr, Kb (Kg = 1 - Kr - Kb) of each encoding (BT.601, BT.709
    and BT.2020 non-constant luminance). These are the same relations
    that produce the existing full-range matrices.
 2. Expand the studio input range to full range relative to a full-range
    maximum of 2^n - 1: the luma coefficient by 255/(235 - 16) and the
    chroma coefficients by 255/(240 - 16). This matches the DRM UAPI
    definition and IGT's igt_ycbcr_to_rgb_matrix().
 3. Convert each coefficient to S31.32 fixed point (round(coeff * 2^32)).

Update the limited-range reference values in the vkms-format KUnit test
accordingly. Provide a python script to show how the kunit test value
are calculated.

Fixes: fe22d21e9342 ("drm/vkms: Add YUV support")
Assisted-by: Copilot:claude-opus-4.8
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Tested-by: Robert Mader <robert.mader@collabora.com>
Link: https://patch.msgid.link/20260814211816.1219597-3-harry.wentland@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../gpu/drm/vkms/tests/gen_yuv_conversion.py  | 87 +++++++++++++++++++
 drivers/gpu/drm/vkms/tests/vkms_format_test.c | 38 ++++----
 drivers/gpu/drm/vkms/vkms_formats.c           | 55 ++++++++----
 3 files changed, 144 insertions(+), 36 deletions(-)
 create mode 100755 drivers/gpu/drm/vkms/tests/gen_yuv_conversion.py

diff --git a/drivers/gpu/drm/vkms/tests/gen_yuv_conversion.py b/drivers/gpu/drm/vkms/tests/gen_yuv_conversion.py
new file mode 100755
index 0000000000000..f4d226137cc2f
--- /dev/null
+++ b/drivers/gpu/drm/vkms/tests/gen_yuv_conversion.py
@@ -0,0 +1,87 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: GPL-2.0+
+"""
+Derive the VKMS YCbCr -> RGB conversion constants and the vkms-format KUnit
+reference values.
+
+It produces:
+  1. The S31.32 fixed-point conversion matrices used in
+     drivers/gpu/drm/vkms/vkms_formats.c and asserted by
+     vkms_format_test_conversion_matrix.
+  2. The 16-bit reference YCbCr inputs for the limited-range
+     yuv_u16_to_argb_u16 round-trip cases (the values changed by the fix).
+
+Requires numpy.
+"""
+
+import numpy as np
+
+FP = 1 << 32                       # S31.32 scale: fixed = round(coeff * 2^32)
+
+# ITU-R luma weights (Kr, Kb); Kg = 1 - Kr - Kb.
+ENCODINGS = {
+    "BT601":  (0.299,  0.114),
+    "BT709":  (0.2126, 0.0722),
+    "BT2020": (0.2627, 0.0593),    # non-constant luminance
+}
+
+# 8-bit studio-range levels: luma 16..235 (range 219), chroma 16..240
+# (range 224, neutral 128); full-range maximum is 2^n - 1 = 255.
+FULL_MAX = 255
+Y_RANGE  = 235 - 16                # 219
+C_RANGE  = 240 - 16                # 224
+
+# 16-bit RGB test colors.
+COLORS = {
+    "white": (0xffff, 0xffff, 0xffff),
+    "gray":  (0x8080, 0x8080, 0x8080),
+    "black": (0x0000, 0x0000, 0x0000),
+    "red":   (0xffff, 0x0000, 0x0000),
+    "green": (0x0000, 0xffff, 0x0000),
+    "blue":  (0x0000, 0x0000, 0xffff),
+}
+
+
+def rgb_matrix(kr, kb, limited):
+    """Normalized YCbCr -> RGB (Y in [0,1], Cb/Cr in [-0.5, 0.5])."""
+    kg = 1.0 - kr - kb
+    # Standard full-range relations.
+    m = [[1.0,  0.0,                     2 * (1 - kr)],
+         [1.0, -2 * (1 - kb) * kb / kg, -2 * (1 - kr) * kr / kg],
+         [1.0,  2 * (1 - kb),            0.0]]
+    if limited:
+        # Expand studio input range to full range: luma by 255/219,
+        # chroma by 255/224 (relative to full-range maximum 2^n - 1).
+        ys, cs = FULL_MAX / Y_RANGE, FULL_MAX / C_RANGE
+        m = [[r[0] * ys, r[1] * cs, r[2] * cs] for r in m]
+    return m
+
+
+def ref_yuv(m, y_offset):
+    """16-bit YCbCr that VKMS decodes back to each RGB color.
+
+    VKMS decode: [R,G,B] = M . [Y - y_offset*257, Cb - 128*257, Cr - 128*257]
+    (8-bit offsets lifted to 16-bit by *257 = 65535/255), so invert and
+    re-add the offsets.
+    """
+    inv = np.linalg.inv(np.array(m, float))
+    off = np.array([y_offset * 257, 128 * 257, 128 * 257])
+    return {name: tuple(int(min(max(round(v), 0), 0xffff))
+                        for v in inv @ np.array(rgb, float) + off)
+            for name, rgb in COLORS.items()}
+
+print(f"== RGB REFERENCE VALUES ==")
+for name, rgb in COLORS.items():
+    print(f"    {name:6} {{ {rgb[0]:#06x}, {rgb[1]:#06x}, {rgb[2]:#06x} }}")
+print()
+
+for enc, (kr, kb) in ENCODINGS.items():
+    for limited in (False, True):
+        m = rgb_matrix(kr, kb, limited)
+        y_offset = 16 if limited else 0
+        print(f"== {enc} {'LIMITED' if limited else 'FULL'} (y_offset={y_offset}) ==")
+        for row in m:
+            print("    { " + ", ".join(str(round(v * FP)) for v in row) + " },")
+        for name, yuv in ref_yuv(m, y_offset).items():
+            print(f"    {name:6} {{ {yuv[0]:#06x}, {yuv[1]:#06x}, {yuv[2]:#06x} }}")
+        print()
diff --git a/drivers/gpu/drm/vkms/tests/vkms_format_test.c b/drivers/gpu/drm/vkms/tests/vkms_format_test.c
index a7788fbc45dcc..d2ae6321383b7 100644
--- a/drivers/gpu/drm/vkms/tests/vkms_format_test.c
+++ b/drivers/gpu/drm/vkms/tests/vkms_format_test.c
@@ -54,6 +54,8 @@ struct yuv_u16_to_argb_u16_case {
  * The YUV color representation were acquired via the colour python framework.
  * Below are the function calls used for generating each case.
  *
+ * The limited-range cases are generated by gen_yuv_conversion.py.
+ *
  * For more information got to the docs:
  * https://colour.readthedocs.io/en/master/generated/colour.RGB_to_YCbCr.html
  */
@@ -101,12 +103,12 @@ static struct yuv_u16_to_argb_u16_case yuv_u16_to_argb_u16_cases[] = {
 		.range = DRM_COLOR_YCBCR_LIMITED_RANGE,
 		.n_colors = 6,
 		.colors = {
-			{ "white", { 0xeb00, 0x8000, 0x8000 }, { 0xffff, 0xffff, 0xffff, 0xffff }},
-			{ "gray",  { 0x7dee, 0x8000, 0x8000 }, { 0xffff, 0x8080, 0x8080, 0x8080 }},
-			{ "black", { 0x1000, 0x8000, 0x8000 }, { 0xffff, 0x0000, 0x0000, 0x0000 }},
-			{ "red",   { 0x517b, 0x5a34, 0xf000 }, { 0xffff, 0xffff, 0x0000, 0x0000 }},
-			{ "green", { 0x908e, 0x35cc, 0x2237 }, { 0xffff, 0x0000, 0xffff, 0x0000 }},
-			{ "blue",  { 0x28f7, 0xf000, 0x6dc9 }, { 0xffff, 0x0000, 0x0000, 0xffff }},
+			{ "white", { 0xebeb, 0x8080, 0x8080 }, { 0xffff, 0xffff, 0xffff, 0xffff }},
+			{ "gray",  { 0x7e6c, 0x8080, 0x8080 }, { 0xffff, 0x8080, 0x8080, 0x8080 }},
+			{ "black", { 0x1010, 0x8080, 0x8080 }, { 0xffff, 0x0000, 0x0000, 0x0000 }},
+			{ "red",   { 0x51cd, 0x5a8e, 0xf0f0 }, { 0xffff, 0xffff, 0x0000, 0x0000 }},
+			{ "green", { 0x911e, 0x3602, 0x2259 }, { 0xffff, 0x0000, 0xffff, 0x0000 }},
+			{ "blue",  { 0x2920, 0xf0f0, 0x6e37 }, { 0xffff, 0x0000, 0x0000, 0xffff }},
 		}
 	},
 	/*
@@ -151,12 +153,12 @@ static struct yuv_u16_to_argb_u16_case yuv_u16_to_argb_u16_cases[] = {
 		.range = DRM_COLOR_YCBCR_LIMITED_RANGE,
 		.n_colors = 6,
 		.colors = {
-			{ "white", { 0xeb00, 0x8000, 0x8000 }, { 0xffff, 0xffff, 0xffff, 0xffff }},
-			{ "gray",  { 0x7dee, 0x8000, 0x8000 }, { 0xffff, 0x8080, 0x8080, 0x8080 }},
-			{ "black", { 0x1000, 0x8000, 0x8000 }, { 0xffff, 0x0000, 0x0000, 0x0000 }},
-			{ "red",   { 0x3e8f, 0x6656, 0xf000 }, { 0xffff, 0xffff, 0x0000, 0x0000 }},
-			{ "green", { 0xaca1, 0x29aa, 0x1a45 }, { 0xffff, 0x0000, 0xffff, 0x0000 }},
-			{ "blue",  { 0x1fd0, 0xf000, 0x75bb }, { 0xffff, 0x0000, 0x0000, 0xffff }},
+			{ "white", { 0xebeb, 0x8080, 0x8080 }, { 0xffff, 0xffff, 0xffff, 0xffff }},
+			{ "gray",  { 0x7e6c, 0x8080, 0x8080 }, { 0xffff, 0x8080, 0x8080, 0x8080 }},
+			{ "black", { 0x1010, 0x8080, 0x8080 }, { 0xffff, 0x0000, 0x0000, 0x0000 }},
+			{ "red",   { 0x3ece, 0x66bc, 0xf0f0 }, { 0xffff, 0xffff, 0x0000, 0x0000 }},
+			{ "green", { 0xad4e, 0x29d4, 0x1a5f }, { 0xffff, 0x0000, 0xffff, 0x0000 }},
+			{ "blue",  { 0x1ff0, 0xf0f0, 0x7631 }, { 0xffff, 0x0000, 0x0000, 0xffff }},
 		}
 	},
 	/*
@@ -201,12 +203,12 @@ static struct yuv_u16_to_argb_u16_case yuv_u16_to_argb_u16_cases[] = {
 		.range = DRM_COLOR_YCBCR_LIMITED_RANGE,
 		.n_colors = 6,
 		.colors = {
-			{ "white", { 0xeb00, 0x8000, 0x8000 }, { 0xffff, 0xffff, 0xffff, 0xffff }},
-			{ "gray",  { 0x7dee, 0x8000, 0x8000 }, { 0xffff, 0x8080, 0x8080, 0x8080 }},
-			{ "black", { 0x1000, 0x8000, 0x8000 }, { 0xffff, 0x0000, 0x0000, 0x0000 }},
-			{ "red",   { 0x4988, 0x60b9, 0xf000 }, { 0xffff, 0xffff, 0x0000, 0x0000 }},
-			{ "green", { 0xa47b, 0x2f47, 0x1902 }, { 0xffff, 0x0000, 0xffff, 0x0000 }},
-			{ "blue",  { 0x1cfd, 0xf000, 0x76fe }, { 0xffff, 0x0000, 0x0000, 0xffff }},
+			{ "white", { 0xebeb, 0x8080, 0x8080 }, { 0xffff, 0xffff, 0xffff, 0xffff }},
+			{ "gray",  { 0x7e6c, 0x8080, 0x8080 }, { 0xffff, 0x8080, 0x8080, 0x8080 }},
+			{ "black", { 0x1010, 0x8080, 0x8080 }, { 0xffff, 0x0000, 0x0000, 0x0000 }},
+			{ "red",   { 0x49d2, 0x611a, 0xf0f0 }, { 0xffff, 0xffff, 0x0000, 0x0000 }},
+			{ "green", { 0xa520, 0x2f76, 0x191b }, { 0xffff, 0x0000, 0xffff, 0x0000 }},
+			{ "blue",  { 0x1d1a, 0xf0f0, 0x7775 }, { 0xffff, 0x0000, 0x0000, 0xffff }},
 		}
 	},
 };
diff --git a/drivers/gpu/drm/vkms/vkms_formats.c b/drivers/gpu/drm/vkms/vkms_formats.c
index dfb8e13cba87a..4d5fcaeb82c58 100644
--- a/drivers/gpu/drm/vkms/vkms_formats.c
+++ b/drivers/gpu/drm/vkms/vkms_formats.c
@@ -788,15 +788,36 @@ static const struct conversion_matrix yuv_bt601_full = {
 };
 
 /*
- * numpy.around(colour.matrix_YCbCr(K=colour.WEIGHTS_YCBCR["ITU-R BT.601"],
- *                                  is_legal = True,
- *                                  bits = 8) * 2**32).astype(int)
+ * BT.601 limited-/studio-range YCbCr to full-range RGB.
+ *
+ * The coefficients are derived as follows:
+ *
+ *  1. Take the standard ITU-R YCbCr -> RGB relations for luma weights
+ *     Kr, Kb (Kg = 1 - Kr - Kb), with Y in [0, 1] and Cb, Cr in
+ *     [-0.5, 0.5]. For BT.601 Kr = 0.299 and Kb = 0.114:
+ *
+ *       R = Y                                + 2 * (1 - Kr)          * Cr
+ *       G = Y - 2 * (1 - Kb) * Kb / Kg * Cb - 2 * (1 - Kr) * Kr / Kg * Cr
+ *       B = Y + 2 * (1 - Kb)          * Cb
+ *
+ *     These are exactly the yuv_bt601_full coefficients above.
+ *
+ *  2. Expand the studio input range to full range, relative to a
+ *     full-range maximum of 2^n - 1 (255 for 8-bit): the luma
+ *     coefficient is scaled by 255/(235 - 16) and the chroma
+ *     coefficients by 255/(240 - 16). This matches the DRM UAPI
+ *     definition and IGT's igt_ycbcr_to_rgb_matrix(). Note this differs
+ *     from colour.matrix_YCbCr(is_legal=True), which normalises by 2^n
+ *     and is thus off by a factor of 256/255.
+ *
+ *  3. Convert each coefficient to S31.32 fixed point, i.e.
+ *     round(coeff * 2^32).
  */
 static const struct conversion_matrix yuv_bt601_limited = {
 	.matrix = {
-		{ 5020601039, 0,           6881764740 },
-		{ 5020601039, -1689204679, -3505362278 },
-		{ 5020601039, 8697922339,  0 },
+		{ 5000989317, 0,           6854882848 },
+		{ 5000989317, -1682606224, -3491669458 },
+		{ 5000989317, 8663946082,  0 },
 	},
 	.y_offset = 16,
 };
@@ -816,15 +837,14 @@ static const struct conversion_matrix yuv_bt709_full = {
 };
 
 /*
- * numpy.around(colour.matrix_YCbCr(K=colour.WEIGHTS_YCBCR["ITU-R BT.709"],
- *                                  is_legal = True,
- *                                  bits = 8) * 2**32).astype(int)
+ * BT.709 limited-range YCbCr to full-range RGB (Kr = 0.2126, Kb = 0.0722).
+ * Derived as described for yuv_bt601_limited.
  */
 static const struct conversion_matrix yuv_bt709_limited = {
 	.matrix = {
-		{ 5020601039, 0,          7729959424 },
-		{ 5020601039, -919487572, -2297803934 },
-		{ 5020601039, 9108275786, 0 },
+		{ 5000989317, 0,          7699764272 },
+		{ 5000989317, -915895824, -2288828138 },
+		{ 5000989317, 9072696586, 0 },
 	},
 	.y_offset = 16,
 };
@@ -844,15 +864,14 @@ static const struct conversion_matrix yuv_bt2020_full = {
 };
 
 /*
- * numpy.around(colour.matrix_YCbCr(K=colour.WEIGHTS_YCBCR["ITU-R BT.2020"],
- *                                  is_legal = True,
- *                                  bits = 8) * 2**32).astype(int)
+ * BT.2020 non-constant-luminance limited-range YCbCr to full-range RGB
+ * (Kr = 0.2627, Kb = 0.0593). Derived as described for yuv_bt601_limited.
  */
 static const struct conversion_matrix yuv_bt2020_limited = {
 	.matrix = {
-		{ 5020601039, 0,          7238124312 },
-		{ 5020601039, -807714626, -2804506279 },
-		{ 5020601039, 9234915964, 0 },
+		{ 5000989317, 0,          7209850391 },
+		{ 5000989317, -804559491, -2793551177 },
+		{ 5000989317, 9198842076, 0 },
 	},
 	.y_offset = 16,
 };
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0083/2651] bpftool: Fix spurious batch file read error
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (81 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0082/2651] drm/vkms: Fix limited-range YCbCr to RGB conversion scaling Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0084/2651] selftests/bpf: Avoid flaky resize value test for percpu data Greg Kroah-Hartman
                   ` (108 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Yuan Chen, Andrii Nakryiko,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Yuan Chen <chenyuan_fl@163.com>

[ Upstream commit 713c02b59e21840f623a3e31c43d967026c75181 ]

do_batch() checks errno after the read loop to detect read failures,
but fgets() does not clear errno on success, so a stale errno left by
a previously executed command (e.g. map dump's EBADF from a double
close) makes bpftool report a batch file read failure and exit with an
error even though every command succeeded.

Clear errno before each fgets() call, so the post-loop check only
sees the outcome of the last read: zero on success or EOF, E2BIG for
an overlong line, and a genuine errno when fgets() fails.

Since errno is now reset before every read in batch mode, drop the
USE_LIBCAP errno reset in main() that existed only to keep errno clean
for the batch mode.

Fixes: 71bb428fe2c1 ("tools: bpf: add bpftool")
Signed-off-by: Yuan Chen <chenyuan@kylinos.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260824092657.1789956-2-chenyuan_fl@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/bpf/bpftool/main.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/tools/bpf/bpftool/main.c b/tools/bpf/bpftool/main.c
index c91e1a6e1a1ec..7a0c214f08a0e 100644
--- a/tools/bpf/bpftool/main.c
+++ b/tools/bpf/bpftool/main.c
@@ -365,7 +365,11 @@ static int do_batch(int argc, char **argv)
 
 	if (json_output)
 		jsonw_start_array(json_wtr);
-	while (fgets(buf, sizeof(buf), fp)) {
+	for (;;) {
+		errno = 0;
+		if (!fgets(buf, sizeof(buf), fp))
+			break;
+
 		cp = strchr(buf, '#');
 		if (cp)
 			*cp = '\0';
@@ -467,16 +471,6 @@ int main(int argc, char **argv)
 
 	setlinebuf(stdout);
 
-#ifdef USE_LIBCAP
-	/* Libcap < 2.63 hooks before main() to compute the number of
-	 * capabilities of the running kernel, and doing so it calls prctl()
-	 * which may fail and set errno to non-zero.
-	 * Let's reset errno to make sure this does not interfere with the
-	 * batch mode.
-	 */
-	errno = 0;
-#endif
-
 	last_do_help = do_help;
 	pretty_output = false;
 	json_output = false;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0084/2651] selftests/bpf: Avoid flaky resize value test for percpu data
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (82 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0083/2651] bpftool: Fix spurious batch file read error Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0085/2651] drm/ras: Cancel and free message on get counter failure Greg Kroah-Hartman
                   ` (107 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Leon Hwang, Andrii Nakryiko,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Leon Hwang <leon.hwang@linux.dev>

[ Upstream commit 5e875ae9e9ffd5c76c6bdf8982f99de340dd46af ]

The bpf_map__set_value_size() test for percpu data relies on the tail
'cpu_id' field in the ".percpu" map. The test would fail, when 'cpu_id' is
not the last field in the map.

To avoid the flaky test, factor out a subtest to use a dedicated
".percpu.arr" map that only has one field 'int arr[1]'. And, skip the
subtest when fail to load skel with errno E2BIG and the new value size is
larger than ALIGN(32KiB, PAGE_SIZE).

And, drop 'args' in test_percpu_data_on_cpus(), which isn't used in bpf
prog side.

And, enhance the test to cover 'set' and 'nums[6]'.

Fixes: 4c9241bd731a ("selftests/bpf: Add tests to verify global percpu data")
Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260826145613.34182-1-leon.hwang@linux.dev
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../bpf/prog_tests/global_data_init.c         | 96 ++++++++++++++-----
 .../bpf/progs/test_global_percpu_data.c       | 10 +-
 2 files changed, 80 insertions(+), 26 deletions(-)

diff --git a/tools/testing/selftests/bpf/prog_tests/global_data_init.c b/tools/testing/selftests/bpf/prog_tests/global_data_init.c
index 5671c31085cd1..7c539cbcf3a1e 100644
--- a/tools/testing/selftests/bpf/prog_tests/global_data_init.c
+++ b/tools/testing/selftests/bpf/prog_tests/global_data_init.c
@@ -68,12 +68,9 @@ static void test_percpu_data_on_cpus(struct bpf_map *map, int map_fd, int prog_f
 {
 	struct test_global_percpu_data__percpu *data = NULL;
 	int i, err, key = 0, num_online, run = 0;
-	__u64 args[2] = {0x1234ULL, 0x5678ULL};
 	size_t data_sz;
 	bool *online;
 	LIBBPF_OPTS(bpf_test_run_opts, topts,
-		    .ctx_in = args,
-		    .ctx_size_in = sizeof(args),
 		    .flags = BPF_F_TEST_RUN_ON_CPU,
 	);
 
@@ -81,7 +78,7 @@ static void test_percpu_data_on_cpus(struct bpf_map *map, int map_fd, int prog_f
 	if (!ASSERT_OK(err, "parse_cpu_mask_file"))
 		return;
 
-	data_sz = map ? bpf_map__value_size(map) : sizeof(*data);
+	data_sz = sizeof(*data);
 	data = calloc(1, data_sz);
 	if (!ASSERT_OK_PTR(data, "calloc percpu data"))
 		goto out;
@@ -109,7 +106,7 @@ static void test_percpu_data_on_cpus(struct bpf_map *map, int map_fd, int prog_f
 			break;
 
 		ASSERT_EQ(*runp, ++run, "run");
-		ASSERT_EQ(data->cpu_id[0], i, "cpu_id");
+		ASSERT_EQ(data->cpu_id, i, "cpu_id");
 		ASSERT_EQ(data->data, 1, "data");
 		ASSERT_TRUE(data->set, "set");
 		ASSERT_EQ(data->nums[6], 0xc0de, "nums[6]");
@@ -127,7 +124,6 @@ static void test_global_percpu_data_init(void)
 {
 	struct test_global_percpu_data__percpu init_value = {};
 	struct test_global_percpu_data__percpu *init_data;
-	const __u32 desired_sz = sysconf(_SC_PAGE_SIZE);
 	struct test_global_percpu_data *skel = NULL;
 	size_t init_data_sz;
 	struct bpf_map *map;
@@ -163,9 +159,11 @@ static void test_global_percpu_data_init(void)
 	if (!ASSERT_EQ(bpf_map__type(map), BPF_MAP_TYPE_PERCPU_ARRAY, "bpf_map__type"))
 		goto out;
 
+	init_value.set = 1;
 	init_value.data = 2;
 	init_value.nums[6] = -1;
 	init_value.struct_data.i = 2;
+	init_value.struct_data.set = 1;
 	init_value.struct_data.nums[6] = -1;
 	err = bpf_map__set_initial_value(map, &init_value, sizeof(init_value));
 	if (!ASSERT_OK(err, "bpf_map__set_initial_value"))
@@ -177,35 +175,24 @@ static void test_global_percpu_data_init(void)
 
 	ASSERT_EQ(init_data->data, init_value.data, "init_value data");
 	ASSERT_EQ(init_data->set, init_value.set, "init_value set");
+	ASSERT_EQ(init_data->nums[6], init_value.nums[6], "init_value nums[6]");
 	ASSERT_EQ(init_data->struct_data.i, init_value.struct_data.i, "init_value struct_data.i");
+	ASSERT_EQ(init_data->struct_data.set, init_value.struct_data.set,
+		  "init_value struct_data.set");
 	ASSERT_EQ(init_data->struct_data.nums[6], init_value.struct_data.nums[6],
 		  "init_value struct_data.nums[6]");
 	ASSERT_EQ(init_data_sz, sizeof(init_value), "init_value size");
 	ASSERT_EQ((void *) init_data, (void *) skel->percpu, "skel->percpu eq init_data");
 	ASSERT_EQ(skel->percpu->data, init_value.data, "skel->percpu->data");
 	ASSERT_EQ(skel->percpu->set, init_value.set, "skel->percpu->set");
+	ASSERT_EQ(skel->percpu->nums[6], init_value.nums[6], "skel->percpu->nums[6]");
 	ASSERT_EQ(skel->percpu->struct_data.i, init_value.struct_data.i,
 		  "skel->percpu->struct_data.i");
+	ASSERT_EQ(skel->percpu->struct_data.set, init_value.struct_data.set,
+		  "skel->percpu->struct_data.set");
 	ASSERT_EQ(skel->percpu->struct_data.nums[6], init_value.struct_data.nums[6],
 		  "skel->percpu->struct_data.nums[6]");
 
-	ASSERT_GT(desired_sz, sizeof(init_value), "desired_sz");
-	err = bpf_map__set_value_size(map, desired_sz);
-	if (!ASSERT_OK(err, "bpf_map__set_value_size"))
-		goto out;
-	if (!ASSERT_EQ(bpf_map__value_size(map), desired_sz, "percpu value size"))
-		goto out;
-	if (!ASSERT_NEQ(bpf_map__btf_value_type_id(map), 0, "percpu BTF value type"))
-		goto out;
-
-	init_data = bpf_map__initial_value(map, &init_data_sz);
-	if (!ASSERT_OK_PTR(init_data, "resized bpf_map__initial_value"))
-		goto out;
-	if (!ASSERT_EQ(init_data_sz, desired_sz, "resized initial value size"))
-		goto out;
-	if (!ASSERT_EQ(init_data->data, init_value.data, "resized initial value data"))
-		goto out;
-
 	err = test_global_percpu_data__load(skel);
 	if (!ASSERT_OK(err, "test_global_percpu_data__load"))
 		goto out;
@@ -236,6 +223,67 @@ static void test_global_percpu_data_lskel(void)
 	test_global_percpu_data_lskel__destroy(lskel);
 }
 
+#define PCPU_MIN_UNIT_SIZE (32 << 10)
+
+static void test_global_percpu_data_map_resize(void)
+{
+	const __u32 page_size = sysconf(_SC_PAGE_SIZE);
+	const __u32 pcpu_max_value_size = ALIGN(PCPU_MIN_UNIT_SIZE, page_size);
+	const __u32 desired_sz = page_size * 2;
+	struct test_global_percpu_data *skel;
+	const int arr_value = -1;
+	struct bpf_map *map;
+	int err, prog_fd;
+	size_t data_sz;
+
+	skel = test_global_percpu_data__open();
+	if (!ASSERT_OK_PTR(skel, "test_global_percpu_data__open"))
+		return;
+
+	map = skel->maps.percpu_arr;
+	skel->percpu_arr->arr[0] = arr_value;
+	err = bpf_map__set_value_size(map, desired_sz);
+	if (!ASSERT_OK(err, "bpf_map__set_value_size"))
+		goto out;
+	if (!ASSERT_EQ(bpf_map__value_size(map), desired_sz, "bpf_map__value_size"))
+		goto out;
+	if (!ASSERT_NEQ(bpf_map__btf_value_type_id(map), 0, "bpf_map__btf_value_type_id"))
+		goto out;
+
+	skel->percpu_arr = bpf_map__initial_value(map, &data_sz);
+	if (!ASSERT_EQ(data_sz, desired_sz, "data_sz"))
+		goto out;
+	if (!ASSERT_OK_PTR(skel->percpu_arr, "skel->percpu_arr"))
+		goto out;
+	if (!ASSERT_EQ(skel->percpu_arr->arr[0], arr_value, "arr[0]"))
+		goto out;
+
+	err = test_global_percpu_data__load(skel);
+	if (bpf_map__value_size(map) > pcpu_max_value_size) {
+		if (ASSERT_EQ(err, -E2BIG, "test_global_percpu_data__load E2BIG"))
+			/*
+			 * When the PAGE_SIZE is 64KiB, the new value size will
+			 * be 128KiB. Creating a percpu_array map with the new
+			 * value size will fail with -E2BIG due to percpu_array
+			 * map value size limit 64KiB, which is calculated by
+			 * PFN_ALIGN(32KiB).
+			 * Let's skip the test for such case.
+			 */
+			test__skip();
+		goto out;
+	}
+	if (!ASSERT_OK(err, "test_global_percpu_data__load"))
+		goto out;
+
+	map = skel->maps.percpu;
+	prog_fd = bpf_program__fd(skel->progs.update_percpu_data);
+	test_percpu_data_on_cpus(map, bpf_map__fd(map), prog_fd, &skel->bss->run);
+	ASSERT_EQ(skel->bss->arr_sum, arr_value * skel->bss->run, "arr_sum");
+
+out:
+	test_global_percpu_data__destroy(skel);
+}
+
 static int create_rdonly_percpu_array(void)
 {
 	LIBBPF_OPTS(bpf_map_create_opts, map_opts,
@@ -388,6 +436,8 @@ void test_global_percpu_data(void)
 		test_global_percpu_data_init();
 	if (test__start_subtest("lskel"))
 		test_global_percpu_data_lskel();
+	if (test__start_subtest("map_resize"))
+		test_global_percpu_data_map_resize();
 	if (test__start_subtest("rdonly_direct_read"))
 		test_global_percpu_data_rdonly_direct_read();
 	if (test__start_subtest("rdonly_direct_write"))
diff --git a/tools/testing/selftests/bpf/progs/test_global_percpu_data.c b/tools/testing/selftests/bpf/progs/test_global_percpu_data.c
index 5dc21b3b4cb59..2765cd46e9af0 100644
--- a/tools/testing/selftests/bpf/progs/test_global_percpu_data.c
+++ b/tools/testing/selftests/bpf/progs/test_global_percpu_data.c
@@ -8,9 +8,12 @@ int loong SEC(".percpu.looooooooong");
 int data3 SEC(".data.percpu");
 int data2 SEC(".percpu.data");
 
+/* Used for testing bpf_map__set_value_size(). */
+int arr[1] SEC(".percpu.arr");
+int arr_sum;
+
 int run;
-/* cpu_id as array to verify map value resizing. */
-int cpu_id[1] SEC(".percpu");
+int cpu_id SEC(".percpu");
 int data SEC(".percpu") = -1;
 int nums[7] SEC(".percpu");
 bool set SEC(".percpu") = false;
@@ -34,7 +37,8 @@ int update_percpu_data(void *ctx)
 	data = 1;
 	run++;
 	set = true;
-	cpu_id[0] = bpf_get_smp_processor_id();
+	cpu_id = bpf_get_smp_processor_id();
+	arr_sum += arr[0];
 	return 0;
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0085/2651] drm/ras: Cancel and free message on get counter failure
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (83 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0084/2651] selftests/bpf: Avoid flaky resize value test for percpu data Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0086/2651] selftests/bpf: NUL-terminate bpftool command output Greg Kroah-Hartman
                   ` (106 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Raag Jadav, Riana Tauro,
	Maarten Lankhorst, Rodrigo Vivi, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Raag Jadav <raag.jadav@intel.com>

[ Upstream commit 9cc19bb8f2f6886392b9185b96bbef91b2f1a50f ]

doit_reply_value() directly returns on get counter failure, which results
in stale sk_buff and genetlink header that aren't cleaned up. Fix it and
while at it, consolidate error handling using goto.

Fixes: c36218dc49f5 ("drm/ras: Introduce the DRM RAS infrastructure over generic netlink")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
Link: https://patch.msgid.link/20260818135304.497098-2-raag.jadav@intel.com
Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/drm_ras.c | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/drivers/gpu/drm/drm_ras.c b/drivers/gpu/drm/drm_ras.c
index d6eab29a1394c..467a169026fc1 100644
--- a/drivers/gpu/drm/drm_ras.c
+++ b/drivers/gpu/drm/drm_ras.c
@@ -201,25 +201,28 @@ static int doit_reply_value(struct genl_info *info, u32 node_id,
 
 	hdr = genlmsg_iput(msg, info);
 	if (!hdr) {
-		nlmsg_free(msg);
-		return -EMSGSIZE;
+		ret = -EMSGSIZE;
+		goto free_msg;
 	}
 
 	ret = get_node_error_counter(node_id, error_id,
 				     &error_name, &value);
 	if (ret)
-		return ret;
+		goto cancel_msg;
 
 	ret = msg_reply_value(msg, error_id, error_name, value);
-	if (ret) {
-		genlmsg_cancel(msg, hdr);
-		nlmsg_free(msg);
-		return ret;
-	}
+	if (ret)
+		goto cancel_msg;
 
 	genlmsg_end(msg, hdr);
 
 	return genlmsg_reply(msg, info);
+
+cancel_msg:
+	genlmsg_cancel(msg, hdr);
+free_msg:
+	nlmsg_free(msg);
+	return ret;
 }
 
 /**
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0086/2651] selftests/bpf: NUL-terminate bpftool command output
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (84 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0085/2651] drm/ras: Cancel and free message on get counter failure Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0087/2651] selftests/bpf: Add tests for bpftool btf dump format c Greg Kroah-Hartman
                   ` (105 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Eduard Zingerman, Ihor Solodrai,
	Alexei Starovoitov, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Ihor Solodrai <ihor.solodrai@linux.dev>

[ Upstream commit 4f8a4c76f6704667111d76404bdea4fef0373358 ]

run_command() writes a bpftool command's output into a caller-supplied
buffer, and every caller treats that buffer as a C string.

However fread() reports a byte count and doesn't terminate the
string. The helper does not terminate either, so callers have to zero
the buffer first. prog_tests/bpftool_metadata.c does not, for example.

Read one byte less and terminate in the helper.

Fixes: f21fae577446 ("selftests/bpf: Add a few helpers for bpftool testing")
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Link: https://lore.kernel.org/r/20260828215207.3105313-5-ihor.solodrai@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/testing/selftests/bpf/bpftool_helpers.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/bpf/bpftool_helpers.c b/tools/testing/selftests/bpf/bpftool_helpers.c
index 0a2a4f0a2794b..c49fdd90eb033 100644
--- a/tools/testing/selftests/bpf/bpftool_helpers.c
+++ b/tools/testing/selftests/bpf/bpftool_helpers.c
@@ -53,6 +53,7 @@ static int run_command(char *args, char *output_buf, size_t output_max_len)
 	static char bpftool_path[PATH_MAX] = {};
 	bool suppress_output = !(output_buf && output_max_len);
 	char command[BPFTOOL_FULL_CMD_MAX_LEN];
+	size_t n;
 	FILE *f;
 	int ret;
 
@@ -68,8 +69,10 @@ static int run_command(char *args, char *output_buf, size_t output_max_len)
 	if (!f)
 		return 1;
 
-	if (!suppress_output)
-		fread(output_buf, 1, output_max_len, f);
+	if (!suppress_output) {
+		n = fread(output_buf, 1, output_max_len - 1, f);
+		output_buf[n] = '\0';
+	}
 	ret = pclose(f);
 
 	return ret;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0087/2651] selftests/bpf: Add tests for bpftool btf dump format c
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (85 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0086/2651] selftests/bpf: NUL-terminate bpftool command output Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0088/2651] bpftool: Dont drop a type in the sorted C dump Greg Kroah-Hartman
                   ` (104 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Ihor Solodrai, Alexei Starovoitov,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Ihor Solodrai <ihor.solodrai@linux.dev>

[ Upstream commit 438147f7f60104a228fb506352bc8bbae53b1efd ]

"bpftool btf dump format c" generates the vmlinux.h that BPF programs
are built against, and it has no test coverage at all. The only
in-tree consumers are build systems.

Building against the header only catches what a compiler rejects,
which is insufficient.

Introduce a bpftool_btf_dump selftest. Dump a small hand-built BTF and
compare the output against committed expectations.

The BTF is assembled with btf__add_*() rather than compiled from BPF C
because the fixture needs a 4-byte "long int". That is what makes
bpftool render the hole in struct holey as a pair of "long: 32;"
bitfields. A BPF target is always 64-bit, so a compiled fixture could
not supply it.

Comparing the whole dump makes every change to a generated header show
up in a patch.

Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Link: https://lore.kernel.org/r/20260828215207.3105313-6-ihor.solodrai@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Stable-dep-of: ff01f88a9136 ("bpftool: Don't drop a type in the sorted C dump")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/testing/selftests/bpf/Makefile          |   8 +-
 .../bpf/bpftool_btf_dump_sorted.expected      |  44 +++++
 .../bpf/bpftool_btf_dump_unsorted.expected    |  48 +++++
 .../bpf/prog_tests/bpftool_btf_dump.c         | 178 ++++++++++++++++++
 4 files changed, 276 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/bpftool_btf_dump_sorted.expected
 create mode 100644 tools/testing/selftests/bpf/bpftool_btf_dump_unsorted.expected
 create mode 100644 tools/testing/selftests/bpf/prog_tests/bpftool_btf_dump.c

diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
index 93c707116fad0..81c5db5f57fb4 100644
--- a/tools/testing/selftests/bpf/Makefile
+++ b/tools/testing/selftests/bpf/Makefile
@@ -118,7 +118,9 @@ TEST_GEN_PROGS += test_progs-cpuv4
 TEST_INST_SUBDIRS += cpuv4
 endif
 
-TEST_FILES = xsk_prereqs.sh $(wildcard progs/btf_dump_test_case_*.c)
+TEST_FILES = xsk_prereqs.sh $(wildcard progs/btf_dump_test_case_*.c)	\
+	     bpftool_btf_dump_sorted.expected					\
+	     bpftool_btf_dump_unsorted.expected
 
 # Order correspond to 'make run_tests' order
 TEST_PROGS := test_kmod.sh \
@@ -882,7 +884,9 @@ TRUNNER_EXTRA_FILES := $(OUTPUT)/urandom_read				\
 		       ima_setup.sh 					\
 		       $(VERIFY_SIG_SETUP)				\
 		       $(wildcard progs/btf_dump_test_case_*.c)		\
-		       $(wildcard progs/*.bpf.o)
+		       $(wildcard progs/*.bpf.o)			\
+		       bpftool_btf_dump_sorted.expected			\
+		       bpftool_btf_dump_unsorted.expected
 TRUNNER_BPF_BUILD_RULE := CLANG_BPF_BUILD_RULE
 TRUNNER_BPF_CFLAGS := $(BPF_CFLAGS) $(CLANG_CFLAGS) -DENABLE_ATOMICS_TESTS
 $(eval $(call DEFINE_TEST_RUNNER,test_progs))
diff --git a/tools/testing/selftests/bpf/bpftool_btf_dump_sorted.expected b/tools/testing/selftests/bpf/bpftool_btf_dump_sorted.expected
new file mode 100644
index 0000000000000..a9c6b688ffd79
--- /dev/null
+++ b/tools/testing/selftests/bpf/bpftool_btf_dump_sorted.expected
@@ -0,0 +1,44 @@
+#ifndef __VMLINUX_H__
+#define __VMLINUX_H__
+
+#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
+#pragma clang attribute push (__attribute__((preserve_access_index)), apply_to = record)
+#endif
+
+#ifndef __ksym
+#define __ksym __attribute__((section(".ksyms")))
+#endif
+
+#ifndef __weak
+#define __weak __attribute__((weak))
+#endif
+
+#ifndef __bpf_fastcall
+#if __has_attribute(bpf_fastcall)
+#define __bpf_fastcall __attribute__((bpf_fastcall))
+#else
+#define __bpf_fastcall
+#endif
+#endif
+
+struct holey {
+	int c;
+	long: 32;
+	long: 32;
+	int tail;
+};
+
+struct s {
+	int f;
+};
+
+
+/* BPF kfuncs */
+#ifndef BPF_NO_KFUNC_PROTOTYPES
+#endif
+
+#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
+#pragma clang attribute pop
+#endif
+
+#endif /* __VMLINUX_H__ */
diff --git a/tools/testing/selftests/bpf/bpftool_btf_dump_unsorted.expected b/tools/testing/selftests/bpf/bpftool_btf_dump_unsorted.expected
new file mode 100644
index 0000000000000..4310adc2ed514
--- /dev/null
+++ b/tools/testing/selftests/bpf/bpftool_btf_dump_unsorted.expected
@@ -0,0 +1,48 @@
+#ifndef __VMLINUX_H__
+#define __VMLINUX_H__
+
+#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
+#pragma clang attribute push (__attribute__((preserve_access_index)), apply_to = record)
+#endif
+
+#ifndef __ksym
+#define __ksym __attribute__((section(".ksyms")))
+#endif
+
+#ifndef __weak
+#define __weak __attribute__((weak))
+#endif
+
+#ifndef __bpf_fastcall
+#if __has_attribute(bpf_fastcall)
+#define __bpf_fastcall __attribute__((bpf_fastcall))
+#else
+#define __bpf_fastcall
+#endif
+#endif
+
+struct holey {
+	int c;
+	long: 32;
+	long: 32;
+	int tail;
+};
+
+enum {
+	E0 = 1,
+};
+
+struct s {
+	int f;
+};
+
+
+/* BPF kfuncs */
+#ifndef BPF_NO_KFUNC_PROTOTYPES
+#endif
+
+#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
+#pragma clang attribute pop
+#endif
+
+#endif /* __VMLINUX_H__ */
diff --git a/tools/testing/selftests/bpf/prog_tests/bpftool_btf_dump.c b/tools/testing/selftests/bpf/prog_tests/bpftool_btf_dump.c
new file mode 100644
index 0000000000000..d5b25302b0c89
--- /dev/null
+++ b/tools/testing/selftests/bpf/prog_tests/bpftool_btf_dump.c
@@ -0,0 +1,178 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <test_progs.h>
+#include <bpftool_helpers.h>
+#include <bpf/btf.h>
+#include <limits.h>
+#include <unistd.h>
+#include "btf_helpers.h"
+#include "testing_helpers.h"
+
+#define DUMP_BUF_SZ		(16 * 1024)
+
+#define EXPECTED_SORTED		"bpftool_btf_dump_sorted.expected"
+#define EXPECTED_UNSORTED	"bpftool_btf_dump_unsorted.expected"
+
+/*
+ *	struct holey {
+ *		int c;
+ *		<64-bit hole>
+ *		int tail;
+ *	};
+ *	enum { E0 = 1 };
+ *	struct s { int f; };
+ */
+static struct btf *mk_btf(void)
+{
+	struct btf *btf;
+
+	btf = btf__new_empty();
+	if (!ASSERT_OK_PTR(btf, "new_empty"))
+		return NULL;
+
+	btf__add_int(btf, "int", 4, BTF_INT_SIGNED);
+	btf__add_int(btf, "long int", 4, BTF_INT_SIGNED);
+
+	btf__add_struct(btf, "holey", 16);
+	btf__add_field(btf, "c", 1, 0, 0);
+	btf__add_field(btf, "tail", 1, 96, 0);
+
+	btf__add_enum(btf, NULL, 4);
+	btf__add_enum_value(btf, "E0", 1);
+
+	btf__add_struct(btf, "s", 4);
+	btf__add_field(btf, "f", 1, 0, 0);
+
+	VALIDATE_RAW_BTF(
+		btf,
+		"[1] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED",
+		"[2] INT 'long int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED",
+		"[3] STRUCT 'holey' size=16 vlen=2\n"
+		"\t'c' type_id=1 bits_offset=0\n"
+		"\t'tail' type_id=1 bits_offset=96",
+		"[4] ENUM '(anon)' encoding=UNSIGNED size=4 vlen=1\n"
+		"\t'E0' val=1",
+		"[5] STRUCT 's' size=4 vlen=1\n"
+		"\t'f' type_id=1 bits_offset=0");
+
+	return btf;
+}
+
+static int btf_to_tmpfile(const struct btf *btf, char *path)
+{
+	ssize_t written;
+	const void *raw;
+	__u32 sz;
+	int fd;
+
+	raw = btf__raw_data(btf, &sz);
+	if (!ASSERT_OK_PTR(raw, "raw_data"))
+		return -1;
+
+	snprintf(path, PATH_MAX, "/tmp/bpftool_btf_dump.XXXXXX");
+	fd = mkstemp(path);
+	if (!ASSERT_OK_FD(fd, "mkstemp_btf"))
+		return -1;
+
+	written = write(fd, raw, sz);
+	close(fd);
+	if (!ASSERT_EQ(written, sz, "write_btf")) {
+		unlink(path);
+		return -1;
+	}
+
+	return 0;
+}
+
+static char *dump_c(const char *btf_path, bool sorted)
+{
+	char args[MAX_BPFTOOL_CMD_LEN];
+	char *buf;
+	int err;
+
+	buf = malloc(DUMP_BUF_SZ);
+	if (!ASSERT_OK_PTR(buf, "alloc_dump"))
+		return NULL;
+
+	snprintf(args, sizeof(args), "btf dump file %s format c%s",
+		 btf_path, sorted ? "" : " unsorted");
+
+	err = get_bpftool_command_output(args, buf, DUMP_BUF_SZ);
+	if (!ASSERT_OK(err, "btf_dump_format_c")) {
+		free(buf);
+		return NULL;
+	}
+
+	return buf;
+}
+
+static char *read_expected(const char *path)
+{
+	char *buf = NULL;
+	size_t cap = 0;
+	FILE *f;
+	int err;
+
+	f = fopen(path, "r");
+	if (!f) {
+		err = errno;
+		PRINT_FAIL("can't open expected output '%s': errno %d\n", path, err);
+		return NULL;
+	}
+
+	/* no NUL in a generated header, so this reads to the end */
+	if (getdelim(&buf, &cap, '\0', f) < 0) {
+		err = errno;
+		PRINT_FAIL("can't read expected output '%s': errno %d\n", path, err);
+		free(buf);
+		buf = NULL;
+	}
+
+	fclose(f);
+	return buf;
+}
+
+static void test_dump(const char *btf_path, bool sorted)
+{
+	const char *exp_path;
+	char *dump, *exp;
+	int err;
+
+	exp_path = sorted ? EXPECTED_SORTED : EXPECTED_UNSORTED;
+
+	dump = dump_c(btf_path, sorted);
+	if (!dump)
+		return;
+
+	exp = read_expected(exp_path);
+	if (!exp)
+		goto out_dump;
+
+	err = compare_text_to_expected(dump, exp);
+	ASSERT_OK(err, sorted ? "cmp_sorted" : "cmp_unsorted");
+
+	free(exp);
+out_dump:
+	free(dump);
+}
+
+void test_bpftool_btf_dump(void)
+{
+	char path[PATH_MAX];
+	struct btf *btf;
+
+	btf = mk_btf();
+	if (!btf)
+		return;
+
+	if (btf_to_tmpfile(btf, path))
+		goto out_btf;
+
+	if (test__start_subtest("c_sorted"))
+		test_dump(path, true);
+	if (test__start_subtest("c_unsorted"))
+		test_dump(path, false);
+
+	unlink(path);
+out_btf:
+	btf__free(btf);
+}
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0088/2651] bpftool: Dont drop a type in the sorted C dump
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (86 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0087/2651] selftests/bpf: Add tests for bpftool btf dump format c Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0089/2651] regulator: fixed: reject incompatible platform devices Greg Kroah-Hartman
                   ` (103 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Eduard Zingerman, Ihor Solodrai,
	Alexei Starovoitov, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Ihor Solodrai <ihor.solodrai@linux.dev>

[ Upstream commit ff01f88a91368c264efb071c13f2b27b4d5c1d2b ]

The C dump sorts types by default, so that generated headers are
diffable. The sorted dump emits one type fewer than the unsorted dump
of the same BTF.

dump_btf_c() starts its loop at index 1 to skip the void type at BTF
type ID 0. That holds for the unsorted dump, where the array index is
the type ID, but not after qsort(): position 0 is then the lowest
ranked type, and btf_type_rank() ranks an anonymous enum 0 while void
takes the default rank of 10. So the enum is skipped, and void is
emitted instead as a no-op.

Fixes: 94133cf24bb3 ("bpftool: Introduce btf c dump sorting")
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Link: https://lore.kernel.org/r/20260828215207.3105313-7-ihor.solodrai@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/bpf/bpftool/btf.c                                     | 6 +++++-
 .../testing/selftests/bpf/bpftool_btf_dump_sorted.expected  | 4 ++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/tools/bpf/bpftool/btf.c b/tools/bpf/bpftool/btf.c
index c9589026da8d6..bca0a3982f09b 100644
--- a/tools/bpf/bpftool/btf.c
+++ b/tools/bpf/bpftool/btf.c
@@ -805,9 +805,13 @@ static int dump_btf_c(const struct btf *btf,
 
 		if (sort_dump)
 			datums = sort_btf_c(btf);
-		for (i = 1; i < cnt; i++) {
+		for (i = 0; i < cnt; i++) {
 			int idx = datums ? datums[i].index : i;
 
+			/* type ID 0 is void, skip it */
+			if (idx == 0)
+				continue;
+
 			err = btf_dump__dump_type(d, idx);
 			if (err)
 				goto done;
diff --git a/tools/testing/selftests/bpf/bpftool_btf_dump_sorted.expected b/tools/testing/selftests/bpf/bpftool_btf_dump_sorted.expected
index a9c6b688ffd79..5470b2b432291 100644
--- a/tools/testing/selftests/bpf/bpftool_btf_dump_sorted.expected
+++ b/tools/testing/selftests/bpf/bpftool_btf_dump_sorted.expected
@@ -21,6 +21,10 @@
 #endif
 #endif
 
+enum {
+	E0 = 1,
+};
+
 struct holey {
 	int c;
 	long: 32;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0089/2651] regulator: fixed: reject incompatible platform devices
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (87 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0088/2651] bpftool: Dont drop a type in the sorted C dump Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0090/2651] spi: sh-msiof: propagate setup runtime-PM errors Greg Kroah-Hartman
                   ` (102 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, syzbot+bfc9e55cf4f98183c636,
	Chandradhar Kumar, Mark Brown, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Chandradhar Kumar <chandradhar.2003@gmail.com>

[ Upstream commit f7396c2dbbc1bed6c2c554d1ddf80d16e4780a7d ]

The fixed regulator driver expects non-DT platform devices to provide
their configuration through platform_data as a struct fixed_voltage_config.

An explicitly bound driver can bypass the normal platform device/driver
matching and attach the fixed regulator driver to an unrelated platform
device. This causes the driver's platform_data to be interpreted as a
struct fixed_voltage_config even though it contains data for a different
device.

Reject non-DT platform devices whose name does not match the fixed
regulator driver before accessing their platform data.

Fixes: 4b74ff651249 ("regulator: add support for fixed regulators.")
Reported-by: syzbot+bfc9e55cf4f98183c636@syzkaller.appspotmail.com
Closes: https://syzbot.org/bug?extid=bfc9e55cf4f98183c636
Signed-off-by: Chandradhar Kumar <chandradhar.2003@gmail.com>
Link: https://patch.msgid.link/20260822065519.112441-1-chandradhar.2003@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/regulator/fixed.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index 417d282dd4ed7..faa82f30eb1f1 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -28,6 +28,7 @@
 #include <linux/regulator/of_regulator.h>
 #include <linux/regulator/machine.h>
 #include <linux/clk.h>
+#include <linux/string.h>
 
 struct fixed_voltage_data {
 	struct regulator_desc desc;
@@ -225,6 +226,9 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
 	enum gpiod_flags gflags;
 	int ret;
 
+	if (!pdev->dev.of_node && strcmp(pdev->name, "reg-fixed-voltage"))
+		return -ENODEV;
+
 	drvdata = devm_kzalloc(&pdev->dev, sizeof(struct fixed_voltage_data),
 			       GFP_KERNEL);
 	if (!drvdata)
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0090/2651] spi: sh-msiof: propagate setup runtime-PM errors
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (88 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0089/2651] regulator: fixed: reject incompatible platform devices Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0091/2651] iio: humidity: hts221: report available values via read_avail() Greg Kroah-Hartman
                   ` (101 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Mark Brown,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Pengpeng Hou <pengpeng@iscas.ac.cn>

[ Upstream commit 152867998da9f331d6235d76aae1c7e1650708a9 ]

sh_msiof_spi_setup() ignores pm_runtime_get_sync() before programming
native chip-select registers and marking the configuration initialized.

Use the checked runtime-PM helper and return failure before register
access.

Fixes: 7ff0b53c4051 ("spi: sh-msiof: Avoid writing to registers from spi_master.setup()")
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260830140133.24156-1-pengpeng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/spi/spi-sh-msiof.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index 1aeab7ec0bc8d..4c425ec627767 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -453,6 +453,7 @@ static int sh_msiof_spi_setup(struct spi_device *spi)
 	struct sh_msiof_spi_priv *p =
 		spi_controller_get_devdata(spi->controller);
 	u32 clr, set, tmp;
+	int ret;
 
 	if (spi_get_csgpiod(spi, 0) || spi_controller_is_target(p->ctlr))
 		return 0;
@@ -468,7 +469,9 @@ static int sh_msiof_spi_setup(struct spi_device *spi)
 		clr |= SIMDR1_SYNCAC;
 	else
 		set |= SIMDR1_SYNCAC;
-	pm_runtime_get_sync(&p->pdev->dev);
+	ret = pm_runtime_resume_and_get(&p->pdev->dev);
+	if (ret < 0)
+		return ret;
 	tmp = sh_msiof_read(p, SITMDR1) & ~clr;
 	sh_msiof_write(p, SITMDR1, tmp | set | SIMDR1_TRMD | SITMDR1_PCON);
 	tmp = sh_msiof_read(p, SIRMDR1) & ~clr;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0091/2651] iio: humidity: hts221: report available values via read_avail()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (89 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0090/2651] spi: sh-msiof: propagate setup runtime-PM errors Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0092/2651] dt-bindings: iio: light: ltr501: Sort compatible enum array Greg Kroah-Hartman
                   ` (100 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Adi Nata, Andy Shevchenko,
	Jonathan Cameron, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Adi Nata <adinata.softwareengineer@gmail.com>

[ Upstream commit 003e99cf33e344a380ba10b3e04ccb862f3d9dc3 ]

Replace the custom oversampling_ratio_available sysfs attributes with
the standard IIO read_avail() callback. This lets the IIO core create
and format *_available attributes and exposes the lists to
in-kernel consumers.

As a consequence, the incorrectly named
in_humidity_oversampling_ratio_available attribute is replaced by the
standard in_humidityrelative_oversampling_ratio_available name for the
IIO_HUMIDITYRELATIVE channel. The temperature oversampling and sampling
frequency available attribute names are unchanged.

Fixes: e4a70e3e7d84 ("iio: humidity: add support to hts221 rh/temp combo device")
Signed-off-by: Adi Nata <adinata.softwareengineer@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/iio/humidity/hts221_core.c | 106 +++++++++++------------------
 1 file changed, 40 insertions(+), 66 deletions(-)

diff --git a/drivers/iio/humidity/hts221_core.c b/drivers/iio/humidity/hts221_core.c
index bfeb0a60d3afe..76a391f421f5e 100644
--- a/drivers/iio/humidity/hts221_core.c
+++ b/drivers/iio/humidity/hts221_core.c
@@ -10,7 +10,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/device.h>
-#include <linux/iio/sysfs.h>
 #include <linux/delay.h>
 #include <linux/pm.h>
 #include <linux/regmap.h>
@@ -49,7 +48,7 @@ struct hts221_odr {
 struct hts221_avg {
 	u8 addr;
 	u8 mask;
-	u16 avg_avl[HTS221_AVG_DEPTH];
+	int avg_avl[HTS221_AVG_DEPTH];
 };
 
 static const struct hts221_odr hts221_odr_table[] = {
@@ -58,6 +57,8 @@ static const struct hts221_odr hts221_odr_table[] = {
 	{ 13, 0x03 },	/* 12.5Hz */
 };
 
+static const int hts221_odr_avail[] = { 1, 7, 13 };
+
 static const struct hts221_avg hts221_avg_list[] = {
 	{
 		.addr = 0x10,
@@ -97,7 +98,11 @@ static const struct iio_chan_spec hts221_channels[] = {
 				      BIT(IIO_CHAN_INFO_OFFSET) |
 				      BIT(IIO_CHAN_INFO_SCALE) |
 				      BIT(IIO_CHAN_INFO_OVERSAMPLING_RATIO),
+		.info_mask_separate_available =
+				BIT(IIO_CHAN_INFO_OVERSAMPLING_RATIO),
 		.info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SAMP_FREQ),
+		.info_mask_shared_by_all_available =
+				BIT(IIO_CHAN_INFO_SAMP_FREQ),
 		.scan_index = 0,
 		.scan_type = {
 			.sign = 's',
@@ -113,7 +118,11 @@ static const struct iio_chan_spec hts221_channels[] = {
 				      BIT(IIO_CHAN_INFO_OFFSET) |
 				      BIT(IIO_CHAN_INFO_SCALE) |
 				      BIT(IIO_CHAN_INFO_OVERSAMPLING_RATIO),
+		.info_mask_separate_available =
+				BIT(IIO_CHAN_INFO_OVERSAMPLING_RATIO),
 		.info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SAMP_FREQ),
+		.info_mask_shared_by_all_available =
+				BIT(IIO_CHAN_INFO_SAMP_FREQ),
 		.scan_index = 1,
 		.scan_type = {
 			.sign = 's',
@@ -192,53 +201,35 @@ static int hts221_update_avg(struct hts221_hw *hw,
 	return 0;
 }
 
-static ssize_t hts221_sysfs_sampling_freq(struct device *dev,
-					  struct device_attribute *attr,
-					  char *buf)
-{
-	int i;
-	ssize_t len = 0;
-
-	for (i = 0; i < ARRAY_SIZE(hts221_odr_table); i++)
-		len += scnprintf(buf + len, PAGE_SIZE - len, "%d ",
-				 hts221_odr_table[i].hz);
-	buf[len - 1] = '\n';
-
-	return len;
-}
-
-static ssize_t
-hts221_sysfs_rh_oversampling_avail(struct device *dev,
-				   struct device_attribute *attr,
-				   char *buf)
-{
-	const struct hts221_avg *avg = &hts221_avg_list[HTS221_SENSOR_H];
-	ssize_t len = 0;
-	int i;
-
-	for (i = 0; i < ARRAY_SIZE(avg->avg_avl); i++)
-		len += scnprintf(buf + len, PAGE_SIZE - len, "%d ",
-				 avg->avg_avl[i]);
-	buf[len - 1] = '\n';
-
-	return len;
-}
-
-static ssize_t
-hts221_sysfs_temp_oversampling_avail(struct device *dev,
-				     struct device_attribute *attr,
-				     char *buf)
+static int hts221_read_avail(struct iio_dev *indio_dev,
+			     struct iio_chan_spec const *chan,
+			     const int **vals, int *type, int *length,
+			     long mask)
 {
-	const struct hts221_avg *avg = &hts221_avg_list[HTS221_SENSOR_T];
-	ssize_t len = 0;
-	int i;
-
-	for (i = 0; i < ARRAY_SIZE(avg->avg_avl); i++)
-		len += scnprintf(buf + len, PAGE_SIZE - len, "%d ",
-				 avg->avg_avl[i]);
-	buf[len - 1] = '\n';
-
-	return len;
+	switch (mask) {
+	case IIO_CHAN_INFO_OVERSAMPLING_RATIO:
+		switch (chan->type) {
+		case IIO_HUMIDITYRELATIVE:
+			*vals = hts221_avg_list[HTS221_SENSOR_H].avg_avl;
+			*length = ARRAY_SIZE(hts221_avg_list[HTS221_SENSOR_H].avg_avl);
+			break;
+		case IIO_TEMP:
+			*vals = hts221_avg_list[HTS221_SENSOR_T].avg_avl;
+			*length = ARRAY_SIZE(hts221_avg_list[HTS221_SENSOR_T].avg_avl);
+			break;
+		default:
+			return -EINVAL;
+		}
+		*type = IIO_VAL_INT;
+		return IIO_AVAIL_LIST;
+	case IIO_CHAN_INFO_SAMP_FREQ:
+		*vals = hts221_odr_avail;
+		*type = IIO_VAL_INT;
+		*length = ARRAY_SIZE(hts221_odr_avail);
+		return IIO_AVAIL_LIST;
+	default:
+		return -EINVAL;
+	}
 }
 
 int hts221_set_enable(struct hts221_hw *hw, bool enable)
@@ -521,27 +512,10 @@ static int hts221_validate_trigger(struct iio_dev *iio_dev,
 	return hw->trig == trig ? 0 : -EINVAL;
 }
 
-static IIO_DEVICE_ATTR(in_humidity_oversampling_ratio_available, S_IRUGO,
-		       hts221_sysfs_rh_oversampling_avail, NULL, 0);
-static IIO_DEVICE_ATTR(in_temp_oversampling_ratio_available, S_IRUGO,
-		       hts221_sysfs_temp_oversampling_avail, NULL, 0);
-static IIO_DEV_ATTR_SAMP_FREQ_AVAIL(hts221_sysfs_sampling_freq);
-
-static struct attribute *hts221_attributes[] = {
-	&iio_dev_attr_sampling_frequency_available.dev_attr.attr,
-	&iio_dev_attr_in_humidity_oversampling_ratio_available.dev_attr.attr,
-	&iio_dev_attr_in_temp_oversampling_ratio_available.dev_attr.attr,
-	NULL,
-};
-
-static const struct attribute_group hts221_attribute_group = {
-	.attrs = hts221_attributes,
-};
-
 static const struct iio_info hts221_info = {
-	.attrs = &hts221_attribute_group,
 	.read_raw = hts221_read_raw,
 	.write_raw = hts221_write_raw,
+	.read_avail = hts221_read_avail,
 	.validate_trigger = hts221_validate_trigger,
 };
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0092/2651] dt-bindings: iio: light: ltr501: Sort compatible enum array
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (90 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0091/2651] iio: humidity: hts221: report available values via read_avail() Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0093/2651] dt-bindings: iio: light: ltr501: Add missing ltr303 compatible Greg Kroah-Hartman
                   ` (99 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Krzysztof Kozlowski,
	Kuppuswamy Sathyanarayanan, Esben Haabendal, Andy Shevchenko,
	Jonathan Cameron, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Esben Haabendal <esben@geanix.com>

[ Upstream commit 6c430006fbcb63dc8baee3c3bf356b264ba7f61e ]

Restore alphabetical sorting of the properties.compatible.enum array.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Acked-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Esben Haabendal <esben@geanix.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Stable-dep-of: 198ed7962e42 ("dt-bindings: iio: light: ltr501: Add missing ltr303 compatible")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
index c8074f180a793..480523ca37500 100644
--- a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
+++ b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
@@ -15,9 +15,9 @@ allOf:
 properties:
   compatible:
     enum:
+      - liteon,ltr301
       - liteon,ltr501
       - liteon,ltr559
-      - liteon,ltr301
 
   reg:
     maxItems: 1
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0093/2651] dt-bindings: iio: light: ltr501: Add missing ltr303 compatible
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (91 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0092/2651] dt-bindings: iio: light: ltr501: Sort compatible enum array Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0094/2651] iio: temperature: tmp117: fix calibbias cache update on I2C write failure Greg Kroah-Hartman
                   ` (98 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Krzysztof Kozlowski,
	Kuppuswamy Sathyanarayanan, Esben Haabendal, Andy Shevchenko,
	Jonathan Cameron, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Esben Haabendal <esben@geanix.com>

[ Upstream commit 198ed7962e42f1e45b7f48b9abc70aad9e3185f8 ]

When support for ltr303 was back in 2021, the bindings documentation was
not updated accordingly.

Fixes: 7d71d289e1ba ("iio: light: ltr501: Added ltr303 driver support")
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Acked-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Esben Haabendal <esben@geanix.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
index 480523ca37500..6234e2eaec2e4 100644
--- a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
+++ b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
@@ -16,6 +16,7 @@ properties:
   compatible:
     enum:
       - liteon,ltr301
+      - liteon,ltr303
       - liteon,ltr501
       - liteon,ltr559
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0094/2651] iio: temperature: tmp117: fix calibbias cache update on I2C write failure
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (92 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0093/2651] dt-bindings: iio: light: ltr501: Add missing ltr303 compatible Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0095/2651] iio: pressure: rohm-bm1390: Fix AVE_NUM initialization Greg Kroah-Hartman
                   ` (97 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Salah Triki, Jonathan Cameron,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Salah Triki <salah.triki@gmail.com>

[ Upstream commit 61fff9cebbfdf39bbd04d366882476d1def14047 ]

The calibbias cache (data->calibbias) was updated before the I2C
write to TMP117_REG_TEMP_OFFSET was known to succeed. If the write
failed, the function correctly returned an error, but the driver's
internal cache had already been updated to the new value.

This causes the cache and the actual hardware register to go out of
sync: a subsequent write of the same value would be silently
skipped by the early "if (off == data->calibbias) return 0;" check,
since the cache matches even though the register was never
successfully updated.

Update data->calibbias only after confirming the I2C write
succeeded, so the cache always reflects the actual state of the
device.

Found by code inspection.

Fixes: df041e737a38 ("iio: temperature: add driver support for ti tmp117")
Signed-off-by: Salah Triki <salah.triki@gmail.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/iio/temperature/tmp117.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/temperature/tmp117.c b/drivers/iio/temperature/tmp117.c
index 74cb8d62bef3c..3d8c97aa0d998 100644
--- a/drivers/iio/temperature/tmp117.c
+++ b/drivers/iio/temperature/tmp117.c
@@ -97,15 +97,20 @@ static int tmp117_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec
 {
 	struct tmp117_data *data = iio_priv(indio_dev);
 	s16 off;
+	int ret;
 
 	switch (mask) {
 	case IIO_CHAN_INFO_CALIBBIAS:
 		off = clamp_t(int, val, S16_MIN, S16_MAX);
 		if (off == data->calibbias)
 			return 0;
+
+		ret = i2c_smbus_write_word_swapped(data->client, TMP117_REG_TEMP_OFFSET, off);
+		if (ret)
+			return ret;
+
 		data->calibbias = off;
-		return i2c_smbus_write_word_swapped(data->client,
-						TMP117_REG_TEMP_OFFSET, off);
+		return 0;
 
 	default:
 		return -EINVAL;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0095/2651] iio: pressure: rohm-bm1390: Fix AVE_NUM initialization
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (93 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0094/2651] iio: temperature: tmp117: fix calibbias cache update on I2C write failure Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0096/2651] clk: meson: t7: keep the memory fabric clocks running Greg Kroah-Hartman
                   ` (96 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Matti Vaittinen, Jonathan Cameron,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Matti Vaittinen <mazziesaccount@gmail.com>

[ Upstream commit 64f4173ad1a7f1b247296c84e624f5095be170c7 ]

The BM1390 tries to initialize the AVE_NUM to 110b at the start-up. The
field location is not taken into account, and value is written unsifted.
This causes the AVE_NUM to be initialized to zero.

Use FIELD_PREP() to shift the intended AVE_NUM value to correct field.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Fixes: 81ca5979b6ed ("iio: pressure: Support ROHM BU1390")
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/iio/pressure/rohm-bm1390.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/iio/pressure/rohm-bm1390.c b/drivers/iio/pressure/rohm-bm1390.c
index f9deb48e6a41c..d1268c289831d 100644
--- a/drivers/iio/pressure/rohm-bm1390.c
+++ b/drivers/iio/pressure/rohm-bm1390.c
@@ -479,6 +479,7 @@ static const struct iio_info bm1390_info = {
 
 static int bm1390_chip_init(struct bm1390_data *data)
 {
+	u8 regval;
 	int ret;
 
 	ret = regmap_write_bits(data->regmap, BM1390_REG_POWER,
@@ -512,8 +513,9 @@ static int bm1390_chip_init(struct bm1390_data *data)
 	 * Default to use IIR filter in "middle" mode. Also the AVE_NUM must
 	 * be fixed when IIR is in use.
 	 */
+	regval = FIELD_PREP(BM1390_MASK_AVE_NUM, BM1390_IIR_AVE_NUM);
 	ret = regmap_update_bits(data->regmap, BM1390_REG_MODE_CTRL,
-				 BM1390_MASK_AVE_NUM, BM1390_IIR_AVE_NUM);
+				 BM1390_MASK_AVE_NUM, regval);
 	if (ret)
 		return ret;
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0096/2651] clk: meson: t7: keep the memory fabric clocks running
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (94 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0095/2651] iio: pressure: rohm-bm1390: Fix AVE_NUM initialization Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0097/2651] ata: pata_parport: Fix use-after-free in new_device_store Greg Kroah-Hartman
                   ` (95 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Lucas Tanure, Jerome Brunet,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Lucas Tanure <tanure@linux.com>

[ Upstream commit 43e1705ecab981c66baee89041e6f728c0436f19 ]

Four clocks feed the bus that moves data between the peripherals and
memory. Nothing in Linux claims them, so they were switched off shortly
after boot, and any device that started a transfer after that point
simply stopped. The SD card, which comes up about two seconds in, never
finished reading its identification.

There is no device these clocks belong to, so mark them as always
needed.

Fixes: fab4d651b592 ("clk: meson: t7: add t7 clock peripherals controller driver")
Assisted-by: Claude:claude-opus-5
Signed-off-by: Lucas Tanure <tanure@linux.com>
Link: https://patch.msgid.link/20260829094758.23248-2-tanure@linux.com
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/clk/meson/t7-peripherals.c | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/drivers/clk/meson/t7-peripherals.c b/drivers/clk/meson/t7-peripherals.c
index 214db7850d865..55d09e78593b0 100644
--- a/drivers/clk/meson/t7-peripherals.c
+++ b/drivers/clk/meson/t7-peripherals.c
@@ -945,11 +945,16 @@ static T7_SYS_PCLK(sys_aucpu,		SYS_CLK_EN0_REG0, 14,	0);
 static T7_SYS_PCLK(sys_cec,		SYS_CLK_EN0_REG0, 16,	0);
 static T7_SYS_PCLK(sys_gdc,		SYS_CLK_EN0_REG0, 17,	0);
 static T7_SYS_PCLK(sys_deswarp,		SYS_CLK_EN0_REG0, 18,	0);
-static T7_SYS_PCLK(sys_ampipe_nand,	SYS_CLK_EN0_REG0, 19,	0);
+/*
+ * NOTE: sys_ampipe_nand and sys_am2axi0..2 provide the clock to the AXI bus
+ * used for DMA between the peripherals and the DRAM. After the clocks are
+ * disabled, a device that starts a transfer cannot complete it.
+ */
+static T7_SYS_PCLK(sys_ampipe_nand,	SYS_CLK_EN0_REG0, 19,	CLK_IS_CRITICAL);
 static T7_SYS_PCLK(sys_ampipe_eth,	SYS_CLK_EN0_REG0, 20,	0);
-static T7_SYS_PCLK(sys_am2axi0,		SYS_CLK_EN0_REG0, 21,	0);
-static T7_SYS_PCLK(sys_am2axi1,		SYS_CLK_EN0_REG0, 22,	0);
-static T7_SYS_PCLK(sys_am2axi2,		SYS_CLK_EN0_REG0, 23,	0);
+static T7_SYS_PCLK(sys_am2axi0,		SYS_CLK_EN0_REG0, 21,	CLK_IS_CRITICAL);
+static T7_SYS_PCLK(sys_am2axi1,		SYS_CLK_EN0_REG0, 22,	CLK_IS_CRITICAL);
+static T7_SYS_PCLK(sys_am2axi2,		SYS_CLK_EN0_REG0, 23,	CLK_IS_CRITICAL);
 static T7_SYS_PCLK(sys_sd_emmc_a,	SYS_CLK_EN0_REG0, 24,	0);
 static T7_SYS_PCLK(sys_sd_emmc_b,	SYS_CLK_EN0_REG0, 25,	0);
 static T7_SYS_PCLK(sys_sd_emmc_c,	SYS_CLK_EN0_REG0, 26,	0);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0097/2651] ata: pata_parport: Fix use-after-free in new_device_store
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (95 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0096/2651] clk: meson: t7: keep the memory fabric clocks running Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0098/2651] ARM: dts: helios4: fix lm75 supply name Greg Kroah-Hartman
                   ` (94 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Shuangpeng Bai, Pei Xiao,
	Niklas Cassel, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Pei Xiao <xiaopei01@kylinos.cn>

[ Upstream commit bd46a0b22933fb45f4ff009fa4a3836124df34b3 ]

The function new_device_store() calls driver_find() without any
protection against concurrent driver unregistration. This can lead
to a use-after-free (UAF) when a driver is unloaded (via rmmod)
in parallel with a new device addition via sysfs.

The race window exists because driver_find() returns a pointer to
the driver's private data, but does not increase its reference
count. The caller is responsible for ensuring the driver remains
valid, but new_device_store() did not hold any lock or reference
during the lookup and subsequent use.

Concurrently, pata_parport_unregister_driver() releases the
pi_mutex before calling driver_unregister(), allowing new_device_store
to proceed with a stale pointer after the driver has been freed.

Fix this by expanding the critical section protected by pi_mutex
in both functions:

- In new_device_store(): acquire pi_mutex before calling driver_find(),
  and keep it held until all uses of the found driver pointer are
  completed.
- In pata_parport_unregister_driver(): hold pi_mutex throughout the
  entire unregistration process, including the driver_unregister()
  call, so that no concurrent lookup can see a partially removed
  driver.

Thread A (new_device_store)       | Thread B (pata_parport_unregister_driver)
  driver_find("ate")              |
                                  |   mutex_lock(&pi_mutex)
                                  |   idr_remove(&protocols, id)
                                  |   mutex_unlock(&pi_mutex)
                                  |   driver_unregister(&pr->driver)
                                  |   (frees driver_private)
  /* continues using stale driv */|
  -> UAF!                         |

Logs:
BUG: KASAN: slab-use-after-free in driver_find+0xd0/0xd4
Read of size 8 at addr ffffff9f970dc690 by task sh/4737
Call trace:
 show_stack+0x14/0x1c (C)
 dump_stack_lvl+0x70/0x84
 print_report+0xf4/0x5a4
 kasan_report+0xa0/0xe4
 __asan_report_load8_noabort+0x18/0x20
 driver_find+0xd0/0xd4
 new_device_store+0x140/0x30c [pata_parport]
 bus_attr_store+0x5c/0x94
 sysfs_kf_write+0x1c4/0x25c
 ...

Allocated by task 4734:
 kasan_save_stack+0x28/0x4c
 kasan_save_track+0x1c/0x34
 kasan_save_alloc_info+0x3c/0x4c
 __kasan_kmalloc+0x98/0xac
 __kmalloc_cache_noprof+0x158/0x3cc
 bus_add_driver+0x70/0x4d8
 driver_register+0xf0/0x3b0
 pata_parport_register_driver+0xb8/0x1c4 [pata_parport]
 0xffffffc07f5ce014
 do_one_initcall+0xb8/0x36c
 do_init_module+0x230/0x6d4
 ...

Freed by task 4737:
 kasan_save_stack+0x28/0x4c
 kasan_save_track+0x1c/0x34
 kasan_save_free_info+0x48/0x8c
 __kasan_slab_free+0x5c/0x84
 kfree+0x174/0x3e0
 driver_release+0x1c/0x7c
 kobject_put+0x178/0x47c
 driver_find+0x78/0xd4
 new_device_store+0x140/0x30c [pata_parport]
 bus_attr_store+0x5c/0x94
 sysfs_kf_write+0x1c4/0x25c
 ...

Fixes: 246a1c4c6b7f ("ata: pata_parport: add driver (PARIDE replacement)")
Reported-by: Shuangpeng Bai <shuangpeng.kernel@gmail.com>
Closes: https://lore.kernel.org/lkml/20260728024015.2014674-1-shuangpeng.kernel@gmail.com/
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Link: https://lore.kernel.org/r/77dad1184ebd0e1e7ea541d4207568f8bc5ec01f.1785381141.git.xiaopei01@kylinos.cn
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/ata/pata_parport/pata_parport.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/ata/pata_parport/pata_parport.c b/drivers/ata/pata_parport/pata_parport.c
index 40baeac594a9f..cf81a6128f552 100644
--- a/drivers/ata/pata_parport/pata_parport.c
+++ b/drivers/ata/pata_parport/pata_parport.c
@@ -618,8 +618,9 @@ void pata_parport_unregister_driver(struct pi_protocol *pr)
 			break;
 	}
 	idr_remove(&protocols, id);
-	mutex_unlock(&pi_mutex);
 	driver_unregister(&pr->driver);
+	mutex_unlock(&pi_mutex);
+
 }
 EXPORT_SYMBOL_GPL(pata_parport_unregister_driver);
 
@@ -646,18 +647,18 @@ static ssize_t new_device_store(const struct bus_type *bus, const char *buf, siz
 		port_wanted = -1;
 	}
 
+	mutex_lock(&pi_mutex);
 	drv = driver_find(protocol, &pata_parport_bus_type);
 	if (!drv) {
 		if (strcmp(protocol, "auto")) {
 			pr_err("protocol %s not found\n", protocol);
+			mutex_unlock(&pi_mutex);
 			return -EINVAL;
 		}
 		pr_wanted = NULL;
 	} else {
 		pr_wanted = container_of(drv, struct pi_protocol, driver);
 	}
-
-	mutex_lock(&pi_mutex);
 	/* walk all parports */
 	idr_for_each_entry(&parport_list, parport, port_num) {
 		if (port_num == port_wanted || port_wanted == -1) {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0098/2651] ARM: dts: helios4: fix lm75 supply name
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (96 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0097/2651] ata: pata_parport: Fix use-after-free in new_device_store Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0099/2651] ARM: dts: armada-385-clearfog-gtr: fix vmmc property name Greg Kroah-Hartman
                   ` (93 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Rosen Penev, Gregory CLEMENT,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Rosen Penev <rosenp@gmail.com>

[ Upstream commit ef473a83c63e3173ac472e42727e990b923b99db ]

The lm75 driver requests a regulator named "vs" (the +VS power pin
of the chip).  The Helios4 DTS incorrectly used vcc-supply instead
of vs-supply, causing the regulator core to emit:

  lm75 0-004c: supply vs not found, using dummy regulator

Fix the property name to match the binding and the driver.

Fixes: ced8025b569e ("ARM: dts: armada388-helios4")
Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm/boot/dts/marvell/armada-388-helios4.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/marvell/armada-388-helios4.dts b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
index 003b0708e9656..f5ae4bea1211f 100644
--- a/arch/arm/boot/dts/marvell/armada-388-helios4.dts
+++ b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
@@ -200,7 +200,7 @@ usb3-ilimit-hog {
 				temp_sensor: temp@4c {
 					compatible = "ti,lm75";
 					reg = <0x4c>;
-					vcc-supply = <&reg_3p3v>;
+					vs-supply = <&reg_3p3v>;
 				};
 
 				eeprom@53 {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0099/2651] ARM: dts: armada-385-clearfog-gtr: fix vmmc property name
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (97 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0098/2651] ARM: dts: helios4: fix lm75 supply name Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0100/2651] ARM: dts: armada-395-gp: drop unsupported SDHCI clock-frequency Greg Kroah-Hartman
                   ` (92 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Rosen Penev, Gregory CLEMENT,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Rosen Penev <rosenp@gmail.com>

[ Upstream commit 337d10963f601d5a3dfb4b7aa273ca8c0b4d5172 ]

The SDHCI node references the 3.3V regulator through a bare "vmmc"
property, which is not part of the mmc controller DT binding; the
correct property is "vmmc-supply".

Fixes: aecc313490ae ("ARM: dts: mvebu: add support for SolidRun Clearfog GTR")
Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm/boot/dts/marvell/armada-385-clearfog-gtr.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr.dtsi b/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr.dtsi
index 7aa71a9aa1bbc..16e9a258876ce 100644
--- a/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr.dtsi
+++ b/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr.dtsi
@@ -235,7 +235,7 @@ sdhci@d8000 {
 				pinctrl-0 = <&cf_gtr_sdhci_pins>;
 				pinctrl-names = "default";
 				status = "okay";
-				vmmc = <&reg_3p3v>;
+				vmmc-supply = <&reg_3p3v>;
 				wp-inverted;
 			};
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0100/2651] ARM: dts: armada-395-gp: drop unsupported SDHCI clock-frequency
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (98 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0099/2651] ARM: dts: armada-385-clearfog-gtr: fix vmmc property name Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0101/2651] ARM: dts: armada-388-helios4: fix vmmc property name Greg Kroah-Hartman
                   ` (91 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Rosen Penev, Gregory CLEMENT,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Rosen Penev <rosenp@gmail.com>

[ Upstream commit a56183c7f15215d804290808a2b5a1fa997aa9cd ]

The SDHCI node carries a "clock-frequency" property, but the
marvell,armada-380-sdhci binding does not define it and dtbs_check
rejects the node as a result. No driver consumes it either: only a
few other sdhci-pltfm based drivers (imx, mcf, iproc, arasan,
dwcmshc, xenon) read that property, while sdhci-pxav3 derives the
maximum clock from the io clock rate.

Remove the property.

Fixes: 356645123581 ("ARM: dts: mvebu: armada-395-gp: add support for the Armada 395 GP Board")
Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm/boot/dts/marvell/armada-395-gp.dts | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/boot/dts/marvell/armada-395-gp.dts b/arch/arm/boot/dts/marvell/armada-395-gp.dts
index 6dd9e9077f842..9ea447cd35a85 100644
--- a/arch/arm/boot/dts/marvell/armada-395-gp.dts
+++ b/arch/arm/boot/dts/marvell/armada-395-gp.dts
@@ -59,7 +59,6 @@ sata@a8000 {
 
 			/* CON18 */
 			sdhci@d8000 {
-				clock-frequency = <200000000>;
 				broken-cd;
 				wp-inverted;
 				bus-width = <8>;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0101/2651] ARM: dts: armada-388-helios4: fix vmmc property name
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (99 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0100/2651] ARM: dts: armada-395-gp: drop unsupported SDHCI clock-frequency Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0102/2651] selftests/filesystems: Add .gitignore for fscontext_ns_test Greg Kroah-Hartman
                   ` (90 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Rosen Penev, Gregory CLEMENT,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Rosen Penev <rosenp@gmail.com>

[ Upstream commit 008e9faadef8c0aaa9b8a3ff05a2126e3c5b08b7 ]

The sdhci@d8000 node references the 3.3V regulator through a bare
"vmmc" property, which is not part of the mmc controller DT
binding. The binding requires supply properties in the form
"vmmc-supply", so the current entry is ignored by the driver.

Rename the property to "vmmc-supply" so the fixed regulator is
correctly wired up as the card power supply.

Fixes: ced8025b569e ("ARM: dts: armada388-helios4")
Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm/boot/dts/marvell/armada-388-helios4.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/marvell/armada-388-helios4.dts b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
index f5ae4bea1211f..0545452a983fc 100644
--- a/arch/arm/boot/dts/marvell/armada-388-helios4.dts
+++ b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
@@ -269,7 +269,7 @@ sdhci@d8000 {
 					     &helios_sdhci_cd_pins>;
 				pinctrl-names = "default";
 				status = "okay";
-				vmmc = <&reg_3p3v>;
+				vmmc-supply = <&reg_3p3v>;
 				wp-inverted;
 			};
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0102/2651] selftests/filesystems: Add .gitignore for fscontext_ns_test
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (100 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0101/2651] ARM: dts: armada-388-helios4: fix vmmc property name Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0103/2651] ARM: dts: helios4: fix vbus-supply for USB2 PHY Greg Kroah-Hartman
                   ` (89 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Mahad Ibrahim,
	Christian Brauner (Amutable), Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Mahad Ibrahim <mahad.ibrahim.dev@gmail.com>

[ Upstream commit b573f7966695470dd9f5659d32681e7e2821d426 ]

fscontext_ns_test is listed in TEST_GEN_PROGS and is built in the
fscontext_ns directory, but the directory has no .gitignore. The binary
is thus left untracked by git after being compiled.

git status lists:

  Untracked files:
    (use "git add <file>..." to include in what will be committed)
	  tools/testing/selftests/filesystems/fscontext_ns/fscontext_ns_test

Every test directory must include a .gitignore which contains all the
generated objects, as per the documentation and convention.

Add .gitignore to ignore fscontext_ns_test.

Fixes: d64ba78b749a ("selftests/filesystems: test completing a context from another user namespace")
Signed-off-by: Mahad Ibrahim <mahad.ibrahim.dev@gmail.com>
Link: https://patch.msgid.link/20260819161738.3517-1-mahad.ibrahim.dev@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/testing/selftests/filesystems/fscontext_ns/.gitignore | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 tools/testing/selftests/filesystems/fscontext_ns/.gitignore

diff --git a/tools/testing/selftests/filesystems/fscontext_ns/.gitignore b/tools/testing/selftests/filesystems/fscontext_ns/.gitignore
new file mode 100644
index 0000000000000..a632905257a33
--- /dev/null
+++ b/tools/testing/selftests/filesystems/fscontext_ns/.gitignore
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+fscontext_ns_test
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0103/2651] ARM: dts: helios4: fix vbus-supply for USB2 PHY
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (101 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0102/2651] selftests/filesystems: Add .gitignore for fscontext_ns_test Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0104/2651] ARM: dts: helios4: fix spi1 location Greg Kroah-Hartman
                   ` (88 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Rosen Penev, Gregory CLEMENT,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Rosen Penev <rosenp@gmail.com>

[ Upstream commit a132798a133e76a7bb575ba95b2b64eadd245438 ]

The usb-nop-xceiv binding and driver use "vbus-supply"; the driver
acquires the VBUS regulator via devm_regulator_get_exclusive("vbus")
(phy-generic.c). The stale "vbus-regulator" name is never read by
the driver and dtbs_check rejects it as an unknown property. Rename
the property so reg_5p0v_usb is honored.

Fixes: ced8025b569e ("ARM: dts: armada388-helios4")
Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm/boot/dts/marvell/armada-388-helios4.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/marvell/armada-388-helios4.dts b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
index 0545452a983fc..1ed6ddf1719a7 100644
--- a/arch/arm/boot/dts/marvell/armada-388-helios4.dts
+++ b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
@@ -140,7 +140,7 @@ fan2: j17-pwm {
 
 	usb2_phy: usb2-phy {
 		compatible = "usb-nop-xceiv";
-		vbus-regulator = <&reg_5p0v_usb>;
+		vbus-supply = <&reg_5p0v_usb>;
 	};
 
 	usb3_phy: usb3-phy {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0104/2651] ARM: dts: helios4: fix spi1 location
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (102 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0103/2651] ARM: dts: helios4: fix vbus-supply for USB2 PHY Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0105/2651] kexec_file: stop the top-down search before it underflows Greg Kroah-Hartman
                   ` (87 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Rosen Penev, Gregory CLEMENT,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Rosen Penev <rosenp@gmail.com>

[ Upstream commit 5df4320a30a87f9bb918ace7b389026917c8d896 ]

This spi node is specified in armada-38x.dtsi with proper compatible
strings whereas they are not present here. Instead of copy and pasting
various lines, just reference the node in the dtsi.

This dts seems to predate the move of spi from internal-regs to the soc
node so this moves it in line there.

Allows proper probing of SPI at runtime.

Remove the microsom_spi1_cs_pins pinctrl group and its reference in
&spi1. The group only muxed mpp59 to the "spi1" function, but that
pin (SPI1 cs0) is already covered by spi1_pins, which selects the
same function for mpp56-59 in armada-38x.dtsi.

Fixes: ced8025b569e ("ARM: dts: armada388-helios4")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../arm/boot/dts/marvell/armada-388-helios4.dts | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/arch/arm/boot/dts/marvell/armada-388-helios4.dts b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
index 1ed6ddf1719a7..33e30528bc7ca 100644
--- a/arch/arm/boot/dts/marvell/armada-388-helios4.dts
+++ b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
@@ -254,13 +254,6 @@ sata3: sata-port@1 {
 				};
 			};
 
-			spi@10680 {
-				pinctrl-0 = <&spi1_pins
-					     &microsom_spi1_cs_pins>;
-				pinctrl-names = "default";
-				status = "okay";
-			};
-
 			sdhci@d8000 {
 				bus-width = <4>;
 				cd-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
@@ -327,11 +320,13 @@ helios_fan2_pins: helios_fan2_pins {
 					marvell,pins = "mpp48", "mpp55";
 					marvell,function = "gpio";
 				};
-				microsom_spi1_cs_pins: spi1-cs-pins {
-					marvell,pins = "mpp59";
-					marvell,function = "spi1";
-				};
 			};
 		};
 	};
 };
+
+&spi1 {
+	pinctrl-0 = <&spi1_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0105/2651] kexec_file: stop the top-down search before it underflows
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (103 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0104/2651] ARM: dts: helios4: fix spi1 location Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0106/2651] perf jitdump: Fix extended header read that always fails Greg Kroah-Hartman
                   ` (86 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Breno Leitao, Bradley Morgan,
	Mike Rapoport (Microsoft), Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Breno Leitao <leitao@debian.org>

[ Upstream commit c711461303af9f796b293b5ac06f49a885e46e71 ]

locate_mem_hole_top_down() walks candidates downwards by subtracting
PAGE_SIZE whenever the window conflicts with an existing segment or with
an architecture exclude range.

Nothing stops that subtraction at zero, so a search that reaches the
bottom of the address space wraps temp_start around and continues.

The walk starts inside the range being scanned and only moves down, so
bail out once a candidate ends up above end. That covers every step in
the loop rather than the subtractions alone, and it matches
locate_mem_hole_bottom_up(), which already bounds its candidate on both
sides.

This is a better check than subtracting with check_sub_overflow(), given
that we would have 3 subtractions in this block, and this single fix
would take care of them all (instead of three check_sub_overflow()).

Fixes: cb1052581e2b ("kexec: implementation of new syscall kexec_file_load")
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Bradley Morgan <include@grrlz.net>
Link: https://patch.msgid.link/20260812-kexec_posioned-v6-1-e477887086f0@debian.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 kernel/kexec_file.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c
index 59fb9d71e9d86..01a64d98fbcd7 100644
--- a/kernel/kexec_file.c
+++ b/kernel/kexec_file.c
@@ -484,7 +484,9 @@ static int locate_mem_hole_top_down(unsigned long start, unsigned long end,
 		/* align down start */
 		temp_start = ALIGN_DOWN(temp_start, kbuf->buf_align);
 
-		if (temp_start < start || temp_start < kbuf->buf_min)
+		/* A candidate above the range means the walk wrapped around */
+		if (temp_start < start || temp_start < kbuf->buf_min ||
+		    temp_start > end)
 			return 0;
 
 		temp_end = temp_start + kbuf->memsz - 1;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0106/2651] perf jitdump: Fix extended header read that always fails
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (104 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0105/2651] kexec_file: stop the top-down search before it underflows Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0107/2651] perf jitdump: Fix debug_data and unwinding_data leaks Greg Kroah-Hartman
                   ` (85 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stephane Eranian, Namhyung Kim, Arnaldo Carvalho de Melo,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit 598e905931380f0714d5fd50cecfac615a1ec742 ]

jit_open() sets bsz = bs before the fread() that uses bs - bsz as the
read size, making the expression always evaluate to zero.  fread() with
size 0 returns 0, which triggers the ret != 1 error path — so extended
jitdump headers (total_size > sizeof(header)) have been silently broken
since the original implementation.

Additionally, when 0 < bs <= bsz the if (bs > bsz) block is skipped
entirely, leaving extended header bytes unread in the stream.  Subsequent
jit_get_next_entry() calls then parse those leftover bytes as a
jr_prefix, corrupting the record stream.

Fix by separating the buffer growth from the read: realloc only when
bs > bsz, then unconditionally fread bs bytes when bs > 0.

Fixes: 9b07e27f88b9cd78 ("perf inject: Add jitdump mmap injection support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index 83005b30b9bf3..4b7c7ba7cd95d 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -224,10 +224,12 @@ jit_open(struct jit_buf_desc *jd, const char *name)
 		n = realloc(buf, bs);
 		if (!n)
 			goto error;
-		bsz = bs;
 		buf = n;
-		/* read extra we do not know about */
-		ret = fread(buf, bs - bsz, 1, jd->in);
+		bsz = bs;
+	}
+	if (bs > 0) {
+		/* consume extended header bytes from the stream */
+		ret = fread(buf, bs, 1, jd->in);
 		if (ret != 1)
 			goto error;
 	}
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0107/2651] perf jitdump: Fix debug_data and unwinding_data leaks
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (105 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0106/2651] perf jitdump: Fix extended header read that always fails Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0108/2651] perf jitdump: Validate code_size against total_size in code load Greg Kroah-Hartman
                   ` (84 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stephane Eranian, Arnaldo Carvalho de Melo, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit 2bd967f3adcba1d3e54f10b0d8b25f950e4f03fd ]

jit_repipe_debug_info() overwrites jd->debug_data without freeing the
previous allocation.  If two consecutive JIT_CODE_DEBUG_INFO records
appear without an intervening LOAD record consuming the data, the first
allocation leaks.

The sibling jit_repipe_unwinding_info() already frees the old
jd->unwinding_data before reassignment — add the same pattern to
jit_repipe_debug_info() using zfree().

Also add cleanup of both buffers in jit_close() so they are freed when
the jitdump session ends, even if no LOAD record consumed them.

Fixes: 9b07e27f88b9 ("perf inject: Add jitdump mmap injection support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index 4b7c7ba7cd95d..dcb26d9c6c8fc 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -117,6 +117,8 @@ jit_close(struct jit_buf_desc *jd)
 	funlockfile(jd->in);
 	fclose(jd->in);
 	jd->in = NULL;
+	zfree(&jd->debug_data);
+	zfree(&jd->unwinding_data);
 }
 
 static int
@@ -665,6 +667,7 @@ static int jit_repipe_debug_info(struct jit_buf_desc *jd, union jr_entry *jr)
 
 	memcpy(data, &jr->info.entries, sz);
 
+	zfree(&jd->debug_data);
 	jd->debug_data       = data;
 
 	/*
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0108/2651] perf jitdump: Validate code_size against total_size in code load
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (106 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0107/2651] perf jitdump: Fix debug_data and unwinding_data leaks Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0109/2651] perf jitdump: Prevent integer underflow in debug info size calculation Greg Kroah-Hartman
                   ` (83 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stephane Eranian, Arnaldo Carvalho de Melo, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit 06c7cf7a072fcd52e68471628c56630d2bdcc650 ]

jit_repipe_code_load() reads code_size from the jitdump record and uses
it to compute a pointer to the code blob:

  code = (unsigned long)jr + jr->load.p.total_size - csize;

An oversized code_size underflows the pointer arithmetic, causing OOB
reads into earlier heap memory.  Validate that code_size fits within the
record (total_size - sizeof(jr->load)) before the pointer computation.

code_size is uint64_t but csize is int; values above INT_MAX wrap
negative when narrowed into csize, which defeats the bounds check and
sends the code pointer past the end of the record.  Reject those too.

Fixes: 9b07e27f88b9 ("perf inject: Add jitdump mmap injection support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index dcb26d9c6c8fc..14bd23c8d1963 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -9,6 +9,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <inttypes.h>
+#include <limits.h>
 #include <byteswap.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
@@ -452,6 +453,16 @@ static int jit_repipe_code_load(struct jit_buf_desc *jd, union jr_entry *jr)
 	csize = jr->load.code_size;
 	usize = jd->unwinding_mapped_size;
 	addr  = jr->load.code_addr;
+
+	/* code blob lives at the end of the record, validate it fits */
+	if (jr->load.p.total_size < sizeof(jr->load) ||
+	    jr->load.code_size > jr->load.p.total_size - sizeof(jr->load) ||
+	    jr->load.code_size > INT_MAX) {
+		pr_warning("jitdump: invalid code_size %" PRIu64 " (total_size=%u) in code_load record\n",
+			   (uint64_t)jr->load.code_size, jr->load.p.total_size);
+		return -1;
+	}
+
 	sym   = (void *)((unsigned long)jr + sizeof(jr->load));
 	code  = (unsigned long)jr + jr->load.p.total_size - csize;
 	count = jr->load.code_index;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0109/2651] perf jitdump: Prevent integer underflow in debug info size calculation
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (107 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0108/2651] perf jitdump: Validate code_size against total_size in code load Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0110/2651] perf jitdump: Bounds-check debug entry byte-swap loop Greg Kroah-Hartman
                   ` (82 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stephane Eranian, Stefano Sanfilippo, Arnaldo Carvalho de Melo,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit dfe8fe96efca3c32979dc0859f88e15b677d25f1 ]

jit_repipe_debug_info() and jit_repipe_unwinding_info() compute payload
sizes by subtracting the fixed header size from total_size:

  sz = jr->prefix.total_size - sizeof(jr->info);

When total_size is smaller than the header struct (from a truncated or
corrupted jitdump record), the subtraction underflows to a massive
value, causing an oversized allocation followed by an OOB memcpy.

Validate that total_size covers at least the fixed header before the
subtraction in both functions.

Fixes: 598b7c6919c7 ("perf jit: add source line info support")
Fixes: 0284fecd13b6 ("perf jit: Add unwinding support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Stefano Sanfilippo <ssanfilippo@chromium.org>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index 14bd23c8d1963..f79e9420c6bd7 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -671,6 +671,10 @@ static int jit_repipe_debug_info(struct jit_buf_desc *jd, union jr_entry *jr)
 	if (!(jd && jr))
 		return -1;
 
+	/* total_size must cover at least the fixed header */
+	if (jr->prefix.total_size < sizeof(jr->info))
+		return -1;
+
 	sz  = jr->prefix.total_size - sizeof(jr->info);
 	data = malloc(sz);
 	if (!data)
@@ -699,6 +703,10 @@ jit_repipe_unwinding_info(struct jit_buf_desc *jd, union jr_entry *jr)
 	if (!(jd && jr))
 		return -1;
 
+	/* total_size must cover at least the fixed header */
+	if (jr->prefix.total_size < sizeof(jr->unwinding))
+		return -1;
+
 	unwinding_data_size  = jr->prefix.total_size - sizeof(jr->unwinding);
 	unwinding_data = malloc(unwinding_data_size);
 	if (!unwinding_data)
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0110/2651] perf jitdump: Bounds-check debug entry byte-swap loop
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (108 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0109/2651] perf jitdump: Prevent integer underflow in debug info size calculation Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0111/2651] perf jitdump: Check snprintf return before computing header size Greg Kroah-Hartman
                   ` (81 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stephane Eranian, Arnaldo Carvalho de Melo, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit ede3cd8151675c2983cd49104b1e9b25a3712ed8 ]

The byte-swap loop for JIT_CODE_DEBUG_INFO uses array indexing
(jr->info.entries[n]) to iterate debug entries.  struct debug_entry has
a flexible array member name[], so each entry has a different size.
Array indexing computes offsets assuming fixed-size elements, landing
inside variable-length name strings after the first entry and
byte-swapping garbage.

Additionally, nr_entry is read from untrusted jitdump input without
validation against total_size, so a crafted value causes OOB reads.

Replace the array indexing with debug_entry_next() pointer arithmetic
(which correctly accounts for the variable-length name) and
bounds-check each entry against the record's total_size before
byte-swapping.

Fixes: 9b07e27f88b9 ("perf inject: Add jitdump mmap injection support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 26 ++++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index f79e9420c6bd7..7efbaa07f1ba7 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -320,14 +320,32 @@ jit_get_next_entry(struct jit_buf_desc *jd)
 	switch(id) {
 	case JIT_CODE_DEBUG_INFO:
 		if (jd->needs_bswap) {
+			void *end = (void *)jr + jr->prefix.total_size;
+			struct debug_entry *ent;
 			uint64_t n;
+
 			jr->info.code_addr = bswap_64(jr->info.code_addr);
 			jr->info.nr_entry  = bswap_64(jr->info.nr_entry);
-			for (n = 0 ; n < jr->info.nr_entry; n++) {
-				jr->info.entries[n].addr    = bswap_64(jr->info.entries[n].addr);
-				jr->info.entries[n].lineno  = bswap_32(jr->info.entries[n].lineno);
-				jr->info.entries[n].discrim = bswap_32(jr->info.entries[n].discrim);
+
+			/*
+			 * debug_entry has a variable-length name[], so array
+			 * indexing would compute wrong offsets — use
+			 * debug_entry_next() and bounds-check each entry.
+			 */
+			ent = &jr->info.entries[0];
+			for (n = 0; n < jr->info.nr_entry; n++) {
+				if ((void *)ent + sizeof(*ent) > end)
+					break;
+				/* name must be NUL-terminated within the record */
+				if (!memchr(ent->name, '\0', (char *)end - ent->name))
+					break;
+				ent->addr    = bswap_64(ent->addr);
+				ent->lineno  = bswap_32(ent->lineno);
+				ent->discrim = bswap_32(ent->discrim);
+				ent = debug_entry_next(ent);
 			}
+			/* clamp so downstream consumers don't overrun */
+			jr->info.nr_entry = n;
 		}
 		break;
 	case JIT_CODE_UNWINDING_INFO:
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0111/2651] perf jitdump: Check snprintf return before computing header size
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (109 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0110/2651] perf jitdump: Bounds-check debug entry byte-swap loop Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0112/2651] perf jitdump: Fix funlockfile on unlocked stream in jit_open() error path Greg Kroah-Hartman
                   ` (80 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stephane Eranian, Arnaldo Carvalho de Melo, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit 0155f05ea6e133c18a04b8b5945cac59870da156 ]

snprintf() returns the would-have-been length on truncation.  When the
jitted filename exceeds PATH_MAX, the unclamped 'size' value inflates
sizeof(event->mmap2.filename) - size into a massive underflow, causing
the header.size computation to write an oversized header.  The
subsequent write to 'id = event + header.size - idr_size' then corrupts
the heap.

Clamp size to PATH_MAX - 1 after snprintf in both jit_repipe_code_load()
and jit_repipe_code_move().

Fixes: 9b07e27f88b9 ("perf inject: Add jitdump mmap injection support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index 7efbaa07f1ba7..45f0e21b0e780 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -495,6 +495,9 @@ static int jit_repipe_code_load(struct jit_buf_desc *jd, union jr_entry *jr)
 			jd->dir,
 			nspid,
 			count);
+	/* snprintf returns would-be length on truncation, clamp to buffer */
+	if (size >= sizeof(event->mmap2.filename))
+		size = sizeof(event->mmap2.filename) - 1;
 
 	size++; /* for \0 */
 
@@ -625,6 +628,9 @@ static int jit_repipe_code_move(struct jit_buf_desc *jd, union jr_entry *jr)
 	         jd->dir,
 		 nspid,
 		 jr->move.code_index);
+	/* snprintf returns would-be length on truncation, clamp to buffer */
+	if (size >= sizeof(event->mmap2.filename))
+		size = sizeof(event->mmap2.filename) - 1;
 
 	size++; /* for \0 */
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0112/2651] perf jitdump: Fix funlockfile on unlocked stream in jit_open() error path
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (110 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0111/2651] perf jitdump: Check snprintf return before computing header size Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0113/2651] perf jitdump: Free event in jit_repipe_code_move() Greg Kroah-Hartman
                   ` (79 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stephane Eranian, Arnaldo Carvalho de Melo, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit bfde6848c1e24fd979d0138c57c1cc28c35093c3 ]

If the malloc() for the initial read buffer fails, jit_open() jumps to
the error label which calls funlockfile(jd->in).  However, flockfile()
is called later in the function, so at this point the stream was never
locked.  Calling funlockfile() on an unlocked stream is undefined
behavior per POSIX.

Split the error path into two labels: 'error' (after flockfile) calls
funlockfile before cleanup, 'error_noflock' (before flockfile) skips
the unlock.

Fixes: 9b07e27f88b9 ("perf inject: Add jitdump mmap injection support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index 45f0e21b0e780..ae63366b86c6d 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -157,7 +157,7 @@ jit_open(struct jit_buf_desc *jd, const char *name)
 
 	buf = malloc(bsz);
 	if (!buf)
-		goto error;
+		goto error_noflock;
 
 	/*
 	 * protect from writer modifying the file while we are reading it
@@ -246,8 +246,9 @@ jit_open(struct jit_buf_desc *jd, const char *name)
 
 	return 0;
 error:
-	free(buf);
 	funlockfile(jd->in);
+error_noflock:
+	free(buf);
 	fclose(jd->in);
 	return retval;
 }
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0113/2651] perf jitdump: Free event in jit_repipe_code_move()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (111 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0112/2651] perf jitdump: Fix funlockfile on unlocked stream in jit_open() error path Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0114/2651] perf jitdump: Use dirname() return value in jit_open() Greg Kroah-Hartman
                   ` (78 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stephane Eranian, Arnaldo Carvalho de Melo, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit 7fc5851aac606b9e4143f6857710cc5f346770c5 ]

jit_repipe_code_move() allocates a perf_event with calloc but never
frees it — the 'out' label exits with only perf_sample__exit().

The sibling function jit_repipe_code_load() correctly calls
free(event) at its out label.  Add the same free(event) to
jit_repipe_code_move().

Fixes: 9b07e27f88b9 ("perf inject: Add jitdump mmap injection support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index ae63366b86c6d..91aa1eea8229f 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -685,6 +685,7 @@ static int jit_repipe_code_move(struct jit_buf_desc *jd, union jr_entry *jr)
 		build_id__mark_dso_hit(tool, event, &sample, jd->machine);
 out:
 	perf_sample__exit(&sample);
+	free(event);
 	return ret;
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0114/2651] perf jitdump: Use dirname() return value in jit_open()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (112 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0113/2651] perf jitdump: Free event in jit_repipe_code_move() Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0115/2651] perf jitdump: Validate debug entries on native (non-swap) path Greg Kroah-Hartman
                   ` (77 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stephane Eranian, Arnaldo Carvalho de Melo, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit 4eddf7d9e341eb8c41704b8aa27b4a91f4e2c7c9 ]

jit_open() calls dirname(jd->dir) but ignores the return value.  POSIX
says dirname() may return a pointer to internal static storage — glibc
does this when the path has no '/', returning "." from a static buffer
and leaving jd->dir unchanged with the original filename.

Capture the return value and copy it back to jd->dir when dirname()
returns a different pointer.

Fixes: 9b07e27f88b9 ("perf inject: Add jitdump mmap injection support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index 91aa1eea8229f..d3de307532d55 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -146,6 +146,7 @@ jit_open(struct jit_buf_desc *jd, const char *name)
 	ssize_t bs, bsz = 0;
 	void *n, *buf = NULL;
 	int ret, retval = -1;
+	char *dname;
 
 	nsinfo__mountns_enter(jd->nsi, &nsc);
 	jd->in = fopen(name, "r");
@@ -241,7 +242,9 @@ jit_open(struct jit_buf_desc *jd, const char *name)
 	 */
 	strncpy(jd->dir, name, PATH_MAX - 1);
 	jd->dir[PATH_MAX - 1] = '\0';
-	dirname(jd->dir);
+	dname = dirname(jd->dir);
+	if (dname != jd->dir)
+		strlcpy(jd->dir, dname, sizeof(jd->dir));
 	free(buf);
 
 	return 0;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0115/2651] perf jitdump: Validate debug entries on native (non-swap) path
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (113 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0114/2651] perf jitdump: Use dirname() return value in jit_open() Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0116/2651] perf jitdump: Validate sym string NUL-termination in code load Greg Kroah-Hartman
                   ` (76 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stephane Eranian, Arnaldo Carvalho de Melo, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit 51e14e495f0cea061bbad33e7635f7fd857113ad ]

The bounds-checking and nr_entry clamping added for the byte-swap path
only runs when jd->needs_bswap is true.  On native-endian files, nr_entry
passes through unvalidated to jit_repipe_debug_info(), which stores it
as jd->nr_debug_entries.  Downstream, jit_process_debug_info() in
genelf_debug.c iterates nr_debug_entries times via debug_entry_next(),
which calls strlen() on each entry's name field — a crafted nr_entry
causes OOB reads and writes.

Add bounds-checked iteration in jit_repipe_debug_info() that validates
each debug_entry fits in the payload and its name is NUL-terminated
before calling debug_entry_next().  Clamp nr_debug_entries to the count
of valid entries.

Fixes: 598b7c6919c7bbcc ("perf jit: add source line info support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 27 ++++++++++++++++++++++-----
 1 file changed, 22 insertions(+), 5 deletions(-)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index d3de307532d55..5a3ea2681fb37 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -694,8 +694,10 @@ static int jit_repipe_code_move(struct jit_buf_desc *jd, union jr_entry *jr)
 
 static int jit_repipe_debug_info(struct jit_buf_desc *jd, union jr_entry *jr)
 {
-	void *data;
-	size_t sz;
+	struct debug_entry *ent;
+	void *data, *end;
+	size_t sz, valid;
+	uint64_t i;
 
 	if (!(jd && jr))
 		return -1;
@@ -715,10 +717,25 @@ static int jit_repipe_debug_info(struct jit_buf_desc *jd, union jr_entry *jr)
 	jd->debug_data       = data;
 
 	/*
-	 * we must use nr_entry instead of size here because
-	 * we cannot distinguish actual entry from padding otherwise
+	 * Clamp nr_debug_entries to entries that actually fit in the
+	 * payload.  The byte-swap path already does this for cross-endian
+	 * files; validate on the native path too, since downstream
+	 * jit_process_debug_info() iterates via debug_entry_next() which
+	 * calls strlen() on each entry's name field.
 	 */
-	jd->nr_debug_entries = jr->info.nr_entry;
+	end = data + sz;
+	ent = data;
+	valid = 0;
+	for (i = 0; i < jr->info.nr_entry; i++) {
+		if ((void *)ent + sizeof(*ent) > end)
+			break;
+		/* name must be NUL-terminated within the payload */
+		if (!memchr(ent->name, '\0', (char *)end - ent->name))
+			break;
+		ent = debug_entry_next(ent);
+		valid++;
+	}
+	jd->nr_debug_entries = valid;
 
 	return 0;
 }
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0116/2651] perf jitdump: Validate sym string NUL-termination in code load
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (114 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0115/2651] perf jitdump: Validate debug entries on native (non-swap) path Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0117/2651] perf jitdump: Validate unwinding sizes against record payload Greg Kroah-Hartman
                   ` (75 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stephane Eranian, Arnaldo Carvalho de Melo, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit 98bfe1142ccbaa5ffdca5dcdddd26f238ad33585 ]

jit_repipe_code_load() computes sym = (void *)jr + sizeof(jr->load) and
passes it to jit_emit_elf() which calls strlen(sym) via jit_write_elf().
If code_size equals total_size - sizeof(jr->load), the sym pointer
aliases the code blob with no NUL terminator, and strlen() scans past
the buffer into adjacent heap memory.

Add a memchr() check to verify the symbol name is NUL-terminated within
the region between the load header and the code blob before use.

Fixes: 598b7c6919c7bbcc ("perf jit: add source line info support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index 5a3ea2681fb37..5898a7d8eb962 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -487,6 +487,13 @@ static int jit_repipe_code_load(struct jit_buf_desc *jd, union jr_entry *jr)
 
 	sym   = (void *)((unsigned long)jr + sizeof(jr->load));
 	code  = (unsigned long)jr + jr->load.p.total_size - csize;
+
+	/* sym string lives between the load header and the code blob */
+	if (!memchr(sym, '\0', code - (unsigned long)sym)) {
+		pr_warning("jitdump: unterminated symbol name in code_load record\n");
+		return -1;
+	}
+
 	count = jr->load.code_index;
 	idr_size = jd->machine->id_hdr_size;
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0117/2651] perf jitdump: Validate unwinding sizes against record payload
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (115 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0116/2651] perf jitdump: Validate sym string NUL-termination in code load Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0118/2651] dt-bindings: display: panel: samsung,s6e8aa5x01: Allow common properties Greg Kroah-Hartman
                   ` (74 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, sashiko-bot, Ian Rogers,
	Stefano Sanfilippo, Stephane Eranian, Arnaldo Carvalho de Melo,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Arnaldo Carvalho de Melo <acme@redhat.com>

[ Upstream commit 92d50319b4f0c0bbee8a236a09063272cd22faab ]

jit_repipe_unwinding_info() copies unwinding_size and eh_frame_hdr_size
from the jitdump record into jd-> fields without checking them against
the actual payload size.  Downstream, jit_add_eh_frame_info() in
genelf.c computes unwinding_table_size = unwinding_size -
eh_frame_hdr_size, which underflows when eh_frame_hdr_size >
unwinding_size.  The result is passed as d->d_size to libelf, causing
an OOB heap read into the output ELF file.

Validate that unwinding_size fits within the record payload and that
eh_frame_hdr_size does not exceed unwinding_size before allocating or
storing the values, so a bogus record cannot force a large allocation
that is then discarded.

mapped_size is likewise taken from the record and was narrowed into an
int for the mmap2 len computation in jit_repipe_code_load() and
jit_repipe_code_move(); values above INT_MAX would turn negative,
producing a wrong mmap2 length.  Use uint64_t for usize so the value
cannot truncate.

Fixes: 0284fecd13b6db3e ("perf jit: Add unwinding support")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stefano Sanfilippo <ssanfilippo@chromium.org>
Cc: Stephane Eranian <eranian@google.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/perf/util/jitdump.c | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index 5898a7d8eb962..d25a9fe9b020c 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -462,7 +462,8 @@ static int jit_repipe_code_load(struct jit_buf_desc *jd, union jr_entry *jr)
 	u16 idr_size;
 	const char *sym;
 	uint64_t count;
-	int ret, csize, usize;
+	int ret, csize;
+	uint64_t usize;
 	pid_t nspid, pid, tid;
 	struct {
 		u32 pid, tid;
@@ -543,7 +544,7 @@ static int jit_repipe_code_load(struct jit_buf_desc *jd, union jr_entry *jr)
 
 	event->mmap2.pgoff = GEN_ELF_TEXT_OFFSET;
 	event->mmap2.start = addr;
-	event->mmap2.len   = usize ? ALIGN_8(csize) + usize : csize;
+	event->mmap2.len   = usize ? ALIGN_8((uint64_t)csize) + usize : (uint64_t)csize;
 	event->mmap2.pid   = pid;
 	event->mmap2.tid   = tid;
 	event->mmap2.ino   = st.st_ino;
@@ -612,7 +613,7 @@ static int jit_repipe_code_move(struct jit_buf_desc *jd, union jr_entry *jr)
 	char *filename;
 	size_t size;
 	struct stat st;
-	int usize;
+	uint64_t usize;
 	u16 idr_size;
 	int ret;
 	pid_t nspid, pid, tid;
@@ -761,6 +762,18 @@ jit_repipe_unwinding_info(struct jit_buf_desc *jd, union jr_entry *jr)
 		return -1;
 
 	unwinding_data_size  = jr->prefix.total_size - sizeof(jr->unwinding);
+
+	/*
+	 * Validate sizes before allocating — jit_add_eh_frame_info()
+	 * computes unwinding_size - eh_frame_hdr_size and uses the
+	 * result as a buffer length for libelf.
+	 */
+	if (jr->unwinding.unwinding_size > unwinding_data_size ||
+	    jr->unwinding.eh_frame_hdr_size > jr->unwinding.unwinding_size) {
+		pr_warning("jitdump: invalid unwinding sizes in unwinding_info record\n");
+		return -1;
+	}
+
 	unwinding_data = malloc(unwinding_data_size);
 	if (!unwinding_data)
 		return -1;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0118/2651] dt-bindings: display: panel: samsung,s6e8aa5x01: Allow common properties
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (116 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0117/2651] perf jitdump: Validate unwinding sizes against record payload Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0119/2651] arm64: dts: apple: t6030: Fix cpus node indentation Greg Kroah-Hartman
                   ` (73 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Konrad Dybcio, Rob Herring (Arm),
	Neil Armstrong, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

[ Upstream commit c3fd78f0f3624fff3dcf55d89326f90000367596 ]

Change additionalProperties to unevaluatedProperties to allow
inheriting properties from panel-common.yaml, preventing this warning:

qcom/sm6125-xiaomi-laurel-sprout.dtb: panel@0 (samsung,s6e8fc0-m1906f9): 'port' does not match any of the regexes: '^pinctrl-[0-9]+$'
        from schema $id: http://devicetree.org/schemas/display/panel/samsung,s6e8aa5x01-ams561ra01.yaml

Fixes: f3e1caef597e ("dt-bindings: display: panel: document Samsung AMS561RA01 panel with S6E8AA5X01 controller")
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260818-topic-sprout_panel_warn_fix-v1-1-ded1e8d5f121@oss.qualcomm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../bindings/display/panel/samsung,s6e8aa5x01-ams561ra01.yaml   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa5x01-ams561ra01.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa5x01-ams561ra01.yaml
index b271de575e150..f04702de1101f 100644
--- a/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa5x01-ams561ra01.yaml
+++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa5x01-ams561ra01.yaml
@@ -34,7 +34,7 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0119/2651] arm64: dts: apple: t6030: Fix cpus node indentation
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (117 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0118/2651] dt-bindings: display: panel: samsung,s6e8aa5x01: Allow common properties Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0120/2651] arm64: dts: apple: t6032: " Greg Kroah-Hartman
                   ` (72 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Janne Grunau, Sven Peter,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Sven Peter <sven@kernel.org>

[ Upstream commit 1c7e2a0cfc902932da41a93202f196a2dab18b71 ]

Drop the extra space indentation of the closing brace of the cpus node.

Fixes: e81af013dbdd ("arm64: dts: apple: Initial T6030 (M3 Pro) device trees")
Reviewed-by: Janne Grunau <j@jannau.net>
Link: https://patch.msgid.link/20260830-b4-apple-dts-fixes-v1-2-cc20f8445754@kernel.org
Signed-off-by: Sven Peter <sven@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/apple/t6030.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/apple/t6030.dtsi b/arch/arm64/boot/dts/apple/t6030.dtsi
index dda9568af11f9..5ff12edfc5532 100644
--- a/arch/arm64/boot/dts/apple/t6030.dtsi
+++ b/arch/arm64/boot/dts/apple/t6030.dtsi
@@ -208,7 +208,7 @@ l2_cache_1: l2-cache-1 {
 			cache-unified;
 			cache-size = <0x1000000>;
 		};
-	 };
+	};
 
 	timer {
 		compatible = "arm,armv8-timer";
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0120/2651] arm64: dts: apple: t6032: Fix cpus node indentation
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (118 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0119/2651] arm64: dts: apple: t6030: Fix cpus node indentation Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0121/2651] arm64: dts: imx95-15x15-frdm: fix duplicated can-phy node names Greg Kroah-Hartman
                   ` (71 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Janne Grunau, Sven Peter,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Sven Peter <sven@kernel.org>

[ Upstream commit db6fccb5a4222ceb9c102a68f0e98a1e40b299af ]

Drop the extra space indentation of the closing brace of the cpus node.

Fixes: 67d9574cf8ed ("arm64: dts: apple: Initial T603[124] (M3 Max and Ultra) device trees")
Reviewed-by: Janne Grunau <j@jannau.net>
Link: https://patch.msgid.link/20260830-b4-apple-dts-fixes-v1-3-cc20f8445754@kernel.org
Signed-off-by: Sven Peter <sven@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/apple/t6032.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/apple/t6032.dtsi b/arch/arm64/boot/dts/apple/t6032.dtsi
index bbf19ecdaaec4..61d044f3a7346 100644
--- a/arch/arm64/boot/dts/apple/t6032.dtsi
+++ b/arch/arm64/boot/dts/apple/t6032.dtsi
@@ -283,7 +283,7 @@ l2_cache_5: l2-cache-5 {
 			cache-unified;
 			cache-size = <0x1000000>;
 		};
-	 };
+	};
 
 	die0: soc@200000000 {
 		compatible = "simple-bus";
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0121/2651] arm64: dts: imx95-15x15-frdm: fix duplicated can-phy node names
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (119 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0120/2651] arm64: dts: apple: t6032: " Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0122/2651] arm64: dts: qcom: glymur-crd: Mark the EC reset gpio as reserved Greg Kroah-Hartman
                   ` (70 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Haibo Chen, Frank Li, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Haibo Chen <haibo.chen@nxp.com>

[ Upstream commit 47580f0648398f837aaa3019ba3b7437ed1dea1b ]

Both the flexcan2 and flexcan5 CAN transceiver PHY nodes use the same
node name "can-phy", which results in a node name collision. Distinguish
them by using unit-less unique names "can-phy0" and "can-phy1".

These two CAN PHYs share their silent pin, this shared GPIO can be
handled by GPIO shared proxy.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Fixes: 9bdfeed989b1 ("arm64: dts: freescale: imx95: Add support for i.MX95 15x15 FRDM board")
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts b/arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts
index 0f43e3be70589..7ed9ff978432e 100644
--- a/arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts
@@ -56,7 +56,7 @@ dmic: dmic {
 		num-channels = <2>;
 	};
 
-	flexcan2_phy: can-phy {
+	flexcan2_phy: can-phy0 {
 		compatible = "nxp,tja1051";
 		#phy-cells = <0>;
 		max-bitrate = <5000000>;
@@ -67,7 +67,7 @@ flexcan2_phy: can-phy {
 		silent-gpios = <&pcal6524 7 GPIO_ACTIVE_HIGH>;
 	};
 
-	flexcan5_phy: can-phy {
+	flexcan5_phy: can-phy1 {
 		compatible = "nxp,tja1051";
 		#phy-cells = <0>;
 		max-bitrate = <5000000>;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0122/2651] arm64: dts: qcom: glymur-crd: Mark the EC reset gpio as reserved
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (120 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0121/2651] arm64: dts: imx95-15x15-frdm: fix duplicated can-phy node names Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0123/2651] arm64: dts: imx8mp-phyboard-pollux-peb-av-10: Fix SAI master assignment Greg Kroah-Hartman
                   ` (69 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Abel Vesa, Bjorn Andersson,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Abel Vesa <abel.vesa@oss.qualcomm.com>

[ Upstream commit 8ab228ebf968fe43afa55630fb98f1069828988e ]

GPIO 65 from TLMM is used by the Embedded Controller as its reset line.
Reserve it to prevent Linux from requesting or reconfiguring it.

Fixes: 9314c6ecace1 ("arm64: dts: qcom: glymur: Enable Glymur CRD board support")
Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260831-dts-qcom-glymur-crd-reserve-ec-reset-gpio-v1-1-4a9da88755d4@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/qcom/glymur-crd.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
index e27c697e31702..4df3ccfee106a 100644
--- a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
+++ b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
@@ -963,7 +963,8 @@ &remoteproc_soccp {
 &tlmm {
 	gpio-reserved-ranges = <4 4>, /* EC TZ Secure I3C */
 			       <10 2>, /* OOB UART */
-			       <44 4>; /* Security SPI (TPM) */
+			       <44 4>, /* Security SPI (TPM) */
+			       <65 1>; /* EC reset */
 
 	edp_bl_en: edp-bl-en-state {
 		pins = "gpio18";
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0123/2651] arm64: dts: imx8mp-phyboard-pollux-peb-av-10: Fix SAI master assignment
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (121 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0122/2651] arm64: dts: qcom: glymur-crd: Mark the EC reset gpio as reserved Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0124/2651] remoteproc: qcom_q6v5_adsp: Fix double jiffies conversion in adsp_start() Greg Kroah-Hartman
                   ` (68 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Primoz Fiser, Chancel Liu, Frank Li,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Primoz Fiser <primoz.fiser@norik.com>

[ Upstream commit 1c3f5701bc0ff5cbe56bdae76157047d47051d44 ]

The dailink_master label was placed on the codec sub-node instead of
the CPU sub-node, configuring the codec as I2S bitclock/frame master
with SAI2 as slave. On this board, BCLK and LRCLK are wired the other
way around: SAI2 must be bus master, with the codec as I2S slave.

Move dailink_master to the CPU sub-node so SAI2 drives BCLK and LRCLK,
fixing broken audio on the PHYTEC phyBOARD-Pollux-i.MX8MP board with
PEB-AV-10 Audio/Video expansion board. Also remove the spurious clocks
property from the codec sub-node, which had no effect in this topology.

Fixes: 7012f551081f ("arm64: dts: imx8mp pollux: add expansion board overlay")
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
Reviewed-by: Chancel Liu <chancel.liu@gmail.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../boot/dts/freescale/imx8mp-phyboard-pollux-peb-av-10.dtsi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-peb-av-10.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-peb-av-10.dtsi
index bb740f845855a..8957b24a7ad2e 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-peb-av-10.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-peb-av-10.dtsi
@@ -77,13 +77,12 @@ sound {
 			"MIC3R", "Microphone Jack",
 			"Microphone Jack", "Mic Bias";
 
-		simple-audio-card,cpu {
+		dailink_master: simple-audio-card,cpu {
 			sound-dai = <&sai2>;
 		};
 
-		dailink_master: simple-audio-card,codec {
+		simple-audio-card,codec {
 			sound-dai = <&codec>;
-			clocks = <&clk IMX8MP_CLK_SAI2>;
 		};
 	};
 };
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0124/2651] remoteproc: qcom_q6v5_adsp: Fix double jiffies conversion in adsp_start()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (122 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0123/2651] arm64: dts: imx8mp-phyboard-pollux-peb-av-10: Fix SAI master assignment Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0125/2651] soc: qcom: smem: fix 32-bit overflow in DDR frequency calculation Greg Kroah-Hartman
                   ` (67 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Anup Vishwakarma, Konrad Dybcio,
	Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>

[ Upstream commit f559ef6316971fe39dc5f5edd6a483429ba03768 ]

adsp_start() computes 5 * HZ, an already-converted jiffies count, and
passes it into msecs_to_jiffies(), which expects milliseconds --
reinterpreting the value and shrinking the intended timeout. Every
other caller (q6v5_start() in qcom_q6v5_mss.c, qcom_pas_start() in
qcom_q6v5_pas.c) passes msecs_to_jiffies(5000) directly, matching
qcom_q6v5_wait_for_start()'s kerneldoc, which documents @timeout as
already being in jiffies.

On CONFIG_HZ=250 this shrinks the intended 5 second timeout to
~1.25 seconds, causing a DSP that legitimately takes 2-3 seconds to
signal ready to be spuriously torn down as a boot failure.

Fix by passing msecs_to_jiffies(5000) directly, matching every other
caller.

Signed-off-by: Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>
Fixes: dc160e449122 ("remoteproc: qcom: Introduce Non-PAS ADSP PIL driver")
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260831-b4-adsp_start_jiffies_fix_upstream-v1-1-9f8cf85ea220@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/remoteproc/qcom_q6v5_adsp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c
index 2e5fb5954fa9e..46d9169a37f6f 100644
--- a/drivers/remoteproc/qcom_q6v5_adsp.c
+++ b/drivers/remoteproc/qcom_q6v5_adsp.c
@@ -430,7 +430,7 @@ static int adsp_start(struct rproc *rproc)
 		goto disable_adsp_clks;
 	}
 
-	ret = qcom_q6v5_wait_for_start(&adsp->q6v5, msecs_to_jiffies(5 * HZ));
+	ret = qcom_q6v5_wait_for_start(&adsp->q6v5, msecs_to_jiffies(5000));
 	if (ret == -ETIMEDOUT) {
 		dev_err(adsp->dev, "start timed out\n");
 		goto disable_adsp_clks;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0125/2651] soc: qcom: smem: fix 32-bit overflow in DDR frequency calculation
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (123 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0124/2651] remoteproc: qcom_q6v5_adsp: Fix double jiffies conversion in adsp_start() Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0126/2651] soc: qcom: smem: Fix byte order in v3 14-frequency parser Greg Kroah-Hartman
                   ` (66 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Gopikrishna Garmidi, Konrad Dybcio,
	Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Gopikrishna Garmidi <gopikrishna.garmidi@oss.qualcomm.com>

[ Upstream commit 7bb5f186784074f2a91d83e191e305238be47103 ]

The DDR frequency in SMEM is reported in kHz and converted to Hz by
multiplying it by 1000. Since the SMEM frequency value is a u32, using
an unsuffixed integer constant causes the multiplication to be performed
with 32-bit arithmetic.

This overflows for DDR frequencies above 4294967 kHz, resulting in an
incorrect frequency being reported through the SMEM DRAM interface.

Use an unsigned long constant for the multiplication so the calculation
is performed with 64-bit arithmetic on the supported Qualcomm platforms.
Apply the fix consistently to the v3, v3.1, v4, v5, and v7 SMEM parsers.

Fixes: 1d234eeafc56 ("soc: qcom: smem: Expose DDR data from SMEM")
Signed-off-by: Gopikrishna Garmidi <gopikrishna.garmidi@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260827-glymur_dramc-v1-1-eba358d504b8@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/soc/qcom/smem_dramc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/soc/qcom/smem_dramc.c b/drivers/soc/qcom/smem_dramc.c
index 63ebe7f6db590..9612230a03bef 100644
--- a/drivers/soc/qcom/smem_dramc.c
+++ b/drivers/soc/qcom/smem_dramc.c
@@ -219,7 +219,7 @@ static void smem_dram_parse_v3_data(struct smem_dram *dram, void *data)
 
 		if (freq_entry->freq_khz && freq_entry->enabled) {
 			u32 freq_khz = le32_to_cpu(freq_entry->freq_khz);
-			dram->frequencies[dram->num_frequencies++] = 1000 * freq_khz;
+			dram->frequencies[dram->num_frequencies++] = 1000UL * freq_khz;
 		}
 	}
 }
@@ -232,7 +232,7 @@ static void smem_dram_parse_v3_14freqs_data(struct smem_dram *dram, void *data)
 		struct ddr_freq_table *freq_entry = &details->ddr_freq_tbl.ddr_freq[i];
 
 		if (freq_entry->freq_khz && freq_entry->enabled)
-			dram->frequencies[dram->num_frequencies++] = 1000 * freq_entry->freq_khz;
+			dram->frequencies[dram->num_frequencies++] = 1000UL * freq_entry->freq_khz;
 	}
 }
 
@@ -248,7 +248,7 @@ static void smem_dram_parse_v4_data(struct smem_dram *dram, void *data)
 
 		if (freq_entry->freq_khz && freq_entry->enabled) {
 			u32 freq_khz = le32_to_cpu(freq_entry->freq_khz);
-			dram->frequencies[dram->num_frequencies++] = 1000 * freq_khz;
+			dram->frequencies[dram->num_frequencies++] = 1000UL * freq_khz;
 		}
 	}
 }
@@ -265,7 +265,7 @@ static void smem_dram_parse_v5_data(struct smem_dram *dram, void *data)
 
 		if (freq_entry->freq_khz && freq_entry->enabled) {
 			u32 freq_khz = le32_to_cpu(freq_entry->freq_khz);
-			dram->frequencies[dram->num_frequencies++] = 1000 * freq_khz;
+			dram->frequencies[dram->num_frequencies++] = 1000UL * freq_khz;
 		}
 	}
 }
@@ -282,7 +282,7 @@ static void smem_dram_parse_v7_data(struct smem_dram *dram, void *data)
 
 		if (freq_entry->freq_khz && freq_entry->enabled) {
 			u32 freq_khz = le32_to_cpu(freq_entry->freq_khz);
-			dram->frequencies[dram->num_frequencies++] = 1000 * freq_khz;
+			dram->frequencies[dram->num_frequencies++] = 1000UL * freq_khz;
 		}
 	}
 }
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0126/2651] soc: qcom: smem: Fix byte order in v3 14-frequency parser
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (124 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0125/2651] soc: qcom: smem: fix 32-bit overflow in DDR frequency calculation Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0127/2651] arm64: dts: qcom: glymur: Add missing USB clock, power and bandwidth votes Greg Kroah-Hartman
                   ` (65 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Linmao Li, Konrad Dybcio,
	Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Linmao Li <lilinmao@kylinos.cn>

[ Upstream commit 9f3136c0c5bcb26d5c864f8a5658c1a6f449d351 ]

smem_dram_parse_v3_14freqs_data() uses the little-endian
freq_khz field directly when scaling the frequency from kHz to Hz. This
produces byte-swapped values on big-endian systems.

Convert freq_khz to CPU byte order before using it, as the other DDR
data parsers do.

Fixes: 1d234eeafc56 ("soc: qcom: smem: Expose DDR data from SMEM")
Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260827020447.2642830-1-lilinmao@kylinos.cn
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/soc/qcom/smem_dramc.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/soc/qcom/smem_dramc.c b/drivers/soc/qcom/smem_dramc.c
index 9612230a03bef..cba5376ec80d3 100644
--- a/drivers/soc/qcom/smem_dramc.c
+++ b/drivers/soc/qcom/smem_dramc.c
@@ -231,8 +231,11 @@ static void smem_dram_parse_v3_14freqs_data(struct smem_dram *dram, void *data)
 	for (int i = 0; i < MAX_DDR_FREQ_NUM_V3 + 1; i++) {
 		struct ddr_freq_table *freq_entry = &details->ddr_freq_tbl.ddr_freq[i];
 
-		if (freq_entry->freq_khz && freq_entry->enabled)
-			dram->frequencies[dram->num_frequencies++] = 1000UL * freq_entry->freq_khz;
+		if (freq_entry->freq_khz && freq_entry->enabled) {
+			u32 freq_khz = le32_to_cpu(freq_entry->freq_khz);
+
+			dram->frequencies[dram->num_frequencies++] = 1000UL * freq_khz;
+		}
 	}
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0127/2651] arm64: dts: qcom: glymur: Add missing USB clock, power and bandwidth votes
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (125 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0126/2651] soc: qcom: smem: Fix byte order in v3 14-frequency parser Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0128/2651] arm64: dts: qcom: sdm845-sony-xperia-tama: Fix Bluetooth UART pinctrl Greg Kroah-Hartman
                   ` (64 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Greg Ociepka, Konrad Dybcio,
	Abel Vesa, Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Greg Ociepka <greg@ferrisoft.com>

[ Upstream commit 0f8d35f04a126fb17134728ec441a177a35babb5 ]

The four USB3 controller nodes on Glymur (usb_0, usb_1, usb_2, usb_mp)
are missing three property groups that Glymur's own usb_hs node at
a200000 already carries, and that Hamoa (x1e80100) carries on all five
of its USB controllers:

  - assigned-clocks / assigned-clock-rates
  - required-opps
  - interconnects / interconnect-names

Without required-opps the controllers place no performance state vote
on their power domain. Measured on an Asus Zenbook A16 (UX3607OA) with
a SuperSpeed device enumerated, CX aggregates to SVS while the
controllers run their master clock at 200 MHz:

  $ grep -E "^cx " /sys/kernel/debug/pm_genpd/pm_genpd_summary
  cx    on    128

  $ grep "usb30.*master_clk " /sys/kernel/debug/clk/clk_summary
  gcc_usb30_sec_master_clk   ...  200000000
  gcc_usb30_prim_master_clk  ...  200000000
  gcc_usb30_mp_master_clk    ...  200000000

128 is RPMH_REGULATOR_LEVEL_SVS; rpmhpd_opp_nom is 256. With this
patch applied the same measurement reads 256 while a controller is
active.

Without interconnects, dwc3_qcom_interconnect_init() silently does
nothing: of_icc_get() returns NULL rather than an error pointer for a
device without the property, so probe succeeds and icc_set_bw() on a
NULL path is a no-op. No USB-DDR bandwidth is ever requested.

Without assigned-clock-rates nothing programs the master clock RCG,
which keeps whatever the bootloader left behind. On this machine that
happens to be the correct 200 MHz, but ftbl_gcc_usb30_mp_master_clk_src
also allows 66.67 and 133.33 MHz, neither of which sustains SuperSpeed.

Add all three groups to the four nodes, mirroring usb_hs. The
interconnect paths follow the provider layout in
drivers/interconnect/qcom/glymur.c: usb_0/usb_1 sit on aggre4_noc,
usb_mp on aggre3_noc and usb_2 on aggre2_noc.

Fixes: 4eee57dd4df9 ("arm64: dts: qcom: glymur: Add USB related nodes")
Assisted-by: Claude:fable-5
Signed-off-by: Greg Ociepka <greg@ferrisoft.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Tested-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260812083522.774711-1-greg@ferrisoft.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/qcom/glymur.dtsi | 49 ++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
index f04058d2e0891..fbbc82550c442 100644
--- a/arch/arm64/boot/dts/qcom/glymur.dtsi
+++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
@@ -4572,6 +4572,10 @@ usb_0: usb@a600000 {
 				      "noc_aggr_north",
 				      "noc_aggr_south";
 
+			assigned-clocks = <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>,
+					  <&gcc GCC_USB30_PRIM_MASTER_CLK>;
+			assigned-clock-rates = <19200000>, <200000000>;
+
 			interrupts-extended = <&intc GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>,
 					      <&intc GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>,
 					      <&pdc 90 IRQ_TYPE_EDGE_BOTH>,
@@ -4584,9 +4588,18 @@ usb_0: usb@a600000 {
 					  "ss_phy_irq";
 
 			power-domains = <&gcc GCC_USB30_PRIM_GDSC>;
+			required-opps = <&rpmhpd_opp_nom>;
 			resets = <&gcc GCC_USB30_PRIM_BCR>;
 
 			iommus = <&apps_smmu 0x1420 0x0>;
+
+			interconnects = <&aggre4_noc MASTER_USB3_0 QCOM_ICC_TAG_ALWAYS
+					 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
+					<&hsc_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+					 &config_noc SLAVE_USB3_0 QCOM_ICC_TAG_ACTIVE_ONLY>;
+			interconnect-names = "usb-ddr",
+					     "apps-usb";
+
 			phys = <&usb_0_hsphy>,
 			       <&usb_0_qmpphy QMP_USB43DP_USB3_PHY>;
 			phy-names = "usb2-phy",
@@ -4647,6 +4660,10 @@ usb_1: usb@a800000 {
 				      "noc_aggr_north",
 				      "noc_aggr_south";
 
+			assigned-clocks = <&gcc GCC_USB30_SEC_MOCK_UTMI_CLK>,
+					  <&gcc GCC_USB30_SEC_MASTER_CLK>;
+			assigned-clock-rates = <19200000>, <200000000>;
+
 			interrupts-extended = <&intc GIC_SPI 875 IRQ_TYPE_LEVEL_HIGH>,
 					      <&intc GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>,
 					      <&pdc 88 IRQ_TYPE_EDGE_BOTH>,
@@ -4660,9 +4677,17 @@ usb_1: usb@a800000 {
 
 			resets = <&gcc GCC_USB30_SEC_BCR>;
 			power-domains = <&gcc GCC_USB30_SEC_GDSC>;
+			required-opps = <&rpmhpd_opp_nom>;
 
 			iommus = <&apps_smmu 0x1460 0x0>;
 
+			interconnects = <&aggre4_noc MASTER_USB3_1 QCOM_ICC_TAG_ALWAYS
+					 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
+					<&hsc_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+					 &config_noc SLAVE_USB3_1 QCOM_ICC_TAG_ACTIVE_ONLY>;
+			interconnect-names = "usb-ddr",
+					     "apps-usb";
+
 			phys = <&usb_1_hsphy>,
 			       <&usb_1_qmpphy QMP_USB43DP_USB3_PHY>;
 			phy-names = "usb2-phy",
@@ -4723,6 +4748,10 @@ usb_2: usb@a000000 {
 				      "noc_aggr_north",
 				      "noc_aggr_south";
 
+			assigned-clocks = <&gcc GCC_USB30_TERT_MOCK_UTMI_CLK>,
+					  <&gcc GCC_USB30_TERT_MASTER_CLK>;
+			assigned-clock-rates = <19200000>, <200000000>;
+
 			interrupts-extended = <&intc GIC_SPI 871 IRQ_TYPE_LEVEL_HIGH>,
 					      <&intc GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>,
 					      <&pdc 89 IRQ_TYPE_EDGE_BOTH>,
@@ -4736,9 +4765,17 @@ usb_2: usb@a000000 {
 
 			resets = <&gcc GCC_USB30_TERT_BCR>;
 			power-domains = <&gcc GCC_USB30_TERT_GDSC>;
+			required-opps = <&rpmhpd_opp_nom>;
 
 			iommus = <&apps_smmu 0x420 0x0>;
 
+			interconnects = <&aggre2_noc MASTER_USB3_2 QCOM_ICC_TAG_ALWAYS
+					 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
+					<&hsc_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+					 &config_noc SLAVE_USB3_2 QCOM_ICC_TAG_ACTIVE_ONLY>;
+			interconnect-names = "usb-ddr",
+					     "apps-usb";
+
 			phys = <&usb_2_hsphy>,
 			       <&usb_2_qmpphy QMP_USB43DP_USB3_PHY>;
 			phy-names = "usb2-phy",
@@ -4869,6 +4906,10 @@ usb_mp: usb@a400000 {
 				      "noc_aggr_north",
 				      "noc_aggr_south";
 
+			assigned-clocks = <&gcc GCC_USB30_MP_MOCK_UTMI_CLK>,
+					  <&gcc GCC_USB30_MP_MASTER_CLK>;
+			assigned-clock-rates = <19200000>, <200000000>;
+
 			interrupts-extended = <&intc GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>,
 					      <&intc GIC_SPI 345 IRQ_TYPE_LEVEL_HIGH>,
 					      <&intc GIC_SPI 346 IRQ_TYPE_LEVEL_HIGH>,
@@ -4894,9 +4935,17 @@ usb_mp: usb@a400000 {
 
 			resets = <&gcc GCC_USB30_MP_BCR>;
 			power-domains = <&gcc GCC_USB30_MP_GDSC>;
+			required-opps = <&rpmhpd_opp_nom>;
 
 			iommus = <&apps_smmu 0xda0 0x0>;
 
+			interconnects = <&aggre3_noc MASTER_USB3_MP QCOM_ICC_TAG_ALWAYS
+					 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
+					<&hsc_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+					 &config_noc SLAVE_USB3_MP QCOM_ICC_TAG_ACTIVE_ONLY>;
+			interconnect-names = "usb-ddr",
+					     "apps-usb";
+
 			phys = <&usb_mp_hsphy0>,
 			       <&usb_mp_qmpphy0>,
 			       <&usb_mp_hsphy1>,
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0128/2651] arm64: dts: qcom: sdm845-sony-xperia-tama: Fix Bluetooth UART pinctrl
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (126 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0127/2651] arm64: dts: qcom: glymur: Add missing USB clock, power and bandwidth votes Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0129/2651] cxl/mce: Avoid alias page retirement for corrected errors Greg Kroah-Hartman
                   ` (63 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Shujath Mohd, Konrad Dybcio,
	Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Shujath Mohd <shujath@outlook.in>

[ Upstream commit cd0f33393882e2554d46e8e068ab95d00593f385 ]

Use the 4-pin UART6 pinctrl configuration for the WCN3990 Bluetooth
controller on Sony Xperia Tama devices.

This enables the UART hardware flow control required for reliable
Bluetooth communication at higher baud rates.

Fixes: d54331131cde ("arm64: dts: qcom: sdm845-sony-xperia-tama: Add bluetooth")
Fixes: 30a7f99befc6 ("arm64: dts: qcom: Add support for SONY Xperia XZ2 / XZ2C / XZ3 (Tama platform)")

Signed-off-by: Shujath Mohd <shujath@outlook.in>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/PUZPR01MB51413F6FF89A8FA82A9B2755C3A02@PUZPR01MB5141.apcprd01.prod.exchangelabs.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
index 4c63286d8b041..05e5a3674e5fa 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
@@ -754,6 +754,8 @@ int-pins {
 };
 
 &uart6 {
+	pinctrl-0 = <&qup_uart6_4pin>;
+
 	status = "okay";
 
 	bluetooth {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0129/2651] cxl/mce: Avoid alias page retirement for corrected errors
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (127 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0128/2651] arm64: dts: qcom: sdm845-sony-xperia-tama: Fix Bluetooth UART pinctrl Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0130/2651] remoteproc: xlnx: Initialize mailbox work before requesting channels Greg Kroah-Hartman
                   ` (62 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Shaikh Kamaluddin, Alison Schofield,
	Dave Jiang, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Shaikh Kamaluddin <shaikhkamal2012@gmail.com>

[ Upstream commit 04a7b330c8b60dfff200d9a32dd6615f97b59d07 ]

cxl_handle_mce() offlines the aliased page of an Extended Linear Cache
(ELC) region for any MCE with a usable address in the region. This
includes corrected errors, needlessly reducing usable memory.

Skip ELC alias retirement when mce_is_correctable() identifies the
reported error as corrected. Uncorrected errors with a usable address
in the ELC region continue to retire the aliased page as before.

mce_usable_address() already implements the per-vendor checks that
determine whether the reported address is usable, so no separate
memory-error classification is needed.

On AMD, a corrected legacy bank 4 DRAM ECC error (XEC 8) reports a
usable address and retired the aliased page before this change.
Tested under QEMU with Intel Skylake-Server and AMD EPYC-Milan models.

Fixes: 516e5bd0b6bf ("cxl: Add mce notifier to emit aliased address for extended linear cache")
Signed-off-by: Shaikh Kamaluddin <shaikhkamal2012@gmail.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260824134957.11085-1-shaikhkamal2012@gmail.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/cxl/core/mce.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/cxl/core/mce.c b/drivers/cxl/core/mce.c
index 65fed913b2217..3ac6802e750d2 100644
--- a/drivers/cxl/core/mce.c
+++ b/drivers/cxl/core/mce.c
@@ -18,7 +18,13 @@ static int cxl_handle_mce(struct notifier_block *nb, unsigned long val,
 	u64 spa, spa_alias;
 	unsigned long pfn;
 
-	if (!mce || !mce_usable_address(mce))
+	if (!mce)
+		return NOTIFY_DONE;
+
+	if (mce_is_correctable(mce))
+		return NOTIFY_DONE;
+
+	if (!mce_usable_address(mce))
 		return NOTIFY_DONE;
 
 	spa = mce->addr & MCI_ADDR_PHYSADDR;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0130/2651] remoteproc: xlnx: Initialize mailbox work before requesting channels
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (128 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0129/2651] cxl/mce: Avoid alias page retirement for corrected errors Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0131/2651] dt-bindings: clock: qcom,milos-camcc: Add missing power-domains support Greg Kroah-Hartman
                   ` (61 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Runyu Xiao, Mathieu Poirier,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Runyu Xiao <runyu.xiao@seu.edu.cn>

[ Upstream commit 5ca7dea7cb2e47f42c15ac7206c5e0cba23d292d ]

zynqmp_r5_setup_mbox() installs zynqmp_r5_mb_rx_cb() as the mailbox RX
callback before requesting the mailbox channels, but initializes
ipi->mbox_work only after both channels have been requested. Once the RX
channel is active, a notification delivered before the late INIT_WORK()
would make the callback queue an uninitialized work item.

Initialize the work item before requesting channels. Also drain the work
before freeing the mailbox state, after the channels have been released so
no new callbacks can queue it. Use the same drain before freeing ipi from
the channel request error paths, since the callback is already published
there as well.

This issue was found by our static analysis tool and then confirmed by
manual review of the mailbox setup sequence. The callback is published
before the channel requests complete, so the work item should be ready
before the mailbox provider can invoke it.

A QEMU PoC modeled a mailbox notification delivered after the RX callback
became reachable but before the delayed INIT_WORK(). DEBUG_OBJECTS reported
queueing an uninitialized work item from the zynqmp_r5_setup_mbox() path.

This is sent as an RFC because the practical trigger depends on the ZynqMP
IPI mailbox provider and firmware delivery timing. If the provider cannot
invoke the RX callback until after setup returns, this is a defensive
lifecycle cleanup rather than a reachable race on current systems.

Fixes: 5dfb28c257b7 ("remoteproc: xilinx: Add mailbox channels for rpmsg")
Signed-off-by: Runyu Xiao <runyu.xiao@seu.edu.cn>
Link: https://lore.kernel.org/r/20260818101201.1603947-1-runyu.xiao@seu.edu.cn
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/remoteproc/xlnx_r5_remoteproc.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/remoteproc/xlnx_r5_remoteproc.c b/drivers/remoteproc/xlnx_r5_remoteproc.c
index c685bb5fa62c3..d47fbf143acde 100644
--- a/drivers/remoteproc/xlnx_r5_remoteproc.c
+++ b/drivers/remoteproc/xlnx_r5_remoteproc.c
@@ -318,6 +318,8 @@ static struct mbox_info *zynqmp_r5_setup_mbox(struct device *cdev)
 	if (!ipi)
 		return NULL;
 
+	INIT_WORK(&ipi->mbox_work, handle_event_notified);
+
 	mbox_cl = &ipi->mbox_cl;
 	mbox_cl->rx_callback = zynqmp_r5_mb_rx_cb;
 	mbox_cl->tx_block = false;
@@ -329,6 +331,7 @@ static struct mbox_info *zynqmp_r5_setup_mbox(struct device *cdev)
 	ipi->tx_chan = mbox_request_channel_byname(mbox_cl, "tx");
 	if (IS_ERR(ipi->tx_chan)) {
 		ipi->tx_chan = NULL;
+		cancel_work_sync(&ipi->mbox_work);
 		kfree(ipi);
 		dev_warn(cdev, "mbox tx channel request failed\n");
 		return NULL;
@@ -339,13 +342,12 @@ static struct mbox_info *zynqmp_r5_setup_mbox(struct device *cdev)
 		mbox_free_channel(ipi->tx_chan);
 		ipi->rx_chan = NULL;
 		ipi->tx_chan = NULL;
+		cancel_work_sync(&ipi->mbox_work);
 		kfree(ipi);
 		dev_warn(cdev, "mbox rx channel request failed\n");
 		return NULL;
 	}
 
-	INIT_WORK(&ipi->mbox_work, handle_event_notified);
-
 	return ipi;
 }
 
@@ -364,6 +366,8 @@ static void zynqmp_r5_free_mbox(struct mbox_info *ipi)
 		ipi->rx_chan = NULL;
 	}
 
+	cancel_work_sync(&ipi->mbox_work);
+
 	kfree(ipi);
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0131/2651] dt-bindings: clock: qcom,milos-camcc: Add missing power-domains support
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (129 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0130/2651] remoteproc: xlnx: Initialize mailbox work before requesting channels Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0132/2651] dt-bindings: clock: qcom,milos-videocc: " Greg Kroah-Hartman
                   ` (60 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Krzysztof Kozlowski, Taniya Das,
	Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Taniya Das <taniya.das@oss.qualcomm.com>

[ Upstream commit e0f335a4e17f5c80b24b8bd2060802bac072775c ]

The Milos camera clock controller requires the CX and MX power
domains, along with their performance state votes, to be enabled
before the clock controller can be accessed.

Document the 'power-domains' and 'required-opps' properties and add
them to the required properties list and example. Since these
properties become required for the already-documented qcom,milos-camcc
compatible, this is an ABI break for any devicetree using this binding
without specifying them.

Fixes: dbb9d53b7197 ("dt-bindings: clock: qcom: document the Milos Camera Clock Controller")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260806-eliza-mm-cc-v9-v10-1-6ba52dd14343@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../bindings/clock/qcom,milos-camcc.yaml      | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/Documentation/devicetree/bindings/clock/qcom,milos-camcc.yaml b/Documentation/devicetree/bindings/clock/qcom,milos-camcc.yaml
index 707b25d2c11e6..c4aba40e316ca 100644
--- a/Documentation/devicetree/bindings/clock/qcom,milos-camcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,milos-camcc.yaml
@@ -29,9 +29,21 @@ properties:
     items:
       - description: Interconnect path to enable the MultiMedia NoC
 
+  power-domains:
+    items:
+      - description: CX power domain
+      - description: MX power domain
+
+  required-opps:
+    items:
+      - description: CX performance point
+      - description: MX performance point
+
 required:
   - compatible
   - clocks
+  - power-domains
+  - required-opps
 
 allOf:
   - $ref: qcom,gcc.yaml#
@@ -43,6 +55,7 @@ examples:
     #include <dt-bindings/clock/qcom,milos-gcc.h>
     #include <dt-bindings/interconnect/qcom,icc.h>
     #include <dt-bindings/interconnect/qcom,milos-rpmh.h>
+    #include <dt-bindings/power/qcom,rpmhpd.h>
     clock-controller@adb0000 {
         compatible = "qcom,milos-camcc";
         reg = <0x0adb0000 0x40000>;
@@ -51,6 +64,12 @@ examples:
                  <&gcc GCC_CAMERA_AHB_CLK>;
         interconnects = <&mmss_noc MASTER_CAMNOC_HF QCOM_ICC_TAG_ALWAYS
                          &mmss_noc SLAVE_MNOC_HF_MEM_NOC QCOM_ICC_TAG_ALWAYS>;
+
+        power-domains = <&rpmhpd RPMHPD_CX>,
+                        <&rpmhpd RPMHPD_MX>;
+        required-opps = <&rpmhpd_opp_low_svs>,
+                        <&rpmhpd_opp_low_svs>;
+
         #clock-cells = <1>;
         #reset-cells = <1>;
         #power-domain-cells = <1>;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0132/2651] dt-bindings: clock: qcom,milos-videocc: Add missing power-domains support
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (130 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0131/2651] dt-bindings: clock: qcom,milos-camcc: Add missing power-domains support Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0133/2651] arm64: dts: qcom: milos: Add power-domains for camcc and videocc Greg Kroah-Hartman
                   ` (59 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Krzysztof Kozlowski, Taniya Das,
	Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Taniya Das <taniya.das@oss.qualcomm.com>

[ Upstream commit 3da90acddd2f211549032e9fdad40a5879803442 ]

The Milos video clock controller requires the CX and MX power
domains, along with their performance state votes, to be enabled
before the clock controller can be accessed.

Document the 'power-domains' and 'required-opps' properties and add
them to the required properties list and example. Since these
properties become required for the already-documented
qcom,milos-videocc compatible, this is an ABI break for any devicetree
using this binding without specifying them.

Fixes: a4937e974186 ("dt-bindings: clock: qcom: document the Milos Video Clock Controller")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260806-eliza-mm-cc-v9-v10-2-6ba52dd14343@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../bindings/clock/qcom,milos-videocc.yaml    | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/Documentation/devicetree/bindings/clock/qcom,milos-videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,milos-videocc.yaml
index 14c31efe1308a..4d8d109cd304e 100644
--- a/Documentation/devicetree/bindings/clock/qcom,milos-videocc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,milos-videocc.yaml
@@ -26,9 +26,21 @@ properties:
       - description: Sleep clock source
       - description: Video AHB clock from GCC
 
+  power-domains:
+    items:
+      - description: CX power domain
+      - description: MX power domain
+
+  required-opps:
+    items:
+      - description: CX performance point
+      - description: MX performance point
+
 required:
   - compatible
   - clocks
+  - power-domains
+  - required-opps
 
 allOf:
   - $ref: qcom,gcc.yaml#
@@ -38,6 +50,7 @@ unevaluatedProperties: false
 examples:
   - |
     #include <dt-bindings/clock/qcom,milos-gcc.h>
+    #include <dt-bindings/power/qcom,rpmhpd.h>
     clock-controller@aaf0000 {
         compatible = "qcom,milos-videocc";
         reg = <0x0aaf0000 0x10000>;
@@ -45,6 +58,12 @@ examples:
                  <&bi_tcxo_ao_div2>,
                  <&sleep_clk>,
                  <&gcc GCC_VIDEO_AHB_CLK>;
+
+        power-domains = <&rpmhpd RPMHPD_CX>,
+                        <&rpmhpd RPMHPD_MX>;
+        required-opps = <&rpmhpd_opp_low_svs>,
+                        <&rpmhpd_opp_low_svs>;
+
         #clock-cells = <1>;
         #reset-cells = <1>;
         #power-domain-cells = <1>;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0133/2651] arm64: dts: qcom: milos: Add power-domains for camcc and videocc
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (131 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0132/2651] dt-bindings: clock: qcom,milos-videocc: " Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0134/2651] dt-bindings: clock: qcom: Add GCC video axi reset clocks for Nord Greg Kroah-Hartman
                   ` (58 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Jagadeesh Kona, Abel Vesa,
	Taniya Das, Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Taniya Das <taniya.das@oss.qualcomm.com>

[ Upstream commit a21b23f7ec4d849db9044f83787a7939acb639dd ]

The Milos camera and video clock controllers operate on the CX and MX
power rails, and require these power domains along with their
associated performance state votes to be specified for accessing the
clock controller and its GDSC. Add the 'power-domains' and
'required-opps' properties to the camcc and videocc nodes.

Fixes: d9d59d105f98 ("arm64: dts: qcom: Add initial Milos dtsi")
Reviewed-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260806-eliza-mm-cc-v9-v10-3-6ba52dd14343@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/qcom/milos.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/milos.dtsi b/arch/arm64/boot/dts/qcom/milos.dtsi
index aad8bf6789162..f3af1d759e098 100644
--- a/arch/arm64/boot/dts/qcom/milos.dtsi
+++ b/arch/arm64/boot/dts/qcom/milos.dtsi
@@ -1949,6 +1949,11 @@ videocc: clock-controller@aaf0000 {
 				 <&sleep_clk>,
 				 <&gcc GCC_VIDEO_AHB_CLK>;
 
+			power-domains = <&rpmhpd RPMHPD_CX>,
+				<&rpmhpd RPMHPD_MX>;
+			required-opps = <&rpmhpd_opp_low_svs>,
+				<&rpmhpd_opp_low_svs>;
+
 			#clock-cells = <1>;
 			#reset-cells = <1>;
 			#power-domain-cells = <1>;
@@ -2031,6 +2036,11 @@ camcc: clock-controller@adb0000 {
 			interconnects = <&mmss_noc MASTER_CAMNOC_HF QCOM_ICC_TAG_ALWAYS
 					 &mmss_noc SLAVE_MNOC_HF_MEM_NOC QCOM_ICC_TAG_ALWAYS>;
 
+			power-domains = <&rpmhpd RPMHPD_CX>,
+				<&rpmhpd RPMHPD_MX>;
+			required-opps = <&rpmhpd_opp_low_svs>,
+				<&rpmhpd_opp_low_svs>;
+
 			#clock-cells = <1>;
 			#reset-cells = <1>;
 			#power-domain-cells = <1>;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0134/2651] dt-bindings: clock: qcom: Add GCC video axi reset clocks for Nord
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (132 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0133/2651] arm64: dts: qcom: milos: Add power-domains for camcc and videocc Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0135/2651] lsm: dont call security_backing_file_free() multiple times Greg Kroah-Hartman
                   ` (57 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Taniya Das, Krzysztof Kozlowski,
	Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Taniya Das <taniya.das@oss.qualcomm.com>

[ Upstream commit 348a2ae162e5ec2dbab12c226b8240b8271ca444 ]

The NW_GCC video axi reset clocks are required by the video SW driver
to assert and deassert the clock resets during their power down
sequence. Hence add these clock resets.

Fixes: 06498d59bb4e ("dt-bindings: clock: qcom: Add Nord Global Clock Controller")
Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260801-nord_videocc_camcc-v2-1-674d7718e41f@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 include/dt-bindings/clock/qcom,nord-nwgcc.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/dt-bindings/clock/qcom,nord-nwgcc.h b/include/dt-bindings/clock/qcom,nord-nwgcc.h
index b6253dd2aa85a..8beaa129aa814 100644
--- a/include/dt-bindings/clock/qcom,nord-nwgcc.h
+++ b/include/dt-bindings/clock/qcom,nord-nwgcc.h
@@ -65,5 +65,8 @@
 #define NW_GCC_GPU_2_BCR					6
 #define NW_GCC_GPU_BCR						7
 #define NW_GCC_VIDEO_BCR					8
+#define NW_GCC_VIDEO_AXI0_CLK_ARES				9
+#define NW_GCC_VIDEO_AXI0C_CLK_ARES				10
+#define NW_GCC_VIDEO_AXI1_CLK_ARES				11
 
 #endif
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0135/2651] lsm: dont call security_backing_file_free() multiple times
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (133 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0134/2651] dt-bindings: clock: qcom: Add GCC video axi reset clocks for Nord Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0136/2651] ASoC: wcd-mbhc-v2: Fix incorrect properties names and typos Greg Kroah-Hartman
                   ` (56 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Cai Xinchen, Paul Moore, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Cai Xinchen <caixinchen1@huawei.com>

[ Upstream commit 3a84fc1a21577dbc8da7e4b6a49c9d8b07c07000 ]

I found the following path:

alloc_empty_backing-file
    init_file(&ff->file, xxx)
        -> file_ref_init(&f->f_ref, 1); // only 1
    error = init_backing_file
        -> security_backing_file_alloc
        -> rc = call_int_hook(backing_file_alloc, ...)
           if (unlikely(rc))
           	security_backing_file_free(backing_file); // first call
    if (unlikely(error)) {
        fput(&ff->file);
         -> if (unlikely(file_ref_put(&file->f_ref))) // zero
                __fput_deferred(file);
                 -> ____fput -> __fput -> file_free(file);
                 -> backing_file_free(backing_file(f));
                 -> security_backing_file_free(&ff->file); // second call

Currently, only SELinux has the lsm backing_file_alloc hook, and it always
return 0. When security_backing_file_free is called for the first time,
the blobs pointer is set to NULL. Therefore, double free will not occur in
the code.

Fixes: 6af36aeb147a ("lsm: add backing_file LSM hooks")
Signed-off-by: Cai Xinchen <caixinchen1@huawei.com>
[PM: subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 security/security.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/security/security.c b/security/security.c
index 2ee276ab15c5b..208738238e37f 100644
--- a/security/security.c
+++ b/security/security.c
@@ -2486,9 +2486,8 @@ void security_backing_file_free(struct file *backing_file)
 {
 	void *blob = backing_file_security(backing_file);
 
-	call_void_hook(backing_file_free, backing_file);
-
 	if (blob) {
+		call_void_hook(backing_file_free, backing_file);
 		backing_file_set_security(backing_file, NULL);
 		kmem_cache_free(lsm_backing_file_cache, blob);
 	}
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0136/2651] ASoC: wcd-mbhc-v2: Fix incorrect properties names and typos
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (134 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0135/2651] lsm: dont call security_backing_file_free() multiple times Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0137/2651] pwm: renesas-tpu: Fix runtime PM reference leak Greg Kroah-Hartman
                   ` (55 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, David Heidelberg, Mark Brown,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: David Heidelberg <david@ixit.cz>

[ Upstream commit 17bca5d55446c1e21944d47354ee2f0b80db36d6 ]

Improves debugging experience.

Fixes: 0e5c9e7ff899 ("ASoC: codecs: wcd: add multi button Headset detection support")
Signed-off-by: David Heidelberg <david@ixit.cz>
Link: https://patch.msgid.link/20260823-wcd-dt-typo-fix-v1-1-a71b458e0d31@ixit.cz
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 sound/soc/codecs/wcd-mbhc-v2.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sound/soc/codecs/wcd-mbhc-v2.c b/sound/soc/codecs/wcd-mbhc-v2.c
index bb0c8478a8eb5..850be84d65ceb 100644
--- a/sound/soc/codecs/wcd-mbhc-v2.c
+++ b/sound/soc/codecs/wcd-mbhc-v2.c
@@ -864,7 +864,7 @@ static int wcd_measure_adc_continuous(struct wcd_mbhc *mbhc)
 	u8 adc_en;
 
 	/* Pre-requisites for ADC continuous measurement */
-	/* Read legacy electircal detection and disable */
+	/* Read legacy electrical detection and disable */
 	wcd_mbhc_write_field(mbhc, WCD_MBHC_ELECT_SCHMT_ISRC, 0x00);
 	/* Set ADC to continuous measurement */
 	wcd_mbhc_write_field(mbhc, WCD_MBHC_ADC_MODE, 1);
@@ -965,7 +965,7 @@ static int wcd_check_cross_conn(struct wcd_mbhc *mbhc)
 	if (wcd_mbhc_read_field(mbhc, WCD_MBHC_HPH_PA_EN))
 		return -EINVAL;
 
-	/* Read legacy electircal detection and disable */
+	/* Read legacy electrical detection and disable */
 	elect_ctl = wcd_mbhc_read_field(mbhc, WCD_MBHC_ELECT_SCHMT_ISRC);
 	wcd_mbhc_write_field(mbhc, WCD_MBHC_ELECT_SCHMT_ISRC, 0);
 
@@ -1470,14 +1470,14 @@ int wcd_dt_parse_mbhc_data(struct device *dev, struct wcd_mbhc_config *cfg)
 	ret = of_property_read_u32(np, "qcom,mbhc-headset-vthreshold-microvolt",
 				   &microvolt);
 	if (ret)
-		dev_dbg(dev, "missing qcom,mbhc-hs-mic-max-vthreshold--microvolt in dt node\n");
+		dev_dbg(dev, "missing qcom,mbhc-headset-vthreshold-microvolt in dt node\n");
 	else
 		cfg->hs_thr = microvolt/1000;
 
 	ret = of_property_read_u32(np, "qcom,mbhc-headphone-vthreshold-microvolt",
 				   &microvolt);
 	if (ret)
-		dev_dbg(dev, "missing qcom,mbhc-hs-mic-min-vthreshold-microvolt	entry\n");
+		dev_dbg(dev, "missing qcom,mbhc-headphone-vthreshold-microvolt entry\n");
 	else
 		cfg->hph_thr = microvolt/1000;
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0137/2651] pwm: renesas-tpu: Fix runtime PM reference leak
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (135 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0136/2651] ASoC: wcd-mbhc-v2: Fix incorrect properties names and typos Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0138/2651] spi: omap2-mcspi: Remove unbalanced pm_runtime_put_sync() calls Greg Kroah-Hartman
                   ` (54 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Ruoyu Wang, Uwe Kleine-König,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Ruoyu Wang <ruoyuw560@gmail.com>

[ Upstream commit 62cff15fbf2b12ebbb0b01ca720030c2bc12aed1 ]

tpu_pwm_timer_start() used pm_runtime_get_sync() without checking its
return value before touching the TPU clock.  A failed runtime resume was
therefore ignored, and the callback continued into register access.

Use pm_runtime_resume_and_get() and propagate a failed resume.  Keep the
matching put when clock preparation fails after a successful resume.

tpu_pwm_disable() also needs to propagate a failed start so that the PWM
apply callback does not access registers while runtime PM is inactive.

This issue was found by a static analysis checker and confirmed by manual
source review.

Fixes: 99b82abb0a35 ("pwm: Add Renesas TPU PWM driver")
Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com>
Link: https://patch.msgid.link/20260814134143.1388120-1-ruoyuw560@gmail.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/pwm/pwm-renesas-tpu.c | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/drivers/pwm/pwm-renesas-tpu.c b/drivers/pwm/pwm-renesas-tpu.c
index 140fd0bcb93f3..e35f2e14777dd 100644
--- a/drivers/pwm/pwm-renesas-tpu.c
+++ b/drivers/pwm/pwm-renesas-tpu.c
@@ -149,10 +149,14 @@ static int tpu_pwm_timer_start(struct tpu_pwm_device *tpd)
 
 	if (!tpd->timer_on) {
 		/* Wake up device and enable clock. */
-		pm_runtime_get_sync(&tpd->tpu->pdev->dev);
+		ret = pm_runtime_resume_and_get(&tpd->tpu->pdev->dev);
+		if (ret < 0)
+			return ret;
+
 		ret = clk_prepare_enable(tpd->tpu->clk);
 		if (ret) {
 			dev_err(&tpd->tpu->pdev->dev, "cannot enable clock\n");
+			pm_runtime_put(&tpd->tpu->pdev->dev);
 			return ret;
 		}
 		tpd->timer_on = true;
@@ -382,15 +386,21 @@ static int tpu_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
 	return 0;
 }
 
-static void tpu_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
+static int tpu_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
 {
 	struct tpu_device *tpu = to_tpu_device(chip);
 	struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm];
+	int ret;
 
 	/* The timer must be running to modify the pin output configuration. */
-	tpu_pwm_timer_start(tpd);
+	ret = tpu_pwm_timer_start(tpd);
+	if (ret < 0)
+		return ret;
+
 	tpu_pwm_set_pin(tpd, TPU_PIN_INACTIVE);
 	tpu_pwm_timer_stop(tpd);
+
+	return 0;
 }
 
 static int tpu_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
@@ -401,7 +411,10 @@ static int tpu_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
 
 	if (state->polarity != pwm->state.polarity) {
 		if (enabled) {
-			tpu_pwm_disable(chip, pwm);
+			err = tpu_pwm_disable(chip, pwm);
+			if (err)
+				return err;
+
 			enabled = false;
 		}
 
@@ -412,7 +425,7 @@ static int tpu_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
 
 	if (!state->enabled) {
 		if (enabled)
-			tpu_pwm_disable(chip, pwm);
+			return tpu_pwm_disable(chip, pwm);
 
 		return 0;
 	}
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0138/2651] spi: omap2-mcspi: Remove unbalanced pm_runtime_put_sync() calls
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (136 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0137/2651] pwm: renesas-tpu: Fix runtime PM reference leak Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:22 ` [PATCH 7.3 0139/2651] soc: qcom: smem: Fix signedness bug in smem_dram_parse() Greg Kroah-Hartman
                   ` (53 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Felix Gu, Mark Brown, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Felix Gu <ustc.gu@gmail.com>

[ Upstream commit 5f01cb141169fe422c42279f7d502479b1ff9fd2 ]

pm_runtime_put_sync() is called in the probe error path and in remove
when nothing holds a runtime PM reference anymore, so it underflows
the usage count.

Fixes: 0e6f357a5deb ("spi: omap2-mcspi: Fix PM regression with deferred probe for pm_runtime_reinit")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Link: https://patch.msgid.link/20260826-mcspi-v1-1-0a8dd7f6dd56@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/spi/spi-omap2-mcspi.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c
index a3355147f5de5..82c8b91e504e7 100644
--- a/drivers/spi/spi-omap2-mcspi.c
+++ b/drivers/spi/spi-omap2-mcspi.c
@@ -1595,7 +1595,6 @@ static int omap2_mcspi_probe(struct platform_device *pdev)
 
 err_disable_rpm:
 	pm_runtime_dont_use_autosuspend(&pdev->dev);
-	pm_runtime_put_sync(&pdev->dev);
 	pm_runtime_disable(&pdev->dev);
 err_release_dma:
 	omap2_mcspi_release_dma(ctlr);
@@ -1613,7 +1612,6 @@ static void omap2_mcspi_remove(struct platform_device *pdev)
 	omap2_mcspi_release_dma(ctlr);
 
 	pm_runtime_dont_use_autosuspend(mcspi->dev);
-	pm_runtime_put_sync(mcspi->dev);
 	pm_runtime_disable(&pdev->dev);
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0139/2651] soc: qcom: smem: Fix signedness bug in smem_dram_parse()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (137 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0138/2651] spi: omap2-mcspi: Remove unbalanced pm_runtime_put_sync() calls Greg Kroah-Hartman
@ 2026-11-18 14:22 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0140/2651] soc: qcom: apr: clean up failed service registrations Greg Kroah-Hartman
                   ` (52 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:22 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Dan Carpenter, Konrad Dybcio,
	Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Dan Carpenter <error27@gmail.com>

[ Upstream commit 22f129fedb153a17d80b1d883a7c4dd2417cf38e ]

The "ver" variable is type "enum ddr_info_version".  Enum types are
dependent on the compiler but in practical terms here, "ver" is
basically an unsigned int.  It needs to be signed for the -EINVAL
to be handled correctly.

Fixes: 1d234eeafc56 ("soc: qcom: smem: Expose DDR data from SMEM")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/an1toQ-acGR0kOWj@stanley.mountain
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/soc/qcom/smem_dramc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/qcom/smem_dramc.c b/drivers/soc/qcom/smem_dramc.c
index cba5376ec80d3..19a831ab59079 100644
--- a/drivers/soc/qcom/smem_dramc.c
+++ b/drivers/soc/qcom/smem_dramc.c
@@ -385,7 +385,7 @@ struct dentry *smem_dram_parse(struct qcom_smem *smem, struct device *dev)
 		return ERR_PTR(-ENODATA);
 
 	ver = smem_dram_infer_struct_version(actual_size);
-	if (ver < 0) {
+	if ((int)ver < 0) {
 		/* Some SoCs don't provide data that's useful for us */
 		return ERR_PTR(-ENODATA);
 	} else if (ver == INFO_UNKNOWN) {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0140/2651] soc: qcom: apr: clean up failed service registrations
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (138 preceding siblings ...)
  2026-11-18 14:22 ` [PATCH 7.3 0139/2651] soc: qcom: smem: Fix signedness bug in smem_dram_parse() Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0141/2651] platform/chrome: cros_ec_proto: Fix deferred response Greg Kroah-Hartman
                   ` (51 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Hongyan Xu, Bjorn Andersson,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Hongyan Xu <getshell@seu.edu.cn>

[ Upstream commit 7dc14f37ca4ee35040c67c4b0180dd7b32079caf ]

apr_add_device() publishes a service in svcs_idr before parsing the
optional protection domain and registering the device. If device
registration fails, put_device() frees the apr_device while its service
remains in the IDR. A received packet can then dereference that stale
entry. The property error path also leaves the service and allocation
behind.

Split device_register() into device_initialize() and device_add() so every
pre-registration error can safely drop the device reference. Remove the
service from the IDR on all failures after publication, then drain the RX
workqueue before dropping the device reference. This prevents an in-flight
lookup from outliving the device.

Fixes: 6adba21eb434 ("soc: qcom: Add APR bus driver")
Signed-off-by: Hongyan Xu <getshell@seu.edu.cn>
Link: https://lore.kernel.org/r/20260806060541.820-1-getshell@seu.edu.cn
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/soc/qcom/apr.c | 44 +++++++++++++++++++++++++++---------------
 1 file changed, 28 insertions(+), 16 deletions(-)

diff --git a/drivers/soc/qcom/apr.c b/drivers/soc/qcom/apr.c
index ea7f83916d8d8..d72628ac09f1a 100644
--- a/drivers/soc/qcom/apr.c
+++ b/drivers/soc/qcom/apr.c
@@ -434,31 +434,35 @@ static int apr_add_device(struct device *dev, struct device_node *np,
 	if (np)
 		snprintf(adev->name, APR_NAME_SIZE, "%pOFn", np);
 
+	adev->dev.bus = &aprbus;
+	adev->dev.parent = dev;
+	adev->dev.of_node = np;
+	adev->dev.release = apr_dev_release;
+	adev->dev.driver = NULL;
+	device_initialize(&adev->dev);
+
 	switch (apr->type) {
 	case PR_TYPE_APR:
-		dev_set_name(&adev->dev, "aprsvc:%s:%x:%x", adev->name,
-			     domain_id, svc_id);
+		ret = dev_set_name(&adev->dev, "aprsvc:%s:%x:%x", adev->name,
+				   domain_id, svc_id);
 		break;
 	case PR_TYPE_GPR:
-		dev_set_name(&adev->dev, "gprsvc:%s:%x:%x", adev->name,
-			     domain_id, svc_id);
+		ret = dev_set_name(&adev->dev, "gprsvc:%s:%x:%x", adev->name,
+				   domain_id, svc_id);
 		break;
 	default:
+		ret = -EINVAL;
 		break;
 	}
-
-	adev->dev.bus = &aprbus;
-	adev->dev.parent = dev;
-	adev->dev.of_node = np;
-	adev->dev.release = apr_dev_release;
-	adev->dev.driver = NULL;
+	if (ret)
+		goto out_put_device;
 
 	spin_lock(&apr->svcs_lock);
 	ret = idr_alloc(&apr->svcs_idr, svc, svc_id, svc_id + 1, GFP_ATOMIC);
 	spin_unlock(&apr->svcs_lock);
 	if (ret < 0) {
 		dev_err(dev, "idr_alloc failed: %d\n", ret);
-		goto out;
+		goto out_put_device;
 	}
 
 	/* Protection domain is optional, it does not exist on older platforms */
@@ -466,18 +470,26 @@ static int apr_add_device(struct device *dev, struct device_node *np,
 					    1, &adev->service_path);
 	if (ret < 0 && ret != -EINVAL) {
 		dev_err(dev, "Failed to read second value of qcom,protection-domain\n");
-		goto out;
+		goto out_remove_idr;
 	}
 
 	dev_info(dev, "Adding APR/GPR dev: %s\n", dev_name(&adev->dev));
 
-	ret = device_register(&adev->dev);
+	ret = device_add(&adev->dev);
 	if (ret) {
-		dev_err(dev, "device_register failed: %d\n", ret);
-		put_device(&adev->dev);
+		dev_err(dev, "device_add failed: %d\n", ret);
+		goto out_remove_idr;
 	}
 
-out:
+	return 0;
+
+out_remove_idr:
+	spin_lock(&apr->svcs_lock);
+	idr_remove(&apr->svcs_idr, svc_id);
+	spin_unlock(&apr->svcs_lock);
+	flush_workqueue(apr->rxwq);
+out_put_device:
+	put_device(&adev->dev);
 	return ret;
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0141/2651] platform/chrome: cros_ec_proto: Fix deferred response
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (139 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0140/2651] soc: qcom: apr: clean up failed service registrations Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0142/2651] staging: rtl8723bs: disable SDIO function on block size failure Greg Kroah-Hartman
                   ` (50 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Rob Barnes, Tzung-Bi Shih,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Rob Barnes <robbarnes@google.com>

[ Upstream commit c55749415623a58eba3eb527da023d29b43fbf5d ]

When cros_ec_wait_until_complete() succeeds after an
EC_RES_IN_PROGRESS status, it previously returned the 4-byte
transfer size of EC_CMD_GET_COMMS_STATUS. For 0-byte payload
commands (such as EC_CMD_FLASH_ERASE), userspace received 4
bytes instead of 0, causing response size validation errors.
For commands expecting non-zero response payloads, the kernel
exited without issuing EC_CMD_RESEND_RESPONSE, leaving response
buffers uninitialized.

Refactor cros_ec_wait_until_complete() to pass orig_msg, issue
EC_CMD_RESEND_RESPONSE into orig_msg->data when insize > 0, and
return 0 for 0-byte response commands.

Fixes: 2c7589af3c4d ("mfd: cros_ec: add proto v3 skeleton")
Signed-off-by: Rob Barnes <robbarnes@google.com>
Link: https://lore.kernel.org/r/20260901005126.3344929-1-robbarnes@google.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/platform/chrome/cros_ec_proto.c      |  32 +++-
 drivers/platform/chrome/cros_ec_proto_test.c | 158 ++++++++++++++++++-
 2 files changed, 183 insertions(+), 7 deletions(-)

diff --git a/drivers/platform/chrome/cros_ec_proto.c b/drivers/platform/chrome/cros_ec_proto.c
index 724d1313f6b21..b13312c1b093f 100644
--- a/drivers/platform/chrome/cros_ec_proto.c
+++ b/drivers/platform/chrome/cros_ec_proto.c
@@ -138,7 +138,8 @@ static int cros_ec_xfer_command(struct cros_ec_device *ec_dev, struct cros_ec_co
 	return ret;
 }
 
-static int cros_ec_wait_until_complete(struct cros_ec_device *ec_dev, uint32_t *result)
+static int cros_ec_wait_until_complete(struct cros_ec_device *ec_dev,
+				       struct cros_ec_command *orig_msg)
 {
 	DEFINE_RAW_FLEX(struct cros_ec_command, msg, data,
 			sizeof(struct ec_response_get_comms_status));
@@ -161,7 +162,7 @@ static int cros_ec_wait_until_complete(struct cros_ec_device *ec_dev, uint32_t *
 		if (ret < 0)
 			return ret;
 
-		*result = msg->result;
+		orig_msg->result = msg->result;
 		if (msg->result != EC_RES_SUCCESS)
 			return ret;
 
@@ -170,8 +171,31 @@ static int cros_ec_wait_until_complete(struct cros_ec_device *ec_dev, uint32_t *
 			break;
 		}
 
-		if (!(status->flags & EC_COMMS_STATUS_PROCESSING))
+		if (!(status->flags & EC_COMMS_STATUS_PROCESSING)) {
+			u32 orig_cmd, orig_outsize, orig_version;
+
+			/* If no response payload is expected, return 0. */
+			if (orig_msg->insize == 0)
+				return 0;
+
+			/*
+			 * Request the response using EC_CMD_RESEND_RESPONSE.
+			 * Restore the original message fields so it appears
+			 * to be a direct response to the original command.
+			 */
+			orig_cmd = orig_msg->command;
+			orig_outsize = orig_msg->outsize;
+			orig_version = orig_msg->version;
+
+			orig_msg->command = EC_CMD_RESEND_RESPONSE;
+			orig_msg->outsize = 0;
+			orig_msg->version = 0;
+			ret = cros_ec_xfer_command(ec_dev, orig_msg);
+			orig_msg->command = orig_cmd;
+			orig_msg->outsize = orig_outsize;
+			orig_msg->version = orig_version;
 			return ret;
+		}
 	}
 
 	if (i >= EC_COMMAND_RETRIES)
@@ -185,7 +209,7 @@ static int cros_ec_send_command(struct cros_ec_device *ec_dev, struct cros_ec_co
 	int ret = cros_ec_xfer_command(ec_dev, msg);
 
 	if (msg->result == EC_RES_IN_PROGRESS)
-		ret = cros_ec_wait_until_complete(ec_dev, &msg->result);
+		ret = cros_ec_wait_until_complete(ec_dev, msg);
 
 	return ret;
 }
diff --git a/drivers/platform/chrome/cros_ec_proto_test.c b/drivers/platform/chrome/cros_ec_proto_test.c
index 3f281996a6863..cbaaf98d6877e 100644
--- a/drivers/platform/chrome/cros_ec_proto_test.c
+++ b/drivers/platform/chrome/cros_ec_proto_test.c
@@ -1744,7 +1744,7 @@ static void cros_ec_proto_test_cmd_xfer_protocol_v2_no_op(struct kunit *test)
 	KUNIT_EXPECT_EQ(test, ret, -EIO);
 }
 
-static void cros_ec_proto_test_cmd_xfer_in_progress_normal(struct kunit *test)
+static void cros_ec_proto_test_cmd_xfer_in_progress_payload_0byte(struct kunit *test)
 {
 	struct cros_ec_proto_test_priv *priv = test->priv;
 	struct cros_ec_device *ec_dev = &priv->ec_dev;
@@ -1774,7 +1774,7 @@ static void cros_ec_proto_test_cmd_xfer_in_progress_normal(struct kunit *test)
 	}
 
 	ret = cros_ec_cmd_xfer(ec_dev, &msg);
-	KUNIT_EXPECT_EQ(test, ret, sizeof(struct ec_response_get_comms_status));
+	KUNIT_EXPECT_EQ(test, ret, 0);
 
 	KUNIT_EXPECT_EQ(test, msg.result, EC_RES_SUCCESS);
 
@@ -1799,6 +1799,156 @@ static void cros_ec_proto_test_cmd_xfer_in_progress_normal(struct kunit *test)
 	KUNIT_EXPECT_EQ(test, cros_kunit_ec_pkt_xfer_mock_called, 2);
 }
 
+static void cros_ec_proto_test_cmd_xfer_in_progress_payload_4bytes(struct kunit *test)
+{
+	struct cros_ec_proto_test_priv *priv = test->priv;
+	struct cros_ec_device *ec_dev = &priv->ec_dev;
+	struct ec_xfer_mock *mock;
+	u8 resp_data[4] = {0x11, 0x22, 0x33, 0x44};
+	struct {
+		struct cros_ec_command msg;
+		u8 data[4];
+	} buf;
+	struct cros_ec_command *msg = &buf.msg;
+	int ret;
+
+	memset(&buf, 0, sizeof(buf));
+	msg->version = 1;
+	msg->command = 0x1234;
+	msg->insize = sizeof(buf.data);
+
+	ec_dev->max_response = sizeof(buf.data);
+	ec_dev->pkt_xfer = cros_kunit_ec_pkt_xfer_mock;
+
+	/* For initial command returning EC_RES_IN_PROGRESS. */
+	{
+		mock = cros_kunit_ec_xfer_mock_addx(test, 0, EC_RES_IN_PROGRESS, 0);
+		KUNIT_ASSERT_PTR_NE(test, mock, NULL);
+	}
+
+	/* For EC_CMD_GET_COMMS_STATUS status polling. */
+	{
+		struct ec_response_get_comms_status *data;
+
+		mock = cros_kunit_ec_xfer_mock_add(test, sizeof(*data));
+		KUNIT_ASSERT_PTR_NE(test, mock, NULL);
+
+		data = (struct ec_response_get_comms_status *)mock->o_data;
+		data->flags = 0;
+	}
+
+	/* For EC_CMD_RESEND_RESPONSE returning 4 bytes payload. */
+	{
+		mock = cros_kunit_ec_xfer_mock_add(test, sizeof(resp_data));
+		KUNIT_ASSERT_PTR_NE(test, mock, NULL);
+		memcpy(mock->o_data, resp_data, sizeof(resp_data));
+	}
+
+	ret = cros_ec_cmd_xfer(ec_dev, msg);
+	KUNIT_EXPECT_EQ(test, ret, 4);
+	KUNIT_EXPECT_EQ(test, msg->result, EC_RES_SUCCESS);
+	KUNIT_EXPECT_EQ(test, msg->command, 0x1234);
+	KUNIT_EXPECT_EQ(test, msg->insize, sizeof(buf.data));
+	KUNIT_EXPECT_EQ(test, msg->version, 1);
+	KUNIT_EXPECT_EQ(test, memcmp(msg->data, resp_data, sizeof(resp_data)), 0);
+
+	/* Verify mock sequence */
+	{
+		mock = cros_kunit_ec_xfer_mock_next();
+		KUNIT_EXPECT_PTR_NE(test, mock, NULL);
+
+		mock = cros_kunit_ec_xfer_mock_next();
+		KUNIT_EXPECT_PTR_NE(test, mock, NULL);
+		KUNIT_EXPECT_EQ(test, mock->msg.command, EC_CMD_GET_COMMS_STATUS);
+
+		mock = cros_kunit_ec_xfer_mock_next();
+		KUNIT_EXPECT_PTR_NE(test, mock, NULL);
+		KUNIT_EXPECT_EQ(test, mock->msg.command, EC_CMD_RESEND_RESPONSE);
+		KUNIT_EXPECT_EQ(test, mock->msg.outsize, 0);
+		KUNIT_EXPECT_EQ(test, mock->msg.version, 0);
+		KUNIT_EXPECT_EQ(test, mock->msg.insize, 4);
+	}
+
+	KUNIT_EXPECT_EQ(test, cros_kunit_ec_pkt_xfer_mock_called, 3);
+}
+
+static void cros_ec_proto_test_cmd_xfer_in_progress_payload_gt4bytes(struct kunit *test)
+{
+	struct cros_ec_proto_test_priv *priv = test->priv;
+	struct cros_ec_device *ec_dev = &priv->ec_dev;
+	struct ec_xfer_mock *mock;
+	u8 resp_data[16];
+	struct {
+		struct cros_ec_command msg;
+		u8 data[16];
+	} buf;
+	struct cros_ec_command *msg = &buf.msg;
+	int ret, i;
+
+	for (i = 0; i < sizeof(resp_data); ++i)
+		resp_data[i] = (u8)(i + 1);
+
+	memset(&buf, 0, sizeof(buf));
+	msg->version = 0;
+	msg->command = 0x5678;
+	msg->insize = sizeof(buf.data);
+
+	ec_dev->max_response = sizeof(buf.data);
+	ec_dev->pkt_xfer = cros_kunit_ec_pkt_xfer_mock;
+
+	/* For initial command returning EC_RES_IN_PROGRESS. */
+	{
+		mock = cros_kunit_ec_xfer_mock_addx(test, 0, EC_RES_IN_PROGRESS, 0);
+		KUNIT_ASSERT_PTR_NE(test, mock, NULL);
+	}
+
+	/* For EC_CMD_GET_COMMS_STATUS status polling. */
+	{
+		struct ec_response_get_comms_status *data;
+
+		mock = cros_kunit_ec_xfer_mock_add(test, sizeof(*data));
+		KUNIT_ASSERT_PTR_NE(test, mock, NULL);
+
+		data = (struct ec_response_get_comms_status *)mock->o_data;
+		data->flags = 0;
+	}
+
+	/* For EC_CMD_RESEND_RESPONSE returning 16 bytes payload. */
+	{
+		mock = cros_kunit_ec_xfer_mock_add(test, sizeof(resp_data));
+		KUNIT_ASSERT_PTR_NE(test, mock, NULL);
+		memcpy(mock->o_data, resp_data, sizeof(resp_data));
+	}
+
+	ret = cros_ec_cmd_xfer(ec_dev, msg);
+	KUNIT_EXPECT_EQ(test, ret, 16);
+	KUNIT_EXPECT_EQ(test, msg->result, EC_RES_SUCCESS);
+	KUNIT_EXPECT_EQ(test, msg->command, 0x5678);
+	KUNIT_EXPECT_EQ(test, msg->outsize, 0);
+	KUNIT_EXPECT_EQ(test, msg->insize, sizeof(buf.data));
+	KUNIT_EXPECT_EQ(test, msg->version, 0);
+	KUNIT_EXPECT_EQ(test, memcmp(msg->data, resp_data, sizeof(resp_data)), 0);
+
+	/* Verify mock sequence */
+	{
+		mock = cros_kunit_ec_xfer_mock_next();
+		KUNIT_EXPECT_PTR_NE(test, mock, NULL);
+
+		mock = cros_kunit_ec_xfer_mock_next();
+		KUNIT_EXPECT_PTR_NE(test, mock, NULL);
+		KUNIT_EXPECT_EQ(test, mock->msg.command, EC_CMD_GET_COMMS_STATUS);
+
+		mock = cros_kunit_ec_xfer_mock_next();
+		KUNIT_EXPECT_PTR_NE(test, mock, NULL);
+		KUNIT_EXPECT_EQ(test, mock->msg.command, EC_CMD_RESEND_RESPONSE);
+		KUNIT_EXPECT_EQ(test, mock->msg.outsize, 0);
+		KUNIT_EXPECT_EQ(test, mock->msg.version, 0);
+		KUNIT_EXPECT_EQ(test, mock->msg.insize, 16);
+	}
+
+	KUNIT_EXPECT_EQ(test, cros_kunit_ec_pkt_xfer_mock_called, 3);
+}
+
 static void cros_ec_proto_test_cmd_xfer_in_progress_retries_eagain(struct kunit *test)
 {
 	struct cros_ec_proto_test_priv *priv = test->priv;
@@ -2703,7 +2853,9 @@ static struct kunit_case cros_ec_proto_test_cases[] = {
 	KUNIT_CASE(cros_ec_proto_test_cmd_xfer_protocol_v3_no_op),
 	KUNIT_CASE(cros_ec_proto_test_cmd_xfer_protocol_v2_normal),
 	KUNIT_CASE(cros_ec_proto_test_cmd_xfer_protocol_v2_no_op),
-	KUNIT_CASE(cros_ec_proto_test_cmd_xfer_in_progress_normal),
+	KUNIT_CASE(cros_ec_proto_test_cmd_xfer_in_progress_payload_0byte),
+	KUNIT_CASE(cros_ec_proto_test_cmd_xfer_in_progress_payload_4bytes),
+	KUNIT_CASE(cros_ec_proto_test_cmd_xfer_in_progress_payload_gt4bytes),
 	KUNIT_CASE(cros_ec_proto_test_cmd_xfer_in_progress_retries_eagain),
 	KUNIT_CASE(cros_ec_proto_test_cmd_xfer_in_progress_retries_status_processing),
 	KUNIT_CASE(cros_ec_proto_test_cmd_xfer_in_progress_xfer_error),
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0142/2651] staging: rtl8723bs: disable SDIO function on block size failure
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (140 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0141/2651] platform/chrome: cros_ec_proto: Fix deferred response Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0143/2651] staging: octeon: schedule the TX cleanup tasklet every 1024th packet Greg Kroah-Hartman
                   ` (49 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Ijae Kim, Myeonghun Pak,
	Dan Carpenter, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Myeonghun Pak <mhun512@gmail.com>

[ Upstream commit baa84b1bb1648506333fde3e66b6540f9d7d73cc ]

sdio_init() enables the SDIO function before configuring the block
size. If sdio_set_block_size() fails, the function jumps to the release
path and returns the error without disabling the SDIO function. The
caller then frees the dvobj directly, so the enabled SDIO function is
left active on that probe failure path.

Disable the SDIO function before releasing the host when block size
configuration fails.

This issue was identified during our ongoing static-analysis research while
reviewing kernel code.

Fixes: 554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260731161710.44828-1-mhun512@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index c61d3d12df7fc..6ef3a71985338 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -122,8 +122,10 @@ static u32 sdio_init(struct dvobj_priv *dvobj)
 		goto release;
 
 	err = sdio_set_block_size(func, 512);
-	if (err)
+	if (err) {
+		sdio_disable_func(func);
 		goto release;
+	}
 
 	psdio_data->block_transfer_len = 512;
 	psdio_data->tx_block_mode = 1;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0143/2651] staging: octeon: schedule the TX cleanup tasklet every 1024th packet
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (141 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0142/2651] staging: rtl8723bs: disable SDIO function on block size failure Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0144/2651] clk: fix self-consuming provider module pinning Greg Kroah-Hartman
                   ` (48 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Orgad Shaneh, Dan Carpenter,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Orgad Shaneh <orgads@gmail.com>

[ Upstream commit db57f6517bf65523968ae29cd34a790bfa7d32af ]

cvm_oct_xmit() means to schedule the cleanup tasklet once every 1024
packets, as its comment says, to cover the pathological case of heavy
traffic on one port delaying the cleanup of another port blocked
waiting for it.

The test is inverted: total_to_clean & 0x3ff is true for 1023 of every
1024 values, and false only on the multiples of 1024. So the tasklet is
scheduled on nearly every packet, and skipped on exactly the packet the
comment wants. That costs one TASKLET softirq per transmitted packet,
each walking every port and doing an FAU fetch-and-add per non-empty
queue, and it buys nothing for this port, which already frees its
completed skbs inline from the skb_to_free value it reads out of the
FAU.

Test the mask against zero. On a CN50XX board (2 cores at 300MHz)
carrying ~6.9k transmitted packets/s, TASKLET softirqs drop from 7133/s
to 597/s with no throughput change; the freeing work is conserved, so
this removes softirq entries, not work.

Fixes: 4898c560103f ("Staging: Octeon:  Free transmit SKBs in a timely manner")
Signed-off-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260820113239.8169-1-orgads@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/staging/octeon/ethernet-tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/octeon/ethernet-tx.c b/drivers/staging/octeon/ethernet-tx.c
index cc20c1e6791fc..5e536827f87ad 100644
--- a/drivers/staging/octeon/ethernet-tx.c
+++ b/drivers/staging/octeon/ethernet-tx.c
@@ -481,7 +481,7 @@ netdev_tx_t cvm_oct_xmit(struct sk_buff *skb, struct net_device *dev)
 			cvmx_fau_fetch_and_add32(FAU_TOTAL_TX_TO_CLEAN, 1);
 	}
 
-	if (total_to_clean & 0x3ff) {
+	if ((total_to_clean & 0x3ff) == 0) {
 		/*
 		 * Schedule the cleanup tasklet every 1024 packets for
 		 * the pathological case of high traffic on one port
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0144/2651] clk: fix self-consuming provider module pinning
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (142 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0143/2651] staging: octeon: schedule the TX cleanup tasklet every 1024th packet Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0145/2651] microblaze: CCF: fix refcount leak Greg Kroah-Hartman
                   ` (47 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Jerome Brunet, Brian Masney,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Jerome Brunet <jbrunet@baylibre.com>

[ Upstream commit a1c8d531c694e193dc48ef2428877d5ea2e35134 ]

clk_hw_get_clk() lets a provider get a struct clk for one of its own
struct clk_hw.

When a struct clk is created, the module usage count of the provider
is unconditionally increased. For a self-consuming provider, this means
it pins itself and the module can never be unloaded.

Increasing the module usage count should only be done when the consumer
lives in a different module from the provider. Use THIS_MODULE to
capture caller's module and increase the module usage count accordingly.

It is OK for consumer-only APIs such as clk_get() or of_clk_get() to
pass a NULL owner. As a result, any provider module will get pinned,
same as before.

Fixes: 30d6f8c15d2c ("clk: add api to get clk consumer from clk_hw")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/clk/clk.c            | 46 ++++++++++++++++++++----------------
 drivers/clk/clk.h            |  5 ++--
 drivers/clk/clkdev.c         |  4 ++--
 include/linux/clk-provider.h | 22 ++++++++++++++---
 4 files changed, 50 insertions(+), 27 deletions(-)

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index fef87167a60b5..7fd5bc2a31f68 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -166,6 +166,7 @@ struct clk {
 	unsigned long max_rate;
 	unsigned int exclusive_count;
 	struct hlist_node clks_node;
+	bool pinning;
 };
 
 /***           runtime pm          ***/
@@ -4237,13 +4238,15 @@ static void free_clk(struct clk *clk)
  * @hw: clk_hw associated with the clk being consumed
  * @dev_id: string describing device name
  * @con_id: connection ID string on device
+ * @owner: reference to the module creating the clock
  *
  * This is the main function used to create a clk pointer for use by clk
  * consumers. It connects a consumer to the clk_core and clk_hw structures
  * used by the framework and clk provider respectively.
  */
 struct clk *clk_hw_create_clk(struct device *dev, struct clk_hw *hw,
-			      const char *dev_id, const char *con_id)
+			      const char *dev_id, const char *con_id,
+			      struct module *owner)
 {
 	struct clk *clk;
 	struct clk_core *core;
@@ -4258,7 +4261,13 @@ struct clk *clk_hw_create_clk(struct device *dev, struct clk_hw *hw,
 		return clk;
 	clk->dev = dev;
 
-	if (!try_module_get(core->owner)) {
+	/*
+	 * Pin the provider module only when the consumer lives in a different
+	 * module. A provider getting a clk from its own clk_hw would otherwise
+	 * pin itself and could never be unloaded.
+	 */
+	clk->pinning = owner != core->owner;
+	if (clk->pinning && !try_module_get(core->owner)) {
 		free_clk(clk);
 		return ERR_PTR(-ENOENT);
 	}
@@ -4269,24 +4278,19 @@ struct clk *clk_hw_create_clk(struct device *dev, struct clk_hw *hw,
 	return clk;
 }
 
-/**
- * clk_hw_get_clk - get clk consumer given an clk_hw
- * @hw: clk_hw associated with the clk being consumed
- * @con_id: connection ID string on device
- *
- * Returns: new clk consumer
- * This is the function to be used by providers which need
- * to get a consumer clk and act on the clock element
- * Calls to this function must be balanced with calls clk_put()
+/*
+ * Internal helper backing the clk_hw_get_clk() macro, which passes the caller's
+ * module via THIS_MODULE.
  */
-struct clk *clk_hw_get_clk(struct clk_hw *hw, const char *con_id)
+struct clk *__clk_hw_get_clk(struct clk_hw *hw, const char *con_id,
+			     struct module *owner)
 {
 	struct device *dev = hw->core->dev;
 	const char *name = dev ? dev_name(dev) : NULL;
 
-	return clk_hw_create_clk(dev, hw, name, con_id);
+	return clk_hw_create_clk(dev, hw, name, con_id, owner);
 }
-EXPORT_SYMBOL(clk_hw_get_clk);
+EXPORT_SYMBOL(__clk_hw_get_clk);
 
 static int clk_cpy_name(const char **dst_p, const char *src, bool must_exist)
 {
@@ -4450,8 +4454,9 @@ __clk_register(struct device *dev, struct device_node *np, struct clk_hw *hw)
 	INIT_HLIST_HEAD(&core->clks);
 
 	/*
-	 * Don't call clk_hw_create_clk() here because that would pin the
-	 * provider module to itself and prevent it from ever being removed.
+	 * Don't call clk_hw_create_clk() here because it would systematically
+	 * add a consumer to the hw clock and all clocks would appear to have
+	 * consumer in the clock summary.
 	 */
 	hw->clk = alloc_clk(core, NULL, NULL);
 	if (IS_ERR(hw->clk)) {
@@ -4808,7 +4813,7 @@ struct clk *devm_clk_hw_get_clk(struct device *dev, struct clk_hw *hw,
 	if (!clkp)
 		return ERR_PTR(-ENOMEM);
 
-	clk = clk_hw_get_clk(hw, con_id);
+	clk = __clk_hw_get_clk(hw, con_id, dev->driver->owner);
 	if (!IS_ERR(clk)) {
 		*clkp = clk;
 		devres_add(dev, clkp);
@@ -4855,7 +4860,8 @@ void __clk_put(struct clk *clk)
 
 	owner = clk->core->owner;
 	kref_put(&clk->core->ref, __clk_release);
-	module_put(owner);
+	if (clk->pinning)
+		module_put(owner);
 	free_clk(clk);
 }
 
@@ -5376,7 +5382,7 @@ struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
 {
 	struct clk_hw *hw = of_clk_get_hw_from_clkspec(clkspec);
 
-	return clk_hw_create_clk(NULL, hw, NULL, __func__);
+	return clk_hw_create_clk(NULL, hw, NULL, __func__, NULL);
 }
 EXPORT_SYMBOL_GPL(of_clk_get_from_provider);
 
@@ -5403,7 +5409,7 @@ static struct clk *__of_clk_get(struct device_node *np,
 {
 	struct clk_hw *hw = of_clk_get_hw(np, index, con_id);
 
-	return clk_hw_create_clk(NULL, hw, dev_id, con_id);
+	return clk_hw_create_clk(NULL, hw, dev_id, con_id, NULL);
 }
 
 struct clk *of_clk_get(struct device_node *np, int index)
diff --git a/drivers/clk/clk.h b/drivers/clk/clk.h
index 2d801900cad59..5009380863a9d 100644
--- a/drivers/clk/clk.h
+++ b/drivers/clk/clk.h
@@ -23,13 +23,14 @@ struct clk_hw *clk_find_hw(const char *dev_id, const char *con_id);
 
 #ifdef CONFIG_COMMON_CLK
 struct clk *clk_hw_create_clk(struct device *dev, struct clk_hw *hw,
-			      const char *dev_id, const char *con_id);
+			      const char *dev_id, const char *con_id,
+			      struct module *owner);
 void __clk_put(struct clk *clk);
 #else
 /* All these casts to avoid ifdefs in clkdev... */
 static inline struct clk *
 clk_hw_create_clk(struct device *dev, struct clk_hw *hw, const char *dev_id,
-		  const char *con_id)
+		  const char *con_id, struct module *owner)
 {
 	return (struct clk *)hw;
 }
diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c
index abaa0f9e00831..919fc680ae4dd 100644
--- a/drivers/clk/clkdev.c
+++ b/drivers/clk/clkdev.c
@@ -88,7 +88,7 @@ static struct clk *__clk_get_sys(struct device *dev, const char *dev_id,
 {
 	struct clk_hw *hw = clk_find_hw(dev_id, con_id);
 
-	return clk_hw_create_clk(dev, hw, dev_id, con_id);
+	return clk_hw_create_clk(dev, hw, dev_id, con_id, NULL);
 }
 
 struct clk *clk_get_sys(const char *dev_id, const char *con_id)
@@ -105,7 +105,7 @@ struct clk *clk_get(struct device *dev, const char *con_id)
 	if (dev && dev->of_node) {
 		hw = of_clk_get_hw(dev->of_node, 0, con_id);
 		if (!IS_ERR(hw) || PTR_ERR(hw) == -EPROBE_DEFER)
-			return clk_hw_create_clk(dev, hw, dev_id, con_id);
+			return clk_hw_create_clk(dev, hw, dev_id, con_id, NULL);
 	}
 
 	return __clk_get_sys(dev, dev_id, con_id);
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index dc8e161f9c2cc..58902e8dfd681 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -50,6 +50,7 @@ struct clk;
 struct clk_hw;
 struct clk_core;
 struct dentry;
+struct module;
 
 /**
  * struct clk_rate_request - Structure encoding the clk constraints that
@@ -351,8 +352,9 @@ struct clk_init_data {
  * @core: pointer to the struct clk_core instance that points back to this
  * struct clk_hw instance
  *
- * @clk: pointer to the per-user struct clk instance that can be used to call
- * into the clk API
+ * @clk: pointer to the per-user struct clk instance. This will be removed at
+ * some point in the future, Please consider the field obsolete and do not use
+ * it. Use clk_hw_get_clk() to get a per-user struct clk from a struct clk_hw.
  *
  * @init: pointer to struct clk_init_data that contains the init data shared
  * with the common clock framework. This pointer will be set to NULL once
@@ -1474,10 +1476,24 @@ static inline struct clk_hw *__clk_get_hw(struct clk *clk)
 }
 #endif
 
-struct clk *clk_hw_get_clk(struct clk_hw *hw, const char *con_id);
+struct clk *__clk_hw_get_clk(struct clk_hw *hw, const char *con_id,
+			     struct module *owner);
 struct clk *devm_clk_hw_get_clk(struct device *dev, struct clk_hw *hw,
 				const char *con_id);
 
+/**
+ * clk_hw_get_clk - get clk consumer given a clk_hw
+ * @hw: clk_hw associated with the clk being consumed
+ * @con_id: connection ID string on device
+ *
+ * Return: new clk consumer
+ * This is the function to be used by providers which need
+ * to get a consumer clk and act on the clock element
+ * Calls to this function must be balanced with calls to clk_put()
+ */
+#define clk_hw_get_clk(hw, con_id) \
+	__clk_hw_get_clk((hw), (con_id), THIS_MODULE)
+
 unsigned int clk_hw_get_num_parents(const struct clk_hw *hw);
 struct clk_hw *clk_hw_get_parent(const struct clk_hw *hw);
 struct clk_hw *clk_hw_get_parent_by_index(const struct clk_hw *hw,
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0145/2651] microblaze: CCF: fix refcount leak
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (143 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0144/2651] clk: fix self-consuming provider module pinning Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0146/2651] microblaze: prevent ptrace writes to MSR and pt_mode Greg Kroah-Hartman
                   ` (46 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Alexander A. Klimov, Michal Simek,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Alexander A. Klimov <grandmaster@al2klimov.de>

[ Upstream commit aeedf85beac51c7cd8f7bf4c918a0104dfdb8b78 ]

Every value returned from of_clk_get() is supposed to be cleaned up
via clk_put() once not needed anymore.

Fixes: c1120542b99a ("microblaze: Add support for CCF")
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Link: https://patch.msgid.link/20260526184105.18962-4-grandmaster@al2klimov.de
Signed-off-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/microblaze/kernel/cpu/cpuinfo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/microblaze/kernel/cpu/cpuinfo.c b/arch/microblaze/kernel/cpu/cpuinfo.c
index cd9b4450763b0..32c508e85408a 100644
--- a/arch/microblaze/kernel/cpu/cpuinfo.c
+++ b/arch/microblaze/kernel/cpu/cpuinfo.c
@@ -133,6 +133,7 @@ void __init setup_cpuinfo_clk(void)
 		cpuinfo.cpu_clock_freq = fcpu(cpu, "timebase-frequency");
 	} else {
 		cpuinfo.cpu_clock_freq = clk_get_rate(clk);
+		clk_put(clk);
 	}
 
 	if (!cpuinfo.cpu_clock_freq) {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0146/2651] microblaze: prevent ptrace writes to MSR and pt_mode
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (144 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0145/2651] microblaze: CCF: fix refcount leak Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0147/2651] PCI: cadence: Fix enum type mismatch warning in LTSSM debugfs Greg Kroah-Hartman
                   ` (45 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Jérémy Jean, Michal Simek,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>

[ Upstream commit 8518fd17ccef4a7d77877ccb0403b722106ad1a4 ]

arch_ptrace() accepts PTRACE_POKEUSR for every aligned offset below
PT_SIZE. This includes the saved machine status register and pt_mode,
which are kernel-owned execution state rather than general registers.

On return from an exception, rtbd copies MSR_UMS to the live MSR_UM bit.
An unprivileged same-UID tracer can therefore clear MSR_UMS in its
tracee's saved register frame and make the tracee resume in supervisor
mode. pt_mode also controls whether later entry paths classify the frame
as kernel or user state.

Reject PTRACE_POKEUSR writes to both fields while retaining read access.

Fixes: 2b4384542691 ("microblaze_v8: ptrace support")
Assisted-by: Codex:gpt-5
Signed-off-by: Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
Link: https://patch.msgid.link/20260821103026.3627292-2-Jeremy.Jean@oss.cyber.gouv.fr
Signed-off-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/microblaze/kernel/ptrace.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/microblaze/kernel/ptrace.c b/arch/microblaze/kernel/ptrace.c
index 236264e932d64..ac1f0503216b4 100644
--- a/arch/microblaze/kernel/ptrace.c
+++ b/arch/microblaze/kernel/ptrace.c
@@ -101,6 +101,9 @@ long arch_ptrace(struct task_struct *child, long request,
 			} else {
 				rval = -EIO;
 			}
+		} else if (request == PTRACE_POKEUSR &&
+			   (addr == PT_MSR || addr == PT_MODE)) {
+			rval = -EIO;
 		} else if (addr < PT_SIZE && (addr & 0x3) == 0) {
 			microblaze_reg_t *reg_addr = reg_save_addr(addr, child);
 			if (request == PTRACE_PEEKUSR)
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0147/2651] PCI: cadence: Fix enum type mismatch warning in LTSSM debugfs
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (145 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0146/2651] microblaze: prevent ptrace writes to MSR and pt_mode Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0148/2651] cxl/test: Map mock device nodes to an online node Greg Kroah-Hartman
                   ` (44 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, kernel test robot, Hans Zhang,
	Manivannan Sadhasivam, Aksh Garg, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Hans Zhang <18255117159@163.com>

[ Upstream commit ce8034bb9c5c50f9f5c305856aff5d1c3efe3a30 ]

Fix Clang -Wenum-compare-conditional warning by using a single u32
variable to hold the LTSSM status value, replacing two separate enum
variables of different types.

Fixes: d70e964dc099 ("PCI: cadence: Add LGA IP debugfs for LTSSM status")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202608201933.w2579mwx-lkp@intel.com/
Signed-off-by: Hans Zhang <18255117159@163.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Aksh Garg <a-garg7@ti.com>
Link: https://patch.msgid.link/20260820232305.80596-1-18255117159@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../pci/controller/cadence/pcie-cadence-debugfs.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/drivers/pci/controller/cadence/pcie-cadence-debugfs.c b/drivers/pci/controller/cadence/pcie-cadence-debugfs.c
index 0a308f95e9f6c..7b8354052aeab 100644
--- a/drivers/pci/controller/cadence/pcie-cadence-debugfs.c
+++ b/drivers/pci/controller/cadence/pcie-cadence-debugfs.c
@@ -210,24 +210,21 @@ static const char *cdns_pcie_hpa_ltssm_status_string(enum cdns_pcie_hpa_ltssm lt
 static int ltssm_status_show(struct seq_file *s, void *v)
 {
 	struct cdns_pcie *pci = s->private;
-	enum cdns_pcie_lga_ltssm lga_ltssm;
-	enum cdns_pcie_hpa_ltssm hpa_ltssm;
 	const char *str_ltssm;
-	u32 val;
+	u32 val, ltssm_val;
 
 	if (pci->is_hpa) {
 		val = cdns_pcie_hpa_readl(pci, REG_BANK_IP_REG,
 					  CDNS_PCIE_HPA_PHY_DBG_STS_REG0);
-		hpa_ltssm = FIELD_GET(CDNS_PCIE_HPA_LTSSM_STATUS_MASK, val);
-		str_ltssm = cdns_pcie_hpa_ltssm_status_string(hpa_ltssm);
+		ltssm_val = FIELD_GET(CDNS_PCIE_HPA_LTSSM_STATUS_MASK, val);
+		str_ltssm = cdns_pcie_hpa_ltssm_status_string(ltssm_val);
 	} else {
 		val = cdns_pcie_readl(pci, CDNS_PCIE_LM_BASE);
-		lga_ltssm = FIELD_GET(CDNS_PCIE_LGA_LTSSM_STATUS_MASK, val);
-		str_ltssm = cdns_pcie_lga_ltssm_status_string(lga_ltssm);
+		ltssm_val = FIELD_GET(CDNS_PCIE_LGA_LTSSM_STATUS_MASK, val);
+		str_ltssm = cdns_pcie_lga_ltssm_status_string(ltssm_val);
 	}
 
-	seq_printf(s, "%s (0x%02x)\n", str_ltssm,
-		   pci->is_hpa ? hpa_ltssm : lga_ltssm);
+	seq_printf(s, "%s (0x%02x)\n", str_ltssm, ltssm_val);
 
 	return 0;
 }
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0148/2651] cxl/test: Map mock device nodes to an online node
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (146 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0147/2651] PCI: cadence: Fix enum type mismatch warning in LTSSM debugfs Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0149/2651] soundwire: intel: initialise quirk_mask before reading it Greg Kroah-Hartman
                   ` (43 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Davidlohr Bueso, Dave Jiang,
	Alison Schofield, Shaikh Kamaluddin, Gregory Price (Meta),
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Davidlohr Bueso <dave@stgolabs.net>

[ Upstream commit 6f057dea152574dd044382fd0ba5ed19e3ecba25 ]

cxl_type3_mem_init() and cxl_type2_mem_init() assign alternating NUMA
nodes to the mock memdevs to model multi-node topologies. On a
single-node host node 1 has no pgdat, and the first node-aware
allocation in an odd device's probe faults on a NULL zonelist:

  Oops: general protection fault, probably for non-canonical address 0xdffffc00000006e3
  KASAN: probably user-memory-access in range [0x0000000000003718-0x000000000000371f]
  Workqueue: async async_run_entry_fn
  RIP: __alloc_frozen_pages_noprof+0x288
   new_slab
   ___slab_alloc
   __kmalloc_node_track_caller_noprof
   devm_kmalloc
   cxl_mock_mem_probe

Map the requested node to an online one, as dax_hmem already does
for its target node.

Fixes: cf1f6877b088 ("cxl/memdev: Add numa_node attribute")
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Tested-by: Alison Schofield <alison.schofield@intel.com>
Tested-by: Shaikh Kamaluddin <shaikhkamal2012@gmail.com>
Reviewed-by: Gregory Price (Meta) <gourry@gourry.net>
Link: https://patch.msgid.link/20260831175119.3247915-1-dave@stgolabs.net
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/testing/cxl/test/cxl.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/testing/cxl/test/cxl.c b/tools/testing/cxl/test/cxl.c
index 62bd92b3be45f..221be4addb0e7 100644
--- a/tools/testing/cxl/test/cxl.c
+++ b/tools/testing/cxl/test/cxl.c
@@ -1945,7 +1945,7 @@ static int cxl_type2_mem_init(void)
 			goto err_mem;
 		}
 		pdev->dev.parent = &dport->dev;
-		set_dev_node(&pdev->dev, i % 2);
+		set_dev_node(&pdev->dev, numa_map_to_online_node(i % 2));
 
 		rc = cxl_mock_platform_device_add(pdev, &cxl_mem[i]);
 		if (rc)
@@ -1974,7 +1974,7 @@ static int cxl_type3_mem_init(void)
 			goto err_mem;
 		}
 		pdev->dev.parent = &dport->dev;
-		set_dev_node(&pdev->dev, i % 2);
+		set_dev_node(&pdev->dev, numa_map_to_online_node(i % 2));
 
 		rc = cxl_mock_platform_device_add(pdev, &cxl_mem[i]);
 		if (rc)
@@ -1991,7 +1991,7 @@ static int cxl_type3_mem_init(void)
 			goto err_single;
 		}
 		pdev->dev.parent = &dport->dev;
-		set_dev_node(&pdev->dev, i % 2);
+		set_dev_node(&pdev->dev, numa_map_to_online_node(i % 2));
 
 		rc = cxl_mock_platform_device_add(pdev, &cxl_mem_single[i]);
 		if (rc)
@@ -2009,7 +2009,7 @@ static int cxl_type3_mem_init(void)
 			goto err_rcd;
 		}
 		pdev->dev.parent = &rch->dev;
-		set_dev_node(&pdev->dev, i % 2);
+		set_dev_node(&pdev->dev, numa_map_to_online_node(i % 2));
 
 		rc = cxl_mock_platform_device_add(pdev, &cxl_rcd[i]);
 		if (rc)
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0149/2651] soundwire: intel: initialise quirk_mask before reading it
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (147 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0148/2651] cxl/test: Map mock device nodes to an online node Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0150/2651] accel/amdxdna: Fix unexpected wait when flushing notifier_wq Greg Kroah-Hartman
                   ` (42 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Boris Faure, Vinod Koul, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Boris Faure <boris@fau.re>

[ Upstream commit ee8a8cfe4e8d3c67456e554c988017c252710a25 ]

sdw_master_read_intel_prop() declares quirk_mask without an initialiser
and ignores the return value of fwnode_property_read_u32(). When a BIOS
does not describe "intel-quirk-mask" for a link, the property read leaves
the variable untouched and stack garbage decides whether
SDW_INTEL_QUIRK_MASK_BUS_DISABLE is honoured, so the link may be marked
hw_disabled at random.

Initialise it to 0, matching is_link_enabled() in
sound/hda/core/intel-sdw-acpi.c.
Found by code inspection, not observed at run time.

Fixes: 395713d8ca43 ("soundwire: intel: handle disabled links")
Signed-off-by: Boris Faure <boris@fau.re>
Link: https://patch.msgid.link/20260820212220.226912-1-boris@fau.re
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/soundwire/intel_auxdevice.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soundwire/intel_auxdevice.c b/drivers/soundwire/intel_auxdevice.c
index a8407560bf4fd..9b1465af26458 100644
--- a/drivers/soundwire/intel_auxdevice.c
+++ b/drivers/soundwire/intel_auxdevice.c
@@ -159,7 +159,7 @@ static int sdw_master_read_intel_prop(struct sdw_bus *bus)
 	struct sdw_intel_prop *intel_prop;
 	struct fwnode_handle *link;
 	char name[32];
-	u32 quirk_mask;
+	u32 quirk_mask = 0;
 
 	/* Find master handle */
 	snprintf(name, sizeof(name),
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0150/2651] accel/amdxdna: Fix unexpected wait when flushing notifier_wq
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (148 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0149/2651] soundwire: intel: initialise quirk_mask before reading it Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0151/2651] accel/amdxdna: Fix possible use-after-free when freeing device BO Greg Kroah-Hartman
                   ` (41 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Max Zhen, Lizhi Hou, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Lizhi Hou <lizhi.hou@amd.com>

[ Upstream commit 445d20910429b41e88768624b914344658991a5b ]

In amdxdna_gem_obj_free(), flush_workqueue(xdna->notifier_wq) waits for
all pending work items on the device-global notifier workqueue, rather
than only the work items associated with the BO being freed.

If another BO has a pending hmm_unreg_work, freeing an unrelated BO can
be unnecessarily blocked until that work completes.

mmu_interval_notifier_remove() is deferred to a workqueue because it
cannot be called from the MMU notifier callback itself. The BO free path
is not a notifier callback, so call mmu_interval_notifier_remove()
directly there and avoid the workqueue.

Fixes: e486147c912f ("accel/amdxdna: Add BO import and export")
Reviewed-by: Max Zhen <max.zhen@amd.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260813205016.941743-1-lizhi.hou@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/accel/amdxdna/amdxdna_gem.c | 69 +++++++++++++++++++----------
 drivers/accel/amdxdna/amdxdna_gem.h |  1 +
 2 files changed, 47 insertions(+), 23 deletions(-)

diff --git a/drivers/accel/amdxdna/amdxdna_gem.c b/drivers/accel/amdxdna/amdxdna_gem.c
index 4b0d58d0329b7..d305c58244fd0 100644
--- a/drivers/accel/amdxdna/amdxdna_gem.c
+++ b/drivers/accel/amdxdna/amdxdna_gem.c
@@ -253,13 +253,16 @@ static bool amdxdna_hmm_invalidate(struct mmu_interval_notifier *mni,
 	struct amdxdna_gem_obj *abo = mapp->abo;
 	struct amdxdna_dev *xdna;
 
+	if (!mmu_notifier_range_blockable(range))
+		return false;
+
+	if (mapp->unmapped)
+		return true;
+
 	xdna = to_xdna_dev(to_gobj(abo)->dev);
 	XDNA_DBG(xdna, "Invalidating range 0x%lx, 0x%lx, type %d",
 		 mapp->range.start, mapp->range.end, abo->type);
 
-	if (!mmu_notifier_range_blockable(range))
-		return false;
-
 	down_write(&xdna->notifier_lock);
 	abo->mem.map_invalid = true;
 	mapp->invalid = true;
@@ -301,33 +304,40 @@ static void amdxdna_hmm_unregister(struct amdxdna_gem_obj *abo,
 
 	down_write(&xdna->notifier_lock);
 	list_for_each_entry(mapp, &abo->mem.umap_list, node) {
-		if (!vma || compare_range(mapp, vma->vm_mm, vma->vm_start, vma->vm_end)) {
-			if (!mapp->unmapped) {
-				queue_work(xdna->notifier_wq, &mapp->hmm_unreg_work);
-				mapp->unmapped = true;
-			}
-			if (vma)
-				break;
-		}
+		if (!compare_range(mapp, vma->vm_mm, vma->vm_start, vma->vm_end))
+			continue;
+
+		queue_work(xdna->notifier_wq, &mapp->hmm_unreg_work);
+		mapp->unmapped = true;
 	}
 	up_write(&xdna->notifier_lock);
 }
 
-static void amdxdna_umap_release(struct kref *ref)
+static void amdxdna_hmm_unregister_all(struct amdxdna_gem_obj *abo)
 {
-	struct amdxdna_umap *mapp = container_of(ref, struct amdxdna_umap, refcnt);
-	struct amdxdna_gem_obj *abo = mapp->abo;
-	struct amdxdna_dev *xdna;
-
-	mmu_interval_notifier_remove(&mapp->notifier);
+	struct amdxdna_dev *xdna = to_xdna_dev(to_gobj(abo)->dev);
+	struct amdxdna_umap *mapp, *tmp;
+	LIST_HEAD(dead);
 
-	xdna = to_xdna_dev(to_gobj(mapp->abo)->dev);
 	down_write(&xdna->notifier_lock);
-	list_del(&mapp->node);
-	if (list_empty(&abo->mem.umap_list))
-		abo->mem.uva = AMDXDNA_INVALID_ADDR;
+	list_for_each_entry_safe(mapp, tmp, &abo->mem.umap_list, node) {
+		mapp->unmapped = true;
+		mapp->cleanup = true;
+		list_move(&mapp->node, &dead);
+	}
 	up_write(&xdna->notifier_lock);
 
+	list_for_each_entry_safe(mapp, tmp, &dead, node) {
+		cancel_work_sync(&mapp->hmm_unreg_work);
+		amdxdna_umap_put(mapp);
+	}
+}
+
+static void amdxdna_umap_release(struct kref *ref)
+{
+	struct amdxdna_umap *mapp = container_of(ref, struct amdxdna_umap, refcnt);
+
+	mmu_interval_notifier_remove(&mapp->notifier);
 	kvfree(mapp->range.hmm_pfns);
 	kfree(mapp);
 }
@@ -341,6 +351,20 @@ static void amdxdna_hmm_unreg_work(struct work_struct *work)
 {
 	struct amdxdna_umap *mapp = container_of(work, struct amdxdna_umap,
 						 hmm_unreg_work);
+	struct amdxdna_gem_obj *abo = mapp->abo;
+	struct amdxdna_dev *xdna;
+
+	xdna = to_xdna_dev(to_gobj(mapp->abo)->dev);
+	down_write(&xdna->notifier_lock);
+	if (mapp->cleanup) {
+		up_write(&xdna->notifier_lock);
+		return;
+	}
+
+	list_del(&mapp->node);
+	if (list_empty(&abo->mem.umap_list))
+		abo->mem.uva = AMDXDNA_INVALID_ADDR;
+	up_write(&xdna->notifier_lock);
 
 	amdxdna_umap_put(mapp);
 }
@@ -643,8 +667,7 @@ static void amdxdna_gem_obj_free(struct drm_gem_object *gobj)
 	struct amdxdna_dev *xdna = to_xdna_dev(gobj->dev);
 	struct amdxdna_gem_obj *abo = to_xdna_obj(gobj);
 
-	amdxdna_hmm_unregister(abo, NULL);
-	flush_workqueue(xdna->notifier_wq);
+	amdxdna_hmm_unregister_all(abo);
 
 	if (abo->pinned)
 		amdxdna_gem_unpin(abo);
diff --git a/drivers/accel/amdxdna/amdxdna_gem.h b/drivers/accel/amdxdna/amdxdna_gem.h
index 1e90e32bf3cd7..fb033ced1045f 100644
--- a/drivers/accel/amdxdna/amdxdna_gem.h
+++ b/drivers/accel/amdxdna/amdxdna_gem.h
@@ -20,6 +20,7 @@ struct amdxdna_umap {
 	struct kref			refcnt;
 	bool				invalid;
 	bool				unmapped;
+	bool				cleanup;
 };
 
 struct amdxdna_mem {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0151/2651] accel/amdxdna: Fix possible use-after-free when freeing device BO
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (149 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0150/2651] accel/amdxdna: Fix unexpected wait when flushing notifier_wq Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0152/2651] arm64: dts: rockchip: Correct Device Orientation on Gameforce Ace Greg Kroah-Hartman
                   ` (40 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Max Zhen, Lizhi Hou, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Lizhi Hou <lizhi.hou@amd.com>

[ Upstream commit 6a1f6cb7593aebcdb4f9022410622128fb23b1a1 ]

When the DRM file descriptor is closed, amdxdna_client_cleanup() frees
the client structure. If device BOs are still alive, freeing them may
access abo->client and result in a use-after-free.

Move amdxdna_gem_heap_free(), which accesses abo->client, before clearing
abo->client in the BO close callback. Also track the heap BOs referenced
by device BOs so they can be accessed without dereferencing abo->client.

Fixes: dbc8fd7a03cb ("accel/amdxdna: Add expandable device heap support")
Reviewed-by: Max Zhen <max.zhen@amd.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260901160129.3812405-1-lizhi.hou@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/accel/amdxdna/aie2_ctx.c    |   9 +-
 drivers/accel/amdxdna/amdxdna_gem.c | 128 ++++++++++++++++++++--------
 drivers/accel/amdxdna/amdxdna_gem.h |   4 +-
 3 files changed, 104 insertions(+), 37 deletions(-)

diff --git a/drivers/accel/amdxdna/aie2_ctx.c b/drivers/accel/amdxdna/aie2_ctx.c
index baf9a8b90a4d6..164441e439406 100644
--- a/drivers/accel/amdxdna/aie2_ctx.c
+++ b/drivers/accel/amdxdna/aie2_ctx.c
@@ -799,6 +799,7 @@ int aie2_hwctx_init(struct amdxdna_hwctx *hwctx)
 	for (i = 0; i < ARRAY_SIZE(priv->cmd_buf); i++) {
 		if (!priv->cmd_buf[i])
 			continue;
+		amdxdna_gem_heap_free(client, priv->cmd_buf[i]);
 		drm_gem_object_put(to_gobj(priv->cmd_buf[i]));
 	}
 	amdxdna_gem_unpin(heap);
@@ -836,8 +837,14 @@ void aie2_hwctx_fini(struct amdxdna_hwctx *hwctx)
 	drm_sched_fini(&hwctx->priv->sched);
 	aie2_ctx_syncobj_destroy(hwctx);
 
-	for (idx = 0; idx < ARRAY_SIZE(hwctx->priv->cmd_buf); idx++)
+	for (idx = 0; idx < ARRAY_SIZE(hwctx->priv->cmd_buf); idx++) {
+		/*
+		 * The open/close will never be called for driver allocated
+		 * dev bo. Call amdxdna_gem_heap_free explicitly.
+		 */
+		amdxdna_gem_heap_free(hwctx->client, hwctx->priv->cmd_buf[idx]);
 		drm_gem_object_put(to_gobj(hwctx->priv->cmd_buf[idx]));
+	}
 	amdxdna_gem_unpin(hwctx->priv->heap);
 	drm_gem_object_put(to_gobj(hwctx->priv->heap));
 
diff --git a/drivers/accel/amdxdna/amdxdna_gem.c b/drivers/accel/amdxdna/amdxdna_gem.c
index d305c58244fd0..3f05fa8811af1 100644
--- a/drivers/accel/amdxdna/amdxdna_gem.c
+++ b/drivers/accel/amdxdna/amdxdna_gem.c
@@ -37,6 +37,7 @@ amdxdna_init_dev_bo(struct amdxdna_gem_obj *dev_bo)
 	struct amdxdna_gem_obj *heap;
 	u64 heap_addr, exp_heap_uva;
 	u32 heap_id;
+	int ret;
 
 	if (xa_empty(&client->dev_heap_xa)) {
 		XDNA_DBG(xdna, "Empty heap xa");
@@ -58,24 +59,32 @@ amdxdna_init_dev_bo(struct amdxdna_gem_obj *dev_bo)
 	heap = xa_load(&client->dev_heap_xa, heap_id);
 	exp_heap_uva = amdxdna_gem_uva(heap);
 	heap_addr = amdxdna_gem_dev_addr(heap);
-	dev_bo->heap_start_id = heap_id;
 	dev_bo->mem.uva = dev_bo->mm_node.start - heap_addr + exp_heap_uva;
 
 	for (; heap_id < client->dev_heap_nid; heap_id++) {
 		heap = xa_load(&client->dev_heap_xa, heap_id);
 		if (!heap) {
 			XDNA_ERR(xdna, "Failed to load heap %d", heap_id);
-			return -EINVAL;
+			ret = -EINVAL;
+			goto cleanup_heap_xa;
 		}
 		heap_addr = amdxdna_gem_uva(heap);
 		if (heap_addr == AMDXDNA_INVALID_ADDR) {
 			XDNA_ERR(xdna, "Heap %d is not mapped", heap_id);
-			return -EAGAIN;
+			ret = -EAGAIN;
+			goto cleanup_heap_xa;
 		}
 
 		if (heap_addr != exp_heap_uva) {
 			XDNA_ERR(xdna, "Heap %d uva is not contiguous", heap_id);
-			return -EINVAL;
+			ret = -EINVAL;
+			goto cleanup_heap_xa;
+		}
+
+		ret = xa_insert(&dev_bo->heap_xa, heap_id, heap, GFP_KERNEL);
+		if (ret) {
+			ret = -ENOMEM;
+			goto cleanup_heap_xa;
 		}
 
 		if (heap->dev_addr + heap->mem.size >=
@@ -87,12 +96,15 @@ amdxdna_init_dev_bo(struct amdxdna_gem_obj *dev_bo)
 
 	if (heap_id == client->dev_heap_nid) {
 		XDNA_DBG(xdna, "Can not find heap end");
-		return -EAGAIN;
+		ret = -EAGAIN;
+		goto cleanup_heap_xa;
 	}
 
-	dev_bo->heap_end_id = heap_id;
-
 	return 0;
+
+cleanup_heap_xa:
+	xa_destroy(&dev_bo->heap_xa);
+	return ret;
 }
 
 static int
@@ -132,8 +144,7 @@ amdxdna_gem_heap_alloc(struct amdxdna_gem_obj *abo)
 	}
 
 	client->heap_usage += mem->size;
-	xa_for_each_range(&client->dev_heap_xa, heap_id, heap,
-			  abo->heap_start_id, abo->heap_end_id)
+	xa_for_each(&abo->heap_xa, heap_id, heap)
 		drm_gem_object_get(to_gobj(heap));
 
 unlock_out:
@@ -142,22 +153,13 @@ amdxdna_gem_heap_alloc(struct amdxdna_gem_obj *abo)
 	return ret;
 }
 
-static void
-amdxdna_gem_heap_free(struct amdxdna_gem_obj *abo)
+void amdxdna_gem_heap_free(struct amdxdna_client *client, struct amdxdna_gem_obj *abo)
 {
-	struct amdxdna_client *client = abo->client;
-	struct amdxdna_gem_obj *heap;
-	unsigned long heap_id;
-
 	mutex_lock(&client->mm_lock);
 
 	drm_mm_remove_node(&abo->mm_node);
 	client->heap_usage -= abo->mem.size;
 
-	xa_for_each_range(&client->dev_heap_xa, heap_id, heap,
-			  abo->heap_start_id, abo->heap_end_id)
-		drm_gem_object_put(to_gobj(heap));
-
 	mutex_unlock(&client->mm_lock);
 }
 
@@ -180,6 +182,7 @@ amdxdna_gem_create_obj(struct drm_device *dev, size_t size)
 	abo->open_ref = 0;
 	abo->internal = false;
 	INIT_LIST_HEAD(&abo->mem.umap_list);
+	xa_init_flags(&abo->heap_xa, XA_FLAGS_ALLOC);
 
 	return abo;
 }
@@ -449,13 +452,18 @@ static void amdxdna_gem_dev_obj_free(struct drm_gem_object *gobj)
 {
 	struct amdxdna_dev *xdna = to_xdna_dev(gobj->dev);
 	struct amdxdna_gem_obj *abo = to_xdna_obj(gobj);
+	struct amdxdna_gem_obj *heap;
+	unsigned long heap_id;
 
 	XDNA_DBG(xdna, "BO type %d xdna_addr 0x%llx", abo->type, amdxdna_gem_dev_addr(abo));
 	if (abo->pinned)
 		amdxdna_gem_unpin(abo);
 
 	amdxdna_gem_vunmap(abo);
-	amdxdna_gem_heap_free(abo);
+	xa_for_each(&abo->heap_xa, heap_id, heap)
+		drm_gem_object_put(to_gobj(heap));
+	xa_destroy(&abo->heap_xa);
+
 	drm_gem_object_release(gobj);
 	amdxdna_gem_destroy_obj(abo);
 }
@@ -757,19 +765,72 @@ static void amdxdna_gem_obj_vunmap(struct drm_gem_object *obj, struct iosys_map
 		drm_gem_shmem_object_vunmap(obj, map);
 }
 
+static int amdxdna_gem_dev_obj_open(struct drm_gem_object *gobj, struct drm_file *filp)
+{
+	struct amdxdna_gem_obj *abo = to_xdna_obj(gobj);
+
+	guard(mutex)(&abo->lock);
+	if (filp->driver_priv != abo->client)
+		return -EPERM;
+	abo->open_ref++;
+
+	return 0;
+}
+
+static void amdxdna_gem_dev_obj_close(struct drm_gem_object *gobj, struct drm_file *filp)
+{
+	struct amdxdna_gem_obj *abo = to_xdna_obj(gobj);
+	struct amdxdna_client *client = NULL;
+
+	mutex_lock(&abo->lock);
+	abo->open_ref--;
+
+	/*
+	 * Freeing the heap allocation here, when the handle is closed, is
+	 * intentional.  DEV BOs are carved out of a per-client drm_mm heap;
+	 * any subsequent allocation that lands on the same device address will
+	 * also belong to the same client.  If the user closes the handle while
+	 * a job is still in flight the only consequence is self-inflicted
+	 * corruption within their own context -- it cannot affect other
+	 * processes.  The GEM reference held by the in-flight job keeps the
+	 * amdxdna_gem_obj struct alive until the job completes; it does not
+	 * prevent the device address from being reclaimed by the allocator.
+	 *
+	 * Cross-process handle creation for DEV BOs is rejected in
+	 * amdxdna_gem_dev_obj_open(), which prevents the following UAF:
+	 * if a second process shared the handle via GEM flink and the
+	 * original creator exited (freeing client), the importer would later
+	 * reach open_ref == 0 here and call amdxdna_gem_heap_free() with a
+	 * dangling abo->client pointer.  Because cross-process opens are
+	 * rejected, the process arriving here is always the owning client,
+	 * which is still alive.  abo->client is nulled out afterwards so that
+	 * any code path running on a lingering GEM reference (e.g. an
+	 * in-flight job) cannot silently dereference a stale pointer.
+	 */
+	if (abo->open_ref == 0) {
+		client = abo->client;
+		abo->client = NULL;
+	}
+	mutex_unlock(&abo->lock);
+
+	if (client)
+		amdxdna_gem_heap_free(client, abo);
+}
+
 static int amdxdna_gem_dev_obj_vmap(struct drm_gem_object *obj, struct iosys_map *map)
 {
 	struct amdxdna_gem_obj *abo = to_xdna_obj(obj);
 	struct amdxdna_gem_obj *heap;
+	unsigned long index = 0;
 	void *base;
 	u64 offset;
 
-	/* vmap dev bo which is across more than 1 heap is not allowed */
-	if (abo->heap_start_id != abo->heap_end_id)
+	heap = xa_find(&abo->heap_xa, &index, ULONG_MAX, XA_PRESENT);
+	if (!heap)
 		return -ENOMEM;
 
-	heap = xa_load(&abo->client->dev_heap_xa, abo->heap_start_id);
-	if (!heap)
+	/* vmap dev bo which is across more than 1 heap is not allowed */
+	if (xa_find_after(&abo->heap_xa, &index, ULONG_MAX, XA_PRESENT))
 		return -ENOMEM;
 
 	base = amdxdna_gem_vmap(heap);
@@ -788,6 +849,8 @@ static struct dma_buf *amdxdna_gem_dev_obj_export(struct drm_gem_object *gobj, i
 
 static const struct drm_gem_object_funcs amdxdna_gem_dev_obj_funcs = {
 	.free = amdxdna_gem_dev_obj_free,
+	.open = amdxdna_gem_dev_obj_open,
+	.close = amdxdna_gem_dev_obj_close,
 	.vmap = amdxdna_gem_dev_obj_vmap,
 	.export = amdxdna_gem_dev_obj_export,
 };
@@ -1126,6 +1189,8 @@ int amdxdna_drm_create_bo_ioctl(struct drm_device *dev, void *data, struct drm_f
 		 args->handle, args->type, amdxdna_gem_uva(abo),
 		 amdxdna_gem_dev_addr(abo), abo->mem.size);
 put_obj:
+	if (ret && abo->type == AMDXDNA_BO_DEV)
+		amdxdna_gem_heap_free(client, abo);
 	/* Dereference object reference. Handle holds it now. */
 	drm_gem_object_put(to_gobj(abo));
 	return ret;
@@ -1159,7 +1224,6 @@ static void amdxdna_bo_unpin(struct amdxdna_gem_obj *abo)
 
 int amdxdna_gem_pin_nolock(struct amdxdna_gem_obj *abo)
 {
-	struct amdxdna_client *client = abo->client;
 	struct amdxdna_gem_obj *heap;
 	unsigned long heap_id, last = ULONG_MAX;
 	int ret = 0;
@@ -1167,17 +1231,15 @@ int amdxdna_gem_pin_nolock(struct amdxdna_gem_obj *abo)
 	if (abo->type != AMDXDNA_BO_DEV)
 		return amdxdna_bo_pin(abo);
 
-	xa_for_each_range(&client->dev_heap_xa, heap_id, heap,
-			  abo->heap_start_id, abo->heap_end_id) {
+	xa_for_each(&abo->heap_xa, heap_id, heap) {
 		ret = amdxdna_bo_pin(heap);
 		if (ret)
 			break;
 		last = heap_id;
 	}
 
-	if (ret && last <= abo->heap_end_id) {
-		xa_for_each_range(&client->dev_heap_xa, heap_id, heap,
-				  abo->heap_start_id, last)
+	if (ret && last != ULONG_MAX) {
+		xa_for_each_range(&abo->heap_xa, heap_id, heap, 0, last)
 			amdxdna_bo_unpin(heap);
 	}
 
@@ -1202,8 +1264,7 @@ void amdxdna_gem_unpin(struct amdxdna_gem_obj *abo)
 		struct amdxdna_gem_obj *heap;
 		unsigned long heap_id;
 
-		xa_for_each_range(&abo->client->dev_heap_xa, heap_id, heap,
-				  abo->heap_start_id, abo->heap_end_id)
+		xa_for_each(&abo->heap_xa, heap_id, heap)
 			amdxdna_bo_unpin(heap);
 	} else {
 		amdxdna_bo_unpin(abo);
@@ -1323,8 +1384,7 @@ int amdxdna_drm_sync_bo_ioctl(struct drm_device *dev,
 		u64 flush_start = bo_start + args->offset;
 		u64 flush_end = flush_start + args->size;
 
-		xa_for_each_range(&client->dev_heap_xa, heap_id, heap,
-				  abo->heap_start_id, abo->heap_end_id) {
+		xa_for_each(&abo->heap_xa, heap_id, heap) {
 			u64 heap_start = amdxdna_gem_dev_addr(heap);
 			u64 heap_end = heap_start + heap->mem.size;
 			u64 start = max(flush_start, heap_start);
diff --git a/drivers/accel/amdxdna/amdxdna_gem.h b/drivers/accel/amdxdna/amdxdna_gem.h
index fb033ced1045f..5dfefdcf13560 100644
--- a/drivers/accel/amdxdna/amdxdna_gem.h
+++ b/drivers/accel/amdxdna/amdxdna_gem.h
@@ -47,8 +47,7 @@ struct amdxdna_gem_obj {
 
 	/* Below members are initialized when needed */
 	struct drm_mm_node		mm_node; /* For AMDXDNA_BO_DEV */
-	u32				heap_start_id;
-	u32				heap_end_id;
+	struct xarray			heap_xa;
 	u64				dev_addr; /* For heap bo */
 	u32				assigned_hwctx;
 	struct dma_buf			*dma_buf;
@@ -105,6 +104,7 @@ static inline u64 amdxdna_obj_dma_addr(struct amdxdna_gem_obj *abo)
 }
 
 void amdxdna_umap_put(struct amdxdna_umap *mapp);
+void amdxdna_gem_heap_free(struct amdxdna_client *client, struct amdxdna_gem_obj *abo);
 
 struct drm_gem_object *
 amdxdna_gem_create_shmem_object_cb(struct drm_device *dev, size_t size);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0152/2651] arm64: dts: rockchip: Correct Device Orientation on Gameforce Ace
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (150 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0151/2651] accel/amdxdna: Fix possible use-after-free when freeing device BO Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0153/2651] cxl/ras: Pass the PCI devices struct device to match_memdev_by_parent() Greg Kroah-Hartman
                   ` (39 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Chris Morgan, Heiko Stuebner,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Chris Morgan <macromorgan@hotmail.com>

[ Upstream commit 0d170ee38e7a943248082cdb4b3e40b45a96e2f6 ]

The display, touchscreen, and IMU are currently not oriented
consistently. The touchscreen is 90 degrees offset and the IMU is using
the default mount matrix which is 180 degrees offset.

Fix the touchscreen alignment and add a mount matrix for the IMU. When
the device is held vertically relative to the display hardware, the
touchscreen 0,0 position is in the top left corner of the display
(next to the home button), and the IMU reads the correct orientation.

Fixes: 4e946c447a04 ("arm64: dts: rockchip: Add GameForce Ace")
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Link: https://patch.msgid.link/20260828205331.78185-1-macroalpha82@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/rockchip/rk3588s-gameforce-ace.dts | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-gameforce-ace.dts b/arch/arm64/boot/dts/rockchip/rk3588s-gameforce-ace.dts
index 230aac005e8f6..d43eb48152e8a 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-gameforce-ace.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-gameforce-ace.dts
@@ -596,6 +596,7 @@ regulator-state-mem {
 &i2c3 {
 	status = "okay";
 
+	/* Touchscreen is rotated 90 degrees with 0,0 position near home button. */
 	touchscreen@14 {
 		compatible = "goodix,gt911";
 		reg = <0x14>;
@@ -605,10 +606,8 @@ touchscreen@14 {
 		pinctrl-0 = <&touch_int>, <&touch_rst>;
 		pinctrl-names = "default";
 		reset-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>;
-		touchscreen-inverted-x;
 		touchscreen-size-x = <1080>;
 		touchscreen-size-y = <1920>;
-		touchscreen-swapped-x-y;
 	};
 };
 
@@ -641,11 +640,15 @@ channel@7 {
 		};
 	};
 
+	/* IMU oriented relative to panel, which is rotated 90 degrees. */
 	imu@68 {
 		compatible = "invensense,mpu6880";
 		reg = <0x68>;
 		interrupt-parent = <&gpio0>;
 		interrupts = <RK_PD3 IRQ_TYPE_EDGE_RISING>;
+		mount-matrix = "-1", "0", "0",
+			       "0", "-1", "0",
+			       "0", "0", "1";
 	};
 };
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0153/2651] cxl/ras: Pass the PCI devices struct device to match_memdev_by_parent()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (151 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0152/2651] arm64: dts: rockchip: Correct Device Orientation on Gameforce Ace Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0154/2651] wifi: rtw89: coex: Fix wrong constant check of GPIO MUX signal Greg Kroah-Hartman
                   ` (38 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Alison Schofield, Terry Bowman,
	Dave Jiang, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Dave Jiang <dave.jiang@intel.com>

[ Upstream commit 977eaad352bad4c4aac7cd15683800196c2ead57 ]

cxl_cper_handle_prot_err() hands bus_find_device() the 'struct pci_dev'
where match_memdev_by_parent() expects the embedded 'struct device'. The
comparison never matches. The lookup always fails and CXL endpoint
protocol errors reported via CPER are dropped without a trace event,
leaving only the root port, downstream and upstream cases reporting.

Pass &pdev->dev, and rename the callback parameter to match what it is.

Fixes: 3c70ec71abda ("cxl/ras: Fix CPER handler device confusion")
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Terry Bowman <terry.bowman@amd.com>
Link: https://patch.msgid.link/20260828215726.1077498-1-dave.jiang@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/cxl/core/ras.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/cxl/core/ras.c b/drivers/cxl/core/ras.c
index e307361bb39e4..0759fc9b07de0 100644
--- a/drivers/cxl/core/ras.c
+++ b/drivers/cxl/core/ras.c
@@ -70,9 +70,9 @@ cxl_cper_trace_uncorr_prot_err(struct cxl_memdev *cxlmd,
 	trace_cxl_aer_uncorrectable_error(cxlmd, status, fe, hl);
 }
 
-static int match_memdev_by_parent(struct device *dev, const void *uport)
+static int match_memdev_by_parent(struct device *dev, const void *parent)
 {
-	if (is_cxl_memdev(dev) && dev->parent == uport)
+	if (is_cxl_memdev(dev) && dev->parent == parent)
 		return 1;
 	return 0;
 }
@@ -108,7 +108,7 @@ void cxl_cper_handle_prot_err(struct cxl_cper_prot_err_work_data *data)
 		return;
 
 	struct device *mem_dev __free(put_device) = bus_find_device(
-		&cxl_bus_type, NULL, pdev, match_memdev_by_parent);
+		&cxl_bus_type, NULL, &pdev->dev, match_memdev_by_parent);
 	if (!mem_dev)
 		return;
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0154/2651] wifi: rtw89: coex: Fix wrong constant check of GPIO MUX signal
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (152 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0153/2651] cxl/ras: Pass the PCI devices struct device to match_memdev_by_parent() Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0155/2651] wifi: mm81x: fix type bugs handling sdio_readl/writel() Greg Kroah-Hartman
                   ` (37 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Gongwei Li, Ping-Ke Shih,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Gongwei Li <ligongwei@kylinos.cn>

[ Upstream commit fc17fd87d9f210850f81e547ee88eba89d6f2d50 ]

In _fw_set_gpio(), the check for an invalid GPIO signal uses `sig == 0xff`.
However, _get_gpiosig_for_ver() never returns 0xff. Both of its failure
branches return BTC_DBG_NUM (defined as 32) when the requested signal is
unsupported for the current firmware version.

Check the result against BTC_DBG_NUM instead, the same as _show_gpio_dbg()
already does.

Fixes: 5c90259b9748 ("wifi: rtw89: coex: complete GPIO debug configuration handler")
Signed-off-by: Gongwei Li <ligongwei@kylinos.cn>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260826031959.2555359-1-13875017792@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/wireless/realtek/rtw89/coex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/realtek/rtw89/coex.c b/drivers/net/wireless/realtek/rtw89/coex.c
index 5a9dc4d8a00ba..12bd5539e8c6d 100644
--- a/drivers/net/wireless/realtek/rtw89/coex.c
+++ b/drivers/net/wireless/realtek/rtw89/coex.c
@@ -3365,7 +3365,7 @@ static void _fw_set_gpio(struct rtw89_dev *rtwdev, u8 type, u32 val)
 		gpio->mux.data.dlen = CXDGPIO_SET_L2;
 		gpio->mux.data.sig = _get_gpiosig_for_ver(rtwdev,
 							  FIELD_GET(GENMASK(7, 0), val));
-		if (gpio->mux.data.sig == 0xff)
+		if (gpio->mux.data.sig >= BTC_DBG_NUM)
 			return;
 		gpio->mux.data.gpio = FIELD_GET(GENMASK(15, 8), val);
 		l2_h2c = gpio->mux.fmt;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0155/2651] wifi: mm81x: fix type bugs handling sdio_readl/writel()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (153 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0154/2651] wifi: rtw89: coex: Fix wrong constant check of GPIO MUX signal Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0156/2651] wifi: rtw88: debugfs: dont vzalloc(0) when rsvd_page is read unconfigured Greg Kroah-Hartman
                   ` (36 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Dan Carpenter, Lachlan Hodges,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Dan Carpenter <error27@gmail.com>

[ Upstream commit 37f018809909dfc99646b1b1f79c2b3968e7890a ]

The sdio_readl() and sdio_writel() functions, instead of returning kernel
error codes, instead stores the error codes in a parameter.  These caller
functions pass should pass an int pointer to store the error code but
instead pass a signed long.

This will not work on big endian systems.  On little endian systems
passing a ssize_t means negative error codes are converted to positive
values near UINT_MAX.  This doesn't cause a problem at runtime because
in mm81x_sdio_reg32_write() the error codes are discarded and we always
return -EIO.  In mm81x_sdio_reg32_read() the high bits are truncated
away so the positive value is re-converted back to negative and the
code works as intended.

Either way, passing an int is the correct thing and is a cleanup.

Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/aoa7Hj1W7ETOrOzO@stanley.mountain
Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/wireless/morsemicro/mm81x/sdio.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wireless/morsemicro/mm81x/sdio.c b/drivers/net/wireless/morsemicro/mm81x/sdio.c
index 96fce187dd352..65277399bf189 100644
--- a/drivers/net/wireless/morsemicro/mm81x/sdio.c
+++ b/drivers/net/wireless/morsemicro/mm81x/sdio.c
@@ -381,7 +381,7 @@ static int mm81x_sdio_dm_read(struct mm81x *mors, u32 address, u8 *data,
 
 static int mm81x_sdio_reg32_write(struct mm81x *mors, u32 address, u32 val)
 {
-	ssize_t ret = 0;
+	int ret = 0;
 	u32 original_address = address;
 	struct mm81x_sdio *sdio = (struct mm81x_sdio *)mors->drv_priv;
 	struct sdio_func *func1 = sdio->func->card->sdio_func[0];
@@ -391,7 +391,7 @@ static int mm81x_sdio_reg32_write(struct mm81x *mors, u32 address, u32 val)
 
 	address &= 0x0000FFFF;
 	sdio_writel(func1, (__force u32)cpu_to_le32(val),
-		    (__force u32)cpu_to_le32(address), (int *)&ret);
+		    (__force u32)cpu_to_le32(address), &ret);
 	if (ret)
 		goto error;
 
@@ -411,7 +411,7 @@ static int mm81x_sdio_reg32_write(struct mm81x *mors, u32 address, u32 val)
 static int mm81x_sdio_reg32_read(struct mm81x *mors, u32 address, u32 *val)
 {
 	u32 value;
-	ssize_t ret = 0;
+	int ret = 0;
 	struct mm81x_sdio *sdio = (struct mm81x_sdio *)mors->drv_priv;
 	struct sdio_func *func1 = sdio->func->card->sdio_func[0];
 
@@ -419,8 +419,7 @@ static int mm81x_sdio_reg32_read(struct mm81x *mors, u32 address, u32 *val)
 					 MM81X_CONFIG_ACCESS_4BYTE);
 
 	address &= 0x0000FFFF;
-	value = sdio_readl(func1, (__force u32)cpu_to_le32(address),
-			   (int *)&ret);
+	value = sdio_readl(func1, (__force u32)cpu_to_le32(address), &ret);
 	if (ret)
 		return ret;
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0156/2651] wifi: rtw88: debugfs: dont vzalloc(0) when rsvd_page is read unconfigured
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (154 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0155/2651] wifi: mm81x: fix type bugs handling sdio_readl/writel() Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0157/2651] sched_ext/scx_flatcg: Make cgv_node_less() wraparound-safe Greg Kroah-Hartman
                   ` (35 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Abdurrahman Karadag, Ping-Ke Shih,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Abdurrahman Karadag <abdurrahmankaradag19@gmail.com>

[ Upstream commit 81510c3d6f2199889a4a936d8cf8b9e05911b10e ]

Reading the rsvd_page debugfs entry before writing a page offset and
count to it calls vzalloc() with a size of zero, because
rsvd_page.page_num defaults to 0.  vmalloc warns about this:

  WARNING: mm/vmalloc.c:4019 at __vmalloc_node_range_noprof+0x9ac/0xa30
  ...
  Call Trace:
   __vmalloc_node_noprof+0x4c/0x70
   rtw_debugfs_get_rsvd_page+0x4c/0x110 [rtw88_core]
   seq_read_iter+0x132/0x4b0
   seq_read+0x12e/0x1c0
   full_proxy_read+0x6f/0xc0
   vfs_read+0xdd/0x490

rtw_fw_dump_fifo() would reject the zero size anyway, but only after
the allocation.  Check for a zero buffer size first and print a short
usage hint instead of allocating.

Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver")
Signed-off-by: Abdurrahman Karadag <abdurrahmankaradag19@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260827131244.35623-1-abdurrahmankaradag19@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/wireless/realtek/rtw88/debug.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtw88/debug.c b/drivers/net/wireless/realtek/rtw88/debug.c
index b67d69b01f879..84e45af26f525 100644
--- a/drivers/net/wireless/realtek/rtw88/debug.c
+++ b/drivers/net/wireless/realtek/rtw88/debug.c
@@ -315,6 +315,11 @@ static int rtw_debugfs_get_rsvd_page(struct seq_file *m, void *v)
 	int i;
 	int ret;
 
+	if (!buf_size) {
+		seq_puts(m, "usage: echo <page_offset> <page_num> > rsvd_page\n");
+		return 0;
+	}
+
 	buf = vzalloc(buf_size);
 	if (!buf)
 		return -ENOMEM;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0157/2651] sched_ext/scx_flatcg: Make cgv_node_less() wraparound-safe
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (155 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0156/2651] wifi: rtw88: debugfs: dont vzalloc(0) when rsvd_page is read unconfigured Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0158/2651] fuse: dont fill in.h.pid in case args->nocreds is set Greg Kroah-Hartman
                   ` (34 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Sashiko, Tao Cui, Tejun Heo,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Tao Cui <cuitao@kylinos.cn>

[ Upstream commit bf2f23dc5a36237c0d4738966829e5cbde973c8a ]

cgv_node_less() compares cvtimes with a plain <, which misorders once
cvtime wraps: the wrapped node lands at the front of the tree while
the unwrapped ones get stuck behind it. Each CPU picking a cgroup
charges it a full slice, making wrap occur earlier than a naive
estimate might suggest.

Use time_before() instead. cgrp_cap_budget() bounds the lag behind
cvtime_now, while the lead is bounded by the slice charge plus pending
cvtime_delta on re-insertion, so the cyclic ordering assumptions of
time_before() hold.

Fixes: a4103eacc2ab ("sched_ext: Add a cgroup scheduler which uses flattened hierarchy")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://lore.kernel.org/r/3f1ce004-e259-4e72-a5f7-14a5050053bd@linux.dev
Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/sched_ext/scx_flatcg.bpf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/sched_ext/scx_flatcg.bpf.c b/tools/sched_ext/scx_flatcg.bpf.c
index 454ebb820c5eb..5e6abd0bccb32 100644
--- a/tools/sched_ext/scx_flatcg.bpf.c
+++ b/tools/sched_ext/scx_flatcg.bpf.c
@@ -144,7 +144,7 @@ static bool cgv_node_less(struct bpf_rb_node *a, const struct bpf_rb_node *b)
 	cgc_a = container_of(a, struct cgv_node, rb_node);
 	cgc_b = container_of(b, struct cgv_node, rb_node);
 
-	return cgc_a->cvtime < cgc_b->cvtime;
+	return time_before(cgc_a->cvtime, cgc_b->cvtime);
 }
 
 static struct fcg_cpu_ctx *find_cpu_ctx(void)
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0158/2651] fuse: dont fill in.h.pid in case args->nocreds is set
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (156 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0157/2651] sched_ext/scx_flatcg: Make cgv_node_less() wraparound-safe Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0160/2651] fuse: fall back to copy_splice_read() on FOPEN_DIRECT_IO Greg Kroah-Hartman
                   ` (33 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, David CARLIER, Miklos Szeredi,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Miklos Szeredi <mszeredi@redhat.com>

[ Upstream commit 1642e6b6a6ae0dcf61280e1c3110eba62582d4d2 ]

Commit 794e811d1443 ("fuse: split out filesystem part of request sending")
alters the pid sent on force && nocreds requests.

Previously these allocated a zeroed request and skipped fuse_force_creds(),
so they went out with in.h.pid == 0.

In fuse_fill_creds(), args->pid is now set before the nocreds early return,
and fuse_args_to_req() copies it unconditionally - so writeback, release,
and DESTROY requests now report the triggering (often kernel-worker) pid
instead of 0.

Move the nocreds check above setting args->pid.  Also remove the
WARN_ON(!args->nocreds) from the !args->force branch, since it's obviously
not going to be triggered.

Reported-by: David CARLIER <devnexen@gmail.com>
Closes: https://lore.kernel.org/all/CA+XhMqye_NBihcadRTU=w4xAfrdY9rsMB3oHF5+bwHukkjHMoQ@mail.gmail.com/
Fixes: 794e811d1443 ("fuse: split out filesystem part of request sending")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/fuse/req.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/fs/fuse/req.c b/fs/fuse/req.c
index a01ee743d31e9..51cfd64ea1bad 100644
--- a/fs/fuse/req.c
+++ b/fs/fuse/req.c
@@ -10,12 +10,12 @@ static int fuse_fill_creds(struct fuse_mount *fm, struct fuse_args *args, struct
 	kuid_t fsuid = mapped_fsuid(idmap, fc->user_ns);
 	kgid_t fsgid = mapped_fsgid(idmap, fc->user_ns);
 
+	if (args->nocreds)
+		return 0;
+
 	args->pid = pid_nr_ns(task_pid(current), fc->pid_ns);
 
 	if (args->force) {
-		if (args->nocreds)
-			return 0;
-
 		if (no_idmap) {
 			args->uid = from_kuid_munged(fc->user_ns, current_fsuid());
 			args->gid = from_kgid_munged(fc->user_ns, current_fsgid());
@@ -26,7 +26,6 @@ static int fuse_fill_creds(struct fuse_mount *fm, struct fuse_args *args, struct
 		return 0;
 	}
 
-	WARN_ON(args->nocreds);
 	/*
 	 * Keep the old behavior when idmappings support was not
 	 * declared by a FUSE server.
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0160/2651] fuse: fall back to copy_splice_read() on FOPEN_DIRECT_IO
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (157 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0158/2651] fuse: dont fill in.h.pid in case args->nocreds is set Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0161/2651] sched/core: Dont steal a proxy-exec donor Greg Kroah-Hartman
                   ` (32 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Yafang Shao, Changyuan Lyu,
	Miklos Szeredi, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Miklos Szeredi <mszeredi@redhat.com>

[ Upstream commit 10bd6b32965265688fa277d166ab224de8e86eb2 ]

Yafang Shao reports:

  "After upgrading the kernel from 6.1.y to 6.18.y on production servers,
  some containers failed to read lxcfs data. The root cause is that our
  lxcfs is still at the old v3.0.4, which does not include commit 25982f5
  ("Set the file size to 4k") [0].

  Between 6.1.y and 6.18.y, the FUSE splice_read path was converted from
  generic_file_splice_read() to filemap_splice_read() by commit
  2cb1e08985e3 ("splice: Use filemap_splice_read() instead of
  generic_file_splice_read()"). Unlike generic_file_splice_read(),
  filemap_splice_read() strictly checks i_size and refuses to read from
  zero-size files, which breaks virtual FUSE filesystems like the old
  lxcfs."

Fix by using copy_splice_read() for the FOPEN_DIRECT_IO case, just like the
VFS does for DAX and O_DIRECT files.

Reported-by: Yafang Shao <laoar.shao@gmail.com>
Closes: https://lore.kernel.org/all/20260706025705.58301-1-laoar.shao@gmail.com/
Reported-by: Changyuan Lyu <changyuanl@google.com>
Closes: https://lore.kernel.org/all/20260901213412.1763253-1-changyuanl@google.com/
Fixes: 2cb1e08985e3 ("splice: Use filemap_splice_read() instead of generic_file_splice_read()")
Tested-and-acked-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/fuse/file.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 7e6eba6e7086f..f51551165e8fe 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1895,7 +1895,10 @@ static ssize_t fuse_splice_read(struct file *in, loff_t *ppos,
 	struct fuse_file *ff = in->private_data;
 
 	/* FOPEN_DIRECT_IO overrides FOPEN_PASSTHROUGH */
-	if (fuse_file_passthrough(ff) && !(ff->open_flags & FOPEN_DIRECT_IO))
+
+	if (ff->open_flags & FOPEN_DIRECT_IO)
+		return copy_splice_read(in, ppos, pipe, len, flags);
+	else if (fuse_file_passthrough(ff))
 		return fuse_passthrough_splice_read(in, ppos, pipe, len, flags);
 	else
 		return filemap_splice_read(in, ppos, pipe, len, flags);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0161/2651] sched/core: Dont steal a proxy-exec donor
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (158 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0160/2651] fuse: fall back to copy_splice_read() on FOPEN_DIRECT_IO Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0162/2651] sched/core: Dont proxy-exec unmatched cookie lock owners Greg Kroah-Hartman
                   ` (31 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Vasily Gorbik, John Stultz,
	Peter Zijlstra (Intel), Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Vasily Gorbik <gor@linux.ibm.com>

[ Upstream commit 3dd95f077371f5def65a91c4bb13bd574a62bc3a ]

try_steal_cookie() avoids stealing src->core_pick and src->curr before
moving a task with the same cookie via move_queued_task_locked().

With proxy-exec, src->donor is the current scheduling context and may
differ from src->curr. Stealing it migrates a task that the source rq
still treats as current, leaving src's scheduler state for that task
stale. For CFS this means cfs_rq->curr points at the stolen entity,
and the next pick on the source rq hits the WARN_ON_ONCE in
put_prev_entity().

Commit 7de9d4f94638 ("sched: Start blocked_on chain processing in
find_proxy_task()") tweaked the fair class logic so that the donor task
isn't migrated away while we're running the proxy. Do it similarly for
try_steal_cookie() and skip src->donor as well.

Fixes: 7de9d4f94638 ("sched: Start blocked_on chain processing in find_proxy_task()")
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260807035232.1881495-3-jstultz@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 1754d9f95f2cf..f4166e36a8f9e 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6517,7 +6517,7 @@ static bool try_steal_cookie(int this, int that)
 		return false;
 
 	do {
-		if (p == src->core_pick || p == src->curr)
+		if (p == src->core_pick || p == src->curr || p == src->donor)
 			goto next;
 
 		if (!is_cpu_allowed(p, this))
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0162/2651] sched/core: Dont proxy-exec unmatched cookie lock owners
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (159 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0161/2651] sched/core: Dont steal a proxy-exec donor Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0163/2651] sched: Switch rq->next_class in proxy_reset_donor() Greg Kroah-Hartman
                   ` (30 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, K Prateek Nayak, Vasily Gorbik,
	John Stultz, Peter Zijlstra (Intel), Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Vasily Gorbik <gor@linux.ibm.com>

[ Upstream commit 09351db90a28ee6a82dc873609edfde02da5415d ]

Core scheduling chooses a core-wide cookie before __schedule()
installs the next task. With proxy-exec enabled, that task becomes the
donor/scheduling context, and find_proxy_task() may then replace the
execution context with the runnable mutex owner. If its cookie differs
from the selected core cookie, running it would bypass core scheduling's
cookie selection.

When the final mutex owner found by find_proxy_task() does not match the
selected core cookie, stop proxying the donor. If the current execution
context is already in the blocked chain, fall back to idle like the
existing proxy-exec retry paths do. Otherwise deactivate the donor and
let __schedule() pick again. The mutex owner can be picked later under
its own cookie.

Fixes: 7de9d4f94638 ("sched: Start blocked_on chain processing in find_proxy_task()")
[jstultz: Added tweak to ensure we deactivate donor, not runnable owner]
Reported-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/lkml/10282ce9-f4ae-498f-9b57-f4e1e61fffbc@amd.com/
Link: https://patch.msgid.link/20260807035232.1881495-5-jstultz@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 kernel/sched/core.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index f4166e36a8f9e..9c23a190e7de3 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7051,6 +7051,14 @@ find_proxy_task(struct rq *rq, struct task_struct *donor, struct rq_flags *rf)
 		owner->blocked_donor = p;
 	}
 	WARN_ON_ONCE(owner && !owner->on_rq);
+
+	if (owner && !sched_cpu_cookie_match(rq, owner)) {
+		if (curr_in_chain)
+			return proxy_resched_idle(rq);
+		p = donor; /* Deactivate the donor, not the runnable owner */
+		clear_task_blocked_on(p, NULL);
+		goto deactivate;
+	}
 	return owner;
 
 deactivate:
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0163/2651] sched: Switch rq->next_class in proxy_reset_donor()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (160 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0162/2651] sched/core: Dont proxy-exec unmatched cookie lock owners Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0169/2651] dlm: fix variable key length lookup Greg Kroah-Hartman
                   ` (29 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, John Stultz, Peter Zijlstra (Intel),
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: John Stultz <jstultz@google.com>

[ Upstream commit 1f880513859336b1d4f9731d3a67d22d0b3b6aad ]

Similar to commit 04f80f8b12a0 ("sched: Switch rq->next_class on
proxy_resched_idle()"), we should also set the rq->next_class
when we call proxy_reset_donor().

Fixes: f13beb010e4a ("sched: Have try_to_wake_up() handle return-migration for PROXY_WAKING case")
Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260807035232.1881495-6-jstultz@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 kernel/sched/core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 9c23a190e7de3..174b6b2331744 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3773,6 +3773,7 @@ static inline void proxy_reset_donor(struct rq *rq)
 	WARN_ON_ONCE(rq->donor == rq->curr);
 
 	put_prev_set_next_task(rq, rq->donor, rq->curr);
+	rq->next_class = rq->curr->sched_class;
 	rq_set_donor(rq, rq->curr);
 	zap_balance_callbacks(rq);
 	resched_curr(rq);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0169/2651] dlm: fix variable key length lookup
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (161 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0163/2651] sched: Switch rq->next_class in proxy_reset_donor() Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0170/2651] remoteproc: imx_dsp: Acquire runtime PM before adding carveouts Greg Kroah-Hartman
                   ` (28 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Alexander Aring, David Teigland,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Alexander Aring <aahringo@redhat.com>

[ Upstream commit b4e6ae7ba711758c38d5eb7d5a7a0712273bdf6f ]

Before commit 6c648035cbe7 ("dlm: switch to use rhashtable for rsbs")
the rsb hashtable was dynamic key length. Accidentally it was changed to
switch to static key length which can end in different results. We
fixing this back to the original behaviour by adding the necessary
functionality to rhashtable to handle the objects and lookups as dynamic
key lengths.

Fixes: 6c648035cbe7 ("dlm: switch to use rhashtable for rsbs")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/dlm/config.c       | 30 ++++++++++++++++++++++++++++--
 fs/dlm/dlm_internal.h |  5 +++++
 fs/dlm/lock.c         |  6 ++++--
 3 files changed, 37 insertions(+), 4 deletions(-)

diff --git a/fs/dlm/config.c b/fs/dlm/config.c
index 53cd332930423..6c5c3f049b33a 100644
--- a/fs/dlm/config.c
+++ b/fs/dlm/config.c
@@ -64,11 +64,37 @@ static void release_node(struct config_item *);
 static struct configfs_attribute *comm_attrs[];
 static struct configfs_attribute *node_attrs[];
 
+static u32 rsb_hashfn(const void *data, u32 len, u32 seed)
+{
+	const struct dlm_rsb_key *key = data;
+
+	return jhash(key->name, key->len, 0);
+}
+
+static u32 rsb_obj_hashfn(const void *data, u32 len, u32 seed)
+{
+	const struct dlm_rsb *r = data;
+
+	return r->res_hash;
+}
+
+static int rsb_obj_cmpfn(struct rhashtable_compare_arg *arg, const void *obj)
+{
+	const struct dlm_rsb_key *key = arg->key;
+	const struct dlm_rsb *r = obj;
+
+	if (key->len != r->res_length)
+		return -1;
+
+	return memcmp(&r->res_name, key->name, key->len);
+}
+
 const struct rhashtable_params dlm_rhash_rsb_params = {
 	.nelem_hint = 3, /* start small */
-	.key_len = DLM_RESNAME_MAXLEN,
-	.key_offset = offsetof(struct dlm_rsb, res_name),
 	.head_offset = offsetof(struct dlm_rsb, res_node),
+	.hashfn = rsb_hashfn,
+	.obj_hashfn = rsb_obj_hashfn,
+	.obj_cmpfn = rsb_obj_cmpfn,
 	.automatic_shrinking = true,
 };
 
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h
index 9df842421ae06..74c2e77d1b553 100644
--- a/fs/dlm/dlm_internal.h
+++ b/fs/dlm/dlm_internal.h
@@ -340,6 +340,11 @@ struct dlm_rsb {
 	char			res_name[DLM_RESNAME_MAXLEN+1];
 };
 
+struct dlm_rsb_key {
+	char name[DLM_RESNAME_MAXLEN];
+	size_t len;
+};
+
 /* dlm_master_lookup() flags */
 
 #define DLM_LU_RECOVER_DIR	1
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c
index d73c4aed1f8ac..2609e4fdeba84 100644
--- a/fs/dlm/lock.c
+++ b/fs/dlm/lock.c
@@ -625,12 +625,14 @@ static int get_rsb_struct(struct dlm_ls *ls, const void *name, int len,
 int dlm_search_rsb_tree(struct rhashtable *rhash, const void *name,
 			unsigned int len, struct dlm_rsb **r_ret)
 {
-	char key[DLM_RESNAME_MAXLEN] = {};
+	struct dlm_rsb_key key = {
+		.len = len,
+	};
 
 	if (len > DLM_RESNAME_MAXLEN)
 		return -EINVAL;
 
-	memcpy(key, name, len);
+	memcpy(key.name, name, len);
 	*r_ret = rhashtable_lookup_fast(rhash, &key, dlm_rhash_rsb_params);
 	if (*r_ret)
 		return 0;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0170/2651] remoteproc: imx_dsp: Acquire runtime PM before adding carveouts
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (162 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0169/2651] dlm: fix variable key length lookup Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0171/2651] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap Greg Kroah-Hartman
                   ` (27 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Mathieu Poirier,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Pengpeng Hou <pengpeng@iscas.ac.cn>

[ Upstream commit 13df1fa4f1a30571442eda64c73d6cac7b9b5c95 ]

The prepare callback publishes DSP carveouts before acquiring the
runtime-PM reference that establishes required clocks and mailbox state.
A PM failure therefore leaves the prepare transaction partially
published.

Acquire runtime PM first and drop that reference if carveout
construction fails, so a failed prepare does not add resources before
its hardware prerequisite.

Fixes: ec0e5549f358 ("remoteproc: imx_dsp_rproc: Add remoteproc driver for DSP on i.MX")
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20260830133310.6926-1-pengpeng@iscas.ac.cn
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/remoteproc/imx_dsp_rproc.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/remoteproc/imx_dsp_rproc.c b/drivers/remoteproc/imx_dsp_rproc.c
index fd60c67ba8a9f..96d619daf3f5b 100644
--- a/drivers/remoteproc/imx_dsp_rproc.c
+++ b/drivers/remoteproc/imx_dsp_rproc.c
@@ -726,14 +726,17 @@ static int imx_dsp_rproc_prepare(struct rproc *rproc)
 	struct device *dev = rproc->dev.parent;
 	int ret;
 
+	ret = pm_runtime_resume_and_get(dev);
+	if (ret < 0)
+		return ret;
+
 	ret = imx_dsp_rproc_add_carveout(priv);
 	if (ret) {
 		dev_err(dev, "failed on imx_dsp_rproc_add_carveout\n");
+		pm_runtime_put_sync(dev);
 		return ret;
 	}
 
-	pm_runtime_get_sync(dev);
-
 	return 0;
 }
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0171/2651] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (163 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0170/2651] remoteproc: imx_dsp: Acquire runtime PM before adding carveouts Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0172/2651] arm64: dts: imx94: " Greg Kroah-Hartman
                   ` (26 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Richard Zhu, Frank Li, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Richard Zhu <hongxing.zhu@nxp.com>

[ Upstream commit 9094eb07b3e236233dbaac61ed30cc65be9e9c6c ]

Move the PCIe non-prefetchable memory PCI bus address from 0xe0000000
to 0x10000000 to avoid overlap with DRAM. Avoid hit this as a P2P
transfer[1]. The 0x10000000 range is reserved and safe to use.

Fixes: dbecf38e60d4e ("arm64: dts: imx95: Correct PCIe outbound address space configuration")
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Link: https://lore.kernel.org/imx/753fca23-c3eb-45e3-aeac-b7b248fa723a@app.fastmail.com/ [1]
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/freescale/imx95.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi
index 38fc47024841f..0f03b85aaec17 100644
--- a/arch/arm64/boot/dts/freescale/imx95.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95.dtsi
@@ -1948,7 +1948,7 @@ pcie0: pcie@4c300000 {
 			      <0 0x4c340000 0 0x4000>;
 			reg-names = "dbi", "config", "atu", "app";
 			ranges = <0x43000000 0x9 0x00000000 0x9 0x00000000 0x0 0xe0000000>,
-				 <0x82000000 0x0 0xe0000000 0x9 0xe0000000 0x0 0x10000000>,
+				 <0x82000000 0x0 0x10000000 0x9 0xe0000000 0x0 0x10000000>,
 				 <0x81000000 0x0 0x00000000 0x9 0xf0000000 0x0 0x00100000>;
 			#address-cells = <3>;
 			#size-cells = <2>;
@@ -2039,7 +2039,7 @@ pcie1: pcie@4c380000 {
 			      <0 0x4c3c0000 0 0x4000>;
 			reg-names = "dbi", "config", "atu", "app";
 			ranges = <0x43000000 0xa 0x00000000 0xa 0x00000000 0x0 0xe0000000>,
-				 <0x82000000 0x0 0xe0000000 0xa 0xe0000000 0x0 0x10000000>,
+				 <0x82000000 0x0 0x10000000 0xa 0xe0000000 0x0 0x10000000>,
 				 <0x81000000 0x0 0x00000000 0xa 0xf0000000 0x0 0x00100000>;
 			#address-cells = <3>;
 			#size-cells = <2>;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0172/2651] arm64: dts: imx94: Avoid 32-bit PCIe window System RAM overlap
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (164 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0171/2651] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0173/2651] arm64: dts: imx943: " Greg Kroah-Hartman
                   ` (25 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Richard Zhu, Frank Li, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Richard Zhu <hongxing.zhu@nxp.com>

[ Upstream commit 775ebd246092294432895f8e9bd48e3f0a56714a ]

Move the PCIe non-prefetchable memory PCI bus address from 0xe0000000
to 0x10000000 to avoid overlap with DRAM. Avoid hit this as a P2P
transfer[1]. The 0x10000000 range is reserved and safe to use.

Link: https://lore.kernel.org/imx/753fca23-c3eb-45e3-aeac-b7b248fa723a@app.fastmail.com/ [1]
Fixes: ffccbd6804e88 ("arm64: dts: imx94: Correct PCIe outbound address space configuration")
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/freescale/imx94.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx94.dtsi b/arch/arm64/boot/dts/freescale/imx94.dtsi
index 34833e62bd796..afaaf70417d23 100644
--- a/arch/arm64/boot/dts/freescale/imx94.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx94.dtsi
@@ -1379,7 +1379,7 @@ pcie0: pcie@4c300000 {
 			      <0 0x4c340000 0 0x4000>;
 			reg-names = "dbi", "config", "atu", "app";
 			ranges = <0x43000000 0x9 0x00000000 0x9 0x00000000 0x0 0xe0000000>,
-				 <0x82000000 0x0 0xe0000000 0x9 0xe0000000 0x0 0x10000000>,
+				 <0x82000000 0x0 0x10000000 0x9 0xe0000000 0x0 0x10000000>,
 				 <0x81000000 0x0 0x00000000 0x9 0xf0000000 0x0 0x00100000>;
 			#address-cells = <3>;
 			#size-cells = <2>;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0173/2651] arm64: dts: imx943: Avoid 32-bit PCIe window System RAM overlap
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (165 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0172/2651] arm64: dts: imx94: " Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0174/2651] drm/amd/display: gate DCE ASIC code behind CONFIG_DRM_AMD_DC_DCE Greg Kroah-Hartman
                   ` (24 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, patches, Richard Zhu, Frank Li, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Richard Zhu <hongxing.zhu@nxp.com>

[ Upstream commit fff67007ad5403966092006867fe9926aaedda0d ]

Move the PCIe non-prefetchable memory PCI bus address from 0xe0000000
to 0x10000000 to avoid overlap with DRAM. Avoid hit this as a P2P
transfer[1]. The 0x10000000 range is reserved and safe to use.

Link: https://lore.kernel.org/imx/753fca23-c3eb-45e3-aeac-b7b248fa723a@app.fastmail.com/ [1]
Fixes: 6de3a7d7a4f65 ("arm64: dts: imx943: Correct PCIe outbound address space configuration")
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/freescale/imx943.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx943.dtsi b/arch/arm64/boot/dts/freescale/imx943.dtsi
index 01152fd0efa5e..a564488d9cd7d 100644
--- a/arch/arm64/boot/dts/freescale/imx943.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx943.dtsi
@@ -219,7 +219,7 @@ pcie1: pcie@4c380000 {
 			      <0 0x4c3c0000 0 0x4000>;
 			reg-names = "dbi", "config", "atu", "app";
 			ranges = <0x43000000 0xa 0x00000000 0xa 0x00000000 0x0 0xe0000000>,
-				 <0x82000000 0x0 0xe0000000 0xa 0xe0000000 0x0 0x10000000>,
+				 <0x82000000 0x0 0x10000000 0xa 0xe0000000 0x0 0x10000000>,
 				 <0x81000000 0x0 0x00000000 0xa 0xf0000000 0x0 0x00100000>;
 			#address-cells = <3>;
 			#size-cells = <2>;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0174/2651] drm/amd/display: gate DCE ASIC code behind CONFIG_DRM_AMD_DC_DCE
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (166 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0173/2651] arm64: dts: imx943: " Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0175/2651] drm/amd/display: Refactor HUBP_WAIT_FOR_DCC_META_PROP to drop pipe_ctx Greg Kroah-Hartman
                   ` (23 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Dillon Varone, Gaghik Khachatrian,
	Tom Chung, Daniel Wheeler, Alex Deucher, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Gaghik Khachatrian <gaghik.khachatrian@amd.com>

[ Upstream commit cd2cfe4d1504342b37c3170d290aa8168deff6d7 ]

[Why&How]
Refactor to make DCE support optional.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: e377716b9863 ("drm/amd/display: use translate_curve_to_degamma_hw_format on DCN30")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/amd/display/Kconfig           |   9 +
 .../display/dc/bios/command_table_helper.c    |   7 +-
 .../display/dc/bios/command_table_helper2.c   |   2 +
 .../gpu/drm/amd/display/dc/clk_mgr/Makefile   |   8 +
 .../gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c  |   4 +
 .../display/dc/clk_mgr/dce100/dce_clk_mgr.c   | 115 -----------
 .../display/dc/clk_mgr/dce100/dce_clk_mgr.h   |   8 +-
 .../dc/clk_mgr/dce112/dce112_clk_mgr.c        |  59 ------
 .../dc/clk_mgr/dce112/dce112_clk_mgr.h        |   4 +-
 .../display/dc/clk_mgr/dcn10/dcn10_clk_mgr.c  | 181 ++++++++++++++++++
 .../display/dc/clk_mgr/dcn10/dcn10_clk_mgr.h  |  29 +++
 .../gpu/drm/amd/display/dc/core/dc_resource.c |  79 ++++++++
 .../gpu/drm/amd/display/dc/gpio/hw_factory.c  |   4 +
 .../drm/amd/display/dc/gpio/hw_translate.c    |   4 +
 drivers/gpu/drm/amd/display/dc/hwss/Makefile  |   6 +
 .../amd/display/dc/hwss/dce110/dce110_hwseq.c |   2 +
 drivers/gpu/drm/amd/display/dc/irq/Makefile   |   2 +
 .../dc/irq/dce110/irq_service_dce110.c        |  21 --
 .../dc/irq/dce110/irq_service_dce110.h        |   9 -
 .../gpu/drm/amd/display/dc/irq/irq_service.c  |  28 +++
 .../gpu/drm/amd/display/dc/irq/irq_service.h  |   9 +
 .../gpu/drm/amd/display/dc/resource/Makefile  |   4 +
 .../dc/resource/dce112/dce112_resource.c      |  62 ------
 23 files changed, 380 insertions(+), 276 deletions(-)
 create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.c
 create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.h

diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig
index 1727d25646cc5..617bc1932524a 100644
--- a/drivers/gpu/drm/amd/display/Kconfig
+++ b/drivers/gpu/drm/amd/display/Kconfig
@@ -34,11 +34,20 @@ config DRM_AMD_DC_SI
 	bool "AMD DC support for Southern Islands ASICs"
 	depends on DRM_AMDGPU_SI
 	depends on DRM_AMD_DC
+	depends on DRM_AMD_DC_DCE
 	help
 	  Choose this option to enable new AMD DC support for SI asics
 	  by default. This includes Tahiti, Pitcairn, Cape Verde, Oland.
 	  Hainan is not supported by AMD DC and it has no physical DCE6.
 
+config DRM_AMD_DC_DCE
+	bool "AMD DC support for legacy DCE ASICs"
+	default y
+	depends on DRM_AMD_DC
+	help
+	  Enable support for the legacy DCE (DCE 8/10/11/12) display engines.
+	  Enabled by default so DC keeps support for these older ASICs.
+
 config DEBUG_KERNEL_DC
 	bool "Enable kgdb break in DC"
 	depends on DRM_AMD_DC
diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table_helper.c b/drivers/gpu/drm/amd/display/dc/bios/command_table_helper.c
index 91bc8a06e2cff..ab67771ddab49 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/command_table_helper.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/command_table_helper.c
@@ -35,7 +35,10 @@ bool dal_bios_parser_init_cmd_tbl_helper(
 	const struct command_table_helper **h,
 	enum dce_version dce)
 {
-	switch (dce) {
+  if (!h)
+    return false;
+
+  switch (dce) {
 #if defined(CONFIG_DRM_AMD_DC_SI)
 	case DCE_VERSION_6_0:
 	case DCE_VERSION_6_1:
@@ -44,6 +47,7 @@ bool dal_bios_parser_init_cmd_tbl_helper(
 		return true;
 #endif
 
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 	case DCE_VERSION_8_0:
 	case DCE_VERSION_8_1:
 	case DCE_VERSION_8_3:
@@ -62,6 +66,7 @@ bool dal_bios_parser_init_cmd_tbl_helper(
 	case DCE_VERSION_11_22:
 		*h = dal_cmd_tbl_helper_dce112_get_table();
 		return true;
+#endif
 
 	default:
 		/* Unsupported DCE */
diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c b/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c
index 9ae5cf42754a1..ea0a270e9de30 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c
@@ -45,6 +45,7 @@ bool dal_bios_parser_init_cmd_tbl_helper2(
 		return true;
 #endif
 
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 	case DCE_VERSION_8_0:
 	case DCE_VERSION_8_1:
 	case DCE_VERSION_8_3:
@@ -58,6 +59,7 @@ bool dal_bios_parser_init_cmd_tbl_helper2(
 	case DCE_VERSION_11_0:
 		*h = dal_cmd_tbl_helper_dce110_get_table();
 		return true;
+#endif
 
 	case DCE_VERSION_11_2:
 	case DCE_VERSION_11_22:
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile b/drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile
index 8cfd7bf57fbe1..c803a2bdf7494 100644
--- a/drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile
@@ -29,6 +29,7 @@ AMD_DAL_CLK_MGR = $(addprefix $(AMDDALPATH)/dc/clk_mgr/,$(CLK_MGR))
 
 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR)
 
+ifdef CONFIG_DRM_AMD_DC_DCE
 ###############################################################################
 # DCE 100 and DCE8x
 ###############################################################################
@@ -62,6 +63,13 @@ CLK_MGR_DCE120 = dce120_clk_mgr.o
 AMD_DAL_CLK_MGR_DCE120 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dce120/,$(CLK_MGR_DCE120))
 
 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCE120)
+endif # CONFIG_DRM_AMD_DC_DCE
+
+# Shared clock helpers used by both the DCE and DCN clock managers. Built
+# unconditionally (not gated on CONFIG_DRM_AMD_DC_FP) so non-FP configs that
+# still build the DCE clock managers can resolve them.
+AMD_DISPLAY_FILES += $(AMDDALPATH)/dc/clk_mgr/dcn10/dcn10_clk_mgr.o
+
 ifdef CONFIG_DRM_AMD_DC_FP
 ###############################################################################
 # DCN10
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
index bf80eaf23e9ae..7f24433a42c1c 100644
--- a/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
@@ -30,10 +30,12 @@
 #include "dc_state_priv.h"
 #include "link_service.h"
 
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 #include "dce100/dce_clk_mgr.h"
 #include "dce110/dce110_clk_mgr.h"
 #include "dce112/dce112_clk_mgr.h"
 #include "dce120/dce120_clk_mgr.h"
+#endif
 #include "dcn10/rv1_clk_mgr.h"
 #include "dcn10/rv2_clk_mgr.h"
 #include "dcn20/dcn20_clk_mgr.h"
@@ -152,6 +154,7 @@ struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *p
 	struct hw_asic_id asic_id = ctx->asic_id;
 
 	switch (asic_id.chip_family) {
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 	case FAMILY_SI:
 	case FAMILY_CI:
 	case FAMILY_KV: {
@@ -211,6 +214,7 @@ struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *p
 			dce120_clk_mgr_construct(ctx, clk_mgr);
 		return &clk_mgr->base;
 	}
+#endif
 #if defined(CONFIG_DRM_AMD_DC_FP)
 	case FAMILY_RV: {
 		struct clk_mgr_internal *clk_mgr = kzalloc_obj(*clk_mgr);
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c
index d891b3bfe2a1f..42e6d6538825b 100644
--- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c
@@ -62,56 +62,6 @@ static const struct clk_mgr_mask disp_clk_mask = {
 		CLK_COMMON_MASK_SH_LIST_DCE_COMMON_BASE(_MASK)
 };
 
-unsigned int dentist_get_divider_from_did(unsigned int did)
-{
-	if (did < DENTIST_BASE_DID_1)
-		did = DENTIST_BASE_DID_1;
-	if (did > DENTIST_MAX_DID)
-		did = DENTIST_MAX_DID;
-
-	if (did < DENTIST_BASE_DID_2) {
-		return DENTIST_DIVIDER_RANGE_1_START + DENTIST_DIVIDER_RANGE_1_STEP
-							* (did - DENTIST_BASE_DID_1);
-	} else if (did < DENTIST_BASE_DID_3) {
-		return DENTIST_DIVIDER_RANGE_2_START + DENTIST_DIVIDER_RANGE_2_STEP
-							* (did - DENTIST_BASE_DID_2);
-	} else if (did < DENTIST_BASE_DID_4) {
-		return DENTIST_DIVIDER_RANGE_3_START + DENTIST_DIVIDER_RANGE_3_STEP
-							* (did - DENTIST_BASE_DID_3);
-	} else {
-		return DENTIST_DIVIDER_RANGE_4_START + DENTIST_DIVIDER_RANGE_4_STEP
-							* (did - DENTIST_BASE_DID_4);
-	}
-}
-
-/* SW will adjust DP REF Clock average value for all purposes
- * (DP DTO / DP Audio DTO and DP GTC)
- if clock is spread for all cases:
- -if SS enabled on DP Ref clock and HW de-spreading enabled with SW
- calculations for DS_INCR/DS_MODULO (this is planned to be default case)
- -if SS enabled on DP Ref clock and HW de-spreading enabled with HW
- calculations (not planned to be used, but average clock should still
- be valid)
- -if SS enabled on DP Ref clock and HW de-spreading disabled
- (should not be case with CIK) then SW should program all rates
- generated according to average value (case as with previous ASICs)
-  */
-
-int dce_adjust_dp_ref_freq_for_ss(struct clk_mgr_internal *clk_mgr_dce, int dp_ref_clk_khz)
-{
-	if (clk_mgr_dce->ss_on_dprefclk && clk_mgr_dce->dprefclk_ss_divider != 0) {
-		struct fixed31_32 ss_percentage = dc_fixpt_div_int(
-				dc_fixpt_from_fraction(clk_mgr_dce->dprefclk_ss_percentage,
-							clk_mgr_dce->dprefclk_ss_divider), 200);
-		struct fixed31_32 adj_dp_ref_clk_khz;
-
-		ss_percentage = dc_fixpt_sub(dc_fixpt_one, ss_percentage);
-		adj_dp_ref_clk_khz = dc_fixpt_mul_int(ss_percentage, dp_ref_clk_khz);
-		dp_ref_clk_khz = dc_fixpt_floor(adj_dp_ref_clk_khz);
-	}
-	return dp_ref_clk_khz;
-}
-
 static int dce60_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
 {
 	struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base);
@@ -155,13 +105,6 @@ int dce_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
 	return dce_adjust_dp_ref_freq_for_ss(clk_mgr, dp_ref_clk_khz);
 }
 
-int dce12_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
-{
-	struct clk_mgr_internal *clk_mgr_dce = TO_CLK_MGR_INTERNAL(clk_mgr_base);
-
-	return dce_adjust_dp_ref_freq_for_ss(clk_mgr_dce, clk_mgr_base->dprefclk_khz);
-}
-
 /* unit: in_khz before mode set, get pixel clock from context. ASIC register
  * may not be programmed yet
  */
@@ -256,64 +199,6 @@ static void dce_clock_read_integrated_info(struct clk_mgr_internal *clk_mgr_dce)
 			clk_mgr_dce->dfs_bypass_enabled = true;
 }
 
-void dce_clock_read_ss_info(struct clk_mgr_internal *clk_mgr_dce)
-{
-	struct dc_bios *bp = clk_mgr_dce->base.ctx->dc_bios;
-	int ss_info_num = bp->funcs->get_ss_entry_number(
-			bp, AS_SIGNAL_TYPE_GPU_PLL);
-
-	if (ss_info_num) {
-		struct spread_spectrum_info info = { { 0 } };
-		enum bp_result result = bp->funcs->get_spread_spectrum_info(
-				bp, AS_SIGNAL_TYPE_GPU_PLL, 0, &info);
-
-		/* Based on VBIOS, VBIOS will keep entry for GPU PLL SS
-		 * even if SS not enabled and in that case
-		 * SSInfo.spreadSpectrumPercentage !=0 would be sign
-		 * that SS is enabled
-		 */
-		if (result == BP_RESULT_OK &&
-				info.spread_spectrum_percentage != 0) {
-			clk_mgr_dce->ss_on_dprefclk = true;
-			clk_mgr_dce->dprefclk_ss_divider = info.spread_percentage_divider;
-
-			if (info.type.CENTER_MODE == 0) {
-				/* TODO: Currently for DP Reference clock we
-				 * need only SS percentage for
-				 * downspread */
-				clk_mgr_dce->dprefclk_ss_percentage =
-						info.spread_spectrum_percentage;
-			}
-
-			return;
-		}
-
-		result = bp->funcs->get_spread_spectrum_info(
-				bp, AS_SIGNAL_TYPE_DISPLAY_PORT, 0, &info);
-
-		/* Based on VBIOS, VBIOS will keep entry for DPREFCLK SS
-		 * even if SS not enabled and in that case
-		 * SSInfo.spreadSpectrumPercentage !=0 would be sign
-		 * that SS is enabled
-		 */
-		if (result == BP_RESULT_OK &&
-				info.spread_spectrum_percentage != 0) {
-			clk_mgr_dce->ss_on_dprefclk = true;
-			clk_mgr_dce->dprefclk_ss_divider = info.spread_percentage_divider;
-
-			if (info.type.CENTER_MODE == 0) {
-				/* Currently for DP Reference clock we
-				 * need only SS percentage for
-				 * downspread */
-				clk_mgr_dce->dprefclk_ss_percentage =
-						info.spread_spectrum_percentage;
-			}
-			if (clk_mgr_dce->base.ctx->dc->config.ignore_dpref_ss)
-				clk_mgr_dce->dprefclk_ss_percentage = 0;
-		}
-	}
-}
-
 static void dce_pplib_apply_display_requirements(
 	struct dc *dc,
 	struct dc_state *context)
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.h b/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.h
index e1c6a92d7957f..2f4165f1a7bc3 100644
--- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.h
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.h
@@ -28,9 +28,9 @@
 #define _DCE_CLK_MGR_H_
 
 #include "dc.h"
+#include "dcn10/dcn10_clk_mgr.h"
 
 /* functions shared by other dce clk mgrs */
-int dce_adjust_dp_ref_freq_for_ss(struct clk_mgr_internal *clk_mgr_dce, int dp_ref_clk_khz);
 int dce_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base);
 
 uint32_t dce_get_max_pixel_clock_for_all_paths(struct dc_state *context);
@@ -40,10 +40,6 @@ void dce_clk_mgr_construct(
 		struct dc_context *ctx,
 		struct clk_mgr_internal *clk_mgr_dce);
 
-void dce_clock_read_ss_info(struct clk_mgr_internal *dccg_dce);
-
-int dce12_get_dp_ref_freq_khz(struct clk_mgr *dccg);
-
 int dce_set_clock(
 	struct clk_mgr *clk_mgr_base,
 	int requested_clk_khz);
@@ -51,6 +47,4 @@ int dce_set_clock(
 
 void dce_clk_mgr_destroy(struct clk_mgr **clk_mgr);
 
-unsigned int dentist_get_divider_from_did(unsigned int did);
-
 #endif /* _DCE_CLK_MGR_H_ */
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c
index 08ed6f88025fa..2157761c3b4b1 100644
--- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c
@@ -101,65 +101,6 @@ int dce112_set_clock(struct clk_mgr *clk_mgr_base, int requested_clk_khz)
 	return actual_clock;
 }
 
-int dce112_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_clk_khz)
-{
-	struct bp_set_dce_clock_parameters dce_clk_params;
-	struct dc_bios *bp = clk_mgr->base.ctx->dc_bios;
-	struct dc *dc = clk_mgr->base.ctx->dc;
-	struct dmcu *dmcu = dc->res_pool->dmcu;
-	int actual_clock = requested_clk_khz;
-	/* Prepare to program display clock*/
-	memset(&dce_clk_params, 0, sizeof(dce_clk_params));
-
-	/* Make sure requested clock isn't lower than minimum threshold*/
-	if (requested_clk_khz > 0)
-		requested_clk_khz = max(requested_clk_khz,
-				clk_mgr->base.dentist_vco_freq_khz / 62);
-
-	dce_clk_params.target_clock_frequency = requested_clk_khz;
-	dce_clk_params.pll_id = CLOCK_SOURCE_ID_DFS;
-	dce_clk_params.clock_type = DCECLOCK_TYPE_DISPLAY_CLOCK;
-
-	bp->funcs->set_dce_clock(bp, &dce_clk_params);
-	actual_clock = dce_clk_params.target_clock_frequency;
-
-	if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) {
-		if (clk_mgr->dfs_bypass_disp_clk != actual_clock)
-			dmcu->funcs->set_psr_wait_loop(dmcu,
-					actual_clock / 1000 / 7);
-	}
-
-	clk_mgr->dfs_bypass_disp_clk = actual_clock;
-	return actual_clock;
-
-}
-
-int dce112_set_dprefclk(struct clk_mgr_internal *clk_mgr)
-{
-	struct bp_set_dce_clock_parameters dce_clk_params;
-	struct dc_bios *bp = clk_mgr->base.ctx->dc_bios;
-
-	memset(&dce_clk_params, 0, sizeof(dce_clk_params));
-
-	/*Program DP ref Clock*/
-	/*VBIOS will determine DPREFCLK frequency, so we don't set it*/
-	dce_clk_params.target_clock_frequency = 0;
-	dce_clk_params.pll_id = CLOCK_SOURCE_ID_DFS;
-	dce_clk_params.clock_type = DCECLOCK_TYPE_DPREFCLK;
-	if (!((clk_mgr->base.ctx->asic_id.chip_family == FAMILY_AI) &&
-	       ASICREV_IS_VEGA20_P(clk_mgr->base.ctx->asic_id.hw_internal_rev)))
-		dce_clk_params.flags.USE_GENLOCK_AS_SOURCE_FOR_DPREFCLK =
-			(dce_clk_params.pll_id ==
-					CLOCK_SOURCE_COMBO_DISPLAY_PLL0);
-	else
-		dce_clk_params.flags.USE_GENLOCK_AS_SOURCE_FOR_DPREFCLK = false;
-
-	bp->funcs->set_dce_clock(bp, &dce_clk_params);
-
-	/* Returns the dp_refclk that was set */
-	return dce_clk_params.target_clock_frequency;
-}
-
 static void dce112_update_clocks(struct clk_mgr *clk_mgr_base,
 			struct dc_state *context,
 			bool safe_to_lower)
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.h b/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.h
index dfb06db118e19..766b73c19365a 100644
--- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.h
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.h
@@ -26,6 +26,8 @@
 #ifndef DAL_DC_DCE_DCE112_CLK_MGR_H_
 #define DAL_DC_DCE_DCE112_CLK_MGR_H_
 
+/* dce112_set_dispclk and dce112_set_dprefclk are declared here. */
+#include "dcn10/dcn10_clk_mgr.h"
 
 void dce112_clk_mgr_construct(
 		struct dc_context *ctx,
@@ -33,7 +35,5 @@ void dce112_clk_mgr_construct(
 
 /* functions shared with other clk mgr */
 int dce112_set_clock(struct clk_mgr *clk_mgr_base, int requested_clk_khz);
-int dce112_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_clk_khz);
-int dce112_set_dprefclk(struct clk_mgr_internal *clk_mgr);
 
 #endif /* DAL_DC_DCE_DCE112_CLK_MGR_H_ */
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.c
new file mode 100644
index 0000000000000..75d5c90e77075
--- /dev/null
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.c
@@ -0,0 +1,181 @@
+// SPDX-License-Identifier: MIT
+//
+// Copyright 2026 Advanced Micro Devices, Inc.
+
+#include "clk_mgr_internal.h"
+#include "core_types.h"
+#include "dal_asic_id.h"
+#include "dcn10_clk_mgr.h"
+
+unsigned int dentist_get_divider_from_did(unsigned int did)
+{
+	if (did < DENTIST_BASE_DID_1)
+		did = DENTIST_BASE_DID_1;
+	if (did > DENTIST_MAX_DID)
+		did = DENTIST_MAX_DID;
+
+	if (did < DENTIST_BASE_DID_2) {
+		return DENTIST_DIVIDER_RANGE_1_START + DENTIST_DIVIDER_RANGE_1_STEP
+							* (did - DENTIST_BASE_DID_1);
+	} else if (did < DENTIST_BASE_DID_3) {
+		return DENTIST_DIVIDER_RANGE_2_START + DENTIST_DIVIDER_RANGE_2_STEP
+							* (did - DENTIST_BASE_DID_2);
+	} else if (did < DENTIST_BASE_DID_4) {
+		return DENTIST_DIVIDER_RANGE_3_START + DENTIST_DIVIDER_RANGE_3_STEP
+							* (did - DENTIST_BASE_DID_3);
+	} else {
+		return DENTIST_DIVIDER_RANGE_4_START + DENTIST_DIVIDER_RANGE_4_STEP
+							* (did - DENTIST_BASE_DID_4);
+	}
+}
+
+/* SW will adjust DP REF Clock average value for all purposes
+ * (DP DTO / DP Audio DTO and DP GTC)
+ if clock is spread for all cases:
+ -if SS enabled on DP Ref clock and HW de-spreading enabled with SW
+ calculations for DS_INCR/DS_MODULO (this is planned to be default case)
+ -if SS enabled on DP Ref clock and HW de-spreading enabled with HW
+ calculations (not planned to be used, but average clock should still
+ be valid)
+ -if SS enabled on DP Ref clock and HW de-spreading disabled
+ (should not be case with CIK) then SW should program all rates
+ generated according to average value (case as with previous ASICs)
+  */
+int dce_adjust_dp_ref_freq_for_ss(struct clk_mgr_internal *clk_mgr_dce, int dp_ref_clk_khz)
+{
+	if (clk_mgr_dce->ss_on_dprefclk && clk_mgr_dce->dprefclk_ss_divider != 0) {
+		struct fixed31_32 ss_percentage = dc_fixpt_div_int(
+				dc_fixpt_from_fraction(clk_mgr_dce->dprefclk_ss_percentage,
+							clk_mgr_dce->dprefclk_ss_divider), 200);
+		struct fixed31_32 adj_dp_ref_clk_khz;
+
+		ss_percentage = dc_fixpt_sub(dc_fixpt_one, ss_percentage);
+		adj_dp_ref_clk_khz = dc_fixpt_mul_int(ss_percentage, dp_ref_clk_khz);
+		dp_ref_clk_khz = dc_fixpt_floor(adj_dp_ref_clk_khz);
+	}
+	return dp_ref_clk_khz;
+}
+
+int dce12_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
+{
+	struct clk_mgr_internal *clk_mgr_dce = TO_CLK_MGR_INTERNAL(clk_mgr_base);
+
+	return dce_adjust_dp_ref_freq_for_ss(clk_mgr_dce, clk_mgr_base->dprefclk_khz);
+}
+
+void dce_clock_read_ss_info(struct clk_mgr_internal *clk_mgr_dce)
+{
+	struct dc_bios *bp = clk_mgr_dce->base.ctx->dc_bios;
+	int ss_info_num = bp->funcs->get_ss_entry_number(
+			bp, AS_SIGNAL_TYPE_GPU_PLL);
+
+	if (ss_info_num) {
+		struct spread_spectrum_info info = { { 0 } };
+		enum bp_result result = bp->funcs->get_spread_spectrum_info(
+				bp, AS_SIGNAL_TYPE_GPU_PLL, 0, &info);
+
+		/* Based on VBIOS, VBIOS will keep entry for GPU PLL SS
+		 * even if SS not enabled and in that case
+		 * SSInfo.spreadSpectrumPercentage !=0 would be sign
+		 * that SS is enabled
+		 */
+		if (result == BP_RESULT_OK &&
+				info.spread_spectrum_percentage != 0) {
+			clk_mgr_dce->ss_on_dprefclk = true;
+			clk_mgr_dce->dprefclk_ss_divider = info.spread_percentage_divider;
+
+			if (info.type.CENTER_MODE == 0) {
+				/* TODO: Currently for DP Reference clock we
+				 * need only SS percentage for
+				 * downspread */
+				clk_mgr_dce->dprefclk_ss_percentage =
+						info.spread_spectrum_percentage;
+			}
+
+			return;
+		}
+
+		result = bp->funcs->get_spread_spectrum_info(
+				bp, AS_SIGNAL_TYPE_DISPLAY_PORT, 0, &info);
+
+		/* Based on VBIOS, VBIOS will keep entry for DPREFCLK SS
+		 * even if SS not enabled and in that case
+		 * SSInfo.spreadSpectrumPercentage !=0 would be sign
+		 * that SS is enabled
+		 */
+		if (result == BP_RESULT_OK &&
+				info.spread_spectrum_percentage != 0) {
+			clk_mgr_dce->ss_on_dprefclk = true;
+			clk_mgr_dce->dprefclk_ss_divider = info.spread_percentage_divider;
+
+			if (info.type.CENTER_MODE == 0) {
+				/* Currently for DP Reference clock we
+				 * need only SS percentage for
+				 * downspread */
+				clk_mgr_dce->dprefclk_ss_percentage =
+						info.spread_spectrum_percentage;
+			}
+			if (clk_mgr_dce->base.ctx->dc->config.ignore_dpref_ss)
+				clk_mgr_dce->dprefclk_ss_percentage = 0;
+		}
+	}
+}
+
+int dce112_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_clk_khz)
+{
+	struct bp_set_dce_clock_parameters dce_clk_params;
+	struct dc_bios *bp = clk_mgr->base.ctx->dc_bios;
+	struct dc *dc = clk_mgr->base.ctx->dc;
+	struct dmcu *dmcu = dc->res_pool->dmcu;
+	int actual_clock;
+	/* Prepare to program display clock*/
+	memset(&dce_clk_params, 0, sizeof(dce_clk_params));
+
+	/* Make sure requested clock isn't lower than minimum threshold*/
+	if (requested_clk_khz > 0)
+		requested_clk_khz = max(requested_clk_khz,
+				clk_mgr->base.dentist_vco_freq_khz / 62);
+
+	dce_clk_params.target_clock_frequency = requested_clk_khz;
+	dce_clk_params.pll_id = CLOCK_SOURCE_ID_DFS;
+	dce_clk_params.clock_type = DCECLOCK_TYPE_DISPLAY_CLOCK;
+
+	bp->funcs->set_dce_clock(bp, &dce_clk_params);
+	actual_clock = dce_clk_params.target_clock_frequency;
+
+		if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) {
+			if (clk_mgr->dfs_bypass_disp_clk != actual_clock)
+				dmcu->funcs->set_psr_wait_loop(dmcu,
+						actual_clock / 1000 / 7);
+		}
+
+	clk_mgr->dfs_bypass_disp_clk = actual_clock;
+	return actual_clock;
+
+}
+
+int dce112_set_dprefclk(struct clk_mgr_internal *clk_mgr)
+{
+	struct bp_set_dce_clock_parameters dce_clk_params;
+	struct dc_bios *bp = clk_mgr->base.ctx->dc_bios;
+
+	memset(&dce_clk_params, 0, sizeof(dce_clk_params));
+
+	/*Program DP ref Clock*/
+	/*VBIOS will determine DPREFCLK frequency, so we don't set it*/
+	dce_clk_params.target_clock_frequency = 0;
+	dce_clk_params.pll_id = CLOCK_SOURCE_ID_DFS;
+	dce_clk_params.clock_type = DCECLOCK_TYPE_DPREFCLK;
+	if (!((clk_mgr->base.ctx->asic_id.chip_family == FAMILY_AI) &&
+	       ASICREV_IS_VEGA20_P(clk_mgr->base.ctx->asic_id.hw_internal_rev)))
+		dce_clk_params.flags.USE_GENLOCK_AS_SOURCE_FOR_DPREFCLK =
+			(dce_clk_params.pll_id ==
+					CLOCK_SOURCE_COMBO_DISPLAY_PLL0);
+	else
+		dce_clk_params.flags.USE_GENLOCK_AS_SOURCE_FOR_DPREFCLK = false;
+
+	bp->funcs->set_dce_clock(bp, &dce_clk_params);
+
+	/* Returns the dp_refclk that was set */
+	return dce_clk_params.target_clock_frequency;
+}
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.h b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.h
new file mode 100644
index 0000000000000..e27486db4b621
--- /dev/null
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.h
@@ -0,0 +1,29 @@
+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright 2026 Advanced Micro Devices, Inc.
+ */
+
+#ifndef __DCN10_CLK_MGR_H__
+#define __DCN10_CLK_MGR_H__
+
+#include "dc.h"
+
+struct clk_mgr_internal;
+
+/*
+ * Shared clock helpers referenced by both the DCE and DCN clock managers.
+ */
+int dce_adjust_dp_ref_freq_for_ss(struct clk_mgr_internal *clk_mgr_dce, int dp_ref_clk_khz);
+
+void dce_clock_read_ss_info(struct clk_mgr_internal *clk_mgr_dce);
+
+int dce12_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base);
+
+unsigned int dentist_get_divider_from_did(unsigned int did);
+
+int dce112_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_clk_khz);
+
+int dce112_set_dprefclk(struct clk_mgr_internal *clk_mgr);
+
+#endif /* __DCN10_CLK_MGR_H__ */
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index fc9080f0c0935..7fc0facc7cf19 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -55,11 +55,13 @@
 #if defined(CONFIG_DRM_AMD_DC_SI)
 #include "dce60/dce60_resource.h"
 #endif
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 #include "dce80/dce80_resource.h"
 #include "dce100/dce100_resource.h"
 #include "dce110/dce110_resource.h"
 #include "dce112/dce112_resource.h"
 #include "dce120/dce120_resource.h"
+#endif
 #include "dcn10/dcn10_resource.h"
 #include "dcn20/dcn20_resource.h"
 #include "dcn21/dcn21_resource.h"
@@ -293,6 +295,7 @@ struct resource_pool *dc_create_resource_pool(struct dc  *dc,
 			init_data->num_virtual_links, dc);
 		break;
 #endif
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 	case DCE_VERSION_8_0:
 		res_pool = dce80_create_resource_pool(
 				(uint8_t)init_data->num_virtual_links, dc);
@@ -324,6 +327,7 @@ struct resource_pool *dc_create_resource_pool(struct dc  *dc,
 		res_pool = dce120_create_resource_pool(
 				(uint8_t)init_data->num_virtual_links, dc);
 		break;
+#endif
 
 #if defined(CONFIG_DRM_AMD_DC_FP)
 	case DCN_VERSION_1_0:
@@ -5306,6 +5310,81 @@ void resource_build_info_frame(struct pipe_ctx *pipe_ctx)
 	patch_gamut_packet_checksum(&info->gamut);
 }
 
+/*
+ * Physical-clock resource mapping used by the DCE and DCN resource pools.
+ * Unit tests provide their own stub (see dc_resource_ut_helpers.c).
+ */
+enum {
+	CLK_SRC_PLL0 = 0,
+	CLK_SRC_PLL1,
+	CLK_SRC_PLL2,
+	CLK_SRC_PLL3,
+	CLK_SRC_PLL4,
+	CLK_SRC_PLL5,
+};
+
+static struct clock_source *find_matching_pll(
+		struct resource_context *res_ctx,
+		const struct resource_pool *pool,
+		const struct dc_stream_state *const stream)
+{
+	(void)res_ctx;
+	switch (stream->link->link_enc->transmitter) {
+	case TRANSMITTER_UNIPHY_A:
+		return pool->clock_sources[CLK_SRC_PLL0];
+	case TRANSMITTER_UNIPHY_B:
+		return pool->clock_sources[CLK_SRC_PLL1];
+	case TRANSMITTER_UNIPHY_C:
+		return pool->clock_sources[CLK_SRC_PLL2];
+	case TRANSMITTER_UNIPHY_D:
+		return pool->clock_sources[CLK_SRC_PLL3];
+	case TRANSMITTER_UNIPHY_E:
+		return pool->clock_sources[CLK_SRC_PLL4];
+	case TRANSMITTER_UNIPHY_F:
+		return pool->clock_sources[CLK_SRC_PLL5];
+	default:
+		return NULL;
+	}
+}
+
+enum dc_status resource_map_phy_clock_resources(
+		const struct dc *dc,
+		struct dc_state *context,
+		struct dc_stream_state *stream)
+{
+
+	/* acquire new resources */
+	struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(
+			&context->res_ctx, stream);
+
+	if (!pipe_ctx)
+		return DC_ERROR_UNEXPECTED;
+
+	if (dc_is_dp_signal(pipe_ctx->stream->signal)
+		|| dc_is_virtual_signal(pipe_ctx->stream->signal))
+		pipe_ctx->clock_source =
+				dc->res_pool->dp_clock_source;
+	else if (pipe_ctx->stream->signal == SIGNAL_TYPE_HDMI_FRL)
+			pipe_ctx->clock_source =
+				dc->res_pool->dp_clock_source;
+	else {
+		if (stream && stream->link && stream->link->link_enc)
+			pipe_ctx->clock_source = find_matching_pll(
+				&context->res_ctx, dc->res_pool,
+				stream);
+	}
+
+	if (pipe_ctx->clock_source == NULL)
+		return DC_NO_CLOCK_SOURCE_RESOURCE;
+
+	resource_reference_clock_source(
+		&context->res_ctx,
+		dc->res_pool,
+		pipe_ctx->clock_source);
+
+	return DC_OK;
+}
+
 enum dc_status resource_map_clock_resources(
 		const struct dc  *dc,
 		struct dc_state *context,
diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c
index 3300dbc67f320..368ebcbf3fed4 100644
--- a/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c
+++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c
@@ -43,9 +43,11 @@
 #if defined(CONFIG_DRM_AMD_DC_SI)
 #include "dce60/hw_factory_dce60.h"
 #endif
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 #include "dce80/hw_factory_dce80.h"
 #include "dce110/hw_factory_dce110.h"
 #include "dce120/hw_factory_dce120.h"
+#endif
 #include "dcn10/hw_factory_dcn10.h"
 #include "dcn20/hw_factory_dcn20.h"
 #include "dcn21/hw_factory_dcn21.h"
@@ -71,6 +73,7 @@ bool dal_hw_factory_init(
 		dal_hw_factory_dce60_init(factory);
 		return true;
 #endif
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 	case DCE_VERSION_8_0:
 	case DCE_VERSION_8_1:
 	case DCE_VERSION_8_3:
@@ -89,6 +92,7 @@ bool dal_hw_factory_init(
 	case DCE_VERSION_12_1:
 		dal_hw_factory_dce120_init(factory);
 		return true;
+#endif
 	case DCN_VERSION_1_0:
 	case DCN_VERSION_1_01:
 		dal_hw_factory_dcn10_init(factory);
diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c
index 5a231f97aee31..46cdc8b1069aa 100644
--- a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c
+++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c
@@ -43,9 +43,11 @@
 #if defined(CONFIG_DRM_AMD_DC_SI)
 #include "dce60/hw_translate_dce60.h"
 #endif
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 #include "dce80/hw_translate_dce80.h"
 #include "dce110/hw_translate_dce110.h"
 #include "dce120/hw_translate_dce120.h"
+#endif
 #include "dcn10/hw_translate_dcn10.h"
 #include "dcn20/hw_translate_dcn20.h"
 #include "dcn21/hw_translate_dcn21.h"
@@ -75,6 +77,7 @@ bool dal_hw_translate_init(
 		dal_hw_translate_dce60_init(translate);
 		return true;
 #endif
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 	case DCE_VERSION_8_0:
 	case DCE_VERSION_8_1:
 	case DCE_VERSION_8_3:
@@ -90,6 +93,7 @@ bool dal_hw_translate_init(
 	case DCE_VERSION_12_1:
 		dal_hw_translate_dce120_init(translate);
 		return true;
+#endif
 	case DCN_VERSION_1_0:
 	case DCN_VERSION_1_01:
 		dal_hw_translate_dcn10_init(translate);
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/Makefile b/drivers/gpu/drm/amd/display/dc/hwss/Makefile
index 9769ec9a32dfa..7c2afb773685f 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/Makefile
+++ b/drivers/gpu/drm/amd/display/dc/hwss/Makefile
@@ -36,11 +36,13 @@ endif
 
 ###############################################################################
 
+ifdef CONFIG_DRM_AMD_DC_DCE
 HWSS_DCE80 = dce80_hwseq.o
 
 AMD_DAL_HWSS_DCE80 = $(addprefix $(AMDDALPATH)/dc/hwss/dce80/,$(HWSS_DCE80))
 
 AMD_DISPLAY_FILES += $(AMD_DAL_HWSS_DCE80)
+endif
 
 ###############################################################################
 
@@ -52,11 +54,13 @@ AMD_DISPLAY_FILES += $(AMD_DAL_HWSS_DCE)
 
 ###############################################################################
 
+ifdef CONFIG_DRM_AMD_DC_DCE
 HWSS_DCE100 = dce100_hwseq.o
 
 AMD_DAL_HWSS_DCE100 = $(addprefix $(AMDDALPATH)/dc/hwss/dce100/,$(HWSS_DCE100))
 
 AMD_DISPLAY_FILES += $(AMD_DAL_HWSS_DCE100)
+endif
 
 ###############################################################################
 
@@ -68,6 +72,7 @@ AMD_DISPLAY_FILES += $(AMD_DAL_HWSS_DCE110)
 
 ###############################################################################
 
+ifdef CONFIG_DRM_AMD_DC_DCE
 HWSS_DCE112 = dce112_hwseq.o
 
 AMD_DAL_HWSS_DCE112 = $(addprefix $(AMDDALPATH)/dc/hwss/dce112/,$(HWSS_DCE112))
@@ -81,6 +86,7 @@ HWSS_DCE120 = dce120_hwseq.o
 AMD_DAL_HWSS_DCE120 = $(addprefix $(AMDDALPATH)/dc/hwss/dce120/,$(HWSS_DCE120))
 
 AMD_DISPLAY_FILES += $(AMD_DAL_HWSS_DCE120)
+endif
 
 ifdef CONFIG_DRM_AMD_DC_FP
 ###############################################################################
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
index 328321961fba2..8b47cdeeb1fb3 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
@@ -3617,6 +3617,7 @@ void dce110_disable_link_output(struct dc_link *link,
 	dc->link_srv->dp_trace_source_sequence(link, DPCD_SOURCE_SEQ_AFTER_DISABLE_LINK_PHY);
 }
 
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 static const struct hw_sequencer_funcs dce110_funcs = {
 	.program_gamut_remap = program_gamut_remap,
 	.program_output_csc = program_output_csc,
@@ -3685,4 +3686,5 @@ void dce110_hw_sequencer_construct(struct dc *dc)
 	dc->hwss = dce110_funcs;
 	dc->hwseq->funcs = dce110_private_funcs;
 }
+#endif /* CONFIG_DRM_AMD_DC_DCE */
 
diff --git a/drivers/gpu/drm/amd/display/dc/irq/Makefile b/drivers/gpu/drm/amd/display/dc/irq/Makefile
index bbec53719c5d7..497794a1f1d13 100644
--- a/drivers/gpu/drm/amd/display/dc/irq/Makefile
+++ b/drivers/gpu/drm/amd/display/dc/irq/Makefile
@@ -41,6 +41,7 @@ AMD_DAL_IRQ_DCE60 = $(addprefix $(AMDDALPATH)/dc/irq/dce60/,$(IRQ_DCE60))
 AMD_DISPLAY_FILES += $(AMD_DAL_IRQ_DCE60)
 endif
 
+ifdef CONFIG_DRM_AMD_DC_DCE
 ###############################################################################
 # DCE 8x
 ###############################################################################
@@ -67,6 +68,7 @@ IRQ_DCE12 = irq_service_dce120.o
 AMD_DAL_IRQ_DCE12 = $(addprefix $(AMDDALPATH)/dc/irq/dce120/,$(IRQ_DCE12))
 
 AMD_DISPLAY_FILES += $(AMD_DAL_IRQ_DCE12)
+endif # CONFIG_DRM_AMD_DC_DCE
 
 ###############################################################################
 # DCN 1x
diff --git a/drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.c b/drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.c
index 8958d286dde1f..7f3084c6dd49f 100644
--- a/drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.c
+++ b/drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.c
@@ -179,27 +179,6 @@ static struct irq_source_info_funcs vupdate_irq_info_funcs = {
 #define dc_underflow_int_entry(reg_num) \
 	[DC_IRQ_SOURCE_DC ## reg_num ## UNDERFLOW] = dummy_irq_entry()
 
-bool dal_irq_service_dummy_set(struct irq_service *irq_service,
-			       const struct irq_source_info *info,
-			       bool enable)
-{
-	(void)enable;
-	DC_LOG_ERROR("%s: called for non-implemented irq source, src_id=%u, ext_id=%u\n",
-		     __func__, info->src_id, info->ext_id);
-
-	return false;
-}
-
-bool dal_irq_service_dummy_ack(struct irq_service *irq_service,
-			       const struct irq_source_info *info)
-{
-	DC_LOG_ERROR("%s: called for non-implemented irq source, src_id=%u, ext_id=%u\n",
-		     __func__, info->src_id, info->ext_id);
-
-	return false;
-}
-
-
 bool dce110_vblank_set(struct irq_service *irq_service,
 		       const struct irq_source_info *info,
 		       bool enable)
diff --git a/drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.h b/drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.h
index 9237646c09595..b641e6a9b1358 100644
--- a/drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.h
+++ b/drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.h
@@ -36,15 +36,6 @@ enum dc_irq_source to_dal_irq_source_dce110(
 		uint32_t src_id,
 		uint32_t ext_id);
 
-bool dal_irq_service_dummy_set(
-	struct irq_service *irq_service,
-	const struct irq_source_info *info,
-	bool enable);
-
-bool dal_irq_service_dummy_ack(
-	struct irq_service *irq_service,
-	const struct irq_source_info *info);
-
 bool dce110_vblank_set(
 	struct irq_service *irq_service,
 	const struct irq_source_info *info,
diff --git a/drivers/gpu/drm/amd/display/dc/irq/irq_service.c b/drivers/gpu/drm/amd/display/dc/irq/irq_service.c
index b595a11c5eafa..f8c8ca266ec19 100644
--- a/drivers/gpu/drm/amd/display/dc/irq/irq_service.c
+++ b/drivers/gpu/drm/amd/display/dc/irq/irq_service.c
@@ -28,14 +28,18 @@
 #include "include/irq_service_interface.h"
 #include "include/logger_interface.h"
 
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 #include "dce110/irq_service_dce110.h"
+#endif
 
 #if defined(CONFIG_DRM_AMD_DC_SI)
 #include "dce60/irq_service_dce60.h"
 #endif
 
+#if defined(CONFIG_DRM_AMD_DC_DCE)
 #include "dce80/irq_service_dce80.h"
 #include "dce120/irq_service_dce120.h"
+#endif
 #include "dcn10/irq_service_dcn10.h"
 
 #include "reg_helper.h"
@@ -105,6 +109,30 @@ void dal_irq_service_set_generic(
 	dm_write_reg(irq_service->ctx, addr, value);
 }
 
+/*
+ * Base "non-implemented source" irq handlers referenced by irq_service.c and
+ * every DCN irq vtable.
+ */
+bool dal_irq_service_dummy_set(struct irq_service *irq_service,
+			       const struct irq_source_info *info,
+			       bool enable)
+{
+	(void)enable;
+	DC_LOG_ERROR("%s: called for non-implemented irq source, src_id=%u, ext_id=%u\n",
+		     __func__, info->src_id, info->ext_id);
+
+	return false;
+}
+
+bool dal_irq_service_dummy_ack(struct irq_service *irq_service,
+			       const struct irq_source_info *info)
+{
+	DC_LOG_ERROR("%s: called for non-implemented irq source, src_id=%u, ext_id=%u\n",
+		     __func__, info->src_id, info->ext_id);
+
+	return false;
+}
+
 bool dal_irq_service_set(
 	struct irq_service *irq_service,
 	enum dc_irq_source source,
diff --git a/drivers/gpu/drm/amd/display/dc/irq/irq_service.h b/drivers/gpu/drm/amd/display/dc/irq/irq_service.h
index bbcef3d2fe334..c13986754a4a4 100644
--- a/drivers/gpu/drm/amd/display/dc/irq/irq_service.h
+++ b/drivers/gpu/drm/amd/display/dc/irq/irq_service.h
@@ -90,4 +90,13 @@ bool hpd1_ack(
 	struct irq_service *irq_service,
 	const struct irq_source_info *info);
 
+bool dal_irq_service_dummy_set(
+	struct irq_service *irq_service,
+	const struct irq_source_info *info,
+	bool enable);
+
+bool dal_irq_service_dummy_ack(
+	struct irq_service *irq_service,
+	const struct irq_source_info *info);
+
 #endif
diff --git a/drivers/gpu/drm/amd/display/dc/resource/Makefile b/drivers/gpu/drm/amd/display/dc/resource/Makefile
index b29986266888c..bf127b9882f73 100644
--- a/drivers/gpu/drm/amd/display/dc/resource/Makefile
+++ b/drivers/gpu/drm/amd/display/dc/resource/Makefile
@@ -37,6 +37,8 @@ endif
 
 ###############################################################################
 
+ifdef CONFIG_DRM_AMD_DC_DCE
+
 RESOURCE_DCE80 = dce80_resource.o
 
 AMD_DAL_RESOURCE_DCE80 = $(addprefix $(AMDDALPATH)/dc/resource/dce80/,$(RESOURCE_DCE80))
@@ -75,6 +77,8 @@ AMD_DAL_RESOURCE_DCE120 = $(addprefix $(AMDDALPATH)/dc/resource/dce120/,$(RESOUR
 
 AMD_DISPLAY_FILES += $(AMD_DAL_RESOURCE_DCE120)
 
+endif # CONFIG_DRM_AMD_DC_DCE
+
 ifdef CONFIG_DRM_AMD_DC_FP
 ###############################################################################
 # DCN
diff --git a/drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
index 8c4494a8ec8f4..2da5d44e52038 100644
--- a/drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
@@ -848,30 +848,6 @@ static void dce112_resource_destruct(struct dce110_resource_pool *pool)
 	}
 }
 
-static struct clock_source *find_matching_pll(
-		struct resource_context *res_ctx,
-		const struct resource_pool *pool,
-		const struct dc_stream_state *const stream)
-{
-	(void)res_ctx;
-	switch (stream->link->link_enc->transmitter) {
-	case TRANSMITTER_UNIPHY_A:
-		return pool->clock_sources[DCE112_CLK_SRC_PLL0];
-	case TRANSMITTER_UNIPHY_B:
-		return pool->clock_sources[DCE112_CLK_SRC_PLL1];
-	case TRANSMITTER_UNIPHY_C:
-		return pool->clock_sources[DCE112_CLK_SRC_PLL2];
-	case TRANSMITTER_UNIPHY_D:
-		return pool->clock_sources[DCE112_CLK_SRC_PLL3];
-	case TRANSMITTER_UNIPHY_E:
-		return pool->clock_sources[DCE112_CLK_SRC_PLL4];
-	case TRANSMITTER_UNIPHY_F:
-		return pool->clock_sources[DCE112_CLK_SRC_PLL5];
-	default:
-		return NULL;
-	}
-}
-
 static enum dc_status build_mapped_resource(
 		const struct dc *dc,
 		struct dc_state *context,
@@ -963,44 +939,6 @@ enum dc_status dce112_validate_bandwidth(
 	return result ? DC_OK : DC_FAIL_BANDWIDTH_VALIDATE;
 }
 
-enum dc_status resource_map_phy_clock_resources(
-		const struct dc *dc,
-		struct dc_state *context,
-		struct dc_stream_state *stream)
-{
-
-	/* acquire new resources */
-	struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(
-			&context->res_ctx, stream);
-
-	if (!pipe_ctx)
-		return DC_ERROR_UNEXPECTED;
-
-	if (dc_is_dp_signal(pipe_ctx->stream->signal)
-		|| dc_is_virtual_signal(pipe_ctx->stream->signal))
-		pipe_ctx->clock_source =
-				dc->res_pool->dp_clock_source;
-	else if (pipe_ctx->stream->signal == SIGNAL_TYPE_HDMI_FRL)
-			pipe_ctx->clock_source =
-				dc->res_pool->dp_clock_source;
-	else {
-		if (stream && stream->link && stream->link->link_enc)
-			pipe_ctx->clock_source = find_matching_pll(
-				&context->res_ctx, dc->res_pool,
-				stream);
-	}
-
-	if (pipe_ctx->clock_source == NULL)
-		return DC_NO_CLOCK_SOURCE_RESOURCE;
-
-	resource_reference_clock_source(
-		&context->res_ctx,
-		dc->res_pool,
-		pipe_ctx->clock_source);
-
-	return DC_OK;
-}
-
 static bool dce112_validate_surface_sets(
 		struct dc_state *context)
 {
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0175/2651] drm/amd/display: Refactor HUBP_WAIT_FOR_DCC_META_PROP to drop pipe_ctx
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (167 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0174/2651] drm/amd/display: gate DCE ASIC code behind CONFIG_DRM_AMD_DC_DCE Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0176/2651] drm/amd/display: Refactor DPP_SET_INPUT_TRANSFER_FUNC " Greg Kroah-Hartman
                   ` (22 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Alvin Lee, Tomasz Siemek, James Lin,
	Daniel Wheeler, Alex Deucher, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Tomasz Siemek <tomasz.siemek@amd.com>

[ Upstream commit 36a749820850e002e73c030cc59d88c43ec6735d ]

[why]
Pipe_ctx shouldn't be passed as block sequence block parameter.

[how]
Precalculate delay during building stage instead during execution.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Tomasz Siemek <tomasz.siemek@amd.com>
Signed-off-by: James Lin <pinglei.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: e377716b9863 ("drm/amd/display: use translate_curve_to_degamma_hw_format on DCN30")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/gpu/drm/amd/display/dc/core/dc.c      |  4 +-
 .../drm/amd/display/dc/core/dc_hw_sequencer.c | 47 +++++++++++--------
 .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 24 ++--------
 .../amd/display/dc/hwss/dcn401/dcn401_hwseq.h |  3 +-
 .../drm/amd/display/dc/hwss/hw_sequencer.h    | 11 ++---
 5 files changed, 36 insertions(+), 53 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 60b903edff2f8..2b6ed83021f1a 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -4973,9 +4973,7 @@ static void commit_planes_for_stream(struct dc *dc,
 						top_pipe_to_program->stream_res.tg);
 		}
 
-	if (dc->hwss.wait_for_dcc_meta_propagation) {
-		dc->hwss.wait_for_dcc_meta_propagation(dc, top_pipe_to_program);
-	}
+	hwss_hubp_wait_for_dcc_meta_prop(dc, top_pipe_to_program);
 
 	if (dc->hwseq->funcs.wait_for_pipe_update_if_needed)
 		dc->hwseq->funcs.wait_for_pipe_update_if_needed(dc, top_pipe_to_program, update_type < UPDATE_TYPE_FULL);
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
index d4dbdf7d05065..5b460c4d2c015 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
@@ -1119,6 +1119,22 @@ void hwss_build_post_unlock_full_sequence(struct dc *dc,
 	}
 }
 
+static uint32_t get_dcc_meta_propagation_delay(struct dc *dc, struct pipe_ctx *pipe_ctx)
+{
+	/* check if any surfaces are updating address while using flip immediate and dcc */
+	while (pipe_ctx != NULL) {
+		if (pipe_ctx->plane_state &&
+				pipe_ctx->plane_state->dcc.enable &&
+				pipe_ctx->plane_state->flip_immediate &&
+				pipe_ctx->plane_state->update_bits.addr_update) {
+			return dc->debug.dcc_meta_propagation_delay_us;
+		}
+		/* check next pipe */
+		pipe_ctx = pipe_ctx->bottom_pipe;
+	}
+	return 0;
+}
+
 void hwss_build_fast_sequence(struct dc *dc,
 		struct dc_dmub_cmd *dc_dmub_cmd,
 		unsigned int dmub_cmd_count,
@@ -1142,8 +1158,7 @@ void hwss_build_fast_sequence(struct dc *dc,
 		return;
 
 	if (dc->hwss.wait_for_dcc_meta_propagation) {
-		block_sequence[*num_steps].params.wait_for_dcc_meta_propagation_params.dc = dc;
-		block_sequence[*num_steps].params.wait_for_dcc_meta_propagation_params.top_pipe_to_program = pipe_ctx;
+		block_sequence[*num_steps].params.wait_for_dcc_meta_propagation_params.delay = get_dcc_meta_propagation_delay(dc, pipe_ctx);
 		block_sequence[*num_steps].func = HUBP_WAIT_FOR_DCC_META_PROP;
 		(*num_steps)++;
 	}
@@ -1721,9 +1736,7 @@ void hwss_execute_sequence(struct dc *dc,
 			hwss_subvp_save_surf_addr(params);
 			break;
 		case HUBP_WAIT_FOR_DCC_META_PROP:
-			dc->hwss.wait_for_dcc_meta_propagation(
-					params->wait_for_dcc_meta_propagation_params.dc,
-					params->wait_for_dcc_meta_propagation_params.top_pipe_to_program);
+			dc->hwss.wait_for_dcc_meta_propagation(params->wait_for_dcc_meta_propagation_params.delay);
 			break;
 		case DMUB_HW_CONTROL_LOCK_FAST:
 			dc->hwss.dmub_hw_control_lock_fast(params);
@@ -2436,21 +2449,6 @@ void hwss_add_dmub_subvp_save_surf_addr(struct block_sequence_state *seq_state,
 	}
 }
 
-/*
- * Helper function to add HUBP wait for DCC meta propagation to block sequence
- */
-void hwss_add_hubp_wait_for_dcc_meta_prop(struct block_sequence_state *seq_state,
-		struct dc *dc,
-		struct pipe_ctx *top_pipe_to_program)
-{
-	if (*seq_state->num_steps < MAX_HWSS_BLOCK_SEQUENCE_SIZE) {
-		seq_state->steps[*seq_state->num_steps].params.wait_for_dcc_meta_propagation_params.dc = dc;
-		seq_state->steps[*seq_state->num_steps].params.wait_for_dcc_meta_propagation_params.top_pipe_to_program = top_pipe_to_program;
-		seq_state->steps[*seq_state->num_steps].func = HUBP_WAIT_FOR_DCC_META_PROP;
-		(*seq_state->num_steps)++;
-	}
-}
-
 /*
  * Helper function to add HUBP wait pipe read start to block sequence
  */
@@ -6171,3 +6169,12 @@ void get_refresh_rate_confirm_color(struct pipe_ctx *pipe_ctx, struct tg_color *
 		pipe_ctx->visual_confirm_color.color_b_cb = (uint16_t)color_value;
 	}
 }
+
+void hwss_hubp_wait_for_dcc_meta_prop(struct dc *dc, struct pipe_ctx *top_pipe_to_program)
+{
+	if (dc->hwss.wait_for_dcc_meta_propagation) {
+		uint32_t delay = get_dcc_meta_propagation_delay(dc, top_pipe_to_program);
+		dc->hwss.wait_for_dcc_meta_propagation(delay);
+	}
+}
+
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
index 51596f445a09f..9e3c1f5beed0c 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
@@ -1332,28 +1332,10 @@ bool dcn401_apply_idle_power_optimizations(struct dc *dc, bool enable)
 	return true;
 }
 
-void dcn401_wait_for_dcc_meta_propagation(const struct dc *dc,
-		const struct pipe_ctx *top_pipe)
+void dcn401_wait_for_dcc_meta_propagation(uint32_t delay)
 {
-	bool is_wait_needed = false;
-	const struct pipe_ctx *pipe_ctx = top_pipe;
-
-	/* check if any surfaces are updating address while using flip immediate and dcc */
-	while (pipe_ctx != NULL) {
-		if (pipe_ctx->plane_state &&
-				pipe_ctx->plane_state->dcc.enable &&
-				pipe_ctx->plane_state->flip_immediate &&
-				pipe_ctx->plane_state->update_bits.addr_update) {
-			is_wait_needed = true;
-			break;
-		}
-
-		/* check next pipe */
-		pipe_ctx = pipe_ctx->bottom_pipe;
-	}
-
-	if (is_wait_needed && dc->debug.dcc_meta_propagation_delay_us > 0) {
-		udelay(dc->debug.dcc_meta_propagation_delay_us);
+	if (delay > 0) {
+		udelay(delay);
 	}
 }
 
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h
index 69c7dc73a29a1..2e3392c963d03 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h
@@ -57,8 +57,7 @@ void dcn401_set_cursor_position(struct pipe_ctx *pipe_ctx);
 
 bool dcn401_apply_idle_power_optimizations(struct dc *dc, bool enable);
 
-void dcn401_wait_for_dcc_meta_propagation(const struct dc *dc,
-		const struct pipe_ctx *top_pipe_to_program);
+void dcn401_wait_for_dcc_meta_propagation(uint32_t delay);
 
 void dcn401_prepare_bandwidth(struct dc *dc,
 		struct dc_state *context);
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h b/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
index 0d64a0c1913d9..5ea6d8a1937e2 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
@@ -182,8 +182,7 @@ struct subvp_save_surf_addr {
 };
 
 struct wait_for_dcc_meta_propagation_params {
-	const struct dc *dc;
-	const struct pipe_ctx *top_pipe_to_program;
+	uint32_t delay;
 };
 
 struct dmub_hw_control_lock_fast_params {
@@ -1652,8 +1651,7 @@ struct hw_sequencer_funcs {
 	bool (*is_pipe_topology_transition_seamless)(struct dc *dc,
 			const struct dc_state *cur_ctx,
 			const struct dc_state *new_ctx);
-	void (*wait_for_dcc_meta_propagation)(const struct dc *dc,
-		const struct pipe_ctx *top_pipe_to_program);
+	void (*wait_for_dcc_meta_propagation)(uint32_t delay);
 	void (*dmub_hw_control_lock)(struct dc *dc,
 			struct dc_state *context,
 			bool lock);
@@ -2120,6 +2118,8 @@ void hwss_setup_periodic_interrupt(struct dc *dc, union block_sequence_params *p
 
 void hwss_disable_audio_stream(struct dc *dc, union block_sequence_params *params);
 
+void hwss_hubp_wait_for_dcc_meta_prop(struct dc *dc, struct pipe_ctx *top_pipe_to_program);
+
 void hwss_add_optc_pipe_control_lock(struct block_sequence_state *seq_state,
 		struct dc *dc, struct pipe_ctx *pipe_ctx, bool lock);
 
@@ -2167,9 +2167,6 @@ void hwss_add_dmub_send_dmcub_cmd(struct block_sequence_state *seq_state,
 void hwss_add_dmub_subvp_save_surf_addr(struct block_sequence_state *seq_state,
 		struct dc_dmub_srv *dc_dmub_srv, struct dc_plane_address *addr, uint8_t subvp_index);
 
-void hwss_add_hubp_wait_for_dcc_meta_prop(struct block_sequence_state *seq_state,
-		struct dc *dc, struct pipe_ctx *top_pipe_to_program);
-
 void hwss_add_hubp_wait_pipe_read_start(struct block_sequence_state *seq_state,
 		struct hubp *hubp);
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0176/2651] drm/amd/display: Refactor DPP_SET_INPUT_TRANSFER_FUNC to drop pipe_ctx
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (168 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0175/2651] drm/amd/display: Refactor HUBP_WAIT_FOR_DCC_META_PROP to drop pipe_ctx Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0177/2651] drm/amd/display: use translate_curve_to_degamma_hw_format on DCN30 Greg Kroah-Hartman
                   ` (21 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Alvin Lee, Tomasz Siemek,
	Ivan Lipski, Dan Wheeler, Alex Deucher, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Tomasz Siemek <Tomasz.Siemek@amd.com>

[ Upstream commit 43bee2ff0d78f4f470062c4b7e6b20c9db92a4bf ]

[Why]
Pipe_ctx shouldn't be passed as block sequence block parameter.

[How]
- Adjust arguments for:
	- set_input_transfer_func,
	- populate_mcm_luts,
	- set_mcm_location_post_blend,
	- set_mcm_luts,
	- program_rmcm_luts.
- Remove const qualifier from plane_state in set_mcm_luts since it is
  mutated.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Tomasz Siemek <Tomasz.Siemek@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: e377716b9863 ("drm/amd/display: use translate_curve_to_degamma_hw_format on DCN30")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../drm/amd/display/dc/core/dc_hw_sequencer.c | 68 +++++++++++++++----
 .../amd/display/dc/hwss/dce110/dce110_hwseq.c | 11 ++-
 .../amd/display/dc/hwss/dce60/dce60_hwseq.c   |  3 +-
 .../amd/display/dc/hwss/dcn10/dcn10_hwseq.c   | 35 +++++-----
 .../amd/display/dc/hwss/dcn10/dcn10_hwseq.h   |  3 +-
 .../amd/display/dc/hwss/dcn20/dcn20_hwseq.c   | 63 ++++++++---------
 .../amd/display/dc/hwss/dcn20/dcn20_hwseq.h   |  7 +-
 .../amd/display/dc/hwss/dcn30/dcn30_hwseq.c   | 45 ++++++------
 .../amd/display/dc/hwss/dcn30/dcn30_hwseq.h   |  8 +--
 .../amd/display/dc/hwss/dcn32/dcn32_hwseq.c   | 60 ++++++++--------
 .../amd/display/dc/hwss/dcn32/dcn32_hwseq.h   | 10 +--
 .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 29 ++++----
 .../amd/display/dc/hwss/dcn401/dcn401_hwseq.h |  6 +-
 .../amd/display/dc/hwss/dcn42/dcn42_hwseq.c   | 49 +++++++------
 .../amd/display/dc/hwss/dcn42/dcn42_hwseq.h   | 12 ++--
 .../drm/amd/display/dc/hwss/hw_sequencer.h    | 12 +++-
 .../display/dc/hwss/hw_sequencer_private.h    | 18 ++---
 17 files changed, 238 insertions(+), 201 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
index 5b460c4d2c015..c98055364b8ea 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
@@ -1474,9 +1474,22 @@ void hwss_build_fast_sequence(struct dc *dc,
 					(*num_steps)++;
 				}
 				if (hws->funcs.set_input_transfer_func && current_mpc_pipe->plane_state->update_bits.gamma_change) {
-					block_sequence[*num_steps].params.set_input_transfer_func_params.dc = dc;
-					block_sequence[*num_steps].params.set_input_transfer_func_params.pipe_ctx = current_mpc_pipe;
-					block_sequence[*num_steps].params.set_input_transfer_func_params.plane_state = current_mpc_pipe->plane_state;
+					struct pipe_ctx *primary_dpp_pipe =
+						resource_get_primary_dpp_pipe(current_mpc_pipe);
+
+					block_sequence[*num_steps].params.set_input_transfer_func_params =
+						(struct set_input_transfer_func_params) {
+						.dc = dc,
+						.dpp = current_mpc_pipe->plane_res.dpp,
+						.hubp = current_mpc_pipe->plane_res.hubp,
+						.primary_hubp = primary_dpp_pipe ?
+							primary_dpp_pipe->plane_res.hubp : current_mpc_pipe->plane_res.hubp,
+						.ipp = current_mpc_pipe->plane_res.ipp,
+						.mpc = dc->res_pool->mpc,
+						.mpcc_id = current_mpc_pipe->plane_res.mpcc_inst,
+						.stream = current_mpc_pipe->stream,
+						.plane_state = current_mpc_pipe->plane_state,
+					};
 					block_sequence[*num_steps].func = DPP_SET_INPUT_TRANSFER_FUNC;
 					(*num_steps)++;
 				}
@@ -1677,9 +1690,7 @@ void hwss_execute_sequence(struct dc *dc,
 					params->update_plane_addr_params.pipe_ctx);
 			break;
 		case DPP_SET_INPUT_TRANSFER_FUNC:
-			hws->funcs.set_input_transfer_func(params->set_input_transfer_func_params.dc,
-					params->set_input_transfer_func_params.pipe_ctx,
-					params->set_input_transfer_func_params.plane_state);
+			hws->funcs.set_input_transfer_func(&params->set_input_transfer_func_params);
 			break;
 		case DPP_PROGRAM_GAMUT_REMAP:
 			if (dc->hwss.program_gamut_remap)
@@ -2246,15 +2257,25 @@ void hwss_add_hubp_update_plane_addr(struct block_sequence_state *seq_state,
 /*
  * Helper function to add DPP set input transfer function to block sequence
  */
-void hwss_add_dpp_set_input_transfer_func(struct block_sequence_state *seq_state,
-		struct dc *dc,
-		struct pipe_ctx *pipe_ctx,
-		struct dc_plane_state *plane_state)
+void hwss_add_dpp_set_input_transfer_func(struct block_sequence_state *seq_state, struct dc *dc,
+	struct pipe_ctx *pipe_ctx)
 {
 	if (*seq_state->num_steps < MAX_HWSS_BLOCK_SEQUENCE_SIZE) {
-		seq_state->steps[*seq_state->num_steps].params.set_input_transfer_func_params.dc = dc;
-		seq_state->steps[*seq_state->num_steps].params.set_input_transfer_func_params.pipe_ctx = pipe_ctx;
-		seq_state->steps[*seq_state->num_steps].params.set_input_transfer_func_params.plane_state = plane_state;
+		struct pipe_ctx *primary_dpp_pipe = resource_get_primary_dpp_pipe(pipe_ctx);
+
+		seq_state->steps[*seq_state->num_steps].params.set_input_transfer_func_params =
+			(struct set_input_transfer_func_params) {
+			.dc = dc,
+			.dpp = pipe_ctx->plane_res.dpp,
+			.hubp = pipe_ctx->plane_res.hubp,
+			.primary_hubp = primary_dpp_pipe ?
+				primary_dpp_pipe->plane_res.hubp : pipe_ctx->plane_res.hubp,
+			.ipp = pipe_ctx->plane_res.ipp,
+			.mpc = dc->res_pool->mpc,
+			.mpcc_id = pipe_ctx->plane_res.mpcc_inst,
+			.plane_state = pipe_ctx->plane_state,
+			.stream = pipe_ctx->stream,
+		};
 		seq_state->steps[*seq_state->num_steps].func = DPP_SET_INPUT_TRANSFER_FUNC;
 		(*seq_state->num_steps)++;
 	}
@@ -4526,6 +4547,26 @@ void hwss_disable_audio_stream(struct dc *dc, union block_sequence_params *param
 			params->disable_audio_stream_params.pipe_ctx);
 }
 
+void hwss_set_input_transfer_func(struct dc *dc, struct pipe_ctx *pipe_ctx)
+{
+	if (dc->hwseq->funcs.set_input_transfer_func) {
+		struct pipe_ctx *primary_dpp_pipe = resource_get_primary_dpp_pipe(pipe_ctx);
+
+		dc->hwseq->funcs.set_input_transfer_func(&(struct set_input_transfer_func_params) {
+			.dc = dc,
+			.dpp = pipe_ctx->plane_res.dpp,
+			.hubp = pipe_ctx->plane_res.hubp,
+			.primary_hubp = primary_dpp_pipe ?
+				primary_dpp_pipe->plane_res.hubp : pipe_ctx->plane_res.hubp,
+			.ipp = pipe_ctx->plane_res.ipp,
+			.mpc = dc->res_pool->mpc,
+			.mpcc_id = pipe_ctx->plane_res.mpcc_inst,
+			.plane_state = pipe_ctx->plane_state,
+			.stream = pipe_ctx->stream,
+		});
+	}
+}
+
 void hwss_prepare_bandwidth(struct dc *dc, union block_sequence_params *params)
 {
 	if (dc && dc->hwss.prepare_bandwidth)
@@ -6177,4 +6218,3 @@ void hwss_hubp_wait_for_dcc_meta_prop(struct dc *dc, struct pipe_ctx *top_pipe_t
 		dc->hwss.wait_for_dcc_meta_propagation(delay);
 	}
 }
-
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
index 8b47cdeeb1fb3..e081f795f4f71 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
@@ -283,11 +283,10 @@ static void dce110_prescale_params(struct ipp_prescale_params *prescale_params,
 }
 
 static bool
-dce110_set_input_transfer_func(struct dc *dc, struct pipe_ctx *pipe_ctx,
-			       const struct dc_plane_state *plane_state)
+dce110_set_input_transfer_func(struct set_input_transfer_func_params *params)
 {
-	(void)dc;
-	struct input_pixel_processor *ipp = pipe_ctx->plane_res.ipp;
+	struct input_pixel_processor *ipp = params->ipp;
+	struct dc_plane_state *plane_state = params->plane_state;
 	const struct dc_transfer_func *tf = NULL;
 	struct ipp_prescale_params prescale_params = { 0 };
 	bool result = true;
@@ -3140,7 +3139,6 @@ static void dce110_program_front_end_for_pipe(
 	struct xfm_grph_csc_adjustment adjust;
 	struct out_csc_color_matrix tbl_entry;
 	unsigned int i;
-	struct dce_hwseq *hws = dc->hwseq;
 
 	memset(&tbl_entry, 0, sizeof(tbl_entry));
 
@@ -3199,7 +3197,7 @@ static void dce110_program_front_end_for_pipe(
 	if (pipe_ctx->plane_state->update_bits.full_update ||
 			pipe_ctx->plane_state->update_bits.in_transfer_func_change ||
 			pipe_ctx->plane_state->update_bits.gamma_change)
-		hws->funcs.set_input_transfer_func(dc, pipe_ctx, pipe_ctx->plane_state);
+		hwss_set_input_transfer_func(dc, pipe_ctx);
 
 	if (pipe_ctx->plane_state->update_bits.full_update)
 		hwss_set_output_transfer_func(dc, pipe_ctx);
@@ -3686,5 +3684,6 @@ void dce110_hw_sequencer_construct(struct dc *dc)
 	dc->hwss = dce110_funcs;
 	dc->hwseq->funcs = dce110_private_funcs;
 }
+
 #endif /* CONFIG_DRM_AMD_DC_DCE */
 
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
index 221996b348abf..1652e47716a0a 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
@@ -275,7 +275,6 @@ dce60_program_front_end_for_pipe(
 	struct xfm_grph_csc_adjustment adjust;
 	struct out_csc_color_matrix tbl_entry;
 	unsigned int i;
-	struct dce_hwseq *hws = dc->hwseq;
 
 	DC_LOGGER_INIT();
 	memset(&tbl_entry, 0, sizeof(tbl_entry));
@@ -335,7 +334,7 @@ dce60_program_front_end_for_pipe(
 	if (pipe_ctx->plane_state->update_bits.full_update ||
 			pipe_ctx->plane_state->update_bits.in_transfer_func_change ||
 			pipe_ctx->plane_state->update_bits.gamma_change)
-		hws->funcs.set_input_transfer_func(dc, pipe_ctx, pipe_ctx->plane_state);
+		hwss_set_input_transfer_func(dc, pipe_ctx);
 
 	if (pipe_ctx->plane_state->update_bits.full_update)
 		hwss_set_output_transfer_func(dc, pipe_ctx);
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
index 097e4ac2df058..a2322e88494ef 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
@@ -2076,39 +2076,38 @@ void dcn10_update_plane_addr(const struct dc *dc, struct pipe_ctx *pipe_ctx)
 		pipe_ctx->plane_state->address.grph_stereo.left_addr = addr;
 }
 
-bool dcn10_set_input_transfer_func(struct dc *dc, struct pipe_ctx *pipe_ctx,
-			const struct dc_plane_state *plane_state)
+bool dcn10_set_input_transfer_func(struct set_input_transfer_func_params *params)
 {
-	(void)dc;
-	struct dpp *dpp_base = pipe_ctx->plane_res.dpp;
+	struct dpp *dpp = params->dpp;
+	struct dc_plane_state *plane_state = params->plane_state;
 	const struct dc_transfer_func *tf = NULL;
 	bool result = true;
 
-	if (dpp_base == NULL)
+	if (dpp == NULL)
 		return false;
 
 	tf = &plane_state->in_transfer_func;
 
-	if (!dpp_base->ctx->dc->debug.always_use_regamma
+	if (!dpp->ctx->dc->debug.always_use_regamma
 		&& !plane_state->gamma_correction.is_identity
 			&& dce_use_lut(plane_state->format))
-		dpp_base->funcs->dpp_program_input_lut(dpp_base, &plane_state->gamma_correction);
+		dpp->funcs->dpp_program_input_lut(dpp, &plane_state->gamma_correction);
 
 	if (tf->type == TF_TYPE_PREDEFINED) {
 		switch (tf->tf) {
 		case TRANSFER_FUNCTION_SRGB:
-			dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_HW_sRGB);
+			dpp->funcs->dpp_set_degamma(dpp, IPP_DEGAMMA_MODE_HW_sRGB);
 			break;
 		case TRANSFER_FUNCTION_BT709:
-			dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_HW_xvYCC);
+			dpp->funcs->dpp_set_degamma(dpp, IPP_DEGAMMA_MODE_HW_xvYCC);
 			break;
 		case TRANSFER_FUNCTION_LINEAR:
-			dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_BYPASS);
+			dpp->funcs->dpp_set_degamma(dpp, IPP_DEGAMMA_MODE_BYPASS);
 			break;
 		case TRANSFER_FUNCTION_PQ:
-			dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_USER_PWL);
-			cm_helper_translate_curve_to_degamma_hw_format(tf, &dpp_base->degamma_params);
-			dpp_base->funcs->dpp_program_degamma_pwl(dpp_base, &dpp_base->degamma_params);
+			dpp->funcs->dpp_set_degamma(dpp, IPP_DEGAMMA_MODE_USER_PWL);
+			cm_helper_translate_curve_to_degamma_hw_format(tf, &dpp->degamma_params);
+			dpp->funcs->dpp_program_degamma_pwl(dpp, &dpp->degamma_params);
 			result = true;
 			break;
 		default:
@@ -2116,12 +2115,12 @@ bool dcn10_set_input_transfer_func(struct dc *dc, struct pipe_ctx *pipe_ctx,
 			break;
 		}
 	} else if (tf->type == TF_TYPE_BYPASS) {
-		dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_BYPASS);
+		dpp->funcs->dpp_set_degamma(dpp, IPP_DEGAMMA_MODE_BYPASS);
 	} else {
 		cm_helper_translate_curve_to_degamma_hw_format(tf,
-					&dpp_base->degamma_params);
-		dpp_base->funcs->dpp_program_degamma_pwl(dpp_base,
-				&dpp_base->degamma_params);
+					&dpp->degamma_params);
+		dpp->funcs->dpp_program_degamma_pwl(dpp,
+				&dpp->degamma_params);
 		result = true;
 	}
 
@@ -3296,7 +3295,7 @@ void dcn10_program_pipe(
 	if (pipe_ctx->plane_state->update_bits.full_update ||
 			pipe_ctx->plane_state->update_bits.in_transfer_func_change ||
 			pipe_ctx->plane_state->update_bits.gamma_change)
-		hws->funcs.set_input_transfer_func(dc, pipe_ctx, pipe_ctx->plane_state);
+		hwss_set_input_transfer_func(dc, pipe_ctx);
 
 	/* dcn10_translate_regamma_to_hw_format takes 750us to finish
 	 * only do gamma programming for full update.
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.h b/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.h
index 2cb674ba54e16..1ff17394d0a78 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.h
@@ -74,8 +74,7 @@ void dcn10_program_output_csc(struct dc *dc,
 		uint16_t *matrix,
 		int opp_id);
 bool dcn10_set_output_transfer_func(struct set_output_transfer_func_params *params);
-bool dcn10_set_input_transfer_func(struct dc *dc, struct pipe_ctx *pipe_ctx,
-			const struct dc_plane_state *plane_state);
+bool dcn10_set_input_transfer_func(struct set_input_transfer_func_params *params);
 void dcn10_update_plane_addr(const struct dc *dc, struct pipe_ctx *pipe_ctx);
 void dcn10_update_mpcc(struct dc *dc, struct pipe_ctx *pipe_ctx);
 void dcn10_reset_hw_ctx_wrap(
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
index 16bb6f678567c..c56279cb9f29f 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
@@ -1065,9 +1065,8 @@ bool dcn20_set_output_transfer_func(struct set_output_transfer_func_params *otf_
 }
 
 bool dcn20_set_blend_lut(
-	struct pipe_ctx *pipe_ctx, const struct dc_plane_state *plane_state)
+	struct dpp *dpp, struct dc_plane_state *plane_state)
 {
-	struct dpp *dpp_base = pipe_ctx->plane_res.dpp;
 	bool result = true;
 	const struct pwl_params *blend_lut = NULL;
 
@@ -1076,18 +1075,17 @@ bool dcn20_set_blend_lut(
 	else if (plane_state->cm.blend_func.type == TF_TYPE_DISTRIBUTED_POINTS) {
 		cm_helper_translate_curve_to_hw_format(plane_state->ctx,
 				&plane_state->cm.blend_func,
-				&dpp_base->regamma_params, false);
-		blend_lut = &dpp_base->regamma_params;
+				&dpp->regamma_params, false);
+		blend_lut = &dpp->regamma_params;
 	}
-	result = dpp_base->funcs->dpp_program_blnd_lut(dpp_base, blend_lut);
+	result = dpp->funcs->dpp_program_blnd_lut(dpp, blend_lut);
 
 	return result;
 }
 
 bool dcn20_set_shaper_3dlut(
-	struct pipe_ctx *pipe_ctx, const struct dc_plane_state *plane_state)
+	struct dpp *dpp, struct dc_plane_state *plane_state)
 {
-	struct dpp *dpp_base = pipe_ctx->plane_res.dpp;
 	bool result = true;
 	const struct pwl_params *shaper_lut = NULL;
 
@@ -1096,35 +1094,34 @@ bool dcn20_set_shaper_3dlut(
 	else if (plane_state->cm.shaper_func.type == TF_TYPE_DISTRIBUTED_POINTS) {
 		cm_helper_translate_curve_to_hw_format(plane_state->ctx,
 				&plane_state->cm.shaper_func,
-				&dpp_base->shaper_params, true);
-		shaper_lut = &dpp_base->shaper_params;
+				&dpp->shaper_params, true);
+		shaper_lut = &dpp->shaper_params;
 	}
 
-	result = dpp_base->funcs->dpp_program_shaper_lut(dpp_base, shaper_lut);
+	dpp->funcs->dpp_program_shaper_lut(dpp, shaper_lut);
 	if (plane_state->cm.lut3d_func.state.bits.initialized == 1)
-		result = dpp_base->funcs->dpp_program_3dlut(dpp_base,
+		result = dpp->funcs->dpp_program_3dlut(dpp,
 								&plane_state->cm.lut3d_func.lut_3d);
 	else
-		result = dpp_base->funcs->dpp_program_3dlut(dpp_base, NULL);
+		result = dpp->funcs->dpp_program_3dlut(dpp, NULL);
 
 	return result;
 }
 
-bool dcn20_set_input_transfer_func(struct dc *dc,
-				struct pipe_ctx *pipe_ctx,
-				const struct dc_plane_state *plane_state)
+bool dcn20_set_input_transfer_func(struct set_input_transfer_func_params *params)
 {
-	struct dce_hwseq *hws = dc->hwseq;
-	struct dpp *dpp_base = pipe_ctx->plane_res.dpp;
+	struct dpp *dpp = params->dpp;
+	struct dc_plane_state *plane_state = params->plane_state;
+	struct dce_hwseq *hws = params->dc->hwseq;
 	const struct dc_transfer_func *tf = NULL;
 	bool result = true;
 	bool use_degamma_ram = false;
 
-	if (dpp_base == NULL || plane_state == NULL)
+	if (dpp == NULL || plane_state == NULL)
 		return false;
 
-	hws->funcs.set_shaper_3dlut(pipe_ctx, plane_state);
-	hws->funcs.set_blend_lut(pipe_ctx, plane_state);
+	hws->funcs.set_shaper_3dlut(dpp, plane_state);
+	hws->funcs.set_blend_lut(dpp, plane_state);
 
 	tf = &plane_state->in_transfer_func;
 
@@ -1133,13 +1130,13 @@ bool dcn20_set_input_transfer_func(struct dc *dc,
 
 	if (use_degamma_ram == true) {
 		if (tf->type == TF_TYPE_HWPWL)
-			dpp_base->funcs->dpp_program_degamma_pwl(dpp_base,
+			dpp->funcs->dpp_program_degamma_pwl(dpp,
 					&tf->pwl);
 		else if (tf->type == TF_TYPE_DISTRIBUTED_POINTS) {
 			cm_helper_translate_curve_to_degamma_hw_format(tf,
-					&dpp_base->degamma_params);
-			dpp_base->funcs->dpp_program_degamma_pwl(dpp_base,
-				&dpp_base->degamma_params);
+					&dpp->degamma_params);
+			dpp->funcs->dpp_program_degamma_pwl(dpp,
+				&dpp->degamma_params);
 		}
 		return true;
 	}
@@ -1149,21 +1146,21 @@ bool dcn20_set_input_transfer_func(struct dc *dc,
 	if (tf->type == TF_TYPE_PREDEFINED) {
 		switch (tf->tf) {
 		case TRANSFER_FUNCTION_SRGB:
-			dpp_base->funcs->dpp_set_degamma(dpp_base,
+			dpp->funcs->dpp_set_degamma(dpp,
 					IPP_DEGAMMA_MODE_HW_sRGB);
 			break;
 		case TRANSFER_FUNCTION_BT709:
-			dpp_base->funcs->dpp_set_degamma(dpp_base,
+			dpp->funcs->dpp_set_degamma(dpp,
 					IPP_DEGAMMA_MODE_HW_xvYCC);
 			break;
 		case TRANSFER_FUNCTION_LINEAR:
-			dpp_base->funcs->dpp_set_degamma(dpp_base,
+			dpp->funcs->dpp_set_degamma(dpp,
 					IPP_DEGAMMA_MODE_BYPASS);
 			break;
 		case TRANSFER_FUNCTION_PQ:
-			dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_USER_PWL);
-			cm_helper_translate_curve_to_degamma_hw_format(tf, &dpp_base->degamma_params);
-			dpp_base->funcs->dpp_program_degamma_pwl(dpp_base, &dpp_base->degamma_params);
+			dpp->funcs->dpp_set_degamma(dpp, IPP_DEGAMMA_MODE_USER_PWL);
+			cm_helper_translate_curve_to_degamma_hw_format(tf, &dpp->degamma_params);
+			dpp->funcs->dpp_program_degamma_pwl(dpp, &dpp->degamma_params);
 			result = true;
 			break;
 		default:
@@ -1171,7 +1168,7 @@ bool dcn20_set_input_transfer_func(struct dc *dc,
 			break;
 		}
 	} else if (tf->type == TF_TYPE_BYPASS)
-		dpp_base->funcs->dpp_set_degamma(dpp_base,
+		dpp->funcs->dpp_set_degamma(dpp,
 				IPP_DEGAMMA_MODE_BYPASS);
 	else {
 		/*
@@ -1179,7 +1176,7 @@ bool dcn20_set_input_transfer_func(struct dc *dc,
 		 * fix is required for this use case
 		 */
 		BREAK_TO_DEBUGGER();
-		dpp_base->funcs->dpp_set_degamma(dpp_base,
+		dpp->funcs->dpp_set_degamma(dpp,
 				IPP_DEGAMMA_MODE_BYPASS);
 	}
 
@@ -1987,7 +1984,7 @@ static void dcn20_program_pipe(
 			pipe_ctx->plane_state->update_bits.gamma_change ||
 			pipe_ctx->plane_state->update_bits.lut_3d ||
 			pipe_ctx->update_flags.bits.enable))
-		hws->funcs.set_input_transfer_func(dc, pipe_ctx, pipe_ctx->plane_state);
+		hwss_set_input_transfer_func(dc, pipe_ctx);
 
 	/* dcn10_translate_regamma_to_hw_format takes 750us to finish
 	 * only do gamma programming for powering on, internal memcmp to avoid
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.h b/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.h
index 749348d3c7938..9312c88e31ad9 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.h
@@ -31,9 +31,9 @@
 void dcn20_log_color_state(struct dc *dc,
 			   struct dc_log_buffer_ctx *log_ctx);
 bool dcn20_set_blend_lut(
-	struct pipe_ctx *pipe_ctx, const struct dc_plane_state *plane_state);
+	struct dpp *dpp, struct dc_plane_state *plane_state);
 bool dcn20_set_shaper_3dlut(
-	struct pipe_ctx *pipe_ctx, const struct dc_plane_state *plane_state);
+	struct dpp *dpp, struct dc_plane_state *plane_state);
 void dcn20_program_front_end_for_ctx(
 		struct dc *dc,
 		struct dc_state *context);
@@ -42,8 +42,7 @@ void dcn20_post_unlock_program_front_end(
 		struct dc_state *context);
 void dcn20_update_plane_addr(const struct dc *dc, struct pipe_ctx *pipe_ctx);
 void dcn20_update_mpcc(struct dc *dc, struct pipe_ctx *pipe_ctx);
-bool dcn20_set_input_transfer_func(struct dc *dc, struct pipe_ctx *pipe_ctx,
-			const struct dc_plane_state *plane_state);
+bool dcn20_set_input_transfer_func(struct set_input_transfer_func_params *params);
 bool dcn20_set_output_transfer_func(struct set_output_transfer_func_params *params);
 void dcn20_program_output_csc(struct dc *dc,
 		struct pipe_ctx *pipe_ctx,
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
index d669b47af1203..bab29ca58c351 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
@@ -234,9 +234,8 @@ void dcn30_log_color_state(struct dc *dc,
 }
 
 bool dcn30_set_blend_lut(
-	struct pipe_ctx *pipe_ctx, const struct dc_plane_state *plane_state)
+	struct dpp *dpp, struct dc_plane_state *plane_state)
 {
-	struct dpp *dpp_base = pipe_ctx->plane_res.dpp;
 	bool result = true;
 	const struct pwl_params *blend_lut = NULL;
 
@@ -245,14 +244,14 @@ bool dcn30_set_blend_lut(
 	else if (plane_state->cm.blend_func.type == TF_TYPE_DISTRIBUTED_POINTS) {
 		result = cm3_helper_translate_curve_to_hw_format(plane_state->ctx,
 				&plane_state->cm.blend_func,
-				&dpp_base->regamma_params,
+				&dpp->regamma_params,
 				false);
 		if (!result)
 			return result;
 
-		blend_lut = &dpp_base->regamma_params;
+		blend_lut = &dpp->regamma_params;
 	}
-	result = dpp_base->funcs->dpp_program_blnd_lut(dpp_base, blend_lut);
+	result = dpp->funcs->dpp_program_blnd_lut(dpp, blend_lut);
 
 	return result;
 }
@@ -314,17 +313,16 @@ static bool dcn30_set_mpc_shaper_3dlut(struct dpp *dpp, struct mpc *mpc,
 	return result;
 }
 
-bool dcn30_set_input_transfer_func(struct dc *dc,
-				struct pipe_ctx *pipe_ctx,
-				const struct dc_plane_state *plane_state)
+bool dcn30_set_input_transfer_func(struct set_input_transfer_func_params *params)
 {
-	struct dce_hwseq *hws = dc->hwseq;
-	struct dpp *dpp_base = pipe_ctx->plane_res.dpp;
+	struct dpp *dpp = params->dpp;
+	struct dce_hwseq *hws = params->dc->hwseq;
+	struct dc_plane_state *plane_state = params->plane_state;
 	enum dc_transfer_func_predefined tf;
 	bool result = true;
-	const struct pwl_params *params = NULL;
+	const struct pwl_params *pwl_params = NULL;
 
-	if (dpp_base == NULL || plane_state == NULL)
+	if (dpp == NULL || plane_state == NULL)
 		return false;
 
 	tf = TRANSFER_FUNCTION_UNITY;
@@ -332,25 +330,24 @@ bool dcn30_set_input_transfer_func(struct dc *dc,
 	if (plane_state->in_transfer_func.type == TF_TYPE_PREDEFINED)
 		tf = plane_state->in_transfer_func.tf;
 
-	dpp_base->funcs->dpp_set_pre_degam(dpp_base, tf);
+	dpp->funcs->dpp_set_pre_degam(dpp, tf);
 
 	if (plane_state->in_transfer_func.type == TF_TYPE_HWPWL)
-		params = &plane_state->in_transfer_func.pwl;
+		pwl_params = &plane_state->in_transfer_func.pwl;
 	else if (plane_state->in_transfer_func.type == TF_TYPE_DISTRIBUTED_POINTS &&
 		cm3_helper_translate_curve_to_hw_format(plane_state->ctx,
 							&plane_state->in_transfer_func,
-							&dpp_base->degamma_params, false))
-		params = &dpp_base->degamma_params;
+							&dpp->degamma_params, false))
+		pwl_params = &dpp->degamma_params;
 
-	result = dpp_base->funcs->dpp_program_gamcor_lut(dpp_base, params);
+	result = dpp->funcs->dpp_program_gamcor_lut(dpp, pwl_params);
+
+	if (dpp->funcs->dpp_program_blnd_lut)
+		hws->funcs.set_blend_lut(dpp, plane_state);
+	if (dpp->funcs->dpp_program_shaper_lut &&
+			dpp->funcs->dpp_program_3dlut)
+		hws->funcs.set_shaper_3dlut(dpp, plane_state);
 
-	if (pipe_ctx->stream_res.opp && pipe_ctx->stream_res.opp->ctx) {
-		if (dpp_base->funcs->dpp_program_blnd_lut)
-			hws->funcs.set_blend_lut(pipe_ctx, plane_state);
-		if (dpp_base->funcs->dpp_program_shaper_lut &&
-				dpp_base->funcs->dpp_program_3dlut)
-			hws->funcs.set_shaper_3dlut(pipe_ctx, plane_state);
-	}
 
 	return result;
 }
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.h b/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.h
index 0399642076eb5..65014d42195ca 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.h
@@ -56,12 +56,10 @@ bool dcn30_mmhubbub_warmup(
 void dcn30_log_color_state(struct dc *dc,
 			   struct dc_log_buffer_ctx *log_ctx);
 
-bool dcn30_set_blend_lut(struct pipe_ctx *pipe_ctx,
-		const struct dc_plane_state *plane_state);
+bool dcn30_set_blend_lut(struct dpp *dpp,
+		struct dc_plane_state *plane_state);
 
-bool dcn30_set_input_transfer_func(struct dc *dc,
-				struct pipe_ctx *pipe_ctx,
-				const struct dc_plane_state *plane_state);
+bool dcn30_set_input_transfer_func(struct set_input_transfer_func_params *params);
 
 void dcn30_program_gamut_remap(struct program_gamut_remap_params *params);
 
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
index 51fd2b3fe106f..e0b3ba7474224 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
@@ -477,26 +477,30 @@ bool dcn32_set_mpc_shaper_3dlut(struct dpp *dpp, struct mpc *mpc,
 	return result;
 }
 
-bool dcn32_set_mcm_luts(
-	struct pipe_ctx *pipe_ctx, const struct dc_plane_state *plane_state)
+bool dcn32_set_mcm_luts(struct dc *dc, struct dpp *dpp, struct hubp *hubp,
+	struct hubp *primary_hubp, struct mpc *mpc, int mpcc_id,
+	struct dc_stream_state *stream,
+	struct dc_plane_state *plane_state)
 {
-	struct dpp *dpp_base = pipe_ctx->plane_res.dpp;
-	int mpcc_id = pipe_ctx->plane_res.hubp->inst;
-	struct mpc *mpc = pipe_ctx->stream_res.opp->ctx->dc->res_pool->mpc;
 	bool rval, result;
 	const struct pwl_params *lut_params = NULL;
 
+	(void)dc;
+	(void)hubp;
+	(void)primary_hubp;
+	(void)stream;
+
 	// 1D LUT
 	if (plane_state->cm.blend_func.type == TF_TYPE_HWPWL)
 		lut_params = &plane_state->cm.blend_func.pwl;
 	else if (plane_state->cm.blend_func.type == TF_TYPE_DISTRIBUTED_POINTS) {
 		result = cm3_helper_translate_curve_to_degamma_hw_format(
 			&plane_state->cm.blend_func,
-			&dpp_base->regamma_params);
+			&dpp->regamma_params);
 		if (!result)
 			return result;
 
-		lut_params = &dpp_base->regamma_params;
+		lut_params = &dpp->regamma_params;
 	}
 	mpc->funcs->program_1dlut(mpc, lut_params, mpcc_id);
 	lut_params = NULL;
@@ -505,12 +509,12 @@ bool dcn32_set_mcm_luts(
 	if (plane_state->cm.shaper_func.type == TF_TYPE_HWPWL)
 		lut_params = &plane_state->cm.shaper_func.pwl;
 	else if (plane_state->cm.shaper_func.type == TF_TYPE_DISTRIBUTED_POINTS) {
-		// TODO: dpp_base replace
+		// TODO: dpp replace
 		rval = cm3_helper_translate_curve_to_hw_format(plane_state->ctx,
 			&plane_state->cm.shaper_func,
-			&dpp_base->shaper_params,
+			&dpp->shaper_params,
 			true);
-		lut_params = rval ? &dpp_base->shaper_params : NULL;
+		lut_params = rval ? &dpp->shaper_params : NULL;
 	}
 
 	mpc->funcs->program_shaper(mpc, lut_params, mpcc_id);
@@ -524,19 +528,17 @@ bool dcn32_set_mcm_luts(
 	return result;
 }
 
-bool dcn32_set_input_transfer_func(struct dc *dc,
-				struct pipe_ctx *pipe_ctx,
-				const struct dc_plane_state *plane_state)
+bool dcn32_set_input_transfer_func(struct set_input_transfer_func_params *params)
 {
-	struct dce_hwseq *hws = dc->hwseq;
-	struct mpc *mpc = dc->res_pool->mpc;
-	struct dpp *dpp_base = pipe_ctx->plane_res.dpp;
+	struct dce_hwseq *hws = params->dc->hwseq;
+	struct dpp *dpp = params->dpp;
+	struct dc_plane_state *plane_state = params->plane_state;
 
 	enum dc_transfer_func_predefined tf;
 	bool result = true;
-	const struct pwl_params *params = NULL;
+	const struct pwl_params *pwl_params = NULL;
 
-	if (mpc == NULL || plane_state == NULL)
+	if (params->mpc == NULL || plane_state == NULL)
 		return false;
 
 	tf = TRANSFER_FUNCTION_UNITY;
@@ -544,24 +546,24 @@ bool dcn32_set_input_transfer_func(struct dc *dc,
 	if (plane_state->in_transfer_func.type == TF_TYPE_PREDEFINED)
 		tf = plane_state->in_transfer_func.tf;
 
-	if (dpp_base->funcs->dpp_set_pregam_state)
-		dpp_base->funcs->dpp_set_pregam_state(dpp_base, tf, plane_state->scaling_linearity);
+	if (dpp->funcs->dpp_set_pregam_state)
+		dpp->funcs->dpp_set_pregam_state(dpp, tf, plane_state->scaling_linearity);
 	else
-		dpp_base->funcs->dpp_set_pre_degam(dpp_base, tf);
+		dpp->funcs->dpp_set_pre_degam(dpp, tf);
 
 	if (plane_state->in_transfer_func.type == TF_TYPE_HWPWL)
-		params = &plane_state->in_transfer_func.pwl;
+		pwl_params = &plane_state->in_transfer_func.pwl;
 	else if (plane_state->in_transfer_func.type == TF_TYPE_DISTRIBUTED_POINTS &&
 		cm3_helper_translate_curve_to_degamma_hw_format(&plane_state->in_transfer_func,
-								&dpp_base->degamma_params))
-		params = &dpp_base->degamma_params;
+								&dpp->degamma_params))
+		pwl_params = &dpp->degamma_params;
 
-	dpp_base->funcs->dpp_program_gamcor_lut(dpp_base, params);
+	dpp->funcs->dpp_program_gamcor_lut(dpp, pwl_params);
 
-	if (pipe_ctx->stream_res.opp &&
-			pipe_ctx->stream_res.opp->ctx &&
-			hws->funcs.set_mcm_luts)
-		result = hws->funcs.set_mcm_luts(pipe_ctx, plane_state);
+	if (hws->funcs.set_mcm_luts)
+		result = hws->funcs.set_mcm_luts(params->dc, dpp, params->hubp,
+			params->primary_hubp, params->mpc, params->mpcc_id,
+			params->stream, plane_state);
 
 	return result;
 }
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.h b/drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.h
index 090d94d38343b..c85ff14596afb 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.h
@@ -47,12 +47,12 @@ void dcn32_cab_for_ss_control(struct dc *dc, bool enable);
 
 void dcn32_commit_subvp_config(struct dc *dc, struct dc_state *context);
 
-bool dcn32_set_mcm_luts(struct pipe_ctx *pipe_ctx,
-				const struct dc_plane_state *plane_state);
+bool dcn32_set_mcm_luts(struct dc *dc, struct dpp *dpp, struct hubp *hubp,
+				struct hubp *primary_hubp, struct mpc *mpc, int mpcc_id,
+				struct dc_stream_state *stream,
+				struct dc_plane_state *plane_state);
 
-bool dcn32_set_input_transfer_func(struct dc *dc,
-				struct pipe_ctx *pipe_ctx,
-				const struct dc_plane_state *plane_state);
+bool dcn32_set_input_transfer_func(struct set_input_transfer_func_params *params);
 
 bool dcn32_set_mpc_shaper_3dlut(struct dpp *dpp_base, struct mpc *mpc,
 	int mpcc_id, const struct dc_stream_state *stream);
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
index 9e3c1f5beed0c..6d839f45b0854 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
@@ -420,18 +420,12 @@ void dcn401_trigger_3dlut_dma_load(struct pipe_ctx *pipe_ctx)
 	}
 }
 
-bool dcn401_set_mcm_luts(struct pipe_ctx *pipe_ctx,
-				const struct dc_plane_state *plane_state)
+bool dcn401_set_mcm_luts(struct dc *dc, struct dpp *dpp, struct hubp *hubp,
+				struct hubp *primary_hubp, struct mpc *mpc, int mpcc_id,
+				struct dc_stream_state *stream,
+				struct dc_plane_state *plane_state)
 {
-	struct dc *dc = pipe_ctx->plane_res.hubp->ctx->dc;
-	const struct pipe_ctx *primary_dpp_pipe_ctx = resource_get_primary_dpp_pipe(pipe_ctx);
-	struct dpp *dpp_base = pipe_ctx->plane_res.dpp;
-	struct hubp *hubp = pipe_ctx->plane_res.hubp;
-	struct hubp *primary_hubp = primary_dpp_pipe_ctx ?
-			primary_dpp_pipe_ctx->plane_res.hubp : hubp;   /* fall back to current pipe */
 	const struct dc_plane_cm *cm = &plane_state->cm;
-	int mpcc_id = hubp->inst;
-	struct mpc *mpc = dc->res_pool->mpc;
 	union mcm_lut_params m_lut_params;
 	struct dc_3dlut_dma lut3d_dma;
 	bool lut_enable;
@@ -439,6 +433,9 @@ bool dcn401_set_mcm_luts(struct pipe_ctx *pipe_ctx,
 	bool rval;
 	bool result = true;
 
+	(void)dc;
+	(void)stream;
+
 	/* decide LUT bank based on current in use */
 	mpc->funcs->get_lut_mode(mpc, MCM_LUT_1DLUT, mpcc_id, &lut_enable, &lut_bank_a);
 	if (!lut_enable) {
@@ -465,9 +462,9 @@ bool dcn401_set_mcm_luts(struct pipe_ctx *pipe_ctx,
 		else if (cm->blend_func.type == TF_TYPE_DISTRIBUTED_POINTS) {
 			rval = cm3_helper_translate_curve_to_hw_format(plane_state->ctx,
 					&cm->blend_func,
-					&dpp_base->regamma_params,
+					&dpp->regamma_params,
 					false);
-			m_lut_params.pwl = rval ? &dpp_base->regamma_params : NULL;
+			m_lut_params.pwl = rval ? &dpp->regamma_params : NULL;
 		}
 
 		if (!m_lut_params.pwl) {
@@ -492,9 +489,9 @@ bool dcn401_set_mcm_luts(struct pipe_ctx *pipe_ctx,
 			ASSERT(false);
 			rval = cm3_helper_translate_curve_to_hw_format(plane_state->ctx,
 					&cm->shaper_func,
-					&dpp_base->shaper_params,
+					&dpp->shaper_params,
 					true);
-			m_lut_params.pwl = rval ? &dpp_base->shaper_params : NULL;
+			m_lut_params.pwl = rval ? &dpp->shaper_params : NULL;
 		}
 		if (!m_lut_params.pwl) {
 			lut_enable = false;
@@ -2287,7 +2284,7 @@ void dcn401_program_pipe(
 			pipe_ctx->plane_state->update_bits.gamma_change ||
 			pipe_ctx->plane_state->update_bits.lut_3d ||
 			pipe_ctx->update_flags.bits.enable))
-		hws->funcs.set_input_transfer_func(dc, pipe_ctx, pipe_ctx->plane_state);
+		hwss_set_input_transfer_func(dc, pipe_ctx);
 
 	/* dcn10_translate_regamma_to_hw_format takes 750us to finish
 	 * only do gamma programming for powering on, internal memcmp to avoid
@@ -2444,7 +2441,7 @@ void dcn401_program_pipe_sequence(
 			pipe_ctx->plane_state->update_bits.lut_3d ||
 			pipe_ctx->update_flags.bits.enable)) {
 
-		hwss_add_dpp_set_input_transfer_func(seq_state, dc, pipe_ctx, pipe_ctx->plane_state);
+		hwss_add_dpp_set_input_transfer_func(seq_state, dc, pipe_ctx);
 	}
 
 	/* dcn10_translate_regamma_to_hw_format takes 750us to finish
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h
index 2e3392c963d03..c08fd359b38b0 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h
@@ -36,8 +36,10 @@ void dcn401_program_gamut_remap(struct program_gamut_remap_params *params);
 
 void dcn401_init_hw(struct dc *dc);
 
-bool dcn401_set_mcm_luts(struct pipe_ctx *pipe_ctx,
-				const struct dc_plane_state *plane_state);
+bool dcn401_set_mcm_luts(struct dc *dc, struct dpp *dpp, struct hubp *hubp,
+				struct hubp *primary_hubp, struct mpc *mpc, int mpcc_id,
+				struct dc_stream_state *stream,
+				struct dc_plane_state *plane_state);
 bool dcn401_set_output_transfer_func(struct set_output_transfer_func_params *params);
 void dcn401_trigger_3dlut_dma_load(struct pipe_ctx *pipe_ctx);
 void dcn401_calculate_dccg_tmds_div_value(struct pipe_ctx *pipe_ctx,
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.c
index 13580d9f9303e..23d4786ea2464 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.c
@@ -413,19 +413,18 @@ static bool dc_is_rmcm_3dlut_supported(struct hubp *hubp, struct mpc *mpc)
 }
 
 bool dcn42_program_rmcm_luts(
+	struct dc *dc,
+	struct dpp *dpp,
 	struct hubp *hubp,
-	struct pipe_ctx *pipe_ctx,
 	const struct dc_plane_cm *cm,
 	struct mpc *mpc,
-	int mpcc_id)
+	int mpcc_id,
+	struct dc_stream_state *stream)
 {
-	struct dpp *dpp_base = pipe_ctx->plane_res.dpp;
 	union mcm_lut_params m_lut_params = {0};
 
-	struct dc *dc = hubp->ctx->dc;
 	struct mpc_fl_3dlut_config mpc_fl_config;
 
-	struct dc_stream_state *stream = pipe_ctx->stream;
 	bool bypass_rmcm_shaper = false;
 	// true->false when it can be allocated at DI time
 	struct dc_rmcm_3dlut *rmcm_3dlut = dc_stream_get_3dlut_for_stream(dc, stream, false);
@@ -457,8 +456,8 @@ bool dcn42_program_rmcm_luts(
 			cm_helper_translate_curve_to_hw_format(
 					dc->ctx,
 					&cm->shaper_func,
-					&dpp_base->shaper_params, true);
-			m_lut_params.pwl = &dpp_base->shaper_params;
+					&dpp->shaper_params, true);
+			m_lut_params.pwl = &dpp->shaper_params;
 		}
 		if (m_lut_params.pwl) {
 			if (mpc->funcs->rmcm.populate_lut)
@@ -511,31 +510,29 @@ bool dcn42_program_rmcm_luts(
 	return true;
 }
 
-bool dcn42_set_mcm_luts(struct pipe_ctx *pipe_ctx,
-				const struct dc_plane_state *plane_state)
+bool dcn42_set_mcm_luts(struct dc *dc, struct dpp *dpp, struct hubp *hubp,
+				struct hubp *primary_hubp, struct mpc *mpc, int mpcc_id,
+				struct dc_stream_state *stream,
+				struct dc_plane_state *plane_state)
 {
 	bool result;
+	const struct dc_plane_cm *cm = &plane_state->cm;
 
 	/* MCM */
-	result = dcn401_set_mcm_luts(pipe_ctx, plane_state);
+	result = dcn401_set_mcm_luts(dc, dpp, hubp, primary_hubp, mpc, mpcc_id,
+			stream, plane_state);
 
 	/* RMCM */
-	{
-		struct dc *dc = pipe_ctx->plane_res.hubp->ctx->dc;
-		struct hubp *hubp = pipe_ctx->plane_res.hubp;
-		const struct dc_plane_cm *cm = &plane_state->cm;
-		struct mpc *mpc = dc->res_pool->mpc;
-		int mpcc_id = hubp->inst;
-
-		if (cm->flags.bits.rmcm_enable && cm->flags.bits.lut3d_dma_enable) {
-			/* TODO - move RMCM to its own block */
-			dcn42_program_rmcm_luts(
-				hubp,
-				pipe_ctx,
-				cm,
-				mpc,
-				mpcc_id);
-		}
+	if (cm->flags.bits.rmcm_enable && cm->flags.bits.lut3d_dma_enable) {
+		/* TODO - move RMCM to its own block */
+		dcn42_program_rmcm_luts(
+			dc,
+			dpp,
+			hubp,
+			cm,
+			mpc,
+			mpcc_id,
+			stream);
 	}
 
 	return result;
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.h b/drivers/gpu/drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.h
index c4cfeed45b190..61d1217a30df5 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.h
@@ -15,15 +15,19 @@ void dcn42_program_cm_hist(
 	struct pipe_ctx *pipe_ctx,
 	const struct dc_plane_state *plane_state);
 
-bool dcn42_set_mcm_luts(struct pipe_ctx *pipe_ctx,
-	const struct dc_plane_state *plane_state);
+bool dcn42_set_mcm_luts(struct dc *dc, struct dpp *dpp, struct hubp *hubp,
+	struct hubp *primary_hubp, struct mpc *mpc, int mpcc_id,
+	struct dc_stream_state *stream,
+	struct dc_plane_state *plane_state);
 
 bool dcn42_program_rmcm_luts(
+	struct dc *dc,
+	struct dpp *dpp,
 	struct hubp *hubp,
-	struct pipe_ctx *pipe_ctx,
 	const struct dc_plane_cm *cm,
 	struct mpc *mpc,
-	int mpcc_id);
+	int mpcc_id,
+	struct dc_stream_state *stream);
 void dcn42_hardware_release(struct dc *dc);
 
 void dcn42_prepare_bandwidth(
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h b/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
index 5ea6d8a1937e2..cdaa3cd51a0fc 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
@@ -90,7 +90,13 @@ struct update_plane_addr_params {
 
 struct set_input_transfer_func_params {
 	struct dc *dc;
-	struct pipe_ctx *pipe_ctx;
+	struct dpp *dpp;
+	struct hubp *hubp;
+	struct hubp *primary_hubp;
+	struct mpc *mpc;
+	int mpcc_id;
+	struct dc_stream_state *stream;
+	struct input_pixel_processor *ipp;
 	struct dc_plane_state *plane_state;
 };
 
@@ -2120,6 +2126,8 @@ void hwss_disable_audio_stream(struct dc *dc, union block_sequence_params *param
 
 void hwss_hubp_wait_for_dcc_meta_prop(struct dc *dc, struct pipe_ctx *top_pipe_to_program);
 
+void hwss_set_input_transfer_func(struct dc *dc, struct pipe_ctx *pipe_ctx);
+
 void hwss_add_optc_pipe_control_lock(struct block_sequence_state *seq_state,
 		struct dc *dc, struct pipe_ctx *pipe_ctx, bool lock);
 
@@ -2133,7 +2141,7 @@ void hwss_add_hubp_update_plane_addr(struct block_sequence_state *seq_state,
 		struct dc *dc, struct pipe_ctx *pipe_ctx);
 
 void hwss_add_dpp_set_input_transfer_func(struct block_sequence_state *seq_state,
-		struct dc *dc, struct pipe_ctx *pipe_ctx, struct dc_plane_state *plane_state);
+		struct dc *dc, struct pipe_ctx *pipe_ctx);
 
 void hwss_add_dpp_program_gamut_remap(struct block_sequence_state *seq_state,
 		struct pipe_ctx *pipe_ctx);
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer_private.h b/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer_private.h
index 0f7881a214620..956513125be0b 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer_private.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer_private.h
@@ -90,9 +90,7 @@ struct hwseq_private_funcs {
 	void (*update_mpcc)(struct dc *dc, struct pipe_ctx *pipe_ctx);
 	void (*update_mpcc_sequence)(struct dc *dc, struct pipe_ctx *pipe_ctx,
 			struct block_sequence_state *seq_state);
-	bool (*set_input_transfer_func)(struct dc *dc,
-				struct pipe_ctx *pipe_ctx,
-				const struct dc_plane_state *plane_state);
+	bool (*set_input_transfer_func)(struct set_input_transfer_func_params *params);
 	bool (*set_output_transfer_func)(struct set_output_transfer_func_params *params);
 	void (*power_down)(struct dc *dc);
 	void (*enable_display_pipe_clock_gating)(struct dc_context *ctx,
@@ -187,12 +185,14 @@ struct hwseq_private_funcs {
 		struct block_sequence_state *seq_state);
 	bool (*wait_for_blank_complete)(struct output_pixel_processor *opp);
 	void (*dccg_init)(struct dce_hwseq *hws);
-	bool (*set_blend_lut)(struct pipe_ctx *pipe_ctx,
-			const struct dc_plane_state *plane_state);
-	bool (*set_shaper_3dlut)(struct pipe_ctx *pipe_ctx,
-			const struct dc_plane_state *plane_state);
-	bool (*set_mcm_luts)(struct pipe_ctx *pipe_ctx,
-			const struct dc_plane_state *plane_state);
+	bool (*set_blend_lut)(struct dpp *dpp,
+			struct dc_plane_state *plane_state);
+	bool (*set_shaper_3dlut)(struct dpp *dpp,
+			struct dc_plane_state *plane_state);
+	bool (*set_mcm_luts)(struct dc *dc, struct dpp *dpp, struct hubp *hubp,
+			struct hubp *primary_hubp, struct mpc *mpc, int mpcc_id,
+			struct dc_stream_state *stream,
+			struct dc_plane_state *plane_state);
 	void (*PLAT_58856_wa)(struct dc_state *context,
 			struct pipe_ctx *pipe_ctx);
 	void (*setup_hpo_hw_control)(const struct dce_hwseq *hws, bool enable);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0177/2651] drm/amd/display: use translate_curve_to_degamma_hw_format on DCN30
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (169 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0176/2651] drm/amd/display: Refactor DPP_SET_INPUT_TRANSFER_FUNC " Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0178/2651] x86/crash: Reserve elfcorehdr for CONFIG_NR_CPUS, not CONFIG_NR_CPUS_DEFAULT Greg Kroah-Hartman
                   ` (20 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Alex Hung, Melissa Wen, Alex Deucher,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Melissa Wen <mwen@igalia.com>

[ Upstream commit e377716b9863fb79c59e0f1f7612a1ebf160f8cc ]

DCN3.01 presents the same banding issue as reported in the link below,
but the previous fix doesn't cover this hw. Change the helper used to
translate degamma/blend curves to HW points for DCN30, DCN 301, DCN31
and DCN314 similar to what was done for DCN32+ by commit 3719314af322
("drm/amd/display: use a separate helper to translate degamma curves").

Link: https://lore.kernel.org/amd-gfx/20260623160112.1636801-1-mwen@igalia.com/
Fixes: 222e63bddae5 ("drm/amd/display: use a separate helper to translate degamma curves")
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c    | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
index bab29ca58c351..a6144da65254c 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
@@ -242,10 +242,9 @@ bool dcn30_set_blend_lut(
 	if (plane_state->cm.blend_func.type == TF_TYPE_HWPWL)
 		blend_lut = &plane_state->cm.blend_func.pwl;
 	else if (plane_state->cm.blend_func.type == TF_TYPE_DISTRIBUTED_POINTS) {
-		result = cm3_helper_translate_curve_to_hw_format(plane_state->ctx,
+		result = cm3_helper_translate_curve_to_degamma_hw_format(
 				&plane_state->cm.blend_func,
-				&dpp->regamma_params,
-				false);
+				&dpp->regamma_params);
 		if (!result)
 			return result;
 
@@ -335,9 +334,8 @@ bool dcn30_set_input_transfer_func(struct set_input_transfer_func_params *params
 	if (plane_state->in_transfer_func.type == TF_TYPE_HWPWL)
 		pwl_params = &plane_state->in_transfer_func.pwl;
 	else if (plane_state->in_transfer_func.type == TF_TYPE_DISTRIBUTED_POINTS &&
-		cm3_helper_translate_curve_to_hw_format(plane_state->ctx,
-							&plane_state->in_transfer_func,
-							&dpp->degamma_params, false))
+		cm3_helper_translate_curve_to_degamma_hw_format(&plane_state->in_transfer_func,
+								&dpp->degamma_params))
 		pwl_params = &dpp->degamma_params;
 
 	result = dpp->funcs->dpp_program_gamcor_lut(dpp, pwl_params);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0178/2651] x86/crash: Reserve elfcorehdr for CONFIG_NR_CPUS, not CONFIG_NR_CPUS_DEFAULT
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (170 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0177/2651] drm/amd/display: use translate_curve_to_degamma_hw_format on DCN30 Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0179/2651] bpftool: Set BPF_F_XDP_DEV_BOUND_ONLY flag non-destructively Greg Kroah-Hartman
                   ` (19 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Ionut Nechita, Dave Hansen,
	Jinjie Ruan, Bradley Morgan, Sourabh Jain, Baoquan He,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Ionut Nechita <ionut.nechita@windriver.com>

[ Upstream commit 6664ad1026b558563702f9a1ce637df33e7c001e ]

NR_CPUS_DEFAULT is purely a Kconfig thing.  Its entire purpose in life is
to start NR_CPUS at a sane value.  There is precisely one (buggy)
reference to it outside of Kconfig in the whole kernel: the x86 crash
code.

That code undersizes the elfcorehdr reservation whenever NR_CPUS exceeds
NR_CPUS_DEFAULT, because the header carries one phdr per possible CPU and
num_possible_cpus() is bounded by NR_CPUS.  kexec_file_load(2) then fails
with -EINVAL from sanity_check_segment_list(), and kexec_load(2) silently
truncates the elfcorehdr, which surfaces later as a bad or unusable dump.

Size the elfcorehdr reservation with NR_CPUS instead.

Fixes: ea53ad9cf73b ("x86/crash: add x86 crash hotplug support")
Signed-off-by: Ionut Nechita <ionut.nechita@windriver.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Bradley Morgan <brads@mainlining.org>
Reviewed-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Acked-by: Baoquan He <baoquan.he@linux.dev>
Link: https://patch.msgid.link/20260901071041.16311-2-ionut.nechita@windriver.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/x86/kernel/crash.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
index e681ec9cf1dc8..e6f23933a6df2 100644
--- a/arch/x86/kernel/crash.c
+++ b/arch/x86/kernel/crash.c
@@ -369,9 +369,9 @@ int crash_load_segments(struct kimage *image)
 	 * maximum CPUs and maximum memory ranges.
 	 */
 	if (IS_ENABLED(CONFIG_MEMORY_HOTPLUG))
-		pnum = 2 + CONFIG_NR_CPUS_DEFAULT + CONFIG_CRASH_MAX_MEMORY_RANGES;
+		pnum = 2 + CONFIG_NR_CPUS + CONFIG_CRASH_MAX_MEMORY_RANGES;
 	else
-		pnum += 2 + CONFIG_NR_CPUS_DEFAULT;
+		pnum += 2 + CONFIG_NR_CPUS;
 
 	if (pnum < (unsigned long)PN_XNUM) {
 		kbuf.memsz = pnum * sizeof(Elf64_Phdr);
@@ -430,7 +430,7 @@ unsigned int arch_crash_get_elfcorehdr_size(void)
 	unsigned int sz;
 
 	/* kernel_map, VMCOREINFO and maximum CPUs */
-	sz = 2 + CONFIG_NR_CPUS_DEFAULT;
+	sz = 2 + CONFIG_NR_CPUS;
 	if (IS_ENABLED(CONFIG_MEMORY_HOTPLUG))
 		sz += CONFIG_CRASH_MAX_MEMORY_RANGES;
 	sz *= sizeof(Elf64_Phdr);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0179/2651] bpftool: Set BPF_F_XDP_DEV_BOUND_ONLY flag non-destructively
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (171 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0178/2651] x86/crash: Reserve elfcorehdr for CONFIG_NR_CPUS, not CONFIG_NR_CPUS_DEFAULT Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0180/2651] libbpf: Move section-defined program flags to prog_flags Greg Kroah-Hartman
                   ` (18 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Toke Høiland-Jørgensen,
	Andrii Nakryiko, Larysa Zaremba, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Toke Høiland-Jørgensen <toke@redhat.com>

[ Upstream commit 06d6f845c4bda857a6ae864690f35321b878e827 ]

When setting the XDP hints ifname, bpftool would set the
BPF_F_XDP_DEV_BOUND_ONLY without looking at the existing program flags,
overriding any other flag values. This was always a destructive action,
but after we change libbpf to carry the frags section flag in
prog_flags, this can impact bpftool loading of XDP frags programs.

Change the flag setting to be non-destructive by OR'ing it with the
existing flags.

Fixes: f46392ee3dec ("bpftool: Specify XDP Hints ifname when loading program")
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com>
Link: https://lore.kernel.org/bpf/20260901-libbpf-frags-flags-v3-1-4eb6f14968b0@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/bpf/bpftool/prog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c
index a9f730d407a92..8c2f9255b36d7 100644
--- a/tools/bpf/bpftool/prog.c
+++ b/tools/bpf/bpftool/prog.c
@@ -1769,7 +1769,7 @@ static int load_with_options(int argc, char **argv, bool first_prog_only)
 		}
 
 		if (prog_type == BPF_PROG_TYPE_XDP && xdpmeta_ifindex) {
-			bpf_program__set_flags(pos, BPF_F_XDP_DEV_BOUND_ONLY);
+			bpf_program__set_flags(pos, bpf_program__flags(pos) | BPF_F_XDP_DEV_BOUND_ONLY);
 			bpf_program__set_ifindex(pos, xdpmeta_ifindex);
 		} else {
 			bpf_program__set_ifindex(pos, offload_ifindex);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0180/2651] libbpf: Move section-defined program flags to prog_flags
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (172 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0179/2651] bpftool: Set BPF_F_XDP_DEV_BOUND_ONLY flag non-destructively Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0181/2651] net: dsa: yt921x: Check lock status with lockdep_assert_held_once() Greg Kroah-Hartman
                   ` (17 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Toke Høiland-Jørgensen,
	Andrii Nakryiko, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Toke Høiland-Jørgensen <toke@redhat.com>

[ Upstream commit d6b633b585f348053dd27044b1b39972c748c1fa ]

The libbpf section definition modifiers for XDP frags support and
sleepable programs stores the flags bits only in the private section
definition cookie from object open to load time. This has the
unfortunate consequence that API consumers cannot see (or manipulate)
the flag between object open and program load.

In particular, libxdp has special handling of frags-enabled programs to
make them compatible with the dispatcher. This doesn't work on XDP
programs that enable frags through the 'xdp.frags' section definition
because the flag is not visible through bpf_program__flags()[0].

Fix this by changing how libbpf loads the program flags from section
definitions: instead of using the private section definition cookie, add
a setup function to the default section definitions that stores the
flags for sleepable and XDP frags programs in the prog_flags field of
struct bpf_program.

Exposing the flags this way means that any use of
bpf_program__set_flags() will override the flags unless the caller takes
care of updating flags in a non-destructive way. This is unavoidable
with the set-only API, and any user setting flags unconditionally is
already broken in the sense that they will also override any other
current and future flags.

In addition, prog_flags survives program type changes through
bpf_program__set_type(). It is the responsibility of the caller to
ensure the flags are cleared if they are incompatible with the new
program type.

[0] https://github.com/xdp-project/xdp-tools/issues/587

Fixes: 082c4bfba4f7 ("libbpf: Add SEC name for xdp frags programs")
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260901-libbpf-frags-flags-v3-3-4eb6f14968b0@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/lib/bpf/libbpf.c | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index bfa64ae6c94df..3bab7008f93e4 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -7886,6 +7886,19 @@ static int tracing_multi_mod_fd(struct bpf_program *prog, int *btf_obj_fd)
 	return 0;
 }
 
+static int libbpf_setup_prog_flags(struct bpf_program *prog, long cookie)
+{
+	enum sec_def_flags def = cookie;
+
+	if (def & SEC_SLEEPABLE)
+		prog->prog_flags |= BPF_F_SLEEPABLE;
+
+	if (def & SEC_XDP_FRAGS)
+		prog->prog_flags |= BPF_F_XDP_HAS_FRAGS;
+
+	return 0;
+}
+
 /* this is called as prog->sec_def->prog_prepare_load_fn for libbpf-supported sec_defs */
 static int libbpf_prepare_prog_load(struct bpf_program *prog,
 				    struct bpf_prog_load_opts *opts, long cookie)
@@ -7896,12 +7909,6 @@ static int libbpf_prepare_prog_load(struct bpf_program *prog,
 	if ((def & SEC_EXP_ATTACH_OPT) && !kernel_supports(prog->obj, FEAT_EXP_ATTACH_TYPE))
 		opts->expected_attach_type = 0;
 
-	if (def & SEC_SLEEPABLE)
-		opts->prog_flags |= BPF_F_SLEEPABLE;
-
-	if (prog->type == BPF_PROG_TYPE_XDP && (def & SEC_XDP_FRAGS))
-		opts->prog_flags |= BPF_F_XDP_HAS_FRAGS;
-
 	/* special check for usdt to use uprobe_multi link */
 	if ((def & SEC_USDT) && kernel_supports(prog->obj, FEAT_UPROBE_MULTI_LINK)) {
 		/* for BPF_TRACE_UPROBE_MULTI, user might want to query expected_attach_type
@@ -10106,6 +10113,7 @@ int bpf_program__clone(struct bpf_program *prog, const struct bpf_prog_load_opts
 	.prog_type = BPF_PROG_TYPE_##ptype,				    \
 	.expected_attach_type = atype,					    \
 	.cookie = (long)(flags),					    \
+	.prog_setup_fn = libbpf_setup_prog_flags,			    \
 	.prog_prepare_load_fn = libbpf_prepare_prog_load,		    \
 	__VA_ARGS__							    \
 }
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0181/2651] net: dsa: yt921x: Check lock status with lockdep_assert_held_once()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (173 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0180/2651] libbpf: Move section-defined program flags to prog_flags Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0182/2651] PCI: endpoint: pci-epf-vntb: Pass PF/VF number when BAR programming Greg Kroah-Hartman
                   ` (16 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, David Yang, Andrew Lunn,
	Jakub Kicinski, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: David Yang <mmyangfl@gmail.com>

[ Upstream commit b1950d0426aabdda485c86b504106b1d7b11f325 ]

mutex_is_locked() was used to check the lock status. While it should not
be triggered unless a bug is introduced, it does not warn on lock being
held by another thread. Fix it with lockdep helpers.

Fixes: 186623f4aa72 ("net: dsa: yt921x: Add support for Motorcomm YT921x")
Signed-off-by: David Yang <mmyangfl@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260831044818.4103477-2-mmyangfl@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/dsa/yt921x.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/dsa/yt921x.c b/drivers/net/dsa/yt921x.c
index 159b16606f6ca..44fcdd47ffb51 100644
--- a/drivers/net/dsa/yt921x.c
+++ b/drivers/net/dsa/yt921x.c
@@ -198,14 +198,14 @@ static u32 ethaddr_lo2_to_u32(const unsigned char *addr)
 
 static int yt921x_reg_read(struct yt921x_priv *priv, u32 reg, u32 *valp)
 {
-	WARN_ON(!mutex_is_locked(&priv->reg_lock));
+	lockdep_assert_held_once(&priv->reg_lock);
 
 	return priv->reg_ops->read(priv->reg_ctx, reg, valp);
 }
 
 static int yt921x_reg_write(struct yt921x_priv *priv, u32 reg, u32 val)
 {
-	WARN_ON(!mutex_is_locked(&priv->reg_lock));
+	lockdep_assert_held_once(&priv->reg_lock);
 
 	return priv->reg_ops->write(priv->reg_ctx, reg, val);
 }
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0182/2651] PCI: endpoint: pci-epf-vntb: Pass PF/VF number when BAR programming
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (174 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0181/2651] net: dsa: yt921x: Check lock status with lockdep_assert_held_once() Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0183/2651] dmaengine: fsl_raid: dont invoke client callback under desc_lock Greg Kroah-Hartman
                   ` (15 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Koichiro Den, Manivannan Sadhasivam,
	Frank Li, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Koichiro Den <den@valinux.co.jp>

[ Upstream commit afe2aa9dc93d904730bab63f5ccb514a318e6464 ]

vntb_epf_mw_set_trans() programs the memory-window BAR through
pci_epc_set_bar() with hardcoded function numbers (0, 0), so the BAR
lands on the wrong function whenever the vNTB EPF is bound to anything
but PF0. The other BAR programming sites in the vNTB driver already pass
the EPF's own numbers.

Pass the EPF's own func_no/vfunc_no here as well.

Fixes: e35f56bb0330 ("PCI: endpoint: Support NTB transfer between RC and EP")
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260728172306.2751813-2-den@valinux.co.jp
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/pci/endpoint/functions/pci-epf-vntb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/endpoint/functions/pci-epf-vntb.c b/drivers/pci/endpoint/functions/pci-epf-vntb.c
index 8ae50779452a9..b6139e8e09a23 100644
--- a/drivers/pci/endpoint/functions/pci-epf-vntb.c
+++ b/drivers/pci/endpoint/functions/pci-epf-vntb.c
@@ -1438,7 +1438,8 @@ static int vntb_epf_mw_set_trans(struct ntb_dev *ndev, int pidx, int idx,
 	epf_bar->barno = barno;
 	epf_bar->size = size;
 
-	ret = pci_epc_set_bar(ntb->epf->epc, 0, 0, epf_bar);
+	ret = pci_epc_set_bar(ntb->epf->epc, ntb->epf->func_no,
+			      ntb->epf->vfunc_no, epf_bar);
 	if (ret) {
 		dev_err(dev, "failure set mw trans\n");
 		return ret;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0183/2651] dmaengine: fsl_raid: dont invoke client callback under desc_lock
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (175 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0182/2651] PCI: endpoint: pci-epf-vntb: Pass PF/VF number when BAR programming Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0184/2651] dmaengine: fsl_raid: avoid free_q underflow in free_chan_resources Greg Kroah-Hartman
                   ` (14 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Rosen Penev, Frank Li, Vinod Koul,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Rosen Penev <rosenp@gmail.com>

[ Upstream commit 62c267ce97444f8a381f2bb3cd5d534eb362c540 ]

fsl_re_dequeue() holds re_chan->desc_lock while calling
fsl_re_desc_done(), which synchronously invokes the DMA client completion
callback via dmaengine_desc_get_callback_invoke(). If that callback
submits new work (e.g. fsl_re_tx_submit()), it tries to reacquire the
same desc_lock and deadlocks on the spinlock.

Collect completed descriptors into a local list under the lock, then
release the lock and invoke the callbacks before moving the descriptors
to the ack queue.

Fixes: ad80da658bbc ("dmaengine: Driver support for FSL RaidEngine device.")
Assisted-by: opencode:hy3-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260718053010.3074329-1-rosenp@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/dma/fsl_raid.c | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/fsl_raid.c b/drivers/dma/fsl_raid.c
index 2d86f61105e52..bfaef6245695e 100644
--- a/drivers/dma/fsl_raid.c
+++ b/drivers/dma/fsl_raid.c
@@ -162,6 +162,7 @@ static void fsl_re_dequeue(struct tasklet_struct *t)
 	struct fsl_re_hw_desc *hwdesc;
 	unsigned long flags;
 	unsigned int count, oub_count;
+	LIST_HEAD(completed);
 	int found;
 
 	fsl_re_cleanup_descs(re_chan);
@@ -182,8 +183,7 @@ static void fsl_re_dequeue(struct tasklet_struct *t)
 		}
 
 		if (found) {
-			fsl_re_desc_done(desc);
-			list_move_tail(&desc->node, &re_chan->ack_q);
+			list_move_tail(&desc->node, &completed);
 		} else {
 			dev_err(re_chan->dev,
 				"found hwdesc not in sw queue, discard it\n");
@@ -196,6 +196,17 @@ static void fsl_re_dequeue(struct tasklet_struct *t)
 			 FSL_RE_RMVD_JOB(1));
 	}
 	spin_unlock_irqrestore(&re_chan->desc_lock, flags);
+
+	/* Invoke the client callbacks outside the channel lock. The callback
+	 * may submit new work which re-acquires desc_lock, so holding it here
+	 * would deadlock.
+	 */
+	list_for_each_entry_safe(desc, _desc, &completed, node) {
+		fsl_re_desc_done(desc);
+		spin_lock_irqsave(&re_chan->desc_lock, flags);
+		list_move_tail(&desc->node, &re_chan->ack_q);
+		spin_unlock_irqrestore(&re_chan->desc_lock, flags);
+	}
 }
 
 /* Per Job Ring interrupt handler */
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0184/2651] dmaengine: fsl_raid: avoid free_q underflow in free_chan_resources
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (176 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0183/2651] dmaengine: fsl_raid: dont invoke client callback under desc_lock Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0185/2651] dmaengine: at_hdmac: fix sparse __iomem cast warning in memset helpers Greg Kroah-Hartman
                   ` (13 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Rosen Penev, Frank Li, Vinod Koul,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Rosen Penev <rosenp@gmail.com>

[ Upstream commit d805aa5b6088b193debabaa80cc0991bfa2bd057 ]

fsl_re_free_chan_resources() loops alloc_count times calling
list_first_entry() on free_q without checking whether the list still
has entries. If descriptors remain un-acked or pending in submit_q /
active_q / ack_q when the channel resources are freed, free_q becomes
smaller than alloc_count and list_first_entry() returns the list head,
causing list_del() to corrupt the list head and dereference a bogus
pointer.

Walk free_q with list_for_each_entry_safe() until it is empty,
decrementing alloc_count per freed descriptor, instead of relying on
the alloc_count count.

Fixes: ad80da658bbc ("dmaengine: Driver support for FSL RaidEngine device.")
Assisted-by: opencode:hy3-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260718235227.385108-1-rosenp@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/dma/fsl_raid.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/dma/fsl_raid.c b/drivers/dma/fsl_raid.c
index bfaef6245695e..e698c40b2ebca 100644
--- a/drivers/dma/fsl_raid.c
+++ b/drivers/dma/fsl_raid.c
@@ -614,18 +614,15 @@ static int fsl_re_alloc_chan_resources(struct dma_chan *chan)
 static void fsl_re_free_chan_resources(struct dma_chan *chan)
 {
 	struct fsl_re_chan *re_chan;
-	struct fsl_re_desc *desc;
+	struct fsl_re_desc *desc, *_desc;
 
 	re_chan = container_of(chan, struct fsl_re_chan, chan);
-	while (re_chan->alloc_count--) {
-		desc = list_first_entry(&re_chan->free_q,
-					struct fsl_re_desc,
-					node);
-
+	list_for_each_entry_safe(desc, _desc, &re_chan->free_q, node) {
 		list_del(&desc->node);
 		dma_pool_free(re_chan->re_dev->cf_desc_pool, desc->cf_addr,
 			      desc->cf_paddr);
 		kfree(desc);
+		re_chan->alloc_count--;
 	}
 
 	if (!list_empty(&re_chan->free_q))
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0185/2651] dmaengine: at_hdmac: fix sparse __iomem cast warning in memset helpers
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (177 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0184/2651] dmaengine: fsl_raid: avoid free_q underflow in free_chan_resources Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0186/2651] arm64: dts: qcom: qcs6490-rb3gen2: clean up PCI function nodes Greg Kroah-Hartman
                   ` (12 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, kernel test robot, Rosen Penev,
	Frank Li, Vinod Koul, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Rosen Penev <rosenp@gmail.com>

[ Upstream commit fdae0d0f096c92dd05d3722759fd614ea341e0dc ]

Both atc_prep_dma_memset() and atc_prep_dma_memset_sg() declare vaddr
as 'void __iomem *' but assign the return of dma_pool_alloc(), which
returns 'void *' (not iomem memory). This causes sparse to warn about
a cast removing the __iomem address space at the dereference site.

The struct field memset_vaddr is also typed as 'int *', which is
neither the type returned by dma_pool_alloc() nor the type used for
the actual writes.

Fix by declaring vaddr as 'u32 *' in both functions and changing
memset_vaddr in struct at_desc from 'int *' to 'u32 *'. This matches
the actual usage and eliminates the need for the (u32 *) cast.

Fixes: 5d8c5bea0da9 ("dmaengine: at_hdmac: add COMPILE_TEST support")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202607231110.8MqNRj0Q-lkp@intel.com/
Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://lore.kernel.org/oe-kbuild-all/202607231110.8MqNRj0Q-lkp@intel.com/
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260724225958.43925-1-rosenp@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/dma/at_hdmac.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
index e5b30a57c477a..7c071e6496371 100644
--- a/drivers/dma/at_hdmac.c
+++ b/drivers/dma/at_hdmac.c
@@ -244,7 +244,7 @@ struct at_desc {
 	/* Memset temporary buffer */
 	bool				memset_buffer;
 	dma_addr_t			memset_paddr;
-	int				*memset_vaddr;
+	u32				*memset_vaddr;
 	struct atdma_sg			sg[] __counted_by(sglen);
 };
 
@@ -1097,7 +1097,7 @@ atc_prep_dma_memset(struct dma_chan *chan, dma_addr_t dest, int value,
 	struct at_dma_chan	*atchan = to_at_dma_chan(chan);
 	struct at_dma		*atdma = to_at_dma(chan->device);
 	struct at_desc		*desc;
-	void __iomem		*vaddr;
+	u32			*vaddr;
 	dma_addr_t		paddr;
 	char			fill_pattern;
 	int			ret;
@@ -1126,10 +1126,10 @@ atc_prep_dma_memset(struct dma_chan *chan, dma_addr_t dest, int value,
 	/* Only the first byte of value is to be used according to dmaengine */
 	fill_pattern = (char)value;
 
-	*(u32*)vaddr = (fill_pattern << 24) |
-		       (fill_pattern << 16) |
-		       (fill_pattern << 8) |
-		       fill_pattern;
+	*vaddr = (fill_pattern << 24) |
+		 (fill_pattern << 16) |
+		 (fill_pattern << 8) |
+		  fill_pattern;
 
 	desc = kzalloc_flex(*desc, sg, 1, GFP_ATOMIC);
 	if (!desc)
@@ -1168,7 +1168,7 @@ atc_prep_dma_memset_sg(struct dma_chan *chan,
 	struct at_dma		*atdma = to_at_dma(chan->device);
 	struct at_desc		*desc;
 	struct scatterlist	*sg;
-	void __iomem		*vaddr;
+	u32			*vaddr;
 	dma_addr_t		paddr;
 	size_t			total_len = 0;
 	int			i;
@@ -1189,7 +1189,7 @@ atc_prep_dma_memset_sg(struct dma_chan *chan,
 			__func__);
 		return NULL;
 	}
-	*(u32*)vaddr = value;
+	*vaddr = value;
 
 	desc = kzalloc_flex(*desc, sg, sg_len, GFP_ATOMIC);
 	if (!desc)
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0186/2651] arm64: dts: qcom: qcs6490-rb3gen2: clean up PCI function nodes
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (178 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0185/2651] dmaengine: at_hdmac: fix sparse __iomem cast warning in memset helpers Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0187/2651] arm64: dts: qcom: qcs6490-rb3gen2-industrial-mezzanine: " Greg Kroah-Hartman
                   ` (11 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Manivannan Sadhasivam, Konrad Dybcio,
	Abel Vesa, Alex Elder, Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Alex Elder <elder@riscstar.com>

[ Upstream commit df4107fc729e3bffce27fe0ed06fc6a64dd675cd ]

The TC9564 SoC contains a PCIe switch with three downstream ports.
The third downstream port connects to an embedded PCI endpoint,
and that endpoint implements two PCI functions.

The devicetree node describing those functions incorrectly includes
this property:

    device_type = "pci";

That property should only be used for a PCI device "that implements
a PCI bus", but not a PCIe function.  So remove the device_type
property from the nodes representing the two embedded PCI functions.

Additionally, only PCI bridge nodes should be named "pcie@" (or "pci@").
PCI endpoint nodes are typically named based on the functionality they
implement (e.g., "ethernet@").  In this case, the role of these PCI
functions is not (yet) specified, and furthermore they will be used
with PCI endpoint buses.  Rename these to use "dev@", following the
convention used in of_pci_make_dev_node() for dynamically-created
devicetree nodes.

Finally, those properties contain #address-cells, #size-cells,
and ranges properties.  And although these properties *will* be
appropriate for these functions on an RB3gen2, they are not normally
used for PCI functions.  So remove these properties as well; we'll
include them in the commit that actually adds a pci-ep-bus sub-node
to these PCI function nodes.

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Fixes: aa7b4bbcb3a1d ("arm64: dts: qcom: qcs6490-rb3gen2: Add TC9563 PCIe switch node")
Signed-off-by: Alex Elder <elder@riscstar.com>
Link: https://lore.kernel.org/r/20260902214321.1721477-2-elder@riscstar.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
index a13315bf0fb07..3bb5fca8e2b13 100644
--- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
+++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
@@ -954,20 +954,12 @@ pcie@3,0 {
 			ranges;
 			bus-range = <0x5 0xff>;
 
-			pcie@0,0 {
+			dev@0,0 {
 				reg = <0x50000 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 
-			pcie@0,1 {
+			dev@0,1 {
 				reg = <0x50100 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 		};
 	};
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0187/2651] arm64: dts: qcom: qcs6490-rb3gen2-industrial-mezzanine: clean up PCI function nodes
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (179 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0186/2651] arm64: dts: qcom: qcs6490-rb3gen2: clean up PCI function nodes Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0188/2651] arm64: dts: qcom: lemans-evk-ifp-mezzanine: " Greg Kroah-Hartman
                   ` (10 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Manivannan Sadhasivam, Konrad Dybcio,
	Abel Vesa, Alex Elder, Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Alex Elder <elder@riscstar.com>

[ Upstream commit aaedd4ea312d6fd70dfc5cf430edf5106c5b3382 ]

The qcs6490-rb3gen2-industrial-mezzanine overlay defines two nodes
representing TC956x chips, each of which contains a PCIe switch and
an embedded endpoint that implements two PCIe functions.

The devicetree nodes erroneously include a "pci" device_type property
for the two PCIe functions.  That property should only be used for a
PCI device "that implements a PCI bus".  Remove this property for the
two function nodes.

In addition, only PCI bridge nodes should be named "pcie@" (or "pci@").
PCI endpoint nodes are typically named based on the functionality they
implement (e.g., "ethernet@").  In this case, the role of these PCI
functions is not (yet) specified, and furthermore they will be used
with PCI endpoint buses.  Rename these to use "dev@", following the
convention used in of_pci_make_dev_node() for dynamically-created
devicetree nodes.

Finally, these nodes define #address-cells, #size-cells, and ranges
properties, which are not normally defined for PCIe endpoints.  Remove
these properties as well; they can be added back once they are actually
needed/used.

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Fixes: 4559b435f741b ("arm64: dts: qcom: qcs6490-rb3gen2-industrial-mezzanine: Add TC9563 PCIe switch node for PCIe0")
Signed-off-by: Alex Elder <elder@riscstar.com>
Link: https://lore.kernel.org/r/20260902214321.1721477-3-elder@riscstar.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../qcs6490-rb3gen2-industrial-mezzanine.dtso | 24 ++++---------------
 1 file changed, 4 insertions(+), 20 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2-industrial-mezzanine.dtso b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2-industrial-mezzanine.dtso
index 46bb52c667a4d..5259f4f4f8574 100644
--- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2-industrial-mezzanine.dtso
+++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2-industrial-mezzanine.dtso
@@ -130,20 +130,12 @@ pcie@3,0 {
 			ranges;
 			bus-range = <0x5 0xff>;
 
-			pcie@0,0 {
+			dev@0,0 {
 				reg = <0x50000 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 
-			pcie@0,1 {
+			dev@0,1 {
 				reg = <0x50100 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 		};
 
@@ -225,20 +217,12 @@ pcie@3,0 {
 			ranges;
 			bus-range = <0x5 0xff>;
 
-			pcie@0,0 {
+			dev@0,0 {
 				reg = <0x50000 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 
-			pcie@0,1 {
+			dev@0,1 {
 				reg = <0x50100 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 		};
 	};
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0188/2651] arm64: dts: qcom: lemans-evk-ifp-mezzanine: clean up PCI function nodes
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (180 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0187/2651] arm64: dts: qcom: qcs6490-rb3gen2-industrial-mezzanine: " Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0189/2651] arm64: dts: qcom: monaco-evk-ifp-mezzanine: " Greg Kroah-Hartman
                   ` (9 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Manivannan Sadhasivam, Konrad Dybcio,
	Abel Vesa, Alex Elder, Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Alex Elder <elder@riscstar.com>

[ Upstream commit ca3027cfe8c7ef612910d2f04e58d75ec8a9b427 ]

The lemans-evk-ifp-mezzanine overlay defines a node representing a
TC956x chip which contains a PCIe switch and an embedded endpoint
that implements two PCIe functions.

The devicetree nodes erroneously include a "pci" device_type property
for the two PCIe functions.  That property should only be used for a
PCI device "that implements a PCI bus".  Remove this property for the
two function nodes.

In addition, only PCI bridge nodes should be named "pcie@" (or "pci@").
PCI endpoint nodes are typically named based on the functionality they
implement (e.g., "ethernet@").  In this case, the role of these PCI
functions is not (yet) specified, and furthermore they will be used
with PCI endpoint buses.  Rename these to use "dev@", following the
convention used in of_pci_make_dev_node() for dynamically-created
devicetree nodes.

Finally, these nodes define #address-cells, #size-cells, and ranges
properties, which are not normally defined for PCIe endpoints.  Remove
these properties as well; they can be added back once they are actually
needed/used.

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Fixes: b64abb26a2916 ("arm64: dts: qcom: lemans-evk: Add IFP Mezzanine")
Signed-off-by: Alex Elder <elder@riscstar.com>
Link: https://lore.kernel.org/r/20260902214321.1721477-4-elder@riscstar.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../boot/dts/qcom/lemans-evk-ifp-mezzanine.dtso      | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/lemans-evk-ifp-mezzanine.dtso b/arch/arm64/boot/dts/qcom/lemans-evk-ifp-mezzanine.dtso
index 6cfa0bc1440e9..e42314c648579 100644
--- a/arch/arm64/boot/dts/qcom/lemans-evk-ifp-mezzanine.dtso
+++ b/arch/arm64/boot/dts/qcom/lemans-evk-ifp-mezzanine.dtso
@@ -271,20 +271,12 @@ pcie@3,0 {
 			ranges;
 			bus-range = <0x5 0xff>;
 
-			pcie@0,0 {
+			dev@0,0 {
 				reg = <0x50000 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 
-			pcie@0,1 {
+			dev@0,1 {
 				reg = <0x50100 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 		};
 	};
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0189/2651] arm64: dts: qcom: monaco-evk-ifp-mezzanine: clean up PCI function nodes
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (181 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0188/2651] arm64: dts: qcom: lemans-evk-ifp-mezzanine: " Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0190/2651] arm64: dts: qcom: qcs6490-thundercomm-minipc-g1iot: " Greg Kroah-Hartman
                   ` (8 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Manivannan Sadhasivam, Konrad Dybcio,
	Abel Vesa, Alex Elder, Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Alex Elder <elder@riscstar.com>

[ Upstream commit 0f8cbe572057b0ef98c651fbd6da1877983c7165 ]

The monaco-evk-ifp-mezzanine overlay defines a node representing a
TC956x chip which contains a PCIe switch and an embedded endpoint
that implements two PCIe functions.

The devicetree nodes erroneously include a "pci" device_type property
for the two PCIe functions.  That property should only be used for a
PCI device "that implements a PCI bus".  Remove this property for the
two function nodes.

In addition, only PCI bridge nodes should be named "pcie@" (or "pci@").
PCI endpoint nodes are typically named based on the functionality they
implement (e.g., "ethernet@").  In this case, the role of these PCI
functions is not (yet) specified, and furthermore they will be used
with PCI endpoint buses.  Rename these to use "dev@", following the
convention used in of_pci_make_dev_node() for dynamically-created
devicetree nodes.

Finally, these nodes define #address-cells, #size-cells, and ranges
properties, which are not normally defined for PCIe endpoints.  Remove
these properties as well; they can be added back once they are actually
needed/used.

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Fixes: 5a67924d2fc57 ("arm64: dts: qcom: monaco-evk: Add IFP Mezzanine")
Signed-off-by: Alex Elder <elder@riscstar.com>
Link: https://lore.kernel.org/r/20260902214321.1721477-5-elder@riscstar.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../boot/dts/qcom/monaco-evk-ifp-mezzanine.dtso      | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/monaco-evk-ifp-mezzanine.dtso b/arch/arm64/boot/dts/qcom/monaco-evk-ifp-mezzanine.dtso
index ca5bf0fe5ec6e..4f727ff6ecb61 100644
--- a/arch/arm64/boot/dts/qcom/monaco-evk-ifp-mezzanine.dtso
+++ b/arch/arm64/boot/dts/qcom/monaco-evk-ifp-mezzanine.dtso
@@ -117,20 +117,12 @@ pcie@3,0 {
 			ranges;
 			bus-range = <0x5 0xff>;
 
-			pcie@0,0 {
+			dev@0,0 {
 				reg = <0x50000 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 
-			pcie@0,1 {
+			dev@0,1 {
 				reg = <0x50100 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 		};
 	};
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0190/2651] arm64: dts: qcom: qcs6490-thundercomm-minipc-g1iot: clean up PCI function nodes
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (182 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0189/2651] arm64: dts: qcom: monaco-evk-ifp-mezzanine: " Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0191/2651] arm64: dts: qcom: qcs8550-rb5gen2: " Greg Kroah-Hartman
                   ` (7 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Manivannan Sadhasivam, Konrad Dybcio,
	Abel Vesa, Alex Elder, Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Alex Elder <elder@riscstar.com>

[ Upstream commit 55580d234cec123e9b2964cab30fbfad10774b26 ]

The Thundercomm AI Mini PC G1 IoT devicetree source file defines a node
representing a TC956x chip which contains a PCIe switch and an embedded
endpoint that implements two PCIe functions.

The devicetree nodes erroneously include a "pci" device_type property
for the two PCIe functions.  That property should only be used for a
PCI device "that implements a PCI bus".  Remove this property for the
two function nodes.

In addition, only PCI bridge nodes should be named "pcie@" (or "pci@").
PCI endpoint nodes are typically named based on the functionality they
implement (e.g., "ethernet@").  In this case, the role of these PCI
functions is not (yet) specified, and furthermore they will be used
with PCI endpoint buses.  Rename these to use "dev@", following the
convention used in of_pci_make_dev_node() for dynamically-created
devicetree nodes.

Finally, these nodes define #address-cells, #size-cells, and ranges
properties, which are not normally defined for PCIe endpoints.  Remove
these properties as well; they can be added back once they are actually
needed/used.

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Fixes: 1cde54c54b83b ("arm64: dts: qcom: qcs6490: Add Thundercomm AI Mini PC G1 IoT")
Signed-off-by: Alex Elder <elder@riscstar.com>
Link: https://lore.kernel.org/r/20260902214321.1721477-6-elder@riscstar.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../dts/qcom/qcs6490-thundercomm-minipc-g1iot.dts    | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/qcs6490-thundercomm-minipc-g1iot.dts b/arch/arm64/boot/dts/qcom/qcs6490-thundercomm-minipc-g1iot.dts
index 31bafa2cf51db..51b59a75c1e03 100644
--- a/arch/arm64/boot/dts/qcom/qcs6490-thundercomm-minipc-g1iot.dts
+++ b/arch/arm64/boot/dts/qcom/qcs6490-thundercomm-minipc-g1iot.dts
@@ -790,20 +790,12 @@ pcie@3,0 {
 			ranges;
 			bus-range = <0x5 0xff>;
 
-			pcie@0,0 {
+			dev@0,0 {
 				reg = <0x50000 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 
-			pcie@0,1 {
+			dev@0,1 {
 				reg = <0x50100 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 		};
 	};
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0191/2651] arm64: dts: qcom: qcs8550-rb5gen2: clean up PCI function nodes
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (183 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0190/2651] arm64: dts: qcom: qcs6490-thundercomm-minipc-g1iot: " Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0192/2651] leds: max77705: Use fwnode_for_each_child_node_scoped() in max77705_add_led() Greg Kroah-Hartman
                   ` (6 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Abel Vesa, Manivannan Sadhasivam,
	Alex Elder, Bjorn Andersson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Alex Elder <elder@riscstar.com>

[ Upstream commit 3f7d46aaf5565471f65b2e21fbb649cedc55e6b8 ]

The Qualcomm RB5gen2 devicetree source file defines a node representing
a TC956x chip which contains a PCIe switch and an embedded endpoint that
implements two PCIe functions.

The devicetree nodes erroneously include a "pci" device_type property
for the two PCIe functions.  That property should only be used for a
PCI device "that implements a PCI bus".  Remove this property for the
two function nodes.

In addition, only PCI bridge nodes should be named "pci@" (or "pcie@").
PCI endpoint nodes are typically named based on the functionality they
implement (e.g., "ethernet@").  In this case, the role of these PCI
functions is not (yet) specified, and furthermore they will be used
with PCI endpoint buses.  Rename these to use "dev@", following the
convention used in of_pci_make_dev_node() for dynamically-created
devicetree nodes.

Finally, these nodes define #address-cells, #size-cells, and ranges
properties, which are not normally defined for PCIe endpoints.  Remove
these properties as well; they can be added back once they are actually
needed/used.

Fixes: 33cae252054a6 ("arm64: dts: qcom: qcs8550: add QCS8550 RB5Gen2 board support")
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Alex Elder <elder@riscstar.com>
Link: https://lore.kernel.org/r/20260902214321.1721477-7-elder@riscstar.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts b/arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts
index 9df8dcd6c62b6..e6340f7d30dd8 100644
--- a/arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts
+++ b/arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts
@@ -1126,20 +1126,12 @@ pcie@3,0 {
 			ranges;
 			bus-range = <0x5 0xff>;
 
-			pci@0,0 {
+			dev@0,0 {
 				reg = <0x50000 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 
-			pci@0,1 {
+			dev@0,1 {
 				reg = <0x50100 0x0 0x0 0x0 0x0>;
-				#address-cells = <3>;
-				#size-cells = <2>;
-				device_type = "pci";
-				ranges;
 			};
 		};
 	};
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0192/2651] leds: max77705: Use fwnode_for_each_child_node_scoped() in max77705_add_led()
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (184 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0191/2651] arm64: dts: qcom: qcs8550-rb5gen2: " Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0193/2651] RDMA/hns: Fix missing CQE when UD QP use different SL Greg Kroah-Hartman
                   ` (5 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Krzysztof Kozlowski, Manush Prajwal,
	Krzysztof Kozlowski, Lee Jones, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Manush Prajwal <manushprajwal555@gmail.com>

[ Upstream commit 4805e5ec50d0b355370e3d1ea906af4fc758accf ]

Rework the subled loop in max77705_add_led() around
fwnode_for_each_child_node_scoped() instead of adding a manual
fwnode_handle_put(child) before the early return on a
max77705_parse_subled() failure, so the reference on the current
child fwnode is released automatically on every exit path from the
loop. child is never used outside the loop, so the now-unused outer
child declaration is dropped along with it.

Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
Fixes: 3b6eaa3db567 ("leds: Use fwnode_for_each_child_node() instead")
Signed-off-by: Manush Prajwal <manushprajwal555@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/6a914e1e.7d702ed2.1273e8.2a52@mx.google.com
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/leds/leds-max77705.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/leds/leds-max77705.c b/drivers/leds/leds-max77705.c
index 1e2054c1bf80b..4fd803c959890 100644
--- a/drivers/leds/leds-max77705.c
+++ b/drivers/leds/leds-max77705.c
@@ -160,7 +160,6 @@ static int max77705_add_led(struct device *dev, struct regmap *regmap, struct fw
 	struct max77705_led *led;
 	struct led_classdev *cdev;
 	struct mc_subled *info;
-	struct fwnode_handle *child;
 	struct led_init_data init_data = {};
 
 	led = devm_kzalloc(dev, sizeof(*led), GFP_KERNEL);
@@ -191,7 +190,7 @@ static int max77705_add_led(struct device *dev, struct regmap *regmap, struct fw
 		cdev->brightness_set_blocking = max77705_led_brightness_set_multi;
 		cdev->blink_set = max77705_rgb_blink;
 
-		fwnode_for_each_child_node(np, child) {
+		fwnode_for_each_child_node_scoped(np, child) {
 			ret = max77705_parse_subled(dev, child, &info[i]);
 			if (ret < 0)
 				return ret;
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0193/2651] RDMA/hns: Fix missing CQE when UD QP use different SL
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (185 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0192/2651] leds: max77705: Use fwnode_for_each_child_node_scoped() in max77705_add_led() Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0194/2651] f2fs: wait for inode record work before clearing ino bitmaps Greg Kroah-Hartman
                   ` (4 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Chengchang Tang, Junxian Huang,
	Leon Romanovsky, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Chengchang Tang <tangchengchang@huawei.com>

[ Upstream commit 3547f46c31993d41748f0f7936f9d4dc5b5d4b12 ]

Due to the hardware contraint, CQEs may be dropped when a UD QP
sends with multiple SLs. Pin the SL to the value from the first
post_send on the QP to avoid this issue.

Fixes: 66d86e529dd5 ("RDMA/hns: Add UD support for HIP09")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20260831020324.3540901-2-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/infiniband/hw/hns/hns_roce_device.h |  1 +
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c  | 15 ++++++++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h
index eb7b1865e4c79..95529251e2e21 100644
--- a/drivers/infiniband/hw/hns/hns_roce_device.h
+++ b/drivers/infiniband/hw/hns/hns_roce_device.h
@@ -654,6 +654,7 @@ struct hns_roce_qp {
 	u8			priority;
 	spinlock_t flush_lock;
 	struct hns_roce_dip *dip;
+	bool ud_sl_set;
 };
 
 struct hns_roce_ib_iboe {
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index 27cc7df55ee70..fd198faf4ee47 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@ -431,7 +431,8 @@ static int set_ud_opcode(struct hns_roce_v2_ud_send_wqe *ud_sq_wqe,
 	return 0;
 }
 
-static int fill_ud_av(struct hns_roce_v2_ud_send_wqe *ud_sq_wqe,
+static int fill_ud_av(struct hns_roce_qp *qp,
+		      struct hns_roce_v2_ud_send_wqe *ud_sq_wqe,
 		      struct hns_roce_ah *ah)
 {
 	struct ib_device *ib_dev = ah->ibah.device;
@@ -441,7 +442,12 @@ static int fill_ud_av(struct hns_roce_v2_ud_send_wqe *ud_sq_wqe,
 	hr_reg_write(ud_sq_wqe, UD_SEND_WQE_HOPLIMIT, ah->av.hop_limit);
 	hr_reg_write(ud_sq_wqe, UD_SEND_WQE_TCLASS, ah->av.tclass);
 	hr_reg_write(ud_sq_wqe, UD_SEND_WQE_FLOW_LABEL, ah->av.flowlabel);
-	hr_reg_write(ud_sq_wqe, UD_SEND_WQE_SL, ah->av.sl);
+	if (!qp->ud_sl_set) {
+		qp->sl = ah->av.sl;
+		qp->ud_sl_set = true;
+	}
+
+	hr_reg_write(ud_sq_wqe, UD_SEND_WQE_SL, qp->sl);
 
 	ud_sq_wqe->sgid_index = ah->av.gid_index;
 
@@ -491,12 +497,10 @@ static inline int set_ud_wqe(struct hns_roce_qp *qp,
 			  qp->qkey : ud_wr(wr)->remote_qkey);
 	hr_reg_write(ud_sq_wqe, UD_SEND_WQE_DQPN, ud_wr(wr)->remote_qpn);
 
-	ret = fill_ud_av(ud_sq_wqe, ah);
+	ret = fill_ud_av(qp, ud_sq_wqe, ah);
 	if (ret)
 		return ret;
 
-	qp->sl = to_hr_ah(ud_wr(wr)->ah)->av.sl;
-
 	set_extend_sge(qp, wr->sg_list, &curr_idx, valid_num_sge);
 
 	/*
@@ -5603,6 +5607,7 @@ static void v2_set_flushed_fields(struct ib_qp *ibqp,
 	hr_reg_write(context, QPC_SQ_PRODUCER_IDX, hr_qp->sq.head);
 	hr_reg_clear(qpc_mask, QPC_SQ_PRODUCER_IDX);
 	hr_qp->state = IB_QPS_ERR;
+	hr_qp->ud_sl_set = false;
 	spin_unlock_irqrestore(&hr_qp->sq.lock, sq_flag);
 
 	if (ibqp->srq || ibqp->qp_type == IB_QPT_XRC_INI) /* no RQ */
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0194/2651] f2fs: wait for inode record work before clearing ino bitmaps
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (186 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0193/2651] RDMA/hns: Fix missing CQE when UD QP use different SL Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0195/2651] clk: Use the generic OF phandle parsing in only one place Greg Kroah-Hartman
                   ` (3 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Wenjie Qi, Chao Yu, Jaegeuk Kim,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Wenjie Qi <qwjhust@gmail.com>

[ Upstream commit 56bcda97b38a54b18df380ca928120a05d2a269a ]

APPEND/UPDATE inode state recording was moved to the inode eviction
workqueue. These entries were later converted to bitmap values stored in
XArrays, but the workqueue drain was left behind in the list cleanup loop
where it is now a no-op.

During unmount, inode eviction work can therefore remain queued when
f2fs_release_ino_entry() destroys the bitmap XArrays. A delayed worker can
repopulate them before the workqueue is finally destroyed, leaking newly
allocated XArray nodes when the F2FS superblock is freed.

Wait for APPEND/UPDATE inode record work before destroying each bitmap
XArray, restoring the required ordering.

Fixes: 9a9ee7408a1f ("f2fs: reduce memory footprint of ino management")
Signed-off-by: Wenjie Qi <qiwenjie@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/f2fs/checkpoint.c | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index a84517023e54f..0692b198d0b08 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -824,15 +824,6 @@ static void __clear_ino_bitmap(struct f2fs_sb_info *sbi, nid_t ino, int type)
 	spin_unlock(&im->ino_lock);
 }
 
-static void f2fs_wait_for_inode_record(struct f2fs_sb_info *sbi, int mode)
-{
-	if (mode != APPEND_INO && mode != UPDATE_INO)
-		return;
-
-	/* Let's wait for some pending updates for APPEND_INO and UPDATE_INO. */
-	flush_workqueue(sbi->evict_wq);
-}
-
 static void __f2fs_add_ino_entry(struct f2fs_sb_info *sbi, nid_t ino,
 					unsigned int devidx, int type)
 {
@@ -886,8 +877,6 @@ void f2fs_release_ino_entry(struct f2fs_sb_info *sbi, bool all)
 	for (i = all ? ORPHAN_INO : FLUSH_INO; i <= FLUSH_INO; i++) {
 		struct inode_management *im = &sbi->im[i];
 
-		f2fs_wait_for_inode_record(sbi, i);
-
 		spin_lock(&im->ino_lock);
 		list_for_each_entry_safe(e, tmp, &im->ino_list, list) {
 			list_del(&e->list);
@@ -898,6 +887,9 @@ void f2fs_release_ino_entry(struct f2fs_sb_info *sbi, bool all)
 		spin_unlock(&im->ino_lock);
 	}
 
+	/* Wait for pending APPEND/UPDATE inode state updates. */
+	flush_workqueue(sbi->evict_wq);
+
 	for (i = APPEND_INO; i < MAX_INO_ENTRY; i++) {
 		struct inode_management *im = &sbi->im[i];
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0195/2651] clk: Use the generic OF phandle parsing in only one place
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (187 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0194/2651] f2fs: wait for inode record work before clearing ino bitmaps Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0196/2651] wifi: ath12k: signal regd update completion when reg event is dropped Greg Kroah-Hartman
                   ` (2 subsequent siblings)
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Stephen Boyd,
	Miquel Raynal (Schneider Electric), Brian Masney, Frank Li,
	Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Miquel Raynal (Schneider Electric) <miquel.raynal@bootlin.com>

[ Upstream commit 57d728b4ab15a8af890013bb0f302e7733f7c1c6 ]

Ideally, there should be one single entry in the OF world. This way, the
DT parsing logic is always identical. At this stage, we call
of_parse_phandle_with_args() in:
- of_parse_clkspec()
- of_clk_get_parent_name()
which kinds of defeats the above statement. Furthermore, when this call
is done from of_clk_get_parent_name(), we fail to parse the
'clock-ranges' property.

Make sure DT world is entered only once by calling of_parse_clkspec()
from of_clk_get_parent_name(). Doing so implies that we do not try the
"clock-ranges" path if we already found a "clocks" property.

Suggested-by: Stephen Boyd <sboyd@kernel.org>
Fixes: 4472287a3b2f5 ("clk: Introduce of_clk_get_hw_from_clkspec()")
Signed-off-by: Miquel Raynal (Schneider Electric) <miquel.raynal@bootlin.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/clk/clk.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 7fd5bc2a31f68..8cb2c450ebd34 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -5320,6 +5320,8 @@ static int of_parse_clkspec(const struct device_node *np, int index,
 		 * has a "clock-ranges" property, then we can try one of its
 		 * clocks.
 		 */
+		if (of_property_present(np, "clocks"))
+			break;
 		np = np->parent;
 		if (np && !of_property_present(np, "clock-ranges"))
 			break;
@@ -5464,8 +5466,7 @@ const char *of_clk_get_parent_name(const struct device_node *np, int index)
 	int count;
 	struct clk *clk;
 
-	rc = of_parse_phandle_with_args(np, "clocks", "#clock-cells", index,
-					&clkspec);
+	rc = of_parse_clkspec(np, index, NULL, &clkspec);
 	if (rc)
 		return NULL;
 
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0196/2651] wifi: ath12k: signal regd update completion when reg event is dropped
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (188 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0195/2651] clk: Use the generic OF phandle parsing in only one place Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0197/2651] wifi: ath11k: disable interrupts during firmware crash recovery Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0198/2651] wifi: ath11k: fix sporadic WLAN initialization failures Greg Kroah-Hartman
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Baochen Qiang, Rameshkumar Sundaram,
	Jeff Johnson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Baochen Qiang <baochen.qiang@oss.qualcomm.com>

[ Upstream commit f2576dc0f894ef33045ba7ed057ec417988bba8a ]

During driver bring-up, ath12k_mac_hw_register() reinitializes
ar->regd_update_completed and sends a set current country command to
firmware. It then relies on the regulatory event from firmware to signal
that completion via ath12k_reg_chan_list_event().

However, when the country being set is identical to the one already
applied at boot time, ath12k_reg_validate_reg_info() returns
ATH12K_REG_STATUS_DROP through the "Avoid multiple overwrites to default
regd" path. In that case ath12k_reg_chan_list_event() jumps to mem_free
before assigning pdev_idx, so pdev_idx stays at its initial value of 255,
'ar' remains NULL and complete_all() is never called.

As a result the reinitialized completion is left unsignalled and the next
ath12k_regd_update() waits the full timeout, printing:

  Timeout while waiting for regulatory update

Fix this by assigning pdev_idx from the event's phy_id right after it is
extracted, before validation, so that the drop and fallback paths still
reach complete_all(). Change the guard at the end to check the index
against ab->num_radios so that an out-of-range phy_id does not lead to an
invalid pdevs[] access.

Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3

Fixes: 906619a00967 ("wifi: ath12k: handle regulatory hints during mac registration")
Signed-off-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
Link: https://patch.msgid.link/20260729-ath12k-regd-wait-timeout-v1-1-504aa6e7e93c@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/wireless/ath/ath12k/wmi.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c
index 3e812c79a649d..b0610ce7d01c7 100644
--- a/drivers/net/wireless/ath/ath12k/wmi.c
+++ b/drivers/net/wireless/ath/ath12k/wmi.c
@@ -6992,6 +6992,14 @@ static int ath12k_reg_chan_list_event(struct ath12k_base *ab, struct sk_buff *sk
 		goto mem_free;
 	}
 
+	/*
+	 * Set the valid pdev_idx before validating so that, even when the
+	 * event is dropped or falls back, the completion the caller in
+	 * ath12k_mac_hw_register() may be waiting on is still signalled at
+	 * the end and it does not time out.
+	 */
+	pdev_idx = reg_info->phy_id;
+
 	ret = ath12k_reg_validate_reg_info(ab, reg_info);
 	if (ret == ATH12K_REG_STATUS_FALLBACK) {
 		ath12k_warn(ab, "failed to validate reg info %d\n", ret);
@@ -7008,7 +7016,6 @@ static int ath12k_reg_chan_list_event(struct ath12k_base *ab, struct sk_buff *sk
 	}
 
 	/* free old reg_info if it exist */
-	pdev_idx = reg_info->phy_id;
 	if (ab->reg_info[pdev_idx]) {
 		ath12k_reg_reset_reg_info(ab->reg_info[pdev_idx]);
 		kfree(ab->reg_info[pdev_idx]);
@@ -7047,7 +7054,7 @@ static int ath12k_reg_chan_list_event(struct ath12k_base *ab, struct sk_buff *sk
 
 out:
 	/* In some error cases, even a valid pdev_idx might not be available */
-	if (pdev_idx != 255)
+	if (pdev_idx < ab->num_radios)
 		ar = ab->pdevs[pdev_idx].ar;
 
 	/* During the boot-time update, 'ar' might not be allocated,
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0197/2651] wifi: ath11k: disable interrupts during firmware crash recovery
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (189 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0196/2651] wifi: ath12k: signal regd update completion when reg event is dropped Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  2026-11-18 14:23 ` [PATCH 7.3 0198/2651] wifi: ath11k: fix sporadic WLAN initialization failures Greg Kroah-Hartman
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Julius Bairaktaris,
	Rameshkumar Sundaram, Baochen Qiang, Jeff Johnson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Julius Bairaktaris <julius@bairaktaris.de>

[ Upstream commit f7a74e131d3f0de04335dbe278bfb82bdafcdb3e ]

On IPQ8074 a firmware assert reboots the SoC:

  Unable to handle kernel read from unreadable memory at virtual address 0
  pc : ath11k_hal_srng_access_begin+0xc/0x60 [ath11k]
  lr : ath11k_dp_rx_process_mon_status+0x15c/0xd84 [ath11k]
  Call trace:
   ath11k_hal_srng_access_begin+0xc/0x60 [ath11k]
   ath11k_dp_rx_process_mon_rings+0xa0/0x5d4 [ath11k]
   ath11k_dp_service_srng+0x1f4/0x348 [ath11k]
   ath11k_ahb_ext_grp_napi_poll+0x34/0xd4 [ath11k_ahb]
   __napi_poll+0x38/0x188
   net_rx_action+0x120/0x2c0

ath11k_core_reconfigure_on_crash() tears the data path down with
ath11k_dp_pdev_free(), ath11k_dp_free() and ath11k_hal_srng_clear(),
which memsets the ring list. The DP NAPI is still running while that
happens, so it services a ring whose address pointer has just been
cleared.

That function used to disable the interrupts first, until
commit d455e805de70 ("wifi: ath11k: rearrange IRQ enable/disable in reset path")
moved the disable into ath11k_core_reset(). reset_work is only queued
from mhi.c and from the debugfs hw-restart handler, so AHB parts never
run it on a real firmware crash. Their recovery goes QMI server exit ->
restart_work -> ath11k_core_reconfigure_on_crash() ->
ath11k_core_qmi_firmware_ready(), and nothing disables the interrupts
anywhere along it.

Disable them again on the crash path. The reset path has already done
so by the time it gets here, hence the ab->is_reset check.

This is also why the debugfs hw-restart trigger never showed the
problem: it goes through ath11k_core_reset(), the one path that still
had the disable.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.12-01460-QCAHKSWPL_SILICONZ-1

Fixes: d455e805de70 ("wifi: ath11k: rearrange IRQ enable/disable in reset path")
Assisted-by: Claude:claude-opus-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Link: https://patch.msgid.link/20260726221908.104873-3-julius@bairaktaris.de
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/wireless/ath/ath11k/core.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c
index 8039124e78327..d2ed6a0ea7e36 100644
--- a/drivers/net/wireless/ath/ath11k/core.c
+++ b/drivers/net/wireless/ath/ath11k/core.c
@@ -2334,6 +2334,16 @@ static int ath11k_core_reconfigure_on_crash(struct ath11k_base *ab)
 
 	mutex_lock(&ab->core_lock);
 	ath11k_thermal_unregister(ab);
+
+	/*
+	 * ath11k_core_reset() already disabled the interrupts on the reset
+	 * path; only the firmware crash path reaches here with them live.
+	 */
+	if (!ab->is_reset) {
+		ath11k_hif_irq_disable(ab);
+		ath11k_hif_ce_irq_disable(ab);
+	}
+
 	ath11k_dp_pdev_free(ab);
 	ath11k_cfr_deinit(ab);
 	ath11k_spectral_deinit(ab);
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

* [PATCH 7.3 0198/2651] wifi: ath11k: fix sporadic WLAN initialization failures
  2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
                   ` (190 preceding siblings ...)
  2026-11-18 14:23 ` [PATCH 7.3 0197/2651] wifi: ath11k: disable interrupts during firmware crash recovery Greg Kroah-Hartman
@ 2026-11-18 14:23 ` Greg Kroah-Hartman
  191 siblings, 0 replies; 193+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:23 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, patches, Miaoqing Pan, Baochen Qiang,
	Rameshkumar Sundaram, Jeff Johnson, Sasha Levin

7.3-stable review patch.  If anyone has any objections, please let me know.

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

From: Miaoqing Pan <miaoqing.pan@oss.qualcomm.com>

[ Upstream commit 32ec8488d75d122768b1977501bcb5ec799230c4 ]

On WCN6750 platforms, reboot stress testing occasionally results in WLAN
initialization failures after boot. The WPSS firmware reaches the running
state successfully, but no WLAN interface is created.

Analysis shows that ath11k_ahb depends on the QRTR SMD transport for QMI
communication with WPSS firmware. However, this dependency is not
currently expressed in Kconfig, allowing qrtr_smd and ath11k_ahb to load
in either order when built as modules.

If ath11k_ahb is loaded before qrtr_smd becomes available, WLAN
initialization may not complete successfully.

Make the QRTR and QRTR_SMD dependencies explicit and add a soft
dependency to ensure qrtr_smd is loaded before ath11k_ahb.

Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.2.0.c2-00204-QCAMSLSWPLZ-1

Fixes: 00402f49d26f ("ath11k: Add support for WCN6750 device")
Signed-off-by: Miaoqing Pan <miaoqing.pan@oss.qualcomm.com>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
Link: https://patch.msgid.link/20260806101331.484063-2-miaoqing.pan@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/wireless/ath/ath11k/Kconfig | 3 +++
 drivers/net/wireless/ath/ath11k/ahb.c   | 1 +
 2 files changed, 4 insertions(+)

diff --git a/drivers/net/wireless/ath/ath11k/Kconfig b/drivers/net/wireless/ath/ath11k/Kconfig
index 122726f84492a..44b520d2e66ee 100644
--- a/drivers/net/wireless/ath/ath11k/Kconfig
+++ b/drivers/net/wireless/ath/ath11k/Kconfig
@@ -14,6 +14,9 @@ config ATH11K_AHB
 	tristate "Atheros ath11k AHB support"
 	depends on ATH11K
 	depends on REMOTEPROC
+	select RPMSG
+	select QRTR
+	select QRTR_SMD
 	help
 	  This module adds support for AHB bus
 
diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c
index ec5bf5c9fd792..e417b0a0f2d7f 100644
--- a/drivers/net/wireless/ath/ath11k/ahb.c
+++ b/drivers/net/wireless/ath/ath11k/ahb.c
@@ -1343,5 +1343,6 @@ static struct platform_driver ath11k_ahb_driver = {
 
 module_platform_driver(ath11k_ahb_driver);
 
+MODULE_SOFTDEP("pre: qrtr_smd");
 MODULE_DESCRIPTION("Driver support for Qualcomm Technologies 802.11ax WLAN AHB devices");
 MODULE_LICENSE("Dual BSD/GPL");
-- 
2.53.0




^ permalink raw reply related	[flat|nested] 193+ messages in thread

end of thread, other threads:[~2026-11-18 15:25 UTC | newest]

Thread overview: 193+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18 14:20 [PATCH 7.3 0000/2651] 7.3.6-rc1 review Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0001/2651] KVM: SVM: Add a vCPU-aware helper to get supported DEBUGCTL bits Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0002/2651] KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0003/2651] 9p/xen: drain response work after unbinding IRQ Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0004/2651] mm/shmem: hold off eviction in shmem_writeout() Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0005/2651] PCI/AER: Fix memory leak in aer_recover_work_func() when pci_dev is missing Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0006/2651] mm: do not unintentionally overwrite atomic VMA flags Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0007/2651] ocfs2/cluster: hold a reference on the heartbeat thread Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0008/2651] ocfs2/heartbeat: serialize concurrent writes to a regions dev attribute Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0009/2651] platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0010/2651] mm/userfaultfd: wake waiters when registration modes are removed Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0011/2651] scsi: ufs: core: Change the error check sequence for auto hibern8 Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0012/2651] net: mana: Introduce gdma_bus_ops for bus-specific operations Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0013/2651] net: mana: Add support to process throttled EQEs Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0014/2651] f2fs: fix to fetch ino via ino_of_node() under cache lock Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0015/2651] mm/vma: fix expansion of VMA_MIXEDMAP_BIT VMAs Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0016/2651] platform/x86: hp-wmi: Add OMEN board 8A17 thermal profile support Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0017/2651] inet: frags: bound the wmem charge of the socket completing a reassembly Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0018/2651] mm/userfaultfd: compare exact registration modes before skipping Greg Kroah-Hartman
2026-11-18 14:20 ` [PATCH 7.3 0019/2651] alpha: select SYSCTL_EXCEPTION_TRACE Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0020/2651] Bluetooth: Move H:4 reassembly into the Bluetooth core Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0021/2651] Bluetooth: btusb: Build the driver from multiple source files Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0022/2651] Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728 Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0023/2651] ALSA: pcm: Optimize cpu_latency_qos_*() calls Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0024/2651] ALSA: pcm: Prevent O_APPEND open on OSS streams Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0025/2651] net: Use a dedicated flag to track disabled napi instances Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0026/2651] Revert "drm/amd/display: Allocate DCN32/1 dmub memory to GTT" Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0027/2651] drm/amdgpu: Config VCN instance for soc_v1_0" Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0028/2651] drm/amdgpu: Correct VCN V5_0_2 doorbell index setting Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0029/2651] drm/amdgpu: VCN 5_0_2 disable VCN_RRMT Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0030/2651] drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0031/2651] hugetlbfs: enforce F_SEAL_EXEC in setattr Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0032/2651] btrfs: replace btrfs_repair_io_failure() to use bio for page iteration Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0033/2651] btrfs: enhance btrfs_data_csum_ok() " Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0034/2651] btrfs: use a shared helper to calculate data checksum for a bio Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0035/2651] btrfs: remove on-stack paddrs[] array usage Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0036/2651] btrfs: raid56: do not verify the content if there is no data checksum Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0037/2651] cipso: stop modifying live ip_options_rcu Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0038/2651] nvme-tcp: fix use-after-free in nvme_tcp_free_ctrl() Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0039/2651] mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0040/2651] hwmon: (coretemp) Read TjMax only when refreshing the temperature Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0041/2651] hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp() Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0042/2651] mm/vma: avoid losing atomic VMA flags when setting sticky VMA flags Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0043/2651] mm/madvise: preserve VMA_SOFTDIRTY_BIT when changing anonymous names Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0044/2651] ASoC: SDCA: export PM helpers keyed on sdca_class_drv Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0045/2651] ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0046/2651] quota: initialize dquot cache before mounting rootfs Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0047/2651] fs/proc/task_mmu: fix missed VMAs when reading /proc/PID/maps and friends Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0048/2651] ASoC: qcom: q6apm: clear g_apm on driver removal Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0049/2651] ovl: add assertions in dir cache code Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0050/2651] ovl: inherit FMODE_NONOTIFY when reading directory layers Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0051/2651] comedi: addi_apci_3xxx: fix subdevice count underallocation Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0052/2651] comedi: dt2811: fix shift-out-of-bounds in IRQ check Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0053/2651] serial: max310x: schedule tx_work directly from the IRQ handler Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0054/2651] drm/komeda: Fix bits parsing of GLB_CORE_ID Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0055/2651] accel/qaic: Add missing <linux/device-id/mhi.h> to sahara and timesync Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0056/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_drv.c Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0057/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_debugfs.c Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0058/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_ras.c Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0059/2651] accel/qaic: Add <linux/device-id/mhi.h> to qaic_ssr.c Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0060/2651] accel/qaic: reject BO sizes that overflow page count Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0061/2651] drm: verisilicon: fix cursor offset field update Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0062/2651] drm/verisilicon: Switch to drm_fb_dma_get_addr() for framebuffer addresses Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0063/2651] drm/panfrost: Check another bo field for cache option query Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0064/2651] drm/panfrost: Prevent division by 0 Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0065/2651] bpf: sched_ext: Mark ops argument container pointer fields as trusted Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0066/2651] drm/omap: dsi: avoid sending bta sync all the time in writes Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0067/2651] drm: of: Fix drm_of_get_data_lanes_count_ep() return value documentation Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0068/2651] libbpf: Avoid overflow in BTF.ext bounds check Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0069/2651] selftests/bpf: Allocate a larger timeout for connection Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0070/2651] gpu: nova-core: write initial RPCs before booting GSP-RM Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0071/2651] bpf: Roll back stream capacity when allocation fails Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0072/2651] bpf: Fix stream capacity leak in staging path Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0073/2651] bpf: Return partial progress from bpf_stream_read on fault Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0074/2651] bpf: Reject oversized bpf_stream_vprintk output with -E2BIG Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0075/2651] drm/panthor: Add tracepoint for cache flushing Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0076/2651] drm/panthor: Revisit reqs_lock handling in flush/reset paths Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0077/2651] drm/panthor: Take reqs_lock in soft_reset for clearing pending_reqs Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0078/2651] bpf: Reject oversized stream read buffers Greg Kroah-Hartman
2026-11-18 14:21 ` [PATCH 7.3 0079/2651] libbpf: Fix usdt attach failure when nop10 crosses page boundary Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0080/2651] drm/amd/pm: Remove unused functions in smu_v15_0 Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0081/2651] gpio: pcf857x: implement get_direction() Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0082/2651] drm/vkms: Fix limited-range YCbCr to RGB conversion scaling Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0083/2651] bpftool: Fix spurious batch file read error Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0084/2651] selftests/bpf: Avoid flaky resize value test for percpu data Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0085/2651] drm/ras: Cancel and free message on get counter failure Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0086/2651] selftests/bpf: NUL-terminate bpftool command output Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0087/2651] selftests/bpf: Add tests for bpftool btf dump format c Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0088/2651] bpftool: Dont drop a type in the sorted C dump Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0089/2651] regulator: fixed: reject incompatible platform devices Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0090/2651] spi: sh-msiof: propagate setup runtime-PM errors Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0091/2651] iio: humidity: hts221: report available values via read_avail() Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0092/2651] dt-bindings: iio: light: ltr501: Sort compatible enum array Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0093/2651] dt-bindings: iio: light: ltr501: Add missing ltr303 compatible Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0094/2651] iio: temperature: tmp117: fix calibbias cache update on I2C write failure Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0095/2651] iio: pressure: rohm-bm1390: Fix AVE_NUM initialization Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0096/2651] clk: meson: t7: keep the memory fabric clocks running Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0097/2651] ata: pata_parport: Fix use-after-free in new_device_store Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0098/2651] ARM: dts: helios4: fix lm75 supply name Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0099/2651] ARM: dts: armada-385-clearfog-gtr: fix vmmc property name Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0100/2651] ARM: dts: armada-395-gp: drop unsupported SDHCI clock-frequency Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0101/2651] ARM: dts: armada-388-helios4: fix vmmc property name Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0102/2651] selftests/filesystems: Add .gitignore for fscontext_ns_test Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0103/2651] ARM: dts: helios4: fix vbus-supply for USB2 PHY Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0104/2651] ARM: dts: helios4: fix spi1 location Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0105/2651] kexec_file: stop the top-down search before it underflows Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0106/2651] perf jitdump: Fix extended header read that always fails Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0107/2651] perf jitdump: Fix debug_data and unwinding_data leaks Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0108/2651] perf jitdump: Validate code_size against total_size in code load Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0109/2651] perf jitdump: Prevent integer underflow in debug info size calculation Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0110/2651] perf jitdump: Bounds-check debug entry byte-swap loop Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0111/2651] perf jitdump: Check snprintf return before computing header size Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0112/2651] perf jitdump: Fix funlockfile on unlocked stream in jit_open() error path Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0113/2651] perf jitdump: Free event in jit_repipe_code_move() Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0114/2651] perf jitdump: Use dirname() return value in jit_open() Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0115/2651] perf jitdump: Validate debug entries on native (non-swap) path Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0116/2651] perf jitdump: Validate sym string NUL-termination in code load Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0117/2651] perf jitdump: Validate unwinding sizes against record payload Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0118/2651] dt-bindings: display: panel: samsung,s6e8aa5x01: Allow common properties Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0119/2651] arm64: dts: apple: t6030: Fix cpus node indentation Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0120/2651] arm64: dts: apple: t6032: " Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0121/2651] arm64: dts: imx95-15x15-frdm: fix duplicated can-phy node names Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0122/2651] arm64: dts: qcom: glymur-crd: Mark the EC reset gpio as reserved Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0123/2651] arm64: dts: imx8mp-phyboard-pollux-peb-av-10: Fix SAI master assignment Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0124/2651] remoteproc: qcom_q6v5_adsp: Fix double jiffies conversion in adsp_start() Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0125/2651] soc: qcom: smem: fix 32-bit overflow in DDR frequency calculation Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0126/2651] soc: qcom: smem: Fix byte order in v3 14-frequency parser Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0127/2651] arm64: dts: qcom: glymur: Add missing USB clock, power and bandwidth votes Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0128/2651] arm64: dts: qcom: sdm845-sony-xperia-tama: Fix Bluetooth UART pinctrl Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0129/2651] cxl/mce: Avoid alias page retirement for corrected errors Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0130/2651] remoteproc: xlnx: Initialize mailbox work before requesting channels Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0131/2651] dt-bindings: clock: qcom,milos-camcc: Add missing power-domains support Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0132/2651] dt-bindings: clock: qcom,milos-videocc: " Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0133/2651] arm64: dts: qcom: milos: Add power-domains for camcc and videocc Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0134/2651] dt-bindings: clock: qcom: Add GCC video axi reset clocks for Nord Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0135/2651] lsm: dont call security_backing_file_free() multiple times Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0136/2651] ASoC: wcd-mbhc-v2: Fix incorrect properties names and typos Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0137/2651] pwm: renesas-tpu: Fix runtime PM reference leak Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0138/2651] spi: omap2-mcspi: Remove unbalanced pm_runtime_put_sync() calls Greg Kroah-Hartman
2026-11-18 14:22 ` [PATCH 7.3 0139/2651] soc: qcom: smem: Fix signedness bug in smem_dram_parse() Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0140/2651] soc: qcom: apr: clean up failed service registrations Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0141/2651] platform/chrome: cros_ec_proto: Fix deferred response Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0142/2651] staging: rtl8723bs: disable SDIO function on block size failure Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0143/2651] staging: octeon: schedule the TX cleanup tasklet every 1024th packet Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0144/2651] clk: fix self-consuming provider module pinning Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0145/2651] microblaze: CCF: fix refcount leak Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0146/2651] microblaze: prevent ptrace writes to MSR and pt_mode Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0147/2651] PCI: cadence: Fix enum type mismatch warning in LTSSM debugfs Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0148/2651] cxl/test: Map mock device nodes to an online node Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0149/2651] soundwire: intel: initialise quirk_mask before reading it Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0150/2651] accel/amdxdna: Fix unexpected wait when flushing notifier_wq Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0151/2651] accel/amdxdna: Fix possible use-after-free when freeing device BO Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0152/2651] arm64: dts: rockchip: Correct Device Orientation on Gameforce Ace Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0153/2651] cxl/ras: Pass the PCI devices struct device to match_memdev_by_parent() Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0154/2651] wifi: rtw89: coex: Fix wrong constant check of GPIO MUX signal Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0155/2651] wifi: mm81x: fix type bugs handling sdio_readl/writel() Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0156/2651] wifi: rtw88: debugfs: dont vzalloc(0) when rsvd_page is read unconfigured Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0157/2651] sched_ext/scx_flatcg: Make cgv_node_less() wraparound-safe Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0158/2651] fuse: dont fill in.h.pid in case args->nocreds is set Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0160/2651] fuse: fall back to copy_splice_read() on FOPEN_DIRECT_IO Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0161/2651] sched/core: Dont steal a proxy-exec donor Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0162/2651] sched/core: Dont proxy-exec unmatched cookie lock owners Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0163/2651] sched: Switch rq->next_class in proxy_reset_donor() Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0169/2651] dlm: fix variable key length lookup Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0170/2651] remoteproc: imx_dsp: Acquire runtime PM before adding carveouts Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0171/2651] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0172/2651] arm64: dts: imx94: " Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0173/2651] arm64: dts: imx943: " Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0174/2651] drm/amd/display: gate DCE ASIC code behind CONFIG_DRM_AMD_DC_DCE Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0175/2651] drm/amd/display: Refactor HUBP_WAIT_FOR_DCC_META_PROP to drop pipe_ctx Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0176/2651] drm/amd/display: Refactor DPP_SET_INPUT_TRANSFER_FUNC " Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0177/2651] drm/amd/display: use translate_curve_to_degamma_hw_format on DCN30 Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0178/2651] x86/crash: Reserve elfcorehdr for CONFIG_NR_CPUS, not CONFIG_NR_CPUS_DEFAULT Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0179/2651] bpftool: Set BPF_F_XDP_DEV_BOUND_ONLY flag non-destructively Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0180/2651] libbpf: Move section-defined program flags to prog_flags Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0181/2651] net: dsa: yt921x: Check lock status with lockdep_assert_held_once() Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0182/2651] PCI: endpoint: pci-epf-vntb: Pass PF/VF number when BAR programming Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0183/2651] dmaengine: fsl_raid: dont invoke client callback under desc_lock Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0184/2651] dmaengine: fsl_raid: avoid free_q underflow in free_chan_resources Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0185/2651] dmaengine: at_hdmac: fix sparse __iomem cast warning in memset helpers Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0186/2651] arm64: dts: qcom: qcs6490-rb3gen2: clean up PCI function nodes Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0187/2651] arm64: dts: qcom: qcs6490-rb3gen2-industrial-mezzanine: " Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0188/2651] arm64: dts: qcom: lemans-evk-ifp-mezzanine: " Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0189/2651] arm64: dts: qcom: monaco-evk-ifp-mezzanine: " Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0190/2651] arm64: dts: qcom: qcs6490-thundercomm-minipc-g1iot: " Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0191/2651] arm64: dts: qcom: qcs8550-rb5gen2: " Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0192/2651] leds: max77705: Use fwnode_for_each_child_node_scoped() in max77705_add_led() Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0193/2651] RDMA/hns: Fix missing CQE when UD QP use different SL Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0194/2651] f2fs: wait for inode record work before clearing ino bitmaps Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0195/2651] clk: Use the generic OF phandle parsing in only one place Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0196/2651] wifi: ath12k: signal regd update completion when reg event is dropped Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0197/2651] wifi: ath11k: disable interrupts during firmware crash recovery Greg Kroah-Hartman
2026-11-18 14:23 ` [PATCH 7.3 0198/2651] wifi: ath11k: fix sporadic WLAN initialization failures Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox