Skip to contentSkip to conversation

6.1.193-rc1 review

PATCH In review Greg Kroah-Hartman 10 participants 2,869 messages Nov 18 – Nov 20 Page 1 of 21

Subsystems (6)
lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

cover 6.1.193-rc1 review

This is the start of the stable review cycle for the 6.1.193 release. There are 2857 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:40 +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/v6.x/stable-review/patch-6.1.193-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-6.1.y
and the diffstat can be found below.

thanks,

greg k-h

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

Greg Kroah-Hartman <[email protected]>

    Linux 6.1.193-rc1

Aleksandr Nogikh <[email protected]>
Bluetooth: hci_core: Fix race condition during device registration

Kemeng Shi <[email protected]>
irqchip/gic-v3-its: Fix its node leak in gic_acpi_parse_madt_its()

Wang Yan <[email protected]>
selftests/net: fix EVP_MD_CTX leak in tcp_mmap

Pengjie Zhang <[email protected]>
ACPI: PCC: Fix race condition by removing static qualifier

Uros Bizjak <[email protected]>
cleanup: Remove address space of returned pointer

Hannes Reinecke <[email protected]>
nvmet: do not return 'reserved' for empty TSAS values

Marc Zyngier <[email protected]>
irqchip/gic-v3-its: Restore quirk probing for ACPI-based systems

Masahiro Yamada <[email protected]>

    kconfig: initialize sym->curr.tri to 'no' for all symbol types again

Dmitry Baryshkov <[email protected]>
drm/msm/dpu: initialise clk_rate to 0 in _dpu_core_perf_get_core_clk_rate

Yang Yingliang <[email protected]>
media: davinci: vpif_capture: fix error return code in vpif_probe()

Dan Carpenter <[email protected]>
Bluetooth: msft: Fix error code in msft_cancel_address_filter_sync()

Arnd Bergmann <[email protected]>
dmaengine: ste_dma40: use proper format string for resource_size_t

Vinod Koul <[email protected]>
dmaengine: ste_dma40: use correct print specfier for resource_size_t

Eric Dumazet <[email protected]>
selftests/net: fix typo in tcp_mmap

Neil Chen <[email protected]>
wifi: mt76: mt7921: use driver flags rather than mac80211 flags to mcu

Bagas Sanjaya <[email protected]>
tracing/histogram: Wrap remaining shell snippets in code blocks

Yoann Congal <[email protected]>
printk: Fix LOG_CPU_MAX_BUF_SHIFT when BASE_SMALL is enabled

Shengjiu Wang <[email protected]>
remoteproc: imx_dsp_rproc: Only reset carveout memory at RPROC_OFFLINE state

Steven Price <[email protected]>
irqchip/gic-v3-its: Fix over allocation in itt_alloc_pool()

Jakub Sitnicki <[email protected]>
net: lwtunnel: Drop skb metadata before LWT encapsulation

Jérémy Jean <[email protected]>
nvmet-auth: reject incomplete DHCHAP messages

Krzysztof Wilczyński <[email protected]>
PCI/sysfs: Decouple acpi_index from the optional device name element

Dominique Martinet <[email protected]>
libbpf: fix cross-endian build with newer libbpf

Imre Kaloz <[email protected]>
rtc: ds1685: do not sleep in the power-off handler

Imre Kaloz <[email protected]>
rtc: ds1685: arm the wake-up alarm at power-off only if an alarm is set

Nickolai Zeldovich <[email protected]>
fs_pin: do not trust the pin after a spurious wakeup in pin_kill()

Muchun Song <[email protected]>
block: introduce init_wait_func()

Muchun Song <[email protected]>
block: remove redundant explicit memory barrier from rq_qos waiter and waker

Nickolai Zeldovich <[email protected]>
ucount: read the parent ucounts before dropping the rlimit count

Nickolai Zeldovich <[email protected]>
splice: retry tee() instead of returning 0 when it races

Zhiyu Zhang <[email protected]>
watch_queue: keep info_id separate from rcu_head

Xiao Liang <[email protected]>
tun: drop batched packets while the device is down

Jhonata Poma-Hansen <[email protected]>
netlink: check sk_rcvbuf before charging the dump skb

Eric Dumazet <[email protected]>
openvswitch: use eth_type_trans_careful() in internal_dev_recv()

Eric Dumazet <[email protected]>
net: use eth_type_trans_careful() in __dev_forward_skb2()

Sun Jian <[email protected]>
selftests/bpf: cover short IPv4/IPv6 inputs with adjust_room

Eric Dumazet <[email protected]>
loopback: use eth_type_trans_careful()

Eric Dumazet <[email protected]>
net: add eth_type_trans_careful()

Rosen Penev <[email protected]>
net: bgmac: fix TX DMA unmapping and slot cleanup

Kyle Zeng <[email protected]>
gro: do not GRO GSO packets with inconsistent payload

Jakub Kicinski <[email protected]>
eth: bnxt: hand XDP frags over to the copybreak skb

Somnath Kotur <[email protected]>
bnxt_en: Add XDP Metadata support

Jakub Kicinski <[email protected]>
eth: bnxt: free XDP frags when xdp_do_redirect() fails

Somnath Kotur <[email protected]>
bnxt_en: Change bnxt_rx_xdp function prototype

Wentao Liang <[email protected]>
apparmor: Fix namespace reference leak in __aa_find_or_create_ns()

Maxime Bélair <[email protected]>
apparmor: report a label allocation failure as -ENOMEM

Jamie Nguyen <[email protected]>
selftests: net: txtimestamp: fix out-of-bounds read in raw UDP checksum

Chris Mason <[email protected]>
rnbd-srv: publish the sess_dev at the end of OPEN

Guoqing Jiang <[email protected]>
block/rnbd-srv: rename one member in rnbd_srv_dev

Chris Mason <[email protected]>
rnbd-srv: fix use-after-free on two CLOSE messages

Josef Bacik <[email protected]>
block/rnbd-srv: drop the sess_dev kobject unlocked

Josef Bacik <[email protected]>
block/rnbd-srv: don't free the device on a sysfs error

Josef Bacik <[email protected]>
drbd: take req_lock to skip the initial sync as peer

Josef Bacik <[email protected]>
block: partitions/mac: compute the sectors in 64 bits

Josef Bacik <[email protected]>
blk-mq: don't forget a timer the driver has restarted

Josef Bacik <[email protected]>
blk-mq: don't bring back flags of a completed request

Damien Le Moal <[email protected]>
block: Allow using bio_attempt_back_merge() internally

Josef Bacik <[email protected]>
blk-mq: keep sharing tags fairly after a queue update

Josef Bacik <[email protected]>
block: don't lose the status of a failed flush request

Josef Bacik <[email protected]>
block: fix use-after-free of the disk in sync_bdevs()

Markus Probst <[email protected]>
rtc: s35390a: Read 24-hour mode on access

Alexandre Belloni <[email protected]>
rtc: s35390a: fix typo in comment

Nick Huang <[email protected]>
rtc: s35390a: use u8 instead of char for register buffer

André Draszik <[email protected]>

    rtc: s35390a: drop needless struct s35390a::rtc member

ye xingchen <[email protected]>
rtc: s35390a: Remove the unneeded result variable

Markus Probst <[email protected]>
rtc: s35390a: Fix alarm not disabling

Markus Probst <[email protected]>
rtc: s35390a: Add missing newline to dev_err

Jacob Keller <[email protected]>
ice: set in_use only after preparing Tx timestamp index

Jacob Keller <[email protected]>
ice: handle flushing stale Tx timestamps in ice_ptp_tx_tstamp

Jacob Keller <[email protected]>
ice: cleanup allocations in ice_ptp_alloc_tx_tracker

Jacob Keller <[email protected]>
ice: protect init and calibrating check in ice_ptp_request_ts

Jacob Keller <[email protected]>
ice: handle discarding old Tx requests in ice_ptp_tx_tstamp

Sergey Temerkhanov <[email protected]>
ice: Use more generic names for ice_ptp_tx fields

Joas Antonio dos Santos <[email protected]>
net: dcb: initialize PFC value before calling getpfccfg

Nicolai Buchwitz <[email protected]>
net: bcmgenet: restore the Tx coalescing setting when the rings are rebuilt

Josef Bacik <[email protected]>
blk-cgroup: fix root io.stat byte counts on 32-bit

Josef Bacik <[email protected]>
blk-throttle: don't truncate the cgroup v1 iops limits

Chris Mason <[email protected]>

    nvmet: don't clear sq->ctrl for a Connect with sqsize 0

Chris Mason <[email protected]>
nvmet-rdma: fix double puts after a failed RDMA WRITE

Chris Mason <[email protected]>
nvmet-rdma: disable interrupts under rsp_wr_wait_lock

Chris Mason <[email protected]>
nvmet-rdma: flush nvmet-wq on module exit

Josef Bacik <[email protected]>
nvme-loop: don't BUG() if a scan runs beside a reset

Josef Bacik <[email protected]>
nvmet-tcp: don't read a removed port at Connect time

Josef Bacik <[email protected]>
nvmet-tcp: stop listening when a port is removed

Josef Bacik <[email protected]>
nvmet-auth: take only AUTH_Negotiate for a negotiation

Josef Bacik <[email protected]>
nvmet: don't truncate the length of big discards

Chaitanya Kulkarni <[email protected]>
nvmet: ignore discard return value

Naveen Kumar Chaudhary <[email protected]>
kdb: unify CMD_BUFLEN definition into kdb_private.h

Rongzheng Wang <[email protected]>
nvmet: use the enabled transport when disabling a port

Hannes Reinecke <[email protected]>
nvmet: make TCP sectype settable via configfs

Hannes Reinecke <[email protected]>
nvme: add TCP TSAS definitions

Qing Zhang <[email protected]>
nvmet: protect nvmet_ports_list with nvmet_config_sem

Avi Weiss <[email protected]>
nvmet: prevent double-free after metadata SGL allocation failure

Andrea Parri <[email protected]>
nvmet: zns: reject a NUMD whose byte count wraps

bui duc phuc <[email protected]>
ASoC: xilinx: formatter_pcm: Fix read-modify-write of AUD_CTRL in hw_params

Feng Yang <[email protected]>

    bpf: Fix out-of-bounds btf->types write for split BTF

Ömer Mete Kaya <[email protected]>
usbnet: fix EVENT_RX_PAUSED race in usbnet_skb_return()

Florian Fainelli <[email protected]>
net: dsa: mv88e6xxx: fix 6351 family statistics snapshot

Daniel Machon <[email protected]>
net: lan966x: release the in-flight slot of a stale TX skb

Paul Moses <[email protected]>
perf mmap: Preserve the consumed cursor in forward mode

Paul Moses <[email protected]>
perf mmap: Use the head selected by read_init

Len Brown <[email protected]>
x86_energy_perf_policy: Cleanup: Check fseek() in VM path

Len Brown <[email protected]>
x86_energy_perf_policy: Fix optarg keyword matching

Daniel Machon <[email protected]>
net: lan966x: do not warn on MAC entries that are not port destined

Daniel Machon <[email protected]>

    net: lan966x: do not inject uninitialised bytes past skb->len

Dudu Lu <[email protected]>
net: xps: bound the cleanup loop by the old map's num_tc

Allison Henderson <[email protected]>
net/rds: do not initialize transports after rds_init() failed

Hongfu Li <[email protected]>
rds:Simplify the allocation of slab caches

Cheng Yongkang <[email protected]>
net: tun: hold napi_mutex when deleting NAPI in tun_detach_all()

Sally Marcher <[email protected]>
ALSA: usb-audio: Add correct datainterval in the quirks-table for Microbook II

Nicolai Buchwitz <[email protected]>
net: usb: cdc_mbim: don't enable BHs in tx_fixup under netpoll

Nicolai Buchwitz <[email protected]>
net: usb: cdc_ncm: don't enable BHs in tx_fixup under netpoll

Binbin Deng <[email protected]>
net: atlantic: Unregister before clearing RXNFC rules

Qingfang Deng <[email protected]>
pppoe: drop discovery frames with no MAC header

Tung Nguyen <[email protected]>
tipc: fix refcount panic in tipc_rcv() when receiving shared skb

Jerome Brunet <[email protected]>
clk: cdce925: Size the PLL child name buffer for any int

bui duc phuc <[email protected]>
clk: lmk04832: Handle reset GPIO lookup errors

Eric Dumazet <[email protected]>

    ipmr: clear skb->cb[] in reg_vif_xmit()

alex todadze <[email protected]>
net: stmmac: fix rx checksum offload with extended descriptors

Dudu Lu <[email protected]>
net/sched: taprio: unwind the netdevice notifier if register_qdisc() fails

Alexandre Cassen <[email protected]>
net/sched: act_api: inherit filter offload flags only on new actions

Dudu Lu <[email protected]>
net/sched: gred: keep the qdisc lock while updating the table

Zhang Yi <[email protected]>
ASoC: codecs: es*: Modify the registers related to ALC RECOVERY

Srinivas Kandagatla <[email protected]>
ASoC: codecs: wsa883x: disable runtime PM on unbind

Hungyu Lin <[email protected]>
thermal: Fix CPU mask truncation in power limit trace event

TJ Adams <[email protected]>
block: advance iterator after copy-in for SG_DXFER_TO_FROM_DEV

Nguyen Ngoc Thang <[email protected]>
libceph: reject bad connect_seq in msgr1 READY reply

Yogesh Gaur <[email protected]>
ceph: don't keep a mon_addr string that failed to parse

Xiubo Li <[email protected]>
ceph: mark the superblock active after mounting

Max Kellermann <[email protected]>
ceph: remove unused field i_cap_migration_resv

Henry Martin <[email protected]>
netlink: fix out-of-bounds bitmap access clearing stale mc groups

Ren Tamura <[email protected]>
tools/cgroup: sum shrinker object counts across NUMA nodes

Avi Weiss <[email protected]>
profiling: fix sampling step on 64-bit big-endian systems

Edward Adam Davis <[email protected]>
kernel/reboot: avoid potential deadlocks during suspension

Feng Yang <[email protected]>
bpf: Propagate btf_add_type() errors in btf_check_all_metas()

Haotian Zhang <[email protected]>
scsi: elx: libefc: Fix resource leak in efcport_init() error path

Dudu Lu <[email protected]>
net/sched: etf: initialise the sock_exterr_skb before filling it

Nandor Kracser <[email protected]>
tls: avoid field-spanning write when copying crypto info

Simon Horman <[email protected]>
net: tls: Pass union tls_crypto_context pointer to memzero_explicit

Sabrina Dubroca <[email protected]>
tls: get crypto_info size from tls_cipher_desc in do_tls_setsockopt_conf

Sabrina Dubroca <[email protected]>
tls: extend tls_cipher_desc to fully describe the ciphers

Sabrina Dubroca <[email protected]>
tls: rename tls_cipher_size_desc to tls_cipher_desc

Sabrina Dubroca <[email protected]>
tls: reduce size of tls_cipher_size_desc

Sabrina Dubroca <[email protected]>
tls: add TLS_CIPHER_ARIA_GCM_* to tls_cipher_size_desc

Sabrina Dubroca <[email protected]>
tls: move tls_cipher_size_desc to net/tls/tls.h

Greg Thelen <[email protected]>
selftests/net: tcp_mmap: remove unused -k option and keepflag

Xiaoyan Li <[email protected]>
selftests/net: Add SHA256 computation over data sent in tcp_mmap

Allison Henderson <[email protected]>
net/rds: keep the connected peer's scope id apart from the bound one

Allison Henderson <[email protected]>
net/rds: include the scope id in the sendmsg connection cache check

Eric Dumazet <[email protected]>
net: fix frag_list leak in skb_segment_list() error path

Daniel Machon <[email protected]>

    net: sparx5/lan969x: do not read past skb->len when injecting a frame

Florian Fuchs <[email protected]>
ALSA: sh: aica: Fix spu_memset() stride

Gregory Price (Meta) <[email protected]>
cgroup/cpuset: check effective mems for a movable-only configuration

Xingyuan Mo <[email protected]>
sctp: reject forged cookie peer_addr with unknown address family

Jiale Yao <[email protected]>
regulator: irq: freeze deferred hardware access during suspend

Marco Crivellari <[email protected]>
regulator: irq_helper: replace use of system_wq with system_dfl_wq

Steven Rostedt <[email protected]>
cpuidle: haltpoll: Only define guest_halt_poll_ns tracepoint when used

bui duc phuc <[email protected]>
ASoC: amd: raven: Fix memory leak in acp3x_dma_close()

Michail Andreas Michalopoulos <[email protected]>
ksmbd: select CRYPTO_AES

Ivan Hu <[email protected]>
ACPICA: Initialize parser_state.aml_end in acpi_install_method()

Nickolai Zeldovich <[email protected]>
nsproxy: Fix cred leak in the error path of prepare_nsset()

Avi Weiss <[email protected]>
signal: skip blocked signals in dequeue_synchronous_signal()

Tianyi Chen <[email protected]>
eventpoll: propagate wakeup source creation failure in ep_modify()

Marek Szyprowski <[email protected]>
ASoC: wm8994: follow AIF clock source changes in MCLK gating

Binbin Deng <[email protected]>
tipc: fix use-after-free of broadcast reception link at node release

Rand Deeb <[email protected]>
ata: libata-core: Ignore forced transfer modes the host does not support

Travis Howard <[email protected]>
tg3: Add Datto SIRIS 5 1U Server to restart AER quirk table

Eric Dumazet <[email protected]>
net: shrink the payload-only part of skb dataref to one bit

Tianyi Gao <[email protected]>
veth: schedule the peer's NAPI after XDP_TX when only GRO is enabled

Nikhil P. Rao <[email protected]>
ionic: fix port_info use-after-free on firmware recovery

Daniel Wagner <[email protected]>
nvme-fabrics: clear the poll map if no poll queues are mapped

Daniel Wagner <[email protected]>
nvme-fabrics: limit each queue type to the number of online CPUs

Daniel Wagner <[email protected]>
nvme-fabrics: reset io_queues before computing the queue mapping

Keith Busch <[email protected]>
nvme-fabrics: add queue setup helpers

Sagi Grimberg <[email protected]>
blk-mq-rdma: remove queue mapping helper for rdma devices

Namhyung Kim <[email protected]>
perf c2c: Fix memory leaks on output fields

Waldemar Brodkorb <[email protected]>
sh: Select BINFMT_FLAT_NO_DATA_START_OFFSET for !MMU

Paul E. McKenney <[email protected]>
sh: Emulate one-byte cmpxchg

Marek Szyprowski <[email protected]>
ASoC: samsung: midas_wm1811: run FLL1 at the AIF1 configured rate when idle

Krzysztof Kozlowski <[email protected]>
ASoC: samsung: Use snd_soc_substream_to_rtd() for accessing private_data

Kuninori Morimoto <[email protected]>
ASoC: soc.h: convert asoc_xxx() to snd_soc_xxx()

Kuninori Morimoto <[email protected]>
ASoC: soc-utils.c: add asoc_dummy_dlc

Marek Szyprowski <[email protected]>
ASoC: wm8994: fix MCLK index used for setting MCLK rate

Marek Szyprowski <[email protected]>
ASoC: wm8994: don't lose the AIF clock ratio when staying at 32kHz SYSCLK

Marek Szyprowski <[email protected]>
ASoC: wm8994: fix MCLK gating for AIF clocks sourced from MCLK2

Anil Kaushik <[email protected]>
gtp: hold RCU for the device lookup when adding a PDP context

Anil Kaushik <[email protected]>
gtp: set a valid genl command in PDP context get and dump replies

Takashi Iwai <[email protected]>
platform/x86: ibm_rtl: Fix potential OOB read at signature search

Cen Zhang <[email protected]>
ocfs2: initialize status waiters before publishing them

Joseph Qi <[email protected]>
ocfs2: reserve xattr value tree metadata only once

Carolina Jubran <[email protected]>
net: skbuff: don't copy alloc_cpu in skb header copies

Jakub Kicinski <[email protected]>
net: skbuff: move alloc_cpu into a potential hole

Michail Andreas Michalopoulos <[email protected]>
ksmbd: reject FILE_ATTRIBUTE_TEMPORARY on directories

Mohammed Alquraini <[email protected]>
ksmbd: reject foreign RPC pipe handles on IPC$ read and write

ChenXiaoSong <[email protected]>
smb/server: fix trailing period in generated short names

Shen Lichuan <[email protected]>
ksmbd: Correct typos in multiple comments across various files

Henry Hu <[email protected]>
ksmbd: fix invalid Next offset in interface info replies

Henry Hu <[email protected]>
ksmbd: fix unlocked IPv6 addr_list walk in fsctl_query_iface_info_ioctl()

Henry Hu <[email protected]>
ksmbd: fix link speed query in fsctl_query_iface_info_ioctl()

Mingming Cao <[email protected]>
ibmveth: wait for the RX poll to return before freeing the RX queue

Mingming Cao <[email protected]>
ibmveth: wait for in-flight transmits in ibmveth_close()

Mingming Cao <[email protected]>
ibmveth: return the error when set_channels cannot add TX queues

Mingming Cao <[email protected]>
ibmveth: fix netpoll races with RX replenish

Jiale Yao <[email protected]>
team: reject CAN, IEEE 802.15.4 and 6LoWPAN devices in team_port_add

Ido Schimmel <[email protected]>
ipv6: Hold RCU when emitting route hardware flags notification

Myeonghun Pak <[email protected]>
platform/x86: gpd pocket fan: Cancel work before releasing GPIOs

Eric Dumazet <[email protected]>
ipv6: account route exceptions to the netns of their dst

Sagi Maimon <[email protected]>
net: axienet: release every RX buffer in axienet_dma_bd_release()

Myeonghun Pak <[email protected]>
net: hix5hd2: serialize timeout recovery with interface teardown

Rishikesh Jethwani <[email protected]>
tls: device: protect async RX resync state during device-down

Eric Dumazet <[email protected]>
tcp: tcp_metrics: use the socket netns, not the dst device netns

Fernando Fernandez Mancera <[email protected]>
net: openvswitch: drop IP fragments on SCTP set action

Fernando Fernandez Mancera <[email protected]>
net: openvswitch: skip IPv4 later fragments on TCP/UDP set actions

Rob Herring (Arm) <[email protected]>
dt-bindings: clock: mediatek: Add MT8516 fallbacks

HyeongJun An <[email protected]>
ASoC: cs42l56: Remove the ADC Mute Switch control

Liang Hao <[email protected]>
timers: Clear pending_map on CPU hotplug

Karl Mehltretter <[email protected]>
rtc: class: Make the time32 hctosys limit configurable

Baek Kyu, Kim <[email protected]>
rtc: mpfs: Fix alarm register word order

James Hilliard <[email protected]>
net: stmmac: avoid duplicate XSK TX completions

Matthieu Baerts (NGI0) <[email protected]>
mptcp: options: dss: avoid printing uninit csum

Matthieu Baerts (NGI0) <[email protected]>
mptcp: options: mpc: avoid printing uninit data

Pengfei Zhang <[email protected]>
net: stmmac: xgmac: do not treat TBU as a TX event

EricChan <[email protected]>
net: stmmac: Fix interrupt handling for level-triggered mode in DWC_XGMAC2

Li RongQing <[email protected]>
RDMA/mlx5: Fix CQ resize destination index mask

Jamal Hadi Salim <[email protected]>
net/sched: act_api: reject duplicate actions in a batch

Gregory Price (Meta) <[email protected]>
cgroup/cpuset: use mems_allowed_seq when checking a policy nodemask

Cen Zhang <[email protected]>
ALSA: aloop: Keep the timer source alive until card release

Cen Zhang <[email protected]>
ALSA: pcm: Protect channel-map reads against runtime detach

Peter Zijlstra <[email protected]>
cleanup: Add conditional guard support

Cen Zhang <[email protected]>
ALSA: pcm: Remove channel-map controls before freeing substreams

Thomas Weißschuh <[email protected]>
nios2: ksyms: Declare __mulsi3 export

Sung Byeongchan <[email protected]>
netfilter: xt_dccp: handle reserved options as single-byte

Shuangfeng He <[email protected]>
netfilter: flowtable: use the vlan id, not the full tci, in the tuple key

Julian Anastasov <[email protected]>
ipvs: fix more races around the overload flag

Jérémy Jean <[email protected]>
netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset

Alok Tiwari <[email protected]>
octeontx2-af: Fix CQ enable state tracking after AQ writes

Cen Zhang <[email protected]>
ALSA: oss: Keep emulation modules loaded until object teardown

Cen Zhang <[email protected]>
ALSA: pcm: Protect the unregister notifier traversal

Troy Mitchell <[email protected]>
dt-bindings: vendor-prefixes: Add Sensylink

Serhat Kumral <[email protected]>
RDMA/usnic: Bound buffer size to sizeof(buf) in flowinfo_read()

Zhiwei Zhang <[email protected]>

    RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()

HyeongJun An <[email protected]>
ASoC: tlv320aic32x4: Fix definition of TAS2505 HP Driver Gain Volume control

Dmitry Torokhov <[email protected]>
ASoC: tlv320aic32x4: clean up driver code formatting and logging

Dmitry Torokhov <[email protected]>
ASoC: tlv320aic32x4: move regmap_config into i2c and spi drivers

Biju Das <[email protected]>

    ASoC: tlv320aic32x4-spi: Simplify probe()

Biju Das <[email protected]>

    ASoC: tlv320aic32x4-i2c: Simplify probe()

Biju Das <[email protected]>

    ASoC: codec: tlv320aic32x4: Add enum aic32x4_type to aic32x4_probe()

Krzysztof Kozlowski <[email protected]>
ASoC: codecs: tlv320aic32x4: Fix Wvoid-pointer-to-enum-cast warning

HyeongJun An <[email protected]>
ASoC: codecs: sta350: Fix definition of limiter threshold controls

HyeongJun An <[email protected]>
ASoC: codecs: sta32x: Fix definition of limiter threshold controls

Serhat Kumral <[email protected]>
RDMA/srp: Avoid reading uninitialized has_port on srp_parse_in() failure

Leon Romanovsky <[email protected]>
RDMA/core: Reject LAG selection when source MAC lookup fails

Leon Romanovsky <[email protected]>
RDMA/core: Free unpublished port statistics after initial-read failure

Leon Romanovsky <[email protected]>
RDMA/core: Preserve the selected source GID on failed AH modification

Igor Velkov <[email protected]>
power: supply: gpio-charger: Report discharging without input power

Aleksandr Nogikh <[email protected]>
usb: gadget: dummy_hcd: prevent unbind via sysfs

Igor Skalkin <[email protected]>
usb: gadget: dummy_hcd: fix SuperSpeed ep0 maxpacket

Josef Bacik <[email protected]>
bpf: Use the socket of a sk_lookup test run under RCU

Alexei Starovoitov <[email protected]>
bpf: Don't take a program with a target program for an iterator

Florian Westphal <[email protected]>
netfilter: nft_compat: restrict raw table targets/matches

Florian Westphal <[email protected]>
selftests: netfilter: fix return value in zone subtest

Florian Westphal <[email protected]>
selftests: netfilter: conntrack_vrf.sh: prefer socat, not iperf3

Florian Westphal <[email protected]>
selftests: netfilter: conntrack_vrf.sh: move to lib.sh infra

Florian Westphal <[email protected]>
netfilter: conntrack: fix unlikely UaF in gc worker

Josef Bacik <[email protected]>
bpf: Don't take an extension for an iterator program

Josef Bacik <[email protected]>
bpf: Bound the nesting that the BTF show code follows

Alexei Starovoitov <[email protected]>
bpf: Clear sk_refcnt of a clone before its storage is linked

Josef Bacik <[email protected]>
bpf: Update the SRH state if End.B6 fails late

Josef Bacik <[email protected]>
bpf: Pull the inner header for End.DT6 in End.BPF

Josef Bacik <[email protected]>
bpf: Validate the SRH which End.DT6 uncovers in End.BPF

Josef Bacik <[email protected]>
bpf: Don't let bpf_skb_adjust_room() use up the MSS

Jakub Sitnicki <[email protected]>
bpf: Make bpf_skb_adjust_room metadata-safe

Jakub Sitnicki <[email protected]>
net: Helper to move packet data and metadata after skb_push/pull

Jiayuan Chen <[email protected]>
bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields

Brad Fitzpatrick <[email protected]>
gre: keep the UDP tunnel GSO type when completing GRO

Joas Antonio dos Santos <[email protected]>
calipso: update payload_len when removing the CALIPSO option

HyeongJun An <[email protected]>
ASoC: codecs: sta350: Fix definition of Ch2 and Ch3 Volume Bypass controls

HyeongJun An <[email protected]>
ASoC: codecs: sta32x: Fix definition of Ch2 and Ch3 Volume Bypass controls

HyeongJun An <[email protected]>
ASoC: codecs: tlv320adc3xxx: Fix definition of AGC Target Level control

HyeongJun An <[email protected]>
ASoC: codecs: da732x: Fix definition of ADC2 EQ Overall Volume control

Sasha Levin <[email protected]>
ARC: Strip libgcc debug information when generating BTF

Piotr Gliźniewicz <[email protected]>
ALSA: 6fire: take stream_mutex in the Digital Thru control

Ömer Mete Kaya <[email protected]>
usbnet: fix smp_processor_id() use in preemptible context

Fabrice Derepas <[email protected]>
ima: reject a kexec buffer whose declared size exceeds the buffer

Tao Cui <[email protected]>
blk-iocost: account zone append completions in latency stats

Tao Cui <[email protected]>
blk-iocost: charge zone appends as writes

Yuan Chen <[email protected]>
bpftool: Fix inverted tracefs validation when scanning /proc/mounts

Matheus Alves de Almeida <[email protected]>
HID: wacom: fix wacom_intuos_irq NULL pen_input deref

Qiliang Yuan <[email protected]>
selftests/bpf: Unmount the bpffs that cgroup_hierarchical_stats mounted

Qiliang Yuan <[email protected]>
selftests/bpf: Keep the bpffs of cgroup_hierarchical_stats private

Stefano Munari <[email protected]>
net: usb: lan78xx: reject invalid EEPROM write requests

Jérémy Jean <[email protected]>
macsec: prevent AES-GCM nonce reuse after packet number wrap

KaFai Wan <[email protected]>
selftests/bpf: Fix prog_tests framework subtest count checks

Donggeun Yoo <[email protected]>
tracing: Print a signed histogram key as signed

Atharva Vartak <[email protected]>
net/smc: hold a reference on net_device returned by pnet_find_base_ndev()

Donggeun Yoo <[email protected]>
tracing: Clamp the printed end of a histogram bucket at U64_MAX

Steven Rostedt (Google) <[email protected]>
tracing/histogram: Document variable stacktrace

Masami Hiramatsu (Google) <[email protected]>
tracing: docs: Update histogram doc for .percent/.graph and 'nohitcount'

Donggeun Yoo <[email protected]>
tracing: Print the bucket size as unsigned

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix ETDM probe error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix HDMI TX startup error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix ETDM startup error handling

Trevor Wu <[email protected]>
ASoC: mediatek: mt8195: add dai id check before accessing array

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix ETDM MCLK error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Propagate IRQ lookup errors

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix runtime resume error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Check paired MEMIF clock enable in FE trigger

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix FE startup error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix paired memif clock error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix main clock error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix timing system clock error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix register access clock error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix tuner clock error handling

Amadeusz Sławiński <[email protected]>
ASoC: soc-component: Fix return type of snd_soc_pcm_component_pointer()

Amadeusz Sławiński <[email protected]>
ASoC: soc-ac97: Fix error handling in snd_soc_new_ac97_component()

Amadeusz Sławiński <[email protected]>
ASoC: ops: Fix return value in snd_soc_limit_volume()

Amadeusz Sławiński <[email protected]>
ASoC: soc-link: Correct stream stop operations in snd_soc_link_trigger

Hongbo Li <[email protected]>
ASoC: remove unused substream in macro soc_link_mark_pop

Abraham Zukor <[email protected]>
spi: tegra114: initialize native chip selects inactive

Sasha Levin <[email protected]>
selftests: keep the build status from wrapping to success

Michael Auer <[email protected]>
ASoC: qcom: sdm845: Disable the quaternary MI2S bit clock on shutdown

Robert Oscilowski <[email protected]>
ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format

Alexey Klimov <[email protected]>
ASoC: qcom: sdm845: add handling of secondary MI2S clock

Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Prevent module info underflow

Jacob Moroni <[email protected]>
RDMA/irdma: Fix FRWR IRDMAQPSQ_PBLADDR field population

Serhat Kumral <[email protected]>
IB/rdmavt: Fix error unwind path for qp_priv_init() in rvt_create_qp()

Sasha Levin <[email protected]>
kselftest/arm64: signal: copy each test binary only once

Takashi Iwai <[email protected]>
ALSA: core: Serialize snd_refcount put and sync

Qiliang Yuan <[email protected]>
selftests/bpf: Create the vxlan devices of test_tunnel with their MAC

Youngsung Ahn <[email protected]>

    RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]

Youngsung Ahn <[email protected]>

    RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]

Youngsung Ahn <[email protected]>
RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()

Youngsung Ahn <[email protected]>
RDMA/rxe: refuse to destroy a QP with type 2 MWs still bound

Takashi Iwai <[email protected]>
ALSA: pcm: Add refcount for races between drain and unlink

Takashi Iwai <[email protected]>
ALSA: Add simple refcount helper functions

Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Don't free the tables of an enabled ITS

Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Don't free a vPE table shared with another ITS

Steven Price <[email protected]>
irqchip/gic-v3-its: Share ITS tables with a non-trusted hypervisor

Marc Zyngier <[email protected]>
irqchip/gic-v3-its: Split allocation from initialisation of its_node

Johan Hovold <[email protected]>
irqchip/gic-v3-its: Use irq_domain_create_hierarchy()

Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Clear vpt_page after freeing the pending table

Carolina Jubran <[email protected]>
IB/IPoIB: Cancel normal flush work on device stop

Sagi Maimon <[email protected]>
net: axienet: free outstanding TX buffers in axienet_dma_bd_release()

Kyrylo Biryuk <[email protected]>
ata: libahci: re-enable FBS after error handling on a port multiplier

Long Zhao <[email protected]>
dt-bindings: vendor-prefixes: add Ambarella

Xingui Yang <[email protected]>
scsi: libsas: Fix out-of-bounds memcpy() in sas_ssp_task_response()

Nicolai Buchwitz <[email protected]>
net/mlx5e: use skb_share_check() in the loopback selftest hook

Nicolai Buchwitz <[email protected]>
net: stmmac: selftests: use skb_share_check() in the loopback receive hook

Nicolai Buchwitz <[email protected]>
net: selftests: use skb_share_check() in the loopback receive hook

Cen Zhang <[email protected]>
Bluetooth: MSFT: Serialize handle map cleanup with event processing

Hilda Wu <[email protected]>
Bluetooth: msft: Extended monitor tracking by address filter

Hilda Wu <[email protected]>
Bluetooth: btusb: Ignore zero length of USB packets on ALT 6 for specific chip

Hilda Wu <[email protected]>
Bluetooth: btrtl: Add btrealtek data struct

Kiran K <[email protected]>
Bluetooth: btintel: Zero version data before parsing TLVs

Laxman Acharya Padhya <[email protected]>
Bluetooth: btintel: propagate version TLV parsing errors

Cen Zhang <[email protected]>
Bluetooth: hci_sync: Protect IRK identity reads with RCU

Cen Zhang <[email protected]>
Bluetooth: 6lowpan: Drain RCU readers on registration failure

Cen Zhang <[email protected]>
Bluetooth: msft: Lock failed probe cleanup against feature readers

Cen Zhang <[email protected]>
Bluetooth: MGMT: Reject quality report requests during unregister

Cen Zhang <[email protected]>
Bluetooth: ISO: Hold the listener during disconnect notification

Cen Zhang <[email protected]>
Bluetooth: hci_sync: Serialize devcoredump reset during device open

Cen Zhang <[email protected]>
Bluetooth: hci_core: Keep RCU protection through LTK filtering

Hitalo Souza <[email protected]>
Bluetooth: Add missing newline to bt_dev_{err,warn}_ratelimited()

Cen Zhang <[email protected]>
Bluetooth: 6LoWPAN: Use RCU-safe device list removal

Luiz Augusto von Dentz <[email protected]>
Bluetooth: MGMT: Fix leaking instance on Add Extended Advertising Parameters

Luiz Augusto von Dentz <[email protected]>
Bluetooth: MGMT: Fix pending state of instances added without HCI traffic

Luiz Augusto von Dentz <[email protected]>

    Bluetooth: HCI: Fix tracking of instances sharing handle 0x00

Luiz Augusto von Dentz <[email protected]>
Bluetooth: MGMT: Fix advertising instances with Global Advertising

Kiran K <[email protected]>
Bluetooth: btusb: Preserve event and ACL packet ordering

Zijun Hu <[email protected]>
Bluetooth: btusb: Make btusb_recv_{event,acl}() take struct hci_dev *

Pauli Virtanen <[email protected]>
Bluetooth: L2CAP: hold chan in l2cap_ecred_conn_rsp()

Mohamad Raizudeen <[email protected]>
PCI: Fix out-of-bounds MMIO read in nvme_disable_and_flr()

Marek Szyprowski <[email protected]>
ARM: 9519/1: dma-mapping: Fix wrong free function in __iommu_alloc_simple() error path

Karl Mehltretter <[email protected]>
ARM: 9492/1: alignment: fix LSR #32 and ASR #32 offset decoding

Atul Akella <[email protected]>
rpmsg: virtio: fix error handling in TX buffer wait

Patrick Oppenlander <[email protected]>
rpmsg: virtio: EPOLLOUT support

Dr. David Alan Gilbert <[email protected]>
rpmsg: virtio: Remove uncallable offchannel functions

Avi Weiss <[email protected]>
rpmsg: mtk: release channel OF node on device teardown

HyeongJun An <[email protected]>
ASoC: codecs: wm8510: Fix definition of ADC Inversion Switch control

HyeongJun An <[email protected]>
ASoC: codecs: wm8750: Fix definition of ALC Capture NG Type control

HyeongJun An <[email protected]>
ASoC: codecs: wm5100: Fix definition of EQ3 Band 1 Volume control

HyeongJun An <[email protected]>
ASoC: codecs: wm8737: Fix definition of zero cross switches

HyeongJun An <[email protected]>
ASoC: codecs: wm_hubs: Fix definition of MIXINR to MIXOUTR volume control

HyeongJun An <[email protected]>
ASoC: codecs: wm8955: Fix definition of Treble Cutoff control

HyeongJun An <[email protected]>
ASoC: codecs: wm8994: Fix definition of WM8958 noise gate hold time controls

HyeongJun An <[email protected]>
ASoC: codecs: wm8985: Fix definition of ADC 128x Oversampling control

HyeongJun An <[email protected]>
ASoC: codecs: wm8983: Fix definition of ADC 128x Oversampling control

HyeongJun An <[email protected]>
ASoC: codecs: wm8991: Fix definition of LOMIX AINLMUX Bypass Volume control

HyeongJun An <[email protected]>
ASoC: codecs: wm8991: Fix definition of right input PGA controls

HyeongJun An <[email protected]>
ASoC: codecs: wm8990: Fix definition of LOMIX AINLMUX Bypass Volume control

HyeongJun An <[email protected]>
ASoC: codecs: wm8990: Fix definition of right input PGA controls

Tim Douglas <[email protected]>
serial: pmac_zilog: report received breaks

Cen Zhang <[email protected]>
ALSA: pcm: Unlink substreams before releasing them

Johannes Berg <[email protected]>
wifi: cfg80211: track SSID regardless of country data

Julian Anastasov <[email protected]>
ipvs: fix buffer overflow when sending sync messages

Binbin Deng <[email protected]>
module: Fix uninitialized count read of unloaded taint tracking record

Karl Mehltretter <[email protected]>
thermal: ti-soc-thermal: Fix the return value in ti_bandgap_get_sensor_data() kernel-doc

Florian Fainelli <[email protected]>
tools/thermal/tmon: Fix string truncation warning in optarg copy

Weigang He <[email protected]>
thermal/drivers/sprd: validate the sensor id from the device tree

Takashi Iwai <[email protected]>
ALSA: usb-audio: Use fixed control index for us16x08 mixer elements

Cen Zhang <[email protected]>
ALSA: vmaster: Serialize hook registration with control callbacks

Takashi Iwai <[email protected]>
ALSA: line6: Use kzalloc() for PCM buffer allocation

Takashi Iwai <[email protected]>
ALSA: jack: Fix kctl free at error in snd_jack_kctl_new()

Amadeusz Sławiński <[email protected]>
ALSA: pcm: Fix driver_tstamp value reporting

Nguyen Ngoc Thang <[email protected]>
ocfs2: validate chunk and block counts of the local quota file

Joseph Qi <[email protected]>
ocfs2: fix possible deadlock between nfs_sync_rwlock and fs_reclaim

Joseph Qi <[email protected]>
ocfs2: retain all security xattrs during inode creation

Zhiling Zou <[email protected]>
lib: validate in-memory LZ4 chunk length

Karl Mehltretter <[email protected]>
sh: sh7785lcr: Register the PCA9564 controller as I2C bus 0

bui duc phuc <[email protected]>
ASoC: atmel-i2s: use optional API for gclk

bui duc phuc <[email protected]>
ASoC: atmel-i2s: use optional API for muxclk

bui duc phuc <[email protected]>
ASoC: atmel-i2s: fix MCK generator error handling

bui duc phuc <[email protected]>
ASoC: intel: atom: Fix .shutdown() being skipped on rollback

bui duc phuc <[email protected]>
ASoC: Intel: atom: Use scoped_guard() for scoped locking

bui duc phuc <[email protected]>
ASoC: intel: atom: Use __free(kfree) for stream pointer

bui duc phuc <[email protected]>
ASoC: imx-pcm-rpmsg: Fix imx_rpmsg_pcm_close() being skipped on rollback

bui duc phuc <[email protected]>
ASoC: atmel: atmel-pcm-pdc: Fix atmel_pcm_close() being skipped on rollback

bui duc phuc <[email protected]>
ASoC: amd: yc: Fix acp6x_pdm_dma_close() being skipped on rollback

bui duc phuc <[email protected]>
ASoC: amd: vangogh: Fix acp5x_dma_close() being skipped on rollback

bui duc phuc <[email protected]>
ASoC: amd: renoir: Fix acp_pdm_dma_close() being skipped on rollback

bui duc phuc <[email protected]>
ASoC: amd: raven: Fix acp3x_dma_close() being skipped on rollback

bui duc phuc <[email protected]>
ASoC: amd: ps: Fix acp63_pdm_dma_close() being skipped on rollback

bui duc phuc <[email protected]>
ASoC: amd: acp: Fix .close() being skipped on rollback

Mingxuan Guo <[email protected]>

    firmware: cs_dsp: clear dsp->running on the cs_dsp_run() error path

Sung Byeongchan <[email protected]>
nvmet-auth: reject undersized AUTH_SEND payloads

Palla Raghunath <[email protected]>
nvmet-fc: don't drop the last assoc reference in nvmet_fc_delete_ctrl()

Surabhi Gogte <[email protected]>
nvme-tcp: store and use the caller's network namespace

Peijie Shao <[email protected]>
nvme-tcp: fix selinux denied when calling sock_sendmsg

Keith Busch <[email protected]>
nvme: tcp: split controller bringup handling

Heiko Carstens <[email protected]>
s390/uprobes: Fix off-by-one bug in emulated PER handling

Konrad Dybcio <[email protected]>
clk: qcom: rcg2: Clear force enable after rate failure

Konrad Dybcio <[email protected]>
clk: qcom: rcg2: Propagate force-enable status errors

Konrad Dybcio <[email protected]>
clk: qcom: rcg2: Initialize shared floor clock state

Abel Vesa <[email protected]>
clk: qcom: mmcc-sdm660: Fix MDSS AHB clock HWCG register offset

Abel Vesa <[email protected]>
clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset

Yuho Choi <[email protected]>
bus: arm-cci: Drop cci-control-port node reference in __cci_ace_get_port()

Yuho Choi <[email protected]>
bus: arm-cci: Drop CPU node reference in cci_ace_init_ports()

Linkai Gong <[email protected]>
char: scx200_gpio: check cdev_add() return value

Weigang He <[email protected]>
thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove

Yogesh Gaur <[email protected]>
comedi: pcmuio: validate the IRQs supplied by userspace

Yogesh Gaur <[email protected]>
comedi: pcmmio: validate the IRQ supplied by userspace

Yogesh Gaur <[email protected]>
comedi: dmm32at: validate the IRQ supplied by userspace

Yogesh Gaur <[email protected]>
comedi: dt2814: validate the IRQ supplied by userspace

Yogesh Gaur <[email protected]>
comedi: ni_atmio16d: validate the IRQ supplied by userspace

Yogesh Gaur <[email protected]>
comedi: comedi_parport: validate the IRQ supplied by userspace

Thomas Fourier <[email protected]>
net: alacritech: fix dma_free_coherent() in error path

Tapio Reijonen <[email protected]>

    serial: max310x: don't power down the port mid-transmission on close

Tapio Reijonen <[email protected]>

    serial: max310x: fix RS485 delays being programmed as bit-times

Tapio Reijonen <[email protected]>

    serial: max310x: centralize the RS485 transceiver programming

Tapio Reijonen <[email protected]>

    serial: max310x: fix breaks not reaching the wire in RS485 mode

Hugo Villeneuve <[email protected]>

    serial: max310x: use common power function for all variants

Hugo Villeneuve <[email protected]>

    serial: max310x: use common detect function for all variants

Hugo Villeneuve <[email protected]>

    serial: max310x: simplify probe() and remove() error handling

Hugo Villeneuve <[email protected]>

    serial: max310x: remove holes in struct max310x_devtype

Hugo Villeneuve <[email protected]>

    serial: max310x: remove trailing whitespaces

Tapio Reijonen <[email protected]>

    serial: max310x: don't clobber the TX break bit in set_termios

Jiayuan Chen <[email protected]>
tcp_cubic: fix divide by zero and endless loop on bad module params

Jiayuan Chen <[email protected]>

    tcp_hybla: fix divide by zero on rtt0 == 0

Jiayuan Chen <[email protected]>

    tcp_bic: fix divide by zero on max_increment == 0

Chien Wong <[email protected]>
wifi: mac80211: reserve MME tailroom for protected beacons

Chien Wong <[email protected]>
wifi: mac80211: fix encryption tailroom

Haitam Lazaar <[email protected]>
RDMA/siw: Enforce IB_ACCESS_REMOTE_READ for read responses

Luca Leonardo Scorcia <[email protected]>
clocksource/drivers/timer-mediatek: Fix random crash at boot

Joas Antonio dos Santos <[email protected]>
calipso: hash the cache key, not the option start, in calipso_cache_add()

Manivannan Sadhasivam <[email protected]>
PCI: qcom: Honor IOMMU provider's #iommu-cells in qcom_pcie_config_sid_1_9_0()

Myeonghun Pak <[email protected]>
fbdev: gxt4500: Release WC setup on probe failure

Jiale Yao <[email protected]>
platform/olpc: Reserve space for a string terminator

Aleksandrova Alyona <[email protected]>
platform/x86: intel_telemetry: initialize default trace verbosity

Ahmed Yaseen <[email protected]>
platform/x86: asus-wmi: validate custom fan curves on enable

Cen Zhang <[email protected]>
ALSA: jack: Remove debugfs before freeing unregistered jacks

Takashi Iwai <[email protected]>
ALSA: control: Take controls_rwsem lock in snd_ctl_remove()

Dan Carpenter <[email protected]>
mm/hmm/test: reject overflowing page counts

Jiale Yao <[email protected]>
wifi: ath11k: avoid IDR mutation during vif mgmt TX cleanup

Jiale Yao <[email protected]>
wifi: ath11k: avoid IDR mutation during pending mgmt TX cleanup

Jiale Yao <[email protected]>
wifi: ath10k: avoid IDR mutation during TX cleanup

Kunwu Chan <[email protected]>
rcutorture: Fix divide-by-zero with fwd_progress_div=1

bui duc phuc <[email protected]>
ASoC: codecs: rt5659: propagate GPIO errors

Roberto Bergantinos Corpas <[email protected]>
nfs: set gencount on protocol-specific remove

Haotian Zhang <[email protected]>
mtd: rawnand: pl353: fix clk reference leak in pl35x_nfc_setup_interface()

bui duc phuc <[email protected]>
power: supply: generic-adc-battery: Propagate charged GPIO errors

Sebastian Reichel <[email protected]>
power: supply: generic-adc-battery: convert to managed resources

Filipe Manana <[email protected]>
btrfs: qgroup: fix swapped blocks existence check when tracing after COW

Qu Wenruo <[email protected]>
btrfs: qgroup: do not treat "ret > 0" as error when deleting a qgroup

Johannes Thumshirn <[email protected]>
btrfs: zoned: fix double list add in btrfs_load_block_group_zone_info

Filipe Manana <[email protected]>
btrfs: fix dangling nodes in tree-mod-log after error in btrfs_tree_mod_log_insert_root()

Filipe Manana <[email protected]>
btrfs: avoid tree mod log ENOMEM failures when we don't need to log

Filipe Manana <[email protected]>
btrfs: fix off by one super block end offset calculation when writing super blocks

Qu Wenruo <[email protected]>
btrfs: refactor read_key_bytes() to remove the dest_folio parameter

Yichong Chen <[email protected]>
btrfs: retry verity reads for not-uptodate Merkle folios

Li Zetao <[email protected]>
btrfs: convert read_key_bytes() to take a folio

Matthew Wilcox (Oracle) <[email protected]>
btrfs: convert btrfs_read_merkle_tree_page() to use a folio

Tal Zussman <[email protected]>
block: honor IOCB_NOWAIT in the block device buffered read path

Jiale Yao <[email protected]>
ACPI: PCI: pci_link: clear driver_data before free

Adrián Larumbe <[email protected]>
drm/panfrost: Explicitly enable MMU interrupts at device init

Prathamesh Deshpande <[email protected]>
RDMA/mlx5: Cancel software CQ notifications before teardown

Mark Zhang <[email protected]>
RDMA/mlx5: Support driver APIs pre_destroy_cq and post_destroy_cq

Prathamesh Deshpande <[email protected]>
RDMA/mlx5: Cancel deferred page-fault EQ work before teardown

Anup Vishwakarma <[email protected]>
mailbox: qcom-ipcc: remove stray disable_irq_wake() call

Linkai Gong <[email protected]>
mailbox: arm_mhuv2: time out if the receiver never comes up

Beleswar Padhi <[email protected]>
mailbox: ti-msgmgr: Read exact number of trailing message bytes

Breno Leitao <[email protected]>
mailbox: pcc: Free the channel before unmapping the shared memory

Sang-Hoon Choi <[email protected]>
xhci: dbc: lock the minor IDR on registration failure

Kees Cook <[email protected]>
kbuild: Mark the initcall ordering recipe as recursive

Maxim Skokov <[email protected]>
bpf: test_run: Fix false -EBADMSG after skb leaves CHECKSUM_COMPLETE

Takashi Iwai <[email protected]>
ALSA: hda: Add NULL check for the driver pointer at unsol event work

Ting-Han Hou <[email protected]>
clang-tools: Import os for broken pipe handling

Leon Romanovsky <[email protected]>
PCI/P2PDMA: Gate the host bridge whitelist warning on verbose

Leon Romanovsky <[email protected]>
PCI/P2PDMA: Safely terminate ACS redirect lists

Antoni Pokusinski <[email protected]>

    rtc: abx80x: properly handle shared IRQs

Antoni Pokusinski <[email protected]>

    rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()

Johannes Berg <[email protected]>
wifi: cfg80211: reg: protect regdb pointer with RCU

Jamal Hadi Salim <[email protected]>
net: rtnl: introduce rcu_replace_pointer_rtnl

Randy Dunlap <[email protected]>
wifi: cfg80211: fix header kernel-doc typos

Johannes Berg <[email protected]>
wifi: mac80211: init radiotap iter after length checks

Johannes Berg <[email protected]>
wifi: mac80211: kill wake_txqs_tasklet on unregistration

Johannes Berg <[email protected]>

    wifi: mac80211: mesh: use hlist_add_head_rcu()

Johannes Berg <[email protected]>
wifi: mac80211: clear fragment cache entry 'is_protected'

Johannes Berg <[email protected]>
wifi: ath6kl: don't take RTNL in del_virtual_intf

Takashi Iwai <[email protected]>
ALSA: hda: intel: Cancel delayed work at shutdown, too

Takashi Iwai <[email protected]>
ALSA: line6: Fix potential OOB write in line6_capture_copy()

Takashi Iwai <[email protected]>
ALSA: line6: Reject too small max packet sizes

Takashi Iwai <[email protected]>
ALSA: caiaq: Fix races at MIDI URB and trigger accesses

Jan Beulich <[email protected]>
x86/PVH: don't truncate initrd address/size

Gui-Dong Han <[email protected]>
xen/blkback: Prevent missed completion when draining I/O

Ruoyu Wang <[email protected]>
xen/pcifront: Fix PCI device reference leak in AER handling

Jake Labelle <[email protected]>
nilfs2: reject non-regular inodes in dsync recovery

Rosen Penev <[email protected]>
crypto: talitos - init tasklets before requesting IRQs

Rosen Penev <[email protected]>
crypto: talitos - Use platform_get_irq() to retrieve interrupt

Rosen Penev <[email protected]>
crypto: talitos - use devm_platform_ioremap_resource()

Rosen Penev <[email protected]>
crypto: talitos - allocate channels with main struct

Takashi Iwai <[email protected]>
ALSA: hda: Avoid non-operational GPU warning at regular device removal

Takashi Iwai <[email protected]>
ALSA: info: Fix memory leak at card removal

Takashi Iwai <[email protected]>
ALSA: info: Use guard() for locking

Takashi Iwai <[email protected]>

    ALSA: core: Add missing barriers for power_ref vs card->shutdown

Takashi Iwai <[email protected]>
ALSA: core: Remove superfluous CONFIG_PM

Takashi Iwai <[email protected]>
ALSA: usb-audio: Fix invalid UAC2/3 mixer unit matrix evaluation

Takashi Iwai <[email protected]>
ALSA: usb-audio: Check mixer matrix size for UAC2/3 at parsing

Takashi Iwai <[email protected]>
ALSA: hda: Fix potential UAF for gating jack

Krzysztof Wilczyński <[email protected]>
PCI/sysfs: Handle a malformed _DSM result in acpi_attr_is_visible()

Krzysztof Wilczyński <[email protected]>
PCI/sysfs: Stop reporting _DSM failures as -EPERM

bui duc phuc <[email protected]>
ASoC: mediatek: common: Handle constraint return value in FE startup

Melissa Wen <[email protected]>
drm/amd/display: use right type for amdgpu_dc_performance event entries

Melissa Wen <[email protected]>
drm/amd/display: remove duplicated prev_p_state_change_support assignment

Melissa Wen <[email protected]>
drm/amd/display: assign missing trace entry in amdgpu_dm_dc_clocks_state

Ting-Han Hou <[email protected]>
checkkconfigsymbols.py: Parse Git status output line by line

bui duc phuc <[email protected]>
ASoC: rockchip: rockchip_i2s: Handle runtime PM resume failures in set_fmt

Cristian Papa <[email protected]>
wifi: mt76: feed the station RSSI average from the chain signals

Ryder Lee <[email protected]>
wifi: mt76: mt7915: add ack signal support

Ryder Lee <[email protected]>
wifi: mt76: mt7915: improve accuracy of time_busy calculation

Pengpeng Hou <[email protected]>
wifi: mt76: mt7615: validate MCU response lengths

Ahmed Naseef <[email protected]>
wifi: mt76: mt7615: read MT7663 temperature from the correct offset

Jiale Yao <[email protected]>
wifi: mt76: mt7615: usb: fix source overread in mt7663u_copy

Jiale Yao <[email protected]>
wifi: mt76: usb: fix source overread in mt76u_copy

Jiale Yao <[email protected]>
wifi: mt76: mt76x02: validate RX padding before use

Ryan Leung <[email protected]>
wifi: mt76: fix unlocked wcid check in mt76_tx_status_skb_add()

Devin Wittmayer <[email protected]>
wifi: mt76: mt7921: fix the lock inversion in suspend and resume

Devin Wittmayer <[email protected]>

    wifi: mt76: mt7921: fix lock inversion between dev->mutex and iflist_mtx

Neil Chen <[email protected]>
wifi: mt76: mt7921: fix rx filter incorrect by drv/fw inconsistent

Felix Fietkau <[email protected]>
wifi: mt76: mt7915: check default EEPROM firmware size before copying

Jiale Yao <[email protected]>
pinctrl: sprd: free maps on DT map failure

Leizhen Zhang <[email protected]>
gen_init_cpio: stop parsing on lines with a missing argument list

Takashi Iwai <[email protected]>
ALSA: caiaq: Allow zero-length packet handling for EP1

Priyank Rathod <[email protected]>
PCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices()

Robert Richter <[email protected]>
PCI/AER: Forward RCH downstream port-detected errors to the CXL.mem dev handler

Dave Jiang <[email protected]>
PCI/AER: Add optional logging callback for correctable error

Joseph Qi <[email protected]>
ocfs2: reject inconsistent xattr bucket during defrag

Wilson Felipe Pereira <[email protected]>
init/main: fix false-positive kernel panic on environment variable overwrite

Wilson Felipe Pereira <[email protected]>
init/main: fix off-by-one in argv_init cleanup

Florian Schmaus <[email protected]>
selftests/epoll: fix race condition in multi-waiter wakeup tests

Joseph Qi <[email protected]>
ocfs2: fix deadlock in inline-data truncate transactions

Petr Vorel <[email protected]>
checkpatch: skip CamelCase cache for --no-tree without root

Ryusuke Konishi <[email protected]>
nilfs2: fix link count underflow when removing corrupted directory

Marc Kleine-Budde <[email protected]>
spi: spi-sun4i: sun4i_spi_handler(): fix race condition between transfer completion and RX FIFO interrupt

Marc Kleine-Budde <[email protected]>
spi: spi-sun4i: sun4i_spi_transfer_one(): fix setting of clock rate

Wolfram Sang <[email protected]>
spi: sun4i: use 'time_left' variable with wait_for_completion_timeout()

Marc Kleine-Budde <[email protected]>
spi: spi-sun4i: sun4i_spi_fill_fifo(): always apply A10 FIFO fill level workaround

Marc Kleine-Budde <[email protected]>
spi: spi-sun4i: sun4i_spi_transfer_one(): fix transfers for SUN4I_FIFO_DEPTH

Linus Walleij <[email protected]>
dt-bindings: dma: dma40: Restore disabled-channels

Linus Walleij <[email protected]>
dt-bindings: dma: dma40: Prefer to pass sram through phandle

Krzysztof Kozlowski <[email protected]>
dt-bindings: dma: cleanup examples - indentation, lowercase hex

Jason Gunthorpe <[email protected]>
efi/libstub: Fix error unwind freeing fdt in allocate_new_fdt_and_exit_boot()

Pengpeng Hou <[email protected]>
sh: defconfig: Enable the current M66592 UDC symbol

Florian Fuchs <[email protected]>
sh: uaccess: Require offsettable operands for 64-bit user access

Eric Dumazet <[email protected]>
ipv4: fix IP ID reuse in ip_select_ident_segs()

Chen-Yu Tsai <[email protected]>
arm64: dts: allwinner: sun50i-h6: Add missing IOMMU for video engine

Chen-Yu Tsai <[email protected]>
arm64: dts: allwinner: sun50i-h6: Add missing SRAM region for video engine

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate memcpy configuration

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate fixed physical channel indexes

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix V4B event group mapping

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix event group bounds

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix logical channel bounds check

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Reject direction changes after allocation

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate DMA specifier length

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate disabled channel indexes

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix memcpy channel parsing

Rosen Penev <[email protected]>
dmaengine: ste_dma40: turn d40_base phy_chans into a flexible array

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Pass dev to OF function

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Put the LCPA SRAM node

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix probe LCLA free

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix LCLA allocation order

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix probe IRQ leak

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Use managed resources

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Remove platform data

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Return IRQ_NONE when no interrupt is pending

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Handle runtime PM resume errors

Sakari Ailus <[email protected]>
dmaengine: ste_dma40: Remove redundant pm_runtime_mark_last_busy() calls

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Check runtime PM in IRQ

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix probe runtime PM disable

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Add dev helper variable

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Get LCPA SRAM from SRAM node

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix failed start cleanup

Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix physical cyclic capability

Guangshuo Li <[email protected]>
floppy: unregister platform device on add_disk failure

Yang Xiuwei <[email protected]>
floppy: avoid NULL deref in reset_interrupt when cont is cleared

Karl Mehltretter <[email protected]>
floppy: flush pending work before releasing resources on init failure

Jérémy Jean <[email protected]>
NFS: filelayout: calculate dense stripe width in 64 bits

Logan Gunthorpe <[email protected]>
dmaengine: plx_dma: fix NULL pointer deref in plx_dma_isr()

Logan Gunthorpe <[email protected]>
dmaengine: ioat: disable relaxed ordering before registering the device

Aloka Dixit <[email protected]>
Revert "wifi: mac80211: do not use old MBSSID elements"

Dan Carpenter <[email protected]>
wifi: carl9170: NUL terminate string in debugfs

Dan Carpenter <[email protected]>
wifi: b43legacy: debugfs: NUL terminate string in debugfs

Dan Carpenter <[email protected]>
wifi: b43: don't pass unterminated string to sscanf()

Dominic White <[email protected]>
wifi: cfg80211: allow zero HE OBSS PD offsets

Xueqin Luo <[email protected]>
cpufreq: sti: avoid NULL dereference in dev_err()

Xueqin Luo <[email protected]>
cpufreq: tegra194: fix double-pointer error in get_cpu_ndiv

Xueqin Luo <[email protected]>
cpufreq: sparc-us2e: fix frequency table index copy-paste error

hpp.iscas <[email protected]>
perf/marvell: cn10k_tad: Publish the OF module alias

Hongyan Xu <[email protected]>
ASoC: mt6359-accdet: manage private workqueues with devres

Yaozhong Li <[email protected]>
arm64: dts: rockchip: disable unused i2s0 on rk3399-firefly

Yaozhong Li <[email protected]>
arm64: dts: rockchip: fix analog headphone output on rk3399-firefly

Detlev Casanova <[email protected]>
arm64: dts: rockchip: Rename rk3566 and rk3568 HDMI audio cards

Dragan Simic <[email protected]>
arm64: dts: rockchip: Prepare RK356x SoC dtsi files for per-variant OPPs

Dragan Simic <[email protected]>
arm64: dts: rockchip: Update CPU OPP voltages in RK356x SoC dtsi

Dragan Simic <[email protected]>
arm64: dts: rockchip: Update GPU OPP voltages in RK356x SoC dtsi

Dragan Simic <[email protected]>
arm64: dts: rockchip: Add GPU OPP voltage ranges to RK356x SoC dtsi

Dragan Simic <[email protected]>
arm64: dts: rockchip: Add cache information to the SoC dtsi for RK356x

Linus Walleij <[email protected]>
ARM: dts: ux500: Use AB8505 charger compatible

Detlev Casanova <[email protected]>
arm64: dts: rockchip: Rename rk3328 HDMI audio card

Jiale Yao <[email protected]>
ASoC: rt711-sdca: always cancel jack work on remove

Jiale Yao <[email protected]>
ASoC: rt711-sdw: always cancel jack work on remove

Jiale Yao <[email protected]>
ASoC: rt5682-sdw: always cancel jack work on remove

Linus Walleij <[email protected]>
power: supply: ab8500_fg: Avoid reserved AB8505 CCConf bit

Linus Walleij <[email protected]>
power: supply: ab8500_fg: Finalize current measurements

Linus Walleij <[email protected]>
power: supply: ab8500_charger: Recover inactive AB8505 charger

Linus Walleij <[email protected]>
power: supply: ab8500_charger: Retry AB8505 USB detection

Linus Walleij <[email protected]>
power: supply: ab8500_charger: Skip absent AB8505 main charger

Linus Walleij <[email protected]>
power: supply: ab8500_charger: Handle detection errors

Linus Walleij <[email protected]>
power: supply: ab8500_charger: Respect AB8505 register layout

Linus Walleij <[email protected]>
power: supply: ab8500_charger: Decode AB8505 USB status

Linus Walleij <[email protected]>
power: supply: ab8500_charger: Fix AC charger re-enable

Linus Walleij <[email protected]>
power: supply: ab8500: Preserve battery termination current

Linus Walleij <[email protected]>
power: supply: ab8500_btemp: Fix event temperature reporting

HyeongJun An <[email protected]>
selftests/alsa: Do not take another control's event as our own

Jan Stancek <[email protected]>
.gitignore: drop Module.markers

Linus Walleij <[email protected]>
dt-bindings: power: supply: ab8500: Add AB8505 charger

Chen-Yu Tsai <[email protected]>
dt-bindings: media: sun4i-a10-video-engine: Fix IOMMU count for H6

Linkai Gong <[email protected]>
clk: imx: composite-93: return timeout from gate enable

Li Youhong <[email protected]>
md/raid5: drain released_stripes before destroying the cache

Nguyen Ngoc Thang <[email protected]>
md: take reconfig_mutex when enabling PPL on an inactive array

Laurence Oberman <[email protected]>
scsi: st: Record the tape position after a successful MTLOAD

Laurence Oberman <[email protected]>
scsi: st: Restore changed drive settings after reset also for MTLOAD and MTRETEN

Niklas Cassel <[email protected]>
scsi: scsi_debug: Refuse a negative physblk_exp

Akash Sukhavasi <[email protected]>
phy: HiSilicon: Fix error handling in hi3670_pcie_allclk_ctrl()

Joonhoe Kim <[email protected]>
drm/msm/dpu: compute the CRTC bandwidth from the state being checked

Dmitry Baryshkov <[email protected]>
drm/msm/dpu: handle perf mode in _dpu_core_perf_crtc_update_bus()

Dmitry Baryshkov <[email protected]>
drm/msm/dpu: drop core_clk_rate overrides from _dpu_core_perf_calc_crtc

Dmitry Baryshkov <[email protected]>
drm/msm/dpu: make fix_core_ab_vote consistent with fix_core_ib_vote

Dmitry Baryshkov <[email protected]>
drm/msm/dpu: change ib values to u32

Dmitry Baryshkov <[email protected]>
drm/msm/dpu: extract bandwidth aggregation function

Dmitry Baryshkov <[email protected]>
drm/msm/dpu: use dpu_perf_cfg in DPU core_perf code

Dmitry Baryshkov <[email protected]>
drm/msm/dpu: drop separate dpu_core_perf_tune overrides

Dmitry Baryshkov <[email protected]>
drm/msm/dpu: bail from _dpu_core_perf_crtc_update_bus if there are no ICC paths

Oleg Keri <[email protected]>
drm/msm/dp: don't report link training success after a reinit

Yuho Choi <[email protected]>
soc/tegra: flowctrl: Release OF node reference on error

Igor Velkov <[email protected]>
arm64: dts: amlogic: meson-sm1-odroid-hc4: run the SPI NOR at 40 MHz

Igor Velkov <[email protected]>
arm64: dts: amlogic: meson-sm1-odroid-hc4: mux the SPI NOR HOLD# and WP# pins

Matthias Goergens <[email protected]>
isofs: return long Joliet names whole

Slavin Liu <[email protected]>
clocksource/drivers/dbx500-prcmu: Check timer register mapping

Thorsten Blum <[email protected]>
hwrng: intel - return -ENOMEM when ioremap() fails

Liu Dalin <[email protected]>
rtc: ftrtc010: fix integer overflow in time calculation

Thorsten Blum <[email protected]>
hwrng: intel - return -ENOMEM when kmalloc_obj() fails

Herbert Xu <[email protected]>

    crypto: tcrypt - Avoid reading req->base after submission

Anirudh Venkataramanan <[email protected]>
crypto: tcrypt - Drop leading newlines from prints

Anirudh Venkataramanan <[email protected]>
crypto: tcrypt - Use pr_info/pr_err

Karl Mehltretter <[email protected]>
crypto: atmel - handle authenc requests without plaintext

Bartosz Szpila <[email protected]>
platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data

Prashant Malani <[email protected]>
platform/chrome: cros_ec_typec: Move structs to header

Prashant Malani <[email protected]>
platform/chrome: cros_ec_typec: Stash port driver info

Hemanth Selam <[email protected]>
nvdimm/pmem: Release gendisk on probe failure

Mikko Perttunen <[email protected]>
drm/tegra: Drop reference on postfence

Mikko Perttunen <[email protected]>
drm/tegra: Don't pass an ERR_PTR to drm_syncobj_replace_fence()

Mikko Perttunen <[email protected]>
drm/tegra: Fix syncobj_in wait return value check

Chuanhong Guo <[email protected]>
pinctrl: mediatek: mt7629: fix the 2.4 GHz Wi-Fi pin mode array

Linkai Gong <[email protected]>
misc: enclosure: fix UAF on device_register() failure

Omar Ramadan <[email protected]>
amt: pull the AMT header behind the transport header in amt_parse_type()

Weigang He <[email protected]>
ARM: vexpress: fix device_node refcount leak in vexpress_smp_dt_prepare_cpus()

Weigang He <[email protected]>
ARM: vexpress: fix device_node refcount leak in vexpress_flags_set()

Liu Dalin <[email protected]>
rtc: ftrtc010: fix clock resource leak on probe failure

André Draszik <[email protected]>
rtc: ftrtc010: drop needless struct ftrtc010_rtc::rtc_dev member

Karl Mehltretter <[email protected]>
OPP: Fix the return value in dev_pm_opp_get_of_node() kernel-doc

Lucas Costa <[email protected]>
staging: sm750fb: free cmap on framebuffer release

Dmitry Baryshkov <[email protected]>
drm/msm/mdp5: drop cursor pipe for msm8x76

Krzysztof Kozlowski <[email protected]>
dt-bindings: display/msm: hdmi: Correct name of disallowed supplies

Krzysztof Kozlowski <[email protected]>
drm/msm: Properly handle msm_ioremap() without name

Qingfang Deng <[email protected]>
ARM: mvebu: fix Cortex-A9 errata selection for Armada 38x

Matthias Goergens <[email protected]>
x86/hibernate: Ignore page-zero RAM in E820 checksum

Nicolo Giuliani <[email protected]>
dt-bindings: vendor-prefixes: Add Sophos

Chen Wang <[email protected]>
dt-bindings: vendor-prefixes: add milkv/sophgo

Icenowy Zheng <[email protected]>
dt-bindings: vendor-prefixes: add Source Parts and Lctech names

Danish Khateeb <[email protected]>
tools/nolibc: check for overflow in malloc()

Danish Khateeb <[email protected]>
tools/nolibc: stop rounding malloc() sizes up to 4096 bytes

Andreas Kemnade <[email protected]>
rtc: bd70528: properly enable wakeup

Nguyễn Văn Cao Nguyên <[email protected]>
RDMA/irdma: Do not move a fresh RoCE QP to ERROR on RESET

Nicolas Schier <[email protected]>
kconfig: tests: Provide defconfig outfile for savedefconfig

Wentao Liang <[email protected]>
pinctrl: stm32: Fix clock reference leak in stm32_pctl_probe()

Hongyan Xu <[email protected]>
RDMA/hfi1: quiesce SDMA asynchronous cleanup on exit

Hongyan Xu <[email protected]>
RDMA/hfi1: shut down the trap timer before unregistering

Serhat Kumral <[email protected]>
RDMA/siw: Fix length of first chunk in siw_try_1seg()

Quanye Yang <[email protected]>
RDMA/rtrs-clt: Validate peer-supplied IO completion msg_id

Qingshuang Fu <[email protected]>
selftests/timers: clocksource-switch: Fix unchecked open()/read()

Quanye Yang <[email protected]>
RDMA/rtrs-clt: Don't WARN on unexpected info-response opcode

Karl Mehltretter <[email protected]>
time: Prevent time64_to_tm() day truncation on 32-bit

Jiale Yao <[email protected]>
RDMA/mad: Reject receive completions shorter than GRH

Quanye Yang <[email protected]>
RDMA/rtrs-clt: Reject invalid queue_depth from the peer

Yili Zhang <[email protected]>
RDMA/nldev: Fix NULL deref in dumps of objects abandoned by DRIVER_FAILURE

Pengpeng Hou <[email protected]>
clk: si5351: fail prepare when PLL reset times out

Myeonghun Pak <[email protected]>
clk: ti: adpll: unregister OF clock provider on remove

Dairui Zhang <[email protected]>
IB/mad: fix UAF and double-free in RMPP receive reassembly

Ruoyu Wang <[email protected]>
media: venus: Drop session events without an instance

Selvin Xavier <[email protected]>
RDMA/bnxt_re: Fix the PD and DPI table size

Selvin Xavier <[email protected]>
RDMA/bnxt_re: Initialize wqe.flags in bnxt_re_post_srq_recv()

Selvin Xavier <[email protected]>
RDMA/bnxt_re: Detect wrong sge_len passed for inline

Selvin Xavier <[email protected]>
RDMA/bnxt_re: Fix integer overflow in send payload size computation

Finn Thain <[email protected]>
swim3: Fix FDEJECT ioctl for exclusive open

Finn Thain <[email protected]>
swim: Fix FDEJECT ioctl for exclusive open

Logan Odell <[email protected]>
PCI/IOV: Read VF config values that need not match PF

Li RongQing <[email protected]>
IB/isert: Don't share drop_cmd_list across concurrent connection teardowns

Li RongQing <[email protected]>

    RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment

Xiang Mei (Microsoft) <[email protected]>
fs/ntfs3: fix slab-out-of-bounds write in attr_insert_range()

Karl Mehltretter <[email protected]>
soc: ti: k3-ringacc: Fix DMA ring initialization kernel-doc

Karl Mehltretter <[email protected]>
soc: ti: k3-ringacc: Correct ring API kernel-doc

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192-mt6359: Fix error handling in MTKAIF calibration

Nícolas F. R. A. Prado via Alsa-devel <[email protected]>
ASoC: mt8192: Remove function name log messages

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: Propagate errors in TDM DAI DAPM event handlers

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: Propagate mt8192_afe_gpio_request() errors in ADDA DAI

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: Handle regcache_sync() failure in runtime resume

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: check return values in mt8192_afe_gpio_init()

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: Propagate errors in mt8192_afe_gpio_request()

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: mt8192-afe-gpio: Use guard() for mutex locks

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: switch to devm_clk_get_optional()

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: fix MCK clock error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: fix error handling in APLL enable functions

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: fix AFE clock error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: fix APLL mux error handling

Ovidiu Panait <[email protected]>
spi: rspi: Fix DMA mode when the DMA controller is built as a module

Andy Shevchenko <[email protected]>
spi: rspi: Get rid of unused struct rspi_plat_data

Niko Huuskonen <[email protected]>
ALSA: caiaq: Fix the Kore controller key map

Niko Huuskonen <[email protected]>
ALSA: caiaq: Serialize access to the EP1 command buffer

Arka Mondal <[email protected]>
iio: dac: ad5758: Fix the offset calculation

Arka Mondal <[email protected]>
iio: dac: ad5758: Reject out-of-range raw values

Arka Mondal <[email protected]>
iio: dac: ad5758: Fix alignment for DMA safety

Abdelnasser Hussein <[email protected]>
staging: iio: adc: ad7816: Protect sysfs attributes with mutex

Abdelnasser Hussein <[email protected]>
staging: iio: adc: ad7816: Serialize SPI operations

Abdelnasser Hussein <[email protected]>
staging: iio: adc: ad7816: Sort headers alphabetically

Chen-Yu Tsai <[email protected]>
drm/exynos/fimd: fix register offset type in fimd_trigger()

Runyu Xiao <[email protected]>
ALSA: via82xx: use helper to activate DXS controls

Runyu Xiao <[email protected]>
ALSA: oxygen: use helper to activate the SPDIF PCM control

Takashi Iwai <[email protected]>
ALSA: oxygen: Use guard() for mutex locks

Yibo Tan <[email protected]>
ASoC: amd: acp-es8336: Use an owned codec device reference

Yishai Hadas <[email protected]>
RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it

Yishai Hadas <[email protected]>
RDMA/mlx5: Set RQ event handler for raw-packet QP

Yishai Hadas <[email protected]>
RDMA/mlx5: Set SRQ event handler before xarray insertion

Yishai Hadas <[email protected]>
RDMA/mlx5: Set WQ event handler before firmware RQ insertion

Yishai Hadas <[email protected]>
RDMA/hns: Pin CQ buffer writable to match device DMA write access

Ginger Li <[email protected]>
wifi: mac80211: Fix a race when expiring a mesh path

Guanghui Feng <[email protected]>
iommu/vt-d: Fix IQE handling to cover all descriptors in submission range

Abel Vesa <[email protected]>
arm64: dts: qcom: sm8150: Use SM8150_CX for the SDHC power domain

Myeonghun Pak <[email protected]>
PCI: aardvark: Disable PHY on probe failures

Linus Walleij <[email protected]>
ARM: dts: gemini: Use a level-high interrupt for TVE200

Fernando Fernandez Mancera <[email protected]>
netfilter: synproxy: fix reset of ct seqadj when reopening a connection

Akhil P Oommen <[email protected]>
drm/msm/a6xx: Fix secondary rail vote in ARC votes

Daniel Palmer <[email protected]>
m68k: apollo: Fix interrupt setup

WangYuli <[email protected]>
MIPS: Only check -msym32 when need-compiler

Orgad Shaneh <[email protected]>
MIPS: Octeon: size the swiotlb for a modular OHCI platform driver

Aaron Kling <[email protected]>
dt-bindings: vendor-prefixes: Add Retroid Pocket

Marek Vasut <[email protected]>
dt-bindings: vendor-prefixes: Add Retronix Technology Inc.

Adam Skladowski <[email protected]>
dt-bindings: vendor-prefixes: Add LeEco

Bruno Produit <[email protected]>
hfs/hfsplus: serialize B-tree close against folio release

Aaron Kling <[email protected]>
dt-bindings: vendor-prefixes: Add Chip Wealth Technology

Jagan Teki <[email protected]>
dt-bindings: vendor-prefixes: Document Chongzhou

bui duc phuc <[email protected]>
ASoC: mediatek: mt8183: Fix APLL enable error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8183: Fix clock handling in mux disable path

bui duc phuc <[email protected]>
ASoC: mediatek: mt8183: Fix wrong clock cleanup on clk_set_parent() failure

Sudeep Holla <[email protected]>
ACPI: PCC: Preserve shared memory signature in OpRegion handler

Sudeep Holla <[email protected]>
ACPI: PCC: Simplify PCC shared memory region handling

Huisong Li <[email protected]>
ACPI: PCC: Setup PCC Opregion handler only if platform interrupt is available

Sudeep Holla <[email protected]>
ACPICA: Fix PCC OperationRegion command offsets

Breno Leitao <[email protected]>
ACPICA: Fix memory leak in acpi_ds_create_field()

Xin Yin <[email protected]>
writeback: size foreign flushes by target wb dirty pages

Qingfang Deng <[email protected]>
mtd: block: prevent reclaim I/O during request processing

Jiebin Sun <[email protected]>
perf c2c: Fix documented default coalesce fields

Muzaffer Kadir <[email protected]>
dt-bindings: vendor-prefixes: Add General Mobile

Pengpeng Hou <[email protected]>
iio: accel: bma220: publish the SPI driver ACPI alias

Pengpeng Hou <[email protected]>
ASoC: rt5665: return cache sync errors from resume

Pengpeng Hou <[email protected]>
ASoC: rt5660: return cache sync errors from resume

Pengpeng Hou <[email protected]>
ASoC: rt5659: return cache sync errors from resume

Pengpeng Hou <[email protected]>
ASoC: rt5616: return cache sync errors from resume

Pengpeng Hou <[email protected]>
ASoC: rt1308: return cache sync errors from resume

Pengpeng Hou <[email protected]>
ASoC: rt1305: return cache sync errors from resume

Pengpeng Hou <[email protected]>
ASoC: rt1016: return cache sync errors from resume

Pengpeng Hou <[email protected]>
ASoC: rt1011: return cache sync errors from resume

Pengpeng Hou <[email protected]>
ASoC: nau8540: return cache sync errors from resume

Pengpeng Hou <[email protected]>
ASoC: es8316: return cache sync errors from resume

Pengpeng Hou <[email protected]>
ASoC: ak4642: return cache sync errors from resume

Pengpeng Hou <[email protected]>
ASoC: adau17x1: return cache sync errors from resume

Slavin Liu <[email protected]>
ASoC: fsl_asrc: check the second front-end DMA channel

Thomas Falcon <[email protected]>
perf mem: Fix size tracking for mem_lvl's in perf_script__meminfo_scnprintf()

Shengjiu Wang <[email protected]>
ASoC: fsl_asrc: use regmap_write_bits to update clock source registers

Dmitrii Tulnov <[email protected]>
kconfig: warn about malformed KCONFIG_PROBABILITY values

Myeonghun Pak <[email protected]>
mfd: da9150: Balance IRQ wake on teardown

Myeonghun Pak <[email protected]>
mfd: intel_quark_i2c_gpio: Manage the fixed-rate clock

Esteban Urrutia <[email protected]>
clk: qcom: dispcc-sm8450: Fix disp_cc_mdss_mdp_clk_src ops

Vincent Jardin <[email protected]>
dt-bindings: vendor-prefixes: add Free Mobile

Linus Walleij <[email protected]>
dt-bindings: Add vendor prefixes

Lin, Meng-Bo <[email protected]>
dt-bindings: vendor-prefixes: Add GPLUS

Icenowy Zheng <[email protected]>
dt-bindings: vendor-prefixes: add Genesys Logic

Zongmin Zhou <[email protected]>
serial: sifive: fix off-by-one in console port bounds check

Ginger Li <[email protected]>

    media: i2c: ov5648: Fix a data race on state->streaming

Finn Thain <[email protected]>
swim: Don't search beyond the first data mark

Finn Thain <[email protected]>
swim: Revisit delays

Finn Thain <[email protected]>
swim: Check drive ready bit

Finn Thain <[email protected]>
swim: Deduplicate polling loops

Finn Thain <[email protected]>
swim: Remove redundant RELAX actions

Finn Thain <[email protected]>
swim: Fix buffer overflow

Finn Thain <[email protected]>
swim: Don't use the mark register to read data

Finn Thain <[email protected]>
swim: Check error register during sector read

Finn Thain <[email protected]>
swim: Simplify return value initialization

Finn Thain <[email protected]>
swim: Check for CRC errors

Finn Thain <[email protected]>
swim: Handle FIFO timeout error

Finn Thain <[email protected]>
swim: Add track zero recalibration delay

Finn Thain <[email protected]>
swim: Recalibrate when drive is probed

Finn Thain <[email protected]>
swim: Don't start motor until medium is present

Finn Thain <[email protected]>
swim: Configure parameter memory

Finn Thain <[email protected]>
swim: Perform ISM/IWM mode switching according to specs

Finn Thain <[email protected]>
swim: Don't disable drive after every sector

Finn Thain <[email protected]>
swim: Enable the drive when probing

Finn Thain <[email protected]>
swim: Select appropriate drive once only

Finn Thain <[email protected]>
swim: Assert strobe with stable outputs

Li RongQing <[email protected]>
RDMA/mlx5: Guard steering anchor resource destruction on create error

Jiale Yao <[email protected]>
crypto: ccp - kill v5 IRQ tasklet during teardown

Jiale Yao <[email protected]>
crypto: ccp - kill v3 IRQ tasklet during teardown

Weili Qian <[email protected]>

    crypto: hisilicon/hpre - remove dma_free_coherent on NULL req->dst in ECDH

Wentao Liang <[email protected]>
RDMA/siw: Fix qp use-after-free in siw_get_base_qp()

Wentao Liang <[email protected]>
RDMA/mlx5: Fix RQ resource reference leak in mlx5_ib_wq_event()

Wentao Liang <[email protected]>
RDMA/cxgb4: Fix skb reference leak in rx_pkt()

Wentao Liang <[email protected]>
RDMA/cxgb4: Fix neigh reference leak in rx_pkt()

Kim Wooseok <[email protected]>
wifi: rtl8xxxu: free RX skb when URB submission fails

Bitterblue Smith <[email protected]>
wifi: rtl8xxxu: Use dev_* instead of pr_info

Rafael J. Wysocki <[email protected]>
ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()

Jeremy Bongio <[email protected]>
RDMA/irdma: Use kvzalloc for lvl2 leafmem allocation

Jisheng Zhang <[email protected]>
regulator: mp886x: fix pontential division by zero

Jisheng Zhang <[email protected]>
regulator: mp886x: check get_voltage_sel() return value

Dmitry Antipov <[email protected]>
leds: flash: Prevent using uninitialized variable in flash_fault_show()

Li RongQing <[email protected]>
RDMA/core: Fix partial copy of IPv6 flow_lbl in LAG hash skb

Cong Nguyen <[email protected]>
leds: lm3692x: Fix regulator/gpio leak and wrong enabled state on last write failure

Ian Rogers <[email protected]>
perf build: Check the version of the compiler that is used

Haibo Chen <[email protected]>
leds: pca9532: Check i2c_smbus_read_byte_data() return value

Miles Krause <[email protected]>

    leds: lp8860: Fix device_node leak in lp8860_probe()

Arnd Bergmann <[email protected]>
KMSAN: fix memset() when using fortify-source, again

Andrea Parri <[email protected]>
pstore: reject persistent RAM zones too small for the buffer header

Andrea Parri <[email protected]>
pstore: don't leave an ERR_PTR in the ramoops zone pointer

Krzysztof Kozlowski <[email protected]>
dt-bindings: vendor-prefixes: sort entries alphabetically

Chris Morgan <[email protected]>
dt-bindings: vendor-prefixes: add NewVision vendor prefix

Neil Armstrong <[email protected]>
dt-bindings: vendor-prefixes: add vendor prefix for Nexperia B.V.

Pengpeng Hou <[email protected]>
pmdomain: imx: Propagate SCU provider registration failures

Xiang Mei <[email protected]>
fs/ntfs3: validate $SDH entry size in ntfs_insert_security

Konstantin Komarov <[email protected]>

    fs/ntfs3: validate EA entry layout against ef->size in ntfs_read_ea

Zhan Xusheng <[email protected]>
fs/ntfs3: fix valid_size not being updated in attr_allocate_frame()

Xiang Mei (Microsoft) <[email protected]>
fs/ntfs3: check INDEX_ROOT resident size before use in ntfs_read_mft()

Andrew Gaylard <[email protected]>
pinctrl: fix PINCTRL_SPPCTL=m

Daniel Borkmann <[email protected]>
bpf, lsm: Reject writes into the BPF LSM program context

Wentao Liang <[email protected]>
clk: versatile: clk-icst: Fix node reference leak in of_syscon_icst_setup()

Triet Hoang <[email protected]>
clk: raspberrypi: Handle cpufreq device registration failure

Karl Asseily <[email protected]>
dt-bindings: vendor-prefixes: add ESS Technology

Felix Gu <[email protected]>
spi: mxic: fix ps_clk leak in runtime resume

Christian Loehle <[email protected]>
ACPI: CPPC: Validate the _CPC package header

Li RongQing <[email protected]>
RDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in GET_CONTEXT

Li RongQing <[email protected]>
RDMA/restrack: Don't set RESTRACK_DD mark after a failed xa_insert()

Myeonghun Pak <[email protected]>
interconnect: exynos: Remove the PM QoS request on unbind

Johan Hovold <[email protected]>
interconnect: exynos: drop redundant link destroy

Slavin Liu <[email protected]>
crypto: atmel-sha - reject initialization without a device

Julian Braha <[email protected]>
kconfig: fix extra output from savedefconfig on out-of-range defaults

Masahiro Yamada <[email protected]>
kconfig: default to zero if int/hex symbol lacks default property

Masahiro Yamada <[email protected]>
kconfig: remove unneeded symbol_empty variable

Felix Gu <[email protected]>
PCI: dra7xx: Fix clock enable leak on probe failure

[email protected] <[email protected]>
PCI: dra7xx: Remove device links to PHY

Nikolay Borisov <[email protected]>
ata: sata_dwc_460ex: Don't enable interrupt if libATA core registration fails

Hari Mishal <[email protected]>
drm/amd/pm: bound SCLK FCW range entries to the table size

Pengpeng Hou <[email protected]>
clk: milbeaut: Return divider update timeouts

Zhihao Cheng <[email protected]>
md/raid5: setup_conf: Fix null-ptr-def in error handling path

Yogesh Gaur <[email protected]>
md/raid5: don't BUG() on an inconsistent reshape state from the superblock

Jérémy Jean <[email protected]>
md: reject v0.90 arrays with too many devices

Zizhi Wo <[email protected]>
md/raid10: fix missing wakeup in wait_barrier_nolock

Abdelnasser Hussein <[email protected]>
staging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers

Bart Van Assche <[email protected]>
scsi: pm8001: Fix SATA FIS offset in struct hw_event_resp

Slavin Liu <[email protected]>
ACPI: tables: handle failed initrd override mappings

Chen-Yu Tsai <[email protected]>
arm64: dts: mediatek: mt8173: Fix MFG_ASYNC power domain clock

Sarthak Sharma <[email protected]>
mm/gup_test: report actual pinned bytes

Sarthak Sharma <[email protected]>
mm/gup_test: safely calculate GUP batch size

Samuel Moelius <[email protected]>
mm/gup_test: reject wrapped user ranges

Weiming Shi <[email protected]>
ntfs3: fix out-of-bounds read in ntfs_read_mft()

Karl Mehltretter <[email protected]>
loadpin: Fix stale KEXEC_VERIFY_SIG reference in documentation

Rosen Penev <[email protected]>
dmaengine: mv_xor: kill tasklet on channel add error path

Yonghao Zhang <[email protected]>
remoteproc: core: Set trace buffer name for diagnostics

Guangshuo Li <[email protected]>
media: i2c: ar0521: remove duplicate media entity cleanup

Li RongQing <[email protected]>
RDMA/uverbs: Make CQ handle mandatory for WQ creation

Nicolas Morey <[email protected]>
RDMA/rxe: Use validated num_sge in local buffer

Miles Krause <[email protected]>
memory: emif: fix device_node reference leak on np_ddr

Uwe Kleine-König <[email protected]>
memory: emif: Convert to platform remove callback returning void

Gregory CLEMENT <[email protected]>
phy: cadence: Sierra: Do not modify register when getting parent clock

Haotian Zhang <[email protected]>
phy: hisilicon: hi3670: Fix OF node and device reference leaks

Linkai Gong <[email protected]>
firmware: imx: dsp: fix mailbox channel leak on kasprintf failure

Jérôme Pouiller <[email protected]>
wifi: wfx: fix use-after-free of the cooling work on device removal

Julius Bairaktaris <[email protected]>
wifi: mac80211: don't reset the TXQ scheduling round number

Karl Mehltretter <[email protected]>
wifi: mac80211: Fix the return value in mesh_path_add() kernel-doc

Fuad Tabba <[email protected]>
arm64: pi: Run the source checker on the libfdt objects under C=2

Thomas Weißschuh <[email protected]>
microblaze: Pass -m{big,little}-endian through KBUILD_CPPFLAGS

Thomas Weißschuh <[email protected]>
microblaze: uaccess: Zero out destination on failed get_user()

Linkai Gong <[email protected]>
pinctrl: amd: add timeout to irq-enable readback

Mario Limonciello (AMD) <[email protected]>
pinctrl: amd: Don't access irq_data's hwirq member directly

Mario Limonciello (AMD) <[email protected]>
pinctrl: amd: Add PM debugging message for turning on/off wakes

Mario Limonciello <[email protected]>
pinctrl: amd: Use pm_pr_dbg to show debugging messages

Weiming Shi <[email protected]>
fs/ntfs3: zero frame pages on read error

Matthew Wilcox (Oracle) <[email protected]>
ntfs: Do not kmap page cache pages for compression

Matthew Wilcox (Oracle) <[email protected]>
ntfs3: Remove calls to set/clear the error flag

Weiming Shi <[email protected]>
fs/ntfs3: take run_lock when freeing offs_folio in ni_decompress_file

Matthew Wilcox (Oracle) <[email protected]>
ntfs3: Convert attr_wof_frame_info() to use a folio

Karl Mehltretter <[email protected]>
regulator: qcom-rpmh: Fix the return value in rpmh_regulator_vrm_get_optimum_mode() kernel-doc

Chen-Yu Tsai <[email protected]>
regulator: Unify "negative error number" terminology in comments

Oleksij Rempel <[email protected]>
regulator: fixed: add support for under-voltage IRQ

Zev Weiss <[email protected]>
regulator: devres: Add devm_regulator_bulk_get_exclusive()

Ian Rogers <[email protected]>
perf header: Fix potential memory corruption in cpu_cache_level__read

Rafael J. Wysocki <[email protected]>
ACPI: video: Fix backlight unregistration ordering

Karl Mehltretter <[email protected]>
ALSA: control: Fix virtual master creation reference in kernel-doc

Michael S. Tsirkin <[email protected]>
virtio: synchronize callbacks after device reset

Karl Mehltretter <[email protected]>
gfs2: Fix the return value in gfs2_get_link() kernel-doc

Karl Mehltretter <[email protected]>
ata: libata-scsi: Fix ata_scsi_hotplug() reference in kernel-doc

Karl Mehltretter <[email protected]>
spi: Fix the return value in spi_new_ancillary_device() kernel-doc

Geert Uytterhoeven <[email protected]>
clk: rs9: Add clock index range check to rs9_of_clk_get()

Chaithanya Lagisetty <[email protected]>
x86/svm: Avoid sign extension of SVM_EVTINJ_VALID in 64-bit expressions

Nora Schiffer <[email protected]>
ARM: dts: imx7-tqma7: correctly specify PMIC voltage constraints

Marek Vasut <[email protected]>
ARM: dts: stm32: Drop bias-disable from STM32MP15xx DHCOM SoM sdmmc1_b4_pins_a

Xueqin Luo <[email protected]>
cpuidle: teo: Do not return a disabled idle state

Ahmad Fatoum <[email protected]>

    ARM: dts: stm32: lxa-mc1: change stdout-path baud rate from 9600 to 115200

Xueqin Luo <[email protected]>
cpuidle: menu: Do not return a disabled idle state

Christian Loehle <[email protected]>
cpuidle: menu: Remove single state handling

Breno Leitao <[email protected]>
cpuidle: menu: Remove incorrect unlikely() annotation

Takashi Sakamoto <[email protected]>
firewire: core: remove unused link field in fw_packet structure

Karl Mehltretter <[email protected]>
firewire: cdev: Fix FW_CDEV_IOC_CREATE_ISO_CONTEXT references in kernel-doc

Rafael J. Wysocki <[email protected]>
ACPI: glue: Fix up and adjust acpi_unbind_one()

Jan Kara <[email protected]>
gfs2: Fix journaled truncate range end offset

Jiawen Liu <[email protected]>
memory: exynos5422-dmc: handle clock enable failures

Ahsan Atta <[email protected]>
crypto: qat - avoid OOB read when stripping RSA leading zeros

Mohamad Raizudeen <[email protected]>
crypto: amlogic - Fix DMA memory leak in cipher error path

Eric Dumazet <[email protected]>
ip_tunnel: use WRITE_ONCE in ip_tunnel_encap_setup

Eric Dumazet <[email protected]>
sit: fix UAF in ipip6_tunnel_del_prl()

Linus Walleij <[email protected]>
regulator: ab8500: Propagate mode enable read errors

Linus Walleij <[email protected]>
regulator: ab8500: Test dedicated enable bits only

Linus Walleij <[email protected]>
regulator: ab8500: Treat cut 1.0 VAUX3 as fixed

Linus Walleij <[email protected]>
regulator: ab8500: Handle AB8505 VINTCORE selector 7

Linus Walleij <[email protected]>

    regulator: ab8500: Add AB8505 VAUX3 3.05 V setting

Babanpreet Singh <[email protected]>
regulator: ab8500: Remove stale expand_register kernel-doc entry

Linus Walleij <[email protected]>
regulator: ab8500: Fix AB8505 VANA voltage selectors

Koichiro Den <[email protected]>
PCI: endpoint: pci-epf-vntb: Serialize virtual PCI bus scan

Jia Wang <[email protected]>
dmaengine: dw-axi-dmac: Fix CH_CFG2 channel priority position

Jia Wang <[email protected]>
dmaengine: dw-axi-dmac: Fix LLI dump out-of-bounds access

Jia Wang <[email protected]>
dmaengine: dw-axi-dmac: Fix AXI burst length encoding

Rosen Penev <[email protected]>
dmaengine: fsl_raid: zero CF descriptor pool allocations

Keisuke Tsukuda <[email protected]>
usb: gadget: f_mass_storage: ignore class requests while inactive

Keisuke Tsukuda <[email protected]>
usb: gadget: composite: avoid warning on aborted delayed status

Chaithanya Lagisetty <[email protected]>
dmaengine: sprd: use clk_bulk API to fix clock imbalance

Pengpeng Hou <[email protected]>
usb: musb: da8xx: depopulate OF children on probe failure

Pengpeng Hou <[email protected]>
usb: musb: da8xx: depopulate OF children on remove

Arka Mondal <[email protected]>
usb-storage: alauda: fix out-of-bounds zone index

Arka Mondal <[email protected]>
usb-storage: alauda: check the return value of alauda_read_map()

Arka Mondal <[email protected]>
usb-storage: alauda: do not do DMA from the stack

Yuho Choi <[email protected]>
USB: pci-quirks: Release EHCI device reference

Jiangong.Han <[email protected]>
USB: usbmon: fix null-ptr-deref in mon_bus_remove() when mon_bus_init() fails

Diego Fernando Mancera Gomez <[email protected]>
usb: image: microtek: stop SG processing after transfer errors

Junxian Huang <[email protected]>
RDMA/hns: Fix GID capacity loss in 64K system

Yuho Choi <[email protected]>
PCI: xgene: Use managed clock for PCIe controller

Karl Mehltretter <[email protected]>
efi/libstub: Fix efi_set_event_at() parameter documentation

Salah Triki <[email protected]>
iio: imu: adis16400: Check return value of spi_setup()

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix use-after-free of the firmware event workqueue

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds read in PCIe topology change events

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix buffer overflow in the BSG target device map

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds phy array access on link change

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds read of event data

Ranjan Kumar <[email protected]>
scsi: mpi3mr: Rename log data save helper to reflect threaded/BH context

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix device loss during enclosure reboot due to zero link speed

Ranjan Kumar <[email protected]>
scsi: mpi3mr: Event processing debug improvement

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds read in SAS topology change events

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix target device reference leak in device removal handshake

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds bitmap access during device removal

Ranjan Kumar <[email protected]>
scsi: mpi3mr: Successive VD delete and add causes FW fault

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds sense buffer access

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds reply frame access

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix buffer overflow when caching log data

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix target device reference leak in BSG task management

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix I/O block counter leak on admin request post failure

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds read when copying BSG MPI requests

Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix buffer overflow in BSG passthrough request copy

Linmao Li <[email protected]>
power: supply: bq2515x: Propagate charge-enable read errors

Ryan Brue <[email protected]>
power: supply: bq24190_charger: use the wake irq API

Peng Fan <[email protected]>
PM: sleep: wakeirq: Introduce device-managed variant of dev_pm_set_wake_irq()

Joe Hattori <[email protected]>
PM: wakeup: implement devm_device_init_wakeup() helper

Johan Hovold <[email protected]>
PM: sleep: wakeirq: drop unused enable helpers

Karl Mehltretter <[email protected]>
power: supply: mp2629: Use the full batt_impedance_compensation name in the ABI document

Nicolas Escande <[email protected]>
wifi: ath11k: fix locking problem in ath11k_dp_rx_tid_del_func()

Mikhail Lobanov <[email protected]>
wifi: ath11k: modify null check logic in ath11k_ce_rx_post_pipe()

Rafael J. Wysocki <[email protected]>
ACPI: utils: Adjust message printing macros for ACPI objects

Rafael J. Wysocki <[email protected]>
ACPI: scan: Stop calling acpi_bus_init_power() early

Rafael J. Wysocki <[email protected]>
ACPI: PCI: Introduce acpi_dev_get_pci_dev()

Rafael J. Wysocki <[email protected]>
ACPI: PM: Drop parent state update from acpi_device_get_power()

Ian Gallagher <[email protected]>
ACPI: button: Add lid_init_state quirk for Razer Blade Stealth 13 (Early 2020) RZ09-0310

Vinod Koul <[email protected]>
dmaengine: zynqmp_dma: drop redundant label

Srinivas Neeli <[email protected]>
dmaengine: xilinx_dma: Move descriptors to done list based on completion bit

Radhey Shyam Pandey <[email protected]>
dmaengine: xilinx_dma: Freeup active list based on descriptor completion bit

Srinivas Neeli <[email protected]>
dmaengine: xilinx_dma: Fix MCDMA descriptor fields based on DMA direction

Chaithanya Lagisetty <[email protected]>
dmaengine: dw-axi-dmac: convert clock handling to clk_bulk API

Walker Chen <[email protected]>
dmaengine: dw-axi-dmac: Add support for StarFive JH7110 DMA

Golla Nagendra <[email protected]>
dmaengine: zynqmp_dma: Fix chan probe/remove error handling

Abin Joseph <[email protected]>
dmaengine: zynqmp_dma: Add support for AMD Versal Gen 2 DMA IP

Ruoyu Wang <[email protected]>
dmaengine: img-mdc: Fix runtime PM usage counter leak

Myeonghun Pak <[email protected]>
dmaengine: mediatek: hsdma: fix runtime PM leak on init failure

Hongling Zeng <[email protected]>
dmaengine: sun6i-dma: Fix use-after-free in error handling paths

Karl Mehltretter <[email protected]>
mtd: spinand: Fix spinand_manufacturer_ops kernel-doc

Manush Prajwal <[email protected]>
pwm: lp3943: fix NULL pointer dereference for an unconfigured channel

Uwe Kleine-König <[email protected]>

    pwm: lp3943: Drop usage of pwm_[gs]et_chip_data()

bui duc phuc <[email protected]>
ASoC: mediatek: mt6797: fix wrong unwind order and error code in enable_clock

bui duc phuc <[email protected]>
ASoC: mediatek: mt8186: Fix MCK error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8186: Fix APLL enable error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8186: Fix AFE clock error handling

bui duc phuc <[email protected]>
ASoC: mediatek: mt8186: Fix clock handling in mux disable path

bui duc phuc <[email protected]>
ASoC: mediatek: mt8186: Fix APLL mux setting error handling

Chen-Yu Tsai <[email protected]>
pwm: mtk-disp: Fix period readback

Karl Mehltretter <[email protected]>
virtio_ccw: fix synchronize_cbs() after interrupt fallback

Karl Mehltretter <[email protected]>
irqchip/gic-v3-its: Don't WARN on LPI free allocation failure

Linkai Gong <[email protected]>
drivers/base/node: fix UAF on device_register() failure

Dmitry Torokhov <[email protected]>
gpio: crystalcove: add missing MODULE_ALIAS()

Mark Amirkan <[email protected]>
perf evsel: Validate RAW sample before byte swapping

Mark Amirkan <[email protected]>
perf evsel: Validate branch stack before byte swapping

Felix Gu <[email protected]>
spi: mtk-nor: fix runtime PM usage count leak in probe error path

Dave Jiang <[email protected]>
efi/cper: Read only validated fields in cper_mem_err_pack()

Dave Jiang <[email protected]>
ACPI: extlog: Validate elog record length before walking sections

Dave Jiang <[email protected]>
efi/cper: Reject an error status block length that wraps a u32

Dave Jiang <[email protected]>
efi/cper: Reject CPER records with an out-of-range error_data_length

Jisheng Zhang <[email protected]>
regulator: mp886x: fix vsel_mask

Pengpeng Hou <[email protected]>
memory: brcmstb_dpfe: validate firmware section sizes

Julius Bairaktaris <[email protected]>
wifi: mac80211: fix swapped fq_overlimit/fq_overmemory in aqm debugfs

Fabrice Derepas <[email protected]>
crypto: asymmetric_keys - fix OOB read in pefile_parse_binary

Ruoyu Wang <[email protected]>
hwrng: cctrng - Fix runtime PM usage counter leak

Jérôme Pouiller <[email protected]>
wifi: wfx: fix possible device hang during init

Christophe JAILLET <[email protected]>
wifi: wfx: Remove some dead code

Johannes Berg <[email protected]>
wifi: mac80211: fix unauthorised port check for encap offload

Paul Dolan <[email protected]>
selftests/clone3: tighten CLONE_CLEAR_SIGHAND conflict test

Miquel Raynal (Schneider Electric) <[email protected]>
clk: Use the generic OF phandle parsing in only one place

Rosen Penev <[email protected]>
dmaengine: fsl_raid: avoid free_q underflow in free_chan_resources

Rosen Penev <[email protected]>
dmaengine: fsl_raid: don't invoke client callback under desc_lock

Koichiro Den <[email protected]>
PCI: endpoint: pci-epf-vntb: Pass PF/VF number when BAR programming

Pengpeng Hou <[email protected]>
remoteproc: imx_dsp: Acquire runtime PM before adding carveouts

Peng Fan <[email protected]>
remoteproc: imx_dsp_rproc: Drop extra space

Shengjiu Wang <[email protected]>
remoteproc: imx_dsp_rproc: Add support of recovery and coredump process

Danila Chernetsov <[email protected]>
dlm: validate lock modes in recovery messages

Abdurrahman Karadag <[email protected]>
wifi: rtw88: debugfs: don't vzalloc(0) when rsvd_page is read unconfigured

Boris Faure <[email protected]>
soundwire: intel: initialise quirk_mask before reading it

Pierre-Louis Bossart <[email protected]>
soundwire: intel: split auxdevice to different file

Pierre-Louis Bossart <[email protected]>
soundwire: intel: add in-band wake callbacks in hw_ops

Pierre-Louis Bossart <[email protected]>
soundwire: intel: add link power management callbacks in hw_ops

Pierre-Louis Bossart <[email protected]>
soundwire: intel: add bus management callbacks in hw_ops

Pierre-Louis Bossart <[email protected]>
soundwire: intel: add register_dai callback in hw_ops

Pierre-Louis Bossart <[email protected]>
soundwire: intel: add debugfs callbacks in hw_ops

Pierre-Louis Bossart <[email protected]>
soundwire: intel: start using hw_ops

Jérémy Jean <[email protected]>
microblaze: prevent ptrace writes to MSR and pt_mode

Alexander A. Klimov <[email protected]>
microblaze: CCF: fix refcount leak

Jerome Brunet <[email protected]>
clk: fix self-consuming provider module pinning

Orgad Shaneh <[email protected]>
staging: octeon: schedule the TX cleanup tasklet every 1024th packet

Myeonghun Pak <[email protected]>
staging: rtl8723bs: disable SDIO function on block size failure

Ethan Tidmore <[email protected]>
staging: rtl8723bs: remove unused private debug counters

Michael Straube <[email protected]>
staging: rtl8723bs: move rtw_recv_indicatepkt to rtw_recv.c

Michael Straube <[email protected]>
staging: rtl8723bs: remove wrapper rtw_init_recv_timer

Michael Straube <[email protected]>
staging: rtl8723bs: remove return from void function

Rodrigo Gobbi <[email protected]>
staging: rtl8723bs: change remaining printk to proper api

Rob Barnes <[email protected]>
platform/chrome: cros_ec_proto: Fix deferred response

Hongyan Xu <[email protected]>
soc: qcom: apr: clean up failed service registrations

Felix Gu <[email protected]>
spi: omap2-mcspi: Remove unbalanced pm_runtime_put_sync() calls

Ruoyu Wang <[email protected]>
pwm: renesas-tpu: Fix runtime PM reference leak

Uwe Kleine-König <[email protected]>
pwm: renesas: Drop usage of pwm_[gs]et_chip_data()

David Heidelberg <[email protected]>
ASoC: wcd-mbhc-v2: Fix incorrect properties names and typos

Anup Vishwakarma <[email protected]>
remoteproc: qcom_q6v5_adsp: Fix double jiffies conversion in adsp_start()

Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Validate unwinding sizes against record payload

Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Validate sym string NUL-termination in code load

Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Validate debug entries on native (non-swap) path

Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Use dirname() return value in jit_open()

Hrishikesh Suresh <[email protected]>
perf: replace strcpy() with strncpy() in util/jitdump.c

Ian Rogers <[email protected]>
perf jit: Fix a few memory leaks

Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Fix funlockfile on unlocked stream in jit_open() error path

Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Check snprintf return before computing header size

Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Bounds-check debug entry byte-swap loop

Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Prevent integer underflow in debug info size calculation

Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Validate code_size against total_size in code load

Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Fix debug_data and unwinding_data leaks

Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Fix extended header read that always fails

Breno Leitao <[email protected]>
kexec_file: stop the top-down search before it underflows

Rosen Penev <[email protected]>
ARM: dts: helios4: fix spi1 location

Rosen Penev <[email protected]>
ARM: dts: helios4: fix vbus-supply for USB2 PHY

Rosen Penev <[email protected]>
ARM: dts: armada-388-helios4: fix vmmc property name

Rosen Penev <[email protected]>
ARM: dts: armada-395-gp: drop unsupported SDHCI clock-frequency

Rosen Penev <[email protected]>
ARM: dts: armada-385-clearfog-gtr: fix vmmc property name

Rosen Penev <[email protected]>
ARM: dts: helios4: fix lm75 supply name

Salah Triki <[email protected]>
iio: temperature: tmp117: fix calibbias cache update on I2C write failure

Esben Haabendal <[email protected]>
dt-bindings: iio: light: ltr501: Add missing ltr303 compatible

Esben Haabendal <[email protected]>
dt-bindings: iio: light: ltr501: Sort compatible enum array

Adi Nata <[email protected]>
iio: humidity: hts221: report available values via read_avail()

Pengpeng Hou <[email protected]>
spi: sh-msiof: propagate setup runtime-PM errors

Geert Uytterhoeven <[email protected]>
spi: sh-msiof: SITMDR1/SIRMDR1 bitfield conversion

Chandradhar Kumar <[email protected]>
regulator: fixed: reject incompatible platform devices

Yuan Chen <[email protected]>
bpftool: Fix spurious batch file read error

Marek Vasut <[email protected]>
drm: of: Fix drm_of_get_data_lanes_count_ep() return value documentation

Andreas Kemnade <[email protected]>
drm/omap: dsi: avoid sending bta sync all the time in writes

Adrián Larumbe <[email protected]>
drm/panfrost: Prevent division by 0

Raveendra Talabattula <[email protected]>
drm/komeda: Fix bits parsing of GLB_CORE_ID

Matthias Goergens <[email protected]>
udf: don't use eloc after the end of the unallocated space table

Daejun Park <[email protected]>
xfs: add a flag to convert unwritten extents without allocating blocks

Cen Zhang <[email protected]>
ocfs2: validate move extents against a stable EOF

Pei Xiao <[email protected]>
comedi: dt2811: fix shift-out-of-bounds in IRQ check

Chuck Lever <[email protected]>
SUNRPC: Copy the deferred RPC Call from the head buffer

Yang Zi <[email protected]>
comedi: addi_apci_3xxx: fix subdevice count underallocation

Yafang Shao <[email protected]>
mm/migrate: snapshot the source nid before the misplaced migration

Amir Goldstein <[email protected]>
ovl: inherit FMODE_NONOTIFY when reading directory layers

Andrew Kanner <[email protected]>
selinux: prevent KMSAN warning in selinux_inet_conn_request()

Daehyeon Ko <[email protected]>
vhost/vsock: size receive SKBs from declared payload

Will Deacon <[email protected]>
vsock/virtio: Rename virtio_vsock_skb_rx_put()

Will Deacon <[email protected]>
vsock/virtio: Move length check to callers of virtio_vsock_skb_rx_put()

Li Zhe <[email protected]>
mm/hugetlb: fix mremap move length truncation

Kefeng Wang <[email protected]>
mm: hugetlb: move hugeltb sysctls to its own file

David Hildenbrand (Arm) <[email protected]>
mm/shmem: fix accounting of swapin-error markers

Josef Bacik <[email protected]>
mm/mmu_notifier: finish non-blocking interval invalidation on error

Jann Horn <[email protected]>
mm: document mmu_notifier_invalidate_range_start_nonblock()

Wei Wang <[email protected]>
arm64: suspend: Save and restore TPIDR2_EL0 across CPU suspend

Yingjie Wang <[email protected]>
nvmet: reject keep-alive timeouts that would overflow

David Hildenbrand (Arm) <[email protected]>
mm/shmem: make shmem_file() check the file's inode

David Hildenbrand (Arm) <[email protected]>
mm/filemap: finish fault cleanup before dropping the fault lock

Jesse Zhang <[email protected]>
drm/amdkfd: use the queue's process info for the WPTR BO eviction fence

chenglong.ma <[email protected]>
vduse: fix VA/PA confusion in the coherent page fault path

Luis Gerardo Lopez Hernandez <[email protected]>
ALSA: hda/realtek: Fix internal speakers on Acer Aspire AL16-31P

Alex Hung <[email protected]>
drm/amd/display: Avoid closing unowned DDC pins

Joseph Qi <[email protected]>
ocfs2: read the xattr entry hash before defragmenting the bucket

Joseph Qi <[email protected]>
ocfs2: do not read the entry array of an empty xattr bucket

Joseph Qi <[email protected]>
ocfs2: use the stored hash when checking xattr bucket collision

Ajay Kumar Nandam <[email protected]>
ASoC: qcom: q6apm: clear g_apm on driver removal

Srinivas Kandagatla <[email protected]>
ASoC: qcom: audioreach: fix ADSP ready check

Mohit Sharma <[email protected]>
ASoC: qcom: q6apm: Guard callbacks until probe data is ready

Srinivasa Rao Mandadapu <[email protected]>
ASoC: qdsp6: audioreach: Add ADSP ready check

renpanpan <[email protected]>
drm/amdgpu: Only enable HDMI audio if display supports it

Jani Nikula <[email protected]>
drm/edid: parse display info has_audio similar to is_hdmi

Jani Nikula <[email protected]>
drm/edid: parse VICs from CTA VDB early

Guenter Roeck <[email protected]>
hwmon: (coretemp) Check for NULL platform device in hotplug callbacks

David Hildenbrand (Arm) <[email protected]>
fork: take mmap_lock before copying mm_struct

David Hildenbrand (Arm) <[email protected]>
mm/rmap: handle device-exclusive entries in folio_referenced_one()

Thorsten Blum <[email protected]>
hwrng: virtio - prevent use-after-free after a failed restore

Christophe JAILLET <[email protected]>
hwrng: virtio - Remove usage of the deprecated ida_simple_xx() API

Josef Bacik <[email protected]>

    mm/filemap: read mapping->a_ops->free_folio under i_lock

Misha Nasledov <[email protected]>
drm/amd/display: Drop clock requirements on DCN32 when no displays are active

Vas Zayarskiy <[email protected]>
hwmon: (aquacomputer_d5next) Avoid truncating scaled sensor readings

Cong Zhang <[email protected]>
virtio_blk: use synchronous quiesce in virtblk_freeze_priv()

Jiale Yao <[email protected]>
hwmon: (aquacomputer_d5next) reject short status reports

Cen Zhang (Microsoft) <[email protected]>
apparmor: fix query_data() output overlapping the lookup key

Gregory Price <[email protected]>
mm/userfaultfd: compare exact registration modes before skipping

David Hildenbrand (Arm) <[email protected]>
mm/mremap: use pudp_huge_get_and_clear() when moving huge PUDs

Chris Mason <[email protected]>
mm/memory: reject remote COW faults on PFN mappings

Gregory Price (Meta) <[email protected]>
mm/mempolicy: apply bind policies against the scoped allocation zone

David Hildenbrand (Arm) <[email protected]>
mm/madvise: preserve VMA_SOFTDIRTY_BIT when changing anonymous names

Jouni Högander <[email protected]>
drm/i915/psr: Clear selective fetch area when duplicating plane state

David Hildenbrand (Arm) <[email protected]>
mm/vma: don't leak the charge for stack growth

Daejun Park <[email protected]>
nvme: unregister when pr_register() is given a zero new key

Jesse Zhang <[email protected]>
drm/amdgpu: don't walk the CS chunks when allocating them failed

Guenter Roeck <[email protected]>
hwmon: (tmp108) Fix initial conversion delay and wait until ready

Guenter Roeck <[email protected]>
hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp()

Myeonghun Pak <[email protected]>
fbdev: kyro: Release WC setup on registration failure

Giovanni Di Santi <[email protected]>
fbdev: kyro: Use devm_ioremap_wc() for screen mem

Giovanni Di Santi <[email protected]>
fbdev: kyro: Use devm_ioremap() for mmio registers

Matthias Goergens <[email protected]>
udf: fix preallocation discarding before an empty allocation extent

Chris Mason <[email protected]>
mm/huge_memory: fix truncate racing with PMD zapping

Li Zhe <[email protected]>
mm/hugetlb: fix mremap deadlock when PMD sharing is possible

Kyle Zeng <[email protected]>
mm/khugepaged: flush deferred unmaps before dropping a failed folio

Chengfeng Ye <[email protected]>
l2tp: snapshot sequencing state when building transmit headers

Fuad Tabba <[email protected]>
KVM: arm64: vgic-its: Don't map an LPI from more than one event

Mike Christie <[email protected]>
scsi: target: Fix LUN/device R/W and total command stats

Yu Zhang <[email protected]>
scsi: target: Fix demo-mode dynamic ACL dev-entry UAF vs LUN teardown

Mike Christie <[email protected]>
scsi: target: Move I/O path stats to per CPU

Ian Bridges <[email protected]>
ksmbd: do not read past the DACL in the access denied debug message

Jesse Zhang <[email protected]>
drm/amdgpu: keep the CS user fence BO in GTT

Kevin Wang <[email protected]>
drm/amd/pm: populate unique ID for smu 13.0.7

Krzysztof Kozlowski <[email protected]>
drm/msm/hdmi: Handle msm_hdmi_power_on() errors during .atomic_pre_enable()

Chris Mason <[email protected]>
ovl: look up the index by the decoded origin

Leo Liu <[email protected]>
drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg

Johannes Weiner <[email protected]>
mm: page_alloc: do not give all non-blocking requests reserve access

David Hildenbrand (Arm) <[email protected]>
mm/mremap: recheck PUDs under the page table lock

Josef Bacik <[email protected]>
mm/mremap: fix moving PUD leaves

Myeonghun Pak <[email protected]>
hwmon: (sht15) Stop deferred work before releasing its resources

Will Deacon <[email protected]>
tools: linux/types.h: Add 128-bit integer types for arm64 UAPI structures

Takashi Iwai <[email protected]>
ALSA: pcm: Prevent O_APPEND open on OSS streams

Takashi Iwai <[email protected]>
ALSA: pcm: Optimize cpu_latency_qos_*() calls

Cen Zhang <[email protected]>
ocfs2: cache the mount context for dentry lock callbacks

Christophe JAILLET <[email protected]>
ocfs2: constify struct ocfs2_lock_res_ops

Kyle Zeng <[email protected]>
mptcp: pm: kernel: use RCU to free endpoint listeners

Vincent Mailhol <[email protected]>
can: dev: can_dropped_invalid_skb: drop CAN XL frames on non-CAN XL devices

Konstantin Khorenko <[email protected]>
selftests/core: fix unshare_test with large fs.nr_open

Al Viro <[email protected]>
selftests:core: test coverage for dup_fd() failure handling in unshare_fd()

Chengfeng Ye <[email protected]>
mm/ksm: mark migration stores with WRITE_ONCE()

Jesse Zhang <[email protected]>
drm/amdgpu: drop the gang leader reference when freeing gang jobs

Guenter Roeck <[email protected]>
hwmon: (pmbus) Check return value from pmbus_thermal_add_sensor()

Prike Liang <[email protected]>
drm/amdgpu: finish GPU recovery callbacks before restarting schedulers

Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: fix expansion of VMA_MIXEDMAP_BIT VMAs

Daejun Park <[email protected]>
xfs: don't skip free extents of the longest length in a whole-AG FITRIM

Chao Yu <[email protected]>
f2fs: fix to fetch ino via ino_of_node() under cache lock

David Hildenbrand (Arm) <[email protected]>
mm/memory-tiers: unregister empty tiers outside memory_tier_lock

Amir Goldstein <[email protected]>
ovl: inherit FMODE_NONOTIFY when opening directory realfiles

Darong Lu <[email protected]>
libceph: initialize CRUSH choose argument weights

Chao Yu <[email protected]>
f2fs: fix to update superblock crc in sanity_check_area_boundary()

Wei Yang <[email protected]>
mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()

David Hildenbrand (Arm) <[email protected]>
mm/userfaultfd: wake waiters when registration modes are removed

Jake Labelle <[email protected]>
nilfs2: validate directory position after llseek in readdir

Christian Brauner <[email protected]>
proc: don't let an entry below /proc/<pid>/net be a mountpoint

Peter Ujfalusi <[email protected]>
ALSA: compress: fix buffer leak on failed SET_PARAMS

Eklavya Singh <[email protected]>
ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute

guolingxing <[email protected]>
btrfs: prevent deleting the wrong subvolume by ID

Yao Yiqi <[email protected]>
fbcon: Rebuild rotated font buffer on font change

Ian Bridges <[email protected]>
ksmbd: enforce the read-only share flag when creating a stream

David Hildenbrand (Arm) <[email protected]>
mm/ksm: fix use of a freed anon_vma at swap-in

Yizhou Zhao <[email protected]>
9p/xen: drain response work after unbinding IRQ

Josef Bacik <[email protected]>
mm/hugetlb: fix endless write fault on a leftover uffd bit

Eric Dumazet <[email protected]>
inet: frags: limit the truesize of a reassembly queue

Sean Christopherson <[email protected]>
KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM

Kyle Zeng <[email protected]>
net/packet: check TX_RING fragments before memory accounting

Linus Torvalds <[email protected]>
assoc_array: keep gc's cleanup out of the live tree on allocation failure

Linus Torvalds <[email protected]>
assoc_array: don't chain a new shortcut onto an existing one

Linus Torvalds <[email protected]>
assoc_array: choose between splitting a node and a shortcut without gotos

Linus Torvalds <[email protected]>
assoc_array: move shortcut creation into a function of its own

Linus Torvalds <[email protected]>
assoc_array: move node splitting into a function of its own

Linus Torvalds <[email protected]>
assoc_array: fill the segment cache in one place

Linus Torvalds <[email protected]>
assoc_array: move in-place insertion into a function of its own

Linus Torvalds <[email protected]>
assoc_array: don't lose objects when a root shortcut is split at level 4

Linus Torvalds <[email protected]>
assoc_array: don't lose objects when a shortcut is split on a word boundary

Ahelenia Ziemiańska <[email protected]>
splice: fsnotify_access(fd)/fsnotify_modify(fd) in vmsplice

Ahelenia Ziemiańska <[email protected]>
splice: fsnotify_access(in), fsnotify_modify(out) on success in tee

Srish Srinivasan <[email protected]>
pseries/plpks: fix error handling in plpks_read_var()

Andrew Donnellan <[email protected]>
powerpc/pseries: Make caller pass buffer to plpks_read_var()

Eric Dumazet <[email protected]>
dlm: fix send buffer backpressure handling

Gianluca Balboni <[email protected]>

    ASoC: amd: yc: Add DMI quirk for HP OmniBook 3 Laptop 16-by0xxx

Runyu Xiao <[email protected]>
media: sti: delta: use unaligned accessors for MJPEG SOF fields

Niklas Cassel <[email protected]>
ata: libata: Do not leave ata_host_stop() registered when activation fails

Armaan Sandhu <[email protected]>
lib/cmdline: fix get_options() count and overflow with large ranges

Shuvam Pandey <[email protected]>
lib/tests: extend cmdline KUnit with next_arg() tests

Olivier Kaloudoff <[email protected]>
drm/amdkfd: stop restore retries on device unplug

Tim Douglas <[email protected]>
power: supply: generic-adc-battery: fix status with no supplier

Nikolaj Klitlund Børty <[email protected]>
Bluetooth: btusb: Add device ID for Realtek RTL8761BUE (StarTech AV53C1)

Mario Limonciello <[email protected]>
platform/x86/amd/pmf: Add AMDI0112 ACPI ID

Myeonghun Pak <[email protected]>
fbdev: nvidia: Release write-combining handle on probe failure

Maurizio Casciano <[email protected]>
power: supply: core: Honor supplied-from with CONFIG_OF=y

Francesco Orlando <[email protected]>
Input: xpad - add GameSir Nova Lite support

Myeonghun Pak <[email protected]>
wifi: mt76: mt7615: restore DBDC state after ext PHY failure

Niklas Cassel <[email protected]>
ata: libahci: Free the IRQs when activating a multi-IRQ host fails

Niklas Cassel <[email protected]>
ata: ahci: print the lpm policy on boot

Wentao Liang <[email protected]>
power: supply: ltc2941: Fix of_node reference leak in ltc294x_i2c_probe()

Olivier Kaloudoff <[email protected]>
ALSA: usb-audio: Add mic resolution quirk for Logitech Webcam C200

Pauli Virtanen <[email protected]>
ALSA: usb-audio: add volume quirks for MS LifeChat LX-3000

Cryolitia PukNgae <[email protected]>
ALSA: usb-audio: rename QUIRK_FLAG_MIXER_MIN_MUTE to QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE

Breno Leitao <[email protected]>
dcache: report a Tasks-RCU quiescent state in dentry_kill()

Guangshuo Li <[email protected]>
crypto: omap-sham - fix crypto engine cleanup

Fan Wu <[email protected]>

    virtio_fs: read the vring size under virtio_fs_mutex in ->get_tree

yanxia <[email protected]>
veth: fix stale peer max_mtu on XDP program replacement

David Hildenbrand (Arm) <[email protected]>
mm/gup: check for overflow when converting nr_pages to bytes in GUP-fast

Andrea Parri <[email protected]>
iommufd/iova_bitmap: Ensure that iova_bitmap_set() handles the full IOVA

Samarth Narang <[email protected]>
mm/ksm: keep soft-dirty when merging a page

Henrik Enquist <[email protected]>
ALSA: aloop: Update the PCM Slave controls for a matching playback

Henrik Enquist <[email protected]>
ALSA: aloop: Don't constrain playback params in notify mode

Takashi Iwai <[email protected]>
ALSA: aloop: Use guard() for mutex locks

Yu Zhang <[email protected]>

    nvmet: take subsys->lock while force-reconnecting in nvmet_subsys_attr_qid_max_store()

Daniel Wagner <[email protected]>
nvmet: force reconnect when number of queue changes

Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: avoid broken uffd merge on mremap

Daeho Jeong <[email protected]>
f2fs: release a removed xattr node in roll-forward recovery

Sumit Kumar <[email protected]>
PCI: dwc: Set DMA_BYPASS bit in outbound IATU CTRL2 register

Karl Mehltretter <[email protected]>
ARM: 9488/1: smp: set current pointer in assembly before jumping into C

Lorenzo Stoakes (ARM) <[email protected]>
mm/mremap: correctly uncharge accountable VMAs in error path

Hung-Jui Lin <[email protected]>
posix-timers: Report zero remaining time for disarmed SIGEV_NONE timers

Breno Leitao <[email protected]>
ACPI: APEI: accumulate the queued flag across error sections

Adrian Ambrozewicz <[email protected]>
gpiolib: cdev: don't set GPIOD_FLAG_IS_OUT

Radiy Zhambakiev <[email protected]>
mfd: tps65217: Use devres for IRQ domain and wake teardown

Jesse Zhang <[email protected]>
drm/ttm: return an error when kmapping a BO without pages

Sean Young <[email protected]>
media: serial_ir: Fix race condition where timer can be re-armed

Stanley Jhu <[email protected]>
scsi: ufs: bsg: Reject UIC commands with a non-zero result byte

Christian Brauner <[email protected]>
iomap: don't mark unwritten parts of a folio uptodate

Breno Leitao <[email protected]>
mm/shmem: report RCU-tasks quiescent states while undoing a range

Vishal Moola (Oracle) <[email protected]>
filemap: find_lock_entries() now updates start offset

Hitesh Patel <[email protected]>
media: qcom: camss: vfe-17x: Fix write master selection for RDI lines

Vladimir Oltean <[email protected]>
PCI: cadence: Preserve all error codes in cdns_plat_pcie_probe()

Linmao Li <[email protected]>
PCI: cadence: Store the core controller in platform drvdata

Oleg Nesterov <[email protected]>
signalfd: don't dequeue the forced fatal signals

Giorgi Kobakhia <[email protected]>
ocfs2: fix array out of bound access in __ocfs2_find_path()

Edward Adam Davis <[email protected]>
ocfs2: fix oob in __ocfs2_find_path

Hsiu-Hsien Lee <[email protected]>
ext4: fix fast commit replay failing on a read-only mount

Theodore Ts'o <[email protected]>
ext4: avoid updating the superblock on a r/o mount if not needed

Ye Bin <[email protected]>
ext4: commit super block if fs record error when journal record without error

Zhan Xusheng <[email protected]>
f2fs: fix defragment writeback range truncation on 32-bit

Zhiguo Niu <[email protected]>
f2fs: fix to adjust appropirate defragment pg_end

sung byeongchan <[email protected]>
ceph: validate MDS reply fragtree split array length

Alex Kazinsky <[email protected]>
ASoC: tlv320aic32x4: Prevent division by zero in divider callbacks

Guiting Shen <[email protected]>
ASoC: tlv320aic32x4: Fix the divide by zero

Maxime Ripard <[email protected]>
ASoC: tlv320aic32x4: div: Switch to determine_rate

Nikolaos Karaolidis <[email protected]>
fs: don't lose inodes that another LRU walker is isolating

Jérémy Jean <[email protected]>
ceph: fix 32-bit overflow in readdir reply count check

Qi Xi <[email protected]>
mm/page_isolation: fix UBSAN shift-out-of-bounds warning

Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Restore the codec device type on unbind

Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Allocate the private data at codec driver bind

Pierre-Louis Bossart <[email protected]>
ASoC: SOF: Intel: hda-codec: simplify SND_SOC_SOF_HDA_AUDIO_CODEC handling

Pierre-Louis Bossart <[email protected]>
ASoC: SOF: Intel: remove all dependencies on SND_SOC_HDAC_HDMI

Pierre-Louis Bossart <[email protected]>
ASoC: SOF: Intel: remove option to disable the common_hdmi handling

Guangshuo Li <[email protected]>
platform/x86: simatic-ipc: fix platform device leak on registration failure

Hitesh Patel <[email protected]>
media: qcom: camss: vfe: Fix VFE reset while another line is streaming

Bryan O'Donoghue <[email protected]>
media: qcom: camss: Propagate vfe_reset error up the callstack

Bryan O'Donoghue <[email protected]>
media: qcom: camss: Move vfe_disable into a common routine where applicable

Zhiling Zou <[email protected]>
ipmr: drop packets with unknown ingress VIF

Joanne Koong <[email protected]>
fuse: don't drop destination page cache on a zero byte copy reply

Daniel Phillips <[email protected]>
amdkfd: Fix memory availability double accounting of kfd pinned objects

Nikolaos Karaolidis <[email protected]>
fs: rotate inodes whose page cache could not be dropped

Fan Wu <[email protected]>
power: supply: bq27xxx: Ensure poll work is cancelled on remove

Sahaj Chaudhari <[email protected]>
gpio: pca953x: Handle direction register read errors in IRQ paths

Andy Shevchenko <[email protected]>
gpio: pca953x: Utilise temporary variable for struct gpio_chip

Alexander Sverdlin <[email protected]>
tpm: tpm2_probe: propagate transport errors

Maciej Kucharek <[email protected]>
drm/amdgpu: reset SI ASIC on MacBookPros with VRAM at 0

Armin Wolf <[email protected]>
hwmon: (acpi_power_meter) Fix 18.45 TW bug

Alexey Charkov <[email protected]>
nvmem: rockchip-otp: Serialize reads

Rosen Penev <[email protected]>
nvmem: rockchip-otp: alloc clks with main struct

Cristian Ciocaltea <[email protected]>
nvmem: rockchip-otp: Add clks and reg_read to rockchip_data

Takashi Iwai <[email protected]>
ALSA: emux: Stop voices before freeing zones in all cases

Oswald Buddenhagen <[email protected]>
ALSA: emux: simplify snd_sf_list.callback handling

Oswald Buddenhagen <[email protected]>
ALSA: emux: centralize & improve patch info validation

Oswald Buddenhagen <[email protected]>
ALSA: emu10k1: prune vestiges of SNDRV_SFNT_SAMPLE_{BIDIR,REVERSE}_LOOP support

Jesse Zhang <[email protected]>
drm/amdgpu: reject CS chunks too large for kvmalloc()

Tvrtko Ursulin <[email protected]>
drm/amdgpu: Use (v)memdup_array_user in amdgpu_cs_pass1

Ross Lagerwall <[email protected]>
xen-blkfront: Fix IO race during unplug

Christoph Hellwig <[email protected]>
block: set the disk capacity to 0 in blk_mark_disk_dead

Nickolai Zeldovich <[email protected]>
mm/mlock: use a long for the page count in mlock_fixup()

Wentao Liang <[email protected]>
xen/gntdev: Fix gntdev_dmabuf ref leak in dmabuf_exp_wait_released()

Yao Yiqi <[email protected]>
fbcon: Retry rotated font allocation after failure

Bartu Alev <[email protected]>
platform/x86: asus-wmi: fix TUF keyboard power state shutdown naming

Lukas Wunner <[email protected]>
platform/x86: Use device_show_string() helper for sysfs attributes

Lukas Wunner <[email protected]>
driver core: Add device_show_string() helper for sysfs attributes

James Seo <[email protected]>
driver core: device.h: add some missing kerneldocs

Daeho Jeong <[email protected]>
f2fs: don't use truncate_inode_pages_final() on live inodes

Peter Ujfalusi <[email protected]>

    ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn

Takashi Iwai <[email protected]>
ALSA: emux: Fix UAF of soundfont zones at note-on

Takashi Iwai <[email protected]>
ALSA: synth: Use guard() for spin locks

Takashi Iwai <[email protected]>
ALSA: emux: Use standard print API

Oswald Buddenhagen <[email protected]>
ALSA: emux: fix validation of snd_emux.num_ports

Oswald Buddenhagen <[email protected]>
ALSA: emux: prune unused parameter from snd_soundfont_load_guspatch()

Myeonghun Pak <[email protected]>
leds: ktd2692: Pass context to regulator cleanup

Runyu Xiao <[email protected]>
block: amiflop: synchronize flush timer before track flush

Joanne Koong <[email protected]>
fuse: don't launder folios of a bad inode

Stanley Jhu <[email protected]>

    scsi: ufs: core: Add a helper for clearing hba->outstanding_reqs

Chao Yu <[email protected]>
f2fs: fix to use bio_in_atomic() in f2fs_read_end_io()

Kaixuan Li <[email protected]>
f2fs: bound the SIT/NAT bitmaps by the checkpoint pack

Jiri Slaby (SUSE) <[email protected]>
serial: 8250_exar: store the GPIO platform device in struct exar8250

Parker Newman <[email protected]>
serial: exar: fix checkpach warnings

Parker Newman <[email protected]>
serial: exar: add optional board_init function

Andy Shevchenko <[email protected]>
serial: 8250_exar: Clear interrupts before registering handler

Paolo Abeni <[email protected]>
mptcp: fix subflow bitfield misuse

Janne Grunau <[email protected]>
wifi: brcmfmac: cfg80211: Report port_authorized for 4-way HS offload

Runyu Xiao <[email protected]>
IB/hfi1: Shutdown self-rearming timers before freeing

Jiaming Zhang <[email protected]>
nilfs2: force clear dirty state when restoring from the shadow map

Henry Martin <[email protected]>
drm/amdkfd: fix doorbell allocation race creating duplicate allocations

Geraldo Nascimento <[email protected]>
PCI: rockchip: Drive at 2.5 GT/s, error other speeds

Guangshuo Li <[email protected]>
irqchip/imx-intmux: Fix runtime PM teardown on remove

Uwe Kleine-König <[email protected]>
irqchip/imx-intmux: Convert to platform_driver::remove_new() callback

Karl Mehltretter <[email protected]>
irqchip/atmel-aic[5]: Disable interrupts in the irq_pm_shutdown() callbacks

Ruide Cao <[email protected]>
mptcp: fix MP_CAPABLE token migration when cloning reqsk

Luxiao Xu <[email protected]>
mm/memory: constrain generic_access_phys() to page boundary

Zhiling Zou <[email protected]>
mm/page_table_check: skip zero pages

Sung Byeongchan <[email protected]>
virtiofs: validate fixed-output response length

Yuto Ohnuki <[email protected]>
virtiofs: add FUSE protocol validation

Hugo Villeneuve <[email protected]>
serial: sc16is7xx: declare MCR and IER as volatile registers

Hugo Villeneuve <[email protected]>
serial: sc16is7xx: add comments for lock requirements

Hugo Villeneuve <[email protected]>
serial: sc16is7xx: declare SPR/TLR/XOFF2 register as volatile

Daeho Jeong <[email protected]>
f2fs: disallow mmap write and data-modifying fallocate on atomic files

Quanye Yang <[email protected]>
mptcp: reset msk state on early connect failure

Joe Damato <[email protected]>
mm: memcontrol: raise MEMCG_MAX for charges that fail without reclaiming

Nanzhe Zhao <[email protected]>
f2fs: remove mappedtodisk flag usage in mmap write path

Runyu Xiao <[email protected]>
ALSA: mpu401: shut down timer before freeing MPU

Tobias Schumacher <[email protected]>
s390/pci: Add error cleanup in zpci_directed_irq_init()

Andrey Misiurov <[email protected]>
fbdev: core: Initialize modelist in framebuffer_alloc()

Fan Wu <[email protected]>
media: rockchip: rga: quiesce IRQ before releasing m2m state

Sven Püschel <[email protected]>
media: rockchip: rga: use clk_bulk api

Hans Verkuil <[email protected]>
media: rockchip: rga: fix clock cleanup

Marc Zyngier <[email protected]>
KVM: arm64: Move IN_GUEST_MODE ahead of state being loaded

David Hildenbrand (Arm) <[email protected]>
mm: disallow ioremap'ing ordinary RAM in generic_access_phys()

Marco Scardovi <[email protected]>
platform/x86: asus-wmi: Serialize WMI method evaluations with a mutex

Runyu Xiao <[email protected]>
mailbox: altera: shut down RX polling timer on channel teardown

Krzysztof Karas <[email protected]>
iommu/dma: Catch scatterlist length overflows

Kees Cook <[email protected]>
overflow: Introduce overflows_type() and castable_to_type()

Peter Ujfalusi <[email protected]>
ALSA: hda/hdmi: clamp sad_count in ELD proc write handler

Myeonghun Pak <[email protected]>
mfd: twl-core: Unregister the auxiliary platform device on unbind

Thorsten Blum <[email protected]>
mfd: twl-core: Use i2c_check_functionality as boolean value

Daeho Jeong <[email protected]>
f2fs: return -EIO for a lost inode block after cp_error

Takashi Iwai <[email protected]>
ALSA: line6: Handle period elapsed calls outside the locks

Gregory Price <[email protected]>
mm/madvise: use folio_trylock() in the cold/pageout PMD split

Thorsten Blum <[email protected]>
init: fix early boot crash with bare hostname parameter

Azeem Shaikh <[email protected]>
init/version.c: Replace strlcpy with strscpy

Ethan Nelson-Moore <[email protected]>
ata: sata_inic162x: remove dangerous broken driver

Hongfu Li <[email protected]>
mm/hugetlb_cgroup: move per-node usage on cgroup reparenting

Hongfu Li <[email protected]>
mm/hugetlb_cgroup: move per-node usage on cross node migration

Sidhartha Kumar <[email protected]>
mm/hugetlb_cgroup: convert hugetlb_cgroup_migrate to folios

Sidhartha Kumar <[email protected]>
mm/hugetlb_cgroup: convert set_hugetlb_cgroup*() to folios

Vincent Donnefort <[email protected]>
KVM: arm64: Fix MMFR0 TGRAN advertisement for pVMs

Wentao Liang <[email protected]>
drm/msm/dsi: Fix VM leak in dsi_tx_buf_alloc_6g()

Wentao Liang <[email protected]>
media: vpif_capture: Fix i2c adapter reference leak in vpif_probe()

Sakari Ailus <[email protected]>
media: davinci: Init async notifier after registering V4L2 device

Myeonghun Pak <[email protected]>
ASoC: stm: stm32_i2s: request IRQ after regmap initialization

bui duc phuc <[email protected]>
ASoC: stm: stm32_i2s: Drop redundant error messages

Ryusuke Konishi <[email protected]>
nilfs2: ignore non-fatal signals during synchronous log write wait

Ryusuke Konishi <[email protected]>
nilfs2: correct return value kernel-doc descriptions for the rest

Bartosz Golaszewski <[email protected]>
dmaengine: qcom: bam_dma: free interrupt before the clock in error path

Vishnu Santhosh <[email protected]>
dmaengine: qcom: bam_dma: Defer IRQ trigger type to device tree

Tom Verdonck <[email protected]>
hwmon: (tmp108) Fix jiffies wraparound in conversion-ready check

Yunpeng Tian <[email protected]>
udf: validate the device specification EA before using it

Marek Czernohous <[email protected]>
drm/nouveau/pci: use config-space MSI rearm on MCP79/MCP7A (NVAC)

Naman Jain <[email protected]>
x86/init: Initialize wall clock in get_rtc_noop()

Hungyu Lin <[email protected]>
mm/migrate: untag addresses when querying page nodes

Magnus Lindholm <[email protected]>
alpha: do not skip TLB shootdown IPIs for kthread-borrowed mms

Magnus Lindholm <[email protected]>
alpha: load the MMU context when switch_mm() switches the current task

Zhiling Zou <[email protected]>
ipmr: only copy pktinfo to cache reports

Eric Dumazet <[email protected]>
ipmr: prevent info-leak in pmr_cache_report()

David Hildenbrand (Arm) <[email protected]>
mm/madvise: fix data loss from MADV_FREE on a KSM page

Yehyeong Lee <[email protected]>
nvme-auth: fail when the controller does not authenticate itself

Mark O'Donovan <[email protected]>
nvme-auth: add flag for bi-directional auth

Martin Wilck <[email protected]>

    nvme-auth: use chap->s2 to indicate bidirectional authentication

Sagi Grimberg <[email protected]>
nvme-auth: check chap ctrl_key once constructed

Weibin Liu <[email protected]>
spi: cadence-xspi: reject SDMA transfers larger than the requested length

Takashi Iwai <[email protected]>
ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect

Daehyeon Ko <[email protected]>
splice: avoid stale f_pos writeback on error

Ahelenia Ziemiańska <[email protected]>
splice: always fsnotify_access(in), fsnotify_modify(out) on success

Chung-Chiang Cheng <[email protected]>
splice: report related fsnotify events

Kyle Zeng <[email protected]>
mm/page_vma_mapped: continue past nonmatching huge PMDs

Dominik Maier <[email protected]>
loop: check for read-write open mode on LOOP_SET_STATUS in lo_compat_ioctl()

Ido Schimmel <[email protected]>
ipmr, ip6mr: validate packets injected into the register vif on xmit

Kuniyuki Iwashima <[email protected]>
ipmr: Call ipmr_fib_lookup() under RCU.

Eric Dumazet <[email protected]>
ipv4: tunnels: use DEV_STATS_INC()

Josef Bacik <[email protected]>
mm/hugetlb: unmap the page where the other VMA maps it

Sinan Turunc <[email protected]>
ALSA: usb-audio: Bound packet copies by the PCM buffer size

Michal Pecio <[email protected]>
usb: xhci: Fix bounce buffer overflow

Yuejie Shi <[email protected]>
fs/ntfs3: validate the EA value length in ntfs_read_ea()

Pedro Falcato <[email protected]>
mm/madvise: atomically clear the young bit on THP MADV_COLD

Vaibhav Nagare <[email protected]>
bnxt_en: don't leave an XDP program installed when the open fails

Martin Belanger <[email protected]>
nvme: make the DH-HMAC-CHAP secret attributes readable by root only

Jun Yang <[email protected]>
sctp: re-point retained control chunks on association migration

David Lee <[email protected]>
sctp: hold shkey across socket migration

Seungjin Bae <[email protected]>
usb: typec: ucsi: ccg: Validate altmode index in GET_CURRENT_CAM response

Jérémy Jean <[email protected]>
crypto: ecc - Handle exceptional points in Shamir multiplication

Sergey Senozhatsky <[email protected]>
ext4: fix ABBA deadlock in ext4_rmdir()

Gabriel Krisman Bertazi <[email protected]>
ext4: Move CONFIG_UNICODE defguards into the code flow

Abdifatah Suruur <[email protected]>
xen/gntdev: prevent private mappings from becoming writable

Runyu Xiao <[email protected]>
hte: tegra194-test: shut down timer before GPIO release

Judith Mendez <[email protected]>
arm64: dts: ti: k3-am62x-sk-common: Set SD clock pin as OUTPUT

Punnay Sharma <[email protected]>
staging: media: av7110: fix sp8870 initialization failure state

Guangshuo Li <[email protected]>
media: i2c: ov5647: fix power cleanup on remove

Sakari Ailus <[email protected]>
platform/x86: int3472: Fix uninitialised variable warning

Sean Young <[email protected]>
media: redrat3: Error path leaves device in transmitting state

Esben Haabendal <[email protected]>
iio: light: ltr501: Power down chip if request irq fails

Jiaming Zhang <[email protected]>
gfs2: reject invalid inode sizes

Tom Verdonck <[email protected]>
hwmon: (tmp102) Fix jiffies wraparound in conversion-ready check

Tharit Tangkijwanichakul <[email protected]>
media: hantro: disable runtime PM before hardware teardown

Uwe Kleine-König <[email protected]>
media: hantro_drv: Convert to platform remove callback returning void

Nas Chung <[email protected]>
media: v4l2-common: Fix P010 format info

Ali Resool Tuama <[email protected]>
USB: quirks: add USB_QUIRK_WINDOWS_CONFIG_REQ_SIZE for GameSir G7 SE

Nikhil Solanke <[email protected]>
usb: core: Add quirk for 255-bytes initial config read

Joseph Qi <[email protected]>
ocfs2: restrict OCFS2_INVALID_SLOT suballoc slot to system inodes

Runyu Xiao <[email protected]>
ALSA: usb-audio: Protect Roland control activation

Wentao Liang <[email protected]>
mtd: mtdsuper: Fix MTD device reference leak in mtd_get_sb()

Fabio Cesari <[email protected]>
iio: light: isl29028: fix runtime PM reference leak on error paths

Sean Christopherson <[email protected]>
KVM: x86/mmu: Bug the VM if KVM attempts to walk more levels than the MMU has

Sean Christopherson <[email protected]>
KVM: x86/mmu: Bug the VM if a vCPU ends up in long mode without PAE enabled

Sean Christopherson <[email protected]>
KVM: nSVM: Ignore EFER.LMA if EFER.LME=0 when preparing L2 state

Judith Mendez <[email protected]>
arm64: dts: ti: k3-am625-sk-common: Set eMMC clock pin as OUTPUT

Balakrishnan Sambath <[email protected]>
media: microchip-isc: don't sleep in the clk .is_enabled callback

Hui Peng <[email protected]>

    seccomp: restore knotif->state when SECCOMP_ADDFD_FLAG_SEND is interrupted

Balakrishnan Sambath <[email protected]>
media: microchip-isc: synchronize the IRQ before disabling clocks on stop

Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix WB offset and gain register field masking

Koichiro Den <[email protected]>
PCI: endpoint: pci-epf-vntb: Manage virtual NTB and PCI bus lifetime

Stanislaw Gruszka <[email protected]>
wifi: mac80211: queue frames while off-channel

Kexin Sun <[email protected]>
wifi: mac80211: update outdated comment

Laxman Acharya Padhya <[email protected]>
wifi: rtw89: cap firmware section_num before parsing

Andrea Pesaresi <[email protected]>
arm64: dts: mediatek: mt7986: correct timer frequency

Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix awb_mutex and lock lifecycle

Valentin Kindschi <[email protected]>
Bluetooth: hci_sync: pause advertising for the scan address update

YuanZhe Liu <[email protected]>
ALSA: usx2y: Refuse a retried DSP load after a failure

Josef Bacik <[email protected]>
blk-mq: end the request if getting a keyslot fails

Eric Biggers <[email protected]>
lib/crypto: mips: Disable Octeon SHA code on little-endian kernels

Sven Eckelmann <[email protected]>
batman-adv: tt: don't drop local events queued during TVLV update

Sven Eckelmann <[email protected]>
batman-adv: tt: only update flags for TT events

Sven Eckelmann <[email protected]>
batman-adv: tt: ignore ROAM flag of received ADD changes

Sven Eckelmann <[email protected]>
batman-adv: tt: send ROAM_ADV on each roamed back client

Sven Eckelmann <[email protected]>
batman-adv: tt: clear ROAM flag when re-adding a pending local client

Sven Eckelmann <[email protected]>
batman-adv: tt: only transmit local ROAM flag together with DEL

Sven Eckelmann <[email protected]>
batman-adv: stop originator purge worker before freeing TT

Sven Eckelmann <[email protected]>
batman-adv: tpmeter: fix u32 truncation of reported bytes

Chengfeng Ye <[email protected]>
batman-adv: Close OGM aggregation before transmission

Sven Eckelmann <[email protected]>
batman-adv: Limit number of aggregated packets directly

Daehyeon Ko <[email protected]>
crypto: algif_skcipher - rewind rounded output bytes

Abhishek Dubey <[email protected]>
powerpc/bpf: fix buffer overflow in JIT for large BPF programs

Jan Kara <[email protected]>
udf: Make sure there's enough space for LVID implementation use field

Jan Kara <[email protected]>
udf: Avoid invalid LVID used on mount

Zhenhao Wan <[email protected]>
drm/nouveau/svm: drain fault handler before freeing svmm

Suravee Suthikulpanit <[email protected]>
iommu/amd: Force device table to maximum size

Joanne Chang <[email protected]>
f2fs: allow pinning empty compressed files

Jiucheng Xu <[email protected]>
f2fs: force out-place update for all writes on compressed file

Ard Biesheuvel <[email protected]>
efi/libstub: arm64: Don't use the platform register x18

Igor Velkov <[email protected]>
genirq/kexec: Do not take the bus lock of an interrupt chip on the crash path

Zhao Gongyi <[email protected]>
ata: libata-scsi: reject data-in commands with a data-out buffer

Oliver Hartkopp <[email protected]>
can: raw, isotp: copy socket options outside of lock_sock()

SJ Park <[email protected]>
mm/damon/core: move static variable last_nr_regions to damon_ctx

Ido Schimmel <[email protected]>
vxlan: Stop rejecting dynamic FDB entries with a nexthop ID

Ramin Moussavi <[email protected]>
microblaze: restore the ABI argument home area below pt_regs (PTO)

Kiryl Shutsemau (Meta) <[email protected]>
arm64: sdei: Preserve the interrupted context's exception registers

Kiryl Shutsemau (Meta) <[email protected]>
arm64: sdei: Run the event handler on the kernel vectors

Guanglei Zhu <[email protected]>
ceph: clamp the inline data length in ceph_fill_inline_data()

Oliver Hartkopp <[email protected]>
can: protect the receive lists with a per-device lock

Oliver Hartkopp <[email protected]>
can: replace ARPHRD_CAN type checks with can_get_ml_priv()

Marco Ziliani <[email protected]>
ata: libata-pmp: disable the SEMB port on Marvell 88SM9705

Thorsten Blum <[email protected]>
x86/boot: Fix off-by-one error in sme_clear_pgd()

Jinjie Ruan <[email protected]>
arm64: kexec_file: Fix elf_headers memory leak in retry loop

Akshay Jindal <[email protected]>
iommu/amd: Skip non-IVMD entries when parsing IVRS memory definitions

Breno Leitao <[email protected]>
x86/nmi: Ignore negative NMI handler durations

Danish Khateeb <[email protected]>
perf/core: Don't send SIGTRAP after exec removed the event

Shao Mingyin <[email protected]>
nvmet: bound the traddr and trsvcid configfs writes

Imre Kaloz <[email protected]>
MIPS: sgi-ip32: Leave MACE PCI control alone in config accesses

Imre Kaloz <[email protected]>
MIPS: sgi-ip32: Mask MACE PCI interrupts in CRIME only

Imre Kaloz <[email protected]>
MIPS: mm: Fix the cache error vector jump for XKPHYS kernels

Matthias Goergens <[email protected]>
udf: don't let the extent type hide an exhausted free-space table extent

Christian Gmeiner <[email protected]>
drm/etnaviv: Flush the tile status cache through both the PE and BLT

James Clark <[email protected]>
net: ethernet: ti: am65-cpsw-nuss: Enable timestamping of unicast PTP packets

Ray Zhang <[email protected]>
net: count last skb of each sk_backlog pass in __release_sock()

Bryam Vargas <[email protected]>
net/smc: don't spin in smc_rx_recvmsg() while a pipe holds spliced data

Sinan Turunc <[email protected]>
ALSA: usx2y: Guard the playback copy

Sinan Turunc <[email protected]>
ALSA: usx2y: Require a buffer of two URBs

Wentao Liang <[email protected]>
ALSA: caiaq: free the EP4 URB when input setup fails

Sinan Turunc <[email protected]>
ALSA: line6: Reject capture buffers smaller than two packets

YuanZhe Liu <[email protected]>
ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close

Alex Kazinsky <[email protected]>
ALSA: cs46xx: Handle SCB creation failures before dereferencing

Chris Simpson <[email protected]>
ALSA: hda/realtek: Enable bass speakers on Alienware m17 R3

Ilia Mirkin <[email protected]>
drm/nouveau/devinit/gf100-: try to avoid double-running vbios scripts

Zhao Gongyi <[email protected]>
arm64: mm: validate /dev/mem mmap ranges without overflow

Ewan D. Milne <[email protected]>
nvmet: don't return memory contents beyond valid data when reading ANA log page

Kylie C <[email protected]>
drm/amd/display: Don't select zero V_TOTAL_MIN/MAX on seamless boot

Milan Milicevic <[email protected]>
drm/amdgpu: publish IH enabled before PSP programs IH_RB_CNTL

Milan Milicevic <[email protected]>
drm/amdgpu: clear RB_OVERFLOW bit when enabling interrupts for navi10_ih

Jesse Zhang <[email protected]>
drm/amdgpu: parse CS IBs at the BO offset their VA mapping starts at

Jamal Hadi Salim <[email protected]>

    net/sched: clamp skb->queue_mapping before indexing the tx queue

Xia Yan <[email protected]>
ipv6: fix device binding after failed datagram connect

David Hildenbrand (Arm) <[email protected]>
mm/ksm: reset the unstable trees of all nodes

Josef Bacik <[email protected]>
mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit

Chris Mason <[email protected]>

    mm/mmu_notifier: set ->mm only after mmgrab()

Josef Bacik <[email protected]>
mm/mmu_gather: fix flushing ranges with 4 GiB or larger

Chris Mason <[email protected]>

    mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast

Liu Changjie <[email protected]>
can: peak_usb: pcan_usb_fd_decode_buf(): accept short uCAN end-of-list records

ChunYuZhiQiang <[email protected]>
can: dev: can_fill_info(): don't wake up controller if interface is down

Oliver Hartkopp <[email protected]>
can: proc: skip stats calculation after reset in can_stat_update()

Runyu Xiao <[email protected]>
can: proc: reset pkg_stats atomics individually

Oliver Hartkopp <[email protected]>
can: isotp: check the return values of can_rx_register() in isotp_bind()

Cunhao Lu <[email protected]>
can: dev: can_put_echo_skb(): free skb on invalid echo index

Kaixuan Li <[email protected]>
can: isotp: check the frame type, not just the length

Christoph Hellwig <[email protected]>
xfs: fix recovery of partial attr removals

Daejun Park <[email protected]>
xfs: clamp the pNFS layout range to the maximum file size

Daejun Park <[email protected]>
xfs: cap the block count of xfs_iomap_write_direct() at one extent

Daejun Park <[email protected]>
xfs: clamp a pNFS LAYOUTCOMMIT extent before computing its end

Daejun Park <[email protected]>
xfs: mark the inode preallocated for pNFS write layouts past EOF

Zhe Liu <[email protected]>
blk-iocost: account flush sequence latency only once

Reid Downing <[email protected]>
xfs: fix wrong compat fields in xfs_ioctl32_bstat_copyin()

Hungyu Lin <[email protected]>
block: Return the soft block size for compat BLKBSZGET

Hungyu Lin <[email protected]>
inotify: do not coalesce rename events

Esben Haabendal <[email protected]>
drm/bridge: nwl-dsi: Limit LCDIF specific sync override

Esben Haabendal <[email protected]>
drm/bridge: nwl-dsi: Cleanup endpoint mux control selection

Yuho Choi <[email protected]>
iommu/virtio: Reset device before deleting virtqueues on probe failure

Kyle Zeng <[email protected]>
net/sched: sch_qfq: prevent aggregate self-replacement

Jianyun Gao <[email protected]>
xfs: fix temporary cursor leak in btree shift corruption paths

Cen Zhang <[email protected]>
ocfs2: wait for filecheck kobject release after a failed add

Cen Zhang <[email protected]>
ocfs2/cluster: unlink socket containers before releasing resources

Cen Zhang <[email protected]>
ocfs2: stop recovery before shutting down local allocators

Cen Zhang <[email protected]>
ocfs2/dlm: serialize migration MLE cleanup on failure

Cen Zhang <[email protected]>
ocfs2: keep locking_state within the cluster connection lifetime

Matheus Alves de Almeida <[email protected]>
fat: hold truncate_lock in fat_write_failed()

Joseph Qi <[email protected]>
ocfs2: do not read the entry array of an empty xattr block

Joseph Qi <[email protected]>
ocfs2: do not index before the entry array when dividing an empty bucket

Joseph Qi <[email protected]>
ocfs2: find the xattr entry again after converting a block to a bucket

Joseph Qi <[email protected]>
ocfs2: find the xattr entry again after defragmenting a bucket

Andrew Morton <[email protected]>
openrisc: export __mulsi3 for modules

Chris Down <[email protected]>
mm: make swapoff interruptible when unusing mms/shmem

Valentin Kindschi <[email protected]>
Bluetooth: hci_sync: re-enable legacy advertising on resume

Sean Christopherson <[email protected]>
KVM: x86: Unconditionally reset MMU context when emulating INIT

Sean Christopherson <[email protected]>
KVM: x86/mmu: Cap number of parent PTEs per SP at 1000 (the arbitrary rmap limit)

Sean Christopherson <[email protected]>
KVM: nVMX: Process each host MSR entry at most once when unwinding failed VM-Entry

Sean Christopherson <[email protected]>
KVM: x86: Conditionally resched when restarting REP string emulation

Sean Christopherson <[email protected]>
KVM: x86/mmu: Conditionally resched when retrying gPTE walk on A/D update failure

Guenter Roeck <[email protected]>
hwmon: (pmbus) Fix return value check from thermal zone registration

Guenter Roeck <[email protected]>
hwmon: (pmbus) Release devres allocated memory after devm_thermal_of_zone_register error

Guenter Roeck <[email protected]>
hwmon: (pmbus/q54sj108a2) Add missing NULL pointer check

Guenter Roeck <[email protected]>
hwmon: (peci/dimmtemp) Fix devres leak and UAF on concurrent unbind

Guenter Roeck <[email protected]>
hwmon: (nct6683) Fix incorrect struct cast in show_pwm() and store_pwm()

Guenter Roeck <[email protected]>
hwmon: (lm87) Fix drvdata type confusion in vrm_show() and vrm_store()

Guenter Roeck <[email protected]>
hwmon: (asus_wmi_sensors) Avoid global struct mutation

Baek Kyu, Kim <[email protected]>
hwmon: (corsair-cpro) Cache fan target only after a successful command

Xia Yan <[email protected]>
veth: keep carrier off when resizing channels with a down peer

Fang Xieyan <[email protected]>
vringh: reject empty / undersized indirect descriptor tables

Fang Xieyan <[email protected]>
vringh: bound top-level re-entry into indirect tables

Tal Zussman <[email protected]>
vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path

Jose Maria Casanova Crespo <[email protected]>
drm/v3d: Initialize timedout_batches when running a CSD job

Josef Bacik <[email protected]>
mm/filemap: don't lose a folio lock wakeup to a signal

Josef Bacik <[email protected]>
mm/memfd: make f_pos accesses atomic

Josef Bacik <[email protected]>
mm/mglru: don't use stack pointers when walking PUD and PMD tables

David Hildenbrand (Arm) <[email protected]>
mm/shmem: fix truncation of files containing only swapin-error markers

David Hildenbrand (Arm) <[email protected]>
mm/shmem: discard whole new large folios on fallocate rollback

Chris Mason <[email protected]>
mm/shmem: preserve data in clean folios when splitting fails

Chris Mason <[email protected]>
mm/shmem: stop retrying folios that cannot be split

Chris Mason <[email protected]>
mm/mempolicy: charge shared policy nodes

Ian Bridges <[email protected]>
ksmbd: grant a POSIX ACL group entry only to the group's members

Federico Musto <[email protected]>
net: atl1c: drop oversized RX frames instead of panicking

Lu Yao <[email protected]>
drm/i915/gem: Reset err for each fence entry

Ian Bridges <[email protected]>
ksmbd: require DELETE access for delete-on-close opens

Jamal Hadi Salim <[email protected]>
bpf: Fix skb_pull() BUG in __bpf_redirect_neigh()

YuanZhe Liu <[email protected]>
ALSA: hwdep: Serialize DSP load requests

YuanZhe Liu <[email protected]>
ALSA: usx2y: Initialize idle URBs before submitting streams

YuanZhe Liu <[email protected]>
ALSA: us122l: Fix NULL dereference at hwdep open and release

YuanZhe Liu <[email protected]>
ALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()

Shao Mingyin <[email protected]>
scsi: target: tcmu: Fix divide-by-zero in data_pages_per_blk store

Yuanhe Shu <[email protected]>
scsi: target: Verify the iSCSI ISID is null-terminated

Yingjie Wang <[email protected]>
scsi: bsg: Report synchronous data copyback failures

guolingxing <[email protected]>
btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()

Masafumi Suzuki <[email protected]>
sctp: account for chunk padding in sctp_init_cause()

Lucas Tanure <[email protected]>
drm/vc4: hdmi: enable scrambling before the TMDS clock starts

Lucas Tanure <[email protected]>
drm/vc4: hdmi: always cancel the scrambling work synchronously

Zhou Qiuyue <[email protected]>
ipv6: raw: fix use-after-free in rawv6_send_hdrinc()

Franck Baur <[email protected]>
net: jme: keep RX MAC clock enabled for WoL

Sven Eckelmann <[email protected]>
batman-adv: fix skb leak when hard_iface is being released

Sven Eckelmann <[email protected]>
batman-adv: dat: initialize orig_node of unfilled candidate slots

Yuanfu Xie <[email protected]>
9p: don't decrement a server-owned zero nlink

Yehyeong Lee <[email protected]>
9p/xen: validate the response size from the backend

Imre Kaloz <[email protected]>
scsi: aic7xxx: Use default settings on the SGI O2 onboard controllers

Maíra Canal <[email protected]>
drm/vc4: Publish the output fence outside of job_lock

Zijing Yin <[email protected]>
wifi: cfg80211: fix out-of-bounds read in valid_rule()

Alex Kazinsky <[email protected]>
wifi: rsi: Skip TX aggregation setup for non-QoS frames

Weigang He <[email protected]>
wifi: mac80211: reload TDLS header pointer after skb_linearize()

André Draszik <[email protected]>
drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind

Sabrina Dubroca <[email protected]>
xfrm: espintcp: reorder operations within espintcp_init_sk

Qihang <[email protected]>
xfrm: interface: validate the IP header on xmit

Zhao Zhang <[email protected]>
9p: fix caches_show() out-of-bounds write

Yifei Gao <[email protected]>
9p/xen: fix refcount leak in p9_xen_response() on wrong tag

Michael Bommarito <[email protected]>
9p/trans_virtio: reject mount tags longer than NAME_MAX at probe

Chengfeng Ye <[email protected]>
xfrm: retry inexact policy lookup after node reinsertion

Noam D. Eliyahu <[email protected]>
tg3: Invert restart quirk logic to restrict SNP power-down bypass

Hungyu Lin <[email protected]>
posix-timers: Accept NULL clock_getres() output in stubs

Yingjie Wang <[email protected]>
scsi: handle out-of-range SG_SET_TIMEOUT values

Sahaj Chaudhari <[email protected]>
gpio: pca953x: Preserve wakeup accounting on parent IRQ failure

Henry Martin <[email protected]>
rds: fix out-of-bounds conn_path walks via handshake exthdrs

Donggeun Yoo <[email protected]>
tracing: Add the bucket size to expr_field_str()

Richard Patel <[email protected]>
genirq: Move interrupt thread exit_work object to irqaction

Bui Viet Dung <[email protected]>
Bluetooth: selftest: Pin module for selftest debugfs file operations

Guangshuo Li <[email protected]>
mfd: ab8500: Fix child device leaks on probe failure

Diego Oliva <[email protected]>
smb: client: fix OOB read in the SMB_FIND_FILE_UNIX name scan

Benjamin Coddington <[email protected]>
NFSv4/pnfs: Free the netid when draining a data-server address list

Kazuki Hanai <[email protected]>
media: mediatek: jpeg: Avoid context access after job finish

Rupesh Majhi <[email protected]>
iio: pressure: dps310: fix CFG_REG bit definitions

Ridham Khurana <[email protected]>
hwmon: (lm70) Fix rounding of negative temperatures

Ruoyu Wang <[email protected]>
media: adv748x: Fix endpoint reference leaks on probe failure

Pengpeng Hou <[email protected]>
media: require two-byte Cypress type 04 records

Takashi Iwai <[email protected]>
ALSA: usb-audio: Don't try to submit URBs after disconnection

Ricardo Ribalda <[email protected]>
media: uvcvideo: Force UVC version for Avermedia GC515

Ricardo Ribalda <[email protected]>
media: uvcvideo: Add autosuspend quirk for AVerMedia Live Gamer HD 2

Alexander Sverdlin <[email protected]>
pwm: tiehrpwm: Clear period on disable to allow reconfiguration

Ricardo Ribalda <[email protected]>
media: uvcvideo: Disable autosuspend for Insta360 Link

Weibin Liu <[email protected]>
spi: bcm-qspi: reject oversized dummy bytes in mspi exec_mem_op

Daejun Park <[email protected]>
jbd2: don't advance j_fc_off before the buffer is recorded

Christian Borntraeger <[email protected]>
s390/vmcp: Initialize full session info to zero

Rosen Penev <[email protected]>
net: bgmac: enable interrupts only after NAPI is ready

Rosen Penev <[email protected]>
mtd: rawnand: ndfc: use devm_platform_ioremap_resource()

Rosen Penev <[email protected]>
mtd: rawnand: ndfc: fix gcc uninitialized var

Arnd Bergmann <[email protected]>
mtd: rawnand: ndfc: add CONFIG_OF dependency

Rosen Penev <[email protected]>
mtd: rawnand: ndfc: use ioread32be/iowrite32be and allow COMPILE_TEST

Darrick J. Wong <[email protected]>
xfs: always report scrub errors in tracepoints

Eric Biggers <[email protected]>
raid6: add missing vzeroupper to AVX2 code

Aldo Ariel Panzardo <[email protected]>
xfs: bound da-node entry count against the correct geometry

Darrick J. Wong <[email protected]>
xfs: reject absurdly large xattr value lengths in xchk_xattr_actor

Darrick J. Wong <[email protected]>
xfs: rescan the AGs if incore delalloc counter is negative

Darrick J. Wong <[email protected]>
xfs: allow softlimit with no hardlimit in quota scrub

Qingfang Deng <[email protected]>
pppoe: delete session hash entries by pointer match

Liz Fong-Jones <[email protected]>
writeback: keep cleanup_offline_cgwb()'s scan out of syncs

Christian Loehle <[email protected]>
ACPI: CPPC: Propagate errors from cross-CPU FFH calls

Christian Loehle <[email protected]>
ACPI: CPPC: Validate FFH register fields before hardware access

SJ Park <[email protected]>
mm/damon/core: remove unreachable damos charge_{target,addr}_from

SJ Park <[email protected]>
mm/damon/core: skip applying scheme if region split for quota fails

Eric Biggers <[email protected]>
raid6: add missing vzeroupper to AVX-512 code

Eric Biggers <[email protected]>
xor: add missing vzeroupper to AVX code

Eric Biggers <[email protected]>
fsverity: Explicitly require FMODE_READ to retrieve hashes

Yuansheng Yang <[email protected]>
io_uring/rsrc: hold uring_lock across index-alloc put_user

Jens Axboe <[email protected]>
io_uring/poll: don't poll a writer for urgent data

Jens Axboe <[email protected]>
io_uring/poll: don't poll a writer for a read side hangup

Shang En Sim <[email protected]>
io_uring/poll: cancel all matching requests in one pass

Shuai Liu <[email protected]>
io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit

Jens Axboe <[email protected]>
io_uring/sqpoll: don't attach to a thread that is canceling

Chris Mason <[email protected]>

    io_uring/cancel: drop sqd->lock while SQPOLL waits

Til Kaiser <[email protected]>
mlxsw: Initialize register query payloads

Nicolai Buchwitz <[email protected]>
serial: amba-pl011: keep transmitter enabled when disabling RS485

Jiale Yao <[email protected]>
HID: prodikeys: validate fixed-format MIDI reports

Jiri Slaby (SUSE) <[email protected]>
HID: hid-prodikeys: remove struct pk_device

David Woodhouse <[email protected]>

    KVM: x86/xen: Take kvm->srcu in __kvm_xen_has_interrupt()

Keqiang Duan <[email protected]>
KVM: x86: Clear hardware HLT state when userspace makes a vCPU not-halted

Sean Christopherson <[email protected]>

    KVM: nSVM: Reject KVM_SET_NESTED_STATE if L1 has EFER.LMA=1 && EFER.LME=0

David Howells <[email protected]>
afs: Fix afs to abort the rxrpc call on send error

Chuck Lever <[email protected]>
NFSD: Map flex file layout IDs through the request's user namespace

Chuck Lever <[email protected]>
NFSD: Complete a cld upcall when copying its reply fails

Chuck Lever <[email protected]>
NFSD: Complete a cld upcall when the daemon closes the pipe

Chuck Lever <[email protected]>
NFSD: Move the cld upcall message out of the caller's stack frame

Jeff Layton <[email protected]>
nfsd: don't offer flexfiles layouts when NFSv3 isn't being served

Benjamin Coddington <[email protected]>
NFSv4/flexfiles: fail I/O to the data server once a lock is lost

Ratnaker Gautam <[email protected]>
smb: client: bound POSIX lock data area by response length

Benjamin Coddington <[email protected]>
NFSv4/pnfs: bound the CB_NOTIFY_DEVICEID array count before allocating

Darrick J. Wong <[email protected]>
xfs: improve dirent bounds checking in scrub and repair

Darrick J. Wong <[email protected]>
xfs: check for buffer overruns when examining local/remote xattr entries

Ratnaker Gautam <[email protected]>
smb: client: validate SMB1 EA list bounds before parsing

Dominik Maier <[email protected]>
smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl()

Diego Oliva <[email protected]>
smb: client: fix OOB read of the resume name sent in TRANS2_FIND_NEXT2

VeroFess <[email protected]>
smb: server: size directory name conversion buffer correctly

Eduard Zateev <[email protected]>
smb: client: hold server info until cifsd exits

Jinwang Li <[email protected]>
Bluetooth: L2CAP: Ignore connection responses with wrong ident

Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Only accept connection responses to outstanding requests

Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Reject signalling responses in invalid states

Andrew Stellman <[email protected]>
nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()

Kamil Sawicki <[email protected]>
net: limit priority VLAN untag depth

Chris Mason <[email protected]>
backing-file: always end a queued write

Peter Ujfalusi <[email protected]>
ALSA: x86: hdmi: fix chmap array missing terminator entry

Jérémy Jean <[email protected]>
SUNRPC: fix oversized GSS proxy token copy

David Howells <[email protected]>

    rxrpc: Fix update of call->tx_pending without holding lock

Chuck Lever <[email protected]>

    NFSD: Set nn->cld_net before registering the cld pipe

Abdifatah Suruur <[email protected]>
smb: client: validate the data area in SMB2_read()

Stephen Rothwell <[email protected]>
sprintf.h requires stdarg.h

Miquel Raynal (DAVE) <[email protected]>
mtd: rawnand: pl353: Fix debug prints

Scott Gauche <[email protected]>
ALSA: hda/realtek: Fix audio after Windows reboot on ASUS Q423SA

Jason Perlow <[email protected]>
wifi: brcmfmac: map msgbuf RX packet IDs bidirectional

John Johansen <[email protected]>
apparmor: on failed load ensure profile files are removed before parent

Avi Weiss <[email protected]>
init/bootconfig: pass init arguments in documented order

Hungyu Lin <[email protected]>
fs: skip copy_file_range write limits when there is no data

Chris Mason <[email protected]>
aio: fix NULL deref when a fault races ring truncation

Georgia Garcia <[email protected]>
apparmor: remove fs entries created by a failed policy load

Kyle Zeng <[email protected]>
tcp: fix reordering addition overflow in MTU probing

John Johansen <[email protected]>
apparmor: fix refcount leak in aa_get_newest_profile()

Zhiling Zou <[email protected]>
tcp: check congestion control restriction first

Kunhai Dai <[email protected]>
blk-iocost: abort weight transfer on invalid donation weights

Josef Bacik <[email protected]>
mount: refuse setns() with a shared fs_struct again

Eric Biggers <[email protected]>

    fsverity: Be more careful with return value of ->get_verity_descriptor()

Fang Xieyan <[email protected]>
kgdb: Fix buffer overflow in the qRcmd packet handler

Fang Xieyan <[email protected]>
kgdb: Fix buffer overflow in the 'M' and 'X' packet handlers

Fang Xieyan <[email protected]>
kgdb: Fix buffer overflow in the 'm' packet handler

Guixin Liu <[email protected]>
nvmet: Free the old negotiation state when restarting authentication

Guixin Liu <[email protected]>
nvmet: Finish the blk plug when integrity allocation fails

Guixin Liu <[email protected]>
nvmet-fc: Tear down the association when the admin queue allocation fails

Shao Mingyin <[email protected]>
nvmet-auth: fix error handling on CHALLENGE failure

Andrea Parri <[email protected]>
nvmet-fc: only send read data for successful commands

Weiming Shi <[email protected]>
nvmet-rdma: reject short connection requests

Tristan Madani <[email protected]>
ppp: fix stale pointer access after pskb_may_pull in ppp_ccp_peek

Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Keep runtime PM state in sync across codec remove/probe

Hongling Zeng <[email protected]>
ntfs3: fix mapping pairs bounds check for alignment

Hyeontae Lee <[email protected]>

    fs/ntfs3: bound DeleteAttribute asize against rec->used in do_action

Hyeontae Lee <[email protected]>
fs/ntfs3: bound CreateAttribute asize against record_size in do_action

David Yang <[email protected]>
net: hisilicon: hisi_femac: Stop the receiver before releasing the RX ring

Xia Yan <[email protected]>
macvlan: fix passthru promiscuity accounting while down

Jesse Zhang <[email protected]>
drm/amdkfd: evict the queues only once for CRIU PROCESS_INFO

Jiale Yao <[email protected]>
drm/amdkfd: validate SRAT subtables before parsing

Luigi Lauro <[email protected]>
drm/amd/display: take a runtime PM reference only when a CRTC turns on

Zhongqiu Han <[email protected]>
cpufreq: stats: Fix potential out-of-bounds access in deferred reset

Huacai Chen <[email protected]>
LoongArch: Use pa_to_nid()/nid_to_addrbase() rather than hard-code

Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Balance the runtime PM disable in codec remove

Eric Dumazet <[email protected]>
ixgbe: reserve TX timestamp after skb preparation

Peter Ujfalusi <[email protected]>
ALSA: hda: Reject codec reset on ASoC (ext_ops) buses

Yingjie Wang <[email protected]>
tcp: limit tcp_tso_rtt_log to a valid shift count

Ido Schimmel <[email protected]>
ipmr: fully initialize the synthetic IP header in ipmr_get_route()

Jiayuan Chen <[email protected]>
bonding: fix out-of-bounds read of arp_ip_target

Wei Jie Law <[email protected]>
net: usb: pegasus: check rx pkt_len against the received length

Val Packett <[email protected]>
ASoC: qcom: qdsp6: q6afe: fix clk vote response type mismatch

sung byeongchan <[email protected]>
ceph: validate encoded xattr name lengths

sung byeongchan <[email protected]>
ceph: bound name skips in ceph_mdsmap_decode() by the message end

Venky Shankar <[email protected]>
ceph: don't fail write_begin with -EAGAIN after flushing old snapc

Yuanfu Xie <[email protected]>
ceph: clamp MDS reply result code to the errno range

Jérémy Jean <[email protected]>
libceph: fix out-of-bounds reads from repeated CRUSH bucket entries

Wentao Liang <[email protected]>
ceph: Fix mds session leak in __open_export_target_session()

Wentao Liang <[email protected]>
ceph: Fix xattr buffer leak in __send_cap()

Xiang Mei <[email protected]>
ceph: fix integer overflow in the snap trace bounds check

Yogesh Gaur <[email protected]>
libceph: reject an initial monmap with no monitors

Felix Hoffmann <[email protected]>
libceph: reject mismatched CRUSH weight-set sizes

Raphael Zimmer <[email protected]>
libceph: Fix multiple unsafe decodes in ceph_oloc_decode()

Raphael Zimmer <[email protected]>
libceph: Fix unsafe decode in ceph_redirect_decode()

Xiubo Li <[email protected]>
libceph: only set read_from_replica on read requests

Xiang Mei <[email protected]>
ceph: reject mdsmaps that claim more than CEPH_MAX_MDS ranks

Guanglei Zhu <[email protected]>
ceph: fix out-of-bounds read in ceph_netfs_issue_op_inline()

Max Kellermann <[email protected]>
ceph: avoid pending truncate during nonblocking cap acquire

Hungyu Lin <[email protected]>
time/namespace: Fix overflow when converting absolute deadlines

Hungyu Lin <[email protected]>
timers/itimer: Keep a nonzero value at CPU timer expiry

Wang Haoran <[email protected]>
fbdev: atmel_lcdfb: fix list_first_entry() on possibly empty modelist in probe

Yunhui Cui <[email protected]>
riscv: mm: exclude invalid THP PMDs from page table check

Cen Zhang <[email protected]>
ocfs2/cluster: remove zero-address nodes from IP tree on teardown

Cen Zhang <[email protected]>
ocfs2: snapshot the dentry name while tracing file release

Hungyu Lin <[email protected]>
compat: avoid double rounding in times()

Stanley Jhu <[email protected]>
scsi: ufs: core: Remove an always-false WARN_ONCE()

Ratnaker Gautam <[email protected]>
scsi: libiscsi_tcp: Prevent R2T range check overflow

Stanley Jhu <[email protected]>
scsi: ufs: core: Clear stale UIC result byte before peer DME retries

Stanley Jhu <[email protected]>
scsi: ufs: bsg: Clear the reply buffer before use

Sasha Levin <[email protected]>
cgroup: don't kill migrated processes through their exiting threads

Thomas Weißschuh (Schneider Electric) <[email protected]>
timekeeping: Update offsets on sequence counter retry in ktime_get_update_offsets_now()

Cen Zhang (Microsoft) <[email protected]>
posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() signal path

Pufan Jin <[email protected]>
spi: zynq-qspi: fix address buffer corruption and support 4-byte address

Christian Marangi <[email protected]>
i2c: mt7621: fix copying uninitialized kernel stack with reduced page_len

Jean Delu <[email protected]>
parisc: eisa_enumerator: Fix out-of-bounds reads of the EEPROM buffer

Pei Xiao <[email protected]>
tpm: fix zero-length read discarding the pending response

Pei Xiao <[email protected]>
tpm: tpm_nsc: stop using the cleanup callback as dev.release

Pei Xiao <[email protected]>
tpm: tpm_nsc: fix NULL pointer dereference on init failure

Navon John Lukose <[email protected]>
i2c: designware: queue only one read command for block reads

Ma Ke <[email protected]>
i2c: acpi: Fix adapter reference leak in i2c_acpi_new_device_by_fwnode()

Nickolai Zeldovich <[email protected]>
ucount: take the rlimit reference before checking the limit

Henry Martin <[email protected]>
tipc: fix broadcast sender hang on last acker departure

Liu Chao <[email protected]>
net: wwan: iosm: validate msg_head before indexing msg_ring

Runyu Xiao <[email protected]>
sh: maple: Use the matching IRQ cookie when invoking free_irq()

Julian Sun <[email protected]>
writeback: clear old wb dirty state after inode switches

Julian Sun <[email protected]>
writeback: reset dirtied_when when switching wbs

Michael Kelley <[email protected]>
Documentation: hyperv: Update documentation for sending VMBus packets

Cen Zhang <[email protected]>
ocfs2/cluster: initialize heartbeat regions before publishing them

Joseph Qi <[email protected]>
ocfs2: reserve value tree metadata when moving an xattr into the inode

Joseph Qi <[email protected]>
ocfs2: reserve metadata for a new xattr block and its value tree

Matt Turner <[email protected]>
alpha: determine tininess after rounding in the FP emulation

Bryam Vargas <[email protected]>
net/smc: queue the copied chunk when smc_tx_sendmsg() faults

Yingjie Wang <[email protected]>
net: unix: reject negative max_dgram_qlen values

Nguyen Ngoc Thang <[email protected]>
net/rds: ib: don't enable IRQs in rds_ib_conn_free()

Tingjie Zhong <[email protected]>
fbdev: bitblit: Fix glyph clipping when fbcon pans

Daehyeon Ko <[email protected]>
ipv6: do not restart DAD for a dead ifaddr

Daehyeon Ko <[email protected]>
ipv6: initialize temporary ifaddr before publication

Daehyeon Ko <[email protected]>
ipv6: serialize address publication with device teardown

Daehyeon Ko <[email protected]>
ipv6: remove ifaddr from hash during ifdown list cleanup

Keita Morisaki <[email protected]>
drm/amd/display: Fix swap in median3() for DSC rate control

Jesse Zhang <[email protected]>
drm/amdgpu: reject ANONONLY userptrs that span multiple VMAs

Mario Limonciello <[email protected]>
drm/amd/display: don't WARN when removing an unallocated MST payload

Maciej Kucharek <[email protected]>
drm/amdgpu: reset VI ASIC on Apple boards with VRAM at 0

Maciej Kucharek <[email protected]>
drm/amdgpu: reset CIK ASIC on Apple boards with VRAM at 0

Luigi Lauro <[email protected]>
drm/amdgpu: require _PR3 for BOCO

Nirmoy Das <[email protected]>
blk-mq: clear stale inactive flag on hctx reuse

Sahaj Chaudhari <[email protected]>
gpio: davinci: Clear interrupt status in every bank on suspend

Peter Ujfalusi <[email protected]>
ALSA: compress: add missing OPEN-state gate to SET_METADATA

Sorah Fukumori <[email protected]>
net: gro: don't chain linear parts larger than gso_size into frag_list

Jamal Hadi Salim <[email protected]>
netdevsim: reject cls_bpf programs bound to another device

Kir Kolyshkin <[email protected]>
cgroup: fix cgroup.kill for exited thread group leader

Baek Kyu, Kim <[email protected]>
hwmon: (sht3x) Return the consumed count for heater writes

Ma Ke <[email protected]>
platform/x86/amd/pmc: Fix RTC reference leak in amd_pmc_verify_czn_rtc()

Gregory Price <[email protected]>
rtc: cmos: Disable ACPI RTC event before handling it

Seongjae Jeong <[email protected]>
f2fs: fix submit accounting for IPU writeback

Wenjie Qi <[email protected]>
f2fs: flush SIT journal during filesystem resize

Kyle Zeng <[email protected]>
netfilter: nf_reject: initialize IPCB at inet ingress

Sanan Hasanov <[email protected]>
hwmon: (corsair-cpro) Make wait_input_report_lock IRQ safe

Vasiliy Kovalev <[email protected]>
ALSA: hda/via: Apply runtime PM workaround for ASUS X55A

Magnus Lindholm <[email protected]>
alpha: invalidate the local context in flush_icache_user_page()

Magnus Lindholm <[email protected]>
alpha: invalidate the local context in flush_tlb_mm()

Magnus Lindholm <[email protected]>
alpha: fix the local TLB invalidate in the UP flush_tlb_page()

Magnus Lindholm <[email protected]>
alpha: fix the local TLB invalidate in flush_tlb_page()

Magnus Lindholm <[email protected]>
alpha: invalidate the local context in flush_tlb_page()

Magnus Lindholm <[email protected]>
alpha: only use a targeted tbi() when the target mm is really current

Magnus Lindholm <[email protected]>
alpha: run check_mmu_context() from finish_arch_post_lock_switch()

Takashi Iwai <[email protected]>
ALSA: seq: oss: Skip events until fully initialized

Shubham Antil <[email protected]>
RDS/IB: validate receive fragment completions

Seung Min Shin <[email protected]>
sctp: hold transport reference across connect wait

Zixuan Chai <[email protected]>
ipv6: defrag: orphan skb before queuing

Josef Bacik <[email protected]>
net: skbuff: don't BUG() on a bad csum_start in skb_copy_and_csum_dev()

Jianyun Gao <[email protected]>
dax: fix dax_range_compare_iter() to use correct size and address offset

Jianyun Gao <[email protected]>
dax: Return errors from dax_core_init()

Gyokhan Kochmarla <[email protected]>
erofs: use on-disk blkszbits for lz4 max pcluster bound

Weibin Liu <[email protected]>
spi: amd: validate FIFO usage before executing message

Weibin Liu <[email protected]>

    spi: amd: fix len==0 underflow and FIFO overflow

Radiy Zhambakiev <[email protected]>
mfd: tps65217: Check return value when masking interrupt sources

Radiy Zhambakiev <[email protected]>
mfd: tps65217: Fix NULL pointer dereference on IRQ init failure

Weibin Liu <[email protected]>
spi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer

Marc Zyngier <[email protected]>

    KVM: arm64: Turn vcpu->arch.pause into a counter

Marc Zyngier <[email protected]>
KVM: arm64: Move OUTSIDE_GUEST_MODE publication past context being saved

Ard Biesheuvel <[email protected]>
efi/libstub: Don't replace an existing LINUX_EFI_MEMRESERVE table

Weibin Liu <[email protected]>
spi: jcore: fix divide-by-zero when speed_hz is zero

Wentao Liang <[email protected]>
irqchip/mchp-eic: Fix clock reference leak in mchp_eic_probe()

Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Don't clamp nvecs to zero when id_bits is 32

Ahsan Atta <[email protected]>
crypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()

Hui Su <[email protected]>
cpufreq: schedutil: Serialize sugov_start() against rate limit updates

Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Use default TxWindow for zero socket option

Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Reject invalid TxWindow in configuration requests

Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Reject mode changes on connected channels

Bui Viet Dung <[email protected]>
Bluetooth: hci_debugfs: Pin module for debugfs file operations

Bui Viet Dung <[email protected]>
Bluetooth: 6lowpan: Pin module for 6lowpan_control debugfs file

Karl Mehltretter <[email protected]>
ARM: 9491/1: alignment: restore uaccess state on emulation fault

Tim Douglas <[email protected]>
serial: pmac_zilog: push received data to the port that received it

Jiri Slaby (SUSE) <[email protected]>
serial: 8250_lpss: do not touch uninitialized line in ehl_serial_exit()

Denis Arefev <[email protected]>
ALSA: cs46xx: fix unit mismatch in DSP code area bounds check

Aamir Ahmed <[email protected]>
lib: decompress_bunzip2: fix integer overflow in run-length decoding

Matt Turner <[email protected]>
lib/decompress_bunzip2: fix off-by-one in run-length bounds check

Ma Ke <[email protected]>
pinctrl: stm32: Fix fwnode reference leak in stm32_gpiolib_register_bank()

Kaixuan Li <[email protected]>

    f2fs: check every cur_*_segno[] entry on readonly images

Karl Mehltretter <[email protected]>
sh: intc: Sort the prio and sense lists after filling them

Geraldo Nascimento <[email protected]>
PCI: rockchip-host: Do not attempt 5.0 GT/s retraining

Andrea Parri <[email protected]>
nvmet: zns: don't leak stale memory in zone management receive

Jérémy Jean <[email protected]>
nvmet: free the bvec on file namespace range errors

Yehyeong Lee <[email protected]>
nvme-rdma: don't complete a request after a bogus remote invalidation

Andrea Parri <[email protected]>
iomap: don't lose a fiemap iteration error when emitting the last extent

Samuel Thibault <[email protected]>
speakup: Fix NULL pointer dereference on VT switch + selection

Lorenzo Stoakes (ARM) <[email protected]>
fbdev: sh_mobile_lcdc: check for fb_deferred_io_init() error

Lorenzo Stoakes (ARM) <[email protected]>
fbdev: smscufx: check for fb_deferred_io_init() error

Lorenzo Stoakes (ARM) <[email protected]>
fbdev: udlfb: check for fb_deferred_io_init() error

Lorenzo Stoakes (ARM) <[email protected]>
fbdev: xen-fbfront: check for fb_deferred_io_init() error

Lorenzo Stoakes (ARM) <[email protected]>
fbdev: ssd1307fb: check for fb_deferred_io_init() error

Guixiong Wei <[email protected]>
platform/x86/intel-uncore-freq: Continue restoring limits on resume

Muhammad Bilal <[email protected]>
platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()

Yuanhe Shu <[email protected]>
mm/page_alloc: do not boost watermarks in kdump capture kernels

Yongjian Mu <[email protected]>
xprtrdma: trim head iovec when the payload arrives via a Write chunk

Tim Menninger <[email protected]>
xprtrdma: prevent disconnect feedback during endpoint teardown

Weigang He <[email protected]>
mtd: parsers: qcom: fix offset/size overflow on large partitions

Wentao Liang <[email protected]>
btrfs: zoned: fix block group reference leak in btrfs_repair_one_zone()

Ard Biesheuvel <[email protected]>
arm64/efi: Clear PTE_WRITE when applying EFI_MEMORY_RO

Mikulas Patocka <[email protected]>
dm-snapshot: fix crash if dm_io_client_create fails

Johan Hovold <[email protected]>
USB: serial: sierra: fix urb leak on write completion

Anup Vishwakarma <[email protected]>
mailbox: qcom-ipcc: Guard against NULL con_priv in send_data()

Wayne Chang <[email protected]>
usb: typec: ucsi_ccg: Add retry mechanism in ccg_read

Drobyshev Vladimir <[email protected]>
USB: cdc-acm: add VeriFone VX820 device ID

Seongjun Hong <[email protected]>
vfio/mlx5: Fix boundary check in set_report_output()

Zongmin Zhou <[email protected]>
slimbus: messaging: fix leaked PM vote on tid allocation failure

Johan Hovold <[email protected]>
USB: serial: usb_wwan: fix urb leak on disconnect

Michael Wyraz <[email protected]>
USB: serial: option: add support for ASR 1286:4e3c modem

Reinhard Speyerer <[email protected]>
USB: serial: option: add Rolling Wireless RN947R

Johan Hovold <[email protected]>
USB: cdc-acm: fix urb leak on disconnect

Yehyeong Lee <[email protected]>
xen/pcifront: check that an AER callback exists before calling it

Myeonghun Pak <[email protected]>
soc: fsl: dpio: Free the IRQ before releasing the I/O object

Myeonghun Pak <[email protected]>
soc: fsl: dpio: Fix cleanup on IRQ registration failure

Wentao Liang <[email protected]>
clk: imx: Fix clock reference leak in imx_obtain_fixed_clock_hw()

Wentao Liang <[email protected]>
clk: imx: Fix clock reference leak in imx_get_clk_hw_by_name()

Anastasios Papagiannis <[email protected]>
mm/nommu: reject wrapping ranges in access_remote_vm()

Yogesh Gaur <[email protected]>

    md: don't hand out the array before md_alloc() has added mddev->kobj

Jinjie Ruan <[email protected]>
ext4: fix out-of-bounds read in ext4_get_group_info()

Daejun Park <[email protected]>
ext4: don't report delalloc data as a hole on indirect-mapped inodes

Hemanth Selam <[email protected]>
ext4: skip extra isize expansion while unmounting

Matthias Goergens <[email protected]>
fanotify: report names longer than NAME_MAX

Krzysztof Wilczyński <[email protected]>
PCI/sysfs: Pass the device name length in UTF-16 code units

Josef Bacik <[email protected]>
aoe: pull in the headers each received packet type reads

Wentao Liang <[email protected]>
clocksource/drivers/digicolor: Fix clk reference leak on request_irq failure

Wentao Liang <[email protected]>
clocksource/drivers/fttmr010: Fix clk reference leak in error paths

Wentao Liang <[email protected]>
wifi: mt76: Fix of_node reference leak in mt76_get_rate_power_limits()

Jiale Yao <[email protected]>
wifi: mt76: mt7615: cancel reset work during unregister

Eason Lai <[email protected]>
wifi: mt76: fix memory leak in USB TX path

Eason Lai <[email protected]>
wifi: mt76: mt792x: fix UAF in SDIO TX path when out of memory

Mark Anthony Agarro <[email protected]>
wifi: mt76: mt7615: do not tear down BSS/STA state for monitor vifs

Mark Anthony Agarro <[email protected]>
wifi: mt76: mt76x02: validate TX-status rate index before mac80211 handoff

Joseph Qi <[email protected]>
ocfs2: skip uninitialized lockres in ocfs2_mark_lockres_freeing()

Joseph Qi <[email protected]>
ocfs2: free replay slots in ocfs2_recovery_exit()

Joseph Qi <[email protected]>
ocfs2: exit recovery thread on mount error path

Zi Yan <[email protected]>
USB: gadgetfs: do not WARN about excessively large memory allocations

Michael Liang <[email protected]>
fault-inject: fix dentry leak

OGAWA Hirofumi <[email protected]>
fat: fix fat_ent_write() for reverting the value

DAI RENJIE <[email protected]>
resource: fix lost wakeup when waiting for a muxed region

Gregory Price <[email protected]>
mm/mempolicy: take a cpuset cookie for the interleave node count

Nathan Chancellor <[email protected]>
wifi: brcmsmac: Adjust txpwrindex value in nphy_ipa_rxcal_gaintbl_2GHz

Denis Efremov (Oracle) <[email protected]>
floppy: return the drive state flags from the 32-bit FDGETDRVSTAT

Denis Efremov (Oracle) <[email protected]>
floppy: don't store a stack buffer in timeout_message

Chuck Lever <[email protected]>
svcrdma: Grant credits from the clamped sc_max_requests

Runyu Xiao <[email protected]>
perf: xgene: initialize lock before requesting IRQ

Linus Walleij <[email protected]>
power: supply: ab8500_fg: Report sub-percent charge changes

Linus Walleij <[email protected]>
power: supply: ab8500_fg: Accept status from supplied power

Andrey Albershteyn <[email protected]>
fsverity: hoist statx reporting of fs-verity flag

Jiawen Liu <[email protected]>
media: amphion: fix runtime PM imbalance on probe failure

Tharit Tangkijwanichakul <[email protected]>
media: hantro: Harden MPEG-2 control access against NULL

Junrui Luo <[email protected]>
media: vicodec: fix NULL deref on oversized frame

Guangshuo Li <[email protected]>
media: mediatek: vpu: release reserved memory on remove

Guangshuo Li <[email protected]>
media: mediatek: vcodec: destroy core workqueue on remove

Fan Wu <[email protected]>
media: mediatek: vpu: free IRQ before destroying watchdog workqueue

Myeonghun Pak <[email protected]>
media: amphion: prevent unbind while video instances are open

Myeonghun Pak <[email protected]>
media: amphion: drain message work before releasing core state

Michael Freidkin <[email protected]>
media: meson: vdec: size capture planes from the aligned canvas

Karl Mehltretter <[email protected]>
KVM: arm64: vgic-v3: Roll back assignments from the new region

Karl Mehltretter <[email protected]>
KVM: arm64: vgic-v3: Undo assignment on iodev registration failure

Aldo Ariel Panzardo <[email protected]>
crypto: nx - validate 'ignore' before subtracting in decompress

Thorsten Blum <[email protected]>
hwrng: core - reject unknown RNG names

Thorsten Blum <[email protected]>
hwrng: ba431 - fix reported byte count

Thorsten Blum <[email protected]>
hwrng: amd - report partial reads in non-blocking mode

ZhaoJinming <[email protected]>
crypto: caam - fix double-free in caam_rsa_set_priv_key_form()

Wei Jie Law <[email protected]>
media: uvcvideo: Fix NULL deref on events for uninitialized controls

Imre Kaloz <[email protected]>
PCI: Disable MSI for ULi M1575 EHCI controller

Mikulas Patocka <[email protected]>
dm-writecache: fix REQ_FUA processing

Mikulas Patocka <[email protected]>
dm-writecache: fix uncommitted_blocks underflow

Mikulas Patocka <[email protected]>
dm-writecache: fix a crash if we attempt to use non-dax device

Mikulas Patocka <[email protected]>
dm-writecache: fix a quirk in statistics

Mikulas Patocka <[email protected]>
dm-writecache: report I/O error if flush failed

Mikulas Patocka <[email protected]>
dm: fix a bug in dm_accept_partial_bio

Kaho Jiang <[email protected]>
media: em28xx: fix double free in em28xx_alloc_urbs

Ginger Li <[email protected]>
media: exynos4-is: Fix a race between s_stream(0) and the interrupt handler

Guangshuo Li <[email protected]>
media: rtl28xxu: fix SDR platform device leak

Wentao Liang <[email protected]>
media: pvrusb2: Fix USB parent device leak in class_dev_create()

Guangshuo Li <[email protected]>
media: tw686x: fix V4L2 device lifetime on probe failure

Tianchu Chen <[email protected]>
staging: rtl8723bs: fix RX buffer OOB write from device-reported length

Johan Hovold <[email protected]>
staging: greybus: uart: fix racy TIOCMIWAIT implementation

Krzysztof Kozlowski <[email protected]>
drm/msm/hdmi_bridge: Correct poweroff/audio cleanup order in post_disable

Krzysztof Kozlowski <[email protected]>
drm/msm/hdmi_phy: Cleanup after msm_hdmi_phy_resource_enable() failure

Srish Srinivasan <[email protected]>
pseries/plpks: clear sensitive PLPKS buffers

Takashi Iwai <[email protected]>
ALSA: core: Check shutdown flag at D0 power-state, too

Runyu Xiao <[email protected]>
m68k: dmasound: Keep the Q40 IRQ handler registered

Runyu Xiao <[email protected]>
ALSA: sgio2audio: Only free successfully requested IRQs

Hitesh Patel <[email protected]>
media: qcom: camss: vfe-17x: Fix write master buffer done being dropped

Jiale Yao <[email protected]>
cxl/acpi: Check ACPI companion before use

Ibrahim Hashimov <[email protected]>
fs/ntfs3: fix integer overflow in find_log_rec() causing OOB read

David Heidelberg <[email protected]>
arm64: dts: qcom: sdm845-xiaomi-polaris: Extend the xbl_mem region

David Heidelberg <[email protected]>
arm64: dts: qcom: sdm845-xiaomi-beryllium: Extend the xbl_mem region

Piotr Kubik <[email protected]>
netfilter: ctnetlink: fix inverted IPv6 address match in dump filter

Orgad Shaneh <[email protected]>
MIPS: mm: do not write a huge TLB entry when the probe misses

Runyu Xiao <[email protected]>
peci: aspeed: Initialize state before requesting IRQ

Ma Ke <[email protected]>
ASoC: wcd9335: Fix device reference leak in wcd9335_slim_status()

David Cemin <[email protected]>
ASoC: sdw_utils: clear stale RT711 device reference on exit

Richard Weinberger <[email protected]>
mtd: Call get_wunit() on the master partition

Wentao Liang <[email protected]>
mtd: maps: l440gx: Fix double put of the PM device in init_l440gx()

Wentao Liang <[email protected]>
mtd: maps: l440gx: Fix double put of the ISA bridge in init_l440gx()

Wentao Liang <[email protected]>
mtd: amd76xrom: Fix PCI device reference leak in amd76xrom_init_one()

Orgad Shaneh <[email protected]>
mtd: cfi_cmdset_0002: cap the write-buffer chunk at 256 bytes on an x8 device

Myeonghun Pak <[email protected]>
mtd: maps: pci: balance PCI enable on cleanup

Wentao Liang <[email protected]>
mtd: rawnand: atmel: Fix MCK clock leak in atmel_nand_controller_init()

Ridham Khurana <[email protected]>
hwmon: (lm95245) Fix negative temperature conversion

Wentao Liang <[email protected]>
regulator: core: Fix coupled regulators reference leak on removal

Guangshuo Li <[email protected]>
ASoC: Intel: atom: Fix platform device leak on probe failure

Jiacheng Xu <[email protected]>
kobject: fix out-of-bounds access in kobject_action_type()

Ryusuke Konishi <[email protected]>
nilfs2: fix deadlock between nilfs_evict_inode() and find_inode()

David Heidelberg <[email protected]>
mfd: wcd934x: Fix NULL pointer dereference on IRQ probe deferral

David Heidelberg <[email protected]>
mfd: wcd934x: set DMA mask on parent to silence "DMA mask not set"

Hongyan Xu <[email protected]>
mfd: da903x: Cancel IRQ work during teardown

Guangshuo Li <[email protected]>
media: atmel-isi: release unregistered video device on remove

Wentao Liang <[email protected]>
media: vpif_display: Fix i2c adapter reference leak in vpif_probe()

Wentao Liang <[email protected]>
media: au0828: Fix media device leak in au0828_usb_probe()

Runyu Xiao <[email protected]>
media: adv7180: Initialize mutex before ancillary clients

Myeonghun Pak <[email protected]>
media: tw68: balance PCI enable on cleanup

Myeonghun Pak <[email protected]>
media: cx18: Disable PCI device on probe failure

Myeonghun Pak <[email protected]>
media: go7007: unregister the I2C adapter on USB probe failure

Myeonghun Pak <[email protected]>
media: marvell: manage the MMP camera clock provider

Rohinthan P <[email protected]>

    media: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functions

Weili Qian <[email protected]>
crypto: hisilicon/hpre - fix GFP flags for dma_alloc_coherent

Weili Qian <[email protected]>
crypto: hisilicon/hpre - fix ECDH destination DMA mapping

Weili Qian <[email protected]>
crypto: hisilicon/hpre - return -EOVERFLOW for small ECDH output buffer

Weili Qian <[email protected]>
crypto: hisilicon/hpre - fix pointer dereference before length check

Mohamad Raizudeen <[email protected]>
crypto: amlogic - Fix IRQ handler return value and fallthrough logic

Yuchao Zhang <[email protected]>
md: validate bblog_size when loading v1.x badblocks metadata

Aldo Ariel Panzardo <[email protected]>
nilfs2: fix checkpoint root lifetime on sysfs errors

Wentao Liang <[email protected]>
drm/mali-dp: Fix runtime PM leak in malidp_crtc_atomic_enable()

Judith Mendez <[email protected]>
arm64: dts: ti: k3-am62a7-sk: Set SD clock pin as OUTPUT

Wentao Liang <[email protected]>
ASoC: ti: davinci-mcasp: Fix runtime PM imbalance in __davinci_mcasp_set_clkdiv()

Sean Young <[email protected]>
media: meson-ir-tx: Prevent divide by zero in meson_irtx_prepare_pulse()

Sean Young <[email protected]>
media: ir_toy: Validate the maximum tx carrier

Cong Nguyen <[email protected]>
staging: media: imx: csc-scaler: fix ipu_image_convert_run leak on queue error

Runyu Xiao <[email protected]>
PCI: pciehp: Make 'pciehp_poll_mode' parameter read-only

Hui Peng <[email protected]>
ata: libata-scsi: abort multi-sector pass-through commands when multi_count is 0

Shehryar Ahmad <[email protected]>
iio: accel: adis16201: fix channel order for buffer mode

Karl Mehltretter <[email protected]>
fpga: Fix of_fpga_mgr_get() reference in fpga_mgr_lock() docs

Wentao Liang <[email protected]>
ASoC: codecs: wm8994: Fix runtime PM leak in wm8994_mic_detect()

Wentao Liang <[email protected]>
regulator: core: Fix rdev reference leak in regulator_resolve_supply()

Wentao Liang <[email protected]>
regulator: core: Fix c_rdev reference leak in regulator_resolve_coupling()

Shengming Hu <[email protected]>
cpufreq: conservative: Restrict deferred downscaling to low load

Martin Wilck <[email protected]>
md/raid5: validate payload size before calculating payload_len

Cao Guanghui <[email protected]>
md/raid5: fix NULL pointer dereference in raid5_free_percpu

Cao Guanghui <[email protected]>
md/raid5: track disks array size to fix extra_page leak on error paths

Guangshuo Li <[email protected]>
iio: adc: at91-sama5d2: disable autosuspend on remove

Guangshuo Li <[email protected]>
iio: accel: mma9553: disable autosuspend on remove

Guangshuo Li <[email protected]>
iio: accel: mma9551: disable autosuspend on remove

Guangshuo Li <[email protected]>
iio: accel: kxcjk-1013: Disable autosuspend on remove

Wentao Liang <[email protected]>
ASoC: arizona-jack: Fix runtime PM imbalance in arizona_start_hpdet_acc_id()

Wentao Liang <[email protected]>
ASoC: wm8994: Fix runtime PM imbalance in wm8994_component_probe()

Liu Chao <[email protected]>
usb: fotg210: validate endpoint index in ep0 handlers

Karl Mehltretter <[email protected]>
crypto: atmel-tdes - sync output bounce buffer before DMA

Yousef Alhouseen <[email protected]>
ntfs3: bound index head insertions by buffer capacity

Niklas Cassel <[email protected]>
ata: ahci_st: Assert the power down reset in the probe() error path

Niklas Cassel <[email protected]>
ata: ahci_st: Do not ignore errors when getting the reset controls

Chao Yu <[email protected]>
f2fs: compress: fix to handle race between truncate and writeback

Kyle Zeng <[email protected]>
affs: validate blocks before freeing them

Bradley Morgan <[email protected]>
PM: CPU: Restore synchronize_rcu() to cpu_pm_unregister_notifier()

Karl Mehltretter <[email protected]>
lib/842: require a complete history block for repeat templates

Karl Mehltretter <[email protected]>
lib/842: reject output overflows from index and short data

Karl Mehltretter <[email protected]>
crypto: atmel-aes - fix AADLENR for standalone GHASH

Karl Mehltretter <[email protected]>
crypto: atmel-tdes - zero-initialize device state

Junrui Luo <[email protected]>
media: vicodec: zero-initialize stateful decoder heap buffers

Juan Perdomo <[email protected]>
media: cx231xx: preserve I2C transfer length

Maxim Skokov <[email protected]>
media: vivid: round the height down to the vertical subsampling factor

Eric Kim <[email protected]>
sched/fair: Reset NUMA fault locality after scan period update

Jean-Baptiste Maneyrol <[email protected]>
iio: imu: inv_icm42600: fix odr change not caught in certain cases

Karl Mehltretter <[email protected]>
ACPI: pfr_update: zero-initialize capability query result

Runyu Xiao <[email protected]>
dmaengine: altera-msgdma: initialize state before requesting IRQ

Damon Ding <[email protected]>
drm/bridge: analogix_dp: Restore mandatory samsung DP DT properties

Greg Kroah-Hartman <[email protected]>

    media: stv0900: bound DiSEqC reply length to msg[] size

Greg Kroah-Hartman <[email protected]>

    media: stv090x: bound DiSEqC reply length to msg[] size

Greg Kroah-Hartman <[email protected]>
media: adv7604: avoid negative array index in log_status when cp_read fails

James Hilliard <[email protected]>
mtd: rawnand: sunxi: reject ECC maximization on small pages

Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix PM runtime leak in AWB work handler

Balakrishnan Sambath <[email protected]>
media: microchip-isc: do not touch WB registers when not streaming

Xu Rao <[email protected]>
media: m2m-deinterlace: fix default capture field

Punnay Sharma <[email protected]>
staging: media: av7110: fix corrupted BER reporting in sp8870

Julian Braha <[email protected]>
media: marvell-cam: fix unmet dependency for VIDEO_MMP_CAMERA

Jeffin Philip <[email protected]>
media: vidtv: fix uaf in vidtv_bridge_on_new_pkts_avail

Piyush Patle <[email protected]>
media: vidtv: fix frontend reference leak on unbind

Junrui Luo <[email protected]>
media: vicodec: make encoder CAPTURE dimensions read-only

Junrui Luo <[email protected]>
media: vicodec: fix out-of-bounds write on under-rounded coded dimensions

Younho Choi <[email protected]>
media: vim2m: keep transaction buffer count stable while streaming

Runyu Xiao <[email protected]>
media: saa7146: Initialize interrupt lock before requesting IRQ

Shengzhuo Wei <[email protected]>
media: go7007: bound EZ-USB I2C transfers to the usb_buf size

Linkai Gong <[email protected]>
media: i2c: tc358743: add missing color-space strings

Ruoyu Wang <[email protected]>
media: au0828: Free URBs when starting DVB streaming fails

Andi Shyti <[email protected]>
media: cx231xx: Fix cleanup path on failure

Baolin Liu <[email protected]>
isofs: fix Rock Ridge CE extent validation on multisession media

Thorsten Blum <[email protected]>
thermal: intel: powerclamp: Reject invalid window_size values

Karl Mehltretter <[email protected]>
fs_pin: publish pins with RCU list helpers

HyeongJun An <[email protected]>
mtd: spi-nor: sfdp: check the length of the xSPI Profile 1.0 table

Serin Yeh <[email protected]>
media: i2c: ov8856: fix debug message to report actual CSI-2 lane count

Abdun Nihaal <[email protected]>
wifi: ath11k: Fix possible memory leak in ath11k_dp_srng_setup()

Runyu Xiao <[email protected]>
hte: tegra194: Initialize slice locks before registering chip

Yuan Chen <[email protected]>
bpf: Fix queue/stack map u32 index overflow

hanzhijian <[email protected]>
clk: mstar: msc313-mpll: fix off-by-one in clock array allocation

イムティヤズ <[email protected]>
wifi: rtw88: fix out-of-bounds CAM write when key table is full

Justin Chen <[email protected]>
memory: brcmstb_dpfe: Bounds check DCPU-supplied MSG_ARG_COUNT

Justin Chen <[email protected]>
memory: brcmstb_dpfe: Fix out-of-bounds access due to DCPU offset

Sam Price <[email protected]>
microblaze: preserve the MSR carry flags across signals

Ramin Moussavi <[email protected]>
microblaze: don't clobber r3/r4 restored by rt_sigreturn

Ramin Moussavi <[email protected]>
microblaze: reserve the ABI argument-home area in the signal frame

HyeongJun An <[email protected]>
remoteproc: elf_loader: Bound the section header table

Daehyeon Ko <[email protected]>
ipc/mqueue: release notification resources during inode eviction

Daehyeon Ko <[email protected]>
aio: prevent eventfd/epoll recursion on poll

Karl Mehltretter <[email protected]>
microblaze: Fix MB_MANAGER build with older binutils

Fan Wu <[email protected]>
media: imx-jpeg: finish the job on device_run() error paths

Sean Young <[email protected]>
media: ir-hix5hd2: Ensure rdev is setup before interrupts are enabled

Sean Young <[email protected]>
media: meson-ir-tx: Ensure probe error is propagated

Sean Young <[email protected]>
media: meson-ir-tx: Ensure clock is disabled on unbind

Sean Young <[email protected]>
media: redrat3: Ensure all urbs are suspended

Sean Young <[email protected]>
media: redrat3: Ensure we don't read beyond the end of the packet

Sean Young <[email protected]>
media: streamzap: Add missing rc_unregister_device()

YuBiao Wang <[email protected]>
drm/amdgpu: recompute the dw estimate after allocating a new VM update job

Zhenhao Wan <[email protected]>
drm/nouveau: reject zero-size notifier object allocation

Cen Zhang <[email protected]>
ocfs2: snapshot dentry names in file and setattr traces

Sean Young <[email protected]>
media: rc: Fix ABBA deadlock by making locks more fine grained

Fan Wu <[email protected]>
scsi: dc395x: sync the waiting_timer before freeing the host

Fan Wu <[email protected]>
media: s5p-mfc: use timer_shutdown_sync() for the self-rearming watchdog

Vernon Yang <[email protected]>
mm: khugepaged: fix swap entry value to folio_pfn()

Balakrishnan Sambath <[email protected]>
media: microchip-isc: take a reference on the parsed endpoints

Kuninori Morimoto <[email protected]>
media: platform: microchip: use for_each_endpoint_of_node()

Cong Nguyen <[email protected]>
media: microchip-csi2dc: fix async notifier leak on probe error path

Jérémy Jean <[email protected]>
nvmet-auth: serialize access to DH-HMAC-CHAP state to fix UAF

Ruide Cao <[email protected]>
mptcp: hold MP_JOIN msk ref when cloning reqsk

Tianchu Chen <[email protected]>
staging: rtl8723bs: fix protected RX frame validation in decrypt path

Khasar Munkh-Erdene <[email protected]>
staging: rtl8723bs: fix spacing around operators in rtw_recv.c

Emily Peri <[email protected]>
staging: rtl8723bs: Fix indentation in conditional statements

Richard Patel <[email protected]>
genirq: Defer kfree(irqaction) until irq_thread_dtor() finishes

Diego Oliva <[email protected]>
smb: client: fix OOB last_entry pointer from unbounded LastNameOffset

Diego Oliva <[email protected]>
smb: client: fix use-after-free infoleak via the readdir resume name

Paulo Alcantara <[email protected]>
smb: client: fix warning in CIFSFindNext()

Paulo Alcantara <[email protected]>
smb: client: fix warning in CIFSFindFirst()

David Hildenbrand (Arm) <[email protected]>
mm/hugetlb: fix use-after-free in hugetlb_mfill_atomic_pte()

Stefan Metzmacher <[email protected]>
smb: smbdirect: fix buffer length underflow in RDMA transfers

Chris Mason <[email protected]>
ovl: do not copy up a dentry that was removed

Chris Mason <[email protected]>
ovl: hold a reference on the parent in readdir

Chris Mason <[email protected]>
ovl: check that the parents of volatile/dirty are dirs

Hyunwoo Kim <[email protected]>
inet: reject unhashed sockets during established lookups

DaeMyung Kang <[email protected]>
ksmbd: fix named stream write and EOF handling

DaeMyung Kang <[email protected]>
ksmbd: use the existing xattr name for a named stream

Henry Hu <[email protected]>
ksmbd: fix invalid pointer dereference when get_inode_acl() fails

Ian Bridges <[email protected]>
ksmbd: fix session reference leak on compounded SESSION_SETUP

Xiaoyao Li <[email protected]>
KVM: VMX: Preserve negative return value in vmx_handle_exit() with bus lock detected

Chris Mason <[email protected]>
ovl: use the pinned upper dir in ovl_fix_origin()

Siddharth Chintamaneni <[email protected]>
smb: client: fix busy dentry warning on unmount after DIO

Dairui Zhang <[email protected]>
ksmbd: verify transform SessionId matches the decrypted header

Ian Bridges <[email protected]>
ksmbd: fix out-of-bounds read when padding the final compound response

Namjae Jeon <[email protected]>
ksmbd: prevent share root removal through empty paths

Namjae Jeon <[email protected]>
ksmbd: prevent stale data from being written by SMB2 WRITE requests

Cen Zhang (Microsoft) <[email protected]>
ksmbd: fix parent dentry lifetime in directory enumeration

Yuhang Zheng <[email protected]>
net/sched: cls_flower: avoid stale mask references after delete

Johan Hovold <[email protected]>
driver core: fix parent lock use-after-free on USB disconnect

Zikang Gao <[email protected]>
smb: client: do not pass a NULL buf to is_oplock_break()

Fredric Cover <[email protected]>
smb: client: fix early procfs exposure race

Chris Mason <[email protected]>
ovl: take a snapshot of the name for copy up

Namjae Jeon <[email protected]>
ksmbd: validate security descriptor offsets before pointer arithmetic

David Woodhouse <[email protected]>
tun: Require CAP_NET_ADMIN to attach to an ownerless device

Peter Griffin <[email protected]>
opp: fix use after free in _update_opp_table_clk()

Pablo Neira Ayuso <[email protected]>
netfilter: conntrack: always lower timeout for non-closing RST packets

Srinivasan Shanmugam <[email protected]>
drm/amdgpu/powerplay: Align get_tonga_state_array() header with prototype

Cheng Yongkang <[email protected]>
io_uring/timeout: count cancelled timeouts in cq_timeouts

Chris Mason <[email protected]>
io_uring/sqpoll: don't wait for the thread to exit

Chris Mason <[email protected]>
io_uring: free XArray nodes left by a failed store

Chris Mason <[email protected]>
io_uring: charge tctx nodes and personalities

Chris Mason <[email protected]>
io_uring/rsrc: charge buffer arrays and nodes to memcg

Josef Bacik <[email protected]>
io_uring/io-wq: no new workers once the exit has begun

Daan De Meyer <[email protected]>
io_uring/net: don't retry a non-blocking connect() that fails with -EAGAIN

Yichong Chen <[email protected]>
io_uring/net: keep recvmsg buffer select length within MAX_RW_COUNT

Chris Mason <[email protected]>
ovl: set the revalidate flags after d_instantiate()

Amir Goldstein <[email protected]>
ovl: skip copy up of empty security.capability

Amir Goldstein <[email protected]>
ovl: fortify ovl_copy_xattr() against underlying layer modifications

Chris Mason <[email protected]>
ovl: set OVL_WHITEOUTS before publishing the upper dir

Jiale Yao <[email protected]>
HID: roccat: savu: reject short special reports

Jiale Yao <[email protected]>
HID: roccat: ryos: reject short special reports

Jiale Yao <[email protected]>
HID: roccat: pyra: reject short button reports

Jiale Yao <[email protected]>
HID: roccat: kovaplus: reject short button reports

Jiale Yao <[email protected]>
HID: roccat: konepure: reject short button reports

Jiale Yao <[email protected]>
HID: roccat: koneplus: reject short button reports

Jiale Yao <[email protected]>
HID: roccat: isku: reject short button reports

Gabor Tanz <[email protected]>
HID: quirks: Always poll the Anne Pro 2 with product ID a292

Jiale Yao <[email protected]>
HID: pxrc: reject short input reports

Lorenzo Stoakes (ARM) <[email protected]>
HID: picoLCD: check for fb_deferred_io_init() error

Jiale Yao <[email protected]>
HID: mcp2221: validate response report length

Jiale Yao <[email protected]>
HID: logitech-dj: validate unnumbered keyboard reports

Jiale Yao <[email protected]>
HID: elo: reject short touchscreen reports

Jiale Yao <[email protected]>
HID: cp2112: validate response report lengths

Jiale Yao <[email protected]>
HID: cougar: reject short special-key reports

Alan Stern <[email protected]>
HID: core: Fix out-of-bounds left shift by 32 in s32ton()

Basavaraj Natikar <[email protected]>
HID: amd_sfh: Use report type from request node

Basavaraj Natikar <[email protected]>
HID: amd_sfh: Remove unsupported motion-state field from accelerometer report

Jiale Yao <[email protected]>
HID: zydacron: validate key report length

Amit Machhiwal <[email protected]>
KVM: PPC: Fix get_d_signext() 12-bit displacement for paired-single D-form

Amit Machhiwal <[email protected]>
KVM: PPC: Book3S HV: Add preempt_disable() around virtual-mode HPTE bit-lock users

Sean Christopherson <[email protected]>
KVM: x86: Zero reserved synic flags when delivering message to avoid stack leak

Loc Nguyen <[email protected]>
KVM: x86: Request event processing for exception VM-Exits

Sean Christopherson <[email protected]>
KVM: x86: Preserve DR6.BLD (Bus Lock Detect) when delivering #DB payload

Sean Christopherson <[email protected]>

    KVM: x86/mmu: Bug the VM if KVM calcs a CPU role with EFER.LMA=1 && CR4.PAE=0

Sean Christopherson <[email protected]>
KVM: Use goto to handle errors during memslot preparation

Yosry Ahmed <[email protected]>
KVM: SVM: Trigger new ASID allocation in both VMCBs on pCPU switch

Ameer Hamza <[email protected]>
sunrpc: treat empty auth.unix.gid replies as negative entries

Zhiling Zou <[email protected]>
SUNRPC: trace an accepted transport before publishing it

Chuck Lever <[email protected]>
SUNRPC: Reject a socket that already has an svc_sock attached

Chris Mason <[email protected]>
sunrpc: pin gss module across auth_domain RCU free

Jeff Layton <[email protected]>
SUNRPC: keep the first error in svc_register()

Aldo Ariel Panzardo <[email protected]>
nfsd: zero NFSv4 COMPOUND tag padding

Chuck Lever <[email protected]>
NFSD: Resolve the recall-any mask names in the trace format

Chuck Lever <[email protected]>
NFSD: Reject an oversized principal hash from nfsdcld

Aldo Ariel Panzardo <[email protected]>
nfsd: propagate SETXATTR value decode errors

Jérémy Jean <[email protected]>
nfsd: preflight SEQUENCE replies before accepting a slot

NeilBrown <[email protected]>
nfsd: honour client-provided attributes for NFS4_CREATE_EXCLUSIVE4_1

Cen Zhang (Microsoft Security FORGE Labs) <[email protected]>
nfsd: hold cl_lock in client_has_openowners()

Wentao Liang <[email protected]>
nfsd: Fix id-to-name cache entry leak in idtoname_parse()

Chuck Lever <[email protected]>
NFSD: Fail a pool_threads read whose reply does not fit

Ameer Hamza <[email protected]>
nfsd: don't modify a session slot when replaying its cached reply

Chuck Lever <[email protected]>
NFSD: Don't complete a cld upcall the daemon has not read

Chuck Lever <[email protected]>
NFSD: Do not send CB_RECALL_ANY to NFSv4.0 clients

Aldo Ariel Panzardo <[email protected]>
NFSD: copy SETXATTR data from all XDR buffer segments

Aldo Ariel Panzardo <[email protected]>
nfsd: clear XDR padding in GETXATTR replies

Benjamin Coddington <[email protected]>
NFSv4/filelayout: Anchor page coalescing on pattern_offset

Benjamin Coddington <[email protected]>
NFSv4.1/pnfs: suspend pNFS on NFS4ERR_TOOSMALL from LAYOUTGET

Chuck Lever <[email protected]>
pnfs/blocklayout: Complete a device upcall when the pipe is closed

Chuck Lever <[email protected]>
pnfs/blocklayout: Complete a device upcall only on its own reply

Benjamin Coddington <[email protected]>
pNFS: Fix CB_NOTIFY_DEVICEID CHANGE to consume ndc_immediate

Abdifatah Suruur <[email protected]>
smb: client: fix fiemap wild read on empty truncated response

Luxiao Xu <[email protected]>
smb: client: fix buffer overflow in SMB2_tcon()

Darrick J. Wong <[email protected]>
xfs: range-check bc_levels array access in scrub tracepoints

Darrick J. Wong <[email protected]>
xfs: propagate errors while checking null siblings

Darrick J. Wong <[email protected]>
xfs: opportunistically skip btree block checks

Darrick J. Wong <[email protected]>
xfs: only written file data blocks can be shared

Darrick J. Wong <[email protected]>
xfs: check for fragments when full-extent sharing matches

Aldo Ariel Panzardo <[email protected]>
xfs: bound inode fork length against the fork size during log recovery

Aldo Ariel Panzardo <[email protected]>
xfs: reject remote xattr entries with an out-of-range value length

Aldo Ariel Panzardo <[email protected]>
xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value

Aleksandr Nogikh <[email protected]>
media: usbtv: fix null-pointer dereference on disconnect

Johan Hovold <[email protected]>
media: usbtv: drop redundant device reference

Al Viro <[email protected]>
ufs: fix ufs_read_cylinder() failure handling

Jean Delvare <[email protected]>
EDAC/mc: Really fix error path ordering in edac_mc_alloc()

Yongjun Gwon <[email protected]>
ksmbd: serialize directory emptiness checks with readdir

Darrick J. Wong <[email protected]>
xfs: jump out of xchk_bmap_check_rmap if fatal signals

Darrick J. Wong <[email protected]>
xfs: mark overfull dabtree node blocks as corrupt

Darrick J. Wong <[email protected]>
xfs: check fork type against dabtree block magic number

Chris Mason <[email protected]>
ovl: read the nlink xattr of every indexed non-dir

Chris Mason <[email protected]>
ovl: fix a torn path in ovl_get_redirect()

Chris Mason <[email protected]>
ovl: do not copy up an xattr value that was never read

Cen Zhang <[email protected]>
ocfs2: pin refcount trees before dropping the lookup lock

Jiaming Zhang <[email protected]>
ocfs2: fix chunk number of the first chunk in a local quota file

Cen Zhang <[email protected]>
ocfs2: cancel quota sync work before freeing quota info

Joseph Qi <[email protected]>
ocfs2/dlm: hold the lookup reference across convert AST enqueue

Cen Zhang <[email protected]>
ocfs2/dlm: hold a lock reference across grant AST enqueue

Cen Zhang <[email protected]>
ocfs2/heartbeat: unlink live slots when their node is missing

Sean Young <[email protected]>
media: rc: mce_kbd: Fix inconsistent locking of keylock

Weigang He <[email protected]>
media: rc: fintek-cir: process a full RX buffer instead of overflowing it

Bryan O'Donoghue <[email protected]>
phy: core: Fix race-condition between _of_phy_get() and try_module_get()

Nickolai Zeldovich <[email protected]>
resource: report a devm_request_resource() conflict under the lock

YANXIN LI <[email protected]>
ufs: use u64 for directory size in ufs_last_byte

Nguyen Quang Le Kien <[email protected]>
usb: gadget: fix refcount underflow in gadgetfs_bind() error path

Rosen Penev <[email protected]>
wifi: ath9k: delete channel-context timers on deinit

Yuchao Zhang <[email protected]>
xen-blkfront: unbind irq before tearing down ring and shadow requests

Igor Putko <[email protected]>
serial: core: shut down initialized port on removal

Rik van Riel <[email protected]>
media: redrat3: fix UAF in probe error path leaving rc device registered

Fan Wu <[email protected]>
media: imx-jpeg: cancel timeout worker when streaming stops

Shuangpeng Bai <[email protected]>
media: gspca: use vb2_video_unregister_device() on disconnect

Myeonghun Pak <[email protected]>
media: cx23885: unregister DVB bus when SP2 CI setup fails

Amit Machhiwal <[email protected]>
KVM: PPC: Book3S HV: Add SRCU protection for virtual-mode HPT hcalls

Kyle Zeng <[email protected]>
io_uring/io-wq: save worker type before dropping its reference

Yousef Alhouseen <[email protected]>
HID: hiddev: keep state alive through disconnect unlock

Xiang Mei <[email protected]>
fbdev: udlfb: don't rebuild the mode list while the framebuffer is in use

Yibo Tan <[email protected]>
fbdev: atmel_lcdfb: Prevent FIFO work after removal

Karl Mehltretter <[email protected]>
klist: avoid accesses after waking klist_remove()

Ping Cheng <[email protected]>
HID: wacom: Write shared touch initial status only once

Ping Cheng <[email protected]>
HID: wacom: Setup SW_MUTE_DEVICE according to the order of input registration

Lee Jones <[email protected]>
HID: wacom: Redesign shared sibling data lifecycle

Lee Jones <[email protected]>
HID: wacom: Fix Use-After-Free in wacom_bamboo_pad

Lee Jones <[email protected]>
HID: wacom: Fix Use-After-Free in wacom_intuos_pad

Lee Jones <[email protected]>
HID: wacom: Advertise SW_MUTE_DEVICE capability prior to registration

Lee Jones <[email protected]>

    HID: wacom: Use hdev->product in wacom_setup_touch_input_capabilities

Harald Freudenberger <[email protected]>
s390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility()

Heiko Carstens <[email protected]>
s390/signal: Fix incorrect return address in signal frame

Heiko Carstens <[email protected]>
s390/probes: Fix wrong opcode for cgrb fixup

Sumanth Korikkar <[email protected]>
s390/cpum_cf: Check session mask before cpu offline

Niklas Cassel <[email protected]>
ata: sata_fsl: Fix use-after-free of host_priv on probe() failure

Binbin Deng <[email protected]>
apparmor: fix a use-after-free in aa_lookupn_ns()

Deepanshu Kartikey <[email protected]>
media: imon: fix use-after-free in display_close via dev_dbg

Anuj Bolewar <[email protected]>
media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path

Pei Xiao <[email protected]>
media: cx23885: Fix use-after-free in cx23885_finidev due to race condition

Fan Wu <[email protected]>
media: au0828: fix use-after-free in bulk_timeout timer on disconnect

Chuck Lever <[email protected]>
lockd: Fix use-after-free in nlmsvc_retry_blocked

Günther Noack <[email protected]>
landlock: Fix superblock use-after-free in release_inode()

Yehyeong Lee <[email protected]>
nvmet-fc: fix use-after-free in nvmet_fc_ls_create_connection()

James Kim <[email protected]>
rapidio: mport_cdev: fix use-after-free in mport_mm_close()

Henry Martin <[email protected]>
smb: client: fix use-after-free in cifs_ses_add_channel()

Zijing Yin <[email protected]>
SUNRPC: fix netns use-after-free in write_gssp()

Andreas Wendleder <[email protected]>
wifi: b43: fix use-after-free in b43_bcma_remove()

Li RongQing <[email protected]>
x86/ioperm: Prevent NULL dereference on theoretical missing IO bitmap

Petr Tesarik <[email protected]>
net: stmmac: protect updates of 64-bit statistics counters

Jisheng Zhang <[email protected]>
net: stmmac: don't clear network statistics in .ndo_open()

Sasha Levin <[email protected]>
Revert "interconnect: Fix locking for runpm vs reclaim"

Sasha Levin <[email protected]>
Revert "interconnect: Don't access req_list while it's being manipulated"

Andrey Misiurov <[email protected]>
Bluetooth: ISO: drop unbalanced sock_put() in iso_conn_ready()

Elliot Berman <[email protected]>
bs/ntfs3: fix NULL folio dereference in ntfs_lock_new_page()

Elliot Berman <[email protected]>
ext4: fix NULL folio dereference in mballoc

Kuniyuki Iwashima <[email protected]>
tcp: Fix potential UAF in reqsk_timer_handler().

Karl Mehltretter <[email protected]>
ksmbd: use u8 for SMB2 oplock level values

DaeMyung Kang <[email protected]>
ksmbd: return end of file for reads past a named stream's data

Abdifatah Suruur <[email protected]>
ksmbd: reserve space for the UTF-16 terminator in stream info

DaeMyung Kang <[email protected]>
ksmbd: preserve unreadable named streams on open

Jan Koester <[email protected]>
ksmbd: ignore network devices of other namespaces

Giorgi Kobakhia <[email protected]>
ksmbd: fix overflow in dacloffset bounds check in build_sec_desc()

Namjae Jeon <[email protected]>
ksmbd: fix extended session security negotiation for raw NTLMSSP

DaeMyung Kang <[email protected]>
ksmbd: avoid restoring only in-memory EOF after allocation change

Michail Andreas Michalopoulos <[email protected]>
ksmbd: accept share config responses from ksmbd-tools before 3.5.3

David Heidelberg <[email protected]>
backlight: qcom-wled: Fix WLED3 brightness register stride

David Heidelberg <[email protected]>
backlight: qcom-wled: Fix unbalanced OVP IRQ enable at probe

David Heidelberg <[email protected]>
backlight: qcom-wled: Fix NULL pointer dereference in wled_remove()

Myeonghun Pak <[email protected]>
backlight: lm3630a: Cancel delayed work before destroying workqueue

Kameron Carr <[email protected]>
Drivers: hv: vmbus: Bounds check the shared ring buffer indices

Josef Bacik <[email protected]>
driver core: Limit the messages on a refused uevent

Jamal Hadi Salim <[email protected]>
net/sched: act_ife: do not consume the inner header on egress

Antonio Quartulli <[email protected]>
net/sched: fix packet reordering on requeue

owen kwan <[email protected]>
net/sched: sch_teql: fix use-after-free on lower qdisc drop

Jamal Hadi Salim <[email protected]>
net/sched: sch_teql: fix slaves_lock IRQ deadlock

Hengyu Liang <[email protected]>
serial: core: fix TIOCSSERIAL and TIOCSERCONFIG on uninitialised ports

Timur Kristóf <[email protected]>
drm/amdgpu/uvd3.1: Fix checking whether UVD firmware keyselect was already set

Donggeun Yoo <[email protected]>
tracing: Fix NULL dereference when copying keys for a field variable

Pengpeng Hou <[email protected]>
tracing: Bound histogram expression strings with seq_buf

Pengpeng Hou <[email protected]>
tracing: Return ERR_PTR() from expr_str()

Pengpeng Hou <[email protected]>
tracing: Use __free() for expr_str() buffer

Tom Zanussi <[email protected]>
tracing: Fix fully-qualified variable reference printing in histograms

Christian Brauner <[email protected]>
ipc: drop the mqueue mount with kern_unmount() on setup failure

Vlad Kulikov <[email protected]>
ipc: create_ipc_ns: drop mqueue mount on sysctl setup failure

Dibin Moolakadan Subrahmanian <[email protected]>
drm/i915/dmc: Add sanity check for DMC load address

EJ Campbell <[email protected]>
x86/kvm: Don't consume async #PF flags on a kernel #PF in NMI context

Xiaoyao Li <[email protected]>
x86/kvm: Use separate percpu variable to track the enabling of asyncpf

Krzysztof Furman <[email protected]>
Input: xpad - add support for Corsair Novablade Pro

Vitaly Prosyak <[email protected]>
drm/amdgpu: serialize vblank counter reads against GPU reset

Leo Li <[email protected]>
drm/amd/display: Fix direct scanout alpha on some DRM_FORMATs

Weiming Shi <[email protected]>
net: team: free skb when broadcast has no txable port

Alexey Charkov <[email protected]>
regulator: of: fill in supply names in of_regulator_bulk_get_all()

Christian Brauner <[email protected]>
namespace: never expire a locked mount

Hari Mishal <[email protected]>
drm/amd/display: guard dc_sink dereferences in MST mode validation

Theo Andersen Carton <[email protected]>
drm/amdgpu: skip the noirq suspend reset for a switcheroo-parked GPU

Christian Brauner <[email protected]>
namespace: check a recursive bind mount for mount namespace loops

Ian Rogers <[email protected]>
perf: Replace perf_event_header__init_id with full header init

Mikulas Patocka <[email protected]>
dm-integrity: validate the superblock on resume

Paulo Alcantara <[email protected]>
smb: client: only require read lease for size-extending zero range

Paulo Alcantara <[email protected]>
smb: client: drain and invalidate before server-side copy/clone

Paulo Alcantara <[email protected]>
smb: client: flush dirty data before zeroing a range

Paulo Alcantara <[email protected]>
smb: client: flush and commit data before querying allocated ranges

Paulo Alcantara <[email protected]>
smb: client: discard post-EOF pagecache when extending a file via clone range

Willem de Bruijn <[email protected]>
net: extend IPv6 exthdr detection of tunneled packets

Chengfeng Ye <[email protected]>
Bluetooth: hci_core: Serialize SCO and ISO scheduling with teardown

Chengfeng Ye <[email protected]>
Bluetooth: Serialize SMP remote OOB data access

Yu-Hsiang Tseng <[email protected]>
ALSA: hda/realtek: Fix silent speaker on Higole F9B

Sean Christopherson <[email protected]>
KVM: nVMX: Force MSR bitmap refresh if runtime eVMCS controls are modified

Sean Christopherson <[email protected]>
KVM: SVM: Update control fields on #VMEXIT if and only if VMRUN succeeded

Sean Christopherson <[email protected]>
KVM: SVM: Preserve TLB control (i.e. pending TLB flush) on failed VMRUN

Hui Peng <[email protected]>
mctp: route: iterate socket tag list in mctp_lookup_prealloc_tag()

Jeremy Kerr <[email protected]>
net: mctp: separate key correlation across nets

Jeremy Kerr <[email protected]>
net: mctp: Add some detail on the key allocation implementation

Jeremy Kerr <[email protected]>
net: mctp: avoid confusion over local/peer dest/source addresses

Ivan Lipski <[email protected]>
drm/amd/display: Bump frame warning limit for clang builds of dml

Wentao Liang <[email protected]>
drm/amd/display: Fix dc stream excess put in dm_update_crtc_state()

Uwe Kleine-König <[email protected]>
drm/amd/display: Whitespace cleanup

Masami Hiramatsu (Google) <[email protected]>
x86/mce: Fix hardware debug register corruption on task migration

Aldo Ariel Panzardo <[email protected]>
HID: multitouch: stop the release timer from being rearmed on remove

Kendall Willis <[email protected]>
serial: 8250_omap: fix wake irq cleared during suspend

Johan Hovold <[email protected]>
serial: abort TIOCMIWAIT on hangup

Johan Hovold <[email protected]>
serial: fix ioctl hangup race

Daniel Starke <[email protected]>
tty: n_gsm: fix missing modem controls after DLCI open in convergence layer type 2

Willem de Bruijn <[email protected]>
packet: use ubuf_info completion for TX_RING packets

Willem de Bruijn <[email protected]>
virtio_net: copy zerocopy frags in start_xmit without NAPI

Sean Christopherson <[email protected]>
KVM: x86: Fill kvm_run exit fields in common get_nested_state_pages() error paths

Sean Christopherson <[email protected]>
KVM: x86: Re-pend GET_NESTED_STATE_PAGES if getting said pages fails

Zihan Xi <[email protected]>
smb: client: clean up failed cached directory opens

Liu Zhenlong <[email protected]>
i2c: qcom-cci: fix device_node refcount leak in cci_probe()/cci_remove()

Jiapeng Chong <[email protected]>
i2c: qcom-cci: Remove the unused variable cci_clk_rate

Bryan O'Donoghue <[email protected]>
i2c: qcom-cci: Stop complaining about DT set clock rate

Adarsh Das <[email protected]>
smb: client: delete compound mids on send failure before unlock

SJ Park <[email protected]>
mm/damon/vaddr: avoid hw-driven pte updates during damon_hugetlb_mkold()

Longlong Xia <[email protected]>
mm/hugetlb: do not dissolve gigantic pages without runtime support

Chang S. Bae <[email protected]>
x86/microcode/intel: Reject problematic loading on Granite Rapids systems

Chengjun Yao <[email protected]>
drm/amdgpu: fix rmmio iounmap skipped on device removal

David Francis <[email protected]>
drm/amdkfd: Avoid integer underflow in EOP ring size calculation.

David Francis <[email protected]>
drm/amdkfd: Avoid integer underflow with ffs in EOP ring size calc

Wentao Liang <[email protected]>
ata: libahci_platform: Fix device reference leak in ahci_platform_get_resources()

Zhang Zekun <[email protected]>
ata: libahci_platform: Simplify code with for_each_child_of_node_scoped()

Guangshuo Li <[email protected]>
i2c: imx: disable autosuspend on remove

Devin Wittmayer <[email protected]>
wifi: mac80211: refuse to make a monitor active when it has no queue

Runyu Xiao <[email protected]>
Input: hp_sdc - shut down kicker timer on module exit

Paulo Alcantara <[email protected]>
smb: client: fix rlist race and missing initialization

Paulo Alcantara <[email protected]>
smb: client: cancel reconnect work in clean_demultiplex_info()

Claudiu Beznea <[email protected]>
phy: renesas: rcar-gen3-usb2: Avoid long delay in atomic context

Takashi Iwai <[email protected]>
ALSA: core: Fix potential UAF after asynchronous card release

Takashi Iwai <[email protected]>
ALSA: core: Use guard() for locking

Uwe Kleine-König <[email protected]>
ALSA: core: Make snd_card_disconnect() return void

Cen Zhang <[email protected]>
KEYS: encrypted: fix integer overflow of datablob_len

Steven Rostedt <[email protected]>
tracing: Take trace_array reference when opening a tracer options file

Donggeun Yoo <[email protected]>
tracing: Undo the registration when enabling the histogram trigger fails

Masami Hiramatsu (Google) <[email protected]>
bootconfig: Fix integer overflow in initrd size check

Masami Hiramatsu (Google) <[email protected]>
tools/bootconfig: Fix integer overflow and truncation in size checks

Mark Rutland <[email protected]>
arm64: percpu: Fix LSE operations on {8,16}-bit types

Catalin Marinas <[email protected]>
arm64: Use load LSE atomics for the non-return per-CPU atomic operations

Jonghyuk Kim(MalHyuk) <[email protected]>
drm/msm: RCU-free the scheduler-containing ring and VM objects

Prike Liang <[email protected]>
drm/amdgpu: skip gfx switch_power_profile during GPU reset

Alex Deucher <[email protected]>
drm/amdgpu/pm: add workload profile pause helper

Runyu Xiao <[email protected]>
net: macb: initialize PTP state before registering clock

Christian Brauner <[email protected]>
fs/ntfs3: use d_instantiate_new() in ntfs_create_inode() and murder syzbot's "WARNING in do_new_mount" saga

Leonardo Costa <[email protected]>
drm/bridge: tc358768: Enforce input bus flags via atomic_check

Donggeun Yoo <[email protected]>
swiotlb: use the adjusted address for the highmem page lookup

Jens Axboe <[email protected]>

    io_uring/rw: end write accounting from ->ki_complete

Harald Freudenberger <[email protected]>
s390/crypto: Fix skcipher_walk return code handling in aes_s390

Dinh Nguyen <[email protected]>
EDAC/altera: Use parent device for devres in altr_portb_setup()

Rounak Das <[email protected]>
EDAC/altera: Use ECC manager compatible to select A10/S10 IRQ layout

Vasileios Almpanis <[email protected]>
configfs: unhash the dentry before dropping the item in rmdir

Vasileios Almpanis <[email protected]>

    configfs: pin the symlink target's dirent instead of chasing ->ci_dentry

Al Viro <[email protected]>
configfs:get_target() - release path as soon as we grab configfs_item reference

Christian Brauner <[email protected]>
path: add cleanup helper

Darrick J. Wong <[email protected]>
xfs: strengthen the "is cow staging" helpers in scrub

Tristan Madani <[email protected]>
ALSA: usbusx2y: validate URB actual_length in interrupt callback

Ju Nan <[email protected]>
irqchip/stm32mp-exti: Fix the unit of the hwspinlock timeout

Fan Wu <[email protected]>
mmc: hsq: Fix use-after-free in retry work

Michael Wu <[email protected]>
mmc: mmc-hsq: Use fifo to dispatch mmc_request

Karl Mehltretter <[email protected]>
smb: client: pin DFS superblock in iterator callback

Kanala Ramalingeswara Reddy <[email protected]>
drm/amdgpu: Skip accessing psp rum time db for APUs

Mikulas Patocka <[email protected]>
dm-integrity: fix NULL pointer dereference when the 'R' flag is used

HyeongJun An <[email protected]>
ALSA: rawmidi: Return the error from snd_rawmidi_input_params()

Shakeel Butt <[email protected]>
memcg: make the v1 soft limit knob inert

Kanishka De Silva <[email protected]>
ublk: clear VM_MAYWRITE on read-only ublk char device mmap

Pawel Laszczak <[email protected]>
usb: cdnsp: fix wakeup from S3 after controller context loss

Shuhei Takeshita <[email protected]>
IB/hfi1: Fix the PIO_CRED credit-return mmap

Shuhei Takeshita <[email protected]>
IB/hfi1: Resolve the credit-return buffer through the send context's node

Dean Luick <[email protected]>
IB/hfi1: Use dma_mmap_coherent for matching buffers

Zhiling Zou <[email protected]>
xfrm: save input state data before secpath resets

Ido Schimmel <[email protected]>
ipv6: udp: Create exceptions before socket matching

Ido Schimmel <[email protected]>
ipv6: Fix redirect exception creation for UDP/RAW sockets

Daehyeon Ko <[email protected]>
vsock/vmci: validate packet source for connected sockets

Yunpeng Tian <[email protected]>
smb: client: reject SetEA requests that do not fit the request buffer

Cen Zhang (Microsoft) <[email protected]>
reboot: fix cad_pid use-after-free race

Runyu Xiao <[email protected]>
iio: admv1013: initialize callback mutex before registering notifier

Marco Chen <[email protected]>
iio: health: max30102: fix NULL dereference in interrupt handler

Nuno Sa <[email protected]>
iio: core: add accessors 'masklength'

David Lechner <[email protected]>
iio: buffer: use struct iio_scan_type to simplify code

David Lechner <[email protected]>
iio: introduce struct iio_scan_type

Hans de Goede <[email protected]>
iio: core: Add iio_read_acpi_mount_matrix() helper function

Andy Shevchenko <[email protected]>
lib/vsprintf: split out sprintf() and friends

Guangshuo Li <[email protected]>
i2c: qcom-cci: fix autosuspend cleanup

Sunday Clement <[email protected]>
drm/amdkfd: Reject zero-sized AQL queue allocations after size halving

Breno Leitao <[email protected]>
mm, swap: ratelimit bad swap entry reports

David Hildenbrand (Arm) <[email protected]>
mm/gup: fix always draining LRU caches in collect_longterm_unpinnable_folios()

Shakeel Butt <[email protected]>
memcg: bypass the reclaim and oom killer for dying tasks once oom_reaper is done

Breno Leitao <[email protected]>
mm/kmemleak: report RCU-tasks quiescent states during the scan

Johannes Weiner <[email protected]>
mm: mempolicy: fix automatic numa balancing for shmem

Eckhart Mohr <[email protected]>
ALSA: hda/realtek: Add quirk for TongFang XxAF5xxx

Eckhart Mohr <[email protected]>
ALSA: hda/realtek: Add quirk for TongFang X6SP45xU

Eckhart Mohr <[email protected]>
ALSA: hda/realtek: Add quirk for TongFang X6xx45xU

Jesse Zhang <[email protected]>
drm/amdgpu: force complete the MES ring fences on reset

Yang Wang <[email protected]>
drm/amdgpu: Disable runtime PM for externally attached dGPUs

Thorsten Blum <[email protected]>
platform/x86: think-lmi: Fix current password length check

Andy Shevchenko <[email protected]>
platform/x86: think-lmi: Use strreplace() to replace a character by nul

Andy Shevchenko <[email protected]>
platform/x86: think-lmi: Replace kstrdup() + strreplace() with kstrdup_and_replace()

Andy Shevchenko <[email protected]>
lib/string_helpers: Add kstrdup_and_replace() helper

Thorsten Blum <[email protected]>
platform/x86: think-lmi: Fix certificate thumbprint sysfs output

胡连勤 <[email protected]>
block: set QUEUE_FLAG_DYING unconditionally in blk_mark_disk_dead()

Xu Rao <[email protected]>
ALSA: hda/ext: preserve PPLCCTL bits when clearing reset

Denis Batishchev <[email protected]>
ALSA: hda/realtek: Enable micmute LED on HP EliteBook 6 G1a p/n: AD3Q9ET#UUG

Chuck Lever <[email protected]>
NFSD: Prevent client use-after-free during blocked-lock reaping

Jeff Layton <[email protected]>
nfsd: use test_and_clear_bit for somebody_reclaimed to prevent lost update

Jeff Layton <[email protected]>
nfsd: dedup nfs4_client_to_reclaim inserts

Chris Mason <[email protected]>
nfsd: convert nfsd_net boolean flags to unsigned long flags word

Chuck Lever <[email protected]>
svcrdma: Clear sc_cm_id when ADDR_CHANGE replacement fails

Thomas Gleixner <[email protected]>
futex: Sanitize and document task_struct::futex::state transitions

Helge Deller <[email protected]>
sticon/parisc: Detect default STI graphics card for console output

Adrian Hunter <[email protected]>
i3c: master: Fix potential UAF in i3c_device_uevent()

Qu Wenruo <[email protected]>
btrfs: do not overwrite NODATASUM flag when removing NODATACOW flag

Yao Zi <[email protected]>
x86/locking: Use sfence for wmb() if SSE is available

Nilesh Javali <[email protected]>
scsi: qla2xxx: Clamp max_npiv_vports to VP_CTRL bitmap capacity

Thiébaud Weksteen <[email protected]>
module: validate string table section types

Can Peng <[email protected]>
spi: bcm63xx-hsspi: disable clocks on resume failure

Joanne Chang <[email protected]>
f2fs: dirty directory inodes on mtime/ctime update

Jose Villaseñor Montfort <[email protected]>
HID: input: read battery capacity from its actual report offset

Dev Jain <[email protected]>
mm/page_vma_mapped: use huge_ptep_get() for hugetlb

Dev Jain <[email protected]>
mm/rmap: use huge_ptep_get() in try_to_migrate_one()

Dev Jain <[email protected]>
mm/rmap: use huge_ptep_get() in try_to_unmap_one()

Myeonghun Pak <[email protected]>
nvme-pci: disable controller on admin queue IRQ setup failure

Lukas Wunner <[email protected]>
PCI/AER: Emit TLP Log only for unmasked errors

Yosry Ahmed <[email protected]>
KVM: x86: Check EFER validity on KVM_SET_SREGS*

Yosry Ahmed <[email protected]>
KVM: x86: Always initialize EFER reserved bits on vendor initialization

Max Kellermann <[email protected]>
jbd2: bound shrinker scans by examined checkpoint buffers

Max Kellermann <[email protected]>
jbd2: check need_resched() when skipping busy checkpoint buffers

Ye Bin <[email protected]>
jbd2: add prefix 'jbd2' for 'shrink_type'

Ye Bin <[email protected]>
jbd2: use shrink_type type instead of bool type for __jbd2_journal_clean_checkpoint_list()

Thorsten Blum <[email protected]>
crypto: atmel-ecc - avoid stale fallback key after set_secret failure

Yosry Ahmed <[email protected]>
KVM: nVM: Ensure INVVPID is emulated on the correct physical CPU

Sean Christopherson <[email protected]>
KVM: nVMX: Decouple INVVPID operand checks from flushing of vpid02

Thomas Zimmermann <[email protected]>
drm/sysfb: simpledrm: Improve framebuffer-size validation

Miquel Raynal (DAVE) <[email protected]>
mtd: rawnand: pl353: Make sure we use the monolithic helpers for raw accesses

Andrea Scian <[email protected]>
mtd: rawnand: pl353: Add message about ECC mode

Duoming Zhou <[email protected]>
cxgb4: fix use after free bugs caused by circular dependency problem

Qing Luo <[email protected]>
sctp: auth: discard auth_chunk when skb_clone fails

Pablo Neira Ayuso <[email protected]>
netfilter: nf_conntrack_expect: add and use nf_ct_expect_related_pair()

Wentao Guan <[email protected]>
wifi: cfg80211: release locks on error in cfg80211_wext_siwgenie()

Bui Viet Dung <[email protected]>
wwan: wwan_hwsim: Pin module for debugfs file operations

Jonathan Gopel <[email protected]>
thunderbolt: Do not RPM complete unrelated subtrees on unplug

Cen Zhang <[email protected]>
ocfs2: publish the filecheck owner before adding sysfs attributes

Cen Zhang <[email protected]>
ocfs2: pin owning modules for open debugfs files

Cen Zhang <[email protected]>
ocfs2: drain quorum work before removing the cluster

Cen Zhang <[email protected]>
ocfs2/dlm: drain join handlers before releasing module text

Wei Jie Law <[email protected]>

    net: usb: pegasus: do not advance rx_skb->data on dropped frames

Kaho Jiang <[email protected]>
net: ipv4: add zero check for snd_cwnd_clamp

Xiang Mei <[email protected]>
media: go7007: only set audio_enabled if go7007_snd_init() succeeded

Xiang Mei <[email protected]>
media: em28xx: reject audio endpoint with zero packet size

Myeonghun Pak <[email protected]>
media: cx88: Disable PCI device on MPEG initialization failure

Xiang Mei <[email protected]>
libceph: bound mon_command ack decode to front len

Andrea Parri <[email protected]>
kcsan: Avoid division by zero in kcsan_prandom_u32_max()

Fang Xieyan <[email protected]>
kcov: ignore an out-of-range comparison count in write_comp_data()

Yuanfu Xie <[email protected]>
ceph: fail readdir when the MDS reply carries no dirfrag

Baokun Li <[email protected]>
blk-crypto: fix NULL deref and UAF in __blk_crypto_evict_key()

Greg Kroah-Hartman <[email protected]>
Revert "net: stmmac: protect updates of 64-bit statistics counters"

Rohinthan P <[email protected]>
media: em28xx: use video_unregister_device for radio_dev

Matus Gajdos <[email protected]>
ALSA: usb-audio: Add native DSD support for Cambridge Audio streamers

Miquel Raynal <[email protected]>
spi: cadence-qspi: Fix status polling with octal DTR chips

Eckhart Mohr <[email protected]>
ALSA: hda/realtek: Add quirk for ASRock NUC BOX-358H

Reinhard Speyerer <[email protected]>
net: usb: qmi_wwan: add Rolling Wireless RN947R

Vladimir Murzin <[email protected]>
usb: mtu3: Fix double dereference in TP_printk

renpanpan <[email protected]>
ALSA: hda/realtek: Add mute LED quirk for HP Pavilion 14-dv1001TU

Zhang Heng <[email protected]>
ALSA: hda/realtek: Add quirk for Acer Nitro AN515-45

Tarun Noonemunthala <[email protected]>
ALSA: hda/realtek: Add quirk for HP ENVY 13-aq1xxx

Luis Banha <[email protected]>
ALSA: hda/realtek: Add mute LED quirk for HP Pavilion 15-ec1xxx

Tomasz Bojanowski <[email protected]>
ALSA: usb-audio: Add mixer mapping for MSI MAG B850M MORTAR WIFI

Hernan Ganzo <[email protected]>
ALSA: hda/realtek: Limit internal mic boost on HP Pavilion 15 (103c:2164)

Jasper Firth <[email protected]>
ASoC: Intel: bytcr_rt5651: Add quirk for Chuwi Hi8 with generic DMI strings

Daniel Ortiz <[email protected]>
ASoC: amd: yc: Add DMI quirk for Lenovo V15 G6 ARP

Rosen Penev <[email protected]>
gpio: mvebu: keep resume masks within the irqchip cache

Seiji Adachi <[email protected]>
ASoC: amd: yc: Add Lenovo ThinkPad E16 Gen 2 (21JN) to quirks

Dmitry Antipov <[email protected]>
HID: roccat: fix locking in roccat_connect() and roccat_disconnect()

Maurizio Lombardi <[email protected]>
nvme-fc: do not warn on controller removal race

Youth Cao <[email protected]>

    HID: i2c-hid: Add i2c-hid-quirk-bad-input-size quirk for 0911:5288 device

Namjae Jeon <[email protected]>
ksmbd: handle allocated range queries on dense files

Fernando Fernandez Mancera <[email protected]>
netfilter: tproxy: use DEBUG_NET_WARN_ON_ONCE for protocol fallbacks

Bob Song <[email protected]>
ALSA: hda/conexant: Always enable the headset-mic pin on plugin

Xiubo Li <[email protected]>
ceph: do not cache negative dentries for snapped directories

Federico Valentín Andrade <[email protected]>
ALSA: usb-audio: Skip mixer creation on M-Audio Venom

Li Jun <[email protected]>
tpm: tpm_tis_spi: fix nodef CR50 tpm_tis_spi_resume is null

Dave Carey <[email protected]>
HID: multitouch: Fix stale MT slots when contact count drops to zero

Zhang Heng <[email protected]>
ASoC: amd: yc: Add DMI entry for Alienware m18 R1 AMD

Zhang Heng <[email protected]>
ALSA: hda/realtek: Add quirk for Lenovo IdeaPad Slim 3 15ABR8

Md Rabbani <[email protected]>
net: stmmac: fix device node reference leaks in stmmac_mtl_setup()

Helge Deller <[email protected]>
fbcon: Fix KASAN slab-out-of-bounds Read in fbcon_prepare_logo

Jenson Johnathon Reggentin <[email protected]>
docs: block: fix dead http link in blk-mq.rst

Chen Changcheng <[email protected]>
scsi: snic: Fix SCSI host leak on workqueue allocation failure

Will Porter <[email protected]>
ALSA: usb-audio: Add iD14 MkI to monitor-mix volume quirk

Daeho Jeong <[email protected]>
f2fs: avoid setting SBI_NEED_FSCK on transient resize failure

Robin Everaars <[email protected]>
ACPI: button: Add DMI quirk for Razer Blade Pro 17 early 2020 lid switch

Namjae Jeon <[email protected]>
ksmbd: enable TCP keepalive for accepted connections

BingKun Yue <[email protected]>
fbdev: platinumfb: add error checking for ioremap calls

Randy Dunlap <[email protected]>
fbdev: maxine: fix 64-bit build error

Pengpeng Hou <[email protected]>
rtc: brcmstb-waketimer: add missing MODULE_DEVICE_TABLE()

Robert Leussler <[email protected]>
rtc: ds1307: fix RX8130 wakeup alarm WADA bit for day-of-month mode

Jinqian Yang <[email protected]>
virtio_ring: fix infinite loop in virtnet_poll_cleantx when device is broken

Pengpeng Hou <[email protected]>
rtc: ab-eoz9: add missing MODULE_DEVICE_TABLE()

Denis V. Lunev <[email protected]>
virtio_balloon: warn on failed buffer add in tell_host()

Kuninori Morimoto <[email protected]>
ASoC: codec: max98926: fixup invert setup mask

Alex Elder <[email protected]>
net: stmmac: use dma_addr_t for DMA addresses

Thomas Huth <[email protected]>
smb: server: Free session data in user_session.c with kfree_sensitive()

Namjae Jeon <[email protected]>
ksmbd: notify parent directory leases on child create

Namjae Jeon <[email protected]>
ksmbd: honor client signing-required in all modes

Namjae Jeon <[email protected]>
ksmbd: reject blocking compound lock requests

Gael Blivet <[email protected]>
ksmbd: fix AsyncId zeroed before use in smb2_lock() cancel response

Namjae Jeon <[email protected]>
ksmbd: fix SMB2 byte-range lock end offset

ChenXiaoSong <[email protected]>
smb/server: cancel async requests when closing connection

Gael Blivet <[email protected]>
ksmbd: skip fallocate for SMB2_CREATE_ALLOCATION_SIZE on a stream handle

Namjae Jeon <[email protected]>
ksmbd: allow FSCTL_SET_SPARSE without input buffer

Namjae Jeon <[email protected]>
ksmbd: honor byte-range locks for zero data

Namjae Jeon <[email protected]>
ksmbd: handle empty QUERY_ALLOCATED_RANGES output

Namjae Jeon <[email protected]>
ksmbd: allow I/O on directory named streams

Namjae Jeon <[email protected]>
ksmbd: preserve access denied status for copychunk

Namjae Jeon <[email protected]>
ksmbd: protect private extended attributes

Israel Téllez García <[email protected]>
libbpf: Fix ring buffer consumer loop on 32-bit position wrap

Yang Wen <[email protected]>
exfat: keep FITRIM within the requested range

Anuj Bolewar <[email protected]>
drm/virtio: reclaim pending vbufs before tearing down vqs

Neil Andrews <[email protected]>
ALSA: usb-audio: Rename the Audient iD14 monitor mix volume control

Takashi Iwai <[email protected]>
ALSA: hda/intel: Add sanity check for BAR0 size

Farhan Ali <[email protected]>
PCI: Avoid saving config space state if inaccessible

Michail Tatas <[email protected]>
ipmi: Fix leak in __ipmi_bmc_register

Charles Keepax <[email protected]>
soundwire: dmi-quirks: Disable ghost Realtek on Asus ROG Zephyrus Duo

Jiaming Zhang <[email protected]>
hfsplus: validate extent record length before writing it back

Dmytro Moroziuk <[email protected]>
ALSA: hda/conexant: Add mute LED quirk for HP ProBook 440 G5

Matt Turner <[email protected]>
alpha: run the remote RTC access in a worker, not an IPI callback

Chao Shi <[email protected]>
nvme: ratelimit the completion-path messages driven by device data

Griffin Kroah-Hartman <[email protected]>
nfc: nxp-nci: Add remove on IRQ error

Griffin Kroah-Hartman <[email protected]>
nfc: mrvl: spi: Unregister dev on allocation fail

Feng Tang <[email protected]>
selftests: net: reuseport_bpf_numa: consider cpuless numa node

Geliang Tang <[email protected]>
nvme-tcp: look up host_iface in the current netns

Zhe Liu <[email protected]>
docs: cgroup-v2: fix stale "io" controller introduction

Brian Grech <[email protected]>
selftests/net: fin_ack_lat: fix latency threshold typo

Hari Mishal <[email protected]>
nvmet: passthru: fix OOB reads when parsing ns id descriptor list

Dapeng Mi <[email protected]>
perf/x86: Free hybrid state on PMU init failure

Dapeng Mi <[email protected]>
perf/x86: Unregister PMI handler on PMU init failure

Michal Pecio <[email protected]>

    ALSA: usx2y: Stop clearing urb->hcpriv before submission

Pengpeng Hou <[email protected]>
fbdev: udlfb: validate vendor descriptor items

Andreas Kemnade <[email protected]>
fbdev: omap2: dsi: do not copy isr table

Laxman Acharya <[email protected]>
Bluetooth: hci_event: fix out-of-bounds read in LE PA report reassembly

Daniel Golle <[email protected]>
net: dsa: mt7530: error out on failed PHY_IAC command writes

Muhammad Saheed <[email protected]>
Bluetooth: hci_sync: Disable legacy instance's ext adv before setup snapshot

Li Qiang <[email protected]>
Bluetooth: hci_bcsp: validate received packet lengths

Chen Changcheng <[email protected]>
Bluetooth: btrsi: Move set_bt_context after successful HCI registration

Zhang Heng <[email protected]>
ALSA: hda/realtek: Fix headset mic on ASUS Vivobook S14 S5406SA

Junhao He <[email protected]>
ACPI: APEI: Handle repeated SEA error storms

Aurabindo Pillai <[email protected]>
drm/amd: Add DCN6 register headers

Filipe Manana <[email protected]>
btrfs: fix memory barrier order in reloc_root_is_dead()

Pengpeng Hou <[email protected]>
Bluetooth: hci_nokia: validate firmware packet bounds

Pavel Zverev <[email protected]>
Bluetooth: btusb: Add support for 1357:c123 Realtek 8852BE device

Rui Qi <[email protected]>
selftests/ftrace: Force C locale in ftracetest

Andreas Haufler <[email protected]>
tools/lib/thermal: Fix misplaced extern "C" closing brace

Yunye Zhao <[email protected]>
md: add cond_resched() to md_do_sync()'s skip path

Yu Kuai <[email protected]>
md/raid5: reject zero-sector reshape chunks

Junzhe Yu <[email protected]>
ext4: guard against NULL s_group_info in ext4_get_group_info

Pengpeng Hou <[email protected]>
HID: rmi: check report length before trimming sentinel bytes

liulhong617 <[email protected]>
arm64: mm: fix accidental linear mapping of no-map reserved memory

Charles Keepax <[email protected]>
soundwire: dmi-quirks: Disable ghost Realtek on Asus Zenbook Duo

Praveen Talari <[email protected]>

    opp: Use clk_get_optional() to avoid leaving opp_table->clk as an error pointer

Carl Quist <[email protected]>

    ALSA: hda/realtek: Enable mute LED on HP Laptop 15-dy0xxx

Jinhui Guo <[email protected]>
net: usb: cdc_ether: add quirk for AMI BMC stale link events

Johan Alvarado <[email protected]>
net: stmmac: raise TX completion interrupt at the end of an xmit burst

Stefan Haberland <[email protected]>
s390/dasd: Snapshot intrc before freeing the request block

Simon Glass <[email protected]>
kconfig: abort rather than loop for ever on EOF

Allison Henderson <[email protected]>
net/rds: unpin MR pages with unpin_user_pages_dirty_lock()

Sharath Srinivasan <[email protected]>
net/rds: fix rds_message leak in the rds_send_xmit() drop path

Håkon Bugge <[email protected]>
net/rds: hold the socket while an rds_mr references it

Allison Henderson <[email protected]>
net/rds: don't use unpin_user_pages_dirty_lock() from atomic context

Wahid Khan <[email protected]>
HID: intel-ish-hid: ignore post-init ENUM_DEVICES from firmware

Yuxiang Lin <[email protected]>
HID: quirks: add ALWAYS_POLL quirk for AULA Mini 60 HE Pro Dongle

Aaron Ma <[email protected]>
HID: quirks: Add ALWAYS_POLL quirk for Beitong BTP-KP20D dongle

Mauricio Orozco <[email protected]>
ALSA: hda/realtek: Add quirk for ASUS VivoBook M515DA/X515DAP

Can Peng <[email protected]>
wifi: brcmfmac: validate msgbuf flowring IDs before use

Can Peng <[email protected]>
wifi: brcmfmac: Set DMA direction for msgbuf packet IDs

Felix Fietkau <[email protected]>
wifi: mt76: mt7603: fix U-APSD service period termination

Felix Fietkau <[email protected]>
wifi: mt76: set the EOSP bit in the QoS header of the last released frame

Felix Fietkau <[email protected]>

    wifi: mt76: mt7615: fix NULL deref in mt7615_mac_set_rates

Geetha sowjanya <[email protected]>
perf: marvell: Cancel CN10K DDR PMU hrtimer on device remove

Pablo Neira Ayuso <[email protected]>
netfilter: nf_tables: call skb_valid_dst() before skb_dst()

Minghao Zhang <[email protected]>
netfilter: conntrack: tcp: use UNACK timeout for non-closing RST packets

Ahmed Naseef <[email protected]>

    wifi: mt76: mt7603: add 0x7592 EEPROM chip ID

Prashant Rahul <[email protected]>
wifi: mt76: mt7921: fix memory leak when skb_linearize fails in mcu rx event

David Bauer <[email protected]>
wifi: mt76: mt7915: configure noise floor reporting on reset

Devin Wittmayer <[email protected]>

    wifi: mt76: mt76x02: report rx FCS errors to mac80211

David Bauer <[email protected]>
wifi: mt76: mt7603: free beacon SKB on error

Hari Mishal <[email protected]>
virtio_console: take a kref in find_port_by_vq() to fix port UAF

이상호 <[email protected]>
romfs: detect hard link cycles

bui duc phuc <[email protected]>
regulator: rt6245: Restore state on enable failure

Bob Song <[email protected]>
ALSA: hda/realtek: add missing error checks for COEF index reads in alc269

Dmitry Torokhov <[email protected]>
mfd: ipaq-micro: Fix out-of-bounds stack read in ipaq_micro_str

Konstantin Komarov <[email protected]>
fs/ntfs3: Fix memory leak in indx_find_sort()

Bob Song <[email protected]>

    ALSA: hda/realtek: add missing NULL check for codec->bus->pci

Yichong Chen <[email protected]>
exfat: free new directory cluster if zeroing fails

wangdicheng <[email protected]>
ALSA: hda/conexant: Add NULL check for dc_mode_path

Gary Guo <[email protected]>
ata: ata_generic: Don't store pci_device_id

Dmitry Osipenko <[email protected]>
clk: tegra: support 48MHz clock for pll_p_out1

Chen Changcheng <[email protected]>
media: cx88: fix memory leak in cx8802_register_driver() error path

Pengpeng Hou <[email protected]>
clk: imx: imx8qxp-lpcg: add missing MODULE_DEVICE_TABLE()

Pengpeng Hou <[email protected]>
clk: imx: imx8qxp: add missing MODULE_DEVICE_TABLE()

Jay Vadayath <[email protected]>
udf: bound lengthAllocDescs from unallocated space entry

Jan Kara <[email protected]>
udf: Fix bh leak for unallocated space entries

Tyrel Datwyler <[email protected]>
scsi: ibmvfc: free ibmvfc_target allocations with mempool_free

Tyrel Datwyler <[email protected]>
scsi: ibmvfc: check for NULL evt in implicit LOGO and target delete path

Jiaxing Hu <[email protected]>
iommu/rockchip: Clear stale page faults before enabling stall

Pengpeng Hou <[email protected]>
hsi: omap_ssi: remove debugfs on port creation failure

Pengpeng Hou <[email protected]>
firmware: imx: scu: manage mailbox channels and global handle

Konstantin Komarov <[email protected]>
fs/ntfs3: load ATTR_BITMAP run extents from $MFT extension records

Senjin <[email protected]>
fs/ntfs3: fix lseek EINVAL on sparse/compressed files with 64-bit clusters

Konstantin Komarov <[email protected]>
ntfs3: fix info-leak in ntfs_rename()

Kyle Zeng <[email protected]>
fs/ntfs3: reserve NUL byte when converting UTF-16 names

Brian Norris <[email protected]>
PCI/portdrv: Allow probing even without child services

Pengpeng Hou <[email protected]>
soc: ixp4xx: qmgr: add missing MODULE_DEVICE_TABLE()

Benjamin Marzinski <[email protected]>
bitops: make the *_bit_le functions use unsigned long

Zhang Yi <[email protected]>
ext4: check return value of ext4_get_block() in ext4_load_tail_bh()

Manikanta Pubbisetty <[email protected]>
wifi: ath10k: trigger hardware recovery upon rx failures

Pengpeng Hou <[email protected]>
wifi: ath11k: validate regulatory capability phy_id

Mukesh Ojha <[email protected]>
iommu/qcom: Publish pgtbl_ops before releasing init_mutex

Mukesh Ojha <[email protected]>
iommu/qcom: Check pm_runtime_resume_and_get() return in probe

Heiko Schocher <[email protected]>
drm/panel: simple: Add Kyocera tcg070wvlq panel

Lachlan Hodges <[email protected]>
wifi: cfg80211: include cf1 offset when sending chandef

Kuan-Wei Chiu <[email protected]>
riscv, bpf: Add support for BPF_MOVSX in RV32 JIT

Pengpeng Hou <[email protected]>
power: reset: piix4-poweroff: add missing MODULE_DEVICE_TABLE()

Yuyang Huang <[email protected]>
net: prestera: ignore duplicate RIF destruction events

Pengpeng Hou <[email protected]>
power: supply: cros_pchg: unregister EC notifier

Kuan-Wei Chiu <[email protected]>
riscv, bpf: Add support for BPF_SDIV and BPF_SMOD in RV32 JIT

Shahar Tzarfati <[email protected]>
wifi: mac80211: ibss: read deauth reason_code after frame length check

Yun Zhou <[email protected]>
ext4: set EXT4_STATE_NO_EXPAND in ext4_evict_inode

Ali Alaei <[email protected]>
PCI: vmd: Handle BUS_RESTRICT_CFG value 3 for Arrow Lake-HX

Baokun Li <[email protected]>
ext4: reduce max cluster size to match documented 256MB limit

Pengpeng Hou <[email protected]>
ACPI: FPDT: validate table and record lengths

Bob Song <[email protected]>
ALSA: hda: Check snd_hda_power_pm construct error before executing verb

Nizar Al-Kabbani <[email protected]>

    platform/x86: asus-nb-wmi: map ProArt key (0x8b) to KEY_PROG3

Yousef Alhouseen <[email protected]>
media: go7007: s2250: propagate control I/O failures

Rituparna Warwatkar <[email protected]>
media: dvb-core: fix feed leak on failed DMX_ADD_PID

Yuho Choi <[email protected]>
driver core: attribute_container: Unwind device_add() on attr failure

Logan Gunthorpe <[email protected]>
PCI: switchtec: Add Microchip PCI1008 to NTB DMA alias quirk

Logan Gunthorpe <[email protected]>
PCI: switchtec: Add Microchip PCI1008 device ID

Yousef Alhouseen <[email protected]>
misc: ibmvmc: reject oversized inbound messages

Pei Xiao <[email protected]>
ipack: ipoctal: add rwsem to guard against TOCTOU in remove path

Yousef Alhouseen <[email protected]>
misc: ibmvmc: release send buffer on write errors

Pengpeng Hou <[email protected]>
greybus: manifest: validate string descriptor header

Yousef Alhouseen <[email protected]>
misc: hpilo: validate device queue entries before use

Yousef Alhouseen <[email protected]>
misc: genwqe: handle a first DMA address of zero

Yousef Alhouseen <[email protected]>
misc: bcm-vk: validate write size before allocation

Ian Abbott <[email protected]>
comedi: pcmuio: Add sanity check to interrupt handler

Ian Abbott <[email protected]>
comedi: pcm816: Fix sanity check in interrupt handler

Ian Abbott <[email protected]>
comedi: pcmmio: Add sanity check to interrupt handler

Ian Abbott <[email protected]>
comedi: aio_iiro_16: Add sanity check to interrupt handler

Ian Abbott <[email protected]>
comedi: pcm711: Fix sanity check in interrupt handler

Ian Abbott <[email protected]>
comedi: dt2811: Fix sanity check in interrupt handler

Ian Abbott <[email protected]>
comedi: das6402: Add sanity check to interrupt handler

Ian Abbott <[email protected]>
comedi: quatech_daqp_cs: Fix sanity check in interrupt handler

Ian Abbott <[email protected]>
comedi: pcm818: Fix sanity check in interrupt handler

Ian Abbott <[email protected]>
comedi: ni_at_a2150: Fix sanity check in interrupt handler

Ian Abbott <[email protected]>
comedi: ni_atmio16d: Add sanity check to interrupt handler

Pengpeng Hou <[email protected]>
uio: sercos3: add missing MODULE_DEVICE_TABLE()

Michail Tatas <[email protected]>
USB: misc: uss720: Fix leak in get_1284_register

Oliver Neukum <[email protected]>
usb: misc: cypress_cy7c63: check result of IO

Lucas Martins Alves <[email protected]>
usb: musb: host: clear stale RX interrupt on three-strikes error

Hans Verkuil <[email protected]>
media: cec/core: drop cec_post_state_event call

Hans Verkuil <[email protected]>
media: cec: tegra_cec: don't break off msg on NACK

Shivaprasad G Bhat <[email protected]>
scsi: qla2xxx: Handle INTx not connected while passing through

Mikko Perttunen <[email protected]>
gpu: host1x: Wait for timeout worker completion on channel free

Namhyung Kim <[email protected]>
tools/lib/api: Fix potential double-free from fdarray__grow()

Emmanuel Grumbach <[email protected]>
wifi: iwlwifi: mvm: reset the smart fifo state upon FW stop

Jingyi Wang <[email protected]>
remoteproc: core: cancel crash_handler work in rproc_add() error path

Jingyi Wang <[email protected]>
remoteproc: qcom: Check subdev start status in rproc_stop()

Yousef Alhouseen <[email protected]>
media: go7007: avoid undefined shifts in MPEG-4 headers

Pengpeng Hou <[email protected]>
media: cx18: stop VBI start-code scan before short tail

Pengpeng Hou <[email protected]>
media: ivtv: stop VBI start-code scan before short tail

Jurison Murati <[email protected]>
media: i2c: ov8865: Program the sensor on stream start

Lucas Stach <[email protected]>
drm/etnaviv: check all modules for idle after reset

Jurison Murati <[email protected]>
media: i2c: ov8865: Drop the runtime PM usage count on stream failure

Haoxiang Li <[email protected]>
iwlwifi: dvm: add missing cleaup for on error path

Hari Mishal <[email protected]>
nvme: bound ns descriptor header and body to identify buffer

Bard Liao <[email protected]>
soundwire: dmi-quirks: add a global ghost list

Hans Verkuil <[email protected]>
media: em28xx: use vb2_video_unregister_device

Hans Verkuil <[email protected]>
media: em28xx: requeue buffers if start_streaming fails

Hans Verkuil <[email protected]>

    media: em28xx: dev_info->pr_info since dev has been freed

Pengpeng Hou <[email protected]>
crypto: keembay - add missing MODULE_DEVICE_TABLE()

Pengpeng Hou <[email protected]>

    pinctrl: sx150x: add missing MODULE_DEVICE_TABLE()

Gabriel Prostitis <[email protected]>
USB: gadget: inode: fix mm lifetime handling

David Laight <[email protected]>
usb_string_copy: Use kzalloc() to avoid leaking old data

Xu Rao <[email protected]>
usb: gadget: u_audio: clean up capture endpoint on feedback failure

Haoxiang Li <[email protected]>
usb: fsl_qe_udc: check qe_alloc_request() failure in ch9getstatus()

Haoxiang Li <[email protected]>
tty: serial: pch_uart: add check for pci_get_slot()

Xu Rao <[email protected]>
mmc: block: reject invalid perdev_minors before division

Arnd Bergmann <[email protected]>
media: v4l2-tpg: reduce stack usage for kasan builds

Pengpeng Hou <[email protected]>
media: cec: tegra: add missing MODULE_DEVICE_TABLE()

Chris Lew <[email protected]>
rpmsg: char: Check for ongoing chrdev destroy

Pranjal Shrivastava <[email protected]>
PCI/ATS: Ensure pci_ats_supported() is PF-aware for VFs

Pengpeng Hou <[email protected]>
ASoC: codecs: max98396: Unwind supplies on resume failure

Alex Deucher <[email protected]>
drm/amdgpu/gfx11: WARN() rather than BUG() for invalid SDMA engine

Alex Deucher <[email protected]>
drm/amdgpu/atomfirmware: WARN() rather than BUG()

Kyle Zeng <[email protected]>
udf: validate extent partition references in udf_current_aext()

Devansh Soni <[email protected]>
staging: rtl8723bs: fix missing unregister_netdev on sdio_alloc_irq failure

Xixin Liu <[email protected]>
nvme: zns: cap zone report nr_zones by DMA buffer size

Tanmay Shah <[email protected]>
remoteproc: core: Full attach detach during recovery

Jerome Brunet <[email protected]>
clk: sunxi-ng: fix ccu probe clock unregister on error

Marek Szyprowski <[email protected]>
mmc: dw_mmc: stop and complete DMA also in STATE_DATA_BUSY state

Ben Dooks <[email protected]>
mmc: cqhci: fix to missed endian conversions

Pengpeng Hou <[email protected]>
gpio: sifive: add missing MODULE_DEVICE_TABLE()

Zhiwei Zhang <[email protected]>
RDMA/rxe: Check PDs for memory window binds

Pengpeng Hou <[email protected]>
iio: adc: max1241: add missing MODULE_DEVICE_TABLE()

Yun Zhou <[email protected]>

    block: reject block device inodes with i_rdev == 0 in lookup_bdev()

William Hansen-Baird <[email protected]>
wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding

William Hansen-Baird <[email protected]>
wifi: rtlwifi: rtl8723be: Remove unnecessary irq save/restore in hw_init()

Ben Dooks <[email protected]>
dmaengine: dw-axi-dmac: fix __le32 on set of CH_CTL_H_LLI_VALID

Yun Zhou <[email protected]>
net: mvneta_bm: add suspend/resume support to prevent crash after resume

Pengpeng Hou <[email protected]>
dmaengine: pl330: remove debugfs file on teardown

Charles Keepax <[email protected]>
soundwire: dmi-quirks: Disable ghost Realtek on Asus Expertbook

Jiayuan Chen <[email protected]>
netfilter: ebtables: bound num_counters like nentries in do_replace()

Yousef Alhouseen <[email protected]>
net: usb: rtl8150: handle link status read failures

Eric Huang <[email protected]>
drm/amdkfd: add sanity check in svm_range_is_valid

Yang Wang <[email protected]>
drm/amd/pm: Validate legacy hwmgr PP table offsets

Yang Wang <[email protected]>
drm/amd/pm: Validate Tonga PPTable subtable bounds

Xiang Liu <[email protected]>
drm/amd/pm: Guard VBIOS AC timing table walk

Yang Wang <[email protected]>
drm/amd/pm: Validate Tonga PowerPlay state array bounds

Yang Wang <[email protected]>
drm/amd/pm: Use uploaded size for legacy custom PPTable

Yang Wang <[email protected]>
drm/amd/pm: Validate pp_table header before reading size

Yang Wang <[email protected]>
drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds

Matthew Jacob <[email protected]>
drm/amdgpu: Support some Barco AMD based graphics adapters

Lijo Lazar <[email protected]>
drm/amd/pm: validate vega10 profile mode inputs

Lijo Lazar <[email protected]>
drm/amdgpu: Validate ATIF buffer length before use

Lijo Lazar <[email protected]>
drm/amdgpu: Add checks to vbios fetch through ATRM

Abhijeeth Babu <[email protected]>
i2c: acpi: Force ELAN1300 touchpads to 100 kHz

Zide Chen <[email protected]>
perf/x86/intel/uncore: Fix PCI PMU cleanup on setup failure

Zizhi Wo <[email protected]>
fat: reject name longer than NAME_MAX in msdos_format_name()

Dapeng Mi <[email protected]>
perf/x86/intel: Fallback to sw branch type decoding if no hw decoding

Bryam Vargas <[email protected]>
iio: accel: fxls8962af: clamp the device-reported FIFO sample count

Haoxiang Li <[email protected]>
ASoC: hdac_hdmi: Fix resource cleanup on probe failure

Pengpeng Hou <[email protected]>
ASoC: tlv320aic26: remove keyclick sysfs file

William Theesfeld <[email protected]>
clk: zynq: handle kasprintf() failure in periph_clk registration

Kemeng Shi <[email protected]>
irqdomain: Plug leak in irq_domain_alloc_irqs_locked() error path

Pengpeng Hou <[email protected]>
media: cec: stm32: return an error when log-address wait times out

Kryštof Černý <[email protected]>
w1: ds2482: add OF device match table

YiPeng Chai <[email protected]>
drm/amdgpu: add bounds check to prevent array overflow

Ruoyu Wang <[email protected]>
drm/radeon: avoid double free in r600 DPM cleanup

Asad Kamal <[email protected]>
drm/amdgpu: Gate debugfs MMIO access on kernel lockdown

Asad Kamal <[email protected]>
drm/amd/pm: Validate OD DPM triples before mutating tables

Jonas Karlman <[email protected]>
drm/rockchip: dw_hdmi: Use resume_early pm ops for system suspend

YuanZhe Liu <[email protected]>
ALSA: line6: Clear prev_fbuf on capture buffer release

Linus Torvalds <[email protected]>
mm: move 'mmap_min_addr' logic from callers into vm_unmapped_area()

Baolin Wang <[email protected]>
mm: vmscan: fix dirty folios throttling on cgroup v1 for MGLRU

Zeng Jingxiang <[email protected]>
mm/vmscan: wake up flushers conditionally to avoid cgroup OOM

Jérémy Jean <[email protected]>
lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state

Christian Brauner <[email protected]>
fork: don't create io threads once PF_POSTCOREDUMP is set

Christian Brauner <[email protected]>
fork: move the coredump and exec checks into create_io_thread()

Christian Brauner <[email protected]>
exec: cancel io_uring requests before de_thread()

André Draszik <[email protected]>
kbuild: link-vmlinux.sh: improve detection of third pass requirement

Markus Theil <[email protected]>
crypto: jitter - fix intermediary handling

SJ Park <[email protected]>
mm/damon/sysfs: put target pids for apply_inputs() failure

SJ Park <[email protected]>
mm/damon/sysfs: put target pids for damon_start() failure

Fuad Tabba <[email protected]>
KVM: arm64: Transfer the hyp stack pages out of the host stage-2

Namjae Jeon <[email protected]>
ksmbd: wait for negotiation before receiving another PDU

Zizhen Liu <[email protected]>
net: skbuff: propagate shared-frag marker in skb_zerocopy()

Tu Dinh <[email protected]>
xen-netback: Zero out sring pointers on unmap

Tu Dinh <[email protected]>
xen-netback: Fix XenBus connection failure cleanup

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

Diffstat:

 .gitignore                                         |     1 -
 Documentation/ABI/testing/sysfs-bus-pci            |    14 +-
 Documentation/ABI/testing/sysfs-class-power-mp2629 |     2 +-
 Documentation/PCI/pci-error-recovery.rst           |     7 +
 Documentation/admin-guide/LSM/LoadPin.rst          |    10 +-
 Documentation/admin-guide/cgroup-v1/memory.rst     |    46 +-
 Documentation/admin-guide/cgroup-v2.rst            |    10 +-
 Documentation/admin-guide/kernel-parameters.txt    |     5 +
 Documentation/block/blk-mq.rst                     |     2 +-
 .../bindings/clock/mediatek,apmixedsys.yaml        |     2 +-
 .../bindings/clock/mediatek,topckgen.yaml          |     2 +-
 .../devicetree/bindings/display/msm/hdmi.yaml      |     4 +-
 .../devicetree/bindings/dma/snps,dw-axi-dmac.yaml  |    36 +-
 .../devicetree/bindings/dma/stericsson,dma40.yaml  |    62 +-
 .../bindings/iio/light/liteon,ltr501.yaml          |     3 +-
 .../media/allwinner,sun4i-a10-video-engine.yaml    |    21 +-
 .../power/supply/stericsson,ab8500-charger.yaml    |    76 +-
 .../devicetree/bindings/vendor-prefixes.yaml       |   120 +-
 Documentation/filesystems/fsverity.rst             |     3 +
 Documentation/filesystems/overlayfs.rst            |     3 +-
 Documentation/networking/ip-sysctl.rst             |     5 +-
 Documentation/trace/histogram.rst                  |   231 +-
 Documentation/virt/hyperv/vmbus.rst                |    17 +-
 Documentation/virt/kvm/x86/msr.rst                 |     1 -
 MAINTAINERS                                        |     2 +-
 Makefile                                           |     4 +-
 arch/alpha/include/asm/mmu_context.h               |    35 +-
 arch/alpha/include/asm/sfp-machine.h               |     4 +
 arch/alpha/include/asm/switch_to.h                 |     1 -
 arch/alpha/include/asm/tlbflush.h                  |     3 +-
 arch/alpha/kernel/rtc.c                            |    37 +-
 arch/alpha/kernel/smp.c                            |    67 +-
 arch/alpha/mm/fault.c                              |     4 +-
 arch/alpha/mm/tlbflush.c                           |     2 +-
 arch/arc/Makefile                                  |     9 +-
 arch/arc/lib/Makefile                              |     8 +
 arch/arm/boot/dts/armada-385-clearfog-gtr.dtsi     |     2 +-
 arch/arm/boot/dts/armada-388-helios4.dts           |    23 +-
 arch/arm/boot/dts/armada-395-gp.dts                |     1 -
 arch/arm/boot/dts/gemini.dtsi                      |     2 +-
 arch/arm/boot/dts/imx7-tqma7.dtsi                  |    40 +-
 arch/arm/boot/dts/ste-ab8505.dtsi                  |    17 +-
 arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts          |     2 +-
 arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi       |     2 +
 arch/arm/include/asm/smp.h                         |     2 +-
 arch/arm/kernel/head-nommu.S                       |     1 +
 arch/arm/kernel/head.S                             |     1 +
 arch/arm/kernel/smp.c                              |    15 +-
 arch/arm/mach-mvebu/Kconfig                        |     4 +-
 arch/arm/mach-versatile/platsmp-vexpress.c         |     4 +-
 arch/arm/mach-versatile/v2m.c                      |     4 +-
 arch/arm/mm/alignment.c                            |    61 +-
 arch/arm/mm/dma-mapping.c                          |     5 +-
 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/mediatek/mt7986a.dtsi          |     1 +
 arch/arm64/boot/dts/mediatek/mt8173.dtsi           |     2 +-
 .../boot/dts/qcom/sdm845-xiaomi-beryllium.dts      |     6 +
 arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts |     6 +
 arch/arm64/boot/dts/qcom/sm8150.dtsi               |     2 +-
 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      |    39 +
 arch/arm64/boot/dts/rockchip/rk3566.dtsi           |   118 +-
 arch/arm64/boot/dts/rockchip/rk3568.dtsi           |   117 +-
 .../dts/rockchip/{rk356x.dtsi => rk356x-base.dtsi} |   119 +-
 arch/arm64/boot/dts/ti/k3-am625-sk.dts             |     4 +-
 arch/arm64/boot/dts/ti/k3-am62a7-sk.dts            |     2 +-
 arch/arm64/crypto/poly1305-armv8.pl                |     2 +-
 arch/arm64/include/asm/kvm_host.h                  |     7 +-
 arch/arm64/include/asm/percpu.h                    |    17 +-
 arch/arm64/include/asm/sdei.h                      |     3 +-
 arch/arm64/include/asm/suspend.h                   |     2 +-
 arch/arm64/kernel/efi.c                            |     8 +-
 arch/arm64/kernel/entry-common.c                   |    40 +-
 arch/arm64/kernel/machine_kexec.c                  |     2 +-
 arch/arm64/kernel/machine_kexec_file.c             |     2 +
 arch/arm64/kernel/pi/Makefile                      |     1 +
 arch/arm64/kernel/sdei.c                           |    61 +-
 arch/arm64/kernel/topology.c                       |    13 +-
 arch/arm64/kvm/arm.c                               |    48 +-
 arch/arm64/kvm/hyp/include/nvhe/fixed_config.h     |     3 +-
 arch/arm64/kvm/hyp/nvhe/setup.c                    |    10 +
 arch/arm64/kvm/hyp/nvhe/sys_regs.c                 |     9 +
 arch/arm64/kvm/vgic/vgic-its.c                     |    37 +-
 arch/arm64/kvm/vgic/vgic-mmio-v3.c                 |    33 +-
 arch/arm64/mm/mmap.c                               |     4 +-
 arch/arm64/mm/mmu.c                                |    14 +
 arch/arm64/mm/proc.S                               |     8 +
 arch/loongarch/include/asm/numa.h                  |     2 +-
 arch/loongarch/kernel/irq.c                        |     3 +-
 arch/loongarch/pci/pci.c                           |     3 +-
 arch/m68k/apollo/dn_ints.c                         |     6 +
 arch/microblaze/Makefile                           |     6 +-
 arch/microblaze/include/asm/entry.h                |    13 +
 arch/microblaze/include/asm/processor.h            |     2 +-
 arch/microblaze/include/asm/uaccess.h              |     3 +-
 arch/microblaze/kernel/cpu/cpuinfo.c               |     1 +
 arch/microblaze/kernel/entry.S                     |   348 +-
 arch/microblaze/kernel/hw_exception_handler.S      |     5 +
 arch/microblaze/kernel/process.c                   |     5 +-
 arch/microblaze/kernel/ptrace.c                    |     3 +
 arch/microblaze/kernel/signal.c                    |    26 +
 arch/mips/Makefile                                 |    22 +-
 arch/mips/cavium-octeon/dma-octeon.c               |     2 +-
 arch/mips/crypto/Kconfig                           |     6 +-
 arch/mips/mm/cex-gen.S                             |    16 +
 arch/mips/mm/tlb-r4k.c                             |    21 +-
 arch/mips/pci/ops-mace.c                           |    26 +-
 arch/mips/pci/pci-ip32.c                           |     9 +-
 arch/mips/sgi-ip32/ip32-irq.c                      |    45 +-
 arch/nios2/kernel/nios2_ksyms.c                    |     1 +
 arch/openrisc/kernel/or32_ksyms.c                  |     1 +
 arch/powerpc/include/asm/plpks.h                   |    12 +
 arch/powerpc/kvm/book3s_hv.c                       |    76 +-
 arch/powerpc/kvm/book3s_paired_singles.c           |     7 +-
 arch/powerpc/net/bpf_jit.h                         |     7 +
 arch/powerpc/net/bpf_jit_comp.c                    |    34 +-
 arch/powerpc/perf/hv-24x7.c                        |    10 -
 arch/powerpc/perf/imc-pmu.c                        |    23 +-
 arch/powerpc/platforms/pseries/plpks.c             |    31 +-
 arch/riscv/include/asm/pgtable.h                   |     9 +-
 arch/riscv/net/bpf_jit_comp32.c                    |    47 +-
 arch/s390/crypto/aes_s390.c                        |    10 +-
 arch/s390/kernel/perf_cpum_cf.c                    |     3 +
 arch/s390/kernel/process.c                         |    12 +-
 arch/s390/kernel/signal.c                          |     6 +-
 arch/s390/kernel/uprobes.c                         |     2 +-
 arch/s390/lib/probes.c                             |     2 +-
 arch/s390/mm/hugetlbpage.c                         |     2 +-
 arch/s390/mm/mmap.c                                |     2 +-
 arch/s390/pci/pci_irq.c                            |    26 +-
 arch/sh/Kconfig                                    |     2 +
 arch/sh/boards/board-sh7785lcr.c                   |     2 +-
 arch/sh/configs/migor_defconfig                    |     2 +-
 arch/sh/configs/sdk7786_defconfig                  |     2 +-
 arch/sh/configs/shx3_defconfig                     |     2 +-
 arch/sh/include/asm/cmpxchg.h                      |     3 +
 arch/sh/include/asm/uaccess_32.h                   |     8 +-
 arch/x86/events/core.c                             |    19 +-
 arch/x86/events/intel/lbr.c                        |     2 +-
 arch/x86/events/intel/uncore.c                     |     5 +-
 arch/x86/include/asm/barrier.h                     |     2 +-
 arch/x86/include/asm/cpufeatures.h                 |     5 +
 arch/x86/include/asm/kvm-x86-ops.h                 |     1 +
 arch/x86/include/asm/kvm_host.h                    |     7 +
 arch/x86/include/asm/svm.h                         |     4 +-
 arch/x86/include/asm/xor_avx.h                     |     4 +
 arch/x86/include/uapi/asm/kvm_para.h               |     1 -
 arch/x86/kernel/acpi/cppc.c                        |    15 +
 arch/x86/kernel/cpu/amd.c                          |    18 +
 arch/x86/kernel/cpu/mce/core.c                     |    23 +-
 arch/x86/kernel/cpu/microcode/intel.c              |    55 +-
 arch/x86/kernel/kvm.c                              |    43 +-
 arch/x86/kernel/nmi.c                              |     8 +
 arch/x86/kernel/process.c                          |     1 +
 arch/x86/kernel/x86_init.c                         |     2 +-
 arch/x86/kvm/hyperv.c                              |     2 +
 arch/x86/kvm/mmu/mmu.c                             |    13 +
 arch/x86/kvm/mmu/paging_tmpl.h                     |    24 +-
 arch/x86/kvm/svm/nested.c                          |    34 +-
 arch/x86/kvm/svm/svm.c                             |    37 +-
 arch/x86/kvm/svm/svm.h                             |     3 +
 arch/x86/kvm/vmx/nested.c                          |    69 +-
 arch/x86/kvm/vmx/vmx.c                             |     6 +-
 arch/x86/kvm/x86.c                                 |   113 +-
 arch/x86/kvm/xen.c                                 |    10 +
 arch/x86/mm/mem_encrypt_identity.c                 |     2 +-
 arch/x86/platform/pvh/enlighten.c                  |     2 +
 arch/x86/power/hibernate.c                         |    51 +-
 block/Kconfig                                      |     5 -
 block/Makefile                                     |     1 -
 block/bdev.c                                       |    22 +
 block/blk-cgroup.c                                 |     6 +-
 block/blk-crypto-fallback.c                        |     6 +
 block/blk-flush.c                                  |     8 +-
 block/blk-iocost.c                                 |    11 +-
 block/blk-map.c                                    |     1 +
 block/blk-merge.c                                  |     8 +-
 block/blk-mq-rdma.c                                |    44 -
 block/blk-mq.c                                     |    15 +-
 block/blk-rq-qos.c                                 |    18 +-
 block/blk-throttle.c                               |     3 +-
 block/blk-timeout.c                                |     3 +-
 block/blk.h                                        |    22 +
 block/bsg.c                                        |     5 +-
 block/fops.c                                       |    10 +-
 block/genhd.c                                      |     6 +
 block/ioctl.c                                      |     4 +-
 block/partitions/mac.c                             |     4 +-
 crypto/algif_skcipher.c                            |     9 +-
 crypto/asymmetric_keys/verify_pefile.c             |     5 +
 crypto/ecc.c                                       |    33 +-
 crypto/jitterentropy-kcapi.c                       |     9 +-
 crypto/tcrypt.c                                    |   202 +-
 crypto/testmgr.c                                   |    10 +-
 crypto/testmgr.h                                   |   339 +-
 drivers/accessibility/speakup/selection.c          |     6 +
 drivers/acpi/acpi_extlog.c                         |     9 +
 drivers/acpi/acpi_fpdt.c                           |    55 +-
 drivers/acpi/acpi_pcc.c                            |    68 +-
 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                           |    16 +-
 drivers/acpi/button.c                              |    23 +
 drivers/acpi/cppc_acpi.c                           |    32 +-
 drivers/acpi/device_pm.c                           |    77 +-
 drivers/acpi/glue.c                                |    10 +-
 drivers/acpi/pci_link.c                            |     1 +
 drivers/acpi/pci_root.c                            |    22 +-
 drivers/acpi/pfr_update.c                          |     2 +-
 drivers/acpi/scan.c                                |    40 +-
 drivers/acpi/tables.c                              |     3 +
 drivers/ata/Kconfig                                |     7 -
 drivers/ata/Makefile                               |     1 -
 drivers/ata/ahci_st.c                              |    78 +-
 drivers/ata/ata_generic.c                          |     6 +-
 drivers/ata/libahci.c                              |    45 +-
 drivers/ata/libahci_platform.c                     |    25 +-
 drivers/ata/libata-core.c                          |    89 +-
 drivers/ata/libata-pmp.c                           |    14 +
 drivers/ata/libata-scsi.c                          |    32 +-
 drivers/ata/libata-sff.c                           |    15 +-
 drivers/ata/pata_cs5520.c                          |     2 +-
 drivers/ata/sata_dwc_460ex.c                       |     5 +-
 drivers/ata/sata_fsl.c                             |    26 +-
 drivers/ata/sata_inic162x.c                        |   904 -
 drivers/ata/sata_qstor.c                           |     8 +-
 drivers/base/attribute_container.c                 |     7 +-
 drivers/base/bus.c                                 |     4 +-
 drivers/base/core.c                                |    13 +-
 drivers/base/dd.c                                  |     8 +-
 drivers/base/node.c                                |    17 +-
 drivers/base/power/wakeirq.c                       |    75 +-
 drivers/block/amiflop.c                            |    69 +-
 drivers/block/aoe/aoenet.c                         |    14 +-
 drivers/block/drbd/drbd_receiver.c                 |     2 +
 drivers/block/floppy.c                             |    18 +-
 drivers/block/loop.c                               |     6 +-
 drivers/block/rnbd/rnbd-srv-sysfs.c                |    28 +-
 drivers/block/rnbd/rnbd-srv.c                      |    50 +-
 drivers/block/rnbd/rnbd-srv.h                      |     2 +-
 drivers/block/swim.c                               |   261 +-
 drivers/block/swim3.c                              |     8 +-
 drivers/block/swim_asm.S                           |   136 +-
 drivers/block/ublk_drv.c                           |     6 +
 drivers/block/virtio_blk.c                         |     2 +-
 drivers/block/xen-blkback/blkback.c                |     7 +
 drivers/block/xen-blkfront.c                       |    17 +-
 drivers/bluetooth/btintel.c                        |     6 +-
 drivers/bluetooth/btrsi.c                          |     3 +-
 drivers/bluetooth/btrtl.c                          |    11 +
 drivers/bluetooth/btrtl.h                          |    21 +
 drivers/bluetooth/btusb.c                          |    51 +-
 drivers/bluetooth/hci_bcsp.c                       |     5 +-
 drivers/bluetooth/hci_nokia.c                      |    20 +
 drivers/bluetooth/virtio_bt.c                      |     4 +-
 drivers/bus/arm-cci.c                              |     6 +-
 drivers/char/hw_random/amd-rng.c                   |     2 +-
 drivers/char/hw_random/ba431-rng.c                 |     2 +-
 drivers/char/hw_random/cctrng.c                    |     7 +-
 drivers/char/hw_random/core.c                      |     1 +
 drivers/char/hw_random/intel-rng.c                 |     5 +-
 drivers/char/hw_random/virtio-rng.c                |    13 +-

1,922 lines not shown · raw message

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

author maintainer
#1 lore raw

PATCH 1/2857 xen-netback: Fix XenBus connection failure cleanup

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Tu Dinh <[email protected]>

commit dc6d814562b65813556933dbda1015cef61dabf8 upstream.

xenvif_get_stats and xenvif_get_ethtool_stats capture vif->num_queues under rcu_read_lock. We need to unpublish vif->num_queues before synchronize_net to ensure that readers that come afterwards will not read a non-zero vif->num_queues and attempt to access invalid queues.

This is the same cleanup algorithm as used in backend_disconnect and added in commit b17075d5c198 ("xen-netback: fix race condition on XenBus disconnect").

This is XSA-531

Fixes 5fb756f1bbec ("xen-netback: Fix UAF when reading statistics data")
---
 drivers/net/xen-netback/xenbus.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/net/xen-netback/xenbus.c +5 -3
@@ -731,6 +731,7 @@ static void connect(struct backend_info
 	unsigned int queue_index;
 	unsigned int requested_num_queues;
 	struct xenvif_queue *queue;
+	unsigned int num_queues;
 
 	/* Check whether the frontend requested multiple queues
 	 * and read the number requested.
@@ -837,14 +838,15 @@ static void connect(struct backend_info
 	return;
 
 err:
-	if (be->vif->num_queues > 0)
+	num_queues = be->vif->num_queues;
+	if (num_queues > 0)
 		xenvif_disconnect_data(be->vif); /* Clean up existing queues */
+	be->vif->num_queues = 0;
 	synchronize_net();
-	for (queue_index = 0; queue_index < be->vif->num_queues; ++queue_index)
+	for (queue_index = 0; queue_index < num_queues; ++queue_index)
 		xenvif_deinit_queue(&be->vif->queues[queue_index]);
 	vfree(be->vif->queues);
 	be->vif->queues = NULL;
-	be->vif->num_queues = 0;
 	xenvif_disconnect_ctrl(be->vif);
 	return;
 }
author maintainer
#2 lore raw

PATCH 2/2857 xen-netback: Zero out sring pointers on unmap

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Tu Dinh <[email protected]>

commit f96f16592a32430a0582309d73a873b6d3ee2bdb upstream.

If xenvif_map_frontend_data_rings() fails when a ring is already mapped, it unmaps them via xenvif_unmap_frontend_data_rings() which keeps the ring pointers unchanged. xenvif_connect_data()'s cleanup path calls xenvif_disconnect_queue() which in turn calls xenvif_unmap_frontend_data_rings() again, which will attempt to unmap the pointers a second time.

Zero out the ring pointers after they are unmapped to avoid this issue.

This is XSA-532

Fixes 2ac061ce97f4 ("xen/netback: cleanup init and deinit code")
---
 drivers/net/xen-netback/netback.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/net/xen-netback/netback.c +7 -2
@@ -1534,12 +1534,17 @@ static inline bool tx_dealloc_work_todo(
 
 void xenvif_unmap_frontend_data_rings(struct xenvif_queue *queue)
 {
-	if (queue->tx.sring)
+	if (queue->tx.sring) {
 		xenbus_unmap_ring_vfree(xenvif_to_xenbus_device(queue->vif),
 					queue->tx.sring);
-	if (queue->rx.sring)
+		queue->tx.sring = NULL;
+	}
+
+	if (queue->rx.sring) {
 		xenbus_unmap_ring_vfree(xenvif_to_xenbus_device(queue->vif),
 					queue->rx.sring);
+		queue->rx.sring = NULL;
+	}
 }
 
 int xenvif_map_frontend_data_rings(struct xenvif_queue *queue,
#3 lore raw
In reply to Greg Kroah-Hartman
Quoted 5 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 6.1.193 release. There are 2857 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.

Quoted 8 lines

Responses should be made by Fri, 20 Nov 2026 14:55:40 +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/v6.x/stable-review/patch-6.1.193-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-6.1.y
and the diffstat can be found below.

Same build failure on amd64 as reported for 5.{10,15}.y

Signature · 1 line
Brett Sheffield (he/him)
#4 lore raw
Quoted 9 lines · Brett A C Sheffield
Quoted 8 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 6.1.193 release. There are 2857 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:40 +0000. Anything received after that time might be too late.

Quoted 7 lines
Quoted 5 lines

The whole patch series can be found in one patch at:

	https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.193-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-6.1.y
and the diffstat can be found below.

Same build failure on amd64 as reported for 5.{10,15}.y

For what it's worth, I'm only getting that build failure on 5.10.275-rc1, not 5.15.226-rc1 or 6.1.193-rc1.

Signature · 1 line
-Barry K. Nathan  <[email protected]>
#5 lore raw
In reply to Greg Kroah-Hartman

HI!

Quoted 4 lines

This is the start of the stable review cycle for the 6.1.193 release. There are 2857 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.

We get build failures here:

https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/pipelines/3084767168
https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/jobs/18149480104

mm/mremap.c: In function 'move_huge_pud':
1175
15:43:14
mm/mremap.c:395:19: error: implicit declaration of function '__pud_trans_huge_lock'; did you mean 'pud_trans_huge_lock'? [-Werror=implicit-function-declaration] 1176
15:43:14
395 | old_ptl = __pud_trans_huge_lock(old_pud, vma);
1177
15:43:14

      |                   ^~~~~~~~~~~~~~~~~~~~~

1178
15:43:14
| pud_trans_huge_lock
1179
15:43:14
mm/mremap.c:395:17: warning: assignment to 'spinlock_t *' {aka 'struct spinlock *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 1180
15:43:14
395 | old_ptl = __pud_trans_huge_lock(old_pud, vma);
1181
15:43:14
| ^
1182
15:43:15
CC fs/ext4/migrate.o
1183
15:43:15
cc1: some warnings being treated as errors

Best regards,
Pavel

#6 lore raw
In reply to Greg Kroah-Hartman
Quoted 9 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 6.1.193 release. There are 2857 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:40 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 8 lines
	https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.193-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-6.1.y
and the diffstat can be found below.

thanks,

greg k-h

perf fails to build the same way the 5.15 kernel does:

/local/users/fainelli/buildroot/output/arm/host/bin/arm-linux-ld: warning: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/arch/perf-in.o: requires executable stack (because the .note.GNU-stack section is executable)
LD
/local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/libbpf/staticobjs/libbpf-in.o
LINK
/local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/libbpf/libbpf.a
LINK
/local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/perf
/local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/perf-in.o: in function `test_truncated_branch_stack':
/local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/tests/sample-parsing.c:397: undefined reference to `__evsel__parse_sample' /local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/tests/sample-parsing.c:399: undefined reference to `perf_sample__exit' /local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/tests/sample-parsing.c:400: undefined reference to `evsel__put' /local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/perf-in.o: in function `test_truncated_swapped_raw':
/local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/tests/sample-parsing.c:445: undefined reference to `__evsel__parse_sample' /local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/tests/sample-parsing.c:447: undefined reference to `perf_sample__exit' /local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/tests/sample-parsing.c:448: undefined reference to `evsel__put'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile.perf:675: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/perf] Error 1
make[3]: *** [Makefile.perf:240: sub-make] Error 2
make[2]: *** [Makefile:70: all] Error 2
make[1]: *** [package/pkg-generic.mk:286: /local/users/fainelli/buildroot/output/arm/build/linux-tools/.stamp_built] Error 2
make: *** [Makefile:29: _all] Error 2
ERROR: Build failed for 6.1-rc on arm with code 2

Signature · 1 line
Florian
Tested-by on the v1 series
#7 lore raw
In reply to Greg Kroah-Hartman

Am 18.11.2026 um 15:17 schrieb Greg Kroah-Hartman:

Quoted 4 lines

This is the start of the stable review cycle for the 6.1.193 release. There are 2857 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.

I'm not seeing any of the build failures that others reported, and I wonder why not?! I'm building with CONFIG_WERROR=y too. Config attached...

Builds, boots and works on my 2-socket Ivy Bridge Xeon E5-2697v2 server. No dmesg oddities or regressions found.

Beste Grüße,
Peter Schneider

Signature · 8 lines
Climb the mountain not to plant your flag, but to embrace the challenge,
enjoy the air and behold the view. Climb it so you can see the world,
not so the world can see you.                    -- David McCullough Jr.

OpenPGP:  0xA3828BD796CCE11A8CADE8866E3A92C92C3FF244
Download: https://www.peters-netzplatz.de/download/pschneider1968_pub.asc
https://keys.mailvelope.com/pks/lookup?op=get&[email protected]
https://keys.mailvelope.com/pks/lookup?op=get&[email protected]
author maintainer
#8 lore raw

PATCH 3/2857 net: skbuff: propagate shared-frag marker in skb_zerocopy()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Zizhen Liu <[email protected]>

commit 79dc34beb1fdb3da79753e51e15c68591a2561fe upstream.

skb_zerocopy() moves frag descriptors from @from into @to and takes a reference on each frag, but it does not copy skb_shinfo(from)->flags into skb_shinfo(to)->flags. A destination skb holding the same page-cache backed frags as the source therefore reports skb_has_shared_frag() as false.

That breaks the invariant relied on by later in-place writers. ESP input checks skb_has_shared_frag() before deciding whether an uncloned nonlinear skb can skip skb_cow_data(); with the marker lost, an skb that skb_zerocopy() built for nfnetlink_queue or for an openvswitch upcall is decrypted in place, letting an unprivileged user write into the page cache of a root-owned read-only file.

Propagate SKBFL_SHARED_FRAG when frag descriptors are copied, as done for the other frag-transfer helpers.

Fixes af2806f8f90a ("net: Export skb_zerocopy() to zerocopy from one skb to another")
Fixes f4c50a4034e6 ("xfrm: esp: avoid in-place decrypt on shared skb frags")
[ sashal: Adjusted context in skb_zerocopy() due to missing from->unreadable propagation. ]
---
 net/core/skbuff.c |    2 ++
 1 file changed, 2 insertions(+)
net/core/skbuff.c +2 -0
@@ -3376,6 +3376,8 @@ skb_zerocopy(struct sk_buff *to, struct
 	}
 	skb_shinfo(to)->nr_frags = j;
 
+	skb_shinfo(to)->flags |= skb_shinfo(from)->flags & SKBFL_SHARED_FRAG;
+
 	return 0;
 }
 EXPORT_SYMBOL_GPL(skb_zerocopy);
author maintainer
#9 lore raw

PATCH 4/2857 ksmbd: wait for negotiation before receiving another PDU

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Namjae Jeon <[email protected]>

[ Upstream commit 68f410faedaf6ee74d81e574733c50ebcc1bd8ed ]

The receive thread queues a request and can read the next PDU before the negotiation worker finishes. While need_neg is set, the next PDU can cause ksmbd_init_smb_server() to replace conn->ops. A pipelined SMB2 request can therefore make the worker handle an earlier, shorter SMB1 request with SMB2 operations and read beyond its buffer.

An SMB1 multi-protocol negotiate may be followed by an SMB2 NEGOTIATE that changes conn->ops again. Wait for work queued while the connection is new or needs negotiation to complete before reading another PDU. This keeps the operations stable for both stages of negotiation without changing when need_neg is cleared.

Fixes dc8289f91238 ("ksmbd: fix slab-out-of-bounds in init_smb2_rsp_hdr")
---
 fs/smb/server/server.c | 5 +++++
 1 file changed, 5 insertions(+)
fs/smb/server/server.c +5 -0
index 08fe608ac75a2..85edc24ca9cdc 100644
@@ -304,6 +304,7 @@ static void handle_ksmbd_work(struct work_struct *wk)
 static int queue_ksmbd_work(struct ksmbd_conn *conn)
 {
 	struct ksmbd_work *work;
+	bool wait_for_neg = ksmbd_conn_new(conn) || ksmbd_conn_need_negotiate(conn);
 	int err;
 
 	err = ksmbd_init_smb_server(conn);
@@ -331,6 +332,10 @@ static int queue_ksmbd_work(struct ksmbd_conn *conn)
 	conn->last_active = jiffies;
 	INIT_WORK(&work->work, handle_ksmbd_work);
 	ksmbd_queue_work(work);
+	/* Negotiation can change conn->ops, finish it before reading another PDU. */
+	if (wait_for_neg)
+		wait_event(conn->req_running_q,
+			   atomic_read(&conn->req_running) == 0);
 	return 0;
 }
 
Signature · 1 line
2.53.0
author maintainer
#10 lore raw

PATCH 5/2857 KVM: arm64: Transfer the hyp stack pages out of the host stage-2

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Fuad Tabba <[email protected]>

[ Upstream commit 3a8c562892b96f35bba1e00d5e455a15963bbb92 ]

fix_host_ownership() walks only the linear-map alias of each memblock region, and the per-CPU hyp stack, mapped in the private VA range for its guard page, has none.

Walk each stack's VA range with the same walker.

[ 38f9e4b905a0 ("arm64: kvm: Introduce nvhe stack size constants") is
not backported because it converts nvhe stack code in eight files to NVHE_STACK_SIZE, and the hyp stack here is one page, so PAGE_SIZE replaces it. ]

---
 arch/arm64/kvm/hyp/nvhe/setup.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm64/kvm/hyp/nvhe/setup.c +10 -0
index e8d4ea2fcfa09..89dbe4cb8394b 100644
@@ -255,6 +255,16 @@ static int finalize_host_mappings(void)
 			return ret;
 	}
 
+	/* The stacks sit in the private VA range, not the linear map. */
+	for (i = 0; i < hyp_nr_cpus; i++) {
+		struct kvm_nvhe_init_params *params = per_cpu_ptr(&kvm_init_params, i);
+		u64 start = params->stack_hyp_va - PAGE_SIZE;
+
+		ret = kvm_pgtable_walk(&pkvm_pgtable, start, PAGE_SIZE, &walker);
+		if (ret)
+			return ret;
+	}
+
 	return 0;
 }
 
Signature · 1 line
2.53.0
author maintainer
#11 lore raw

PATCH 6/2857 mm/damon/sysfs: put target pids for damon_start() failure

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: SJ Park <[email protected]>

damon_sysfs_turn_damon_on() allocates and sets up damon_ctx to start. If it is for virtual address space monitoring, the setup increases the reference counts of the target pids. After the setup, the function invokes damon_start(). If damon_start() fails, it deallocates the damon_ctx object without decreasing the reference counts of target pids. As a result, pids can be leaked.

Fix the leak by putting pids using damon_sysfs_destroy_targets() before deallocating the damon_ctx object.

Fixes a61ea561c871 ("mm/damon/sysfs: link DAMON for virtual address spaces monitoring")
Cc <[email protected]> # 5.18.x
---
 mm/damon/sysfs.c | 1 +
 1 file changed, 1 insertion(+)
mm/damon/sysfs.c +1 -0
index 9a918f8e4c6bf..4b28bb9ba0a24 100644
@@ -2547,6 +2547,7 @@ static int damon_sysfs_turn_damon_on(struct damon_sysfs_kdamond *kdamond)
 		return PTR_ERR(ctx);
 	err = damon_start(&ctx, 1, false);
 	if (err) {
+		damon_sysfs_destroy_targets(ctx);
 		damon_destroy_ctx(ctx);
 		return err;
 	}
Signature · 1 line
2.53.0
author maintainer
#12 lore raw

PATCH 7/2857 mm/damon/sysfs: put target pids for apply_inputs() failure

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: SJ Park <[email protected]>

damon_sysfs_build_ctx() invokes damon_sysfs_apply_inputs() for setting damon_ctx object with user inputs. If it is configured for virtual address spaces monitoring, the setup also increases reference counts of monitoring target pids. If the setup is failed, damon_sysfs_build_ctx() deallocates the damon_ctx object without decreasing the reference counts of the pids. If the failure happened after increasing reference counts of pids, the pids can be leaked.

Fix the leaks by decreasing the pid reference counts before deallocating the damon_ctx object.

The issue was discovered [1] by Sashiko.

[1] https://lore.kernel.org/[email protected]

Fixes 74bd8b7d2f8e ("mm/damon/sysfs: move targets setup code to a separated function")
Cc <[email protected]> # 5.19.x
---
 mm/damon/sysfs.c | 1 +
 1 file changed, 1 insertion(+)
mm/damon/sysfs.c +1 -0
index 4b28bb9ba0a24..b9b80d58e5bd6 100644
@@ -2515,6 +2515,7 @@ static struct damon_ctx *damon_sysfs_build_ctx(
 
 	err = damon_sysfs_apply_inputs(ctx, sys_ctx);
 	if (err) {
+		damon_sysfs_destroy_targets(ctx);
 		damon_destroy_ctx(ctx);
 		return ERR_PTR(err);
 	}
Signature · 1 line
2.53.0
author maintainer
#13 lore raw

PATCH 8/2857 crypto: jitter - fix intermediary handling

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Markus Theil <[email protected]>

[ Upstream commit 735b72568c73875269a6b73ab9543a70f6ac8a9f ]

The intermediary value was included in the wrong hash state. While there, adapt to user-space by setting the timestamp to 0 if stuck and inserting the values nevertheless.

---
 crypto/jitterentropy-kcapi.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
crypto/jitterentropy-kcapi.c +5 -4
index 74d5c8da0e8ab..da298ad9b2731 100644
@@ -134,7 +134,7 @@ int jent_hash_time(void *hash_state, __u64 time, u8 *addtl,
 	 * Inject the data from the previous loop into the pool. This data is
 	 * not considered to contain any entropy, but it stirs the pool a bit.
 	 */
-	ret = crypto_shash_update(desc, intermediary, sizeof(intermediary));
+	ret = crypto_shash_update(hash_state_desc, intermediary, sizeof(intermediary));
 	if (ret)
 		goto err;
 
@@ -147,11 +147,12 @@ int jent_hash_time(void *hash_state, __u64 time, u8 *addtl,
 	 * conditioning operation to have an identical amount of input data
 	 * according to section 3.1.5.
 	 */
-	if (!stuck) {
-		ret = crypto_shash_update(hash_state_desc, (u8 *)&time,
-					  sizeof(__u64));
+	if (stuck) {
+		time = 0;
 	}
 
+	ret = crypto_shash_update(hash_state_desc, (u8 *)&time, sizeof(__u64));
+
 err:
 	shash_desc_zero(desc);
 	memzero_explicit(intermediary, sizeof(intermediary));
Signature · 1 line
2.53.0
author maintainer
#14 lore raw

PATCH 9/2857 kbuild: link-vmlinux.sh: improve detection of third pass requirement

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: André Draszik <[email protected]>

commit 14b8b4bf2d7bd5d58c17adbeed0edfda1dfc1a7f upstream.

It can happen that symbol sizes within .tmp_vmlinux1.kallsyms.o and .tmp_vmlinux2.kallsyms.o differ, without affecting file size on disk because of section alignment and/or padding emitted by the assembler.

link-vmlinux.sh doesn't detect this case currently and keeps using .tmp_vmlinux2.kallsyms.o to link the final vmlinux. Due to the different symbol sizes, other symbols are shifted within the final image compared to .tmp_vmlinux2, and the final comparison of System.map against "${kallsyms_sysmap}" fails with the message:

Inconsistent kallsyms data
Try "make KALLSYMS_EXTRA_PASS=1" as a workaround

This can happen in particular if the linker emits additional symbols that might have different names between our (re-)linking steps, e.g. because those names depend on the virtual address of the symbol. Linker stubs for ARM errata work-arounds are one such case.

These changed symbol names can cause the output of the token compression of kallsyms.c to change due to the changed symbol substring count, which in turn can change the size of the kallsyms_names symbol itself, causing the potential shift of subsequent symbol addresses in .tmp_vmlinux2.kallsyms.o and therefore the final image.

Update link-vmlinux.sh to not rely on file size of .tmp_vmlinux?.kallsyms.o alone but to also consider symbol offsets within to resolve this, and do a third pass if required.

[AD: kallsymso_prev is already tracked by kallsyms_step() here, so only
add kallsymso_changed() and use it]

---
 scripts/link-vmlinux.sh | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
scripts/link-vmlinux.sh +18 -1
index 019560548ac98..f16776861bf3b 100755
@@ -144,6 +144,18 @@ gen_btf()
 	printf "${et_rel}" | dd of=${2} conv=notrunc bs=1 seek=16 status=none
 }
 
+# Check if kallsymso_prev and kallsymso differ
+# If symbol sizes within ${kallsymso} change, any symbols within vmlinux are
+# likely to shift, invalidating ${kallsymso}.
+# Since file size can remain unchanged even if symbol sizes change, compare the
+# actual symbols instead of relying on file size only.
+kallsymso_changed()
+{
+	${NM} -n "${kallsymso_prev}" > "${kallsymso_prev}.sym"
+	${NM} -n "${kallsymso}" > "${kallsymso}.sym"
+	! cmp -s "${kallsymso_prev}.sym" "${kallsymso}.sym"
+}
+
 # Create ${2} .S file with all symbols from the ${1} object file
 kallsyms()
 {
@@ -269,7 +281,12 @@ if is_enabled CONFIG_KALLSYMS; then
 	size1=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" ${kallsymso_prev})
 	size2=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" ${kallsymso})
 
-	if [ $size1 -ne $size2 ] || [ -n "${KALLSYMS_EXTRA_PASS}" ]; then
+	# Due to alignment, file size of the kallsymso object file might remain
+	# unchanged even if individual symbols within change size. Changed
+	# symbol sizes can still shift other symbols, though. Therefore, don't
+	# rely on file size alone.
+	if [ $size1 -ne $size2 ] || kallsymso_changed || \
+			[ -n "${KALLSYMS_EXTRA_PASS}" ]; then
 		kallsyms_step 3
 	fi
 fi
Signature · 1 line
2.53.0
author maintainer
#15 lore raw

PATCH 10/2857 exec: cancel io_uring requests before de_thread()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Christian Brauner <[email protected]>

[ Upstream commit b42c85c20d84ff3e4f0f027d6596c3b3b4a20657 ]

begin_new_exec() cancels the exec'ing thread's io_uring requests after de_thread() made it the only thread in the thread-group. Now io_uring_task_cancel() runs task work after. If it runs a create_worker_cb() item then a io-wq queued on the thread before the exec creates a new io-wq worker thread.

Said thread joins the thread-group which de_thread() just took down. The io-iwq sticks around until it notices that its workqueue is dying. But code after de_thread() relies on being single-threaded.

Move io_uring_task_cancel() before de_thread() but behind the point of no return. Any worker created during task work run from io_uring_task_cancel() is just a sibling thread that de_thread() will take down and reap.

Once io_uring_task_cancel() returned the thread has neither a task context nor a workqueue left so nothing can add a thread behind de_thread()'s back anymore.

Fixes 3bfe6106693b ("io-wq: fork worker threads from original task")
[ sashal: Adjusted context around de_thread() to accommodate existing POSIX timer cleanup. ]
---
 fs/exec.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
fs/exec.c +7 -5
index 7391ec00a1cc1..05356a5122f08 100644
@@ -1261,6 +1261,13 @@ int begin_new_exec(struct linux_binprm * bprm)
 	 */
 	bprm->point_of_no_return = true;
 
+	/*
+	 * Cancel any io_uring activity across execve. This runs task work
+	 * that may still create an io-wq worker, so do it while de_thread()
+	 * can still zap it.
+	 */
+	io_uring_task_cancel();
+
 	/*
 	 * Make this the only thread in the thread group.
 	 */
@@ -1283,11 +1290,6 @@ int begin_new_exec(struct linux_binprm * bprm)
 	flush_itimer_signals();
 #endif
 
-	/*
-	 * Cancel any io_uring activity across execve
-	 */
-	io_uring_task_cancel();
-
 	/* Ensure the files table is not shared. */
 	retval = unshare_files();
 	if (retval)
Signature · 1 line
2.53.0
author maintainer
#16 lore raw

PATCH 11/2857 fork: move the coredump and exec checks into create_io_thread()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Christian Brauner <[email protected]>

[ Upstream commit e760200370e4de054b6b5f568a7faa911e2956bb ]

Only a PF_USER_WORKER thread returns from get_signal() after a fatal signal and can go on to create a thread. get_signal() sets PF_SIGNALED before it dumps core and before it lets a PF_USER_WORKER thread return. That flags sticks.

The exec'ing thread itself is never signaled. But it doesn't need the check anyway as we moved cancellation of io_uring requests before de_thread(). create_io_thread() is the only way a signaled thread creates another one. vhost_task_create() is reached from ioctls alone.

io_should_retry_thread() doesn't retry -EINTR, so io-wq callers give up the same way they did when copy_process() refused.

Stable-dep-of: 1f978881ce6c ("fork: don't create io threads once PF_POSTCOREDUMP is set")

---
 kernel/fork.c | 4 ++++
 1 file changed, 4 insertions(+)
kernel/fork.c +4 -0
index 37c5d6123cf62..21e37a4ecc9de 100644
@@ -2714,6 +2714,10 @@ struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node)
 		.io_thread	= 1,
 	};
 
+	/* A creator past its fatal signal gets no thread. */
+	if (current->flags & PF_SIGNALED)
+		return ERR_PTR(-EINTR);
+
 	return copy_process(NULL, 0, node, &args);
 }
 
Signature · 1 line
2.53.0
author maintainer
#17 lore raw

PATCH 12/2857 fork: dont create io threads once PF_POSTCOREDUMP is set

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Christian Brauner <[email protected]>

[ Upstream commit 1f978881ce6c9ac4f4d4a7b6a6e52339eadcd350 ]

zap_process() skips every thread that already has PF_POSTCOREDUMP set. Such a thread is past synchronize_group_exit(), so a coredump can't catch it anymore. It isn't counted in core_state->threads_remaining and it isn't sent SIGKILL.

do_exit() sets PF_POSTCOREDUMP in synchronize_group_exit() and calls io_uring_files_cancel() right after that. The cancellation runs task work and a create_worker_cb() that io-wq queued before the exit creates a new io-wq worker from there. If another thread started a coredump in the meantime that worker joins a thread-group which is already being dumped. zap_process() never saw it so it was never counted. But when it exits it sees signal->core_state in synchronize_group_exit() and decrements threads_remaining like any other thread.

So the count reaches zero one thread early and the dumper leaves coredump_wait_inactive() while a thread it counted is still running.

The task has no fatal signal pending because zap_process() deliberately didn't send it one, and it never went through get_signal() so it doesn't have PF_SIGNALED either.

Refuse to create an io thread when the creator has PF_POSTCOREDUMP. That costs nothing. io_uring_files_cancel() raises IO_WQ_BIT_EXIT before it runs any task work, so a worker created from there only ever gets to exit again, and io_should_retry_thread() doesn't retry -EINTR.

Clearing PF_POSTCOREDUMP for the new thread in copy_process() was the other option. It makes the worker a thread like any other, but it only helps while the dump hasn't started. A worker born after zap_process() has run is invisible to it whatever its flags say and still decrements threads_remaining on the way out. Refusing to create it covers both, and then no task is ever born with the flag, so there is nothing to clear.

Moving io_uring_files_cancel() ahead of synchronize_group_exit() closes the same window. It runs the cancellation, and whatever that can block on, before the thread announces itself to the dumper. A thread that blocks there never reaches coredump_task_exit() at all, so the dumper ends up waiting for a thread that never parks. Refusing the creation leaves the cancellation where it is. But it's very ugly to run io_uring work even before we did all the generic exit work.

Fixes 92307383082d ("coredump: Don't perform any cleanups before dumping core")
---
 kernel/fork.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/fork.c +2 -2
index 21e37a4ecc9de..8a8d55a9ffa03 100644
@@ -2714,8 +2714,8 @@ struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node)
 		.io_thread	= 1,
 	};
 
-	/* A creator past its fatal signal gets no thread. */
-	if (current->flags & PF_SIGNALED)
+	/* A creator past its fatal signal or its coredump point gets no thread. */
+	if (current->flags & (PF_SIGNALED | PF_POSTCOREDUMP))
 		return ERR_PTR(-EINTR);
 
 	return copy_process(NULL, 0, node, &args);
Signature · 1 line
2.53.0
author maintainer
#18 lore raw

PATCH 13/2857 lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Jérémy Jean <[email protected]>

commit 24f07e8c07a0c0dd275331cbb41c79a78741eef9 upstream.

When poly1305_blocks_neon() resumes from a base 2^26 accumulator and the next update contains an odd number of full 16-byte blocks, it processes one leading block through poly1305_mult() so that the remaining NEON work has an even block count. That requires converting the accumulator to the base 2^64 form used by poly1305_mult(). The final ADC of that conversion stores the carry into d2, but the following accumulation and poly1305_mult() use h2. If the conversion carries across bit 128, the carry is dropped and the emitted tag is wrong.

This was introduced by Cryptogams commit 03dc4adf91c8 ("arm/poly1305-armv*.pl: optimize branches."), which removed the reduction that consumed d2 shortly before Linux imported the code. OpenSSL's copy did not take that change.

The carry is possible because the NEON code stores the accumulator [h0, h1, h2, h3, h4] in a lazily reduced, redundant base 2^26 form: its final carry chain leaves h0, h2, h3 < 2^26, but h1 and h4 may slightly exceed 2^26 - 1. For example, the reachable state

h0 = 4
h1 = 2^26
h2 = 2^26 - 1
h3 = 2^26 - 1
h4 = 2^24 - 1

represents 4 + 2^26*2^26 + (2^26-1)*2^52 + (2^26-1)*2^78 + (2^24-1)*2^104 = 2^128 + 4, despite the bit representing the 2^128 term (bit 24 of h4) not being set; the extra comes from the h1 limb being above the normal base 2^26 range. When this value is converted into the non-redundant base 2^64 form, a carry into the new 2^128 bit (in bit 0 of h2) is necessary to preserve the value.

Given the above bounds, a carry into bit 128 happens exactly when h1 >= 2^26, h2 = h3 = 2^26 - 1, and h4 mod 2^24 = 2^24 - 1.

Store the carry into h2, matching the other base 2^26 to base 2^64 conversions in poly1305_blocks() and poly1305_emit().

This bug causes an incorrect tag to be emitted. However, this is unlikely to happen in practice where Poly1305 is used with a random key, since the random key tends to distribute the accumulator values throughout their valid range. There isn't an obvious way for an attacker without knowledge of the r_key to cause [h0, h1, h2, h3, h4] to land on the precise values where this bug occurs.

[EB: Rewrote the commit message to more clearly describe the bug and
its impact, and simplified explanation about why there's a carry bit.]

Fixes f569ca164751 ("crypto: arm64/poly1305 - incorporate OpenSSL/CRYPTOGAMS NEON implementation")
Assisted-by LLM
---
 arch/arm64/crypto/poly1305-armv8.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/crypto/poly1305-armv8.pl +1 -1
@@ -372,7 +372,7 @@ poly1305_blocks_neon:
 	adc	$h1,$h1,xzr
 	lsr	$h2,x14,#24
 	adds	$h1,$h1,x14,lsl#40
-	adc	$d2,$h2,xzr		// can be partially reduced...
+	adc	$h2,$h2,xzr		// preserve carry into top limb
 
 	ldp	$d0,$d1,[$inp],#16	// load input
 	sub	$len,$len,#16
author maintainer
#19 lore raw

PATCH 14/2857 mm/vmscan: wake up flushers conditionally to avoid cgroup OOM

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Zeng Jingxiang <[email protected]>

commit 1bc542c6a0d1444559ab75823a89a94d244bf933 upstream.

Commit 14aa8b2d5c2e ("mm/mglru: don't sync disk for each aging cycle") removed the opportunity to wake up flushers during the MGLRU page reclamation process can lead to an increased likelihood of triggering OOM when encountering many dirty pages during reclamation on MGLRU.

This leads to premature OOM if there are too many dirty pages in cgroup:
Killed

dd invoked oom-killer: gfp_mask=0x101cca(GFP_HIGHUSER_MOVABLE|__GFP_WRITE), order=0, oom_score_adj=0

Call Trace:
  <TASK>
  dump_stack_lvl+0x5f/0x80
  dump_stack+0x14/0x20
  dump_header+0x46/0x1b0
  oom_kill_process+0x104/0x220
  out_of_memory+0x112/0x5a0
  mem_cgroup_out_of_memory+0x13b/0x150
  try_charge_memcg+0x44f/0x5c0
  charge_memcg+0x34/0x50
  __mem_cgroup_charge+0x31/0x90
  filemap_add_folio+0x4b/0xf0
  __filemap_get_folio+0x1a4/0x5b0
  ? srso_return_thunk+0x5/0x5f
  ? __block_commit_write+0x82/0xb0
  ext4_da_write_begin+0xe5/0x270
  generic_perform_write+0x134/0x2b0
  ext4_buffered_write_iter+0x57/0xd0
  ext4_file_write_iter+0x76/0x7d0
  ? selinux_file_permission+0x119/0x150
  ? srso_return_thunk+0x5/0x5f
  ? srso_return_thunk+0x5/0x5f
  vfs_write+0x30c/0x440
  ksys_write+0x65/0xe0
  __x64_sys_write+0x1e/0x30
  x64_sys_call+0x11c2/0x1d50
  do_syscall_64+0x47/0x110
  entry_SYSCALL_64_after_hwframe+0x76/0x7e

memory: usage 308224kB, limit 308224kB, failcnt 2589
swap: usage 0kB, limit 9007199254740988kB, failcnt 0

...
file_dirty 303247360
file_writeback 0
...

oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=test, mems_allowed=0,oom_memcg=/test,task_memcg=/test,task=dd,pid=4404,uid=0 Memory cgroup out of memory: Killed process 4404 (dd) total-vm:10512kB, anon-rss:1152kB, file-rss:1824kB, shmem-rss:0kB, UID:0 pgtables:76kB oom_score_adj:0

The flusher wake up was removed to decrease SSD wearing, but if we are seeing all dirty folios at the tail of an LRU, not waking up the flusher could lead to thrashing easily. So wake it up when a memcg is about to OOM due to dirty caches.

I did run the build kernel test[1] on V6, with -j16 1G memcg on my local branch:

Without the patch(10 times):
user 1449.394
system 368.78 372.58 363.03 362.31 360.84 372.70 368.72 364.94 373.51 366.58 (avg 367.399)
real 164.883

With the V6 patch(10 times):
user 1447.525
system 360.87 360.63 372.39 364.09 368.49 365.15 359.93 362.04 359.72 354.60 (avg 362.79)
real 164.514

Test results show that this patch has about 1% performance improvement, which should be caused by noise.

---
 mm/vmscan.c |   23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)
mm/vmscan.c +21 -2
@@ -4748,6 +4748,7 @@ static bool sort_folio(struct lruvec *lr
 		       int tier_idx)
 {
 	bool success;
+	bool dirty, writeback;
 	int gen = folio_lru_gen(folio);
 	int type = folio_is_file_lru(folio);
 	int zone = folio_zonenum(folio);
@@ -4797,9 +4798,17 @@ static bool sort_folio(struct lruvec *lr
 		return true;
 	}
 
+	dirty = folio_test_dirty(folio);
+	writeback = folio_test_writeback(folio);
+	if (type == LRU_GEN_FILE && dirty) {
+		sc->nr.file_taken += delta;
+		if (!writeback)
+			sc->nr.unqueued_dirty += delta;
+	}
+
 	/* waiting for writeback */
-	if (folio_test_locked(folio) || folio_test_writeback(folio) ||
-	    (type == LRU_GEN_FILE && folio_test_dirty(folio))) {
+	if (folio_test_locked(folio) || writeback ||
+	    (type == LRU_GEN_FILE && dirty)) {
 		gen = folio_inc_gen(lruvec, folio, true);
 		list_move(&folio->lru, &lrugen->folios[gen][type][zone]);
 		return true;
@@ -4915,6 +4924,8 @@ static int scan_folios(struct lruvec *lr
 	__count_memcg_events(memcg, PGREFILL, sorted);
 	__count_vm_events(PGSCAN_ANON + type, isolated);
 
+	if (type == LRU_GEN_FILE)
+		sc->nr.file_taken += isolated;
 	/*
 	 * There might not be eligible pages due to reclaim_idx, may_unmap and
 	 * may_writepage. Check the remaining to prevent livelock if it's not
@@ -5045,6 +5056,7 @@ static int evict_folios(struct lruvec *l
 		return scanned;
 retry:
 	reclaimed = shrink_folio_list(&list, pgdat, sc, &stat, false);
+	sc->nr.unqueued_dirty += stat.nr_unqueued_dirty;
 	sc->nr_reclaimed += reclaimed;
 
 	list_for_each_entry_safe_reverse(folio, next, &list, lru) {
@@ -5243,6 +5255,13 @@ static void lru_gen_shrink_lruvec(struct
 	if (sc->nr_reclaimed - reclaimed >= MIN_LRU_BATCH && !need_aging)
 		sc->memcgs_need_aging = false;
 done:
+	/*
+	 *  If too many file cache in the coldest generation can't be evicted
+	 *  due to being dirty, wake up the flusher.
+	 */
+	if (sc->nr.unqueued_dirty && sc->nr.unqueued_dirty == sc->nr.file_taken)
+		wakeup_flusher_threads(WB_REASON_VMSCAN);
+
 	clear_mm_walk();
 
 	blk_finish_plug(&plug);
author maintainer
#20 lore raw

PATCH 15/2857 mm: vmscan: fix dirty folios throttling on cgroup v1 for MGLRU

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Baolin Wang <[email protected]>

commit 13b6b620910436c29dea398382e83c9499fd13e4 upstream.

The balance_dirty_pages() won't do the dirty folios throttling on cgroupv1. See commit 9badce000e2c ("cgroup, writeback: don't enable cgroup writeback on traditional hierarchies").

Moreover, after commit 6b0dfabb3555 ("fs: Remove aops->writepage"), we no longer attempt to write back filesystem folios through reclaim.

On large memory systems, the flusher may not be able to write back quickly enough. Consequently, MGLRU will encounter many folios that are already under writeback. Since we cannot reclaim these dirty folios, the system may run out of memory and trigger the OOM killer.

Hence, for cgroup v1, let's throttle reclaim after waking up the flusher, which is similar to commit 81a70c21d917 ("mm/cgroup/reclaim: fix dirty pages throttling on cgroup v1"), to avoid unnecessary OOM.

The following test program can easily reproduce the OOM issue. With this patch applied, the test passes successfully.

$mkdir /sys/fs/cgroup/memory/test
$echo 256M > /sys/fs/cgroup/memory/test/memory.limit_in_bytes $echo $$ > /sys/fs/cgroup/memory/test/cgroup.procs $dd if=/dev/zero of=/mnt/data.bin bs=1M count=800

---
 mm/vmscan.c |   16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
mm/vmscan.c +15 -1
@@ -5259,8 +5259,22 @@ done:
 	 *  If too many file cache in the coldest generation can't be evicted
 	 *  due to being dirty, wake up the flusher.
 	 */
-	if (sc->nr.unqueued_dirty && sc->nr.unqueued_dirty == sc->nr.file_taken)
+	if (sc->nr.unqueued_dirty && sc->nr.unqueued_dirty == sc->nr.file_taken) {
+		struct pglist_data *pgdat = lruvec_pgdat(lruvec);
+
 		wakeup_flusher_threads(WB_REASON_VMSCAN);
+		/*
+		 * For cgroupv1 dirty throttling is achieved by waking up
+		 * the kernel flusher here and later waiting on folios
+		 * which are in writeback to finish (see shrink_folio_list()).
+		 *
+		 * Flusher may not be able to issue writeback quickly
+		 * enough for cgroupv1 writeback throttling to work
+		 * on a large system.
+		 */
+		if (!writeback_throttling_sane(sc))
+			reclaim_throttle(pgdat, VMSCAN_THROTTLE_WRITEBACK);
+	}
 
 	clear_mm_walk();
 
author maintainer
#21 lore raw

PATCH 16/2857 mm: move mmap_min_addr logic from callers into vm_unmapped_area()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Linus Torvalds <[email protected]>

commit 6b008640db7355d8de6ac18f74cedd7ccc92684f upstream.

Instead of having callers care about the mmap_min_addr logic for the lowest valid mapping address (and some of them getting it wrong), just move the logic into vm_unmapped_area() itself. One less thing for various architecture cases (and generic helpers) to worry about.

We should really try to make much more of this be common code, but baby steps..

Without this, vm_unmapped_area() could return an address below mmap_min_addr (because some caller forgot about that). That then causes the mmap machinery to think it has found a workable address, but then later security_mmap_addr(addr) is unhappy about it and the mmap() returns with a nonsensical error (EPERM).

The proper action is to either return ENOMEM (if the virtual address space is exhausted), or try to find another address (ie do a bottom-up search for free addresses after the top-down one failed).

See commit 2afc745f3e30 ("mm: ensure get_unmapped_area() returns higher address than mmap_min_addr"), which fixed this for one call site (the generic arch_get_unmapped_area_topdown() fallback) but left other cases alone.

---
 arch/s390/mm/hugetlbpage.c |    2 +-
 arch/s390/mm/mmap.c        |    2 +-
 fs/hugetlbfs/inode.c       |    2 +-
 mm/mmap.c                  |   19 +++++++++++++------
 4 files changed, 16 insertions(+), 9 deletions(-)
arch/s390/mm/hugetlbpage.c +1 -1
@@ -273,7 +273,7 @@ static unsigned long hugetlb_get_unmappe
 
 	info.flags = VM_UNMAPPED_AREA_TOPDOWN;
 	info.length = len;
-	info.low_limit = max(PAGE_SIZE, mmap_min_addr);
+	info.low_limit = PAGE_SIZE;
 	info.high_limit = current->mm->mmap_base;
 	info.align_mask = PAGE_MASK & ~huge_page_mask(h);
 	info.align_offset = 0;
arch/s390/mm/mmap.c +1 -1
@@ -136,7 +136,7 @@ unsigned long arch_get_unmapped_area_top
 
 	info.flags = VM_UNMAPPED_AREA_TOPDOWN;
 	info.length = len;
-	info.low_limit = max(PAGE_SIZE, mmap_min_addr);
+	info.low_limit = PAGE_SIZE;
 	info.high_limit = mm->mmap_base;
 	if (filp || (flags & MAP_SHARED))
 		info.align_mask = MMAP_ALIGN_MASK << PAGE_SHIFT;
fs/hugetlbfs/inode.c +1 -1
@@ -219,7 +219,7 @@ hugetlb_get_unmapped_area_topdown(struct
 
 	info.flags = VM_UNMAPPED_AREA_TOPDOWN;
 	info.length = len;
-	info.low_limit = max(PAGE_SIZE, mmap_min_addr);
+	info.low_limit = PAGE_SIZE;
 	info.high_limit = arch_get_mmap_base(addr, current->mm->mmap_base);
 	info.align_mask = PAGE_MASK & ~huge_page_mask(h);
 	info.align_offset = 0;
mm/mmap.c +13 -6
@@ -1598,7 +1598,8 @@ static inline int accountable_mapping(st
  */
 static unsigned long unmapped_area(struct vm_unmapped_area_info *info)
 {
-	unsigned long length, gap, low_limit;
+	unsigned long length, gap;
+	unsigned long low_limit, high_limit;
 	struct vm_area_struct *tmp;
 
 	MA_STATE(mas, &current->mm->mm_mt, 0, 0);
@@ -1609,8 +1610,11 @@ static unsigned long unmapped_area(struc
 		return -ENOMEM;
 
 	low_limit = info->low_limit;
+	if (low_limit < mmap_min_addr)
+		low_limit = mmap_min_addr;
+	high_limit = info->high_limit;
 retry:
-	if (mas_empty_area(&mas, low_limit, info->high_limit - 1, length))
+	if (mas_empty_area(&mas, low_limit, high_limit - 1, length))
 		return -ENOMEM;
 
 	gap = mas.index;
@@ -1646,7 +1650,8 @@ retry:
  */
 static unsigned long unmapped_area_topdown(struct vm_unmapped_area_info *info)
 {
-	unsigned long length, gap, high_limit, gap_end;
+	unsigned long length, gap, gap_end;
+	unsigned long low_limit, high_limit;
 	struct vm_area_struct *tmp;
 
 	MA_STATE(mas, &current->mm->mm_mt, 0, 0);
@@ -1655,10 +1660,12 @@ static unsigned long unmapped_area_topdo
 	if (length < info->length)
 		return -ENOMEM;
 
+	low_limit = info->low_limit;
+	if (low_limit < mmap_min_addr)
+		low_limit = mmap_min_addr;
 	high_limit = info->high_limit;
 retry:
-	if (mas_empty_area_rev(&mas, info->low_limit, high_limit - 1,
-				length))
+	if (mas_empty_area_rev(&mas, low_limit, high_limit - 1, length))
 		return -ENOMEM;
 
 	gap = mas.last + 1 - info->length;
@@ -1793,7 +1800,7 @@ generic_get_unmapped_area_topdown(struct
 
 	info.flags = VM_UNMAPPED_AREA_TOPDOWN;
 	info.length = len;
-	info.low_limit = max(PAGE_SIZE, mmap_min_addr);
+	info.low_limit = PAGE_SIZE;
 	info.high_limit = arch_get_mmap_base(addr, mm->mmap_base);
 	info.align_mask = 0;
 	info.align_offset = 0;
author maintainer
#22 lore raw

PATCH 17/2857 ALSA: line6: Clear prev_fbuf on capture buffer release

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: YuanZhe Liu <[email protected]>

commit aa118c8f61d59387961d58ffae831c5259a9f222 upstream.

A KASAN slab-use-after-free read was reported in submit_audio_out_urb() when generating an impulse test signal:

  BUG: KASAN: slab-use-after-free in create_impulse_test_signal sound/usb/line6/playback.c:76 [inline]
  BUG: KASAN: slab-use-after-free in submit_audio_out_urb+0x1848/0x1b20 sound/usb/line6/playback.c:249
  Read of size 2 at addr ffff888008d74870 by task syz.2.3214/7785

  Allocated by task 11:
   kmem_cache_alloc_noprof+0x2f0/0x390 mm/slub.c:4144
   line6_buffer_acquire+0x1a1/0x220 sound/usb/line6/pcm.c:158
   line6_pcm_acquire+0xb6/0x230 sound/usb/line6/pcm.c:329
   line6_startup_work+0x3c/0x50 sound/usb/line6/driver.c:728

  Freed by task 7785:
   kfree+0xf8/0x390 mm/slub.c:6566
   line6_buffer_release sound/usb/line6/pcm.c:176 [inline]
   line6_buffer_release+0xa5/0xf0 sound/usb/line6/pcm.c:170
   __line6_pcm_release sound/usb/line6/pcm.c:305 [inline]
   line6_pcm_release+0x5a/0x80 sound/usb/line6/pcm.c:313
   snd_toneport_monitor_put+0x11b/0x190 sound/usb/line6/toneport.c:183

line6pcm->prev_fbuf points into the capture PCM stream buffer (line6pcm->in.buffer), which is updated during audio_in_callback() to feed rate synchronization, software monitoring, and impulse test signal generation on playback side.

When all capture streams are closed, line6_buffer_release() frees pstr->buffer with kfree(). However, it does not clear line6pcm->prev_fbuf. If playback is subsequently started (e.g. via impulse test signal volume control snd_line6_impulse_volume_put()), submit_audio_out_urb() dereferences the stale pointer line6pcm->prev_fbuf under in.lock, resulting in a slab-use-after-free read.

Clear prev_fbuf and prev_fsize in line6_buffer_release() when releasing the capture stream buffer under in.lock, ensuring that no stale buffer pointer can be accessed by submit_audio_out_urb().

---
 sound/usb/line6/pcm.c |    8 ++++++++
 1 file changed, 8 insertions(+)
sound/usb/line6/pcm.c +8 -0
@@ -173,6 +173,14 @@ static void line6_buffer_release(struct
 	clear_bit(type, &pstr->opened);
 	if (!pstr->opened) {
 		line6_wait_clear_audio_urbs(line6pcm, pstr);
+		if (pstr == &line6pcm->in) {
+			/* prev_fbuf points into the capture buffer we are about
+			 * to free; drop it while no capture URB is in flight.
+			 */
+			guard(spinlock_irqsave)(&line6pcm->in.lock);
+			line6pcm->prev_fbuf = NULL;
+			line6pcm->prev_fsize = 0;
+		}
 		kfree(pstr->buffer);
 		pstr->buffer = NULL;
 	}
author maintainer
#23 lore raw

PATCH 18/2857 drm/rockchip: dw_hdmi: Use resume_early pm ops for system suspend

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Jonas Karlman <[email protected]>

[ Upstream commit af3a9eadc11896f6677bcb7102bfb7c84be48d2d ]

rockchip_drm_sys_resume()/drm_mode_config_helper_resume() is called before the resume pm ops of dw-hdmi. This result in an atomic_enable() before dw_hdmi_rockchip_resume()/dw_hdmi_resume() is called.

Resume (without changes):
- rockchip_drm_sys_resume()
- drm_mode_config_helper_resume()
- atomic_enable()
- dw_hdmi_rockchip_resume()
- dw_hdmi_resume()
- dw_hdmi_init_hw()

Change to use resume_early pm ops for system suspend to ensure pm ops for dw-hdmi is run before rockchip-drm pm ops. Also fix a possible NULL pointer dereference timing issue while at it.

Resume (with changes):
- dw_hdmi_rockchip_resume_early()
- dw_hdmi_resume()
- dw_hdmi_init_hw()
- rockchip_drm_sys_resume()
- drm_mode_config_helper_resume()
- atomic_enable()

---
 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +4 -3
index 566f2942f24ae..386ca898812de 100644
@@ -666,17 +666,18 @@ static int dw_hdmi_rockchip_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static int __maybe_unused dw_hdmi_rockchip_resume(struct device *dev)
+static int __maybe_unused dw_hdmi_rockchip_resume_early(struct device *dev)
 {
 	struct rockchip_hdmi *hdmi = dev_get_drvdata(dev);
 
-	dw_hdmi_resume(hdmi->hdmi);
+	if (hdmi)
+		dw_hdmi_resume(hdmi->hdmi);
 
 	return 0;
 }
 
 static const struct dev_pm_ops dw_hdmi_rockchip_pm = {
-	SET_SYSTEM_SLEEP_PM_OPS(NULL, dw_hdmi_rockchip_resume)
+	SET_LATE_SYSTEM_SLEEP_PM_OPS(NULL, dw_hdmi_rockchip_resume_early)
 };
 
 struct platform_driver dw_hdmi_rockchip_pltfm_driver = {
Signature · 1 line
2.53.0
author maintainer
#24 lore raw

PATCH 19/2857 drm/amd/pm: Validate OD DPM triples before mutating tables

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Asad Kamal <[email protected]>

[ Upstream commit b390cb9d776039fc4f0be13b2649299079227d12 ]

vega10_odn_edit_dpm_table() and smu7_odn_edit_dpm_table() could mutate the live ODN table for valid triples, then return 0 after detecting a truncated buffer or out-of-range index. Validate all (index, clock, voltage) triples first and return -EINVAL on any failure; only then apply updates.

v2: Use distinct message for different error case, removed unused input_level from validation loop (Lijo)

v3: Reject negative level indices, input[] is long but was compared only against unsigned table bounds, so negative values could pass and truncate when assigned to uint32_t input_level.

Set DPMTABLE_OD_UPDATE_SCLK/MCLK only after validation passes, so a failed sysfs write does not leave need_update_dpm_table set for a later commit.

---
 .../drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c   | 34 ++++++++++-------
 .../drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 37 ++++++++++++-------
 2 files changed, 43 insertions(+), 28 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c +20 -14
index ed352c2331171..8920225645348 100644
@@ -5652,23 +5652,29 @@ static int smu7_odn_edit_dpm_table(struct pp_hwmgr *hwmgr,
 	}
 
 	for (i = 0; i < size; i += 3) {
-		if (i + 3 > size || input[i] >= podn_dpm_table_in_backend->num_of_pl) {
-			pr_info("invalid clock voltage input \n");
-			return 0;
+		if (i + 3 > size) {
+			pr_info("truncated clock/voltage input\n");
+			return -EINVAL;
 		}
-		input_level = input[i];
-		input_clk = input[i+1] * 100;
-		input_vol = input[i+2];
-
-		if (smu7_check_clk_voltage_valid(hwmgr, type, input_clk, input_vol)) {
-			podn_dpm_table_in_backend->entries[input_level].clock = input_clk;
-			podn_vdd_dep_in_backend->entries[input_level].clk = input_clk;
-			podn_dpm_table_in_backend->entries[input_level].vddc = input_vol;
-			podn_vdd_dep_in_backend->entries[input_level].vddc = input_vol;
-			podn_vdd_dep_in_backend->entries[input_level].vddgfx = input_vol;
-		} else {
+		if (input[i] < 0 || input[i] >= podn_dpm_table_in_backend->num_of_pl) {
+			pr_info("invalid clock/voltage level\n");
 			return -EINVAL;
 		}
+		input_clk = input[i + 1] * 100;
+		input_vol = input[i + 2];
+		if (!smu7_check_clk_voltage_valid(hwmgr, type, input_clk, input_vol))
+			return -EINVAL;
+	}
+
+	for (i = 0; i < size; i += 3) {
+		input_level = input[i];
+		input_clk = input[i + 1] * 100;
+		input_vol = input[i + 2];
+		podn_dpm_table_in_backend->entries[input_level].clock = input_clk;
+		podn_vdd_dep_in_backend->entries[input_level].clk = input_clk;
+		podn_dpm_table_in_backend->entries[input_level].vddc = input_vol;
+		podn_vdd_dep_in_backend->entries[input_level].vddc = input_vol;
+		podn_vdd_dep_in_backend->entries[input_level].vddgfx = input_vol;
 	}
 
 	return 0;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +23 -14
index eb75ff1c75363..22ac8daabb065 100644
@@ -5644,11 +5644,9 @@ static int vega10_odn_edit_dpm_table(struct pp_hwmgr *hwmgr,
 	if (PP_OD_EDIT_SCLK_VDDC_TABLE == type) {
 		dpm_table = &data->dpm_table.gfx_table;
 		podn_vdd_dep_table = &data->odn_dpm_table.vdd_dep_on_sclk;
-		data->need_update_dpm_table |= DPMTABLE_OD_UPDATE_SCLK;
 	} else if (PP_OD_EDIT_MCLK_VDDC_TABLE == type) {
 		dpm_table = &data->dpm_table.mem_table;
 		podn_vdd_dep_table = &data->odn_dpm_table.vdd_dep_on_mclk;
-		data->need_update_dpm_table |= DPMTABLE_OD_UPDATE_MCLK;
 	} else if (PP_OD_RESTORE_DEFAULT_TABLE == type) {
 		memcpy(&(data->dpm_table), &(data->golden_dpm_table), sizeof(struct vega10_dpm_table));
 		vega10_odn_initial_default_setting(hwmgr);
@@ -5666,21 +5664,32 @@ static int vega10_odn_edit_dpm_table(struct pp_hwmgr *hwmgr,
 	}
 
 	for (i = 0; i < size; i += 3) {
-		if (i + 3 > size || input[i] >= podn_vdd_dep_table->count) {
-			pr_info("invalid clock voltage input\n");
-			return 0;
+		if (i + 3 > size) {
+			pr_info("truncated clock/voltage input\n");
+			return -EINVAL;
 		}
-		input_level = input[i];
-		input_clk = input[i+1] * 100;
-		input_vol = input[i+2];
-
-		if (vega10_check_clk_voltage_valid(hwmgr, type, input_clk, input_vol)) {
-			dpm_table->dpm_levels[input_level].value = input_clk;
-			podn_vdd_dep_table->entries[input_level].clk = input_clk;
-			podn_vdd_dep_table->entries[input_level].vddc = input_vol;
-		} else {
+		if (input[i] < 0 || input[i] >= podn_vdd_dep_table->count) {
+			pr_info("invalid clock/voltage level\n");
 			return -EINVAL;
 		}
+		input_clk = input[i + 1] * 100;
+		input_vol = input[i + 2];
+		if (!vega10_check_clk_voltage_valid(hwmgr, type, input_clk, input_vol))
+			return -EINVAL;
+	}
+
+	if (type == PP_OD_EDIT_SCLK_VDDC_TABLE)
+		data->need_update_dpm_table |= DPMTABLE_OD_UPDATE_SCLK;
+	else
+		data->need_update_dpm_table |= DPMTABLE_OD_UPDATE_MCLK;
+
+	for (i = 0; i < size; i += 3) {
+		input_level = input[i];
+		input_clk = input[i + 1] * 100;
+		input_vol = input[i + 2];
+		dpm_table->dpm_levels[input_level].value = input_clk;
+		podn_vdd_dep_table->entries[input_level].clk = input_clk;
+		podn_vdd_dep_table->entries[input_level].vddc = input_vol;
 	}
 	vega10_odn_update_soc_table(hwmgr, type);
 	return 0;
Signature · 1 line
2.53.0
author maintainer
#25 lore raw

PATCH 20/2857 drm/amdgpu: Gate debugfs MMIO access on kernel lockdown

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Asad Kamal <[email protected]>

[ Upstream commit 17ac73b24006700f50972d37e297dec1f523c14a ]

amdgpu_regs, amdgpu_regs2, and related debugfs nodes allow arbitrary MMIO read/write via RREG32/WREG32 without checking security_locked_down(). On kernel_lockdown=integrity systems this bypasses the same restrictions as /dev/mem and PCI config space sysfs.

Check LOCKDOWN_PCI_ACCESS (matching pci-sysfs) at the entry of every debugfs handler that performs direct register access.

v2: Use consistent check as per previous check to use LOCKDOWN_DEBUGFS(Lijo)

v3: Do not create any entry from amdgpu_debugfs_regs_init() if LOCKDOWN_PCI_ACCESS is active and log once. (Lijo)

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +7 -0
index 952a3fb18c2d3..c51118c5003b8 100644
@@ -26,6 +26,7 @@
 #include <linux/kthread.h>
 #include <linux/pci.h>
 #include <linux/uaccess.h>
+#include <linux/security.h>
 #include <linux/pm_runtime.h>
 
 #include "amdgpu.h"
@@ -1468,6 +1469,12 @@ int amdgpu_debugfs_regs_init(struct amdgpu_device *adev)
 	struct dentry *ent, *root = minor->debugfs_root;
 	unsigned int i;
 
+	if (security_locked_down(LOCKDOWN_PCI_ACCESS)) {
+		drm_info(adev_to_drm(adev),
+			 "amdgpu: HW debugfs nodes disabled (kernel lockdown)\n");
+		return 0;
+	}
+
 	for (i = 0; i < ARRAY_SIZE(debugfs_regs); i++) {
 		ent = debugfs_create_file(debugfs_regs_names[i],
 					  S_IFREG | S_IRUGO, root,
Signature · 1 line
2.53.0
author maintainer
#26 lore raw

PATCH 21/2857 drm/radeon: avoid double free in r600 DPM cleanup

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Ruoyu Wang <[email protected]>

[ Upstream commit d3f30034f861a585f8e487ae1555d9f288a96f87 ]

r600_parse_extended_power_table() uses manual kfree() calls for some early allocation failures, but the freed pointers are left in the dynamic power-management state. If device teardown later calls r600_free_extended_power_table(), those stale pointers can be freed again.

Use the common extended power table cleanup helper for those early failure paths as well, and clear each pointer after freeing it so repeated cleanup stays safe.

---
 drivers/gpu/drm/radeon/r600_dpm.c | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
drivers/gpu/drm/radeon/r600_dpm.c +15 -6
index 9d2bcb9551e61..88355b15e3e63 100644
@@ -935,7 +935,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev)
 			ret = r600_parse_clk_voltage_dep_table(&rdev->pm.dpm.dyn_state.vddci_dependency_on_mclk,
 							       dep_table);
 			if (ret) {
-				kfree(rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries);
+				r600_free_extended_power_table(rdev);
 				return ret;
 			}
 		}
@@ -946,8 +946,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev)
 			ret = r600_parse_clk_voltage_dep_table(&rdev->pm.dpm.dyn_state.vddc_dependency_on_mclk,
 							       dep_table);
 			if (ret) {
-				kfree(rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries);
-				kfree(rdev->pm.dpm.dyn_state.vddci_dependency_on_mclk.entries);
+				r600_free_extended_power_table(rdev);
 				return ret;
 			}
 		}
@@ -958,9 +957,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev)
 			ret = r600_parse_clk_voltage_dep_table(&rdev->pm.dpm.dyn_state.mvdd_dependency_on_mclk,
 							       dep_table);
 			if (ret) {
-				kfree(rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries);
-				kfree(rdev->pm.dpm.dyn_state.vddci_dependency_on_mclk.entries);
-				kfree(rdev->pm.dpm.dyn_state.vddc_dependency_on_mclk.entries);
+				r600_free_extended_power_table(rdev);
 				return ret;
 			}
 		}
@@ -1300,17 +1297,29 @@ void r600_free_extended_power_table(struct radeon_device *rdev)
 	struct radeon_dpm_dynamic_state *dyn_state = &rdev->pm.dpm.dyn_state;
 
 	kfree(dyn_state->vddc_dependency_on_sclk.entries);
+	dyn_state->vddc_dependency_on_sclk.entries = NULL;
 	kfree(dyn_state->vddci_dependency_on_mclk.entries);
+	dyn_state->vddci_dependency_on_mclk.entries = NULL;
 	kfree(dyn_state->vddc_dependency_on_mclk.entries);
+	dyn_state->vddc_dependency_on_mclk.entries = NULL;
 	kfree(dyn_state->mvdd_dependency_on_mclk.entries);
+	dyn_state->mvdd_dependency_on_mclk.entries = NULL;
 	kfree(dyn_state->cac_leakage_table.entries);
+	dyn_state->cac_leakage_table.entries = NULL;
 	kfree(dyn_state->phase_shedding_limits_table.entries);
+	dyn_state->phase_shedding_limits_table.entries = NULL;
 	kfree(dyn_state->ppm_table);
+	dyn_state->ppm_table = NULL;
 	kfree(dyn_state->cac_tdp_table);
+	dyn_state->cac_tdp_table = NULL;
 	kfree(dyn_state->vce_clock_voltage_dependency_table.entries);
+	dyn_state->vce_clock_voltage_dependency_table.entries = NULL;
 	kfree(dyn_state->uvd_clock_voltage_dependency_table.entries);
+	dyn_state->uvd_clock_voltage_dependency_table.entries = NULL;
 	kfree(dyn_state->samu_clock_voltage_dependency_table.entries);
+	dyn_state->samu_clock_voltage_dependency_table.entries = NULL;
 	kfree(dyn_state->acp_clock_voltage_dependency_table.entries);
+	dyn_state->acp_clock_voltage_dependency_table.entries = NULL;
 }
 
 enum radeon_pcie_gen r600_get_pcie_gen_support(struct radeon_device *rdev,
Signature · 1 line
2.53.0
author maintainer
#27 lore raw

PATCH 22/2857 drm/amdgpu: add bounds check to prevent array overflow

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: YiPeng Chai <[email protected]>

[ Upstream commit db15c49a17b8fab9ada38f3a548e5353d7d6b1a8 ]

Add bounds check to prevent array overflow.

v2:
Add warning messages.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +7 -0
index 4b7b3278a05f1..969477118df31 100644
@@ -2937,6 +2937,13 @@ static void amdgpu_register_bad_pages_mca_notifier(struct amdgpu_device *adev)
 	 * Use this list instead of mgpu_info to find the amdgpu
 	 * device on which the UMC error was reported.
 	 */
+	if (mce_adev_list.num_gpu >= MAX_GPU_INSTANCE) {
+		dev_warn_ratelimited(adev->dev,
+			"mce_adev_list full, skip notifier registration (max=%d)\n",
+			MAX_GPU_INSTANCE);
+		return;
+	}
+
 	mce_adev_list.devs[mce_adev_list.num_gpu++] = adev;
 
 	/*
Signature · 1 line
2.53.0
author maintainer
#28 lore raw

PATCH 23/2857 w1: ds2482: add OF device match table

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Kryštof Černý <[email protected]>

[ Upstream commit 53f33fd74d3993af0fbb5494b5be709f6ca6b712 ]

Add an of_device_id table and hook it into the i2c driver so the ds2482/ds2484 can be matched and auto-probed from Device Tree.

This allows automatic module loading when instantiated via DT.

---
 drivers/w1/masters/ds2482.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/w1/masters/ds2482.c +8 -0
index ffb1ebb1d2b0c..8f13b45904e70 100644
@@ -553,9 +553,17 @@ static const struct i2c_device_id ds2482_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, ds2482_id);
 
+static const struct of_device_id ds2482_of_match[] = {
+	{ .compatible = "maxim,ds2482", },
+	{ .compatible = "maxim,ds2484", },
+	{ }
+};
+MODULE_DEVICE_TABLE(of, ds2482_of_match);
+
 static struct i2c_driver ds2482_driver = {
 	.driver = {
 		.name	= "ds2482",
+		.of_match_table  = ds2482_of_match,
 	},
 	.probe		= ds2482_probe,
 	.remove		= ds2482_remove,
Signature · 1 line
2.53.0
author maintainer
#29 lore raw

PATCH 24/2857 media: cec: stm32: return an error when log-address wait times out

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit 3bc2e4a26465386332ee1a40219d8dafba335b0b ]

stm32_cec_adap_log_addr() waits for TXSOM to clear before disabling CEC and updating the logical address registers. The wait result is ignored, so a timeout can still be reported as a successful logical address update.

Return the polling error before touching the address registers. Compute the address mask only for valid logical addresses so the invalid-address path does not evaluate a shift based on CEC_LOG_ADDR_INVALID.

---
 drivers/media/cec/platform/stm32/stm32-cec.c | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)
drivers/media/cec/platform/stm32/stm32-cec.c +11 -5
index 4dd98ad021ca0..70dad0dc65e8d 100644
@@ -195,18 +195,24 @@ static int stm32_cec_adap_enable(struct cec_adapter *adap, bool enable)
 static int stm32_cec_adap_log_addr(struct cec_adapter *adap, u8 logical_addr)
 {
 	struct stm32_cec *cec = adap->priv;
-	u32 oar = (1 << logical_addr) << 16;
 	u32 val;
+	int ret;
 
 	/* Poll every 100µs the register CEC_CR to wait end of transmission */
-	regmap_read_poll_timeout(cec->regmap, CEC_CR, val, !(val & TXSOM),
-				 100, CEC_XFER_TIMEOUT_MS * 1000);
+	ret = regmap_read_poll_timeout(cec->regmap, CEC_CR, val, !(val & TXSOM),
+				       100, CEC_XFER_TIMEOUT_MS * 1000);
+	if (ret)
+		return ret;
+
 	regmap_update_bits(cec->regmap, CEC_CR, CECEN, 0);
 
-	if (logical_addr == CEC_LOG_ADDR_INVALID)
+	if (logical_addr == CEC_LOG_ADDR_INVALID) {
 		regmap_update_bits(cec->regmap, CEC_CFGR, OAR, 0);
-	else
+	} else {
+		u32 oar = BIT(logical_addr) << 16;
+
 		regmap_update_bits(cec->regmap, CEC_CFGR, oar, oar);
+	}
 
 	regmap_update_bits(cec->regmap, CEC_CR, CECEN, CECEN);
 
Signature · 1 line
2.53.0
author maintainer
#30 lore raw

PATCH 25/2857 irqdomain: Plug leak in irq_domain_alloc_irqs_locked() error path

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Kemeng Shi <[email protected]>

[ Upstream commit 13856e22217fbf7c1200633716ff87ccb50fd89a ]

When irq_domain_trim_hierarchy() fails in irq_domain_alloc_irqs_locked(), the error handling path fails to undo the hierarchy allocations.

Add the missing cleanup.

[ tglx: Massage change log ]

---
 kernel/irq/irqdomain.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
kernel/irq/irqdomain.c +3 -1
index 6aea9d25ab9ac..0642efc078c48 100644
@@ -1514,7 +1514,7 @@ static int irq_domain_alloc_irqs_locked(struct irq_domain *domain, int irq_base,
 	for (i = 0; i < nr_irqs; i++) {
 		ret = irq_domain_trim_hierarchy(virq + i);
 		if (ret)
-			goto out_free_irq_data;
+			goto out_free_irqs;
 	}
 
 	for (i = 0; i < nr_irqs; i++)
@@ -1522,6 +1522,8 @@ static int irq_domain_alloc_irqs_locked(struct irq_domain *domain, int irq_base,
 
 	return virq;
 
+out_free_irqs:
+	irq_domain_free_irqs_hierarchy(domain, virq, nr_irqs);
 out_free_irq_data:
 	irq_domain_free_irq_data(virq, nr_irqs);
 out_free_desc:
Signature · 1 line
2.53.0
author maintainer
#31 lore raw

PATCH 26/2857 clk: zynq: handle kasprintf() failure in periph_clk registration

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: William Theesfeld <[email protected]>

[ Upstream commit d4d0d335e8d37c6c7e1c5664c7664288eca5a09b ]

zynq_clk_register_periph_clk() ignores the return value of the two kasprintf() calls used to build the mux and divider clock names, and passes the resulting (possibly NULL) pointers straight into clk_register_mux(), clk_register_divider() and clk_register_gate() as the clock '"'name'"' argument. On allocation failure that name later gets dereferenced by the clock framework (e.g. in debugfs name formatting), causing a NULL-pointer dereference.

Check both kasprintf() returns. On failure unwind any allocated name buffer and the spinlock, then fall through to the existing err label which sets clks[] to ERR_PTR(-ENOMEM). Freeing the spinlock on the error path is correct here because no clk_register_*() call has had a chance to take ownership of it; the success path intentionally hands it off to the registered clocks.

The neighbouring zynq_clk_register_fclk() in the same file already uses this per-allocation goto-label cleanup pattern; this change brings periph_clk into line with it.

---
 drivers/clk/zynq/clkc.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/clk/zynq/clkc.c +8 -0
index c28d3dacf0fb2..db40a9e7dd3d9 100644
@@ -186,7 +186,11 @@ static void __init zynq_clk_register_periph_clk(enum zynq_clk clk0,
 	spin_lock_init(lock);
 
 	mux_name = kasprintf(GFP_KERNEL, "%s_mux", clk_name0);
+	if (!mux_name)
+		goto err_mux_name;
 	div_name = kasprintf(GFP_KERNEL, "%s_div", clk_name0);
+	if (!div_name)
+		goto err_div_name;
 
 	clk_register_mux(NULL, mux_name, parents, 4,
 			CLK_SET_RATE_NO_REPARENT, clk_ctrl, 4, 2, 0, lock);
@@ -205,6 +209,10 @@ static void __init zynq_clk_register_periph_clk(enum zynq_clk clk0,
 
 	return;
 
+err_div_name:
+	kfree(mux_name);
+err_mux_name:
+	kfree(lock);
 err:
 	clks[clk0] = ERR_PTR(-ENOMEM);
 	if (two_gates)
Signature · 1 line
2.53.0
author maintainer
#32 lore raw

PATCH 27/2857 ASoC: tlv320aic26: remove keyclick sysfs file

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit ae375f8d063d71e598c0d7e14fc056154c84d7a7 ]

aic26_probe() creates the keyclick sysfs file on the component device. The file callback uses the ASoC component pointer stored in the driver private data.

There is no matching remove callback, so the sysfs file can remain after the component is removed while its backing component state is gone.

Add a component remove callback that removes the keyclick file.

---
 sound/soc/codecs/tlv320aic26.c | 6 ++++++
 1 file changed, 6 insertions(+)
sound/soc/codecs/tlv320aic26.c +6 -0
index e5dfb3d752a3a..84e954311c1b2 100644
@@ -320,8 +320,14 @@ static int aic26_probe(struct snd_soc_component *component)
 	return 0;
 }
 
+static void aic26_remove(struct snd_soc_component *component)
+{
+	device_remove_file(component->dev, &dev_attr_keyclick);
+}
+
 static const struct snd_soc_component_driver aic26_soc_component_dev = {
 	.probe			= aic26_probe,
+	.remove			= aic26_remove,
 	.controls		= aic26_snd_controls,
 	.num_controls		= ARRAY_SIZE(aic26_snd_controls),
 	.dapm_widgets		= tlv320aic26_dapm_widgets,
Signature · 1 line
2.53.0
author maintainer
#33 lore raw

PATCH 28/2857 ASoC: hdac_hdmi: Fix resource cleanup on probe failure

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Haoxiang Li <[email protected]>

[ Upstream commit 785903b7770f19ea05b8a76081dff691c56fa771 ]

hdac_hdmi_dev_probe() gets the HDA link before allocating and initializing the HDMI codec private data. Several later error paths return directly without dropping the link reference, leaving the hlink refcount unbalanced.

Release the link reference on probe failures. Also turn display power off if the failure happens after it has been enabled.

This issue was dicussed in:
https://lore.kernel.org/all/[email protected]/
I think the paths fixed here are probe failure paths: the device has not been fully initialized or bound, and runtime PM suspend cannot be relied on to balance the reference taken during probe.

---
 sound/soc/codecs/hdac_hdmi.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
sound/soc/codecs/hdac_hdmi.c +8 -2
index b9e2e5a960139..f11a60c092cf8 100644
@@ -2162,8 +2162,10 @@ static int hdac_hdmi_dev_probe(struct hdac_device *hdev)
 	snd_hdac_ext_bus_link_get(hdev->bus, hlink);
 
 	hdmi_priv = devm_kzalloc(&hdev->dev, sizeof(*hdmi_priv), GFP_KERNEL);
-	if (hdmi_priv == NULL)
+	if (hdmi_priv == NULL) {
+		snd_hdac_ext_bus_link_put(hdev->bus, hlink);
 		return -ENOMEM;
+	}
 
 	snd_hdac_register_chmap_ops(hdev, &hdmi_priv->chmap);
 	hdmi_priv->chmap.ops.get_chmap = hdac_hdmi_get_chmap;
@@ -2172,8 +2174,10 @@ static int hdac_hdmi_dev_probe(struct hdac_device *hdev)
 	hdmi_priv->chmap.ops.get_spk_alloc = hdac_hdmi_get_spk_alloc;
 	hdmi_priv->hdev = hdev;
 
-	if (!hdac_id)
+	if (!hdac_id) {
+		snd_hdac_ext_bus_link_put(hdev->bus, hlink);
 		return -ENODEV;
+	}
 
 	if (hdac_id->driver_data)
 		hdmi_priv->drv_data =
@@ -2198,6 +2202,8 @@ static int hdac_hdmi_dev_probe(struct hdac_device *hdev)
 	if (ret < 0) {
 		dev_err(&hdev->dev,
 			"Failed in parse and map nid with err: %d\n", ret);
+		snd_hdac_ext_bus_link_put(hdev->bus, hlink);
+		snd_hdac_display_power(hdev->bus, hdev->addr, false);
 		return ret;
 	}
 	snd_hdac_refresh_widgets(hdev);
Signature · 1 line
2.53.0
author maintainer
#34 lore raw

PATCH 29/2857 iio: accel: fxls8962af: clamp the device-reported FIFO sample count

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Bryam Vargas <[email protected]>

[ Upstream commit 2f8225b91eb478ca2e9aec8aaef4d229765bcebe ]

fxls8962af_fifo_flush() transfers the sample count the device reports in BUF_STATUS into an on-stack buffer sized for FXLS8962AF_FIFO_LENGTH (32) samples, but the count is a 6-bit field (0..63) that is only checked for zero. A device, or an attacker on the I2C/SPI bus, reporting 33..63 overflows the buffer by up to 186 bytes: a stack out-of-bounds write.

Clamp the count to FXLS8962AF_FIFO_LENGTH before the transfer, mirroring the clamp already applied in fxls8962af_set_watermark(). Conforming hardware reports at most that many samples and is unaffected.

---
 drivers/iio/accel/fxls8962af-core.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/iio/accel/fxls8962af-core.c +2 -0
index 8bd4eef12ac44..4317894947ceb 100644
@@ -960,6 +960,8 @@ static int fxls8962af_fifo_flush(struct iio_dev *indio_dev)
 	if (!count)
 		return 0;
 
+	count = min(count, FXLS8962AF_FIFO_LENGTH);
+
 	data->old_timestamp = data->timestamp;
 	data->timestamp = iio_get_time_ns(indio_dev);
 
Signature · 1 line
2.53.0
author maintainer
#35 lore raw

PATCH 30/2857 perf/x86/intel: Fallback to sw branch type decoding if no hw decoding

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Dapeng Mi <[email protected]>

[ Upstream commit 170cc6b02e3d5203ccaa49ffea1ee5a7ab08c885 ]

intel_pmu_lbr_filter() currently assumes arch-LBR provides hardware branch-type decoding and skips software decoding on that path.

However, arch-LBR may not always expose branch-type information. In that case, treating entries as hardware-decoded can misclassify sampled branches (for example, defaulting to JCC), which breaks branch-type filtering results.

Fix this by using software branch-type decoding when hardware branch-type decoding is unavailable (that is, when x86_lbr_type is not enabled). This keeps branch classification and filtering behavior correct across arch-LBR configurations.

Since x86_lbr_type is only set to true when arch-LBR is supported, it's unnecessary to check if the CPU has the arch-LBR feature.

---
 arch/x86/events/intel/lbr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/events/intel/lbr.c +1 -1
index c05b3e6de4826..3599b2f1428cc 100644
@@ -1143,7 +1143,7 @@ intel_pmu_lbr_filter(struct cpu_hw_events *cpuc)
 		 * Doesn't support OTHER_BRANCH decoding for now.
 		 * OTHER_BRANCH branch type still rely on software decoding.
 		 */
-		if (static_cpu_has(X86_FEATURE_ARCH_LBR) &&
+		if (static_branch_likely(&x86_lbr_type) &&
 		    type <= ARCH_LBR_BR_TYPE_KNOWN_MAX) {
 			to_plm = kernel_ip(to) ? X86_BR_KERNEL : X86_BR_USER;
 			type = arch_lbr_br_type_map[type] | to_plm;
Signature · 1 line
2.53.0
author maintainer
#36 lore raw

PATCH 31/2857 fat: reject name longer than NAME_MAX in msdos_format_name()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Zizhi Wo <[email protected]>

[ Upstream commit 9d7ed813ee5ff0d469bd99630828ed6fdef4e8da ]

msdos_format_name() performs no upper-bound check on the input name length. It silently truncates an arbitrarily long name into the 8.3 form (11 bytes) and returns success. The subsequent fat_scan() then matches only against these 11 truncated bytes, so it returns an inode as long as any entry with the same 8.3 name exists on disk.

For example, passing a 300-byte name of all 'A's returns 0 with res set to "AAAAAAAA" (8 'A's + 3 padding spaces), reporting success for a name far longer than NAME_MAX.

As a result, when a user calls open() on a path component longer than NAME_MAX (255) bytes, the VFS only enforces PATH_MAX, not the length of an individual component. The dentry keeps the original long name but gets an inode attached and becomes positive. Later in vfs_open() -> fsnotify_open() -> fanotify_info_copy_name() triggers WARN_ON_ONCE(), and the event is reported to userspace with an empty name.

vfat is not affected, as create goes through xlate_to_uni() which refuses names longer than FAT_LFN_LEN.

Fix this by checking 'len > NAME_MAX' at the entry of msdos_format_name(), the single entry point for all msdos name handling, aligning with the NAME_MAX check that xfs/9p/ceph/simple_lookup() perform at lookup.

---
 fs/fat/namei_msdos.c | 3 +++
 1 file changed, 3 insertions(+)
fs/fat/namei_msdos.c +3 -0
index fba3a07d39478..ea6ff97d3aea6 100644
@@ -29,6 +29,9 @@ static int msdos_format_name(const unsigned char *name, int len,
 	unsigned char c;
 	int space;
 
+	if (len > NAME_MAX)
+		return -ENAMETOOLONG;
+
 	if (name[0] == '.') {	/* dotfile because . and .. already done */
 		if (opts->dotsOK) {
 			/* Get rid of dot - test for it elsewhere */
Signature · 1 line
2.53.0
author maintainer
#37 lore raw

PATCH 32/2857 perf/x86/intel/uncore: Fix PCI PMU cleanup on setup failure

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Zide Chen <[email protected]>

[ Upstream commit 003267cb94e21d762eb72d6977d84f44f1705bb7 ]

When uncore_pci_pmu_register() fails, pmu->boxes[die] is set to NULL before returning. In the uncore_pci_remove() path, this causes uncore_pci_pmu_unregister() to be skipped entirely, leaking pmu->activeboxes. In the uncore_bus_notify() path, uncore_pci_pmu_unregister() may still be called and must exit early when pmu->boxes[die] is NULL to avoid a NULL pointer dereference, and to ensure activeboxes is only decremented for a previously active box.

Additionally, since pci_get_drvdata() returns NULL on registration failure, uncore_pci_remove() can no longer treat NULL drvdata as an indicator of an auxiliary PCI device. Remove the associated WARN_ON_ONCE().

---
 arch/x86/events/intel/uncore.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
arch/x86/events/intel/uncore.c +4 -1
index 527e6d11af470..609a3a75b5deb 100644
@@ -1151,6 +1151,7 @@ static int uncore_pci_pmu_register(struct pci_dev *pdev,
 	/* First active box registers the pmu */
 	ret = uncore_pmu_register(pmu);
 	if (ret) {
+		atomic_dec(&pmu->activeboxes);
 		pmu->boxes[die] = NULL;
 		uncore_box_exit(box);
 		kfree(box);
@@ -1216,6 +1217,9 @@ static void uncore_pci_pmu_unregister(struct intel_uncore_pmu *pmu, int die)
 {
 	struct intel_uncore_box *box = pmu->boxes[die];
 
+	if (!box)
+		return;
+
 	pmu->boxes[die] = NULL;
 	if (atomic_dec_return(&pmu->activeboxes) == 0)
 		uncore_pmu_unregister(pmu);
@@ -1240,7 +1244,6 @@ static void uncore_pci_remove(struct pci_dev *pdev)
 				break;
 			}
 		}
-		WARN_ON_ONCE(i >= UNCORE_EXTRA_PCI_DEV_MAX);
 		return;
 	}
 
Signature · 1 line
2.53.0
author maintainer
#38 lore raw

PATCH 33/2857 i2c: acpi: Force ELAN1300 touchpads to 100 kHz

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Abhijeeth Babu <[email protected]>

[ Upstream commit 9e9762e578db7556bea644bb5a8a2435f63544d1 ]

The ELAN1300 touchpad with HID ID 04F3:3104 on the ASUS VivoBook X513UA_KM513UA exhibits severe pointer jumps and erratic movement when the I2C bus operates at 400 kHz.

The system DSDT describes the touchpad using an I2cSerialBusV2 resource with a speed of 0x00061A80, corresponding to 400 kHz, on the AMDI0010:03 controller.

At this speed, libinput repeatedly reports:

kernel bug: Touch jump detected and discarded

Add ELAN1300 to i2c_acpi_force_100khz_device_ids so that it operates at 100 kHz.

Before the change, nine touch-jump events were recorded, with additional messages suppressed by libinput's rate limiter. With the bus forced to 100 kHz, no touch-jump events have been observed and the touchpad operates normally.

The affected system uses BIOS X513UA.319 dated 2023-05-09.

---
 drivers/i2c/i2c-core-acpi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/i2c/i2c-core-acpi.c +1 -0
index f43067f6797e9..b74f41b9515ae 100644
@@ -372,6 +372,7 @@ static const struct acpi_device_id i2c_acpi_force_100khz_device_ids[] = {
 	 */
 	{ "DLL0945", 0 },
 	{ "ELAN06FA", 0 },
+	{ "ELAN1300", 0 },
 	{}
 };
 
Signature · 1 line
2.53.0
author maintainer
#39 lore raw

PATCH 34/2857 drm/amdgpu: Add checks to vbios fetch through ATRM

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Lijo Lazar <[email protected]>

[ Upstream commit 8c3fcfc14fc1320a1155acb2dd7656fce7003bc0 ]

Check if a valid buffer object is returned after ATRM call. Also, match the buffer length against requested size before copying.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c +8 -2
index 1b783bb58ea07..649e6624309f6 100644
@@ -278,8 +278,14 @@ static int amdgpu_atrm_call(acpi_handle atrm_handle, uint8_t *bios,
 	}
 
 	obj = (union acpi_object *)buffer.pointer;
-	memcpy(bios+offset, obj->buffer.pointer, obj->buffer.length);
-	len = obj->buffer.length;
+	if (!obj || obj->type != ACPI_TYPE_BUFFER) {
+		DRM_ERROR("ATRM returned an invalid object\n");
+		kfree(buffer.pointer);
+		return -EINVAL;
+	}
+
+	len = min_t(size_t, obj->buffer.length, len);
+	memcpy(bios+offset, obj->buffer.pointer, len);
 	kfree(buffer.pointer);
 	return len;
 }
Signature · 1 line
2.53.0
author maintainer
#40 lore raw

PATCH 35/2857 drm/amdgpu: Validate ATIF buffer length before use

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Lijo Lazar <[email protected]>

[ Upstream commit b978b7d43963bbb3e2d850288f7c21ac11c3b751 ]

Add a min_size parameter to amdgpu_atif_call() to validate that the returned ACPI buffer is of type ACPI_TYPE_BUFFER, holds at least a u16 size field, does not claim more data than was actually returned, and meets the minimum size required by the calling function. Each caller passes its required minimum via sizeof() or offsetof() of the expected output struct and drops its own size check.

Assisted-by Claude Sonnet (Cursor AI)
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 68 ++++++++++++------------
 1 file changed, 34 insertions(+), 34 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +34 -34
index 9ced0c60ec8b0..6a8e170817782 100644
@@ -98,13 +98,15 @@ static struct amdgpu_acpi_priv {
  * @atif: atif structure
  * @function: the ATIF function to execute
  * @params: ATIF function params
+ * @min_size: minimum size of the expected output buffer in bytes
  *
  * Executes the requested ATIF function (all asics).
  * Returns a pointer to the acpi output buffer.
  */
 static union acpi_object *amdgpu_atif_call(struct amdgpu_atif *atif,
 					   int function,
-					   struct acpi_buffer *params)
+					   struct acpi_buffer *params,
+					   size_t min_size)
 {
 	acpi_status status;
 	union acpi_object *obj;
@@ -147,6 +149,28 @@ static union acpi_object *amdgpu_atif_call(struct amdgpu_atif *atif,
 		return NULL;
 	}
 
+	if (obj->buffer.length < sizeof(u16)) {
+		DRM_DEBUG_DRIVER("ATIF buffer too small to hold size field: %u\n",
+				 obj->buffer.length);
+		kfree(obj);
+		return NULL;
+	}
+
+	if (obj->buffer.length < *(u16 *)obj->buffer.pointer) {
+		DRM_DEBUG_DRIVER("ATIF buffer length mismatch: reported %u, actual %u\n",
+				 *(u16 *)obj->buffer.pointer,
+				 obj->buffer.length);
+		kfree(obj);
+		return NULL;
+	}
+
+	if (*(u16 *)obj->buffer.pointer < min_size) {
+		DRM_DEBUG_DRIVER("ATIF buffer too small: expected %zu, got %u\n",
+				 min_size, *(u16 *)obj->buffer.pointer);
+		kfree(obj);
+		return NULL;
+	}
+
 	return obj;
 }
 
@@ -208,19 +232,14 @@ static int amdgpu_atif_verify_interface(struct amdgpu_atif *atif)
 	size_t size;
 	int err = 0;
 
-	info = amdgpu_atif_call(atif, ATIF_FUNCTION_VERIFY_INTERFACE, NULL);
+	info = amdgpu_atif_call(atif, ATIF_FUNCTION_VERIFY_INTERFACE, NULL,
+				sizeof(output));
 	if (!info)
 		return -EIO;
 
 	memset(&output, 0, sizeof(output));
 
-	size = *(u16 *) info->buffer.pointer;
-	if (size < 12) {
-		DRM_INFO("ATIF buffer is too small: %zu\n", size);
-		err = -EINVAL;
-		goto out;
-	}
-	size = min(sizeof(output), size);
+	size = min(sizeof(output), (size_t)*(u16 *)info->buffer.pointer);
 
 	memcpy(&output, info->buffer.pointer, size);
 
@@ -230,7 +249,6 @@ static int amdgpu_atif_verify_interface(struct amdgpu_atif *atif)
 	amdgpu_atif_parse_notification(&atif->notifications, output.notification_mask);
 	amdgpu_atif_parse_functions(&atif->functions, output.function_bits);
 
-out:
 	kfree(info);
 	return err;
 }
@@ -255,20 +273,14 @@ static int amdgpu_atif_get_notification_params(struct amdgpu_atif *atif)
 	int err = 0;
 
 	info = amdgpu_atif_call(atif, ATIF_FUNCTION_GET_SYSTEM_PARAMETERS,
-				NULL);
+				NULL, offsetof(struct atif_system_params, command_code));
 	if (!info) {
 		err = -EIO;
 		goto out;
 	}
 
-	size = *(u16 *) info->buffer.pointer;
-	if (size < 10) {
-		err = -EINVAL;
-		goto out;
-	}
-
 	memset(&params, 0, sizeof(params));
-	size = min(sizeof(params), size);
+	size = min(sizeof(params), (size_t)*(u16 *)info->buffer.pointer);
 	memcpy(&params, info->buffer.pointer, size);
 
 	DRM_DEBUG_DRIVER("SYSTEM_PARAMS: mask = %#x, flags = %#x\n",
@@ -331,20 +343,14 @@ static int amdgpu_atif_query_backlight_caps(struct amdgpu_atif *atif)
 
 	info = amdgpu_atif_call(atif,
 		ATIF_FUNCTION_QUERY_BRIGHTNESS_TRANSFER_CHARACTERISTICS,
-		&params);
+		&params, offsetof(struct atif_qbtc_output, data_points));
 	if (!info) {
 		err = -EIO;
 		goto out;
 	}
 
-	size = *(u16 *) info->buffer.pointer;
-	if (size < 10) {
-		err = -EINVAL;
-		goto out;
-	}
-
 	memset(&characteristics, 0, sizeof(characteristics));
-	size = min(sizeof(characteristics), size);
+	size = min(sizeof(characteristics), (size_t)*(u16 *)info->buffer.pointer);
 	memcpy(&characteristics, info->buffer.pointer, size);
 
 	atif->backlight_caps.caps_valid = true;
@@ -376,24 +382,18 @@ static int amdgpu_atif_get_sbios_requests(struct amdgpu_atif *atif,
 	int count = 0;
 
 	info = amdgpu_atif_call(atif, ATIF_FUNCTION_GET_SYSTEM_BIOS_REQUESTS,
-				NULL);
+				NULL, sizeof(*req));
 	if (!info)
 		return -EIO;
 
-	size = *(u16 *)info->buffer.pointer;
-	if (size < 0xd) {
-		count = -EINVAL;
-		goto out;
-	}
 	memset(req, 0, sizeof(*req));
 
-	size = min(sizeof(*req), size);
+	size = min(sizeof(*req), (size_t)*(u16 *)info->buffer.pointer);
 	memcpy(req, info->buffer.pointer, size);
 	DRM_DEBUG_DRIVER("SBIOS pending requests: %#x\n", req->pending);
 
 	count = hweight32(req->pending);
 
-out:
 	kfree(info);
 	return count;
 }
Signature · 1 line
2.53.0
author maintainer
#41 lore raw

PATCH 36/2857 drm/amd/pm: validate vega10 profile mode inputs

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Lijo Lazar <[email protected]>

[ Upstream commit bf939f2a1687ef4ab815640096357f8ef5bd5fb6 ]

Check for out of range profile modes and custom params that exceed 8 bits.

---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +9 -0
index 22ac8daabb065..990962e81d25f 100644
@@ -5405,6 +5405,11 @@ static int vega10_set_power_profile_mode(struct pp_hwmgr *hwmgr, long *input, ui
 	uint8_t min_active_level;
 	uint32_t power_profile_mode = input[size];
 
+	if (power_profile_mode > PP_SMC_POWER_PROFILE_CUSTOM) {
+		pr_err("Invalid power profile mode %u\n", power_profile_mode);
+		return -EINVAL;
+	}
+
 	if (power_profile_mode == PP_SMC_POWER_PROFILE_CUSTOM) {
 		if (size != 0 && size != 4)
 			return -EINVAL;
@@ -5420,6 +5425,10 @@ static int vega10_set_power_profile_mode(struct pp_hwmgr *hwmgr, long *input, ui
 				return -EINVAL;
 		}
 
+		if ((input[0] & ~0xFF) || (input[1] & ~0xFF) ||
+		    (input[2] & ~0xFF) || (input[3] & ~0xFF))
+			return -EINVAL;
+
 		data->custom_profile_mode[0] = busy_set_point = input[0];
 		data->custom_profile_mode[1] = FPS = input[1];
 		data->custom_profile_mode[2] = use_rlc_busy = input[2];
Signature · 1 line
2.53.0
author maintainer
#42 lore raw

PATCH 37/2857 drm/amdgpu: Support some Barco AMD based graphics adapters

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Matthew Jacob <[email protected]>

[ Upstream commit 3dc4d68ee26a7ac12069ff0562ad8935106c79b6 ]

These adapters typically are only supported by Barco on the Windows platform. However, with these changes in the linux driver, multiple monitor support should work correctly.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4 -0
index 7a19c3e73209e..67b5d0017fd04 100644
@@ -1763,6 +1763,7 @@ static const struct pci_device_id pciidlist[] = {
 	{0x1002, 0x6646, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|AMD_IS_MOBILITY},
 	{0x1002, 0x6647, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|AMD_IS_MOBILITY},
 	{0x1002, 0x6649, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE},
+	{0x1002, 0x664D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE},
 	{0x1002, 0x6650, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE},
 	{0x1002, 0x6651, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE},
 	{0x1002, 0x6658, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE},
@@ -1832,6 +1833,7 @@ static const struct pci_device_id pciidlist[] = {
 	{0x1002, 0x6930, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TONGA},
 	{0x1002, 0x6938, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TONGA},
 	{0x1002, 0x6939, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TONGA},
+	{0x1002, 0x693B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TONGA},
 	/* fiji */
 	{0x1002, 0x7300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_FIJI},
 	{0x1002, 0x730F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_FIJI},
@@ -1860,6 +1862,7 @@ static const struct pci_device_id pciidlist[] = {
 	{0x1002, 0x67C4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
 	{0x1002, 0x67C7, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
 	{0x1002, 0x67D0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
+	{0x1002, 0x67D4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
 	{0x1002, 0x67DF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
 	{0x1002, 0x67C8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
 	{0x1002, 0x67C9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
@@ -1873,6 +1876,7 @@ static const struct pci_device_id pciidlist[] = {
 	{0x1002, 0x6985, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
 	{0x1002, 0x6986, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
 	{0x1002, 0x6987, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
+	{0x1002, 0x698F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
 	{0x1002, 0x6995, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
 	{0x1002, 0x6997, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
 	{0x1002, 0x699F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
Signature · 1 line
2.53.0
author maintainer
#43 lore raw

PATCH 38/2857 drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Yang Wang <[email protected]>

[ Upstream commit 3a8d8e0b7f61cd759d5d4870b6220161f8a5b114 ]

The Vega hwmgr PowerPlay table parsers read fixed table fields, state array entries, or SMC PPT fields before validating that the VBIOS table buffer covers those structures. A truncated table can therefore lead to out-of-bounds reads during hwmgr initialization.

Reject tables smaller than the fixed PowerPlay table. For Vega10, also validate the state array offset and entry range before dereferencing the state array.

---
 .../powerplay/hwmgr/vega10_processpptables.c  | 59 ++++++++++++-------
 .../powerplay/hwmgr/vega12_processpptables.c  |  7 +++
 .../powerplay/hwmgr/vega20_processpptables.c  |  7 +++
 3 files changed, 52 insertions(+), 21 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c +38 -21
index 95b988823f50f..bc75f09112cda 100644
@@ -64,14 +64,17 @@ static const void *get_powerplay_table(struct pp_hwmgr *hwmgr)
 	return table_address;
 }
 
-static int check_powerplay_tables(
-		struct pp_hwmgr *hwmgr,
-		const ATOM_Vega10_POWERPLAYTABLE *powerplay_table)
+static int get_vega10_state_array(struct pp_hwmgr *hwmgr,
+	const ATOM_Vega10_POWERPLAYTABLE *powerplay_table,
+	const ATOM_Vega10_State_Array **state_array)
 {
 	const ATOM_Vega10_State_Array *state_arrays;
+	u16 state_array_offset;
+	size_t state_array_size;
+	size_t table_size = hwmgr->soft_pp_table_size;
 
-	state_arrays = (ATOM_Vega10_State_Array *)(((unsigned long)powerplay_table) +
-		le16_to_cpu(powerplay_table->usStateArrayOffset));
+	PP_ASSERT_WITH_CODE((table_size >= sizeof(*powerplay_table)),
+			    "Invalid PowerPlay Table!", return -1);
 
 	PP_ASSERT_WITH_CODE((powerplay_table->sHeader.format_revision >=
 			ATOM_Vega10_TABLE_REVISION_VEGA10),
@@ -80,12 +83,34 @@ static int check_powerplay_tables(
 		"State table is not set!", return -1);
 	PP_ASSERT_WITH_CODE(powerplay_table->sHeader.structuresize > 0,
 		"Invalid PowerPlay Table!", return -1);
+
+	state_array_offset = le16_to_cpu(powerplay_table->usStateArrayOffset);
+	PP_ASSERT_WITH_CODE((state_array_offset <=
+			     table_size - sizeof(*state_arrays)),
+			    "Invalid PowerPlay Table!", return -1);
+
+	state_arrays = (ATOM_Vega10_State_Array *)(((unsigned long)powerplay_table) +
+		state_array_offset);
 	PP_ASSERT_WITH_CODE(state_arrays->ucNumEntries > 0,
 		"Invalid PowerPlay Table!", return -1);
 
+	state_array_size = struct_size(state_arrays, states, state_arrays->ucNumEntries);
+	PP_ASSERT_WITH_CODE((state_array_size <= table_size - state_array_offset),
+			    "Invalid PowerPlay Table!", return -1);
+
+	*state_array = state_arrays;
+
 	return 0;
 }
 
+static int check_powerplay_tables(struct pp_hwmgr *hwmgr,
+	const ATOM_Vega10_POWERPLAYTABLE *powerplay_table)
+{
+	const ATOM_Vega10_State_Array *state_arrays;
+
+	return get_vega10_state_array(hwmgr, powerplay_table, &state_arrays);
+}
+
 static int set_platform_caps(struct pp_hwmgr *hwmgr, uint32_t powerplay_caps)
 {
 	set_hw_cap(
@@ -1250,15 +1275,14 @@ int vega10_get_number_of_powerplay_table_entries(struct pp_hwmgr *hwmgr)
 {
 	const ATOM_Vega10_State_Array *state_arrays;
 	const ATOM_Vega10_POWERPLAYTABLE *pp_table = get_powerplay_table(hwmgr);
+	int result;
 
 	PP_ASSERT_WITH_CODE((pp_table != NULL),
 			"Missing PowerPlay Table!", return -1);
-	PP_ASSERT_WITH_CODE((pp_table->sHeader.format_revision >=
-			ATOM_Vega10_TABLE_REVISION_VEGA10),
-			"Incorrect PowerPlay table revision!", return -1);
 
-	state_arrays = (ATOM_Vega10_State_Array *)(((unsigned long)pp_table) +
-			le16_to_cpu(pp_table->usStateArrayOffset));
+	result = get_vega10_state_array(hwmgr, pp_table, &state_arrays);
+	PP_ASSERT_WITH_CODE((result == 0),
+			    "Invalid PowerPlay Table State Array.", return result);
 
 	return (uint32_t)(state_arrays->ucNumEntries);
 }
@@ -1309,17 +1333,11 @@ int vega10_get_powerplay_table_entry(struct pp_hwmgr *hwmgr,
 
 	if (pp_table->sHeader.format_revision >=
 			ATOM_Vega10_TABLE_REVISION_VEGA10) {
-		state_arrays = (ATOM_Vega10_State_Array *)
-				(((unsigned long)pp_table) +
-				le16_to_cpu(pp_table->usStateArrayOffset));
-
-		PP_ASSERT_WITH_CODE(pp_table->usStateArrayOffset > 0,
-				"Invalid PowerPlay Table State Array Offset.",
-				return -1);
-		PP_ASSERT_WITH_CODE(state_arrays->ucNumEntries > 0,
+		result = get_vega10_state_array(hwmgr, pp_table, &state_arrays);
+		PP_ASSERT_WITH_CODE((result == 0),
 				"Invalid PowerPlay Table State Array.",
-				return -1);
-		PP_ASSERT_WITH_CODE((entry_index <= state_arrays->ucNumEntries),
+				return result);
+		PP_ASSERT_WITH_CODE((entry_index < state_arrays->ucNumEntries),
 				"Invalid PowerPlay Table State Array Entry.",
 				return -1);
 
@@ -1361,4 +1379,3 @@ int vega10_baco_set_cap(struct pp_hwmgr *hwmgr)
 			PHM_PlatformCaps_BACO);
 	return result;
 }
-
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c +7 -0
index bd54fbd393b97..464ae9eed73a8 100644
@@ -65,6 +65,13 @@ static int check_powerplay_tables(
 		struct pp_hwmgr *hwmgr,
 		const ATOM_Vega12_POWERPLAYTABLE *powerplay_table)
 {
+	size_t smc_pptable_size =
+		offsetofend(ATOM_Vega12_POWERPLAYTABLE, smcPPTable);
+	size_t table_size = hwmgr->soft_pp_table_size;
+
+	PP_ASSERT_WITH_CODE((table_size >= smc_pptable_size),
+			    "Invalid PowerPlay Table!", return -1);
+
 	PP_ASSERT_WITH_CODE((powerplay_table->sHeader.format_revision >=
 		ATOM_VEGA12_TABLE_REVISION_VEGA12),
 		"Unsupported PPTable format!", return -1);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c +7 -0
index 1f90825394575..20af10dda2e81 100644
@@ -639,6 +639,13 @@ static int check_powerplay_tables(
 		struct pp_hwmgr *hwmgr,
 		const ATOM_Vega20_POWERPLAYTABLE *powerplay_table)
 {
+	size_t smc_pptable_size =
+		offsetofend(ATOM_Vega20_POWERPLAYTABLE, smcPPTable);
+	size_t table_size = hwmgr->soft_pp_table_size;
+
+	PP_ASSERT_WITH_CODE((table_size >= smc_pptable_size),
+			    "Invalid PowerPlay Table!", return -1);
+
 	PP_ASSERT_WITH_CODE((powerplay_table->sHeader.format_revision >=
 		ATOM_VEGA20_TABLE_REVISION_VEGA20),
 		"Unsupported PPTable format!", return -1);
Signature · 1 line
2.53.0
author maintainer
#44 lore raw

PATCH 39/2857 drm/amd/pm: Validate pp_table header before reading size

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Yang Wang <[email protected]>

[ Upstream commit a17e79d01f22182a9fcbe79fcbe2ad1477d43e0f ]

smu_sys_set_pp_table() reads usStructureSize from the uploaded pp_table buffer before validating that the buffer contains a complete ATOM_COMMON_TABLE_HEADER. A short write can therefore make the driver read past the supplied sysfs buffer.

Reject empty or header-short uploads before dereferencing the header pointer.
Keep the existing structure-size check for the full uploaded table.

---
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +11 -8
index 3d7f34a55180a..e7b7c8605b8a8 100644
@@ -505,25 +505,28 @@ static int smu_sys_set_pp_table(void *handle,
 {
 	struct smu_context *smu = handle;
 	struct smu_table_context *smu_table = &smu->smu_table;
-	ATOM_COMMON_TABLE_HEADER *header = (ATOM_COMMON_TABLE_HEADER *)buf;
+	ATOM_COMMON_TABLE_HEADER *header;
+	void *hardcode_pptable;
 	int ret = 0;
 
 	if (!smu->pm_enabled || !smu->adev->pm.dpm_enabled)
 		return -EOPNOTSUPP;
 
+	if (!buf || size < sizeof(*header))
+		return -EINVAL;
+
+	header = (ATOM_COMMON_TABLE_HEADER *)buf;
 	if (header->usStructureSize != size) {
 		dev_err(smu->adev->dev, "pp table size not matched !\n");
 		return -EIO;
 	}
 
-	if (!smu_table->hardcode_pptable || smu_table->power_play_table_size < size) {
-		kfree(smu_table->hardcode_pptable);
-		smu_table->hardcode_pptable = kzalloc(size, GFP_KERNEL);
-		if (!smu_table->hardcode_pptable)
-			return -ENOMEM;
-	}
+	hardcode_pptable = kmemdup(buf, size, GFP_KERNEL);
+	if (!hardcode_pptable)
+		return -ENOMEM;
 
-	memcpy(smu_table->hardcode_pptable, buf, size);
+	kfree(smu_table->hardcode_pptable);
+	smu_table->hardcode_pptable = hardcode_pptable;
 	smu_table->power_play_table = smu_table->hardcode_pptable;
 	smu_table->power_play_table_size = size;
 
Signature · 1 line
2.53.0
author maintainer
#45 lore raw

PATCH 40/2857 drm/amd/pm: Use uploaded size for legacy custom PPTable

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Yang Wang <[email protected]>

[ Upstream commit 055a40c32f3a2dcd4d1a6f85ff4c231cf35f1b53 ]

The legacy powerplay path used to allocate hardcode_pp_table from the original VBIOS PPTable size, copy only the uploaded bytes into it, and keep soft_pp_table_size unchanged. If a custom PPTable is shorter than the original table, later code can still treat the stale tail as valid table data.

Treat the uploaded buffer as the complete custom PPTable: duplicate the uploaded buffer directly, replace hardcode_pp_table atomically, and set soft_pp_table_size to the uploaded size.

---
 .../gpu/drm/amd/pm/powerplay/amd_powerplay.c  | 21 +++++++------------
 1 file changed, 8 insertions(+), 13 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c +8 -13
index e4494d963e356..7952371721d3e 100644
@@ -676,25 +676,20 @@ static int amd_powerplay_reset(void *handle)
 static int pp_dpm_set_pp_table(void *handle, const char *buf, size_t size)
 {
 	struct pp_hwmgr *hwmgr = handle;
+	void *hardcode_pp_table;
 	int ret = -ENOMEM;
 
-	if (!hwmgr || !hwmgr->pm_en)
-		return -EINVAL;
-
-	if (size > hwmgr->soft_pp_table_size)
+	if (!hwmgr || !hwmgr->pm_en || !buf || !size || size > U32_MAX)
 		return -EINVAL;
 
-	if (!hwmgr->hardcode_pp_table) {
-		hwmgr->hardcode_pp_table = kmemdup(hwmgr->soft_pp_table,
-						   hwmgr->soft_pp_table_size,
-						   GFP_KERNEL);
-		if (!hwmgr->hardcode_pp_table)
-			return ret;
-	}
-
-	memcpy(hwmgr->hardcode_pp_table, buf, size);
+	hardcode_pp_table = kmemdup(buf, size, GFP_KERNEL);
+	if (!hardcode_pp_table)
+		return ret;
 
+	kfree(hwmgr->hardcode_pp_table);
+	hwmgr->hardcode_pp_table = hardcode_pp_table;
 	hwmgr->soft_pp_table = hwmgr->hardcode_pp_table;
+	hwmgr->soft_pp_table_size = size;
 
 	ret = amd_powerplay_reset(handle);
 	if (ret)
Signature · 1 line
2.53.0
author maintainer
#46 lore raw

PATCH 41/2857 drm/amd/pm: Validate Tonga PowerPlay state array bounds

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Yang Wang <[email protected]>

[ Upstream commit 1ac24df78c566d767a5ef05a1fe0ecc55bac248d ]

process_pptables_v1_0.c builds the Tonga state array pointer from usStateArrayOffset before checking that the table buffer covers the referenced data. A truncated PowerPlay table can therefore lead to out-of-bounds reads while validating the state array.

Validate the fixed table size first, then check the state array offset and entry range before dereferencing the state array.

---
 .../powerplay/hwmgr/process_pptables_v1_0.c   | 62 ++++++++++++-------
 1 file changed, 40 insertions(+), 22 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c +40 -22
index 17882f8dfdd34..14bc6beb91b33 100644
@@ -1115,15 +1115,17 @@ static int init_thermal_controller(
  * @powerplay_table: Pointer to the PowerPlay Table.
  * Exception:  2 if the powerplay table is incorrect.
  */
-static int check_powerplay_tables(
-		struct pp_hwmgr *hwmgr,
-		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table
-		)
+static int get_tonga_state_array(struct pp_hwmgr *hwmgr,
+	const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+	const ATOM_Tonga_State_Array **state_array)
 {
 	const ATOM_Tonga_State_Array *state_arrays;
+	u16 state_array_offset;
+	size_t state_array_size;
+	size_t table_size = hwmgr->soft_pp_table_size;
 
-	state_arrays = (ATOM_Tonga_State_Array *)(((unsigned long)powerplay_table) +
-		le16_to_cpu(powerplay_table->usStateArrayOffset));
+	PP_ASSERT_WITH_CODE((table_size >= sizeof(*powerplay_table)),
+			    "Invalid PowerPlay Table!", return -1);
 
 	PP_ASSERT_WITH_CODE((ATOM_Tonga_TABLE_REVISION_TONGA <=
 		powerplay_table->sHeader.ucTableFormatRevision),
@@ -1132,12 +1134,34 @@ static int check_powerplay_tables(
 		"State table is not set!", return -1);
 	PP_ASSERT_WITH_CODE((0 < powerplay_table->sHeader.usStructureSize),
 		"Invalid PowerPlay Table!", return -1);
+
+	state_array_offset = le16_to_cpu(powerplay_table->usStateArrayOffset);
+	PP_ASSERT_WITH_CODE((state_array_offset <=
+			     table_size - sizeof(*state_arrays)),
+			    "Invalid PowerPlay Table!", return -1);
+
+	state_arrays = (ATOM_Tonga_State_Array *)(((unsigned long)powerplay_table) +
+		state_array_offset);
 	PP_ASSERT_WITH_CODE((0 < state_arrays->ucNumEntries),
 		"Invalid PowerPlay Table!", return -1);
 
+	state_array_size = struct_size(state_arrays, entries, state_arrays->ucNumEntries);
+	PP_ASSERT_WITH_CODE((state_array_size <= table_size - state_array_offset),
+			    "Invalid PowerPlay Table!", return -1);
+
+	*state_array = state_arrays;
+
 	return 0;
 }
 
+static int check_powerplay_tables(struct pp_hwmgr *hwmgr,
+	const ATOM_Tonga_POWERPLAYTABLE *powerplay_table)
+{
+	const ATOM_Tonga_State_Array *state_arrays;
+
+	return get_tonga_state_array(hwmgr, powerplay_table, &state_arrays);
+}
+
 static int pp_tables_v1_0_initialize(struct pp_hwmgr *hwmgr)
 {
 	int result = 0;
@@ -1241,17 +1265,16 @@ const struct pp_table_func pptable_v1_0_funcs = {
 
 int get_number_of_powerplay_table_entries_v1_0(struct pp_hwmgr *hwmgr)
 {
-	ATOM_Tonga_State_Array const *state_arrays;
+	const ATOM_Tonga_State_Array *state_arrays;
 	const ATOM_Tonga_POWERPLAYTABLE *pp_table = get_powerplay_table(hwmgr);
+	int result;
 
 	PP_ASSERT_WITH_CODE((NULL != pp_table),
 			"Missing PowerPlay Table!", return -1);
-	PP_ASSERT_WITH_CODE((pp_table->sHeader.ucTableFormatRevision >=
-			ATOM_Tonga_TABLE_REVISION_TONGA),
-			"Incorrect PowerPlay table revision!", return -1);
 
-	state_arrays = (ATOM_Tonga_State_Array *)(((unsigned long)pp_table) +
-			le16_to_cpu(pp_table->usStateArrayOffset));
+	result = get_tonga_state_array(hwmgr, pp_table, &state_arrays);
+	PP_ASSERT_WITH_CODE((result == 0),
+			    "Invalid PowerPlay Table State Array.", return result);
 
 	return (uint32_t)(state_arrays->ucNumEntries);
 }
@@ -1382,15 +1405,11 @@ int get_powerplay_table_entry_v1_0(struct pp_hwmgr *hwmgr,
 
 	if (pp_table->sHeader.ucTableFormatRevision >=
 			ATOM_Tonga_TABLE_REVISION_TONGA) {
-		state_arrays = (ATOM_Tonga_State_Array *)(((unsigned long)pp_table) +
-				le16_to_cpu(pp_table->usStateArrayOffset));
-
-		PP_ASSERT_WITH_CODE((0 < pp_table->usStateArrayOffset),
-				"Invalid PowerPlay Table State Array Offset.", return -1);
-		PP_ASSERT_WITH_CODE((0 < state_arrays->ucNumEntries),
-				"Invalid PowerPlay Table State Array.", return -1);
-		PP_ASSERT_WITH_CODE((entry_index <= state_arrays->ucNumEntries),
-				"Invalid PowerPlay Table State Array Entry.", return -1);
+		result = get_tonga_state_array(hwmgr, pp_table, &state_arrays);
+		PP_ASSERT_WITH_CODE((result == 0),
+				    "Invalid PowerPlay Table State Array.", return result);
+		PP_ASSERT_WITH_CODE((entry_index < state_arrays->ucNumEntries),
+				    "Invalid PowerPlay Table State Array Entry.", return -1);
 
 		state_entry = GET_FLEXIBLE_ARRAY_MEMBER_ADDR(
 						ATOM_Tonga_State, entries,
@@ -1416,4 +1435,3 @@ int get_powerplay_table_entry_v1_0(struct pp_hwmgr *hwmgr,
 
 	return result;
 }
-
Signature · 1 line
2.53.0
author maintainer
#47 lore raw

PATCH 42/2857 drm/amd/pm: Guard VBIOS AC timing table walk

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Xiang Liu <[email protected]>

[ Upstream commit 2bf6867e5953a140fc91c3159987656e44ed29fb ]

Reject AC timing blocks with a stride smaller than a dword before walking VBIOS data. A zero stride can otherwise keep reg_data pinned on a nonmatching MEM_ID forever.

Also bound the data-block and END marker reads by the returned VRAM_Info table size so malformed index/data sizes do not push the timing walk past the table.

---
 .../drm/amd/pm/powerplay/hwmgr/ppatomctrl.c   | 28 +++++++++++++++----
 1 file changed, 22 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c +22 -6
index 640350bbd9085..e981cc3d2f1a5 100644
@@ -47,16 +47,22 @@ union voltage_object_info {
 static int atomctrl_retrieve_ac_timing(
 		uint8_t index,
 		ATOM_INIT_REG_BLOCK *reg_block,
+		u8 *table_end,
 		pp_atomctrl_mc_reg_table *table)
 {
 	uint32_t i, j;
+	u16 stride = le16_to_cpu(reg_block->usRegDataBlkSize);
 	uint8_t tmem_id;
 	ATOM_MEMORY_SETTING_DATA_BLOCK *reg_data = (ATOM_MEMORY_SETTING_DATA_BLOCK *)
 		((uint8_t *)reg_block + (2 * sizeof(uint16_t)) + le16_to_cpu(reg_block->usRegIndexTblSize));
 
 	uint8_t num_ranges = 0;
 
-	while (*(uint32_t *)reg_data != END_OF_REG_DATA_BLOCK &&
+	if (stride < sizeof(uint32_t))
+		return -EINVAL;
+
+	while ((uint8_t *)reg_data + sizeof(uint32_t) <= table_end &&
+	       *(uint32_t *)reg_data != END_OF_REG_DATA_BLOCK &&
 			num_ranges < VBIOS_MAX_AC_TIMING_ENTRIES) {
 		tmem_id = (uint8_t)((*(uint32_t *)reg_data & MEM_ID_MASK) >> MEM_ID_SHIFT);
 
@@ -68,6 +74,10 @@ static int atomctrl_retrieve_ac_timing(
 			for (i = 0, j = 1; i < table->last; i++) {
 				if ((table->mc_reg_address[i].uc_pre_reg_data &
 							LOW_NIBBLE_MASK) == DATA_FROM_TABLE) {
+					if ((uint8_t *)reg_data +
+					    (j + 1) * sizeof(uint32_t) > table_end)
+						return -EINVAL;
+
 					table->mc_reg_table_entry[num_ranges].mc_data[i] =
 						(uint32_t)*((uint32_t *)reg_data + j);
 					j++;
@@ -82,11 +92,13 @@ static int atomctrl_retrieve_ac_timing(
 		}
 
 		reg_data = (ATOM_MEMORY_SETTING_DATA_BLOCK *)
-			((uint8_t *)reg_data + le16_to_cpu(reg_block->usRegDataBlkSize)) ;
+			((uint8_t *)reg_data + stride);
 	}
 
-	PP_ASSERT_WITH_CODE((*(uint32_t *)reg_data == END_OF_REG_DATA_BLOCK),
-			"Invalid VramInfo table.", return -1);
+	if ((uint8_t *)reg_data + sizeof(uint32_t) > table_end ||
+	    *(uint32_t *)reg_data != END_OF_REG_DATA_BLOCK)
+		return -EINVAL;
+
 	table->num_entries = num_ranges;
 
 	return 0;
@@ -137,6 +149,7 @@ int atomctrl_initialize_mc_reg_table(
 {
 	ATOM_VRAM_INFO_HEADER_V2_1 *vram_info;
 	ATOM_INIT_REG_BLOCK *reg_block;
+	u8 *table_end;
 	int result = 0;
 	u8 frev, crev;
 	u16 size;
@@ -158,6 +171,7 @@ int atomctrl_initialize_mc_reg_table(
 	}
 
 	if (0 == result) {
+		table_end = (uint8_t *)vram_info + size;
 		reg_block = (ATOM_INIT_REG_BLOCK *)
 			((uint8_t *)vram_info + le16_to_cpu(vram_info->usMemClkPatchTblOffset));
 		result = atomctrl_set_mc_reg_address_table(reg_block, table);
@@ -165,7 +179,7 @@ int atomctrl_initialize_mc_reg_table(
 
 	if (0 == result) {
 		result = atomctrl_retrieve_ac_timing(module_index,
-					reg_block, table);
+					reg_block, table_end, table);
 	}
 
 	return result;
@@ -178,6 +192,7 @@ int atomctrl_initialize_mc_reg_table_v2_2(
 {
 	ATOM_VRAM_INFO_HEADER_V2_2 *vram_info;
 	ATOM_INIT_REG_BLOCK *reg_block;
+	u8 *table_end;
 	int result = 0;
 	u8 frev, crev;
 	u16 size;
@@ -199,6 +214,7 @@ int atomctrl_initialize_mc_reg_table_v2_2(
 	}
 
 	if (0 == result) {
+		table_end = (uint8_t *)vram_info + size;
 		reg_block = (ATOM_INIT_REG_BLOCK *)
 			((uint8_t *)vram_info + le16_to_cpu(vram_info->usMemClkPatchTblOffset));
 		result = atomctrl_set_mc_reg_address_table(reg_block, table);
@@ -206,7 +222,7 @@ int atomctrl_initialize_mc_reg_table_v2_2(
 
 	if (0 == result) {
 		result = atomctrl_retrieve_ac_timing(module_index,
-					reg_block, table);
+					reg_block, table_end, table);
 	}
 
 	return result;
Signature · 1 line
2.53.0
author maintainer
#48 lore raw

PATCH 43/2857 drm/amd/pm: Validate Tonga PPTable subtable bounds

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Yang Wang <[email protected]>

[ Upstream commit 53ef33c084c5778cc2dcd1efff25e31b6e231141 ]

v1:
Tonga PPTable parsing also relies on VBIOS offsets, revision fields and entry counts for several subtables. Malformed data can cause out-of-bounds reads, while voltage lookup tables can overrun their fixed-size destination arrays.

Add common bounds helpers and validate fixed subtables, dynamic entry arrays and revision-specific layouts before consuming voltage lookup, dependency, PCIE, power-tune, hard-limit, thermal, fan, GPIO, PPM and VCE state data.

v2:
correct to handle get_tonga_ppm_table() return value.

---
 .../powerplay/hwmgr/process_pptables_v1_0.c   | 606 +++++++++++++++---
 1 file changed, 521 insertions(+), 85 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c +521 -85
index 14bc6beb91b33..02cdcea0bafce 100644
@@ -150,6 +150,368 @@ static const void *get_powerplay_table(struct pp_hwmgr *hwmgr)
 	return table_address;
 }
 
+static bool tonga_pp_table_has_space(struct pp_hwmgr *hwmgr, size_t offset,
+				     size_t size)
+{
+	size_t table_size = hwmgr->soft_pp_table_size;
+
+	return offset <= table_size && size <= table_size - offset;
+}
+
+static int get_tonga_subtable(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		u16 table_offset, size_t table_size, const void **table)
+{
+	PP_ASSERT_WITH_CODE((table_offset != 0),
+			    "Invalid PowerPlay Table!", return -1);
+	PP_ASSERT_WITH_CODE((tonga_pp_table_has_space(hwmgr, table_offset,
+						      table_size)),
+			    "Invalid PowerPlay Table!", return -1);
+
+	*table = (const void *)(((unsigned long)powerplay_table) + table_offset);
+
+	return 0;
+}
+
+static int validate_tonga_table_entries(struct pp_hwmgr *hwmgr,
+		u16 table_offset, size_t entries_offset,
+		u8 num_entries, size_t entry_size)
+{
+	size_t table_size;
+
+	PP_ASSERT_WITH_CODE((num_entries != 0),
+			    "Invalid PowerPlay Table!", return -1);
+
+	table_size = entries_offset + num_entries * entry_size;
+	PP_ASSERT_WITH_CODE((tonga_pp_table_has_space(hwmgr, table_offset,
+						      table_size)),
+			    "Invalid PowerPlay Table!", return -1);
+
+	return 0;
+}
+
+static int get_tonga_voltage_lookup_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		u16 table_offset, uint32_t max_levels,
+		const ATOM_Tonga_Voltage_Lookup_Table **lookup_table)
+{
+	const ATOM_Tonga_Voltage_Lookup_Table *table;
+	size_t table_size;
+	int ret;
+
+	ret = get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				 sizeof(*table), (const void **)&table);
+	if (ret)
+		return ret;
+
+	PP_ASSERT_WITH_CODE((table->ucNumEntries != 0 &&
+			     table->ucNumEntries <= max_levels),
+			    "Invalid PowerPlay Table!", return -1);
+
+	table_size = offsetof(ATOM_Tonga_Voltage_Lookup_Table, entries) +
+		table->ucNumEntries * sizeof(ATOM_Tonga_Voltage_Lookup_Record);
+	PP_ASSERT_WITH_CODE((tonga_pp_table_has_space(hwmgr, table_offset,
+						      table_size)),
+			    "Invalid PowerPlay Table!", return -1);
+
+	*lookup_table = table;
+
+	return 0;
+}
+
+static int get_tonga_mclk_dependency_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		const ATOM_Tonga_MCLK_Dependency_Table **mclk_dep_table)
+{
+	const ATOM_Tonga_MCLK_Dependency_Table *table;
+	u16 table_offset;
+	int ret;
+
+	table_offset = le16_to_cpu(powerplay_table->usMclkDependencyTableOffset);
+	ret = get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				 sizeof(*table), (const void **)&table);
+	if (ret)
+		return ret;
+
+	ret = validate_tonga_table_entries(hwmgr, table_offset,
+					   offsetof(ATOM_Tonga_MCLK_Dependency_Table,
+						    entries),
+					   table->ucNumEntries,
+					   sizeof(ATOM_Tonga_MCLK_Dependency_Record));
+	if (ret)
+		return ret;
+
+	*mclk_dep_table = table;
+
+	return 0;
+}
+
+static int get_tonga_mm_dependency_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		const ATOM_Tonga_MM_Dependency_Table **mm_dep_table)
+{
+	const ATOM_Tonga_MM_Dependency_Table *table;
+	u16 table_offset;
+	int ret;
+
+	table_offset = le16_to_cpu(powerplay_table->usMMDependencyTableOffset);
+	ret = get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				 sizeof(*table), (const void **)&table);
+	if (ret)
+		return ret;
+
+	ret = validate_tonga_table_entries(hwmgr, table_offset,
+					   offsetof(ATOM_Tonga_MM_Dependency_Table,
+						    entries),
+					   table->ucNumEntries,
+					   sizeof(ATOM_Tonga_MM_Dependency_Record));
+	if (ret)
+		return ret;
+
+	*mm_dep_table = table;
+
+	return 0;
+}
+
+static int get_tonga_sclk_dependency_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		const PPTable_Generic_SubTable_Header **sclk_dep_table)
+{
+	const PPTable_Generic_SubTable_Header *header;
+	u16 table_offset;
+	size_t entries_offset;
+	size_t entry_size;
+	u8 num_entries;
+	int ret;
+
+	table_offset = le16_to_cpu(powerplay_table->usSclkDependencyTableOffset);
+	ret = get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				 sizeof(*header), (const void **)&header);
+	if (ret)
+		return ret;
+
+	if (header->ucRevId < 1) {
+		const ATOM_Tonga_SCLK_Dependency_Table *table =
+			(const ATOM_Tonga_SCLK_Dependency_Table *)header;
+
+		entries_offset = offsetof(ATOM_Tonga_SCLK_Dependency_Table, entries);
+		entry_size = sizeof(ATOM_Tonga_SCLK_Dependency_Record);
+		num_entries = table->ucNumEntries;
+	} else {
+		const ATOM_Polaris_SCLK_Dependency_Table *table =
+			(const ATOM_Polaris_SCLK_Dependency_Table *)header;
+
+		entries_offset = offsetof(ATOM_Polaris_SCLK_Dependency_Table, entries);
+		entry_size = sizeof(ATOM_Polaris_SCLK_Dependency_Record);
+		num_entries = table->ucNumEntries;
+	}
+
+	ret = validate_tonga_table_entries(hwmgr, table_offset, entries_offset,
+					   num_entries, entry_size);
+	if (ret)
+		return ret;
+
+	*sclk_dep_table = header;
+
+	return 0;
+}
+
+static int get_tonga_pcie_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		const PPTable_Generic_SubTable_Header **pcie_table)
+{
+	const PPTable_Generic_SubTable_Header *header;
+	u16 table_offset;
+	size_t entries_offset;
+	size_t entry_size;
+	u8 num_entries;
+	int ret;
+
+	table_offset = le16_to_cpu(powerplay_table->usPCIETableOffset);
+	ret = get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				 sizeof(*header), (const void **)&header);
+	if (ret)
+		return ret;
+
+	if (header->ucRevId < 1) {
+		const ATOM_Tonga_PCIE_Table *table =
+			(const ATOM_Tonga_PCIE_Table *)header;
+
+		entries_offset = offsetof(ATOM_Tonga_PCIE_Table, entries);
+		entry_size = sizeof(ATOM_Tonga_PCIE_Record);
+		num_entries = table->ucNumEntries;
+	} else {
+		const ATOM_Polaris10_PCIE_Table *table =
+			(const ATOM_Polaris10_PCIE_Table *)header;
+
+		entries_offset = offsetof(ATOM_Polaris10_PCIE_Table, entries);
+		entry_size = sizeof(ATOM_Polaris10_PCIE_Record);
+		num_entries = table->ucNumEntries;
+	}
+
+	ret = validate_tonga_table_entries(hwmgr, table_offset, entries_offset,
+					   num_entries, entry_size);
+	if (ret)
+		return ret;
+
+	*pcie_table = header;
+
+	return 0;
+}
+
+static int get_tonga_hard_limit_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		const ATOM_Tonga_Hard_Limit_Table **hard_limit_table)
+{
+	const ATOM_Tonga_Hard_Limit_Table *table;
+	u16 table_offset;
+	int ret;
+
+	table_offset = le16_to_cpu(powerplay_table->usHardLimitTableOffset);
+	ret = get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				 sizeof(*table), (const void **)&table);
+	if (ret)
+		return ret;
+
+	ret = validate_tonga_table_entries(hwmgr, table_offset,
+					   offsetof(ATOM_Tonga_Hard_Limit_Table,
+						    entries),
+					   table->ucNumEntries,
+					   sizeof(ATOM_Tonga_Hard_Limit_Record));
+	if (ret)
+		return ret;
+
+	*hard_limit_table = table;
+
+	return 0;
+}
+
+static int get_tonga_thermal_controller_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		const ATOM_Tonga_Thermal_Controller **thermal_controller)
+{
+	u16 table_offset;
+
+	table_offset = le16_to_cpu(powerplay_table->usThermalControllerOffset);
+
+	return get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				  sizeof(**thermal_controller),
+				  (const void **)thermal_controller);
+}
+
+static int get_tonga_fan_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		const PPTable_Generic_SubTable_Header **fan_table)
+{
+	const PPTable_Generic_SubTable_Header *header;
+	u16 table_offset;
+	size_t table_size;
+	int ret;
+
+	table_offset = le16_to_cpu(powerplay_table->usFanTableOffset);
+	ret = get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				 sizeof(*header), (const void **)&header);
+	if (ret)
+		return ret;
+
+	if (header->ucRevId < 8)
+		table_size = sizeof(ATOM_Tonga_Fan_Table);
+	else if (header->ucRevId == 8)
+		table_size = sizeof(ATOM_Fiji_Fan_Table);
+	else
+		table_size = sizeof(ATOM_Polaris_Fan_Table);
+
+	PP_ASSERT_WITH_CODE((tonga_pp_table_has_space(hwmgr, table_offset,
+						      table_size)),
+			    "Invalid PowerPlay Table!", return -1);
+
+	*fan_table = header;
+
+	return 0;
+}
+
+static int get_tonga_power_tune_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		const PPTable_Generic_SubTable_Header **power_tune_table)
+{
+	const PPTable_Generic_SubTable_Header *header;
+	u16 table_offset;
+	size_t table_size;
+	int ret;
+
+	table_offset = le16_to_cpu(powerplay_table->usPowerTuneTableOffset);
+	ret = get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				 sizeof(*header), (const void **)&header);
+	if (ret)
+		return ret;
+
+	if (header->ucRevId < 3)
+		table_size = sizeof(ATOM_Tonga_PowerTune_Table);
+	else if (header->ucRevId < 4)
+		table_size = sizeof(ATOM_Fiji_PowerTune_Table);
+	else
+		table_size = sizeof(ATOM_Polaris_PowerTune_Table);
+
+	PP_ASSERT_WITH_CODE((tonga_pp_table_has_space(hwmgr, table_offset,
+						      table_size)),
+			    "Invalid PowerPlay Table!", return -1);
+
+	*power_tune_table = header;
+
+	return 0;
+}
+
+static int get_tonga_ppm_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		const ATOM_Tonga_PPM_Table **ppm_table)
+{
+	u16 table_offset;
+
+	table_offset = le16_to_cpu(powerplay_table->usPPMTableOffset);
+
+	return get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				  sizeof(**ppm_table), (const void **)ppm_table);
+}
+
+static int get_tonga_gpio_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		const ATOM_Tonga_GPIO_Table **gpio_table)
+{
+	u16 table_offset;
+
+	table_offset = le16_to_cpu(powerplay_table->usGPIOTableOffset);
+
+	return get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				  sizeof(**gpio_table), (const void **)gpio_table);
+}
+
+static int get_tonga_vce_state_table(struct pp_hwmgr *hwmgr,
+		const ATOM_Tonga_POWERPLAYTABLE *powerplay_table,
+		const ATOM_Tonga_VCE_State_Table **vce_state_table)
+{
+	const ATOM_Tonga_VCE_State_Table *table;
+	u16 table_offset;
+	int ret;
+
+	table_offset = le16_to_cpu(powerplay_table->usVCEStateTableOffset);
+	ret = get_tonga_subtable(hwmgr, powerplay_table, table_offset,
+				 sizeof(*table), (const void **)&table);
+	if (ret)
+		return ret;
+
+	ret = validate_tonga_table_entries(hwmgr, table_offset,
+					   offsetof(ATOM_Tonga_VCE_State_Table,
+						    entries),
+					   table->ucNumEntries,
+					   sizeof(ATOM_Tonga_VCE_State_Record));
+	if (ret)
+		return ret;
+
+	*vce_state_table = table;
+
+	return 0;
+}
+
 static int get_vddc_lookup_table(
 		struct pp_hwmgr	*hwmgr,
 		phm_ppt_v1_voltage_lookup_table	**lookup_table,
@@ -198,7 +560,7 @@ static int get_vddc_lookup_table(
  */
 static int get_platform_power_management_table(
 		struct pp_hwmgr *hwmgr,
-		ATOM_Tonga_PPM_Table *atom_ppm_table)
+		const ATOM_Tonga_PPM_Table *atom_ppm_table)
 {
 	struct phm_ppm_table *ptr = kzalloc(sizeof(*ptr), GFP_KERNEL);
 	struct phm_ppt_v1_information *pp_table_information =
@@ -246,7 +608,7 @@ static int init_dpm_2_parameters(
 {
 	int result = 0;
 	struct phm_ppt_v1_information *pp_table_information = (struct phm_ppt_v1_information *)(hwmgr->pptable);
-	ATOM_Tonga_PPM_Table *atom_ppm_table;
+	const ATOM_Tonga_PPM_Table *atom_ppm_table;
 	uint32_t disable_ppm = 0;
 	uint32_t disable_power_control = 0;
 
@@ -275,30 +637,39 @@ static int init_dpm_2_parameters(
 	}
 
 	if (0 != powerplay_table->usVddcLookupTableOffset) {
-		const ATOM_Tonga_Voltage_Lookup_Table *pVddcCACTable =
-			(ATOM_Tonga_Voltage_Lookup_Table *)(((unsigned long)powerplay_table) +
-			le16_to_cpu(powerplay_table->usVddcLookupTableOffset));
-
-		result = get_vddc_lookup_table(hwmgr,
-			&pp_table_information->vddc_lookup_table, pVddcCACTable, 16);
+		const ATOM_Tonga_Voltage_Lookup_Table *pVddcCACTable;
+
+		result = get_tonga_voltage_lookup_table(hwmgr, powerplay_table,
+				le16_to_cpu(powerplay_table->usVddcLookupTableOffset),
+				16, &pVddcCACTable);
+		if (!result)
+			result = get_vddc_lookup_table(hwmgr,
+				&pp_table_information->vddc_lookup_table,
+				pVddcCACTable, 16);
 	}
 
-	if (0 != powerplay_table->usVddgfxLookupTableOffset) {
-		const ATOM_Tonga_Voltage_Lookup_Table *pVddgfxCACTable =
-			(ATOM_Tonga_Voltage_Lookup_Table *)(((unsigned long)powerplay_table) +
-			le16_to_cpu(powerplay_table->usVddgfxLookupTableOffset));
+	if (!result && 0 != powerplay_table->usVddgfxLookupTableOffset) {
+		const ATOM_Tonga_Voltage_Lookup_Table *pVddgfxCACTable;
 
-		result = get_vddc_lookup_table(hwmgr,
-			&pp_table_information->vddgfx_lookup_table, pVddgfxCACTable, 16);
+		result = get_tonga_voltage_lookup_table(hwmgr, powerplay_table,
+				le16_to_cpu(powerplay_table->usVddgfxLookupTableOffset),
+				16, &pVddgfxCACTable);
+		if (!result)
+			result = get_vddc_lookup_table(hwmgr,
+				&pp_table_information->vddgfx_lookup_table,
+				pVddgfxCACTable, 16);
 	}
 
 	disable_ppm = 0;
 	if (0 == disable_ppm) {
-		atom_ppm_table = (ATOM_Tonga_PPM_Table *)
-			(((unsigned long)powerplay_table) + le16_to_cpu(powerplay_table->usPPMTableOffset));
-
 		if (0 != powerplay_table->usPPMTableOffset) {
-			if (get_platform_power_management_table(hwmgr, atom_ppm_table) == 0) {
+			int ret;
+
+			ret = get_tonga_ppm_table(hwmgr, powerplay_table,
+						  &atom_ppm_table);
+			if (!ret &&
+			    get_platform_power_management_table(hwmgr,
+							       atom_ppm_table) == 0) {
 				phm_cap_set(hwmgr->platform_descriptor.platformCaps,
 					PHM_PlatformCaps_EnablePlatformPowerManagement);
 			}
@@ -792,28 +1163,13 @@ static int init_clock_voltage_dependency(
 	int result = 0;
 	struct phm_ppt_v1_information *pp_table_information =
 		(struct phm_ppt_v1_information *)(hwmgr->pptable);
-
-	const ATOM_Tonga_MM_Dependency_Table *mm_dependency_table =
-		(const ATOM_Tonga_MM_Dependency_Table *)(((unsigned long) powerplay_table) +
-		le16_to_cpu(powerplay_table->usMMDependencyTableOffset));
-	const PPTable_Generic_SubTable_Header *pPowerTuneTable =
-		(const PPTable_Generic_SubTable_Header *)(((unsigned long) powerplay_table) +
-		le16_to_cpu(powerplay_table->usPowerTuneTableOffset));
-	const ATOM_Tonga_MCLK_Dependency_Table *mclk_dep_table =
-		(const ATOM_Tonga_MCLK_Dependency_Table *)(((unsigned long) powerplay_table) +
-		le16_to_cpu(powerplay_table->usMclkDependencyTableOffset));
-	const PPTable_Generic_SubTable_Header *sclk_dep_table =
-		(const PPTable_Generic_SubTable_Header *)(((unsigned long) powerplay_table) +
-		le16_to_cpu(powerplay_table->usSclkDependencyTableOffset));
-	const ATOM_Tonga_Hard_Limit_Table *pHardLimits =
-		(const ATOM_Tonga_Hard_Limit_Table *)(((unsigned long) powerplay_table) +
-		le16_to_cpu(powerplay_table->usHardLimitTableOffset));
-	const PPTable_Generic_SubTable_Header *pcie_table =
-		(const PPTable_Generic_SubTable_Header *)(((unsigned long) powerplay_table) +
-		le16_to_cpu(powerplay_table->usPCIETableOffset));
-	const ATOM_Tonga_GPIO_Table *gpio_table =
-		(const ATOM_Tonga_GPIO_Table *)(((unsigned long) powerplay_table) +
-		le16_to_cpu(powerplay_table->usGPIOTableOffset));
+	const ATOM_Tonga_MM_Dependency_Table *mm_dependency_table;
+	const PPTable_Generic_SubTable_Header *pPowerTuneTable;
+	const ATOM_Tonga_MCLK_Dependency_Table *mclk_dep_table;
+	const PPTable_Generic_SubTable_Header *sclk_dep_table;
+	const ATOM_Tonga_Hard_Limit_Table *pHardLimits;
+	const PPTable_Generic_SubTable_Header *pcie_table;
+	const ATOM_Tonga_GPIO_Table *gpio_table;
 
 	pp_table_information->vdd_dep_on_sclk = NULL;
 	pp_table_information->vdd_dep_on_mclk = NULL;
@@ -821,29 +1177,58 @@ static int init_clock_voltage_dependency(
 	pp_table_information->pcie_table = NULL;
 	pp_table_information->gpio_table = NULL;
 
-	if (powerplay_table->usMMDependencyTableOffset != 0)
-		result = get_mm_clock_voltage_table(hwmgr,
-		&pp_table_information->mm_dep_table, mm_dependency_table);
+	if (powerplay_table->usMMDependencyTableOffset != 0) {
+		result = get_tonga_mm_dependency_table(hwmgr, powerplay_table,
+						       &mm_dependency_table);
+		if (!result)
+			result = get_mm_clock_voltage_table(hwmgr,
+				&pp_table_information->mm_dep_table,
+				mm_dependency_table);
+	}
 
-	if (result == 0 && powerplay_table->usPowerTuneTableOffset != 0)
-		result = get_cac_tdp_table(hwmgr,
-		&pp_table_information->cac_dtp_table, pPowerTuneTable);
+	if (result == 0 && powerplay_table->usPowerTuneTableOffset != 0) {
+		result = get_tonga_power_tune_table(hwmgr, powerplay_table,
+						    &pPowerTuneTable);
+		if (!result)
+			result = get_cac_tdp_table(hwmgr,
+				&pp_table_information->cac_dtp_table,
+				pPowerTuneTable);
+	}
 
-	if (result == 0 && powerplay_table->usSclkDependencyTableOffset != 0)
-		result = get_sclk_voltage_dependency_table(hwmgr,
-		&pp_table_information->vdd_dep_on_sclk, sclk_dep_table);
+	if (result == 0 && powerplay_table->usSclkDependencyTableOffset != 0) {
+		result = get_tonga_sclk_dependency_table(hwmgr, powerplay_table,
+							 &sclk_dep_table);
+		if (!result)
+			result = get_sclk_voltage_dependency_table(hwmgr,
+				&pp_table_information->vdd_dep_on_sclk,
+				sclk_dep_table);
+	}
 
-	if (result == 0 && powerplay_table->usMclkDependencyTableOffset != 0)
-		result = get_mclk_voltage_dependency_table(hwmgr,
-		&pp_table_information->vdd_dep_on_mclk, mclk_dep_table);
+	if (result == 0 && powerplay_table->usMclkDependencyTableOffset != 0) {
+		result = get_tonga_mclk_dependency_table(hwmgr, powerplay_table,
+							 &mclk_dep_table);
+		if (!result)
+			result = get_mclk_voltage_dependency_table(hwmgr,
+				&pp_table_information->vdd_dep_on_mclk,
+				mclk_dep_table);
+	}
 
-	if (result == 0 && powerplay_table->usPCIETableOffset != 0)
-		result = get_pcie_table(hwmgr,
-		&pp_table_information->pcie_table, pcie_table);
+	if (result == 0 && powerplay_table->usPCIETableOffset != 0) {
+		result = get_tonga_pcie_table(hwmgr, powerplay_table,
+					      &pcie_table);
+		if (!result)
+			result = get_pcie_table(hwmgr,
+				&pp_table_information->pcie_table, pcie_table);
+	}
 
-	if (result == 0 && powerplay_table->usHardLimitTableOffset != 0)
-		result = get_hard_limits(hwmgr,
-		&pp_table_information->max_clock_voltage_on_dc, pHardLimits);
+	if (result == 0 && powerplay_table->usHardLimitTableOffset != 0) {
+		result = get_tonga_hard_limit_table(hwmgr, powerplay_table,
+						    &pHardLimits);
+		if (!result)
+			result = get_hard_limits(hwmgr,
+				&pp_table_information->max_clock_voltage_on_dc,
+				pHardLimits);
+	}
 
 	hwmgr->dyn_state.max_clock_voltage_on_dc.sclk =
 		pp_table_information->max_clock_voltage_on_dc.sclk;
@@ -864,9 +1249,13 @@ static int init_clock_voltage_dependency(
 		result = get_valid_clk(hwmgr, &pp_table_information->valid_sclk_values,
 		pp_table_information->vdd_dep_on_sclk);
 
-	if (!result && gpio_table)
-		result = get_gpio_table(hwmgr, &pp_table_information->gpio_table,
-				gpio_table);
+	if (!result && powerplay_table->usGPIOTableOffset) {
+		result = get_tonga_gpio_table(hwmgr, powerplay_table,
+					      &gpio_table);
+		if (!result)
+			result = get_gpio_table(hwmgr,
+				&pp_table_information->gpio_table, gpio_table);
+	}
 
 	return result;
 }
@@ -911,14 +1300,17 @@ static int init_thermal_controller(
 		)
 {
 	const PPTable_Generic_SubTable_Header *fan_table;
-	ATOM_Tonga_Thermal_Controller *thermal_controller;
+	const ATOM_Tonga_Thermal_Controller *thermal_controller;
+	int ret;
 
-	thermal_controller = (ATOM_Tonga_Thermal_Controller *)
-		(((unsigned long)powerplay_table) +
-		le16_to_cpu(powerplay_table->usThermalControllerOffset));
 	PP_ASSERT_WITH_CODE((0 != powerplay_table->usThermalControllerOffset),
 		"Thermal controller table not set!", return -1);
 
+	ret = get_tonga_thermal_controller_table(hwmgr, powerplay_table,
+						 &thermal_controller);
+	if (ret)
+		return ret;
+
 	hwmgr->thermal_controller.ucType = thermal_controller->ucType;
 	hwmgr->thermal_controller.ucI2cLine = thermal_controller->ucI2cLine;
 	hwmgr->thermal_controller.ucI2cAddress = thermal_controller->ucI2cAddress;
@@ -946,12 +1338,13 @@ static int init_thermal_controller(
 		return 0;
 	}
 
-	fan_table = (const PPTable_Generic_SubTable_Header *)
-		(((unsigned long)powerplay_table) +
-		le16_to_cpu(powerplay_table->usFanTableOffset));
-
 	PP_ASSERT_WITH_CODE((0 != powerplay_table->usFanTableOffset),
 		"Fan table not set!", return -1);
+
+	ret = get_tonga_fan_table(hwmgr, powerplay_table, &fan_table);
+	if (ret)
+		return ret;
+
 	PP_ASSERT_WITH_CODE((0 < fan_table->ucRevId),
 		"Unsupported fan table format!", return -1);
 
@@ -1315,13 +1708,15 @@ static int ppt_get_num_of_vce_state_table_entries_v1_0(struct pp_hwmgr *hwmgr)
 {
 	const ATOM_Tonga_POWERPLAYTABLE *pp_table = get_powerplay_table(hwmgr);
 	const ATOM_Tonga_VCE_State_Table *vce_state_table;
+	int ret;
 
 
 	if (pp_table == NULL)
 		return 0;
 
-	vce_state_table = (void *)pp_table +
-			le16_to_cpu(pp_table->usVCEStateTableOffset);
+	ret = get_tonga_vce_state_table(hwmgr, pp_table, &vce_state_table);
+	if (ret)
+		return 0;
 
 	return vce_state_table->ucNumEntries;
 }
@@ -1330,18 +1725,39 @@ static int ppt_get_vce_state_table_entry_v1_0(struct pp_hwmgr *hwmgr, uint32_t i
 		struct amd_vce_state *vce_state, void **clock_info, uint32_t *flag)
 {
 	const ATOM_Tonga_VCE_State_Record *vce_state_record;
-	ATOM_Tonga_SCLK_Dependency_Record *sclk_dep_record;
+	ATOM_Tonga_SCLK_Dependency_Record *sclk_dep_record = NULL;
+	ATOM_Polaris_SCLK_Dependency_Record *polaris_sclk_dep_record = NULL;
 	ATOM_Tonga_MCLK_Dependency_Record *mclk_dep_record;
 	ATOM_Tonga_MM_Dependency_Record *mm_dep_record;
 	const ATOM_Tonga_POWERPLAYTABLE *pptable = get_powerplay_table(hwmgr);
-	const ATOM_Tonga_VCE_State_Table *vce_state_table = (ATOM_Tonga_VCE_State_Table *)(((unsigned long)pptable)
-							  + le16_to_cpu(pptable->usVCEStateTableOffset));
-	const ATOM_Tonga_SCLK_Dependency_Table *sclk_dep_table = (ATOM_Tonga_SCLK_Dependency_Table *)(((unsigned long)pptable)
-							  + le16_to_cpu(pptable->usSclkDependencyTableOffset));
-	const ATOM_Tonga_MCLK_Dependency_Table *mclk_dep_table = (ATOM_Tonga_MCLK_Dependency_Table *)(((unsigned long)pptable)
-							  + le16_to_cpu(pptable->usMclkDependencyTableOffset));
-	const ATOM_Tonga_MM_Dependency_Table *mm_dep_table = (ATOM_Tonga_MM_Dependency_Table *)(((unsigned long)pptable)
-							  + le16_to_cpu(pptable->usMMDependencyTableOffset));
+	const ATOM_Tonga_VCE_State_Table *vce_state_table;
+	const PPTable_Generic_SubTable_Header *sclk_dep_table_header;
+	const ATOM_Tonga_SCLK_Dependency_Table *sclk_dep_table;
+	const ATOM_Tonga_MCLK_Dependency_Table *mclk_dep_table;
+	const ATOM_Tonga_MM_Dependency_Table *mm_dep_table;
+	int ret;
+
+	if (!pptable)
+		return -EINVAL;
+
+	ret = get_tonga_vce_state_table(hwmgr, pptable, &vce_state_table);
+	if (ret)
+		return ret;
+
+	ret = get_tonga_sclk_dependency_table(hwmgr, pptable,
+					      &sclk_dep_table_header);
+	if (ret)
+		return ret;
+	sclk_dep_table = (const ATOM_Tonga_SCLK_Dependency_Table *)
+		sclk_dep_table_header;
+
+	ret = get_tonga_mclk_dependency_table(hwmgr, pptable, &mclk_dep_table);
+	if (ret)
+		return ret;
+
+	ret = get_tonga_mm_dependency_table(hwmgr, pptable, &mm_dep_table);
+	if (ret)
+		return ret;
 
 	PP_ASSERT_WITH_CODE((i < vce_state_table->ucNumEntries),
 			 "Requested state entry ID is out of range!",
@@ -1350,10 +1766,27 @@ static int ppt_get_vce_state_table_entry_v1_0(struct pp_hwmgr *hwmgr, uint32_t i
 	vce_state_record = GET_FLEXIBLE_ARRAY_MEMBER_ADDR(
 					ATOM_Tonga_VCE_State_Record,
 					entries, vce_state_table, i);
-	sclk_dep_record = GET_FLEXIBLE_ARRAY_MEMBER_ADDR(
-					ATOM_Tonga_SCLK_Dependency_Record,
-					entries, sclk_dep_table,
-					vce_state_record->ucSCLKIndex);
+	PP_ASSERT_WITH_CODE((vce_state_record->ucSCLKIndex <
+			     sclk_dep_table->ucNumEntries),
+			    "Invalid PowerPlay Table!", return -EINVAL);
+	PP_ASSERT_WITH_CODE((vce_state_record->ucVCEClockIndex <
+			     mm_dep_table->ucNumEntries),
+			    "Invalid PowerPlay Table!", return -EINVAL);
+	PP_ASSERT_WITH_CODE((mclk_dep_table->ucNumEntries != 0),
+			    "Invalid PowerPlay Table!", return -EINVAL);
+
+	if (sclk_dep_table_header->ucRevId < 1)
+		sclk_dep_record = GET_FLEXIBLE_ARRAY_MEMBER_ADDR(
+						ATOM_Tonga_SCLK_Dependency_Record,
+						entries, sclk_dep_table,
+						vce_state_record->ucSCLKIndex);
+	else
+		polaris_sclk_dep_record = GET_FLEXIBLE_ARRAY_MEMBER_ADDR(
+						ATOM_Polaris_SCLK_Dependency_Record,
+						entries,
+						(ATOM_Polaris_SCLK_Dependency_Table *)
+						sclk_dep_table_header,
+						vce_state_record->ucSCLKIndex);
 	mm_dep_record = GET_FLEXIBLE_ARRAY_MEMBER_ADDR(
 					ATOM_Tonga_MM_Dependency_Record,
 					entries, mm_dep_table,
@@ -1362,7 +1795,10 @@ static int ppt_get_vce_state_table_entry_v1_0(struct pp_hwmgr *hwmgr, uint32_t i
 
 	vce_state->evclk = le32_to_cpu(mm_dep_record->ulEClk);
 	vce_state->ecclk = le32_to_cpu(mm_dep_record->ulEClk);
-	vce_state->sclk = le32_to_cpu(sclk_dep_record->ulSclk);
+	if (sclk_dep_record)
+		vce_state->sclk = le32_to_cpu(sclk_dep_record->ulSclk);
+	else
+		vce_state->sclk = le32_to_cpu(polaris_sclk_dep_record->ulSclk);
 
 	if (vce_state_record->ucMCLKIndex >= mclk_dep_table->ucNumEntries)
 		mclk_dep_record = GET_FLEXIBLE_ARRAY_MEMBER_ADDR(
Signature · 1 line
2.53.0
author maintainer
#49 lore raw

PATCH 44/2857 drm/amd/pm: Validate legacy hwmgr PP table offsets

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Yang Wang <[email protected]>

[ Upstream commit 0ceb6bc43e62f0e73b282c9de8f4bc4d5498f281 ]

processpptables.c walks several variable-length PPLIB tables by using offsets from the VBIOS PowerPlay table. Some paths dereference extended headers, state arrays, clock arrays, non-clock arrays, or VCE records before checking that the referenced data is inside the table buffer.

Add local bounds helpers and validate the relevant offsets and entry sizes before dereferencing them. This prevents truncated or malformed legacy PowerPlay tables from driving out-of-bounds reads during hwmgr initialization and table entry lookup.

---
 .../amd/pm/powerplay/hwmgr/processpptables.c  | 446 +++++++++++++-----
 1 file changed, 316 insertions(+), 130 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c +316 -130
index 2ca93a1f0b8e1..e645d44c702b7 100644
@@ -47,26 +47,53 @@
 
 #define NUM_BITS_CLOCK_INFO_ARRAY_INDEX 6
 
+static bool pp_table_has_space(struct pp_hwmgr *hwmgr, size_t offset,
+			       size_t size)
+{
+	size_t table_size = hwmgr->soft_pp_table_size;
+
+	return offset <= table_size && size <= table_size - offset;
+}
+
+static const ATOM_PPLIB_EXTENDEDHEADER *
+get_extended_header(struct pp_hwmgr *hwmgr,
+		    const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table,
+		    size_t min_size)
+{
+	const ATOM_PPLIB_POWERPLAYTABLE3 *powerplay_table3;
+	const ATOM_PPLIB_EXTENDEDHEADER *extended_header;
+	u16 offset;
+
+	if (le16_to_cpu(powerplay_table->usTableSize) <
+	    sizeof(ATOM_PPLIB_POWERPLAYTABLE3) ||
+	    !pp_table_has_space(hwmgr, 0, sizeof(ATOM_PPLIB_POWERPLAYTABLE3)))
+		return NULL;
+
+	powerplay_table3 = (const ATOM_PPLIB_POWERPLAYTABLE3 *)powerplay_table;
+	offset = le16_to_cpu(powerplay_table3->usExtendendedHeaderOffset);
+	if (!offset || !pp_table_has_space(hwmgr, offset,
+					   sizeof(extended_header->usSize)))
+		return NULL;
+
+	extended_header = (const ATOM_PPLIB_EXTENDEDHEADER *)
+		(((unsigned long)powerplay_table) + offset);
+	if (le16_to_cpu(extended_header->usSize) < min_size ||
+	    !pp_table_has_space(hwmgr, offset, min_size))
+		return NULL;
+
+	return extended_header;
+}
+
 static uint16_t get_vce_table_offset(struct pp_hwmgr *hwmgr,
 			const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table)
 {
 	uint16_t vce_table_offset = 0;
+	const ATOM_PPLIB_EXTENDEDHEADER *extended_header;
 
-	if (le16_to_cpu(powerplay_table->usTableSize) >=
-	   sizeof(ATOM_PPLIB_POWERPLAYTABLE3)) {
-		const ATOM_PPLIB_POWERPLAYTABLE3 *powerplay_table3 =
-			(const ATOM_PPLIB_POWERPLAYTABLE3 *)powerplay_table;
-
-		if (powerplay_table3->usExtendendedHeaderOffset > 0) {
-			const ATOM_PPLIB_EXTENDEDHEADER  *extended_header =
-						(const ATOM_PPLIB_EXTENDEDHEADER *)
-						(((unsigned long)powerplay_table3) +
-						le16_to_cpu(powerplay_table3->usExtendendedHeaderOffset));
-			if (le16_to_cpu(extended_header->usSize) >=
-			   SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V2)
-				vce_table_offset = le16_to_cpu(extended_header->usVCETableOffset);
-		}
-	}
+	extended_header = get_extended_header(hwmgr, powerplay_table,
+					      SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V2);
+	if (extended_header)
+		vce_table_offset = le16_to_cpu(extended_header->usVCETableOffset);
 
 	return vce_table_offset;
 }
@@ -93,7 +120,14 @@ static uint16_t get_vce_clock_info_array_size(struct pp_hwmgr *hwmgr,
 	if (table_offset > 0) {
 		const VCEClockInfoArray *p = (const VCEClockInfoArray *)
 			(((unsigned long) powerplay_table) + table_offset);
-		table_size = sizeof(uint8_t) + p->ucNumEntries * sizeof(VCEClockInfo);
+		size_t size;
+
+		if (!pp_table_has_space(hwmgr, table_offset, sizeof(p->ucNumEntries)))
+			return 0;
+
+		size = sizeof(uint8_t) + p->ucNumEntries * sizeof(VCEClockInfo);
+		if (pp_table_has_space(hwmgr, table_offset, size))
+			table_size = size;
 	}
 
 	return table_size;
@@ -104,10 +138,13 @@ static uint16_t get_vce_clock_voltage_limit_table_offset(struct pp_hwmgr *hwmgr,
 {
 	uint16_t table_offset = get_vce_clock_info_array_offset(hwmgr,
 							powerplay_table);
+	u16 table_size;
 
-	if (table_offset > 0)
-		return table_offset + get_vce_clock_info_array_size(hwmgr,
-							powerplay_table);
+	if (table_offset > 0) {
+		table_size = get_vce_clock_info_array_size(hwmgr, powerplay_table);
+		if (table_size)
+			return table_offset + table_size;
+	}
 
 	return 0;
 }
@@ -121,8 +158,15 @@ static uint16_t get_vce_clock_voltage_limit_table_size(struct pp_hwmgr *hwmgr,
 	if (table_offset > 0) {
 		const ATOM_PPLIB_VCE_Clock_Voltage_Limit_Table *ptable =
 			(const ATOM_PPLIB_VCE_Clock_Voltage_Limit_Table *)(((unsigned long) powerplay_table) + table_offset);
+		size_t size;
 
-		table_size = sizeof(uint8_t) + ptable->numEntries * sizeof(ATOM_PPLIB_VCE_Clock_Voltage_Limit_Record);
+		if (!pp_table_has_space(hwmgr, table_offset, sizeof(ptable->numEntries)))
+			return 0;
+
+		size = sizeof(uint8_t) +
+			ptable->numEntries * sizeof(ATOM_PPLIB_VCE_Clock_Voltage_Limit_Record);
+		if (pp_table_has_space(hwmgr, table_offset, size))
+			table_size = size;
 	}
 	return table_size;
 }
@@ -130,9 +174,13 @@ static uint16_t get_vce_clock_voltage_limit_table_size(struct pp_hwmgr *hwmgr,
 static uint16_t get_vce_state_table_offset(struct pp_hwmgr *hwmgr, const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table)
 {
 	uint16_t table_offset = get_vce_clock_voltage_limit_table_offset(hwmgr, powerplay_table);
+	u16 table_size;
 
-	if (table_offset > 0)
-		return table_offset + get_vce_clock_voltage_limit_table_size(hwmgr, powerplay_table);
+	if (table_offset > 0) {
+		table_size = get_vce_clock_voltage_limit_table_size(hwmgr, powerplay_table);
+		if (table_size)
+			return table_offset + table_size;
+	}
 
 	return 0;
 }
@@ -143,8 +191,12 @@ static const ATOM_PPLIB_VCE_State_Table *get_vce_state_table(
 {
 	uint16_t table_offset = get_vce_state_table_offset(hwmgr, powerplay_table);
 
-	if (table_offset > 0)
-		return (const ATOM_PPLIB_VCE_State_Table *)(((unsigned long) powerplay_table) + table_offset);
+	if (table_offset > 0) {
+		if (pp_table_has_space(hwmgr, table_offset,
+				       sizeof(((ATOM_PPLIB_VCE_State_Table *)0)->numEntries)))
+			return (const ATOM_PPLIB_VCE_State_Table *)
+				(((unsigned long)powerplay_table) + table_offset);
+	}
 
 	return NULL;
 }
@@ -153,21 +205,13 @@ static uint16_t get_uvd_table_offset(struct pp_hwmgr *hwmgr,
 			const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table)
 {
 	uint16_t uvd_table_offset = 0;
+	const ATOM_PPLIB_EXTENDEDHEADER *extended_header;
+
+	extended_header = get_extended_header(hwmgr, powerplay_table,
+					      SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V3);
+	if (extended_header)
+		uvd_table_offset = le16_to_cpu(extended_header->usUVDTableOffset);
 
-	if (le16_to_cpu(powerplay_table->usTableSize) >=
-	    sizeof(ATOM_PPLIB_POWERPLAYTABLE3)) {
-		const ATOM_PPLIB_POWERPLAYTABLE3 *powerplay_table3 =
-			(const ATOM_PPLIB_POWERPLAYTABLE3 *)powerplay_table;
-		if (powerplay_table3->usExtendendedHeaderOffset > 0) {
-			const ATOM_PPLIB_EXTENDEDHEADER  *extended_header =
-					(const ATOM_PPLIB_EXTENDEDHEADER *)
-					(((unsigned long)powerplay_table3) +
-				le16_to_cpu(powerplay_table3->usExtendendedHeaderOffset));
-			if (le16_to_cpu(extended_header->usSize) >=
-			    SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V3)
-				uvd_table_offset = le16_to_cpu(extended_header->usUVDTableOffset);
-		}
-	}
 	return uvd_table_offset;
 }
 
@@ -193,8 +237,14 @@ static uint16_t get_uvd_clock_info_array_size(struct pp_hwmgr *hwmgr,
 		const UVDClockInfoArray *p = (const UVDClockInfoArray *)
 					(((unsigned long) powerplay_table)
 					+ table_offset);
-		table_size = sizeof(UCHAR) +
-			     p->ucNumEntries * sizeof(UVDClockInfo);
+		size_t size;
+
+		if (!pp_table_has_space(hwmgr, table_offset, sizeof(p->ucNumEntries)))
+			return 0;
+
+		size = sizeof(UCHAR) + p->ucNumEntries * sizeof(UVDClockInfo);
+		if (pp_table_has_space(hwmgr, table_offset, size))
+			table_size = size;
 	}
 
 	return table_size;
@@ -206,10 +256,13 @@ static uint16_t get_uvd_clock_voltage_limit_table_offset(
 {
 	uint16_t table_offset = get_uvd_clock_info_array_offset(hwmgr,
 						     powerplay_table);
+	u16 table_size;
 
-	if (table_offset > 0)
-		return table_offset +
-			get_uvd_clock_info_array_size(hwmgr, powerplay_table);
+	if (table_offset > 0) {
+		table_size = get_uvd_clock_info_array_size(hwmgr, powerplay_table);
+		if (table_size)
+			return table_offset + table_size;
+	}
 
 	return 0;
 }
@@ -218,21 +271,12 @@ static uint16_t get_samu_table_offset(struct pp_hwmgr *hwmgr,
 			const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table)
 {
 	uint16_t samu_table_offset = 0;
+	const ATOM_PPLIB_EXTENDEDHEADER *extended_header;
 
-	if (le16_to_cpu(powerplay_table->usTableSize) >=
-	    sizeof(ATOM_PPLIB_POWERPLAYTABLE3)) {
-		const ATOM_PPLIB_POWERPLAYTABLE3 *powerplay_table3 =
-			(const ATOM_PPLIB_POWERPLAYTABLE3 *)powerplay_table;
-		if (powerplay_table3->usExtendendedHeaderOffset > 0) {
-			const ATOM_PPLIB_EXTENDEDHEADER  *extended_header =
-				(const ATOM_PPLIB_EXTENDEDHEADER *)
-				(((unsigned long)powerplay_table3) +
-				le16_to_cpu(powerplay_table3->usExtendendedHeaderOffset));
-			if (le16_to_cpu(extended_header->usSize) >=
-			    SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V4)
-				samu_table_offset = le16_to_cpu(extended_header->usSAMUTableOffset);
-		}
-	}
+	extended_header = get_extended_header(hwmgr, powerplay_table,
+					      SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V4);
+	if (extended_header)
+		samu_table_offset = le16_to_cpu(extended_header->usSAMUTableOffset);
 
 	return samu_table_offset;
 }
@@ -254,21 +298,12 @@ static uint16_t get_acp_table_offset(struct pp_hwmgr *hwmgr,
 				const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table)
 {
 	uint16_t acp_table_offset = 0;
+	const ATOM_PPLIB_EXTENDEDHEADER *extended_header;
 
-	if (le16_to_cpu(powerplay_table->usTableSize) >=
-	    sizeof(ATOM_PPLIB_POWERPLAYTABLE3)) {
-		const ATOM_PPLIB_POWERPLAYTABLE3 *powerplay_table3 =
-			(const ATOM_PPLIB_POWERPLAYTABLE3 *)powerplay_table;
-		if (powerplay_table3->usExtendendedHeaderOffset > 0) {
-			const ATOM_PPLIB_EXTENDEDHEADER  *pExtendedHeader =
-				(const ATOM_PPLIB_EXTENDEDHEADER *)
-				(((unsigned long)powerplay_table3) +
-				le16_to_cpu(powerplay_table3->usExtendendedHeaderOffset));
-			if (le16_to_cpu(pExtendedHeader->usSize) >=
-			    SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V6)
-				acp_table_offset = le16_to_cpu(pExtendedHeader->usACPTableOffset);
-		}
-	}
+	extended_header = get_extended_header(hwmgr, powerplay_table,
+					      SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V6);
+	if (extended_header)
+		acp_table_offset = le16_to_cpu(extended_header->usACPTableOffset);
 
 	return acp_table_offset;
 }
@@ -290,21 +325,12 @@ static uint16_t get_cacp_tdp_table_offset(
 				const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table)
 {
 	uint16_t cacTdpTableOffset = 0;
+	const ATOM_PPLIB_EXTENDEDHEADER *extended_header;
 
-	if (le16_to_cpu(powerplay_table->usTableSize) >=
-	    sizeof(ATOM_PPLIB_POWERPLAYTABLE3)) {
-		const ATOM_PPLIB_POWERPLAYTABLE3 *powerplay_table3 =
-				(const ATOM_PPLIB_POWERPLAYTABLE3 *)powerplay_table;
-		if (powerplay_table3->usExtendendedHeaderOffset > 0) {
-			const ATOM_PPLIB_EXTENDEDHEADER  *pExtendedHeader =
-					(const ATOM_PPLIB_EXTENDEDHEADER *)
-					(((unsigned long)powerplay_table3) +
-				le16_to_cpu(powerplay_table3->usExtendendedHeaderOffset));
-			if (le16_to_cpu(pExtendedHeader->usSize) >=
-			    SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V7)
-				cacTdpTableOffset = le16_to_cpu(pExtendedHeader->usPowerTuneTableOffset);
-		}
-	}
+	extended_header = get_extended_header(hwmgr, powerplay_table,
+					      SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V7);
+	if (extended_header)
+		cacTdpTableOffset = le16_to_cpu(extended_header->usPowerTuneTableOffset);
 
 	return cacTdpTableOffset;
 }
@@ -341,22 +367,13 @@ static uint16_t get_sclk_vdd_gfx_table_offset(struct pp_hwmgr *hwmgr,
 			const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table)
 {
 	uint16_t sclk_vdd_gfx_table_offset = 0;
+	const ATOM_PPLIB_EXTENDEDHEADER *extended_header;
 
-	if (le16_to_cpu(powerplay_table->usTableSize) >=
-	    sizeof(ATOM_PPLIB_POWERPLAYTABLE3)) {
-		const ATOM_PPLIB_POWERPLAYTABLE3 *powerplay_table3 =
-				(const ATOM_PPLIB_POWERPLAYTABLE3 *)powerplay_table;
-		if (powerplay_table3->usExtendendedHeaderOffset > 0) {
-			const ATOM_PPLIB_EXTENDEDHEADER  *pExtendedHeader =
-				(const ATOM_PPLIB_EXTENDEDHEADER *)
-				(((unsigned long)powerplay_table3) +
-				le16_to_cpu(powerplay_table3->usExtendendedHeaderOffset));
-			if (le16_to_cpu(pExtendedHeader->usSize) >=
-			    SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V8)
-				sclk_vdd_gfx_table_offset =
-					le16_to_cpu(pExtendedHeader->usSclkVddgfxTableOffset);
-		}
-	}
+	extended_header = get_extended_header(hwmgr, powerplay_table,
+					      SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V8);
+	if (extended_header)
+		sclk_vdd_gfx_table_offset =
+			le16_to_cpu(extended_header->usSclkVddgfxTableOffset);
 
 	return sclk_vdd_gfx_table_offset;
 }
@@ -772,20 +789,37 @@ static ULONG size_of_entry_v2(ULONG num_dpm_levels)
 }
 
 static const ATOM_PPLIB_STATE_V2 *get_state_entry_v2(
+					struct pp_hwmgr *hwmgr,
 					const StateArray * pstate_arrays,
+					u16 state_array_offset,
 							 ULONG entry_index)
 {
 	ULONG i;
 	const ATOM_PPLIB_STATE_V2 *pstate;
+	size_t entry_offset;
+	size_t entry_size;
+
+	if (entry_index >= pstate_arrays->ucNumEntries)
+		return NULL;
 
+	entry_offset = state_array_offset + sizeof(pstate_arrays->ucNumEntries);
 	pstate = pstate_arrays->states;
-	if (entry_index <= pstate_arrays->ucNumEntries) {
-		for (i = 0; i < entry_index; i++)
-			pstate = (ATOM_PPLIB_STATE_V2 *)(
-						  (unsigned long)pstate +
-			     size_of_entry_v2(pstate->ucNumDPMLevels));
+	for (i = 0; i <= entry_index; i++) {
+		if (!pp_table_has_space(hwmgr, entry_offset, sizeof(*pstate)))
+			return NULL;
+
+		entry_size = size_of_entry_v2(pstate->ucNumDPMLevels);
+		if (!pp_table_has_space(hwmgr, entry_offset, entry_size))
+			return NULL;
+
+		if (i == entry_index)
+			return pstate;
+
+		entry_offset += entry_size;
+		pstate = (ATOM_PPLIB_STATE_V2 *)((unsigned long)pstate + entry_size);
 	}
-	return pstate;
+
+	return NULL;
 }
 
 static const unsigned char soft_dummy_pp_table[] = {
@@ -853,6 +887,8 @@ int pp_tables_get_response_times(struct pp_hwmgr *hwmgr,
 
 	PP_ASSERT_WITH_CODE(NULL != powerplay_tab,
 			    "Missing PowerPlay Table!", return -EINVAL);
+	PP_ASSERT_WITH_CODE(pp_table_has_space(hwmgr, 0, sizeof(*powerplay_tab)),
+			    "Invalid PowerPlay Table!", return -EINVAL);
 
 	*vol_rep_time = (uint32_t)le16_to_cpu(powerplay_tab->usVoltageTime);
 	*bb_rep_time = (uint32_t)le16_to_cpu(powerplay_tab->usBackbiasTime);
@@ -865,13 +901,21 @@ int pp_tables_get_num_of_entries(struct pp_hwmgr *hwmgr,
 {
 	const StateArray *pstate_arrays;
 	const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table = get_powerplay_table(hwmgr);
+	u16 state_array_offset;
 
 	if (powerplay_table == NULL)
 		return -1;
+	if (!pp_table_has_space(hwmgr, 0, sizeof(*powerplay_table)))
+		return -1;
 
 	if (powerplay_table->sHeader.ucTableFormatRevision >= 6) {
+		state_array_offset = le16_to_cpu(powerplay_table->usStateArrayOffset);
+		if (!pp_table_has_space(hwmgr, state_array_offset,
+					sizeof(pstate_arrays->ucNumEntries)))
+			return -1;
+
 		pstate_arrays = (StateArray *)(((unsigned long)powerplay_table) +
-					le16_to_cpu(powerplay_table->usStateArrayOffset));
+					state_array_offset);
 
 		*num_of_entries = (unsigned long)(pstate_arrays->ucNumEntries);
 	} else
@@ -898,49 +942,128 @@ int pp_tables_get_entry(struct pp_hwmgr *hwmgr,
 	const NonClockInfoArray *pnon_clock_arrays;
 
 	const ATOM_PPLIB_STATE *pstate_entry;
+	u16 state_array_offset;
+	u16 clock_info_array_offset;
+	u16 non_clock_info_array_offset;
+	size_t clock_info_offset;
+	size_t non_clock_info_offset;
+	size_t state_entry_offset;
 
 	if (powerplay_table == NULL)
 		return -1;
+	if (!pp_table_has_space(hwmgr, 0, sizeof(*powerplay_table)))
+		return -1;
 
 	ps->classification.bios_index = entry_index;
 
 	if (powerplay_table->sHeader.ucTableFormatRevision >= 6) {
+		state_array_offset = le16_to_cpu(powerplay_table->usStateArrayOffset);
+		if (!pp_table_has_space(hwmgr, state_array_offset,
+					sizeof(pstate_arrays->ucNumEntries)))
+			return -1;
+
 		pstate_arrays = (StateArray *)(((unsigned long)powerplay_table) +
-					le16_to_cpu(powerplay_table->usStateArrayOffset));
+					state_array_offset);
+
+		if (entry_index >= pstate_arrays->ucNumEntries)
+			return -1;
 
-		if (entry_index > pstate_arrays->ucNumEntries)
+		pstate_entry_v2 = get_state_entry_v2(hwmgr, pstate_arrays,
+						     state_array_offset,
+						     entry_index);
+		if (!pstate_entry_v2)
+			return -1;
+
+		clock_info_array_offset =
+			le16_to_cpu(powerplay_table->usClockInfoArrayOffset);
+		if (!pp_table_has_space(hwmgr, clock_info_array_offset,
+					sizeof(*pclock_arrays)))
 			return -1;
 
-		pstate_entry_v2 = get_state_entry_v2(pstate_arrays, entry_index);
 		pclock_arrays = (ClockInfoArray *)(((unsigned long)powerplay_table) +
-					le16_to_cpu(powerplay_table->usClockInfoArrayOffset));
+					clock_info_array_offset);
+		if (!pclock_arrays->ucEntrySize)
+			return -1;
+
+		non_clock_info_array_offset =
+			le16_to_cpu(powerplay_table->usNonClockInfoArrayOffset);
+		if (!pp_table_has_space(hwmgr, non_clock_info_array_offset,
+					sizeof(*pnon_clock_arrays)))
+			return -1;
 
 		pnon_clock_arrays = (NonClockInfoArray *)(((unsigned long)powerplay_table) +
-						le16_to_cpu(powerplay_table->usNonClockInfoArrayOffset));
+						non_clock_info_array_offset);
+		if (!pnon_clock_arrays->ucEntrySize ||
+		    pnon_clock_arrays->ucEntrySize < ATOM_PPLIB_NONCLOCKINFO_VER1 ||
+		    (pnon_clock_arrays->ucEntrySize > ATOM_PPLIB_NONCLOCKINFO_VER1 &&
+		     pnon_clock_arrays->ucEntrySize < ATOM_PPLIB_NONCLOCKINFO_VER2) ||
+		    pstate_entry_v2->nonClockInfoIndex >= pnon_clock_arrays->ucNumEntries)
+			return -1;
 
+		non_clock_info_offset = non_clock_info_array_offset +
+			offsetof(NonClockInfoArray, nonClockInfo) +
+			pstate_entry_v2->nonClockInfoIndex * pnon_clock_arrays->ucEntrySize;
+		if (!pp_table_has_space(hwmgr, non_clock_info_offset,
+					pnon_clock_arrays->ucEntrySize))
+			return -1;
 		pnon_clock_info = (ATOM_PPLIB_NONCLOCK_INFO *)((unsigned long)(pnon_clock_arrays->nonClockInfo) +
 					(pstate_entry_v2->nonClockInfoIndex * pnon_clock_arrays->ucEntrySize));
 
 		result = init_non_clock_fields(hwmgr, ps, pnon_clock_arrays->ucEntrySize, pnon_clock_info);
 
 		for (i = 0; i < pstate_entry_v2->ucNumDPMLevels; i++) {
-			const void *pclock_info = (const void *)(
-							(unsigned long)(pclock_arrays->clockInfo) +
-							(pstate_entry_v2->clockInfoIndex[i] * pclock_arrays->ucEntrySize));
+			const void *pclock_info;
+
+			if (pstate_entry_v2->clockInfoIndex[i] >=
+			    pclock_arrays->ucNumEntries)
+				return -1;
+
+			clock_info_offset = clock_info_array_offset +
+				offsetof(ClockInfoArray, clockInfo) +
+				pstate_entry_v2->clockInfoIndex[i] * pclock_arrays->ucEntrySize;
+			if (!pp_table_has_space(hwmgr, clock_info_offset,
+						pclock_arrays->ucEntrySize))
+				return -1;
+
+			pclock_info = (const void *)
+					((unsigned long)(pclock_arrays->clockInfo) +
+					(pstate_entry_v2->clockInfoIndex[i] *
+					 pclock_arrays->ucEntrySize));
 			res = func(hwmgr, &ps->hardware, i, pclock_info);
 			if ((0 == result) && (0 != res))
 				result = res;
 		}
 	} else {
-		if (entry_index > powerplay_table->ucNumStates)
+		if (entry_index >= powerplay_table->ucNumStates ||
+		    !powerplay_table->ucStateEntrySize ||
+		    !powerplay_table->ucNonClockSize ||
+		    powerplay_table->ucNonClockSize < ATOM_PPLIB_NONCLOCKINFO_VER1 ||
+		    (powerplay_table->ucNonClockSize > ATOM_PPLIB_NONCLOCKINFO_VER1 &&
+		     powerplay_table->ucNonClockSize < ATOM_PPLIB_NONCLOCKINFO_VER2) ||
+		    !powerplay_table->ucClockInfoSize)
+			return -1;
+
+		state_array_offset = le16_to_cpu(powerplay_table->usStateArrayOffset);
+		state_entry_offset = state_array_offset +
+			entry_index * powerplay_table->ucStateEntrySize;
+		if (!pp_table_has_space(hwmgr, state_entry_offset,
+					powerplay_table->ucStateEntrySize))
 			return -1;
 
 		pstate_entry = (ATOM_PPLIB_STATE *)((unsigned long)powerplay_table +
-						    le16_to_cpu(powerplay_table->usStateArrayOffset) +
+						    state_array_offset +
 						    entry_index * powerplay_table->ucStateEntrySize);
 
+		non_clock_info_array_offset =
+			le16_to_cpu(powerplay_table->usNonClockInfoArrayOffset);
+		non_clock_info_offset = non_clock_info_array_offset +
+			pstate_entry->ucNonClockStateIndex * powerplay_table->ucNonClockSize;
+		if (!pp_table_has_space(hwmgr, non_clock_info_offset,
+					powerplay_table->ucNonClockSize))
+			return -1;
+
 		pnon_clock_info = (ATOM_PPLIB_NONCLOCK_INFO *)((unsigned long)powerplay_table +
-						le16_to_cpu(powerplay_table->usNonClockInfoArrayOffset) +
+						non_clock_info_array_offset +
 						pstate_entry->ucNonClockStateIndex *
 						powerplay_table->ucNonClockSize);
 
@@ -949,12 +1072,23 @@ int pp_tables_get_entry(struct pp_hwmgr *hwmgr,
 							pnon_clock_info);
 
 		for (i = 0; i < powerplay_table->ucStateEntrySize-1; i++) {
-			const void *pclock_info = (const void *)((unsigned long)powerplay_table +
-						le16_to_cpu(powerplay_table->usClockInfoArrayOffset) +
+			const void *pclock_info;
+
+			clock_info_array_offset =
+				le16_to_cpu(powerplay_table->usClockInfoArrayOffset);
+			clock_info_offset = clock_info_array_offset +
+				pstate_entry->ucClockStateIndices[i] *
+				powerplay_table->ucClockInfoSize;
+			if (!pp_table_has_space(hwmgr, clock_info_offset,
+						powerplay_table->ucClockInfoSize))
+				return -1;
+
+			pclock_info = (const void *)((unsigned long)powerplay_table +
+						clock_info_array_offset +
 						pstate_entry->ucClockStateIndices[i] *
 						powerplay_table->ucClockInfoSize);
 
-			int res = func(hwmgr, &ps->hardware, i, pclock_info);
+			res = func(hwmgr, &ps->hardware, i, pclock_info);
 
 			if ((0 == result) && (0 != res))
 					result = res;
@@ -1669,21 +1803,70 @@ static int get_vce_state_table_entry(struct pp_hwmgr *hwmgr,
 							unsigned long *flag)
 {
 	const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table = get_powerplay_table(hwmgr);
+	const ATOM_PPLIB_VCE_State_Table *vce_state_table;
+	const ATOM_PPLIB_VCE_State_Record *record;
+	const VCEClockInfoArray *vce_clock_info_array;
+	const VCEClockInfo *vce_clock_info;
+	const ClockInfoArray *clock_arrays;
+	u16 vce_state_table_offset;
+	u16 vce_clock_info_array_offset;
+	u16 clock_info_array_offset;
+	unsigned long clockInfoIndex;
+	size_t record_offset;
+	size_t vce_clock_info_offset;
+	size_t clock_info_offset;
+
+	if (!powerplay_table || !pp_table_has_space(hwmgr, 0, sizeof(*powerplay_table)))
+		return -1;
 
-	const ATOM_PPLIB_VCE_State_Table *vce_state_table = get_vce_state_table(hwmgr, powerplay_table);
+	vce_state_table_offset = get_vce_state_table_offset(hwmgr, powerplay_table);
+	vce_state_table = get_vce_state_table(hwmgr, powerplay_table);
+	if (!vce_state_table || i >= vce_state_table->numEntries)
+		return -1;
+
+	record_offset = vce_state_table_offset +
+		offsetof(ATOM_PPLIB_VCE_State_Table, entries) +
+		i * sizeof(*record);
+	if (!pp_table_has_space(hwmgr, record_offset, sizeof(*record)))
+		return -1;
+
+	record = &vce_state_table->entries[i];
+
+	vce_clock_info_array_offset =
+		get_vce_clock_info_array_offset(hwmgr, powerplay_table);
+	if (!pp_table_has_space(hwmgr, vce_clock_info_array_offset,
+				sizeof(vce_clock_info_array->ucNumEntries)))
+		return -1;
 
-	unsigned short vce_clock_info_array_offset = get_vce_clock_info_array_offset(hwmgr, powerplay_table);
+	vce_clock_info_array = (const VCEClockInfoArray *)
+		(((unsigned long)powerplay_table) + vce_clock_info_array_offset);
+	if (record->ucVCEClockInfoIndex >= vce_clock_info_array->ucNumEntries)
+		return -1;
 
-	const VCEClockInfoArray *vce_clock_info_array = (const VCEClockInfoArray *)(((unsigned long) powerplay_table) + vce_clock_info_array_offset);
+	vce_clock_info_offset = vce_clock_info_array_offset +
+		offsetof(VCEClockInfoArray, entries) +
+		record->ucVCEClockInfoIndex * sizeof(*vce_clock_info);
+	if (!pp_table_has_space(hwmgr, vce_clock_info_offset, sizeof(*vce_clock_info)))
+		return -1;
 
-	const ClockInfoArray *clock_arrays = (ClockInfoArray *)(((unsigned long)powerplay_table) +
-								le16_to_cpu(powerplay_table->usClockInfoArrayOffset));
+	vce_clock_info = &vce_clock_info_array->entries[record->ucVCEClockInfoIndex];
 
-	const ATOM_PPLIB_VCE_State_Record *record = &vce_state_table->entries[i];
+	clock_info_array_offset = le16_to_cpu(powerplay_table->usClockInfoArrayOffset);
+	if (!pp_table_has_space(hwmgr, clock_info_array_offset,
+				sizeof(*clock_arrays)))
+		return -1;
 
-	const VCEClockInfo *vce_clock_info = &vce_clock_info_array->entries[record->ucVCEClockInfoIndex];
+	clock_arrays = (ClockInfoArray *)(((unsigned long)powerplay_table) +
+					  clock_info_array_offset);
+	clockInfoIndex = record->ucClockInfoIndex & 0x3F;
+	if (!clock_arrays->ucEntrySize || clockInfoIndex >= clock_arrays->ucNumEntries)
+		return -1;
 
-	unsigned long clockInfoIndex = record->ucClockInfoIndex & 0x3F;
+	clock_info_offset = clock_info_array_offset +
+		offsetof(ClockInfoArray, clockInfo) +
+		clockInfoIndex * clock_arrays->ucEntrySize;
+	if (!pp_table_has_space(hwmgr, clock_info_offset, clock_arrays->ucEntrySize))
+		return -1;
 
 	*flag = (record->ucClockInfoIndex >> NUM_BITS_CLOCK_INFO_ARRAY_INDEX);
 
@@ -1707,6 +1890,10 @@ static int pp_tables_initialize(struct pp_hwmgr *hwmgr)
 	hwmgr->need_pp_table_upload = true;
 
 	powerplay_table = get_powerplay_table(hwmgr);
+	PP_ASSERT_WITH_CODE((powerplay_table),
+			    "Missing PowerPlay Table!", return -1);
+	PP_ASSERT_WITH_CODE(pp_table_has_space(hwmgr, 0, sizeof(*powerplay_table)),
+			    "Invalid PowerPlay Table!", return -1);
 
 	result = init_powerplay_tables(hwmgr, powerplay_table);
 
@@ -1809,4 +1996,3 @@ const struct pp_table_func pptable_funcs = {
 	.pptable_get_vce_state_table_entry =
 						get_vce_state_table_entry,
 };
-
Signature · 1 line
2.53.0
author maintainer
#50 lore raw

PATCH 45/2857 drm/amdkfd: add sanity check in svm_range_is_valid

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Eric Huang <[email protected]>

[ Upstream commit aa7e29cf9a37092cf5057a612ee09f28df20258f ]

to prevent svm range to be overflow or underflow.

---
 drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_svm.c +7 -1
index 6555a15e016ec..e60ab76d3e6f6 100644
@@ -3160,7 +3160,13 @@ svm_range_is_valid(struct kfd_process *p, uint64_t start, uint64_t size)
 	unsigned long start_unchg = start;
 
 	start <<= PAGE_SHIFT;
-	end = start + (size << PAGE_SHIFT);
+
+	if (size == 0)
+		return -EINVAL;
+
+	if (check_add_overflow(start, size << PAGE_SHIFT, &end))
+		return -EOVERFLOW;
+
 	do {
 		vma = find_vma(p->mm, start);
 		if (!vma || start < vma->vm_start ||
Signature · 1 line
2.53.0
author maintainer
#51 lore raw

PATCH 46/2857 net: usb: rtl8150: handle link status read failures

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Yousef Alhouseen <[email protected]>

[ Upstream commit 8c9c5b9a689612dcb92a04a4218c975cd19f19d8 ]

set_carrier() ignores the result of the USB control transfer and tests the stack variable supplied as its receive buffer. If the device rejects or aborts the request, that variable remains uninitialized and the driver chooses an arbitrary carrier state.

Leave the existing carrier state unchanged when the link status cannot be read. A transient USB error should not be treated as link loss.

---
 drivers/net/usb/rtl8150.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/usb/rtl8150.c +3 -1
index 647f28b367b99..8c739d898e57d 100644
@@ -734,7 +734,9 @@ static void set_carrier(struct net_device *netdev)
 	rtl8150_t *dev = netdev_priv(netdev);
 	short tmp;
 
-	get_registers(dev, CSCR, 2, &tmp);
+	if (get_registers(dev, CSCR, 2, &tmp))
+		return;
+
 	if (tmp & CSCR_LINK_STATUS)
 		netif_carrier_on(netdev);
 	else
Signature · 1 line
2.53.0
author maintainer
#52 lore raw

PATCH 47/2857 netfilter: ebtables: bound num_counters like nentries in do_replace()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Jiayuan Chen <[email protected]>

[ Upstream commit 43ae85af154b27f9a0ff602f7a01e3a7583ffdab ]

do_replace_finish() allocates the counter buffer before it is validated:

   counterstmp = vmalloc_array(repl->num_counters, sizeof(*counterstmp));

do_replace() only checks num_counters against INT_MAX / sizeof(struct ebt_counter), so vmalloc_array() can be asked for up to 134217726 * 16 = 2147483616 bytes (~2 GiB).

num_counters must in fact equal nentries: do_replace_finish() later rejects the request when repl->num_counters != t->private->nentries. get_counters() folds the per-CPU counters back into one entry per rule, so what userspace gets is bounded by nentries, never by nentries * nr_cpus. Apply the same upper bound used for nentries (MAX_EBT_ENTRIES) to the incoming num_counters so the over-sized allocation can no longer be requested.

The allocation is still kept outside the ebt_mutex, since vmalloc() may sleep and trigger reclaim; only the bound is tightened.

---
 net/bridge/netfilter/ebtables.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
net/bridge/netfilter/ebtables.c +6 -6
index b1846d5c879a5..93dc1f11b2bed 100644
@@ -39,6 +39,8 @@
 #define COUNTER_OFFSET(n) (SMP_ALIGN(n * sizeof(struct ebt_counter)))
 #define COUNTER_BASE(c, n, cpu) ((struct ebt_counter *)(((char *)c) + \
 				 COUNTER_OFFSET(n) * cpu))
+#define MAX_EBT_ENTRIES (((INT_MAX - sizeof(struct ebt_table_info)) / \
+			 NR_CPUS - SMP_CACHE_BYTES) / sizeof(struct ebt_counter))
 
 struct ebt_pernet {
 	struct list_head tables;
@@ -1126,10 +1128,9 @@ static int do_replace(struct net *net, sockptr_t arg, unsigned int len)
 		return -EINVAL;
 
 	/* overflow check */
-	if (tmp.nentries >= ((INT_MAX - sizeof(struct ebt_table_info)) /
-			NR_CPUS - SMP_CACHE_BYTES) / sizeof(struct ebt_counter))
+	if (tmp.nentries >= MAX_EBT_ENTRIES)
 		return -ENOMEM;
-	if (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter))
+	if (tmp.num_counters >= MAX_EBT_ENTRIES)
 		return -ENOMEM;
 
 	tmp.name[sizeof(tmp.name) - 1] = 0;
@@ -2269,10 +2270,9 @@ static int compat_copy_ebt_replace_from_user(struct ebt_replace *repl,
 	if (tmp.entries_size == 0)
 		return -EINVAL;
 
-	if (tmp.nentries >= ((INT_MAX - sizeof(struct ebt_table_info)) /
-			NR_CPUS - SMP_CACHE_BYTES) / sizeof(struct ebt_counter))
+	if (tmp.nentries >= MAX_EBT_ENTRIES)
 		return -ENOMEM;
-	if (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter))
+	if (tmp.num_counters >= MAX_EBT_ENTRIES)
 		return -ENOMEM;
 
 	memcpy(repl, &tmp, offsetof(struct ebt_replace, hook_entry));
Signature · 1 line
2.53.0
author maintainer
#53 lore raw

PATCH 48/2857 soundwire: dmi-quirks: Disable ghost Realtek on Asus Expertbook

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Charles Keepax <[email protected]>

[ Upstream commit 90af3209742db61a7f9d7d054a16165818cfc6d8 ]

The Asus Expertbook B9406CAA also has a Realtek device in the ACPI that doesn't exist in the physical hardware. This confuses the machine driver into attempting to create DAI links for the device. Add a quirk to remove this device.

---
 drivers/soundwire/dmi-quirks.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/soundwire/dmi-quirks.c +7 -0
index 32a46a2d90f7c..2a98fc8c104d6 100644
@@ -178,6 +178,13 @@ static const struct dmi_system_id adr_remap_quirk_table[] = {
 		.driver_data = (void *)hp_omen_16,
 	},
 	/* PTL devices */
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUS"),
+			DMI_MATCH(DMI_BOARD_NAME, "B9406CAA"),
+		},
+		.driver_data = (void *)ghost_realtek,
+	},
 	{
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUS"),
Signature · 1 line
2.53.0
author maintainer
#54 lore raw

PATCH 49/2857 dmaengine: pl330: remove debugfs file on teardown

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit 0d3e3376b289cdaff5b3b6c1581999926ff1000f ]

init_pl330_debugfs() creates a debugfs file with struct pl330_dmac as private data. pl330_remove() then unregisters the DMA device and frees the PL330 channel/thread state without removing that file.

Keep the debugfs dentry and remove it before tearing down the DMAC state used by the debugfs show callback.

---
 drivers/dma/pl330.c | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)
drivers/dma/pl330.c +16 -3
index 3cf0b38387ae5..a33fb061fbd06 100644
@@ -502,6 +502,7 @@ struct pl330_dmac {
 	struct dma_pl330_chan *peripherals; /* keep at end */
 	int quirks;
 
+	struct dentry		*dbgfs;
 	struct reset_control	*rstc;
 	struct reset_control	*rstc_ocp;
 };
@@ -2957,14 +2958,24 @@ DEFINE_SHOW_ATTRIBUTE(pl330_debugfs);
 
 static inline void init_pl330_debugfs(struct pl330_dmac *pl330)
 {
-	debugfs_create_file(dev_name(pl330->ddma.dev),
-			    S_IFREG | 0444, NULL, pl330,
-			    &pl330_debugfs_fops);
+	pl330->dbgfs = debugfs_create_file(dev_name(pl330->ddma.dev),
+					   S_IFREG | 0444, NULL, pl330,
+					   &pl330_debugfs_fops);
+}
+
+static inline void deinit_pl330_debugfs(struct pl330_dmac *pl330)
+{
+	debugfs_remove(pl330->dbgfs);
+	pl330->dbgfs = NULL;
 }
 #else
 static inline void init_pl330_debugfs(struct pl330_dmac *pl330)
 {
 }
+
+static inline void deinit_pl330_debugfs(struct pl330_dmac *pl330)
+{
+}
 #endif
 
 /*
@@ -3213,6 +3224,8 @@ static void pl330_remove(struct amba_device *adev)
 	struct dma_pl330_chan *pch, *_p;
 	int i, irq;
 
+	deinit_pl330_debugfs(pl330);
+
 	pm_runtime_get_noresume(pl330->ddma.dev);
 
 	if (adev->dev.of_node)
Signature · 1 line
2.53.0
author maintainer
#55 lore raw

PATCH 50/2857 net: mvneta_bm: add suspend/resume support to prevent crash after resume

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Yun Zhou <[email protected]>

[ Upstream commit 140be217df577961bea1ca36240439a463026cbd ]

The mvneta driver uses the hardware Buffer Manager (BM) for RX buffer allocation. During suspend, mvneta disables its clock, causing BM to lose all buffer address state. On resume, mvneta_bm_port_init() re- attaches the BM pool to the NIC, but BM hardware returns stale/garbage buffer addresses. When NAPI poll processes these buffers, DMA cache sync hits an invalid virtual address causing a kernel panic:

 Unable to handle kernel paging request at virtual address b0000080
 PC is at v7_dma_inv_range
 Call trace:
  v7_dma_inv_range from arch_sync_dma_for_cpu+0x94/0x158
  arch_sync_dma_for_cpu from __dma_sync_single_for_cpu+0xc4/0x15c
  __dma_sync_single_for_cpu from mvneta_rx_swbm+0x6c8/0xf48
  mvneta_rx_swbm from mvneta_poll+0x6fc/0x70c
  mvneta_poll from __napi_poll.constprop.0+0x2c/0x1e0
  __napi_poll.constprop.0 from net_rx_action+0x160/0x2c4
  net_rx_action from handle_softirqs+0xd8/0x2b8
  handle_softirqs from run_ksoftirqd+0x30/0x94
  run_ksoftirqd from smpboot_thread_fn+0x100/0x204
  smpboot_thread_fn from kthread+0xf4/0x110
  kthread from ret_from_fork+0x14/0x28

Fix by adding suspend/resume callbacks to the BM driver:

- suspend: drain all buffers (with DMA unmapping), free the BPPE regions, and reset pool state to FREE before stopping BM and gating the clock.

- resume: enable the clock, reinitialize BM defaults, and restore pool read/write pointers and size registers. Pool allocation and buffer refill are handled by mvneta_resume() through the normal mvneta_bm_port_init() path, which sees pools as FREE and performs full initialization identical to probe.

Add a device_link (DL_FLAG_AUTOREMOVE_CONSUMER) in mvneta_probe to guarantee BM resumes before mvneta and suspends after mvneta. If the link cannot be created, fall back to SW buffer management to avoid a potential crash on resume due to unordered PM transitions.

---
 drivers/net/ethernet/marvell/mvneta.c    | 18 ++++++
 drivers/net/ethernet/marvell/mvneta_bm.c | 72 ++++++++++++++++++++++++
 2 files changed, 90 insertions(+)
drivers/net/ethernet/marvell/mvneta.c +18 -0
index 1faf3dbd9233e..1c486c84fc665 100644
@@ -5582,6 +5582,24 @@ static int mvneta_probe(struct platform_device *pdev)
 					 "use SW buffer management\n");
 				mvneta_bm_put(pp->bm_priv);
 				pp->bm_priv = NULL;
+			} else if (!device_link_add(&pdev->dev,
+						    &pp->bm_priv->pdev->dev,
+						    DL_FLAG_AUTOREMOVE_CONSUMER)) {
+				/*
+				 * Link guarantees BM resumes before mvneta.
+				 * Without it, BM may not be ready when
+				 * mvneta_bm_port_init() runs on resume,
+				 * causing stale buffer addresses and a crash.
+				 * Fall back to SW management to be safe.
+				 */
+				dev_warn(&pdev->dev,
+					 "failed to link to BM, use SW buffer management\n");
+				mvneta_bm_pool_destroy(pp->bm_priv,
+						       pp->pool_long, 1 << pp->id);
+				mvneta_bm_pool_destroy(pp->bm_priv,
+						       pp->pool_short, 1 << pp->id);
+				mvneta_bm_put(pp->bm_priv);
+				pp->bm_priv = NULL;
 			}
 		}
 		/* Set RX packet offset correction for platforms, whose
drivers/net/ethernet/marvell/mvneta_bm.c +72 -0

96 lines not on this page · raw message

Signature · 1 line
2.53.0
author maintainer
#56 lore raw

PATCH 51/2857 dmaengine: dw-axi-dmac: fix __le32 on set of CH_CTL_H_LLI_VALID

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Ben Dooks <[email protected]>

[ Upstream commit 89aba9c39bdda8a973a6ffed7c9e93321edcfc16 ]

When writing the lli->ctl_hi, this is an __le32 type so the value being orred should be convered to __le32 by cpu_to_le32.

Fixes 1deb96c0fa58a ("dmaegine: dw-axi-dmac: Support device_prep_dma_cyclic()") --
Note, the call to axi_chan_irq_clear() is passing lli->status_lo through which is also an __le32 but it does not seem to be set anywhere. Is this also a bug?

---
 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +1 -1
index d313db5379f8c..e1faa6562104a 100644
@@ -1076,7 +1076,7 @@ static void axi_chan_block_xfer_complete(struct axi_dma_chan *chan)
 				hw_desc = &desc->hw_desc[i];
 				if (hw_desc->llp == llp) {
 					axi_chan_irq_clear(chan, hw_desc->lli->status_lo);
-					hw_desc->lli->ctl_hi |= CH_CTL_H_LLI_VALID;
+					hw_desc->lli->ctl_hi |= cpu_to_le32(CH_CTL_H_LLI_VALID);
 					desc->completed_blocks = i;
 
 					if (((hw_desc->len * (i + 1)) % desc->period_len) == 0)
Signature · 1 line
2.53.0
author maintainer
#57 lore raw

PATCH 52/2857 wifi: rtlwifi: rtl8723be: Remove unnecessary irq save/restore in hw_init()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: William Hansen-Baird <[email protected]>

[ Upstream commit 1b4cd55626b6ffa93d18848412afb912a4add585 ]

rtl8723be hw_init() calls local_save_flags(flags) followed by local_irq_enable(). Later, local_irq_restore(flags) is called.

This causes warnings from Lockdep on boot and modprobe,
as local_irq_restore(flags) should only be called while irqs are disabled. The warning was introduced to detect this class of bug in [1].

With testing I found that all paths which call hw_init() have irqs already enabled for rtl8723be.

Furthermore, the calls were originally added for the rtl8192ce in commit f78bccd79ba3 ("rtlwifi: rtl8192ce: Fix too long disable of IRQs") before later being added to most other rtlwifi drivers.

Commit d3feae41a347 ("rtlwifi: Update power-save routines for 062814 driver") then replaces the call to spin_lock_irqsave() before hw_init(), and thus the codepath which caused irqs to be disabled in hw_init and prompted the original commit has been removed.

The same irq save/restore pattern is also present in the hw_init() of rtl8192ce, rtl8723ae, rtl8188ee, rtl8192se and rtl8192cu, however I don't have the hardware to test them,
so I did not include them in my changes.

Tested on a Razer Blade 14 2017.

Example of output from Lockdep prior to fix:

raw_local_irq_restore() called with IRQs enabled

...

Call Trace:
<TASK>
rtl8723be_hw_init+0x5992/0x7220 [rtl8723be]
? static_obj+0x61/0xa0
rtl_pci_start+0x222/0x5c0 [rtl_pci]
rtl_op_start+0x128/0x1a0 [rtlwifi]
? __kasan_check_read+0x11/0x20
drv_start+0x16c/0x550 [mac80211]

...

irq event stamp: 887679
hardirqs last  enabled at (887689): [<ffffffff96511170>] __up_console_sem+0x90/0xa0
hardirqs last disabled at (887698): [<ffffffff96511155>] __up_console_sem+0x75/0xa0
softirqs last  enabled at (887670): [<ffffffff962f4675>] __irq_exit_rcu+0x175/0x2f0
softirqs last disabled at (887649): [<ffffffff962f4675>] __irq_exit_rcu+0x175/0x2f0
---[ end trace 0000000000000000 ]---

[1] https://lore.kernel.org/all/[email protected]/

---
 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c +0 -6
index 0ba3bbed6ed36..69d2370792e26 100644
@@ -1339,11 +1339,6 @@ int rtl8723be_hw_init(struct ieee80211_hw *hw)
 	bool rtstatus = true;
 	int err;
 	u8 tmp_u1b;
-	unsigned long flags;
-
-	/* reenable interrupts to not interfere with other devices */
-	local_save_flags(flags);
-	local_irq_enable();
 
 	rtlhal->fw_ready = false;
 	rtlpriv->rtlhal.being_init_adapter = true;
@@ -1449,7 +1444,6 @@ int rtl8723be_hw_init(struct ieee80211_hw *hw)
 
 	rtl8723be_dm_init(hw);
 exit:
-	local_irq_restore(flags);
 	rtlpriv->rtlhal.being_init_adapter = false;
 	return err;
 }
Signature · 1 line
2.53.0
author maintainer
#58 lore raw

PATCH 53/2857 wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: William Hansen-Baird <[email protected]>

[ Upstream commit 04a46c2dbf3b516c96a1d19b72917b56055ad6c1 ]

commit 77a6407c6ab2 ("wifi: rtlwifi: disable ASPM for RTL8723BE with subsystem ID 11ad:1723") adds code which sets ppsc->support_aspm to false in _rtl_pci_update_default_setting() in order to disable ASPM.
This does not, however, disable ASPM. Rather, it disables driver
control of ASPM, and blocks calls to rtl_pci_enable_aspm()
and rtl_pci_disable_aspm().

In some cases, the pci device supplied to the probe function has ASPM enabled. The code would therefore not disable ASPM, as it means to, but rather just leave it enabled.
This was discovered through testing on a Razer Blade 14 2017.

Implement a new __rtl_pci_disable_aspm(hw) function which does not check ppsc->support_aspm before disabling and call it from rtl_pci_disable_aspm().

Then move the code added in the previous commit to rtl_pci_init_aspm() to allow adding a call to __rtl_pci_disable_aspm(hw).
This makes sure ASPM is disabled while still disabling
driver control of ASPM to block it from being enabled later.

---
 drivers/net/wireless/realtek/rtlwifi/pci.c | 39 ++++++++++++++--------
 1 file changed, 26 insertions(+), 13 deletions(-)
drivers/net/wireless/realtek/rtlwifi/pci.c +26 -13
index 9e8955399745a..3e366797c413d 100644
@@ -156,15 +156,6 @@ static void _rtl_pci_update_default_setting(struct ieee80211_hw *hw)
 	    init_aspm == 0x43)
 		ppsc->support_aspm = false;
 
-	/* RTL8723BE found on some ASUSTek laptops, such as F441U and
-	 * X555UQ with subsystem ID 11ad:1723 are known to output large
-	 * amounts of PCIe AER errors during and after boot up, causing
-	 * heavy lags, poor network throughput, and occasional lock-ups.
-	 */
-	if (rtlpriv->rtlhal.hw_type == HARDWARE_TYPE_RTL8723BE &&
-	    (rtlpci->pdev->subsystem_vendor == 0x11ad &&
-	     rtlpci->pdev->subsystem_device == 0x1723))
-		ppsc->support_aspm = false;
 }
 
 static bool _rtl_pci_platform_switch_device_pci_aspm(
@@ -203,7 +194,7 @@ static void _rtl_pci_switch_clk_req(struct ieee80211_hw *hw, u16 value)
 }
 
 /*Disable RTL8192SE ASPM & Disable Pci Bridge ASPM*/
-static void rtl_pci_disable_aspm(struct ieee80211_hw *hw)
+static void __rtl_pci_disable_aspm(struct ieee80211_hw *hw)
 {
 	struct rtl_priv *rtlpriv = rtl_priv(hw);
 	struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw);
@@ -215,9 +206,6 @@ static void rtl_pci_disable_aspm(struct ieee80211_hw *hw)
 	u16 aspmlevel = 0;
 	u8 tmp_u1b = 0;
 
-	if (!ppsc->support_aspm)
-		return;
-
 	if (pcibridge_vendor == PCI_BRIDGE_VENDOR_UNKNOWN) {
 		rtl_dbg(rtlpriv, COMP_POWER, DBG_TRACE,
 			"PCI(Bridge) UNKNOWN\n");
@@ -240,6 +228,16 @@ static void rtl_pci_disable_aspm(struct ieee80211_hw *hw)
 	_rtl_pci_platform_switch_device_pci_aspm(hw, linkctrl_reg);
 }
 
+static void rtl_pci_disable_aspm(struct ieee80211_hw *hw)
+{
+	struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
+
+	if (!ppsc->support_aspm)
+		return;
+
+	__rtl_pci_disable_aspm(hw);
+}
+
 /*Enable RTL8192SE ASPM & Enable Pci Bridge ASPM for
  *power saving We should follow the sequence to enable
  *RTL8192SE first then enable Pci Bridge ASPM
@@ -331,10 +329,25 @@ static void rtl_pci_parse_configuration(struct pci_dev *pdev,
 
 static void rtl_pci_init_aspm(struct ieee80211_hw *hw)
 {
+	struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
 	struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
+	struct rtl_priv *rtlpriv = rtl_priv(hw);
 
 	_rtl_pci_update_default_setting(hw);
 
+	/*
+	 * RTL8723BE found on some ASUSTek laptops, such as F441U and
+	 * X555UQ with subsystem ID 11ad:1723 are known to output large
+	 * amounts of PCIe AER errors during and after boot up, causing
+	 * heavy lags, poor network throughput, and occasional lock-ups.
+	 */
+	if (rtlpriv->rtlhal.hw_type == HARDWARE_TYPE_RTL8723BE &&
+	    (rtlpci->pdev->subsystem_vendor == 0x11ad &&
+	     rtlpci->pdev->subsystem_device == 0x1723)) {
+		__rtl_pci_disable_aspm(hw);
+		ppsc->support_aspm = false;
+	}
+
 	if (ppsc->reg_rfps_level & RT_RF_PS_LEVEL_ALWAYS_ASPM) {
 		/*Always enable ASPM & Clock Req. */
 		rtl_pci_enable_aspm(hw);
Signature · 1 line
2.53.0
author maintainer
#59 lore raw

PATCH 54/2857 block: reject block device inodes with i_rdev == 0 in lookup_bdev()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Yun Zhou <[email protected]>

[ Upstream commit 83887ad02f30c1814bed5da3ca999f7b0f3f337c ]

lookup_bdev() blindly returns inode->i_rdev without validating it. When a FUSE filesystem exposes a root inode with S_IFBLK mode but i_rdev == 0 (via rootmode=060000), any subsequent mount attempt using that path as a block device source propagates dev_t 0 into the superblock machinery. After commit 9ee5f161a4db ("fs: maintain a global device-to-superblock table") this triggers a WARNING in super_dev_register().

Reject i_rdev == 0 early with -ENODEV since no real block device driver registers major 0.

---
 block/bdev.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
block/bdev.c +12 -0
index fe4848c77127c..0c1b8d3e80a37 100644
@@ -1005,6 +1005,18 @@ int lookup_bdev(const char *pathname, dev_t *dev)
 	if (!may_open_dev(&path))
 		goto out_path_put;
 
+	/*
+	 * Reject a block device inode with i_rdev == 0.  A dev_t of 0 is
+	 * never valid for a block device: no real block device driver
+	 * registers major 0.  Fake block device inodes (e.g. fuse with
+	 * rootmode=S_IFBLK) can expose i_rdev == 0, and letting that
+	 * propagate would confuse superblock lookup and trigger warnings
+	 * in the device-to-superblock table (super_dev_register).
+	 */
+	error = -ENODEV;
+	if (!inode->i_rdev)
+		goto out_path_put;
+
 	*dev = inode->i_rdev;
 	error = 0;
 out_path_put:
Signature · 1 line
2.53.0
author maintainer
#60 lore raw

PATCH 55/2857 iio: adc: max1241: add missing MODULE_DEVICE_TABLE()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit 790a2080e0c9eabefea3561dec301172043de236 ]

The driver has a match table for the spi bus wired into its driver structure, but the table is not exported with MODULE_DEVICE_TABLE().

Add the missing MODULE_DEVICE_TABLE() entry so module alias information is generated for automatic module loading.

This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the driver registration structure, and the missing module alias publication.

---
 drivers/iio/adc/max1241.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/max1241.c +1 -0
index a815ad1f6913b..4520f9b48eaac 100644
@@ -201,6 +201,7 @@ static const struct spi_device_id max1241_id[] = {
 	{ "max1241", max1241 },
 	{}
 };
+MODULE_DEVICE_TABLE(spi, max1241_id);
 
 static const struct of_device_id max1241_dt_ids[] = {
 	{ .compatible = "maxim,max1241" },
Signature · 1 line
2.53.0
author maintainer
#61 lore raw

PATCH 56/2857 RDMA/rxe: Check PDs for memory window binds

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Zhiwei Zhang <[email protected]>

[ Upstream commit fbbe1d5cd7d400a98afcf337969cfdb808cb198f ]

The IBTA Software Transport Verbs specification requires the QP, Memory Window and Memory Region for a Bind Memory Window operation to belong to the same HCA and protection domain.

rxe only checked the QP and MW protection domain for type 2 MWs. Move the QP/MW PD check to the common bind path and also reject binding an MW to an MR from a different PD.

Invalid bind requests continue to fail with IB_WC_MW_BIND_ERR.

---
 drivers/infiniband/sw/rxe/rxe_mw.c | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)
drivers/infiniband/sw/rxe/rxe_mw.c +12 -8
index cebc9f0f428d8..9ed6647f156d5 100644
@@ -72,13 +72,6 @@ static int rxe_check_bind_mw(struct rxe_qp *qp, struct rxe_send_wqe *wqe,
 			return -EINVAL;
 		}
 
-		/* C10-72 */
-		if (unlikely(qp->pd != to_rpd(mw->ibmw.pd))) {
-			rxe_dbg_mw(mw,
-				"attempt to bind type 2 MW with qp with different PD\n");
-			return -EINVAL;
-		}
-
 		/* o10-37.2.40 */
 		if (unlikely(!mr || wqe->wr.wr.mw.length == 0)) {
 			rxe_dbg_mw(mw,
@@ -87,10 +80,21 @@ static int rxe_check_bind_mw(struct rxe_qp *qp, struct rxe_send_wqe *wqe,
 		}
 	}
 
-	/* remaining checks only apply to a nonzero MR */
+	/* C10-72 */
+	if (unlikely(qp->pd != rxe_mw_pd(mw))) {
+		rxe_dbg_mw(mw, "attempt to bind MW with qp with different PD\n");
+		return -EINVAL;
+	}
+
 	if (!mr)
 		return 0;
 
+	/* remaining checks only apply to a nonzero MR */
+	if (unlikely(qp->pd != mr_pd(mr))) {
+		rxe_dbg_mw(mw, "attempt to bind MW/QP to MR with different PD\n");
+		return -EINVAL;
+	}
+
 	if (unlikely(mr->access & IB_ZERO_BASED)) {
 		rxe_dbg_mw(mw, "attempt to bind MW to zero based MR\n");
 		return -EINVAL;
Signature · 1 line
2.53.0
author maintainer
#62 lore raw

PATCH 57/2857 gpio: sifive: add missing MODULE_DEVICE_TABLE()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit 8fe6fa0f223f44b8b869319d1b9c383749aa147b ]

The driver has an OF match table wired to .of_match_table, but does not export the table with MODULE_DEVICE_TABLE().

Add the missing MODULE_DEVICE_TABLE(of, ...) entry so module alias information is generated for OF based module autoloading.

This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the platform driver, and the missing module alias publication.

---
 drivers/gpio/gpio-sifive.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-sifive.c +1 -0
index 0f1e1226ebbe8..7e0d72250cfab 100644
@@ -269,6 +269,7 @@ static const struct of_device_id sifive_gpio_match[] = {
 	{ .compatible = "sifive,fu540-c000-gpio" },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, sifive_gpio_match);
 
 static struct platform_driver sifive_gpio_driver = {
 	.probe		= sifive_gpio_probe,
Signature · 1 line
2.53.0
author maintainer
#63 lore raw

PATCH 58/2857 mmc: cqhci: fix to missed endian conversions

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Ben Dooks <[email protected]>

[ Upstream commit 0aae2c73175821a71c0e20607f8e333be5b71940 ]

Fix two places where the wrong type or conversion of little-endian types to fix the following sparse warnings:

drivers/mmc/host/cqhci-core.c:487:15: warning: incorrect type in assignment (different base types)
drivers/mmc/host/cqhci-core.c:487:15: expected restricted __le32 [usertype]
drivers/mmc/host/cqhci-core.c:487:15: got int
drivers/mmc/host/cqhci-core.c:566:19: warning: incorrect type in assignment (different base types)
drivers/mmc/host/cqhci-core.c:566:19: expected unsigned long long [usertype] *task_desc
drivers/mmc/host/cqhci-core.c:566:19: got restricted __le64 [usertype] *

---
 drivers/mmc/host/cqhci-core.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/mmc/host/cqhci-core.c +7 -7
index fe7a4eac9595c..d942f3fe95abe 100644
@@ -479,11 +479,11 @@ static void cqhci_set_tran_desc(u8 *desc, dma_addr_t addr, int len, bool end,
 {
 	__le32 *attr = (__le32 __force *)desc;
 
-	*attr = (CQHCI_VALID(1) |
-		 CQHCI_END(end ? 1 : 0) |
-		 CQHCI_INT(0) |
-		 CQHCI_ACT(0x4) |
-		 CQHCI_DAT_LENGTH(len));
+	*attr = cpu_to_le32((CQHCI_VALID(1) |
+			     CQHCI_END(end ? 1 : 0) |
+			     CQHCI_INT(0) |
+			     CQHCI_ACT(0x4) |
+			     CQHCI_DAT_LENGTH(len)));
 
 	if (dma64) {
 		__le64 *dataddr = (__le64 __force *)(desc + 4);
@@ -532,7 +532,7 @@ static int cqhci_prep_tran_desc(struct mmc_request *mrq,
 static void cqhci_prep_dcmd_desc(struct mmc_host *mmc,
 				   struct mmc_request *mrq)
 {
-	u64 *task_desc = NULL;
+	__le64 *task_desc = NULL;
 	u64 data = 0;
 	u8 resp_type;
 	u8 *desc;
@@ -564,7 +564,7 @@ static void cqhci_prep_dcmd_desc(struct mmc_host *mmc,
 		 CQHCI_CMD_TIMING(timing) | CQHCI_RESP_TYPE(resp_type));
 	if (cq_host->ops->update_dcmd_desc)
 		cq_host->ops->update_dcmd_desc(mmc, mrq, &data);
-	*task_desc |= data;
+	*task_desc |= cpu_to_le64(data);
 	desc = (u8 *)task_desc;
 	pr_debug("%s: cqhci: dcmd: cmd: %d timing: %d resp: %d\n",
 		 mmc_hostname(mmc), mrq->cmd->opcode, timing, resp_type);
Signature · 1 line
2.53.0
author maintainer
#64 lore raw

PATCH 59/2857 mmc: dw_mmc: stop and complete DMA also in STATE_DATA_BUSY state

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Marek Szyprowski <[email protected]>

[ Upstream commit cb3fcb8d118b874178251d1f02613f60d25e4ddc ]

When transfer was stopped in STATE_DATA_BUSY state, there was no call to dma_ops->cleanup function, so the DMA mapped buffer was never properly unmapped. Fix this by calling dw_mci_stop_dma() function also in that state to ensure proper cleanup call when DMA transfer was used.

---
 drivers/mmc/host/dw_mmc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/dw_mmc.c +1 -0
index 0822493c949e8..c2920001510c2 100644
@@ -2209,6 +2209,7 @@ static void dw_mci_tasklet_func(struct tasklet_struct *t)
 			}
 
 			dw_mci_stop_fault_timer(host);
+			dw_mci_stop_dma(host);
 			host->data = NULL;
 			set_bit(EVENT_DATA_COMPLETE, &host->completed_events);
 			err = dw_mci_data_complete(host, data);
Signature · 1 line
2.53.0
author maintainer
#65 lore raw

PATCH 60/2857 clk: sunxi-ng: fix ccu probe clock unregister on error

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Jerome Brunet <[email protected]>

[ Upstream commit 81f4ddc9f7e0c11d3e9d24d0f30023845a02f7ee ]

When registering clocks with sunxi_ccu_probe(), the number of ccu_clocks and the number of hw clocks might be different, eventhough they usually are the same.

If they are different, it could lead to out-of-bound access or registered clock left behind on error.

Use a different variable when iterating on hw clocks so every registered clock, and only those, gets unregistered on error.

---
 drivers/clk/sunxi-ng/ccu_common.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/clk/sunxi-ng/ccu_common.c +6 -6
index 8d28a7a079d09..03ebbc0c926a4 100644
@@ -92,7 +92,7 @@ static int sunxi_ccu_probe(struct sunxi_ccu *ccu, struct device *dev,
 			   const struct sunxi_ccu_desc *desc)
 {
 	struct ccu_reset *reset;
-	int i, ret;
+	int i, j, ret;
 
 	ccu->desc = desc;
 
@@ -108,8 +108,8 @@ static int sunxi_ccu_probe(struct sunxi_ccu *ccu, struct device *dev,
 		cclk->lock = &ccu->lock;
 	}
 
-	for (i = 0; i < desc->hw_clks->num ; i++) {
-		struct clk_hw *hw = desc->hw_clks->hws[i];
+	for (j = 0; j < desc->hw_clks->num ; j++) {
+		struct clk_hw *hw = desc->hw_clks->hws[j];
 		const char *name;
 
 		if (!hw)
@@ -121,7 +121,7 @@ static int sunxi_ccu_probe(struct sunxi_ccu *ccu, struct device *dev,
 		else
 			ret = of_clk_hw_register(node, hw);
 		if (ret) {
-			pr_err("Couldn't register clock %d - %s\n", i, name);
+			pr_err("Couldn't register clock %d - %s\n", j, name);
 			goto err_clk_unreg;
 		}
 	}
@@ -149,8 +149,8 @@ static int sunxi_ccu_probe(struct sunxi_ccu *ccu, struct device *dev,
 err_del_provider:
 	of_clk_del_provider(node);
 err_clk_unreg:
-	while (--i >= 0) {
-		struct clk_hw *hw = desc->hw_clks->hws[i];
+	while (--j >= 0) {
+		struct clk_hw *hw = desc->hw_clks->hws[j];
 
 		if (!hw)
 			continue;
Signature · 1 line
2.53.0
author maintainer
#66 lore raw

PATCH 61/2857 remoteproc: core: Full attach detach during recovery

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Tanmay Shah <[email protected]>

[ Upstream commit d93ffd549fb4df18c934ca7a47d4128a18c718cb ]

Current attach on recovery mechanism loads the clean resource table during recovery, but doesn't re-allocate the resources. RPMsg communication will fail after recovery due to this. Fix this incorrect behavior by doing the full detach and attach of remote processor during the recovery. This will load the clean resource table and re-allocate all the resources, which will set up correct vring information in the resource table.

---
 drivers/remoteproc/remoteproc_core.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
drivers/remoteproc/remoteproc_core.c +14 -1
index fc92de3cc0de2..80ea239394875 100644
@@ -1782,7 +1782,20 @@ static int rproc_attach_recovery(struct rproc *rproc)
 	if (ret)
 		return ret;
 
-	return __rproc_attach(rproc);
+	/* clean up all acquired resources */
+	rproc_resource_cleanup(rproc);
+
+	/* release HW resources if needed */
+	rproc_unprepare_device(rproc);
+
+	rproc_disable_iommu(rproc);
+
+	/* Free the copy of the resource table */
+	kfree(rproc->cached_table);
+	rproc->cached_table = NULL;
+	rproc->table_ptr = NULL;
+
+	return rproc_attach(rproc);
 }
 
 static int rproc_boot_recovery(struct rproc *rproc)
Signature · 1 line
2.53.0
author maintainer
#67 lore raw

PATCH 62/2857 nvme: zns: cap zone report nr_zones by DMA buffer size

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Xixin Liu <[email protected]>

[ Upstream commit 09c9062d4f62199a634a45e2bb9e6e8e572cc78c ]

With Partial Report (PR=1), the Number of Zones (NZ) field in the report header must equal the number of zone descriptors fully transferred in the DMA buffer (ZNS Command Set Specification Rev 1.2, section 3.4.2).

nvme_ns_report_zones() does not cap the parse loop by max_in_buf derived from buflen. Cap nz with min3() over the device-reported count, nr_zones - zone_idx, and max_in_buf.

---
 drivers/nvme/host/zns.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/nvme/host/zns.c +6 -2
index 12316ab51bda6..18cb12931af71 100644
@@ -180,7 +180,7 @@ int nvme_ns_report_zones(struct nvme_ns *ns, sector_t sector,
 	struct nvme_zone_report *report;
 	struct nvme_command c = { };
 	int ret, zone_idx = 0;
-	unsigned int nz, i;
+	unsigned int max_in_buf, nz, i;
 	size_t buflen;
 
 	if (ns->head->ids.csi != NVME_CSI_ZNS)
@@ -190,6 +190,9 @@ int nvme_ns_report_zones(struct nvme_ns *ns, sector_t sector,
 	if (!report)
 		return -ENOMEM;
 
+	max_in_buf = (buflen - sizeof(struct nvme_zone_report)) /
+		sizeof(struct nvme_zone_descriptor);
+
 	c.zmr.opcode = nvme_cmd_zone_mgmt_recv;
 	c.zmr.nsid = cpu_to_le32(ns->head->ns_id);
 	c.zmr.numd = cpu_to_le32(nvme_bytes_to_numd(buflen));
@@ -209,7 +212,8 @@ int nvme_ns_report_zones(struct nvme_ns *ns, sector_t sector,
 			goto out_free;
 		}
 
-		nz = min((unsigned int)le64_to_cpu(report->nr_zones), nr_zones);
+		nz = min3((unsigned int)le64_to_cpu(report->nr_zones),
+			  nr_zones - zone_idx, max_in_buf);
 		if (!nz)
 			break;
 
Signature · 1 line
2.53.0
author maintainer
#68 lore raw

PATCH 63/2857 staging: rtl8723bs: fix missing unregister_netdev on sdio_alloc_irq failure

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Devansh Soni <[email protected]>

[ Upstream commit 51b554f1a758570159a770983c7a0ccd7c761491 ]

In rtw_drv_init(), if rtw_drv_register_netdev() succeeds but sdio_alloc_irq() fails, the error path jumps to free_if1 and calls rtw_sdio_if1_deinit(). However, rtw_sdio_if1_deinit() calls rtw_free_netdev() without a preceding unregister_netdev(), freeing a still-registered netdev but leaving stale sysfs entries behind.

---
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +4 -1
index 3b5a6f685bce5..258f68c35dc07 100644
@@ -382,11 +382,14 @@ static int rtw_drv_init(
 
 	status = sdio_alloc_irq(dvobj);
 	if (status != _SUCCESS)
-		goto free_if1;
+		goto free_netdev;
 
 	rtw_ndev_notifier_register();
 	status = _SUCCESS;
 
+free_netdev:
+	if (status != _SUCCESS)
+		rtw_unregister_netdevs(dvobj);
 free_if1:
 	if (status != _SUCCESS && if1)
 		rtw_sdio_if1_deinit(if1);
Signature · 1 line
2.53.0
author maintainer
#69 lore raw

PATCH 64/2857 udf: validate extent partition references in udf_current_aext()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Kyle Zeng <[email protected]>

[ Upstream commit 120ec50984b8645232c2c004310dd94ceff5520e ]

Long allocation descriptors carry an on-disk extLocation.partitionReferenceNum. udf_current_aext() copies that value into a kernel_lb_addr and returns it to several consumers.

If the partition reference is outside s_partitions, callers can later index s_partmaps out of bounds. The truncate/free path can pass such an extent to udf_free_blocks(), where the invalid partition reference causes a slab out-of-bounds read.

Validate eloc->partitionReferenceNum in udf_current_aext() before returning a decoded extent. This rejects invalid file extents and indirect allocation descriptor extents in the common parser, so callers do not need to duplicate the partition-map bounds check.

---
 fs/udf/inode.c | 7 +++++++
 1 file changed, 7 insertions(+)
fs/udf/inode.c +7 -0
index 6cdbe82194ff4..6e8ae5e98017a 100644
@@ -2141,6 +2141,13 @@ int udf_current_aext(struct inode *inode, struct extent_position *epos,
 		return -EINVAL;
 	}
 
+	if (eloc->partitionReferenceNum >= UDF_SB(inode->i_sb)->s_partitions) {
+		udf_debug("invalid partition reference %u (partitions %u)\n",
+			  eloc->partitionReferenceNum,
+			  UDF_SB(inode->i_sb)->s_partitions);
+		return -EFSCORRUPTED;
+	}
+
 	return 1;
 }
 
Signature · 1 line
2.53.0
author maintainer
#70 lore raw

PATCH 65/2857 drm/amdgpu/atomfirmware: WARN() rather than BUG()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Alex Deucher <[email protected]>

[ Upstream commit d7c595044965c826e6f3ce30590d3ec4399cd633 ]

There's no need to crash the kernel for this case. Just return an error.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +0 -2
index 1e64720a70a2b..f66e0489937bd 100644
@@ -738,8 +738,6 @@ int amdgpu_atomfirmware_get_clock_info(struct amdgpu_device *adev)
 				   (crev != 6)) {
 				spll->reference_freq = le32_to_cpu(gfx_info->v22.rlc_gpu_timer_refclk);
 				ret = 0;
-			} else {
-				BUG();
 			}
 		}
 	}
Signature · 1 line
2.53.0
author maintainer
#71 lore raw

PATCH 66/2857 drm/amdgpu/gfx11: WARN() rather than BUG() for invalid SDMA engine

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Alex Deucher <[email protected]>

[ Upstream commit c24edbd5ae0e4f24e0179e8c9f22a867016177bb ]

There's no need to crash the kernel for these cases.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c +2 -1
index 7e80caa05060b..8f4a90080725b 100644
@@ -137,7 +137,8 @@ static uint32_t get_sdma_rlc_reg_offset(struct amdgpu_device *adev,
 				regSDMA1_QUEUE0_RB_CNTL) - regSDMA0_QUEUE0_RB_CNTL;
 		break;
 	default:
-		BUG();
+		WARN(1, "Invalid SDMA engine id %d\n", engine_id);
+		break;
 	}
 
 	sdma_rlc_reg_offset = sdma_engine_reg_base
Signature · 1 line
2.53.0
author maintainer
#72 lore raw

PATCH 67/2857 ASoC: codecs: max98396: Unwind supplies on resume failure

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit d20de7409dfa8e3341af7f157cd42130bd4ba3a7 ]

max98396_resume() enables the core, pvdd, and vbat supplies before leaving cache-only mode, resetting the device, and replaying cached register state. The function currently ignores regcache_sync() failures, and the optional pvdd/vbat enable failures return without unwinding supplies that were already enabled in this resume attempt.

Rework the function to use common error labels. This propagates sync failures, restores cache-only/dirty state on failed cache replay, and disables each supply acquired by this resume path before returning the error.

---
 sound/soc/codecs/max98396.c | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)
sound/soc/codecs/max98396.c +21 -3
index a7b6a23f2cd86..94bdeef156e38 100644
@@ -1603,19 +1603,37 @@ static int max98396_resume(struct device *dev)
 	if (max98396->pvdd) {
 		ret = regulator_enable(max98396->pvdd);
 		if (ret < 0)
-			return ret;
+			goto err_core_supplies;
 	}
 
 	if (max98396->vbat) {
 		ret = regulator_enable(max98396->vbat);
 		if (ret < 0)
-			return ret;
+			goto err_pvdd;
 	}
 
 	regcache_cache_only(max98396->regmap, false);
 	max98396_reset(max98396, dev);
-	regcache_sync(max98396->regmap);
+	ret = regcache_sync(max98396->regmap);
+	if (ret < 0) {
+		regcache_cache_only(max98396->regmap, true);
+		regcache_mark_dirty(max98396->regmap);
+		goto err_vbat;
+	}
+
 	return 0;
+
+err_vbat:
+	if (max98396->vbat)
+		regulator_disable(max98396->vbat);
+err_pvdd:
+	if (max98396->pvdd)
+		regulator_disable(max98396->pvdd);
+err_core_supplies:
+	regulator_bulk_disable(MAX98396_NUM_CORE_SUPPLIES,
+			       max98396->core_supplies);
+
+	return ret;
 }
 #endif
 
Signature · 1 line
2.53.0
author maintainer
#73 lore raw

PATCH 68/2857 PCI/ATS: Ensure pci_ats_supported() is PF-aware for VFs

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pranjal Shrivastava <[email protected]>

[ Upstream commit 4f2cd6091ac41566a7300f5a4590d20a99aaa8bc ]

Update pci_ats_supported() to additionally check the associated PF's status when called on a VF. This ensures that PF-level quirks and untrusted status are correctly propagated to VFs, providing a robust support check that aligns with the kernel's PF-centric ATS configuration model and is immune to the timing of VF-specific fixups.

---
 drivers/pci/ats.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/pci/ats.c +5 -2
index c967ad6e26267..aa89408cf0195 100644
@@ -39,10 +39,13 @@ void pci_ats_init(struct pci_dev *dev)
  */
 bool pci_ats_supported(struct pci_dev *dev)
 {
-	if (!dev->ats_cap)
+	if (!dev->ats_cap || dev->untrusted)
 		return false;
 
-	return (dev->untrusted == 0);
+	if (dev->is_virtfn)
+		return pci_ats_supported(pci_physfn(dev));
+
+	return true;
 }
 EXPORT_SYMBOL_GPL(pci_ats_supported);
 
Signature · 1 line
2.53.0
author maintainer
#74 lore raw

PATCH 69/2857 rpmsg: char: Check for ongoing chrdev destroy

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Chris Lew <[email protected]>

[ Upstream commit 1f9c2897afb0fe86c1fdf4f5e23c5fb8f7442f6d ]

A null pointer panic is observed when stopping a remoteproc and closing a character device using the RPMSG_DESTROY_EPT_IOCTL. There is a race where each context calls rpmsg_chrdev_eptdev_destroy(). The thread that runs second will call cdev_device_del() for a second time, which fails because the first call already removed the device from sysfs. Add a check at the beginning of destroy and exit early if the destroy call has already been done.

[ 26.654130] Call trace
[ 26.656658] kernfs_find_and_get_ns+0x28/0x8
[ 26.661140] sysfs_unmerge_group+0x2c/0x7
[ 26.665357] dpm_sysfs_remove+0x38/0x8
[ 26.669305] device_del+0xa4/0x3e
[ 26.672811] cdev_device_del+0x28/0x7
[ 26.676675] rpmsg_chrdev_eptdev_destroy+0x68/0x98
[ 26.682765] rpmsg_eptdev_ioctl+0x130/0x11c8
[ 26.688318] __arm64_sys_ioctl+0xb4/0x10
[ 26.692448] invoke_syscall+0x50/0x12
[ 26.696312] el0_svc_common.constprop.0+0xc8/0xf
[ 26.701151] do_el0_svc+0x24/0x3
[ 26.704570] el0_svc+0x40/0x17
[ 26.707810] el0t_64_sync_handler+0x120/0x13
[ 26.712288] el0t_64_sync+0x1a0/0x1a
---
 drivers/rpmsg/rpmsg_char.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/rpmsg/rpmsg_char.c +5 -0
index c02949adf563d..74f13f181a749 100644
@@ -75,6 +75,11 @@ int rpmsg_chrdev_eptdev_destroy(struct device *dev, void *data)
 	struct rpmsg_eptdev *eptdev = dev_to_eptdev(dev);
 
 	mutex_lock(&eptdev->ept_lock);
+	if (!eptdev->rpdev) {
+		mutex_unlock(&eptdev->ept_lock);
+		return 0;
+	}
+
 	eptdev->rpdev = NULL;
 	if (eptdev->ept) {
 		/* The default endpoint is released by the rpmsg core */
Signature · 1 line
2.53.0
author maintainer
#75 lore raw

PATCH 70/2857 media: cec: tegra: add missing MODULE_DEVICE_TABLE()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit 8dcf23edaf4bdf22259f6a47cfddc8bb1467425c ]

The driver has an OF match table wired to .of_match_table, but does not export the table with MODULE_DEVICE_TABLE().

Add the missing MODULE_DEVICE_TABLE(of, ...) entry so module alias information is generated for OF based module autoloading.

This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the platform driver, and the missing module alias publication.

---
 drivers/media/cec/platform/tegra/tegra_cec.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/cec/platform/tegra/tegra_cec.c +1 -0
index 5e907395ca2e5..43fe54f792b65 100644
@@ -460,6 +460,7 @@ static const struct of_device_id tegra_cec_of_match[] = {
 	{ .compatible = "nvidia,tegra210-cec", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, tegra_cec_of_match);
 
 static struct platform_driver tegra_cec_driver = {
 	.driver = {
Signature · 1 line
2.53.0
author maintainer
#76 lore raw

PATCH 71/2857 media: v4l2-tpg: reduce stack usage for kasan builds

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Arnd Bergmann <[email protected]>

[ Upstream commit c49cdaafa443ccf861a72d3191121294742c28c7 ]

tpg_fill_plane_buffer() is a rather complex function. While there is nothing wrong with it per se, I have run into corner cases with clang-22 on s390 using KASAN that makes it run out of registers and blow the stack warning limit from excessive spills:

drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2629:6: error: stack frame size (1560) exceeds limit (1536)
in 'tpg_fill_plane_buffer' [-Werror,-Wframe-larger-than]
2629 | void tpg_fill_plane_buffer(struct tpg_data *tpg, v4l2_std_id std,

Forcing the two largest callees out of line completely avoids the problem and prevents all the register spills, with the stack usage for each function going down to a few bytes for the local variables.

Arguably this is a problem caused by clang rather than the code, but a noinline_for_stack annotation is an easy workaround.

---
 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c +8 -6
index a635ce4cd6430..904ea032b4cee 100644
@@ -2346,9 +2346,11 @@ static void tpg_fill_params_extras(const struct tpg_data *tpg,
 			(params->is_60hz ? V4L2_FIELD_TOP : V4L2_FIELD_BOTTOM);
 }
 
-static void tpg_fill_plane_extras(const struct tpg_data *tpg,
-				  const struct tpg_draw_params *params,
-				  unsigned p, unsigned h, u8 *vbuf)
+/* noinline to work around clang KASAN issues */
+static noinline_for_stack void
+tpg_fill_plane_extras(const struct tpg_data *tpg,
+		      const struct tpg_draw_params *params,
+		      unsigned p, unsigned h, u8 *vbuf)
 {
 	unsigned twopixsize = params->twopixsize;
 	unsigned img_width = params->img_width;
@@ -2483,9 +2485,9 @@ static void tpg_fill_plane_extras(const struct tpg_data *tpg,
 	}
 }
 
-static void tpg_fill_plane_pattern(const struct tpg_data *tpg,
-				   const struct tpg_draw_params *params,
-				   unsigned p, unsigned h, u8 *vbuf)
+static noinline_for_stack void
+tpg_fill_plane_pattern(const struct tpg_data *tpg, const struct tpg_draw_params *params,
+		       unsigned p, unsigned h, u8 *vbuf)
 {
 	unsigned twopixsize = params->twopixsize;
 	unsigned img_width = params->img_width;
Signature · 1 line
2.53.0
author maintainer
#77 lore raw

PATCH 72/2857 mmc: block: reject invalid perdev_minors before division

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Xu Rao <[email protected]>

[ Upstream commit 5253aee00a4383cb0482d5e99bde48b8054ae2c0 ]

The mmcblk.perdev_minors module parameter is parsed as a signed int and is used during mmc_blk_init() to compute the number of supported block devices.

Passing perdev_minors=0 makes the init path divide by zero when it computes max_devices. Negative values are invalid as well and would make max_devices negative before it is later used as an IDA limit.

Reject non-positive perdev_minors values before registering any mmcblk resources.

---
 drivers/mmc/core/block.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/mmc/core/block.c +5 -0
index 22ba3a1d693b8..94139fe07929c 100644
@@ -3184,6 +3184,11 @@ static int __init mmc_blk_init(void)
 {
 	int res;
 
+	if (perdev_minors <= 0) {
+		pr_err("mmcblk: invalid minors per device: %d\n", perdev_minors);
+		return -EINVAL;
+	}
+
 	res  = bus_register(&mmc_rpmb_bus_type);
 	if (res < 0) {
 		pr_err("mmcblk: could not register RPMB bus type\n");
Signature · 1 line
2.53.0
author maintainer
#78 lore raw

PATCH 73/2857 tty: serial: pch_uart: add check for pci_get_slot()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Haoxiang Li <[email protected]>

[ Upstream commit 970ede67de0e3f6a1e707ec99ae49d80bf3f2966 ]

Add check for pci_get_slot() to prevent a potetial null pointer dereference in pch_request_dma().

---
 drivers/tty/serial/pch_uart.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/tty/serial/pch_uart.c +5 -0
index 89cdaeb49e6bc..d6681bb07ff78 100644
@@ -683,6 +683,11 @@ static void pch_request_dma(struct uart_port *port)
 	/* Get DMA's dev information */
 	dma_dev = pci_get_slot(priv->pdev->bus,
 			PCI_DEVFN(PCI_SLOT(priv->pdev->devfn), 0));
+	if (!dma_dev) {
+		dev_err(priv->port.dev, "%s: failed to get DMA device\n",
+			__func__);
+		return;
+	}
 
 	/* Set Tx DMA */
 	param = &priv->param_tx;
Signature · 1 line
2.53.0
author maintainer
#79 lore raw

PATCH 74/2857 usb: fsl_qe_udc: check qe_alloc_request() failure in ch9getstatus()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Haoxiang Li <[email protected]>

[ Upstream commit 612551bf7cf7113b8bbd5e8c1eea86d9427c2f95 ]

qe_alloc_request() may return NULL on allocation failure. ch9getstatus() passes the return value directly to container_of() and then immediately dereferences the resulting qe_req pointer. Check the allocation result before using it and stall the control request on failure.

---
 drivers/usb/gadget/udc/fsl_qe_udc.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/usb/gadget/udc/fsl_qe_udc.c +6 -2
index 72b6d74b34982..2bf8b95093b74 100644
@@ -1944,6 +1944,7 @@ static void ch9getstatus(struct qe_udc *udc, u8 request_type, u16 value,
 			u16 index, u16 length)
 {
 	u16 usb_status = 0;
+	struct usb_request *usb_req;
 	struct qe_req *req;
 	struct qe_ep *ep;
 	int status = 0;
@@ -1984,8 +1985,11 @@ static void ch9getstatus(struct qe_udc *udc, u8 request_type, u16 value,
 		}
 	}
 
-	req = container_of(qe_alloc_request(&ep->ep, GFP_KERNEL),
-					struct qe_req, req);
+	usb_req = qe_alloc_request(&ep->ep, GFP_KERNEL);
+	if (!usb_req)
+		goto stall;
+
+	req = container_of(usb_req, struct qe_req, req);
 	req->req.length = 2;
 	req->req.buf = udc->statusbuf;
 	*(u16 *)req->req.buf = cpu_to_le16(usb_status);
Signature · 1 line
2.53.0
author maintainer
#80 lore raw

PATCH 75/2857 usb: gadget: u_audio: clean up capture endpoint on feedback failure

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Xu Rao <[email protected]>

[ Upstream commit 7a0d4f60da261f61dcb50c8e05fa53cc7d4d4427 ]

u_audio_start_capture() enables the capture OUT endpoint, queues capture requests and marks the stream active before setting up the optional feedback endpoint.

If feedback endpoint configuration or enablement fails, the function returns an error while the capture endpoint remains enabled and its requests may remain queued. The current code even leaves TODO comments at these return paths.

Unwind the already started capture endpoint on these failures. Also set fb_ep_enabled only after usb_ep_enable() succeeds, so the software state matches the endpoint state.

---
 drivers/usb/gadget/function/u_audio.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
drivers/usb/gadget/function/u_audio.c +9 -3
index 6cbcb8c4710dd..d72ab219f1aa5 100644
@@ -641,15 +641,15 @@ int u_audio_start_capture(struct g_audio *audio_dev)
 	ret = config_ep_by_speed(gadget, &audio_dev->func, ep_fback);
 	if (ret < 0) {
 		dev_err(dev, "config_ep_by_speed in_ep_fback failed (%d)\n", ret);
-		return ret; // TODO: Clean up out_ep
+		goto err_out_ep;
 	}
 
-	prm->fb_ep_enabled = true;
 	ret = usb_ep_enable(ep_fback);
 	if (ret < 0) {
 		dev_err(dev, "usb_ep_enable failed for in_ep_fback (%d)\n", ret);
-		return ret; // TODO: Clean up out_ep
+		goto err_out_ep;
 	}
+	prm->fb_ep_enabled = true;
 	req_len = ep_fback->maxpacket;
 
 	req_fback = usb_ep_alloc_request(ep_fback, GFP_ATOMIC);
@@ -680,6 +680,12 @@ int u_audio_start_capture(struct g_audio *audio_dev)
 		dev_err(dev, "%s:%d Error!\n", __func__, __LINE__);
 
 	return 0;
+
+err_out_ep:
+	set_active(prm, false);
+	free_ep(prm, ep);
+
+	return ret;
 }
 EXPORT_SYMBOL_GPL(u_audio_start_capture);
 
Signature · 1 line
2.53.0
author maintainer
#81 lore raw

PATCH 76/2857 usb_string_copy: Use kzalloc() to avoid leaking old data

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: David Laight <[email protected]>

[ Upstream commit 057df423bf4747091cf942af57307627e941e1fb ]

If the string is read while being updated (which is why the copy is done in place) and the new string is longer than the old one, then the reader can read memory that isnt part of either string.

Use memcpy() to copy the known length string instead of strcpy.

---
 drivers/usb/gadget/configfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/configfs.c +2 -2
index 723454292b734..b9e4ae4060593 100644
@@ -115,11 +115,11 @@ static int usb_string_copy(const char *s, char **s_copy)
 	if (copy) {
 		str = copy;
 	} else {
-		str = kmalloc(USB_MAX_STRING_WITH_NULL_LEN, GFP_KERNEL);
+		str = kzalloc(USB_MAX_STRING_WITH_NULL_LEN, GFP_KERNEL);
 		if (!str)
 			return -ENOMEM;
 	}
-	strcpy(str, s);
+	memcpy(str, s, ret + 1);
 	if (str[ret - 1] == '\n')
 		str[ret - 1] = '\0';
 	*s_copy = str;
Signature · 1 line
2.53.0
author maintainer
#82 lore raw

PATCH 77/2857 USB: gadget: inode: fix mm lifetime handling

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Gabriel Prostitis <[email protected]>

[ Upstream commit a1c33c80e11ecd5c3310a38c4be324095dd85ac5 ]

priv stores a pointer to the submitting task's mm_struct, but does not currently hold a reference to it while async requests are pending.

This can result in a use-after-free if the task exits before completion handling finishes.

Take a reference with mmgrab() when queuing the read request and release it with mmdrop() on request completion.

---
 drivers/usb/gadget/legacy/inode.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
drivers/usb/gadget/legacy/inode.c +13 -4
index 9ef922c537b4b..afae2a4573024 100644
@@ -466,11 +466,17 @@ static void ep_user_copy_worker(struct work_struct *work)
 	struct kiocb *iocb = priv->iocb;
 	size_t ret;
 
-	kthread_use_mm(mm);
-	ret = copy_to_iter(priv->buf, priv->actual, &priv->to);
-	kthread_unuse_mm(mm);
-	if (!ret)
+	if (mmget_not_zero(mm)) {
+		kthread_use_mm(mm);
+		ret = copy_to_iter(priv->buf, priv->actual, &priv->to);
+		kthread_unuse_mm(mm);
+		mmput(mm);
+		if (!ret)
+			ret = -EFAULT;
+	} else {
 		ret = -EFAULT;
+	}
+	mmdrop(mm);
 
 	/* completing the iocb can drop the ctx and mm, don't touch mm after */
 	iocb->ki_complete(iocb, ret);
@@ -496,6 +502,7 @@ static void ep_aio_complete(struct usb_ep *ep, struct usb_request *req)
 	 * complete the aio request immediately.
 	 */
 	if (priv->to_free == NULL || unlikely(req->actual == 0)) {
+		mmdrop(priv->mm);
 		kfree(req->buf);
 		kfree(priv->to_free);
 		kfree(priv);
@@ -536,6 +543,7 @@ static ssize_t ep_aio(struct kiocb *iocb,
 	priv->epdata = epdata;
 	priv->actual = 0;
 	priv->mm = current->mm; /* mm teardown waits for iocbs in exit_aio() */
+	mmgrab(priv->mm);
 
 	/* each kiocb is coupled to one usb_request, but we can't
 	 * allocate or submit those if the host disconnected.
@@ -565,6 +573,7 @@ static ssize_t ep_aio(struct kiocb *iocb,
 
 fail:
 	spin_unlock_irq(&epdata->dev->lock);
+	mmdrop(priv->mm);
 	kfree(priv->to_free);
 	kfree(priv);
 	put_ep(epdata);
Signature · 1 line
2.53.0
author maintainer
#83 lore raw

PATCH 78/2857 pinctrl: sx150x: add missing MODULE_DEVICE_TABLE()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit 5fe4b12c087db3e565f53b87f1dafdf2f0d1ee0f ]

The driver has a match table for the i2c bus wired into its driver structure, but the table is not exported with MODULE_DEVICE_TABLE().

Add the missing MODULE_DEVICE_TABLE() entry so module alias information is generated for automatic module loading.

This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the driver registration structure, and the missing module alias publication.

---
 drivers/pinctrl/pinctrl-sx150x.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pinctrl/pinctrl-sx150x.c +1 -0
index a87ea3b95cf47..c012f422f57ae 100644
@@ -829,6 +829,7 @@ static const struct i2c_device_id sx150x_id[] = {
 	{"sx1509q", (kernel_ulong_t) &sx1509q_device_data },
 	{}
 };
+MODULE_DEVICE_TABLE(i2c, sx150x_id);
 
 static const struct of_device_id sx150x_of_match[] = {
 	{ .compatible = "semtech,sx1501q", .data = &sx1501q_device_data },
Signature · 1 line
2.53.0
author maintainer
#84 lore raw

PATCH 79/2857 crypto: keembay - add missing MODULE_DEVICE_TABLE()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit b73b71df4cb4ca241165ad31218c82dfe489147c ]

The driver has an OF match table wired to .of_match_table, but does not export the table with MODULE_DEVICE_TABLE().

Add the missing MODULE_DEVICE_TABLE(of, ...) entry so module alias information is generated for OF based module autoloading.

This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the platform driver, and the missing module alias publication.

---
 drivers/crypto/keembay/keembay-ocs-ecc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/keembay/keembay-ocs-ecc.c +1 -0
index 2269df17514ce..8196e629896ce 100644
@@ -996,6 +996,7 @@ static const struct of_device_id kmb_ocs_ecc_of_match[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, kmb_ocs_ecc_of_match);
 
 /* The OCS driver is a platform device. */
 static struct platform_driver kmb_ocs_ecc_driver = {
Signature · 1 line
2.53.0
author maintainer
#85 lore raw

PATCH 80/2857 media: em28xx: dev_info->pr_info since dev has been freed

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Hans Verkuil <[email protected]>

[ Upstream commit c132b07f7e5853c0df35a9b94b8e204cdc6afdef ]

In em28xx_free_device() dev_info passed &dev->intf->dev, but that device can be freed already.

Just use pr_info instead.

---
 drivers/media/usb/em28xx/em28xx-cards.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/em28xx/em28xx-cards.c +1 -1
index 62887cf6afa5d..a835084914802 100644
@@ -3504,7 +3504,7 @@ void em28xx_free_device(struct kref *ref)
 {
 	struct em28xx *dev = kref_to_dev(ref);
 
-	dev_info(&dev->intf->dev, "Freeing device\n");
+	pr_info("%s: Freeing device\n", dev->name);
 
 	if (!dev->disconnected)
 		em28xx_release_resources(dev);
Signature · 1 line
2.53.0
author maintainer
#86 lore raw

PATCH 81/2857 media: em28xx: requeue buffers if start_streaming fails

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Hans Verkuil <[email protected]>

[ Upstream commit 67f87b104f4ef3108607ac9d8fa2075b13ed314d ]

If start_streaming fails, then all queued buffers must be returned to vb2 in state QUEUED.

Otherwise it will trigger a WARN_ON.

---
 drivers/media/usb/em28xx/em28xx-video.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
drivers/media/usb/em28xx/em28xx-video.c +16 -2
index a520bec031248..6ac9ad5aa25f6 100644
@@ -1070,6 +1070,9 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count)
 {
 	struct em28xx *dev = vb2_get_drv_priv(vq);
 	struct em28xx_v4l2 *v4l2 = dev->v4l2;
+	struct em28xx_dmaqueue *dmaq = vq->type == V4L2_BUF_TYPE_VBI_CAPTURE ?
+		&dev->vbiq : &dev->vidq;
+	unsigned long flags = 0;
 	struct v4l2_frequency f;
 	struct v4l2_fh *owner;
 	int rc = 0;
@@ -1084,7 +1087,7 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count)
 	 */
 	rc = res_get(dev, vq->type);
 	if (rc)
-		return rc;
+		goto exit;
 
 	if (v4l2->streaming_users == 0) {
 		/* First active streaming user, so allocate all the URBs */
@@ -1107,7 +1110,7 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count)
 					  em28xx_urb_data_copy);
 		if (rc < 0) {
 			res_free(dev, vq->type);
-			return rc;
+			goto exit;
 		}
 
 		/*
@@ -1132,7 +1135,18 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count)
 	}
 
 	v4l2->streaming_users++;
+	return 0;
 
+exit:
+	spin_lock_irqsave(&dev->slock, flags);
+	while (!list_empty(&dmaq->active)) {
+		struct em28xx_buffer *buf;
+
+		buf = list_entry(dmaq->active.next, struct em28xx_buffer, list);
+		list_del(&buf->list);
+		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
+	}
+	spin_unlock_irqrestore(&dev->slock, flags);
 	return rc;
 }
 
Signature · 1 line
2.53.0
author maintainer
#87 lore raw

PATCH 82/2857 media: em28xx: use vb2_video_unregister_device

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Hans Verkuil <[email protected]>

[ Upstream commit 7c8bf63b79371f5b57da1bd1401bd420180ac6e6 ]

Use vb2_video_unregister_device instead of video_unregister_device to ensure any streaming is correctly stopped at unregister time.

---
 drivers/media/usb/em28xx/em28xx-video.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/media/usb/em28xx/em28xx-video.c +6 -6
index 6ac9ad5aa25f6..acc2fbadc609c 100644
@@ -2243,17 +2243,17 @@ static int em28xx_v4l2_fini(struct em28xx *dev)
 	if (video_is_registered(&v4l2->radio_dev)) {
 		dev_info(&dev->intf->dev, "V4L2 device %s deregistered\n",
 			 video_device_node_name(&v4l2->radio_dev));
-		video_unregister_device(&v4l2->radio_dev);
+		vb2_video_unregister_device(&v4l2->radio_dev);
 	}
 	if (video_is_registered(&v4l2->vbi_dev)) {
 		dev_info(&dev->intf->dev, "V4L2 device %s deregistered\n",
 			 video_device_node_name(&v4l2->vbi_dev));
-		video_unregister_device(&v4l2->vbi_dev);
+		vb2_video_unregister_device(&v4l2->vbi_dev);
 	}
 	if (video_is_registered(&v4l2->vdev)) {
 		dev_info(&dev->intf->dev, "V4L2 device %s deregistered\n",
 			 video_device_node_name(&v4l2->vdev));
-		video_unregister_device(&v4l2->vdev);
+		vb2_video_unregister_device(&v4l2->vdev);
 	}
 
 	v4l2_ctrl_handler_free(&v4l2->ctrl_handler);
@@ -2901,19 +2901,19 @@ static int em28xx_v4l2_init(struct em28xx *dev)
 		dev_info(&dev->intf->dev,
 			 "V4L2 device %s deregistered\n",
 			 video_device_node_name(&v4l2->radio_dev));
-		video_unregister_device(&v4l2->radio_dev);
+		vb2_video_unregister_device(&v4l2->radio_dev);
 	}
 	if (video_is_registered(&v4l2->vbi_dev)) {
 		dev_info(&dev->intf->dev,
 			 "V4L2 device %s deregistered\n",
 			 video_device_node_name(&v4l2->vbi_dev));
-		video_unregister_device(&v4l2->vbi_dev);
+		vb2_video_unregister_device(&v4l2->vbi_dev);
 	}
 	if (video_is_registered(&v4l2->vdev)) {
 		dev_info(&dev->intf->dev,
 			 "V4L2 device %s deregistered\n",
 			 video_device_node_name(&v4l2->vdev));
-		video_unregister_device(&v4l2->vdev);
+		vb2_video_unregister_device(&v4l2->vdev);
 	}
 
 	v4l2_ctrl_handler_free(&v4l2->ctrl_handler);
Signature · 1 line
2.53.0
author maintainer
#88 lore raw

PATCH 83/2857 soundwire: dmi-quirks: add a global ghost list

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Bard Liao <[email protected]>

[ Upstream commit b7a5d101d7d267922e828c40135bcaccf8cfb3bf ]

Not like other ghost devices, the 0x000000D010010500 ADR doesn't belong to any codec. We should disable it in all devices.

---
 drivers/soundwire/dmi-quirks.c | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
drivers/soundwire/dmi-quirks.c +20 -1
index 2a98fc8c104d6..62cee6e2179da 100644
@@ -15,6 +15,14 @@ struct adr_remap {
 	u64 remapped_adr;
 };
 
+static const struct adr_remap global_ghost_adr[] = {
+	{
+		0x000000D010010500ull,
+		0x0000000000000000ull
+	},
+	{}
+};
+
 /*
  * Some TigerLake devices based on an initial Intel BIOS do not expose
  * the correct _ADR in the DSDT.
@@ -212,6 +220,7 @@ static const struct dmi_system_id adr_remap_quirk_table[] = {
 u64 sdw_dmi_override_adr(struct sdw_bus *bus, u64 addr)
 {
 	const struct dmi_system_id *dmi_id;
+	int i;
 
 	/* check if any address remap quirk applies */
 	dmi_id = dmi_first_match(adr_remap_quirk_table);
@@ -223,10 +232,20 @@ u64 sdw_dmi_override_adr(struct sdw_bus *bus, u64 addr)
 				dev_dbg(bus->dev, "remapped _ADR 0x%llx as 0x%llx\n",
 					addr, map->remapped_adr);
 				addr = map->remapped_adr;
-				break;
+				goto out;
 			}
 		}
 	}
 
+	/* remap the ghost ADRs */
+	for (i = 0; i < ARRAY_SIZE(global_ghost_adr); i++) {
+		if (global_ghost_adr[i].adr == addr) {
+			dev_dbg(bus->dev, "remapped _ADR 0x%llx as 0x%llx\n",
+				addr, global_ghost_adr[i].remapped_adr);
+			addr = global_ghost_adr[i].remapped_adr;
+			break;
+		}
+	}
+out:
 	return addr;
 }
Signature · 1 line
2.53.0
author maintainer
#89 lore raw

PATCH 84/2857 nvme: bound ns descriptor header and body to identify buffer

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Hari Mishal <[email protected]>

[ Upstream commit 3c568b35a0d309acb40746552bec2af24cd550ef ]

nvme_identify_ns_descs() allocates a buffer and gives it to the controller, which populates it and then iterates the buffer with variable byte increments that vary by type and body size. But, there is no bounds check inside the iteration itself except the loop bound itself. Fix this by checking and stopping iteration if the next header or its declared body would go past the buffer itself.

---
 drivers/nvme/host/core.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/nvme/host/core.c +4 -0
index 1faef93ce4ba6..26233e6a50da9 100644
@@ -1457,8 +1457,12 @@ static int nvme_identify_ns_descs(struct nvme_ctrl *ctrl,
 	for (pos = 0; pos < NVME_IDENTIFY_DATA_SIZE; pos += len) {
 		struct nvme_ns_id_desc *cur = data + pos;
 
+		if (pos + sizeof(*cur) > NVME_IDENTIFY_DATA_SIZE)
+			break;
 		if (cur->nidl == 0)
 			break;
+		if (pos + sizeof(*cur) + cur->nidl > NVME_IDENTIFY_DATA_SIZE)
+			break;
 
 		len = nvme_process_ns_desc(ctrl, &info->ids, cur, &csi_seen);
 		if (len < 0)
Signature · 1 line
2.53.0
author maintainer
#90 lore raw

PATCH 85/2857 iwlwifi: dvm: add missing cleaup for on error path

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Haoxiang Li <[email protected]>

[ Upstream commit 94280e6e0c69a5327e377803732f494d8b5a74cd ]

In iwlagn_tx_agg_start(), call iwlagn_dealloc_agg_txq() to clear bit on error path.

---
 drivers/net/wireless/intel/iwlwifi/dvm/tx.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/dvm/tx.c +3 -1
index ca1daec641c4f..3541193ddbf7e 100644
@@ -602,8 +602,10 @@ int iwlagn_tx_agg_start(struct iwl_priv *priv, struct ieee80211_vif *vif,
 	}
 
 	ret = iwl_sta_tx_modify_enable_tid(priv, sta_id, tid);
-	if (ret)
+	if (ret) {
+		iwlagn_dealloc_agg_txq(priv, txq_id);
 		return ret;
+	}
 
 	spin_lock_bh(&priv->sta_lock);
 	tid_data = &priv->tid_data[sta_id][tid];
Signature · 1 line
2.53.0
author maintainer
#91 lore raw

PATCH 86/2857 media: i2c: ov8865: Drop the runtime PM usage count on stream failure

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Jurison Murati <[email protected]>

[ Upstream commit 3fe797a12bfa9a49aa998ee722e5f25c957b9b15 ]

ov8865_s_stream() takes a runtime PM reference when enabling the stream, but returns without releasing it if ov8865_sw_standby() fails, leaving the reference unbalanced and the sensor powered indefinitely. The same applies to a failure while disabling the stream, in which case the reference acquired at stream start is never dropped.

Drop the reference in a single place, both when disabling the stream and on failure, and only update the streaming state on success.

---
 drivers/media/i2c/ov8865.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
drivers/media/i2c/ov8865.c +5 -7
index cae1866134a03..498448b2ba2ab 100644
@@ -2629,15 +2629,13 @@ static int ov8865_s_stream(struct v4l2_subdev *subdev, int enable)
 	ret = ov8865_sw_standby(sensor, !enable);
 	mutex_unlock(&sensor->mutex);
 
-	if (ret)
-		return ret;
-
-	state->streaming = !!enable;
-
-	if (!enable)
+	if (ret || !enable)
 		pm_runtime_put(sensor->dev);
 
-	return 0;
+	if (!ret)
+		state->streaming = enable;
+
+	return ret;
 }
 
 static int ov8865_g_frame_interval(struct v4l2_subdev *subdev,
Signature · 1 line
2.53.0
author maintainer
#92 lore raw

PATCH 87/2857 drm/etnaviv: check all modules for idle after reset

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Lucas Stach <[email protected]>

[ Upstream commit 1006d1f7c03d92b28c252333836635df8e165401 ]

While the FE is an important part of the GPU, which needs to be idle after reset, all other modules should be idle after a proper reset. Check all present modules for being idle to determine whether the reset was successful.

---
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/etnaviv/etnaviv_gpu.c +3 -3
index c0410e314dfab..dd1c1391acfcd 100644
@@ -537,9 +537,9 @@ static int etnaviv_hw_reset(struct etnaviv_gpu *gpu)
 		/* read idle register. */
 		idle = gpu_read(gpu, VIVS_HI_IDLE_STATE);
 
-		/* try resetting again if FE is not idle */
-		if ((idle & VIVS_HI_IDLE_STATE_FE) == 0) {
-			dev_dbg(gpu->dev, "FE is not idle\n");
+		/* try resetting again if any module is not idle */
+		if ((idle & gpu->idle_mask) != gpu->idle_mask) {
+			dev_dbg(gpu->dev, "GPU modules not idle\n");
 			continue;
 		}
 
Signature · 1 line
2.53.0
author maintainer
#93 lore raw

PATCH 88/2857 media: i2c: ov8865: Program the sensor on stream start

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Jurison Murati <[email protected]>

[ Upstream commit 4e1446ac169a1a621ba90502ab8db3be821fe726 ]

The sensor registers are only written in the runtime PM resume handler; ov8865_set_fmt() merely stores the requested mode, relying on the sensor being runtime suspended between uses so that the next resume applies it.

That assumption breaks when something keeps the sensor powered. On IPU3 platforms, ipu_bridge instantiates the VCM device with a DL_FLAG_PM_RUNTIME device link to the sensor, so a userspace process holding the VCM subdev open (e.g. wireplumber's camera monitor) pins the sensor runtime-active. A subsequent set_fmt() then never reaches the hardware: the sensor keeps streaming the mode programmed on the last resume while the CSI-2 receiver expects the newly negotiated format.

On a Surface Book 2 (IPU3, ov8865 + dw9719 VCM), requesting the 3264x2448 mode while the hardware was left programmed for the 1632x1224 binned mode makes ipu3-cio2 report "frame sync error" and "payload length is 10340352, received 2585088" (exactly one binned frame) for every frame, and the inverse case stalls the stream after a single frame. Camera applications end up displaying one bogus frame forever.

Program the sensor configuration and apply the control values on stream start instead, where the negotiated mode is always current, and only write the configuration in the runtime PM resume handler when resuming with the stream already started.

---
 drivers/media/i2c/ov8865.c | 34 +++++++++++++++++++++++++---------
 1 file changed, 25 insertions(+), 9 deletions(-)
drivers/media/i2c/ov8865.c +25 -9
index 498448b2ba2ab..be0cbed3b57b4 100644
@@ -2617,7 +2617,7 @@ static int ov8865_s_stream(struct v4l2_subdev *subdev, int enable)
 {
 	struct ov8865_sensor *sensor = ov8865_subdev_sensor(subdev);
 	struct ov8865_state *state = &sensor->state;
-	int ret;
+	int ret = 0;
 
 	if (enable) {
 		ret = pm_runtime_resume_and_get(sensor->dev);
@@ -2626,7 +2626,23 @@ static int ov8865_s_stream(struct v4l2_subdev *subdev, int enable)
 	}
 
 	mutex_lock(&sensor->mutex);
-	ret = ov8865_sw_standby(sensor, !enable);
+
+	/*
+	 * The sensor may have been kept powered by something else (e.g. the
+	 * VCM's runtime PM device link on IPU3 platforms), in which case
+	 * runtime resume did not run and the hardware may still be
+	 * configured for a previous mode. Always program the negotiated
+	 * configuration on stream start.
+	 */
+	if (enable) {
+		ret = ov8865_sensor_init(sensor);
+		if (!ret)
+			ret = __v4l2_ctrl_handler_setup(&sensor->ctrls.handler);
+	}
+
+	if (!ret)
+		ret = ov8865_sw_standby(sensor, !enable);
+
 	mutex_unlock(&sensor->mutex);
 
 	if (ret || !enable)
@@ -2914,15 +2930,15 @@ static int ov8865_resume(struct device *dev)
 	if (ret)
 		goto complete;
 
-	ret = ov8865_sensor_init(sensor);
-	if (ret)
-		goto error_power;
+	if (state->streaming) {
+		ret = ov8865_sensor_init(sensor);
+		if (ret)
+			goto error_power;
 
-	ret = __v4l2_ctrl_handler_setup(&sensor->ctrls.handler);
-	if (ret)
-		goto error_power;
+		ret = __v4l2_ctrl_handler_setup(&sensor->ctrls.handler);
+		if (ret)
+			goto error_power;
 
-	if (state->streaming) {
 		ret = ov8865_sw_standby(sensor, false);
 		if (ret)
 			goto error_power;
Signature · 1 line
2.53.0
author maintainer
#94 lore raw

PATCH 89/2857 media: ivtv: stop VBI start-code scan before short tail

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit f373cf17fb8e7a530bc6e1e36fc41cb5dab2cdaa ]

compress_sliced_buf() scans one byte at a time while testing a four-byte VBI start code. The final iterations can read beyond the remaining buffer tail.

Stop the scan once fewer than four bytes remain.

---
 drivers/media/pci/ivtv/ivtv-vbi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/ivtv/ivtv-vbi.c +1 -1
index 80478b026d752..279a4d6bece19 100644
@@ -330,7 +330,7 @@ static u32 compress_sliced_buf(struct ivtv *itv, u32 line, u8 *buf, u32 size, u8
 	unsigned lines = 0;
 
 	/* find the first valid line */
-	for (i = 0; i < size; i++, buf++) {
+	for (i = 0; i + 3 < size; i++, buf++) {
 		if (buf[0] == 0xff && !buf[1] && !buf[2] && buf[3] == sav)
 			break;
 	}
Signature · 1 line
2.53.0
author maintainer
#95 lore raw

PATCH 90/2857 media: cx18: stop VBI start-code scan before short tail

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit bf533acaaa7dee21d49bcaabf8e813ea36bddcd8 ]

compress_sliced_buf() scans one byte at a time while testing a four-byte VBI start code. The final iterations can read beyond the remaining buffer tail.

Stop the scan once fewer than four bytes remain.

---
 drivers/media/pci/cx18/cx18-vbi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/cx18/cx18-vbi.c +1 -1
index c7cce38dd7547..38b2cfd2372c0 100644
@@ -135,7 +135,7 @@ static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size,
 				    : VBI_HBLANK_SAMPLES_50HZ;
 
 	/* find the first valid line */
-	for (i = hdr_size, buf += hdr_size; i < size; i++, buf++) {
+	for (i = hdr_size, buf += hdr_size; i + 3 < size; i++, buf++) {
 		if (buf[0] == 0xff && !buf[1] && !buf[2] &&
 		    (buf[3] == sliced_vbi_eav_rp[0] ||
 		     buf[3] == sliced_vbi_eav_rp[1]))
Signature · 1 line
2.53.0
author maintainer
#96 lore raw

PATCH 91/2857 media: go7007: avoid undefined shifts in MPEG-4 headers

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Yousef Alhouseen <[email protected]>

[ Upstream commit 41f82777e547732460290ceb28fcc7c1b95ef192 ]

The byte-alignment paths can call CODE_ADD() with a zero bit length. The macro then shifts an int by name.b, which can be 32 after the preceding bit was flushed.

vti_bitlen() can likewise shift a signed int into its sign bit while searching for the bit length, and the package mask construction can shift by the full type width.

Make zero-length additions a no-op, derive the bit length with fls(), and build the mask with GENMASK().

---
 drivers/media/usb/go7007/go7007-fw.c | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)
drivers/media/usb/go7007/go7007-fw.c +15 -13
index 018019ba47d46..d50304301eeae 100644
@@ -13,6 +13,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/bitops.h>
 #include <linux/time.h>
 #include <linux/mm.h>
 #include <linux/device.h>
@@ -58,14 +59,16 @@ struct code_gen {
 #define CODE_GEN(name, dest) struct code_gen name = { dest, 0, 32, 0 }
 
 #define CODE_ADD(name, val, length) do { \
-	name.b -= (length); \
-	name.a |= (val) << name.b; \
-	while (name.b <= 24) { \
-		*name.p = name.a >> 24; \
-		++name.p; \
-		name.a <<= 8; \
-		name.b += 8; \
-		name.len += 8; \
+	if (length) { \
+		name.b -= (length); \
+		name.a |= (val) << name.b; \
+		while (name.b <= 24) { \
+			*name.p = name.a >> 24; \
+			++name.p; \
+			name.a <<= 8; \
+			name.b += 8; \
+			name.len += 8; \
+		} \
 	} \
 } while (0)
 
@@ -707,11 +710,10 @@ static int gen_mpeg1hdr_to_package(struct go7007 *go,
 
 static int vti_bitlen(struct go7007 *go)
 {
-	unsigned int i, max_time_incr = go->sensor_framerate / go->fps_scale;
+	unsigned int max_time_incr = go->sensor_framerate / go->fps_scale;
+	int bitlen = fls(max_time_incr);
 
-	for (i = 31; (max_time_incr & ((1 << i) - 1)) == max_time_incr; --i)
-		;
-	return i + 1;
+	return bitlen ?: 1;
 }
 
 static int mpeg4_frame_header(struct go7007 *go, unsigned char *buf,
@@ -1209,7 +1211,7 @@ static int seqhead_to_package(struct go7007 *go, __le16 *code, int space,
 		0xbf08,		fps,
 		0xbf09,		0,
 		0xbff2,		vop_time_increment_bitlength,
-		0xbff3,		(1 << vop_time_increment_bitlength) - 1,
+		0xbff3,		GENMASK(vop_time_increment_bitlength - 1, 0),
 		0xbfe6,		0,
 		0xbfe7,		(fps / 1000) << 8,
 		0,		0,
Signature · 1 line
2.53.0
author maintainer
#97 lore raw

PATCH 92/2857 remoteproc: qcom: Check subdev start status in rproc_stop()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Jingyi Wang <[email protected]>

[ Upstream commit f44ae8ce156a387b07d40e2d6a0ef979a2748aa1 ]

For rproc that doing attach, rproc_start_subdevices() is called only when attach successfully. If rproc_report_crash() is called in the attach function, rproc_boot_recovery()->rproc_stop()->rproc_stop_subdevices()-> glink_subdev_stop() could be called and cause NULL pointer dereference:

 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000300
 Mem abort info:
 ...
 pc : qcom_glink_smem_unregister+0x14/0x48 [qcom_glink_smem]
 lr : glink_subdev_stop+0x1c/0x30 [qcom_common]
 ...
 Call trace:
  qcom_glink_smem_unregister+0x14/0x48 [qcom_glink_smem] (P)
  glink_subdev_stop+0x1c/0x30 [qcom_common]
  rproc_stop+0x58/0x17c
  rproc_trigger_recovery+0xb0/0x150
  rproc_crash_handler_work+0xa4/0xc4
  process_scheduled_works+0x18c/0x2d8
  worker_thread+0x144/0x280
  kthread+0x124/0x138
  ret_from_fork+0x10/0x20
 Code: a9be7bfd 910003fd a90153f3 aa0003f3 (b9430000)
 ---[ end trace 0000000000000000 ]---

Introduce "subdevs_started" flag to indicate rproc_start_subdevices() has been called successfully. Ensure subdevices are only stopped if they have been started.

---
 drivers/remoteproc/remoteproc_core.c | 7 +++++++
 include/linux/remoteproc.h           | 2 ++
 2 files changed, 9 insertions(+)
drivers/remoteproc/remoteproc_core.c +7 -0
index 80ea239394875..328a41051c77d 100644
@@ -1102,6 +1102,8 @@ static int rproc_start_subdevices(struct rproc *rproc)
 		}
 	}
 
+	rproc->subdevs_started = true;
+
 	return 0;
 
 unroll_registration:
@@ -1117,10 +1119,15 @@ static void rproc_stop_subdevices(struct rproc *rproc, bool crashed)
 {
 	struct rproc_subdev *subdev;
 
+	if (!rproc->subdevs_started)
+		return;
+
 	list_for_each_entry_reverse(subdev, &rproc->subdevs, node) {
 		if (subdev->stop)
 			subdev->stop(subdev, crashed);
 	}
+
+	rproc->subdevs_started = false;
 }
 
 static void rproc_unprepare_subdevices(struct rproc *rproc)
include/linux/remoteproc.h +2 -0
index 32f2a75e23832..e819c9707bdc7 100644
@@ -273,6 +273,7 @@ enum rproc_features {
  * @has_iommu: flag to indicate if remote processor is behind an MMU
  * @auto_boot: flag to indicate if remote processor should be auto-started
  * @sysfs_read_only: flag to make remoteproc sysfs files read only
+ * @subdevs_started: flag to indicate if subdevs have started
  * @dump_segments: list of segments in the firmware
  * @nb_vdev: number of vdev currently handled by rproc
  * @elf_class: firmware ELF class
@@ -317,6 +318,7 @@ struct rproc {
 	bool has_iommu;
 	bool auto_boot;
 	bool sysfs_read_only;
+	bool subdevs_started;
 	struct list_head dump_segments;
 	int nb_vdev;
 	u8 elf_class;
Signature · 1 line
2.53.0
author maintainer
#98 lore raw

PATCH 93/2857 remoteproc: core: cancel crash_handler work in rproc_add() error path

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Jingyi Wang <[email protected]>

[ Upstream commit 0ec167625b4fea30b26da33c188e853ff25d5583 ]

Ensure crash_handler work is cancelled before tearing down rproc resources to avoid accessing freed memory.

---
 drivers/remoteproc/remoteproc_core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/remoteproc/remoteproc_core.c +1 -0
index 328a41051c77d..ac6ec64f7db66 100644
@@ -2337,6 +2337,7 @@ int rproc_add(struct rproc *rproc)
 	return 0;
 
 rproc_remove_dev:
+	cancel_work_sync(&rproc->crash_handler);
 	rproc_delete_debug_dir(rproc);
 	device_del(dev);
 rproc_remove_cdev:
Signature · 1 line
2.53.0
author maintainer
#99 lore raw

PATCH 94/2857 wifi: iwlwifi: mvm: reset the smart fifo state upon FW stop

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Emmanuel Grumbach <[email protected]>

[ Upstream commit a51cc8131214870af92abbceab64877b27e690c2 ]

The smart fifo is a feature in the firmware configured by the driver. The driver keeps a state to remember what was the last configuration sent to the firmware. Obviously, if the firmware stops, we need to reconfigure the smart fifo. Since we didn't reset that state upon firmware stop, we thought the firmware is already properly configured and we didn't send the smart fifo configuration command as part of the init sequence.

Reset the smart fifo state in iwl_mvm_stop_device() so that we will properly send the command during the init that will come later.

---
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +1 -0
index 591c073bf0a98..ad87dc4db20ff 100644
@@ -1367,6 +1367,7 @@ void iwl_mvm_stop_device(struct iwl_mvm *mvm)
 	iwl_fw_cancel_timestamp(&mvm->fwrt);
 
 	clear_bit(IWL_MVM_STATUS_FIRMWARE_RUNNING, &mvm->status);
+	mvm->sf_state = SF_UNINIT;
 
 	iwl_mvm_pause_tcm(mvm, false);
 
Signature · 1 line
2.53.0
author maintainer
#100 lore raw

PATCH 95/2857 tools/lib/api: Fix potential double-free from fdarray__grow()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Namhyung Kim <[email protected]>

[ Upstream commit eadce0f46a1d066b812c7e5aa46a33711c78a755 ]

If the realloc for fda->entries succeeds but the realloc for fda->priv fails, the error path frees the newly allocated entries.

However, fda->entries is neither updated to point to the new entries block nor cleared to NULL. If realloc moved the allocation to a new block, the old fda->entries pointer is now freed memory.

When fdarray__exit() is later called to clean up, it executes free(fda->entries), which would trigger a double-free on that old pointer.

---
 tools/lib/api/fd/array.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
tools/lib/api/fd/array.c +3 -2
index f0f195207fca9..dcb396ab51eb1 100644
@@ -31,7 +31,8 @@ int fdarray__grow(struct fdarray *fda, int nr)
 
 	priv = realloc(fda->priv, psize);
 	if (priv == NULL) {
-		free(entries);
+		/* this will be freed by fdarray__exit() */
+		fda->entries = entries;
 		return -ENOMEM;
 	}
 
@@ -50,7 +51,7 @@ struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow)
 
 	if (fda != NULL) {
 		if (fdarray__grow(fda, nr_alloc)) {
-			free(fda);
+			fdarray__delete(fda);
 			fda = NULL;
 		} else {
 			fda->nr_autogrow = nr_autogrow;
Signature · 1 line
2.53.0
author maintainer
#101 lore raw

PATCH 96/2857 gpu: host1x: Wait for timeout worker completion on channel free

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Mikko Perttunen <[email protected]>

[ Upstream commit 7a39b9856acccc8e9b05845ca2bf62494fcd3dfa ]

cdma_timeout_destroy() used cancel_delayed_work() to cancel pending timeout work when destroying the CDMA. Usually this is fine, but there is a narrow race condition where the timeout handler has started execution but has not taken cdma->lock; the channel is freed causing cdma_stop to take cdma->lock and flush the channel; host1x_cdma_deinit then proceeds with deinitializing cdma while the handler is waiting to take cdma->lock.

Therefore change cdma_timeout_destroy to use cancel_delayed_work_sync instead to ensure any pending timeout work completes before proceeding.

---
 drivers/gpu/host1x/hw/cdma_hw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/host1x/hw/cdma_hw.c +1 -1
index 1b65a10b9dfcf..9607330000f24 100644
@@ -343,7 +343,7 @@ static int cdma_timeout_init(struct host1x_cdma *cdma)
 static void cdma_timeout_destroy(struct host1x_cdma *cdma)
 {
 	if (cdma->timeout.initialized)
-		cancel_delayed_work(&cdma->timeout.wq);
+		cancel_delayed_work_sync(&cdma->timeout.wq);
 
 	cdma->timeout.initialized = false;
 }
Signature · 1 line
2.53.0
author maintainer
#102 lore raw

PATCH 97/2857 scsi: qla2xxx: Handle INTx not connected while passing through

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Shivaprasad G Bhat <[email protected]>

[ Upstream commit 7268e509b43ac1734e1bdb7d18553f7e1080dfb4 ]

The PCI_INTERRUPT_PIN reports if the device supports the INTx. However, when the device is assigned to a guest via vfio, the PCI_INTERRUPT_PIN is set to 0 (i.e none) if the line is not connected and/or the platform cannot route the interrupt.

In such cases, the guest PCI_INTERRUPT_PIN is 0 and the port number becomes -1 (255, uint8_t underflow) for qla[25|27|28]xx and qla2031 devices. The flt_region_nvram is never set, and subsequently the LUN detection fails. Below warnings show the NVRAM configuration failure:

[]-0073:1: Inconsistent NVRAM checksum=0xffffffc0 id=HCAM version=0x100. []-0074:1: Falling back to functioning (yet invalid -- WWPN) defaults. []-0076:1: NVRAM configuration failed.

Handle this case and set the port_no to devfn like its done everywhere else.

Reference: commit 2bd42b03ab6b ("vfio/pci: Virtualize zero INTx PIN if no pdev->irq")

---
 drivers/scsi/qla2xxx/qla_os.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
drivers/scsi/qla2xxx/qla_os.c +10 -5
index 38e2b31237025..d1d42e03adbfc 100644
@@ -2813,11 +2813,16 @@ qla2x00_set_isp_flags(struct qla_hw_data *ha)
 	else {
 		/* Get adapter physical port no from interrupt pin register. */
 		pci_read_config_byte(ha->pdev, PCI_INTERRUPT_PIN, &ha->port_no);
-		if (IS_QLA25XX(ha) || IS_QLA2031(ha) ||
-		    IS_QLA27XX(ha) || IS_QLA28XX(ha))
-			ha->port_no--;
-		else
-			ha->port_no = !(ha->port_no & 1);
+		if (ha->port_no == 0) {
+			/* None of INT[A|B|C|D] may be virtualized by vfio */
+			ha->port_no = PCI_FUNC(ha->pdev->devfn);
+		} else {
+			if (IS_QLA25XX(ha) || IS_QLA2031(ha) ||
+			    IS_QLA27XX(ha) || IS_QLA28XX(ha))
+				ha->port_no--;
+			else
+				ha->port_no = !(ha->port_no & 1);
+		}
 	}
 
 	ql_dbg_pci(ql_dbg_init, ha->pdev, 0x000b,
Signature · 1 line
2.53.0
author maintainer
#103 lore raw

PATCH 98/2857 media: cec: tegra_cec: dont break off msg on NACK

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Hans Verkuil <[email protected]>

[ Upstream commit be627f257ce283c95fd2988080dc0db3a20d0d2a ]

The Tegra CEC hardware has a bug where, if the first attempt to transmit a message is NACKed so the transmit is aborted, then the second attempt can contain corrupt data.

Ensure that the full message is always transmitted to avoid hitting this bug.

I suspect some internal state is not reset in the case of aborting a message due to a NACK.

---
 drivers/media/cec/platform/tegra/tegra_cec.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
drivers/media/cec/platform/tegra/tegra_cec.c +12 -1
index 43fe54f792b65..c30df776bf8a5 100644
@@ -243,7 +243,18 @@ static int tegra_cec_adap_enable(struct cec_adapter *adap, bool enable)
 		  TEGRA_CEC_INT_MASK_RX_REGISTER_FULL |
 		  TEGRA_CEC_INT_MASK_RX_START_BIT_DETECTED);
 
-	cec_write(cec, TEGRA_CEC_HW_CONTROL, TEGRA_CEC_HWCTRL_TX_RX_MODE);
+	/*
+	 * TX_NAK_MODE ensures that the whole message is transmitted even
+	 * if each byte is NACKed. Without this flag the retransmit of the
+	 * messages after a NACK can be corrupt. This is a bug in the hardware.
+	 *
+	 * While less efficient, in practice you rarely transmit messages
+	 * that can be NACKed, with the exception of POLL messages which
+	 * are just one byte anyway.
+	 */
+	cec_write(cec, TEGRA_CEC_HW_CONTROL,
+		  TEGRA_CEC_HWCTRL_TX_RX_MODE |
+		  TEGRA_CEC_HWCTRL_TX_NAK_MODE);
 	return 0;
 }
 
Signature · 1 line
2.53.0
author maintainer
#104 lore raw

PATCH 99/2857 media: cec/core: drop cec_post_state_event call

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Hans Verkuil <[email protected]>

[ Upstream commit 2ff4b91e82bd76e1a6e1ff22bfc9aeda08e12a61 ]

No need to call cec_post_state_event() if the next call is to cec_adap_unconfigure() since that will also call cec_post_state_event().

This fixes the case when, when the physical address is invalidated, you get two CEC_EVENT_STATE_CHANGE events:
one with a non-zero log_addr_mask and one with a zero log_addr_mask.

You just want to see the event with phys_addr set to f.f.f.f and log_addr_mask set to 0.

---
 drivers/media/cec/core/cec-adap.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/cec/core/cec-adap.c +0 -1
index f9483268c84a1..dbaa2b8e5f2c6 100644
@@ -1655,7 +1655,6 @@ void __cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr, bool block)
 		cec_phys_addr_exp(phys_addr));
 	if (becomes_invalid || !is_invalid) {
 		adap->phys_addr = CEC_PHYS_ADDR_INVALID;
-		cec_post_state_event(adap);
 		cec_adap_unconfigure(adap);
 		if (becomes_invalid) {
 			cec_adap_enable(adap);
Signature · 1 line
2.53.0
author maintainer
#105 lore raw

PATCH 100/2857 usb: musb: host: clear stale RX interrupt on three-strikes error

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Lucas Martins Alves <[email protected]>

[ Upstream commit 3a3a48487344a653f46a4aadc9ba296386eb3541 ]

Unplugging a busy USB Ethernet adapter can leave a stale RX interrupt pending while the host handles MUSB_RXCSR_H_ERROR. On AM335x/DSPS platforms this can retrigger the same three-strikes error before the disconnect path completes, flooding the log and potentially leaving the host port stuck until reboot.

Clear the pending endpoint RX interrupt when aborting the transfer so the error storm is broken, and rate limit the error message to avoid spamming the log while the fault path completes.

---
 drivers/usb/musb/musb_host.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
drivers/usb/musb/musb_host.c +13 -1
index 08c73e9f75d0f..732fe78aa7985 100644
@@ -1774,7 +1774,8 @@ void musb_host_rx(struct musb *musb, u8 epnum)
 		status = -EPIPE;
 
 	} else if (rx_csr & MUSB_RXCSR_H_ERROR) {
-		dev_err(musb->controller, "ep%d RX three-strikes error", epnum);
+		dev_err_ratelimited(musb->controller,
+				    "ep%d RX three-strikes error\n", epnum);
 
 		/*
 		 * The three-strikes error could only happen when the USB
@@ -1788,6 +1789,17 @@ void musb_host_rx(struct musb *musb, u8 epnum)
 		rx_csr &= ~MUSB_RXCSR_H_ERROR;
 		musb_writew(epio, MUSB_RXCSR, rx_csr);
 
+		/*
+		 * Unplugging a USB-Ethernet adapter while it is busy can make
+		 * the controller keep re-asserting the three-strikes error for
+		 * this endpoint before the disconnect is processed. That floods
+		 * the log and can wedge the host port until reboot. Drop the
+		 * stale pending RX interrupt on platforms that support it (e.g.
+		 * AM335x/DSPS) to break the storm; the transfer is still
+		 * aborted below via the fault path.
+		 */
+		musb_platform_clear_ep_rxintr(musb, epnum);
+
 	} else if (rx_csr & MUSB_RXCSR_DATAERROR) {
 
 		if (USB_ENDPOINT_XFER_ISOC != qh->type) {
Signature · 1 line
2.53.0
author maintainer
#106 lore raw

PATCH 101/2857 usb: misc: cypress_cy7c63: check result of IO

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Oliver Neukum <[email protected]>

[ Upstream commit 0673b919e0933541ae56bb3f0253853f696d3773 ]

If the device returns a bogus short read, treat it as EIO. Actually check for IO errors.

---
 drivers/usb/misc/cypress_cy7c63.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/usb/misc/cypress_cy7c63.c +6 -2
index 3be5551a98678..3def90646fdcd 100644
@@ -89,8 +89,11 @@ static int vendor_command(struct cypress *dev, unsigned char request,
 				 address, data, iobuf, CYPRESS_MAX_REQSIZE,
 				 USB_CTRL_GET_TIMEOUT);
 	/* we must not process garbage */
-	if (retval < 2)
+	if (retval < 2) {
+		if (retval >= 0)
+			retval = -EIO;
 		goto err_buf;
+	}
 
 	/* store returned data (more READs to be added) */
 	switch (request) {
@@ -175,8 +178,9 @@ static ssize_t read_port(struct device *dev, struct device_attribute *attr,
 	dev_dbg(&cyp->udev->dev, "READ_PORT%d called\n", port_num);
 
 	result = vendor_command(cyp, CYPRESS_READ_PORT, read_id, 0);
-
 	dev_dbg(&cyp->udev->dev, "Result of vendor_command: %d\n\n", result);
+	if (result < 0)
+		return result;
 
 	return sprintf(buf, "%d", cyp->port[port_num]);
 }
Signature · 1 line
2.53.0
author maintainer
#107 lore raw

PATCH 102/2857 USB: misc: uss720: Fix leak in get_1284_register

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Michail Tatas <[email protected]>

[ Upstream commit 15902712b9e2a46649cba2f22002d05faec2a990 ]

if wait_for_completion_timeout() times out in get_1284_register() then we do not destroy the reference acquired via kref_get() in submit_async_request. Add the missing kref_put in the timeout path.

---
 drivers/usb/misc/uss720.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/misc/uss720.c +1 -0
index 3bb0405d85c0e..fa66e1d5cfb04 100644
@@ -223,6 +223,7 @@ static int get_1284_register(struct parport *pp, unsigned char reg, unsigned cha
 	}
 	printk(KERN_WARNING "get_1284_register timeout\n");
 	kill_all_async_requests_priv(priv);
+	kref_put(&rq->ref_count, destroy_async);
 	return -EIO;
 }
 
Signature · 1 line
2.53.0
author maintainer
#108 lore raw

PATCH 103/2857 uio: sercos3: add missing MODULE_DEVICE_TABLE()

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit a432f68c51fc6761658445e80a798b8425fdb3dc ]

The driver has a match table for the pci bus wired into its driver structure, but the table is not exported with MODULE_DEVICE_TABLE().

Add the missing MODULE_DEVICE_TABLE() entry so module alias information is generated for automatic module loading.

This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the driver registration structure, and the missing module alias publication.

---
 drivers/uio/uio_sercos3.c | 1 +
 1 file changed, 1 insertion(+)
drivers/uio/uio_sercos3.c +1 -0
index b93a5f8f4cba2..20d8b5f9d0e97 100644
@@ -212,6 +212,7 @@ static struct pci_device_id sercos3_pci_ids[] = {
 	},
 	{ 0, }
 };
+MODULE_DEVICE_TABLE(pci, sercos3_pci_ids);
 
 static struct pci_driver sercos3_pci_driver = {
 	.name = "sercos3",
Signature · 1 line
2.53.0
author maintainer
#109 lore raw

PATCH 104/2857 comedi: ni_atmio16d: Add sanity check to interrupt handler

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Ian Abbott <[email protected]>

[ Upstream commit 13f4796223489a5349b466ce54bb868f46c9fefd ]

The driver requests an interrupt handler for the device, after setting device registers to disable interrupt generation. The interrupt handler should not be called prematurely unless the user-configured I/O port base address and/or IRQ number are incorrect or the hardware is bad.

For safety, check the dev->attached flag in the interrupt handler to ensure the device has been fully set up, avoiding a possible null pointer dereference of dev->read_subdev.

---
 drivers/comedi/drivers/ni_atmio16d.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/comedi/drivers/ni_atmio16d.c +3 -0
index e01ab5311d235..b4c25a8b8d40e 100644
@@ -223,6 +223,9 @@ static irqreturn_t atmio16d_interrupt(int irq, void *d)
 	struct comedi_subdevice *s = dev->read_subdev;
 	unsigned short val;
 
+	if (!dev->attached)
+		return IRQ_NONE;
+
 	val = inw(dev->iobase + AD_FIFO_REG);
 	comedi_buf_write_samples(s, &val, 1);
 	comedi_handle_events(dev, s);
Signature · 1 line
2.53.0
author maintainer
#110 lore raw

PATCH 105/2857 comedi: ni_at_a2150: Fix sanity check in interrupt handler

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Ian Abbott <[email protected]>

[ Upstream commit e7356cdc7077a4f30fc5232a18e9fc6a4d404581 ]

The driver requests an interrupt handler for the device before it is fully set up.

For safety, the interrupt handler checks the dev->attached flag to ensure the device is fully set up, but it currently does that after dereferencing various pointers which may be NULL if dev->attached is false. Move the check to avoid the possible null pointer dereferences.

---
 drivers/comedi/drivers/ni_at_a2150.c | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
drivers/comedi/drivers/ni_at_a2150.c +9 -4
index df8d219e67234..cc106437de3c3 100644
@@ -132,11 +132,11 @@ static irqreturn_t a2150_interrupt(int irq, void *d)
 	struct comedi_device *dev = d;
 	struct a2150_private *devpriv = dev->private;
 	struct comedi_isadma *dma = devpriv->dma;
-	struct comedi_isadma_desc *desc = &dma->desc[0];
+	struct comedi_isadma_desc *desc;
 	struct comedi_subdevice *s = dev->read_subdev;
-	struct comedi_async *async = s->async;
-	struct comedi_cmd *cmd = &async->cmd;
-	unsigned short *buf = desc->virt_addr;
+	struct comedi_async *async;
+	struct comedi_cmd *cmd;
+	unsigned short *buf;
 	unsigned int max_points, num_points, residue, leftover;
 	unsigned short dpnt;
 	int status;
@@ -145,6 +145,11 @@ static irqreturn_t a2150_interrupt(int irq, void *d)
 	if (!dev->attached)
 		return IRQ_HANDLED;
 
+	desc = &dma->desc[0];
+	async = s->async;
+	cmd = &async->cmd;
+	buf = desc->virt_addr;
+
 	status = inw(dev->iobase + STATUS_REG);
 	if ((status & INTR_BIT) == 0)
 		return IRQ_NONE;
Signature · 1 line
2.53.0
author maintainer
#111 lore raw

PATCH 106/2857 comedi: pcm818: Fix sanity check in interrupt handler

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Ian Abbott <[email protected]>

[ Upstream commit 956e8478261a575d1e87490f2e5db1788b8c209d ]

The driver requests an interrupt handler for the device before it is fully set up.

For safety, the interrupt handler checks the dev->attached flag to ensure the device is fully set up, but it currently does that after dereferencing the dev->read_dev pointer which may be NULL if dev->attached is false. Move the check to avoid the possible null pointer dereference.

---
 drivers/comedi/drivers/pcl818.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/comedi/drivers/pcl818.c +2 -1
index c5b60616967e6..4a61760d1be8f 100644
@@ -534,13 +534,14 @@ static irqreturn_t pcl818_interrupt(int irq, void *d)
 	struct comedi_device *dev = d;
 	struct pcl818_private *devpriv = dev->private;
 	struct comedi_subdevice *s = dev->read_subdev;
-	struct comedi_cmd *cmd = &s->async->cmd;
+	struct comedi_cmd *cmd;
 
 	if (!dev->attached || !devpriv->ai_cmd_running) {
 		pcl818_ai_clear_eoc(dev);
 		return IRQ_HANDLED;
 	}
 
+	cmd = &s->async->cmd;
 	if (devpriv->ai_cmd_canceled) {
 		/*
 		 * The cleanup from ai_cancel() has been delayed
Signature · 1 line
2.53.0
author maintainer
#112 lore raw

PATCH 107/2857 comedi: quatech_daqp_cs: Fix sanity check in interrupt handler

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Ian Abbott <[email protected]>

[ Upstream commit 1bc9538df6be8dac8727179d8bcc0d880648361b ]

The driver requests an interrupt handler for the device before it is fully set up.

For safety, the interrupt handler checks the dev->attached flag to ensure the device is fully set up, but it currently does that after dereferencing the dev->read_dev pointer which may be NULL if dev->attached is false. Move the check to avoid the possible null pointer dereference.

---
 drivers/comedi/drivers/quatech_daqp_cs.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/comedi/drivers/quatech_daqp_cs.c +3 -1
index 2a76c75c513b8..d5e3e213e233b 100644
@@ -211,13 +211,15 @@ static irqreturn_t daqp_interrupt(int irq, void *dev_id)
 {
 	struct comedi_device *dev = dev_id;
 	struct comedi_subdevice *s = dev->read_subdev;
-	struct comedi_cmd *cmd = &s->async->cmd;
+	struct comedi_cmd *cmd;
 	int loop_limit = 10000;
 	int status;
 
 	if (!dev->attached)
 		return IRQ_NONE;
 
+	cmd = &s->async->cmd;
+
 	status = inb(dev->iobase + DAQP_STATUS_REG);
 	if (!(status & DAQP_STATUS_EVENTS))
 		return IRQ_NONE;
Signature · 1 line
2.53.0
author maintainer
#113 lore raw

PATCH 108/2857 comedi: das6402: Add sanity check to interrupt handler

In reply to Greg Kroah-Hartman

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: Ian Abbott <[email protected]>

[ Upstream commit e90d0550c5b3056c8821f5cd714f80902de0fca6 ]

The driver requests an interrupt handler for the device, after setting device registers to disable interrupt generation. The interrupt handler should not be called prematurely unless the user-configured I/O port base address and/or IRQ number are incorrect or the hardware is bad.

For safety, check the dev->attached flag in the interrupt handler to ensure the device has been fully set up, avoiding a possible null pointer dereference of dev->read_subdev.

---
 drivers/comedi/drivers/das6402.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/comedi/drivers/das6402.c +8 -2
index e730668236c26..c6d28ff45725e 100644
@@ -173,10 +173,16 @@ static irqreturn_t das6402_interrupt(int irq, void *d)
 {
 	struct comedi_device *dev = d;
 	struct comedi_subdevice *s = dev->read_subdev;
-	struct comedi_async *async = s->async;
-	struct comedi_cmd *cmd = &async->cmd;
+	struct comedi_async *async;
+	struct comedi_cmd *cmd;
 	unsigned int status;
 
+	if (!dev->attached)
+		return IRQ_NONE;
+
+	async = s->async;
+	cmd = &async->cmd;
+
 	status = inb(dev->iobase + DAS6402_STATUS_REG);
 	if ((status & DAS6402_STATUS_INT) == 0)
 		return IRQ_NONE;
Signature · 1 line
2.53.0