Skip to contentSkip to conversation

5.15.226-rc1 review

PATCH In review Greg Kroah-Hartman 5 participants 2,219 messages Nov 18 – Nov 19 Page 1 of 16

Subsystems (7)
lore
Share & tools
lore
author maintainer
#1 lore raw

PATCH 1/2214 xen-netback: Fix XenBus connection failure cleanup

In reply to Greg Kroah-Hartman

5.15-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/2214 xen-netback: Zero out sring pointers on unmap

In reply to Greg Kroah-Hartman

5.15-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
@@ -1535,12 +1535,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,

Greg Kroah-Hartman

author maintainer
#0 lore raw

cover 5.15.226-rc1 review

This is the start of the stable review cycle for the 5.15.226 release. There are 2214 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:35 +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/v5.x/stable-review/patch-5.15.226-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-5.15.y
and the diffstat can be found below.

thanks,

greg k-h

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

Greg Kroah-Hartman <[email protected]>

    Linux 5.15.226-rc1

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

Kees Cook <[email protected]>
seq_buf: Do not print an empty line from an overflowed seq_buf_do_printk()

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

Nathan Lynch <[email protected]>
seq_buf: Make DECLARE_SEQ_BUF() usable

Akira Yokosawa <[email protected]>
docs/process/howto: Replace C89 with C11

Kalesh Singh <[email protected]>
tracing/histogram: Fix documentation inline emphasis warning

Tim Gardner <[email protected]>
dmaengine: dw-axi-dmac: Fix uninitialized variable in axi_chan_block_xfer_start()

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

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

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

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

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

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]>
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

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

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

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

Md Haris Iqbal <[email protected]>
block/rnbd-srv: Replace sess_dev_list with index_idr

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

Christoph Hellwig <[email protected]>
rnbd-srv: remove the name field from struct rnbd_dev

Christoph Hellwig <[email protected]>
rnbd-srv: remove struct rnbd_dev_blk_io

Christoph Hellwig <[email protected]>
rnbd-srv: simplify bio mapping in process_rdma

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: keep sharing tags fairly after a queue update

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

Alexandre Belloni <[email protected]>
rtc: s35390a: let the core handle the alarm resolution

Alexandre Belloni <[email protected]>
rtc: add alarm related features

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

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

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

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

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

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

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

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

Xiu Jianfeng <[email protected]>
net: rds: add missing __init/__exit annotations to module init/exit funcs

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

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

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

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

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

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

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

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

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

Matti Vaittinen <[email protected]>
regulator: irq_helper: Provide helper for trivial IRQ notifications

Matti Vaittinen <[email protected]>
regulator: Add regulator_err2notif() helper

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

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

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

Leo Yan <[email protected]>
perf c2c: Use 'peer' as default display for Arm64

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: 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

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: 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

Eric Dumazet <[email protected]>
tcp_metrics: use dst_dev_net_rcu()

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

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

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

tangmeng <[email protected]>
timers: Move timer sysctl into the timer code

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

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

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: 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

Mikhail Zhilkin <[email protected]>
dt-bindings: Add Sercomm (Suzhou) Corporation vendor prefix

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: 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

Yunsheng Lin <[email protected]>
RDMA/core: Remove 'device' argument from rdma_build_skb()

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

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

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: 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

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

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

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'

Kalesh Singh <[email protected]>
tracing/histogram: Document expression arithmetic and constants

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

Yang Li <[email protected]>
ASoC: mediatek: mt8195: Remove unnecessary print function dev_err()

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

Trevor Wu <[email protected]>
ASoC: mediatek: mt8195: enable apll tuner

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

Colin Ian King <[email protected]>
ASoC: mediatek: mt8195: make several arrays static const

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

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

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

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[]

Bob Pearson <[email protected]>
RDMA/rxe: Replace paylen by payload

Bob Pearson <[email protected]>
RDMA/rxe: Fix ref error in rxe_av.c

Chengguang Xu <[email protected]>
RDMA/rxe: Change variable and function argument to proper type

Bob Pearson <[email protected]>
RDMA/rxe: Lookup kernel AH from ah index in UD WQEs

Bob Pearson <[email protected]>

    RDMA/rxe: Replace ah->pd by ah->ibah.pd

Bob Pearson <[email protected]>
RDMA/rxe: Create AH index and return to user space

Bob Pearson <[email protected]>
RDMA/rxe: Move AV from rxe_send_wqe to rxe_send_wr

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

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

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

Takashi Iwai <[email protected]>
ALSA: pcm: Use deferred fasync helper

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()

Marc Zyngier <[email protected]>
irqchip/gic-v3-its: Reset each ITS's BASERn register before probe

Valentin Schneider <[email protected]>
irqchip/gic-v3-its: Postpone LPI pending table freeing and memreserve

Valentin Schneider <[email protected]>
irqchip/gic-v3-its: Give the percpu rdist struct its own flags field

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

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: 6lowpan: Drain RCU readers on registration failure

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

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

Arnaud Pouliquen <[email protected]>
rpmsg: core: add API to get MTU

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

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

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: 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: 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

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

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 clobber the TX break bit in set_termios

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: 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()

Cen Zhang <[email protected]>
ALSA: rawmidi: Drain input work before freeing the runtime

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

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

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

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

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

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

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

Kees Cook <[email protected]>
seq_buf: Introduce DECLARE_SEQ_BUF and seq_buf_str()

Matthew Wilcox (Oracle) <[email protected]>
tracing: Move readpos from seq_buf to trace_seq

Sergey Senozhatsky <[email protected]>
seq_buf: Add seq_buf_do_printk() helper

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: 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

Vincent Mailhol <[email protected]>
sound: usb: remove third argument of usb_maxpacket()

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

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: core: Add missing barriers for power_ref vs card->shutdown

Takashi Iwai <[email protected]>
ALSA: core: Check shutdown flag at D0 power-state, too

Takashi Iwai <[email protected]>
ALSA: core: Fix unintuitive behavior of snd_power_ref_and_wait()

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

Uwe Kleine-König <[email protected]>
ALSA: core: Make snd_card_disconnect() return void

Takashi Iwai <[email protected]>
ALSA: core: Simplify snd_power_ref_and_wait() with the standard macro

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

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

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

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_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

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

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

Julia Lawall <[email protected]>
dmaengine: ste_dma40: fix typo in comment

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

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

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: Use managed resources

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

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

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: sparc-us2e: fix frequency table index copy-paste error

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

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

Linus Walleij <[email protected]>
ARM: dts: AB8505: Enable charging options

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_charger: Recover inactive AB8505 charger

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_btemp: Fix event temperature reporting

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

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

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

Tianjia Zhang <[email protected]>
crypto: tcrypt - remove all multibuffer ahash tests

Tianjia Zhang <[email protected]>
crypto: tcrypt - add asynchronous speed test for SM3

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

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

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

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

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

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

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

Lad Prabhakar <[email protected]>
spi: spi-rspi: Add support to deassert/assert reset line

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

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

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

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

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

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]>
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: 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

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

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

Luis Chamberlain <[email protected]>
swim: add helper for disk cleanup

Luis Chamberlain <[email protected]>
swim: simplify using blk_cleanup_disk() on swim_remove()

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

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

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

Haibo Chen <[email protected]>
leds: pca9532: Check i2c_smbus_read_byte_data() return value

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

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()

Daniel Borkmann <[email protected]>
bpf, lsm: Reject writes into the BPF LSM program context

Hou Tao <[email protected]>
bpf: Factor out helpers for ctx access checking

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

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

Vladimir Oltean <[email protected]>
PCI: cadence: Preserve all error codes in cdns_plat_pcie_probe()

Nikolay Borisov <[email protected]>
ata: sata_dwc_460ex: Don't enable interrupt if libATA core registration fails

Andy Shevchenko <[email protected]>
ata: sata_dwc_460ex: Use temporary variable for struct device

Andy Shevchenko <[email protected]>
ata: sata_dwc_460ex: Use devm_platform_*ioremap_resource() APIs

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

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

Li RongQing <[email protected]>
RDMA/uverbs: Make CQ handle mandatory for WQ creation

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

Linkai Gong <[email protected]>
firmware: imx: dsp: fix mailbox channel leak on kasprintf failure

Karl Mehltretter <[email protected]>
wifi: mac80211: Fix the return value in mesh_path_add() kernel-doc

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()

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

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

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

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

Matthias Schiffer <[email protected]>
ARM: dts: imx7-tqma7: add SPI-NOR flash

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

Jack Wang <[email protected]>
crypto: amlogic - Fix dma_map_sg error check

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

Arnd Bergmann <[email protected]>
Kbuild: move to -std=gnu11

Mark Rutland <[email protected]>
Kbuild: use -Wdeclaration-after-statement

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 out-of-bounds read in SAS topology change events

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

Sreekanth Reddy <[email protected]>
scsi: mpi3mr: Gracefully handle online FW update operation

Sreekanth Reddy <[email protected]>
scsi: mpi3mr: Add IOC reinit function

Sreekanth Reddy <[email protected]>
scsi: mpi3mr: Handle offline FW activation in graceful manner

Sreekanth Reddy <[email protected]>
scsi: mpi3mr: Code refactor of IOC init - part2

Sreekanth Reddy <[email protected]>
scsi: mpi3mr: Code refactor of IOC init - part1

Sreekanth Reddy <[email protected]>
scsi: mpi3mr: Display IOC firmware package version

Sreekanth Reddy <[email protected]>
scsi: mpi3mr: Update MPI3 headers - part2

Sreekanth Reddy <[email protected]>
scsi: mpi3mr: Add debug APIs based on logging_level bits

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

Bjorn Helgaas <[email protected]>
PM: wakeup: Unify device_init_wakeup() for PM_SLEEP and !PM_SLEEP

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

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

Pandith N <[email protected]>
dmaengine: dw-axi-dmac: support DMAX_NUM_CHANNELS > 8

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

Michael Tretter <[email protected]>
dmaengine: zynqmp_dma: simplify with dev_err_probe

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

Samuel Holland <[email protected]>
dmaengine: sun6i: Do not use virt_to_phys

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

Chen-Yu Tsai <[email protected]>
pwm: mtk-disp: Fix period readback

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

Madhavan Srinivasan <[email protected]>
perf evsel: Add bitfield_swap() to handle branch_stack endian issue

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

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

Danila Chernetsov <[email protected]>
dlm: validate lock modes in recovery messages

Alexander Aring <[email protected]>
dlm: use __le types for dlm header

Alexander Aring <[email protected]>
fs: dlm: add debugfs rawmsg send functionality

Alexander Aring <[email protected]>
fs: dlm: let handle callback data as void

Abdurrahman Karadag <[email protected]>
wifi: rtw88: debugfs: don't vzalloc(0) when rsvd_page is read unconfigured

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

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()

Uwe Kleine-König <[email protected]>
pwm: renesas-tpu: Improve maths to compute register settings

Uwe Kleine-König <[email protected]>
pwm: renesas-tpu: Rename variables to match the usual naming

Uwe Kleine-König <[email protected]>
pwm: renesas-tpu: Implement .apply() callback

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

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

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

Nathan Chancellor <[email protected]>
extract-cert: Wrap key_pass with '#ifdef USE_PKCS11_ENGINE'

Jan Stancek <[email protected]>
sign-file,extract-cert: use pkcs11 provider for OPENSSL MAJOR >= 3

Jan Stancek <[email protected]>
sign-file,extract-cert: avoid using deprecated ERR_get_error_line()

Jan Stancek <[email protected]>
sign-file,extract-cert: move common SSL helper functions to a header

Sean Christopherson <[email protected]>
KVM: x86: Unconditionally reset MMU context when emulating INIT

Milan Milicevic <[email protected]>
drm/amdgpu: publish IH enabled before PSP programs IH_RB_CNTL

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

Jesse Zhang <[email protected]>
drm/amdgpu: parse CS IBs at the BO offset their VA mapping starts at

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

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()

Daejun Park <[email protected]>
xfs: cap the block count of xfs_iomap_write_direct() at one extent

Daejun Park <[email protected]>
xfs: mark the inode preallocated for pNFS write layouts past EOF

Josef Bacik <[email protected]>
mm/filemap: don't lose a folio lock wakeup to a signal

Lucas Tanure <[email protected]>
drm/vc4: hdmi: enable scrambling before the TMDS clock starts

Chengfeng Ye <[email protected]>
xfrm: retry inexact policy lookup after node reinsertion

Hongbin Wang <[email protected]>
xfrm: Drop unused argument

Zhe Liu <[email protected]>
blk-iocost: account flush sequence latency only once

Bart Van Assche <[email protected]>
blk-iocost: Simplify ioc_rqos_done()

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()

Sean Christopherson <[email protected]>
KVM: x86/mmu: Cap number of parent PTEs per SP at 1000 (the arbitrary rmap limit)

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

Zhou Qiuyue <[email protected]>
ipv6: raw: fix use-after-free in rawv6_send_hdrinc()

David Hildenbrand (Arm) <[email protected]>
mm/filemap: finish fault cleanup before dropping the fault lock

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

renpanpan <[email protected]>
drm/amdgpu: Only enable HDMI audio if display supports it

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

Josef Bacik <[email protected]>

    mm/filemap: read mapping->a_ops->free_folio under i_lock

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

Chris Down <[email protected]>
mm: make swapoff interruptible when unusing mms/shmem

Gregory Price (Meta) <[email protected]>
mm/mempolicy: apply bind policies against the scoped allocation zone

Eklavya Singh <[email protected]>
ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute

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

Chris Mason <[email protected]>
aio: fix NULL deref when a fault races ring truncation

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

Yu Zhang <[email protected]>
scsi: target: Fix demo-mode dynamic ACL dev-entry UAF vs LUN teardown

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

Milan Milicevic <[email protected]>
drm/amdgpu: clear RB_OVERFLOW bit when enabling interrupts for navi10_ih

Philip Yang <[email protected]>
drm/amdgpu: enable Navi 48-bit IH timestamp counter

Yuho Choi <[email protected]>
iommu/virtio: Reset device before deleting virtqueues on probe failure

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

Chris Mason <[email protected]>
backing-file: always end a queued write

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

John Johansen <[email protected]>
apparmor: on failed load ensure profile files are removed before parent

Stanley Jhu <[email protected]>
scsi: ufs: core: Remove an always-false WARN_ONCE()

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()

Prike Liang <[email protected]>
drm/amdgpu: finish GPU recovery callbacks before restarting schedulers

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

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()

Georgia Garcia <[email protected]>
apparmor: remove fs entries created by a failed policy load

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

Al Viro <[email protected]>
switch procfs from d_set_d_op() to d_splice_alias_ops()

Al Viro <[email protected]>
new helper: d_splice_alias_ops()

Al Viro <[email protected]>

    procfs: kill ->proc_dops

Christian Brauner <[email protected]>
proc: add proc_splice_unmountable()

Al Viro <[email protected]>
/proc/sys: use d_splice_alias() calling conventions to simplify failure exits

Cheng Yongkang <[email protected]>
io_uring/timeout: count cancelled timeouts in cq_timeouts

Peter Ujfalusi <[email protected]>
ALSA: compress: fix buffer leak on failed SET_PARAMS

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

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

Len Baker <[email protected]>
assoc_array: Avoid open coded arithmetic in allocator arguments

Zhengchao Shao <[email protected]>
ip6mr: fix UAF issue in ip6mr_sk_done() when addrconf_init_net() failed

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

Eric Dumazet <[email protected]>
dlm: fix send buffer backpressure handling

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

Olivier Kaloudoff <[email protected]>
drm/amdkfd: stop restore retries on device unplug

Guangshuo Li <[email protected]>
media: atmel-isi: release unregistered video device on remove

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)

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()

David Heidelberg <[email protected]>
mfd: wcd934x: set DMA mask on parent to silence "DMA mask not set"

Christophe JAILLET <[email protected]>
mfd: wcd934x: Fix an error handling path in wcd934x_slim_probe()

Maíra Canal <[email protected]>
mfd: wcd934x: Replace legacy gpio interface for gpiod

Olivier Kaloudoff <[email protected]>
ALSA: usb-audio: Add mic resolution quirk for Logitech Webcam C200

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

David Hildenbrand (Arm) <[email protected]>
mm/gup: check for overflow when converting nr_pages to bytes in GUP-fast

Samarth Narang <[email protected]>
mm/ksm: keep soft-dirty when merging a page

Marc Zyngier <[email protected]>

    KVM: arm64: Turn vcpu->arch.pause into a counter

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

Cen Zhang <[email protected]>
ocfs2/cluster: initialize heartbeat regions before publishing them

Daeho Jeong <[email protected]>
f2fs: release a removed xattr node in roll-forward recovery

Krzysztof Kozlowski <[email protected]>
drm/msm/hdmi_phy: Cleanup after msm_hdmi_phy_resource_enable() failure

Dmitry Baryshkov <[email protected]>
drm/msm/hdmi: fill the pwr_regs bulk regulators

Dmitry Baryshkov <[email protected]>
drm/msm/hdmi: use bulk regulator API

Sumit Kumar <[email protected]>
PCI: dwc: Set DMA_BYPASS bit in outbound IATU CTRL2 register

Hung-Jui Lin <[email protected]>
posix-timers: Report zero remaining time for disarmed SIGEV_NONE timers

Daehyeon Ko <[email protected]>
ipv6: remove ifaddr from hash during ifdown list cleanup

Eric Dumazet <[email protected]>
ipv6/addrconf: allocate a per netns hash table

Eric Dumazet <[email protected]>
ip6mr: fix use-after-free in ip6mr_sk_done()

Eric Dumazet <[email protected]>
ip6mr: ip6mr_sk_done() can exit early in common cases

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

Nicolai Buchwitz <[email protected]>
serial: amba-pl011: keep transmitter enabled when disabling RS485

Lino Sanfilippo <[email protected]>
serial: amba-pl011: remove redundant code in rs485_config

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

Hitesh Patel <[email protected]>
media: qcom: camss: vfe-17x: Fix write master selection for RDI lines

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

Thomas Gleixner <[email protected]>
signal: Remove task argument from dequeue_signal()

Eric W. Biederman <[email protected]>
signal: Requeue signals in the appropriate queue

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

Robert Foss <[email protected]>
media: camss: vfe: Don't call hw_version() before its dependencies are met

Hitesh Patel <[email protected]>
media: qcom: camss: vfe: Fix VFE reset while another line is streaming

Bryan O'Donoghue <[email protected]>
media: qcom: camss: Move vfe_disable into a common routine where applicable

Robert Foss <[email protected]>
media: camss: vfe: Rework vfe_hw_version_read() function definition

Robert Foss <[email protected]>
media: camss: vfe: Remove vfe_hw_version_read() argument

Robert Foss <[email protected]>
media: camss: vfe: Decrease priority of of VFE HW version to 'dbg'

Robert Foss <[email protected]>
media: camss: vfe: Don't read hardware version needlessly

Ridham Khurana <[email protected]>
hwmon: (lm70) Fix rounding of negative temperatures

Joanne Koong <[email protected]>
fuse: don't drop destination page cache on a zero byte copy reply

Ma Ke <[email protected]>
i2c: acpi: Fix adapter reference leak in i2c_acpi_new_device_by_fwnode()

Hans de Goede <[email protected]>
i2c: acpi: Add i2c_acpi_new_device_by_fwnode() function

Hongyan Xu <[email protected]>
mfd: da903x: Cancel IRQ work during teardown

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

John Johansen <[email protected]>
apparmor: fix refcount leak in aa_get_newest_profile()

Balakrishnan Sambath <[email protected]>
media: microchip-isc: do not touch WB registers when not streaming

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

Mikulas Patocka <[email protected]>
dm-writecache: fix REQ_FUA processing

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()

Ross Lagerwall <[email protected]>
xen-blkfront: Fix IO race during unplug

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

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

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

Nickolai Zeldovich <[email protected]>
ucount: take the rlimit reference before checking the limit

Roman Gushchin <[email protected]>
signal: restore the override_rlimit logic

Alexey Gladkov <[email protected]>
ucounts: Split rlimit and ucount values and max values

Eric W. Biederman <[email protected]>
ucounts: Use atomic_long_sub_return for clarity

Kaixuan Li <[email protected]>
f2fs: bound the SIT/NAT bitmaps by the checkpoint pack

Stanley Jhu <[email protected]>
scsi: ufs: bsg: Clear the reply buffer before use

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

Myeonghun Pak <[email protected]>
soc: fsl: dpio: Free the IRQ before releasing the I/O object

Geraldo Nascimento <[email protected]>
PCI: rockchip: Drive at 2.5 GT/s, error other speeds

Yehyeong Lee <[email protected]>
xen/pcifront: check that an AER callback exists before calling it

Uwe Kleine-König <[email protected]>
xen/pcifront: Drop pcifront_common_process() tests of pcidev, pdrv

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

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

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

Nanzhe Zhao <[email protected]>
f2fs: remove mappedtodisk flag usage in mmap write path

Josef Bacik <[email protected]>
net: skbuff: don't BUG() on a bad csum_start in skb_copy_and_csum_dev()

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

Jiale Yao <[email protected]>
cxl/acpi: Check ACPI companion before use

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

Bui Viet Dung <[email protected]>
Bluetooth: hci_debugfs: Pin module for debugfs file operations

Luiz Augusto von Dentz <[email protected]>
Bluetooth: hci_core: Move all debugfs handling to hci_debugfs.c

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

Uwe Kleine-König <[email protected]>
mfd: twl: Remove platform data support

Karl Mehltretter <[email protected]>
KVM: arm64: vgic-v3: Roll back assignments from the new region

Daeho Jeong <[email protected]>
f2fs: return -EIO for a lost inode block after cp_error

Geraldo Nascimento <[email protected]>
PCI: rockchip-host: Do not attempt 5.0 GT/s retraining

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

Ethan Nelson-Moore <[email protected]>
ata: sata_inic162x: remove dangerous broken driver

Wentao Liang <[email protected]>
media: vpif_capture: Fix i2c adapter reference leak in vpif_probe()

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

Olivier Moysan <[email protected]>
ASoC: stm32: i2s: remove irqf_oneshot flag

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

Wang Jiang <[email protected]>
drm/amd/display: skip pre-flip post_update on DCE

YuanZhe Liu <[email protected]>
ALSA: hwdep: Serialize DSP load requests

David Hildenbrand (Arm) <[email protected]>
mm/madvise: fix data loss from MADV_FREE on a KSM page

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

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

Muhammad Bilal <[email protected]>
platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()

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()

Xiang Mei <[email protected]>
ceph: fix integer overflow in the snap trace bounds check

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

Kyle Zeng <[email protected]>
netfilter: nf_reject: initialize IPCB at inet ingress

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()

Abdifatah Suruur <[email protected]>
xen/gntdev: prevent private mappings from becoming writable

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

Kuniyuki Iwashima <[email protected]>
af_unix: Clear oob_skb in scan_inflight()

Sean Christopherson <[email protected]>

    KVM: x86/mmu: Bug the VM if KVM calcs a CPU role with EFER.LMA=1 && CR4.PAE=0

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: meson-ir-tx: Ensure probe error is propagated

Yihao Han <[email protected]>
media: meson-ir-tx: remove superfluous dev_err()

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

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()

Fan Wu <[email protected]>
media: mediatek: vpu: free IRQ before destroying watchdog workqueue

Christophe JAILLET <[email protected]>
media: mtk-vpu: Remove redundant 'flush_workqueue()' calls

Karl Mehltretter <[email protected]>
KVM: arm64: vgic-v3: Undo assignment on iodev registration failure

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

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

Fan Wu <[email protected]>
media: imx-jpeg: finish the job on device_run() error paths

Stanislaw Gruszka <[email protected]>
wifi: mac80211: queue frames while off-channel

Andre Przywara <[email protected]>
of/fdt: Ignore disabled memory nodes

YuanZhe Liu <[email protected]>
ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close

Takashi Iwai <[email protected]>
ALSA: bcd2000: Fix race between rawmidi and disconnect

YuanZhe Liu <[email protected]>
ALSA: usx2y: Refuse a retried DSP load after a failure

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

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

Federico Musto <[email protected]>
net: atl1c: drop oversized RX frames instead of panicking

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

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

Ricardo Ribalda <[email protected]>
media: uvcvideo: Disable autosuspend for Insta360 Link

Lee Jones <[email protected]>
tracing/histograms: Verify event_call identity when updating synth_event refcount

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

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

Ramin Moussavi <[email protected]>
microblaze: restore the ABI argument home area below pt_regs (PTO)

Michal Simek <[email protected]>
microblaze: Do loop unrolling for optimized memset implementation

Michal Simek <[email protected]>
microblaze: Use simple memset implementation from lib/string.c

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

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

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

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

Daejun Park <[email protected]>
xfs: clamp the pNFS layout range to the maximum file size

Daejun Park <[email protected]>
xfs: clamp a pNFS LAYOUTCOMMIT extent before computing its end

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

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

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/q54sj108a2) Add missing NULL pointer check

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()

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/memfd: make f_pos accesses atomic

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

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: 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: always cancel the scrambling work synchronously

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

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

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

Benjamin Coddington <[email protected]>
NFSv4/pnfs: Free the netid when draining a data-server address list

Chuck Lever <[email protected]>
NFSD: Resolve the recall-any mask names in the trace format

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

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

Alexander Sverdlin <[email protected]>
pwm: tiehrpwm: Clear period on disable to allow reconfiguration

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

Pufan Jin <[email protected]>
spi: zynq-qspi: fix address buffer corruption and support 4-byte address

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

Sebastian Andrzej Siewior <[email protected]>
debugobjects: Use LD_WAIT_CONFIG instead of LD_WAIT_SLEEP

Peter Zijlstra <[email protected]>
debugobjects,locking: Annotate debug_object_fill_pool() wait type violation

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

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

Til Kaiser <[email protected]>
mlxsw: Initialize register query payloads

Jiale Yao <[email protected]>
HID: prodikeys: validate fixed-format MIDI reports

Jiri Slaby (SUSE) <[email protected]>
HID: hid-prodikeys: remove struct pk_device

Sean Christopherson <[email protected]>
KVM: x86: Preserve DR6.BLD (Bus Lock Detect) when delivering #DB payload

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()

Luxiao Xu <[email protected]>
smb: client: fix buffer overflow in SMB2_tcon()

Abdifatah Suruur <[email protected]>
smb: client: fix fiemap wild read on empty truncated response

VeroFess <[email protected]>
smb: server: size directory name conversion buffer correctly

Aldo Ariel Panzardo <[email protected]>
xfs: bound inode fork length against the fork size during log recovery

Chris Mason <[email protected]>
ovl: check that the parents of volatile/dirty are dirs

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: do not copy up an xattr value that was never read

Christian Brauner <[email protected]>
ovl: use ovl_path_getxattr() wrapper

Christian Brauner <[email protected]>
ovl: pass ofs to setattr operations

Christian Brauner <[email protected]>
ovl: add ovl_upper_mnt_userns() wrapper

Chris Mason <[email protected]>
ovl: take a snapshot of the name for copy up

Eduard Zateev <[email protected]>
smb: client: hold server info until cifsd exits

Kamil Sawicki <[email protected]>
net: limit priority VLAN untag depth

Andrew Stellman <[email protected]>
nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()

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()

Tristan Madani <[email protected]>
ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment

Jason Perlow <[email protected]>
wifi: brcmfmac: map msgbuf RX packet IDs bidirectional

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

Kyle Zeng <[email protected]>
tcp: fix reordering addition overflow in MTU probing

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: Finish the blk plug when integrity allocation fails

Guixin Liu <[email protected]>
nvmet-fc: Tear down the association when the admin queue allocation fails

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

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

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

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

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()

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

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

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()

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

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

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

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

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

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

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

Peter Ujfalusi <[email protected]>
ALSA: compress: add missing OPEN-state gate to SET_METADATA

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

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

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

Jianyun Gao <[email protected]>
dax: Return errors from dax_core_init()

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: 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

Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Don't clamp nvecs to zero when id_bits is 32

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: 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

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

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

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

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

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()

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

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

Andrey Albershteyn <[email protected]>
fsverity: hoist statx reporting of fs-verity flag

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

Michael Freidkin <[email protected]>
media: meson: vdec: size capture planes from the aligned canvas

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 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

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

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

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-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

Ma Ke <[email protected]>
ASoC: wcd9335: Fix device reference leak in wcd9335_slim_status()

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

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()

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()

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: 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

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

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()

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

Sean Young <[email protected]>
media: ir-hix5hd2: Ensure rdev is setup before interrupts are enabled

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()

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

Balakrishnan Sambath <[email protected]>
media: microchip-isc: take a reference on the parsed endpoints

Ping Cheng <[email protected]>
HID: wacom: Setup SW_MUTE_DEVICE according to the order of input registration

Lee Jones <[email protected]>
HID: wacom: Advertise SW_MUTE_DEVICE capability prior to registration

Sumanth Korikkar <[email protected]>
s390/cpum_cf: Check session mask before cpu offline

Chris Mason <[email protected]>
ovl: set OVL_WHITEOUTS before publishing the upper dir

Igor Putko <[email protected]>
serial: core: shut down initialized port on removal

Yuchao Zhang <[email protected]>
xen-blkfront: unbind irq before tearing down ring and shadow requests

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

Richard Patel <[email protected]>
genirq: Defer kfree(irqaction) until irq_thread_dtor() finishes

Lee Jones <[email protected]>
HID: wacom: Redesign shared sibling data lifecycle

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

Hyunwoo Kim <[email protected]>
inet: reject unhashed sockets during established lookups

Josef Bacik <[email protected]>
driver core: Limit the messages on a refused uevent

DaeMyung Kang <[email protected]>
ksmbd: fix named stream write and EOF handling

Henry Hu <[email protected]>
ksmbd: fix invalid pointer dereference when get_inode_acl() fails

Jan Koester <[email protected]>
ksmbd: ignore network devices of other namespaces

Ian Bridges <[email protected]>
ksmbd: fix session reference leak on compounded SESSION_SETUP

DaeMyung Kang <[email protected]>
ksmbd: return end of file for reads past a named stream's data

DaeMyung Kang <[email protected]>
ksmbd: preserve unreadable named streams on open

Myeonghun Pak <[email protected]>
backlight: lm3630a: Cancel delayed work before destroying workqueue

Xu Wang <[email protected]>
backlight: lm3630a_bl: Remove redundant 'flush_workqueue()' calls

DaeMyung Kang <[email protected]>
ksmbd: avoid restoring only in-memory EOF after allocation change

Namjae Jeon <[email protected]>
ksmbd: fix extended session security negotiation for raw NTLMSSP

Xiaoyao Li <[email protected]>
KVM: VMX: Preserve negative return value in vmx_handle_exit() with bus lock detected

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

Abdifatah Suruur <[email protected]>
ksmbd: reserve space for the UTF-16 terminator in stream info

Giorgi Kobakhia <[email protected]>
ksmbd: fix overflow in dacloffset bounds check in build_sec_desc()

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

owen kwan <[email protected]>
net/sched: sch_teql: fix use-after-free on lower qdisc drop

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

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

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

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

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

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: 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

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: 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

Ido Schimmel <[email protected]>
net/sched: flower: Fix chain template offload

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()

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

Rik van Riel <[email protected]>
media: redrat3: fix UAF in probe error path leaving rc device registered

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

Lee Jones <[email protected]>

    HID: wacom: Use hdev->product in wacom_setup_touch_input_capabilities

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

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()

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

Michail Andreas Michalopoulos <[email protected]>
ksmbd: accept share config responses from ksmbd-tools before 3.5.3

Kuniyuki Iwashima <[email protected]>
tcp: Fix potential UAF in reqsk_timer_handler().

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()

Kameron Carr <[email protected]>
Drivers: hv: vmbus: Bounds check the shared ring buffer indices

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

Duoming Zhou <[email protected]>
cxgb4: fix use after free bugs caused by circular dependency problem

Shiming Cheng <[email protected]>
net: gro: fix double aggregation of flush-marked skbs

Matt Bobrowski <[email protected]>
bpf: Fix UAF in sock clone early bailouts

Yucheng Lu <[email protected]>
net/sched: sch_netem: fix out-of-bounds access in packet corruption

Qing Luo <[email protected]>
sctp: auth: discard auth_chunk when skb_clone fails

Eric Dumazet <[email protected]>
ipv6: use RCU in ip6_output()

Eric Dumazet <[email protected]>

    net: dst: introduce dst->dev_rcu

Sean Christopherson <[email protected]>
KVM: nVMX: Put vmcs12 pages if nested VM-Enter fails due to invalid guest state

Inseo An <[email protected]>
netfilter: nf_tables: fix use-after-free in nf_tables_addchain()

Eric Dumazet <[email protected]>
ipv4: start using dst_dev_rcu()

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

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

Wentao Guan <[email protected]>
wifi: cfg80211: release locks on error in cfg80211_wext_siwgenie()

André Draszik <[email protected]>
kbuild: link-vmlinux.sh: improve detection of third pass requirement

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

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

Rosen Penev <[email protected]>
gpio: mvebu: keep resume masks within the irqchip cache

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

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

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

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

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: handle empty QUERY_ALLOCATED_RANGES output

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

Takashi Iwai <[email protected]>
ALSA: hda/intel: Add sanity check for BAR0 size

Michail Tatas <[email protected]>
ipmi: Fix leak in __ipmi_bmc_register

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

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

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

Daniel Golle <[email protected]>
net: dsa: mt7530: error out on failed PHY_IAC command writes

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

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

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

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

Aaron Ma <[email protected]>
HID: quirks: Add ALWAYS_POLL quirk for Beitong BTP-KP20D dongle

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

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

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()

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

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

Yousef Alhouseen <[email protected]>
misc: ibmvmc: reject oversized inbound messages

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

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]>

    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

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()

Pranjal Shrivastava <[email protected]>
PCI/ATS: Ensure pci_ats_supported() is PF-aware for VFs

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

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]>
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

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

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: 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()

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

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

Koichiro Den <[email protected]>
dmaengine: dw-edma-pcie: Reject devices without driver data

Jesse.Zhang <[email protected]>
drm/amdgpu: Limit BO list entry count to prevent resource exhaustion

Tvrtko Ursulin <[email protected]>
drm/amdgpu: Use vmemdup_array_user in amdgpu_bo_create_list_entry_array

Daniel Borkmann <[email protected]>
bpf, arm64: Fix off-by-one in check_imm signed range check

Harry Wentland <[email protected]>
drm/amd/display: Fix out-of-bounds read in dp_get_eq_aux_rd_interval()

Yinjie Yao <[email protected]>
drm/amdgpu/jpeg: set no_user_fence for JPEG v2.0 ring

Yinjie Yao <[email protected]>
drm/amdgpu/jpeg: set no_user_fence for JPEG v2.5 ring

Yinjie Yao <[email protected]>
drm/amdgpu/jpeg: set no_user_fence for JPEG v3.0 ring

Benjamin Cheng <[email protected]>
drm/amdgpu/vce: Prevent partial address patches

Zihan Xi <[email protected]>
net: gso: limit recursive IP-in-IP segmentation

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()

Greg Kroah-Hartman <[email protected]>

    usb: typec: tcpm: bound altmode_desc[] per iteration in svdm_consume_modes()

Jérémy Jean <[email protected]>
lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state

Juanlu Herrero <[email protected]>
io_uring/poll: avoid retry wakeup loss when dropping ownership

Weiming Shi <[email protected]>
asymmetric_keys: reject trust keys without IDs

Christian Brauner <[email protected]>
coredump: hold RCU while releasing parked threads

Hyunwoo Kim <[email protected]>
exec: Cleanup POSIX timers right after de_thread()

Kirill A. Shutemov <[email protected]>
mm: split critical region in remap_file_pages() and invoke LSMs in between

Shu Han <[email protected]>
mm: call the security_mmap_file() LSM hook in remap_file_pages()

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-v2.rst            |    10 +-
 Documentation/block/blk-mq.rst                     |     2 +-
 .../media/allwinner,sun4i-a10-video-engine.yaml    |    21 +-
 .../power/supply/stericsson,ab8500-charger.yaml    |    76 +-
 .../devicetree/bindings/vendor-prefixes.yaml       |    52 +
 Documentation/filesystems/fsverity.rst             |     3 +
 Documentation/filesystems/overlayfs.rst            |     3 +-
 Documentation/networking/ip-sysctl.rst             |     3 +-
 Documentation/process/howto.rst                    |     2 +-
 Documentation/process/programming-language.rst     |     6 +-
 Documentation/trace/histogram.rst                  |   245 +-
 Documentation/translations/it_IT/process/howto.rst |     2 +-
 .../it_IT/process/programming-language.rst         |     4 +-
 Documentation/translations/ja_JP/howto.rst         |     2 +-
 Documentation/translations/ko_KR/howto.rst         |     2 +-
 Documentation/translations/zh_CN/process/howto.rst |     2 +-
 .../zh_CN/process/programming-language.rst         |     3 +-
 Documentation/translations/zh_TW/process/howto.rst |     2 +-
 .../zh_TW/process/programming-language.rst         |     3 +-
 MAINTAINERS                                        |     1 +
 Makefile                                           |    11 +-
 arch/alpha/include/asm/mmu_context.h               |    15 +-
 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                            |    15 +-
 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                  |    83 +-
 arch/arm/boot/dts/ste-ab8505.dtsi                  |    21 +-
 arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts          |     2 +-
 arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi       |     2 +
 arch/arm/mach-mvebu/Kconfig                        |     4 +-
 arch/arm/mach-vexpress/platsmp.c                   |     4 +-
 arch/arm/mach-vexpress/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/mt8173.dtsi           |     2 +-
 .../boot/dts/qcom/sdm845-xiaomi-beryllium.dts      |     6 +
 arch/arm64/boot/dts/rockchip/rk3328.dtsi           |     2 +-
 arch/arm64/boot/dts/rockchip/rk3399-firefly.dts    |    32 +-
 arch/arm64/crypto/poly1305-armv8.pl                |     2 +-
 arch/arm64/include/asm/kvm_host.h                  |     2 +-
 arch/arm64/include/asm/sdei.h                      |     3 +-
 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/sdei.c                           |    61 +-
 arch/arm64/kernel/topology.c                       |    13 +-
 arch/arm64/kernel/vdso32/Makefile                  |     3 +-
 arch/arm64/kvm/arm.c                               |    36 +-
 arch/arm64/kvm/vgic/vgic-its.c                     |    40 +-
 arch/arm64/kvm/vgic/vgic-mmio-v3.c                 |    30 +-
 arch/arm64/mm/mmap.c                               |     4 +-
 arch/arm64/mm/mmu.c                                |    14 +
 arch/arm64/net/bpf_jit_comp.c                      |     4 +-
 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/string.h               |     2 +
 arch/microblaze/include/asm/uaccess.h              |     3 +-
 arch/microblaze/kernel/cpu/cpuinfo.c               |     1 +
 arch/microblaze/kernel/entry.S                     |   294 +-
 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/microblaze/lib/memset.c                       |    33 +-
 arch/mips/Makefile                                 |    22 +-
 arch/mips/cavium-octeon/dma-octeon.c               |     2 +-
 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/kvm/book3s_hv.c                       |    76 +-
 arch/powerpc/kvm/book3s_paired_singles.c           |     7 +-
 arch/riscv/net/bpf_jit_comp32.c                    |    47 +-
 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/intel/uncore.c                     |     5 +-
 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/kernel/acpi/cppc_msr.c                    |    15 +
 arch/x86/kernel/cpu/amd.c                          |    18 +
 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                          |    26 +-
 arch/x86/kvm/svm/svm.c                             |    21 +-
 arch/x86/kvm/svm/svm.h                             |     2 +
 arch/x86/kvm/vmx/nested.c                          |     9 +
 arch/x86/kvm/vmx/vmx.c                             |     6 +-
 arch/x86/kvm/x86.c                                 |    91 +-
 arch/x86/mm/mem_encrypt_identity.c                 |     2 +-
 arch/x86/platform/pvh/enlighten.c                  |     2 +
 arch/x86/power/hibernate.c                         |    51 +-
 block/bdev.c                                       |    22 +
 block/blk-cgroup.c                                 |     6 +-
 block/blk-iocost.c                                 |    10 +-
 block/blk-mq.c                                     |     4 +
 block/blk-throttle.c                               |     3 +-
 block/bsg.c                                        |     5 +-
 block/ioctl.c                                      |     4 +-
 block/partitions/mac.c                             |     4 +-
 crypto/Kconfig                                     |     6 +-
 crypto/algif_skcipher.c                            |    13 +-
 crypto/asymmetric_keys/restrict.c                  |     2 +
 crypto/asymmetric_keys/verify_pefile.c             |     5 +
 crypto/ecc.c                                       |    33 +-
 crypto/tcrypt.c                                    |   424 +-
 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_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/glue.c                                |    10 +-
 drivers/acpi/pci_link.c                            |     1 +
 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                     |     4 +
 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                       |    49 +-
 drivers/ata/sata_fsl.c                             |    26 +-
 drivers/ata/sata_inic162x.c                        |   906 -
 drivers/ata/sata_qstor.c                           |     8 +-
 drivers/base/attribute_container.c                 |     7 +-
 drivers/base/bus.c                                 |     4 +-
 drivers/base/core.c                                |     4 +-
 drivers/base/dd.c                                  |     8 +-
 drivers/base/node.c                                |    17 +-
 drivers/base/power/wakeirq.c                       |    75 +-
 drivers/base/power/wakeup.c                        |    30 -
 drivers/block/amiflop.c                            |    69 +-
 drivers/block/aoe/aoenet.c                         |    14 +-
 drivers/block/drbd/drbd_receiver.c                 |     2 +
 drivers/block/floppy.c                             |    13 +-
 drivers/block/loop.c                               |     6 +-
 drivers/block/rnbd/rnbd-srv-dev.c                  |    62 +-
 drivers/block/rnbd/rnbd-srv-dev.h                  |    19 +-
 drivers/block/rnbd/rnbd-srv-sysfs.c                |    31 +-
 drivers/block/rnbd/rnbd-srv.c                      |    99 +-
 drivers/block/rnbd/rnbd-srv.h                      |    10 +-
 drivers/block/swim.c                               |   283 +-
 drivers/block/swim3.c                              |     8 +-
 drivers/block/swim_asm.S                           |   136 +-
 drivers/block/virtio_blk.c                         |     2 +-
 drivers/block/xen-blkback/blkback.c                |     7 +
 drivers/block/xen-blkfront.c                       |    15 +-
 drivers/bluetooth/btintel.c                        |     6 +-
 drivers/bluetooth/btrsi.c                          |     3 +-
 drivers/bluetooth/btusb.c                          |     4 +
 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                |     7 +
 drivers/char/ipmi/ipmi_msghandler.c                |     1 +
 drivers/char/scx200_gpio.c                         |     8 +-
 drivers/char/tpm/tpm-dev-common.c                  |     3 +
 drivers/char/tpm/tpm2-cmd.c                        |     3 +-
 drivers/char/tpm/tpm_nsc.c                         |     8 +-
 drivers/char/tpm/tpm_tis_spi.h                     |     8 +-
 drivers/char/virtio_console.c                      |    13 +-
 drivers/clk/bcm/clk-raspberrypi.c                  |     2 +
 drivers/clk/clk-cdce925.c                          |     9 +-
 drivers/clk/clk-lmk04832.c                         |     3 +
 drivers/clk/clk-milbeaut.c                         |    10 +-
 drivers/clk/clk-si5351.c                           |    20 +-
 drivers/clk/clk.c                                  |    51 +-
 drivers/clk/clk.h                                  |     5 +-
 drivers/clk/clkdev.c                               |     4 +-
 drivers/clk/imx/clk-imx8qxp-lpcg.c                 |     1 +
 drivers/clk/imx/clk-imx8qxp.c                      |     1 +
 drivers/clk/imx/clk.c                              |    15 +-
 drivers/clk/mstar/clk-msc313-mpll.c                |     2 +-
 drivers/clk/qcom/clk-rcg2.c                        |     9 +-
 drivers/clk/qcom/mmcc-msm8996.c                    |     4 +-
 drivers/clk/qcom/mmcc-sdm660.c                     |     2 +-
 drivers/clk/sunxi-ng/ccu_common.c                  |    12 +-
 drivers/clk/tegra/clk-pll.c                        |     1 +
 drivers/clk/ti/adpll.c                             |     1 +
 drivers/clk/zynq/clkc.c                            |     8 +
 drivers/clocksource/clksrc-dbx500-prcmu.c          |     2 +
 drivers/clocksource/timer-digicolor.c              |     2 +
 drivers/clocksource/timer-fttmr010.c               |     2 +
 drivers/clocksource/timer-mediatek.c               |     4 +-
 drivers/comedi/drivers/addi_apci_3xxx.c            |     2 +-
 drivers/comedi/drivers/aio_iiro_16.c               |     3 +
 drivers/comedi/drivers/comedi_parport.c            |     3 +-
 drivers/comedi/drivers/das6402.c                   |    10 +-
 drivers/comedi/drivers/dmm32at.c                   |     3 +-
 drivers/comedi/drivers/dt2811.c                    |     9 +-
 drivers/comedi/drivers/dt2814.c                    |     3 +-
 drivers/comedi/drivers/ni_at_a2150.c               |    13 +-
 drivers/comedi/drivers/ni_atmio16d.c               |     7 +-
 drivers/comedi/drivers/pcl711.c                    |     3 +-
 drivers/comedi/drivers/pcl816.c                    |     3 +-
 drivers/comedi/drivers/pcl818.c                    |     3 +-
 drivers/comedi/drivers/pcmmio.c                    |     6 +-
 drivers/comedi/drivers/pcmuio.c                    |    10 +-
 drivers/comedi/drivers/quatech_daqp_cs.c           |     4 +-
 drivers/cpufreq/cpufreq_conservative.c             |     8 +-
 drivers/cpufreq/cpufreq_governor.c                 |    29 +-
 drivers/cpufreq/cpufreq_governor.h                 |     2 +
 drivers/cpufreq/cpufreq_stats.c                    |     4 +
 drivers/cpufreq/sparc-us2e-cpufreq.c               |    11 +-
 drivers/cpufreq/sti-cpufreq.c                      |     4 +-
 drivers/cpuidle/governors/menu.c                   |     8 +-
 drivers/cpuidle/governors/teo.c                    |    11 +
 drivers/crypto/amlogic/amlogic-gxl-cipher.c        |    29 +-
 drivers/crypto/amlogic/amlogic-gxl-core.c          |     7 +-
 drivers/crypto/atmel-aes.c                         |     4 +-
 drivers/crypto/atmel-sha.c                         |    17 +
 drivers/crypto/atmel-tdes.c                        |     6 +-
 drivers/crypto/caam/caampkc.c                      |     6 +
 drivers/crypto/ccp/ccp-dev-v3.c                    |     4 +
 drivers/crypto/ccp/ccp-dev-v5.c                    |     4 +
 drivers/crypto/hisilicon/hpre/hpre_crypto.c        |    22 +-
 drivers/crypto/nx/nx-842.c                         |     2 +
 drivers/crypto/omap-sham.c                         |     1 +
 drivers/crypto/qat/qat_common/qat_asym_algs.c      |     8 +-
 drivers/crypto/talitos.c                           |    93 +-
 drivers/crypto/talitos.h                           |     5 +-
 drivers/cxl/acpi.c                                 |     8 +-
 drivers/dax/super.c                                |     2 +-
 drivers/dma/Kconfig                                |     1 +
 drivers/dma/altera-msgdma.c                        |    10 +-
 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c     |   178 +-
 drivers/dma/dw-axi-dmac/dw-axi-dmac.h              |    39 +-
 drivers/dma/dw-edma/dw-edma-pcie.c                 |     3 +
 drivers/dma/fsl_raid.c                             |    32 +-
 drivers/dma/img-mdc-dma.c                          |     2 +-
 drivers/dma/ioat/init.c                            |    18 +-
 drivers/dma/mediatek/mtk-hsdma.c                   |    26 +-
 drivers/dma/mv_xor.c                               |     1 +
 drivers/dma/pl330.c                                |    19 +-
 drivers/dma/plx_dma.c                              |    10 +-
 drivers/dma/qcom/bam_dma.c                         |    12 +-
 drivers/dma/sprd-dma.c                             |    45 +-
 drivers/dma/ste_dma40.c                            |   594 +-
 drivers/dma/ste_dma40_ll.h                         |     2 -
 drivers/dma/sun6i-dma.c                            |    57 +-
 drivers/dma/xilinx/xilinx_dma.c                    |    46 +-
 drivers/dma/xilinx/zynqmp_dma.c                    |    74 +-
 drivers/firmware/efi/cper.c                        |    51 +-
 drivers/firmware/efi/libstub/Makefile              |     2 +-
 drivers/firmware/efi/libstub/efi-stub.c            |     8 +
 drivers/firmware/efi/libstub/efistub.h             |     4 +-
 drivers/firmware/imx/imx-dsp.c                     |     6 +-
 drivers/firmware/imx/imx-scu.c                     |    25 +-
 drivers/firmware/imx/scu-pd.c                      |    10 +-
 drivers/fpga/fpga-mgr.c                            |     2 +-
 drivers/gpio/gpio-crystalcove.c                    |     1 +
 drivers/gpio/gpio-mvebu.c                          |    33 +-
 drivers/gpio/gpio-pca953x.c                        |    28 +-
 drivers/gpio/gpiolib-cdev.c                        |     5 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c           |    68 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c   |    17 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c           |    10 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c        |    43 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c             |    20 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c        |     7 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c         |    44 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c            |     4 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c            |     3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c            |     4 +
 drivers/gpu/drm/amd/amdgpu/cik.c                   |    10 +
 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c             |     5 +-
 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c              |     5 +-
 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c              |     5 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c             |     5 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c             |     8 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c             |     5 +-
 drivers/gpu/drm/amd/amdgpu/navi10_ih.c             |    42 +-
 drivers/gpu/drm/amd/amdgpu/si.c                    |    10 +
 drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c              |     4 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c              |     4 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c              |     4 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c              |     4 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c              |     4 +-
 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c              |     6 +-
 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c              |     6 +-
 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c              |     6 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c              |     4 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c              |     4 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c              |     4 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c              |     4 +-
 drivers/gpu/drm/amd/amdgpu/vi.c                    |    10 +
 drivers/gpu/drm/amd/amdkfd/kfd_crat.c              |    35 +-
 drivers/gpu/drm/amd/amdkfd/kfd_svm.c               |     8 +-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |    14 +-
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h    |    24 +-
 drivers/gpu/drm/amd/display/dc/core/dc_link.c      |     6 +-
 drivers/gpu/drm/amd/display/dc/dc_types.h          |     2 +-
 .../gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c   |     2 +-
 .../amd/include/asic_reg/dcn/dcn_6_0_0_offset.h    | 15799 +++++
 .../amd/include/asic_reg/dcn/dcn_6_0_0_sh_mask.h   | 58556 +++++++++++++++++++
 .../amd/include/asic_reg/dpcs/dpcs_6_0_0_offset.h  |    47 +
 .../amd/include/asic_reg/dpcs/dpcs_6_0_0_sh_mask.h |    55 +
 .../include/asic_reg/mmhub/mmhub_5_0_1_offset.h    |    17 +
 .../include/asic_reg/mmhub/mmhub_5_0_1_sh_mask.h   |    17 +
 .../gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c    |    31 +-
 .../amd/pm/powerplay/hwmgr/process_pptables_v1_0.c |   673 +-
 .../drm/amd/pm/powerplay/hwmgr/processpptables.c   |   446 +-
 .../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c    |    36 +-
 .../gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c  |    48 +-
 .../pm/powerplay/hwmgr/vega10_processpptables.c    |    59 +-
 .../pm/powerplay/hwmgr/vega12_processpptables.c    |     7 +
 .../pm/powerplay/hwmgr/vega20_processpptables.c    |     7 +
 .../gpu/drm/arm/display/include/malidp_product.h   |    10 +-
 drivers/gpu/drm/arm/malidp_crtc.c                  |     1 +
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c |    13 +-
 drivers/gpu/drm/bridge/nwl-dsi.c                   |    17 +-
 drivers/gpu/drm/drm_crtc.c                         |    15 +-
 drivers/gpu/drm/etnaviv/etnaviv_buffer.c           |    40 +-
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c              |     6 +-
 drivers/gpu/drm/exynos/exynos_drm_fimd.c           |     2 +-
 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c     |     2 +-
 drivers/gpu/drm/msm/adreno/a6xx_gmu.c              |     6 +-
 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c           |     9 -
 drivers/gpu/drm/msm/dp/dp_ctrl.c                   |     3 +
 drivers/gpu/drm/msm/hdmi/hdmi.c                    |    35 +-
 drivers/gpu/drm/msm/hdmi/hdmi.h                    |     6 +-
 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c             |    48 +-
 drivers/gpu/drm/msm/hdmi/hdmi_hpd.c                |    24 +-
 drivers/gpu/drm/msm/hdmi/hdmi_phy.c                |    47 +-
 drivers/gpu/drm/nouveau/include/nvkm/subdev/pci.h  |     1 +
 drivers/gpu/drm/nouveau/nouveau_abi16.c            |     4 +
 drivers/gpu/drm/nouveau/nouveau_svm.c              |    13 +
 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c  |     2 +-
 .../gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c    |    20 +
 drivers/gpu/drm/nouveau/nvkm/subdev/pci/Kbuild     |     1 +
 drivers/gpu/drm/nouveau/nvkm/subdev/pci/mcp79.c    |    36 +
 drivers/gpu/drm/omapdrm/dss/dsi.c                  |    63 +-
 drivers/gpu/drm/panel/panel-simple.c               |     3 +
 drivers/gpu/drm/panfrost/panfrost_devfreq.c        |     2 +-
 drivers/gpu/drm/panfrost/panfrost_mmu.c            |    11 +-
 drivers/gpu/drm/radeon/r600_dpm.c                  |    21 +-
 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c        |     7 +-
 drivers/gpu/drm/tegra/submit.c                     |    12 +-
 drivers/gpu/drm/ttm/ttm_bo_util.c                  |     7 +
 drivers/gpu/drm/v3d/v3d_sched.c                    |     2 +
 drivers/gpu/drm/vc4/vc4_gem.c                      |    10 +-
 drivers/gpu/drm/vc4/vc4_hdmi.c                     |     9 +-
 drivers/gpu/host1x/hw/cdma_hw.c                    |     2 +-
 drivers/greybus/manifest.c                         |     2 +
 drivers/hid/amd-sfh-hid/amd_sfh_client.c           |     4 +-
 .../amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.h  |     2 -
 .../hid_descriptor/amd_sfh_hid_report_desc.h       |     7 -
 drivers/hid/hid-core.c                             |     4 +-
 drivers/hid/hid-cougar.c                           |     3 +
 drivers/hid/hid-cp2112.c                           |     9 +-
 drivers/hid/hid-elo.c                              |     3 +
 drivers/hid/hid-ids.h                              |     4 +
 drivers/hid/hid-logitech-dj.c                      |     3 +
 drivers/hid/hid-mcp2221.c                          |     2 +-
 drivers/hid/hid-multitouch.c                       |    19 +-
 drivers/hid/hid-picolcd_fb.c                       |    12 +-
 drivers/hid/hid-prodikeys.c                        |   122 +-
 drivers/hid/hid-quirks.c                           |     2 +
 drivers/hid/hid-rmi.c                              |     2 +-
 drivers/hid/hid-roccat-isku.c                      |     3 +
 drivers/hid/hid-roccat-koneplus.c                  |     3 +
 drivers/hid/hid-roccat-konepure.c                  |     3 +
 drivers/hid/hid-roccat-kovaplus.c                  |     3 +
 drivers/hid/hid-roccat-pyra.c                      |     3 +
 drivers/hid/hid-roccat-ryos.c                      |     3 +
 drivers/hid/hid-roccat-savu.c                      |     3 +
 drivers/hid/hid-roccat.c                           |     8 +-
 drivers/hid/hid-zydacron.c                         |     3 +
 drivers/hid/i2c-hid/i2c-hid-core.c                 |     2 +-
 drivers/hid/intel-ish-hid/ishtp-hid-client.c       |     5 +-
 drivers/hid/usbhid/hiddev.c                        |    37 +-
 drivers/hid/wacom_sys.c                            |   192 +-
 drivers/hid/wacom_wac.c                            |   114 +-
 drivers/hid/wacom_wac.h                            |     6 +-
 drivers/hsi/controllers/omap_ssi_core.c            |     3 +
 drivers/hv/ring_buffer.c                           |    29 +-
 drivers/hwmon/acpi_power_meter.c                   |    10 +-
 drivers/hwmon/aquacomputer_d5next.c                |     6 +
 drivers/hwmon/coretemp.c                           |    13 +-
 drivers/hwmon/corsair-cpro.c                       |    12 +-
 drivers/hwmon/lm70.c                               |     6 +-
 drivers/hwmon/lm87.c                               |     7 +-
 drivers/hwmon/lm95245.c                            |     6 +-
 drivers/hwmon/nct6683.c                            |     4 +-
 drivers/hwmon/pmbus/q54sj108a2.c                   |     2 +
 drivers/hwmon/sht15.c                              |    28 +-
 drivers/hwmon/sht3x.c                              |     5 +-
 drivers/hwmon/tmp102.c                             |     8 +-
 drivers/hwmon/tmp108.c                             |    26 +-
 drivers/i2c/busses/i2c-designware-master.c         |     8 +
 drivers/i2c/busses/i2c-mt7621.c                    |     9 +-
 drivers/i2c/i2c-core-acpi.c                        |    24 +-
 drivers/iio/accel/adis16201.c                      |    10 +-
 drivers/iio/accel/bma220_spi.c                     |     3 +-
 drivers/iio/accel/fxls8962af-core.c                |     2 +
 drivers/iio/accel/kxcjk-1013.c                     |     1 +
 drivers/iio/accel/mma9551.c                        |     1 +
 drivers/iio/accel/mma9553.c                        |     1 +
 drivers/iio/adc/max1241.c                          |     1 +
 drivers/iio/dac/ad5758.c                           |     6 +-
 drivers/iio/humidity/hts221_core.c                 |   106 +-
 drivers/iio/imu/adis16400.c                        |     5 +-
 drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c  |     8 +-
 drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c   |     8 +-
 drivers/iio/light/isl29028.c                       |    23 +-
 drivers/iio/light/ltr501.c                         |     2 +-
 drivers/iio/pressure/dps310.c                      |     6 +-
 drivers/iio/temperature/tmp117.c                   |     9 +-
 drivers/infiniband/core/lag.c                      |    19 +-
 drivers/infiniband/core/mad.c                      |     2 +
 drivers/infiniband/core/mad_rmpp.c                 |     7 +-
 drivers/infiniband/core/nldev.c                    |     5 +-
 drivers/infiniband/core/uverbs_std_types_device.c  |     1 +
 drivers/infiniband/core/uverbs_std_types_wq.c      |     2 +-
 drivers/infiniband/core/verbs.c                    |     3 +-
 drivers/infiniband/hw/bnxt_re/ib_verbs.c           |    50 +-
 drivers/infiniband/hw/bnxt_re/qplib_res.c          |     9 +-
 drivers/infiniband/hw/cxgb4/cm.c                   |     5 +-
 drivers/infiniband/hw/hfi1/chip.c                  |     4 +-
 drivers/infiniband/hw/hfi1/fault.c                 |     1 -
 drivers/infiniband/hw/hfi1/sdma.c                  |     3 +
 drivers/infiniband/hw/hfi1/verbs.c                 |     4 +
 drivers/infiniband/hw/hns/hns_roce_cq.c            |     1 +
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c         |    37 +-
 drivers/infiniband/hw/irdma/ctrl.c                 |     2 +-
 drivers/infiniband/hw/irdma/pble.c                 |     6 +-
 drivers/infiniband/hw/irdma/verbs.c                |    10 +-
 drivers/infiniband/hw/mlx5/cq.c                    |    24 +-
 drivers/infiniband/hw/mlx5/main.c                  |     2 +
 drivers/infiniband/hw/mlx5/mlx5_ib.h               |     2 +
 drivers/infiniband/hw/mlx5/odp.c                   |     2 +-
 drivers/infiniband/hw/mlx5/qp.c                    |     8 +-
 drivers/infiniband/hw/mlx5/qpc.c                   |     8 +-
 drivers/infiniband/hw/mlx5/srq.c                   |     3 +-
 drivers/infiniband/hw/mlx5/wr.c                    |     1 +
 drivers/infiniband/hw/usnic/usnic_debugfs.c        |     2 +-
 drivers/infiniband/sw/rdmavt/qp.c                  |     2 +-
 drivers/infiniband/sw/rxe/rxe_av.c                 |    37 +-
 drivers/infiniband/sw/rxe/rxe_loc.h                |     8 +-
 drivers/infiniband/sw/rxe/rxe_mr.c                 |     4 +
 drivers/infiniband/sw/rxe/rxe_net.c                |    17 +-
 drivers/infiniband/sw/rxe/rxe_recv.c               |     9 +-
 drivers/infiniband/sw/rxe/rxe_req.c                |    80 +-
 drivers/infiniband/sw/rxe/rxe_resp.c               |     2 +-
 drivers/infiniband/sw/rxe/rxe_verbs.c              |    34 +-
 drivers/infiniband/sw/rxe/rxe_verbs.h              |     8 +-
 drivers/infiniband/sw/siw/siw_main.c               |     5 +-
 drivers/infiniband/sw/siw/siw_qp_tx.c              |    20 +-
 drivers/infiniband/ulp/ipoib/ipoib_main.c          |     7 +
 drivers/infiniband/ulp/isert/ib_isert.c            |     2 +-
 drivers/infiniband/ulp/rtrs/rtrs-clt.c             |    32 +-
 drivers/infiniband/ulp/srp/ib_srp.c                |     2 +-
 drivers/input/joystick/xpad.c                      |     2 +
 drivers/iommu/amd/init.c                           |    23 +-
 drivers/iommu/arm/arm-smmu/qcom_iommu.c            |    11 +-
 drivers/iommu/dma-iommu.c                          |    20 +-
 drivers/iommu/intel/dmar.c                         |    70 +-
 drivers/iommu/rockchip-iommu.c                     |    13 +
 drivers/iommu/virtio-iommu.c                       |     6 +-
 drivers/irqchip/irq-gic-v3-its.c                   |   499 +-
 drivers/irqchip/irq-gic-v3.c                       |     1 +
 drivers/irqchip/irq-imx-intmux.c                   |    29 +-
 drivers/leds/flash/leds-ktd2692.c                  |    10 +-
 drivers/leds/led-class-flash.c                     |     2 +-
 drivers/leds/leds-lm3692x.c                        |     4 +-
 drivers/leds/leds-pca9532.c                        |     9 +-
 drivers/mailbox/arm_mhuv2.c                        |     9 +-
 drivers/mailbox/mailbox-altera.c                   |     2 +-
 drivers/mailbox/qcom-ipcc.c                        |     6 +
 drivers/mailbox/ti-msgmgr.c                        |    12 +-
 drivers/md/dm-snap-persistent.c                    |     7 +-
 drivers/md/dm-writecache.c                         |    55 +-
 drivers/md/md.c                                    |    21 +-
 drivers/md/raid5-cache.c                           |    34 +-
 drivers/md/raid5.c                                 |    62 +-
 drivers/md/raid5.h                                 |     1 +
 drivers/media/cec/core/cec-adap.c                  |     1 -
 drivers/media/cec/platform/stm32/stm32-cec.c       |    16 +-
 drivers/media/cec/platform/tegra/tegra_cec.c       |    14 +-
 drivers/media/common/cypress_firmware.c            |     2 +
 drivers/media/common/saa7146/saa7146_core.c        |     3 +-
 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c      |    14 +-
 drivers/media/dvb-core/dmxdev.c                    |    11 +-
 drivers/media/dvb-frontends/stv0900_core.c         |     2 +
 drivers/media/dvb-frontends/stv090x.c              |     2 +
 drivers/media/i2c/adv7180.c                        |     2 +-
 drivers/media/i2c/adv748x/adv748x-core.c           |    13 +-
 drivers/media/i2c/adv7604.c                        |     3 +-
 drivers/media/i2c/ov5647.c                         |     4 +
 drivers/media/i2c/ov5648.c                         |     4 +-
 drivers/media/i2c/ov8856.c                         |     3 +-
 drivers/media/i2c/ov8865.c                         |    48 +-
 drivers/media/i2c/tc358743.c                       |     3 +-
 drivers/media/pci/cx18/cx18-driver.c               |     9 +-
 drivers/media/pci/cx18/cx18-vbi.c                  |     2 +-
 drivers/media/pci/cx23885/cx23885-core.c           |     4 +
 drivers/media/pci/cx23885/cx23885-dvb.c            |    14 +-
 drivers/media/pci/cx88/cx88-mpeg.c                 |    10 +-
 drivers/media/pci/ivtv/ivtv-vbi.c                  |     2 +-
 drivers/media/pci/tw68/tw68-core.c                 |     2 +-
 drivers/media/pci/tw686x/tw686x-core.c             |    10 +
 drivers/media/platform/atmel/atmel-isc-base.c      |    51 +-
 drivers/media/platform/atmel/atmel-isc-regs.h      |     6 +
 drivers/media/platform/atmel/atmel-isc.h           |     1 +
 drivers/media/platform/atmel/atmel-isi.c           |     7 +-
 drivers/media/platform/atmel/atmel-sama5d2-isc.c   |     7 +-
 drivers/media/platform/atmel/atmel-sama7g5-isc.c   |     7 +-
 drivers/media/platform/davinci/vpif_capture.c      |     5 +-
 drivers/media/platform/davinci/vpif_display.c      |     3 +
 drivers/media/platform/exynos4-is/fimc-lite.c      |     3 +-
 drivers/media/platform/imx-jpeg/mxc-jpeg.c         |    21 +-
 drivers/media/platform/m2m-deinterlace.c           |     2 +-
 drivers/media/platform/marvell-ccic/Kconfig        |     1 +
 drivers/media/platform/marvell-ccic/mmp-driver.c   |     5 +-
 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c    |     4 +-
 drivers/media/platform/mtk-vpu/mtk_vpu.c           |     6 +-
 drivers/media/platform/qcom/camss/camss-vfe-170.c  |    71 +-
 drivers/media/platform/qcom/camss/camss-vfe-4-1.c  |     8 +-
 drivers/media/platform/qcom/camss/camss-vfe-4-7.c  |     8 +-
 drivers/media/platform/qcom/camss/camss-vfe-4-8.c  |     8 +-
 drivers/media/platform/qcom/camss/camss-vfe.c      |    43 +-
 drivers/media/platform/qcom/camss/camss-vfe.h      |    11 +-
 drivers/media/platform/qcom/venus/hfi_msgs.c       |     3 +
 drivers/media/platform/rockchip/rga/rga.c          |    69 +-
 drivers/media/platform/rockchip/rga/rga.h          |     7 +-
 drivers/media/platform/s5p-mfc/s5p_mfc.c           |     4 +-
 drivers/media/platform/sti/delta/delta-mjpeg-hdr.c |     7 +-
 drivers/media/rc/fintek-cir.c                      |     4 +
 drivers/media/rc/imon.c                            |     5 -
 drivers/media/rc/ir-hix5hd2.c                      |     5 +-
 drivers/media/rc/ir-mce_kbd-decoder.c              |     5 +-
 drivers/media/rc/meson-ir-tx.c                     |    18 +-
 drivers/media/rc/rc-ir-raw.c                       |    38 +-
 drivers/media/rc/redrat3.c                         |    32 +-
 drivers/media/rc/serial_ir.c                       |     2 +-
 drivers/media/rc/streamzap.c                       |     1 +
 drivers/media/test-drivers/vicodec/codec-fwht.h    |     2 +-
 drivers/media/test-drivers/vicodec/vicodec-core.c  |    16 +-
 drivers/media/test-drivers/vidtv/vidtv_bridge.c    |     4 +
 drivers/media/test-drivers/vidtv/vidtv_demod.c     |     9 -
 drivers/media/test-drivers/vim2m.c                 |    29 +-
 drivers/media/test-drivers/vivid/vivid-vid-cap.c   |    13 +
 drivers/media/usb/au0828/au0828-core.c             |     4 +
 drivers/media/usb/au0828/au0828-dvb.c              |    20 +-
 drivers/media/usb/cx231xx/cx231xx-cards.c          |     2 +-
 drivers/media/usb/cx231xx/cx231xx.h                |     2 +-
 drivers/media/usb/dvb-usb-v2/rtl28xxu.c            |    14 +-
 drivers/media/usb/dvb-usb/dvb-usb-firmware.c       |     2 +
 drivers/media/usb/em28xx/em28xx-audio.c            |     7 +
 drivers/media/usb/em28xx/em28xx-cards.c            |     2 +-
 drivers/media/usb/em28xx/em28xx-core.c             |     3 -
 drivers/media/usb/em28xx/em28xx-video.c            |    26 +-
 drivers/media/usb/go7007/go7007-driver.c           |     5 +-
 drivers/media/usb/go7007/go7007-fw.c               |    28 +-
 drivers/media/usb/go7007/go7007-usb.c              |     8 +
 drivers/media/usb/go7007/s2250-board.c             |    54 +-
 drivers/media/usb/gspca/gspca.c                    |     3 +-
 drivers/media/usb/hackrf/hackrf.c                  |     7 +-
 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c          |     1 +
 drivers/media/usb/usbtv/usbtv-core.c               |     6 +-
 drivers/media/usb/usbtv/usbtv-video.c              |     4 +
 drivers/media/usb/uvc/uvc_ctrl.c                   |     2 +-
 drivers/media/usb/uvc/uvc_driver.c                 |    34 +-
 drivers/media/v4l2-core/v4l2-ctrls-core.c          |    12 +-
 drivers/memory/brcmstb_dpfe.c                      |    34 +-
 drivers/memory/emif.c                              |     9 +-
 drivers/memory/samsung/exynos5422-dmc.c            |    11 +-
 drivers/mfd/ab8500-core.c                          |    44 +-
 drivers/mfd/da903x.c                               |    35 +-
 drivers/mfd/da9150-core.c                          |     8 +-
 drivers/mfd/intel_quark_i2c_gpio.c                 |    52 +-
 drivers/mfd/ipaq-micro.c                           |     2 +-
 drivers/mfd/tps65217.c                             |    72 +-
 drivers/mfd/twl-core.c                             |   346 +-
 drivers/mfd/wcd934x.c                              |    34 +-
 drivers/misc/bcm-vk/bcm_vk_msg.c                   |    18 +-
 drivers/misc/enclosure.c                           |     3 +-
 drivers/misc/genwqe/card_utils.c                   |     2 +-
 drivers/misc/hpilo.c                               |     7 +-
 drivers/misc/ibmvmc.c                              |     7 +
 drivers/mmc/core/block.c                           |     5 +
 drivers/mmc/host/cqhci-core.c                      |    14 +-
 drivers/mmc/host/dw_mmc.c                          |     1 +
 drivers/mtd/chips/cfi_cmdset_0002.c                |    15 +
 drivers/mtd/maps/amd76xrom.c                       |     2 +
 drivers/mtd/maps/l440gx.c                          |     2 -
 drivers/mtd/maps/pci.c                             |     2 +-
 drivers/mtd/mtd_blkdevs.c                          |     5 +
 drivers/mtd/mtdcore.c                              |     2 +-
 drivers/mtd/mtdsuper.c                             |     4 +-
 drivers/mtd/nand/raw/Kconfig                       |     3 +-
 drivers/mtd/nand/raw/atmel/nand-controller.c       |     6 +-
 drivers/mtd/nand/raw/ndfc.c                        |    41 +-
 drivers/mtd/nand/raw/pl35x-nand-controller.c       |     1 +
 drivers/mtd/nand/raw/sunxi_nand.c                  |     3 +
 drivers/mtd/parsers/qcomsmempart.c                 |     4 +-
 drivers/mtd/spi-nor/sfdp.c                         |     4 +
 drivers/net/bonding/bond_main.c                    |     2 +-
 drivers/net/can/dev/netlink.c                      |     4 +-
 drivers/net/can/dev/skb.c                          |     1 +
 drivers/net/can/usb/peak_usb/pcan_usb_fd.c         |     7 +-
 drivers/net/dsa/mt7530.c                           |    24 +-
 drivers/net/dsa/mv88e6xxx/chip.c                   |     8 +-
 drivers/net/ethernet/alacritech/slicoss.c          |     2 +-
 .../net/ethernet/aquantia/atlantic/aq_pci_func.c   |     2 +-
 drivers/net/ethernet/atheros/atl1c/atl1c_main.c    |    33 +
 drivers/net/ethernet/broadcom/bgmac.c              |    61 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c      |    25 +-
 drivers/net/ethernet/broadcom/tg3.c                |    42 +-
 .../net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c   |     2 +-
 drivers/net/ethernet/hisilicon/hisi_femac.c        |     1 +
 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c      |    12 +-
 drivers/net/ethernet/ibm/ibmveth.c                 |    34 +-
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c      |    40 +-
 drivers/net/ethernet/jme.c                         |    37 +-
 drivers/net/ethernet/jme.h                         |     1 +
 drivers/net/ethernet/marvell/mvneta.c              |    18 +
 drivers/net/ethernet/marvell/mvneta_bm.c           |    72 +
 .../net/ethernet/marvell/octeontx2/af/rvu_nix.c    |     4 +-
 .../net/ethernet/mellanox/mlx5/core/en_selftest.c  |     4 +
 drivers/net/ethernet/mellanox/mlxsw/core.c         |     4 +-
 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c   |     2 +-
 .../net/ethernet/mellanox/mlxsw/spectrum_span.c    |     2 +-
 .../net/ethernet/microchip/sparx5/sparx5_packet.c  |    15 +-
 drivers/net/ethernet/pensando/ionic/ionic_main.c   |    13 +-
 drivers/net/ethernet/stmicro/stmmac/chain_mode.c   |     3 +-
 drivers/net/ethernet/stmicro/stmmac/ring_mode.c    |     3 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  |    13 +-
 .../net/ethernet/stmicro/stmmac/stmmac_selftests.c |     2 +-
 drivers/net/ethernet/ti/am65-cpsw-nuss.c           |     4 +-
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c  |    86 +-
 drivers/net/gtp.c                                  |     7 +-
 drivers/net/macsec.c                               |     5 +
 drivers/net/macvlan.c                              |     3 +-
 drivers/net/netdevsim/bpf.c                        |    11 +
 drivers/net/ppp/ppp_generic.c                      |     1 +
 drivers/net/ppp/pppoe.c                            |    25 +-
 drivers/net/team/team.c                            |    11 +
 drivers/net/tun.c                                  |    18 +-
 drivers/net/usb/cdc_ether.c                        |    16 +
 drivers/net/usb/cdc_mbim.c                         |     5 +-
 drivers/net/usb/cdc_ncm.c                          |     7 +-
 drivers/net/usb/lan78xx.c                          |     9 +-
 drivers/net/usb/pegasus.c                          |    16 +-
 drivers/net/usb/qmi_wwan.c                         |     1 +
 drivers/net/usb/rtl8150.c                          |     4 +-
 drivers/net/usb/usbnet.c                           |    32 +-
 drivers/net/veth.c                                 |     7 +-
 drivers/net/vxlan/vxlan_core.c                     |    14 +-
 drivers/net/wireless/ath/ath10k/htt_rx.c           |     6 +-
 drivers/net/wireless/ath/ath10k/htt_tx.c           |    12 +-
 drivers/net/wireless/ath/ath11k/ce.c               |     2 +-
 drivers/net/wireless/ath/ath11k/core.c             |     3 +-
 drivers/net/wireless/ath/ath11k/dp.c               |     2 +
 drivers/net/wireless/ath/ath11k/dp_rx.c            |    19 +-
 drivers/net/wireless/ath/ath11k/mac.c              |    33 +-
 drivers/net/wireless/ath/ath11k/mac.h              |     2 +-
 drivers/net/wireless/ath/ath11k/wmi.c              |     6 +
 drivers/net/wireless/ath/ath6kl/cfg80211.c         |     2 -
 drivers/net/wireless/ath/ath9k/channel.c           |     2 +
 drivers/net/wireless/ath/carl9170/debug.c          |     5 +-
 drivers/net/wireless/broadcom/b43/debugfs.c        |     2 +-
 drivers/net/wireless/broadcom/b43/main.c           |     5 +-
 drivers/net/wireless/broadcom/b43legacy/debugfs.c  |     2 +-
 .../broadcom/brcm80211/brcmfmac/cfg80211.c         |     6 +
 .../wireless/broadcom/brcm80211/brcmfmac/msgbuf.c  |    49 +-
 .../broadcom/brcm80211/brcmsmac/phy/phy_n.c        |     2 +-
 drivers/net/wireless/intel/iwlwifi/dvm/tx.c        |     4 +-
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c       |     1 +
 drivers/net/wireless/mediatek/mt76/eeprom.c        |    17 +-
 drivers/net/wireless/mediatek/mt76/mt7603/beacon.c |     2 +
 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c |     1 +
 drivers/net/wireless/mediatek/mt76/mt7603/main.c   |    76 +-
 drivers/net/wireless/mediatek/mt76/mt7615/init.c   |    15 +-
 drivers/net/wireless/mediatek/mt76/mt7615/main.c   |     6 +-
 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c    |     2 +
 .../net/wireless/mediatek/mt76/mt7615/pci_init.c   |     1 +
 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c   |    33 +-
 .../net/wireless/mediatek/mt76/mt76x02_usb_mcu.c   |     2 +-
 drivers/net/wireless/mediatek/mt76/tx.c            |    18 +-
 drivers/net/wireless/mediatek/mt76/usb.c           |    47 +-
 .../net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c  |    22 +-
 drivers/net/wireless/realtek/rtlwifi/pci.c         |    39 +-
 .../net/wireless/realtek/rtlwifi/rtl8723be/hw.c    |     6 -
 drivers/net/wireless/realtek/rtw88/debug.c         |     5 +
 drivers/net/wireless/realtek/rtw88/mac80211.c      |     2 +-
 drivers/net/wireless/rsi/rsi_91x_core.c            |     2 +-
 drivers/net/wwan/iosm/iosm_ipc_protocol_ops.c      |     5 +
 drivers/net/wwan/wwan_hwsim.c                      |     4 +
 drivers/net/xen-netback/netback.c                  |     9 +-
 drivers/net/xen-netback/xenbus.c                   |     8 +-
 drivers/nfc/nfcmrvl/spi.c                          |     4 +
 drivers/nfc/nxp-nci/i2c.c                          |     4 +-
 drivers/nvdimm/pmem.c                              |     6 +-
 drivers/nvme/host/core.c                           |    11 +-
 drivers/nvme/host/fc.c                             |     2 +-
 drivers/nvme/host/nvme.h                           |     6 +-
 drivers/nvme/host/pci.c                            |     6 +-
 drivers/nvme/host/rdma.c                           |     1 +
 drivers/nvme/host/tcp.c                            |    36 +-
 drivers/nvme/host/zns.c                            |     8 +-
 drivers/nvme/target/admin-cmd.c                    |    16 +-
 drivers/nvme/target/configfs.c                     |   103 +-
 drivers/nvme/target/core.c                         |    17 +-
 drivers/nvme/target/fabrics-cmd.c                  |     3 +-
 drivers/nvme/target/fc.c                           |    33 +-
 drivers/nvme/target/io-cmd-bdev.c                  |     5 +-
 drivers/nvme/target/io-cmd-file.c                  |     4 +-
 drivers/nvme/target/loop.c                         |     2 -
 drivers/nvme/target/nvmet.h                        |     8 +
 drivers/nvme/target/rdma.c                         |    31 +-
 drivers/nvme/target/tcp.c                          |     7 +-
 drivers/nvme/target/zns.c                          |    10 +
 drivers/nvmem/rockchip-otp.c                       |    95 +-
 drivers/of/fdt.c                                   |     3 +
 drivers/opp/of.c                                   |     2 +-
 drivers/parisc/eisa_enumerator.c                   |    15 +-
 drivers/pci/ats.c                                  |     7 +-
 drivers/pci/controller/cadence/pcie-cadence-plat.c |    38 +-
 drivers/pci/controller/dwc/pcie-designware.c       |    11 +-
 drivers/pci/controller/dwc/pcie-designware.h       |     1 +
 drivers/pci/controller/pci-aardvark.c              |    31 +-
 drivers/pci/controller/pci-xgene.c                 |    11 +-
 drivers/pci/controller/pcie-rockchip-host.c        |    16 -
 drivers/pci/controller/pcie-rockchip.c             |    14 +-
 drivers/pci/controller/pcie-rockchip.h             |     1 -
 drivers/pci/controller/vmd.c                       |     3 +
 drivers/pci/endpoint/functions/pci-epf-vntb.c      |     8 +-
 drivers/pci/hotplug/pciehp_core.c                  |     2 +-
 drivers/pci/iov.c                                  |    25 -
 drivers/pci/p2pdma.c                               |    10 +-
 drivers/pci/pci-label.c                            |    94 +-
 drivers/pci/pci.h                                  |     4 -
 drivers/pci/pcie/Kconfig                           |     9 +
 drivers/pci/pcie/aer.c                             |   103 +-
 drivers/pci/pcie/portdrv_core.c                    |    28 +-
 drivers/pci/probe.c                                |    15 +-
 drivers/pci/quirks.c                               |     4 +-
 drivers/pci/xen-pcifront.c                         |    57 +-
 drivers/perf/xgene_pmu.c                           |     4 +-
 drivers/phy/cadence/phy-cadence-sierra.c           |    11 +-
 drivers/phy/phy-core.c                             |    45 +-
 drivers/pinctrl/mediatek/pinctrl-mt7629.c          |     2 +-
 drivers/pinctrl/pinctrl-sx150x.c                   |     1 +
 drivers/pinctrl/sprd/pinctrl-sprd.c                |     3 +
 drivers/platform/olpc/olpc-ec.c                    |     2 +-
 drivers/platform/x86/asus-nb-wmi.c                 |     1 +
 drivers/platform/x86/asus-wmi.c                    |    11 +
 drivers/platform/x86/gpd-pocket-fan.c              |     9 +-
 drivers/platform/x86/hp/hp-wmi.c                   |     6 +-
 drivers/platform/x86/ibm_rtl.c                     |     8 +-
 drivers/platform/x86/intel/int3472/discrete.c      |    16 +-
 drivers/platform/x86/intel/telemetry/core.c        |     4 +
 drivers/power/reset/piix4-poweroff.c               |     1 +
 drivers/power/supply/ab8500_btemp.c                |    28 +-
 drivers/power/supply/ab8500_chargalg.c             |     9 +-
 drivers/power/supply/ab8500_charger.c              |   118 +-
 drivers/power/supply/ab8500_fg.c                   |    21 +-
 drivers/power/supply/bq24190_charger.c             |     9 +-
 drivers/power/supply/bq2515x_charger.c             |    15 +-
 drivers/power/supply/bq27xxx_battery.c             |    16 +-
 drivers/power/supply/cros_peripheral_charger.c     |    13 +-
 drivers/power/supply/generic-adc-battery.c         |    86 +-
 drivers/power/supply/gpio-charger.c                |     5 +-
 drivers/power/supply/ltc2941-battery-gauge.c       |     3 +
 drivers/power/supply/power_supply_core.c           |    83 +-
 drivers/pwm/pwm-lp3943.c                           |    22 +-
 drivers/pwm/pwm-mtk-disp.c                         |     4 +-
 drivers/pwm/pwm-renesas-tpu.c                      |   285 +-
 drivers/pwm/pwm-tiehrpwm.c                         |     3 +
 drivers/rapidio/devices/rio_mport_cdev.c           |     5 +-
 drivers/regulator/ab8500.c                         |   159 +-
 drivers/regulator/core.c                           |     4 +
 drivers/regulator/fixed.c                          |     4 +
 drivers/regulator/irq_helpers.c                    |    77 +-
 drivers/regulator/mp886x.c                         |    13 +-
 drivers/regulator/rt6245-regulator.c               |     5 +-
 drivers/remoteproc/qcom_q6v5_adsp.c                |     2 +-
 drivers/remoteproc/remoteproc_core.c               |     4 +
 drivers/remoteproc/remoteproc_elf_loader.c         |    23 +-
 drivers/rpmsg/mtk_rpmsg.c                          |     1 +
 drivers/rpmsg/rpmsg_core.c                         |    21 +
 drivers/rpmsg/rpmsg_internal.h                     |     2 +
 drivers/rpmsg/virtio_rpmsg_bus.c                   |   128 +-
 drivers/rtc/Kconfig                                |    21 +
 drivers/rtc/class.c                                |     8 +-
 drivers/rtc/rtc-ab-eoz9.c                          |     1 +
 drivers/rtc/rtc-abx80x.c                           |    58 +-
 drivers/rtc/rtc-bd70528.c                          |     5 +
 drivers/rtc/rtc-brcmstb-waketimer.c                |     1 +
 drivers/rtc/rtc-cmos.c                             |     6 +-
 drivers/rtc/rtc-ds1307.c                           |     2 +-
 drivers/rtc/rtc-ds1685.c                           |    20 +-
 drivers/rtc/rtc-ftrtc010.c                         |    26 +-
 drivers/rtc/rtc-s35390a.c                          |   152 +-
 drivers/s390/block/dasd.c                          |    10 +-
 drivers/s390/char/vmcp.c                           |     4 +-
 drivers/scsi/aic7xxx/aic7xxx_core.c                |     8 +-
 drivers/scsi/aic7xxx/aic7xxx_pci.c                 |    20 +-
 drivers/scsi/dc395x.c                              |    10 +-
 drivers/scsi/elx/libefc/efclib.c                   |     2 +
 drivers/scsi/ibmvscsi/ibmvfc.c                     |    10 +-
 drivers/scsi/libiscsi_tcp.c                        |     3 +-
 drivers/scsi/libsas/sas_task.c                     |     2 +-
 drivers/scsi/mpi3mr/mpi/mpi30_image.h              |    59 +-
 drivers/scsi/mpi3mr/mpi/mpi30_init.h               |    15 +-
 drivers/scsi/mpi3mr/mpi/mpi30_ioc.h                |   128 +-
 drivers/scsi/mpi3mr/mpi/mpi30_pci.h                |    44 +
 drivers/scsi/mpi3mr/mpi/mpi30_sas.h                |    14 +
 drivers/scsi/mpi3mr/mpi/mpi30_transport.h          |    31 +-
 drivers/scsi/mpi3mr/mpi3mr.h                       |    28 +-
 drivers/scsi/mpi3mr/mpi3mr_debug.h                 |   135 +-
 drivers/scsi/mpi3mr/mpi3mr_fw.c                    |   871 +-
 drivers/scsi/mpi3mr/mpi3mr_os.c                    |    97 +-
 drivers/scsi/pm8001/pm8001_defs.h                  |    98 +
 drivers/scsi/pm8001/pm8001_hwi.c                   |     2 +-
 drivers/scsi/pm8001/pm8001_hwi.h                   |     4 +-
 drivers/scsi/pm8001/pm80xx_hwi.c                   |     2 +-
 drivers/scsi/pm8001/pm80xx_hwi.h                   |   100 +-
 drivers/scsi/qla2xxx/qla_os.c                      |    15 +-
 drivers/scsi/scsi_bsg.c                            |     6 +-
 drivers/scsi/scsi_debug.c                          |     4 +-
 drivers/scsi/scsi_ioctl.c                          |    11 +-
 drivers/scsi/snic/snic_main.c                      |     1 +
 drivers/scsi/st.c                                  |    75 +
 drivers/scsi/ufs/ufs_bsg.c                         |     6 +-
 drivers/scsi/ufs/ufshcd.c                          |    12 +-
 drivers/sh/intc/core.c                             |    11 +-
 drivers/sh/maple/maple.c                           |     4 +-
 drivers/slimbus/messaging.c                        |     2 +-
 drivers/soc/fsl/dpio/dpio-driver.c                 |     9 +-
 drivers/soc/ixp4xx/ixp4xx-qmgr.c                   |     1 +
 drivers/soc/tegra/flowctrl.c                       |     7 +-
 drivers/soundwire/dmi-quirks.c                     |    21 +-
 drivers/spi/spi-bcm-qspi.c                         |     3 +-
 drivers/spi/spi-cadence-quadspi.c                  |     3 +-
 drivers/spi/spi-jcore.c                            |     2 +
 drivers/spi/spi-mtk-nor.c                          |     1 +
 drivers/spi/spi-mxic.c                             |     8 +-
 drivers/spi/spi-npcm-fiu.c                         |     8 +
 drivers/spi/spi-omap2-mcspi.c                      |     2 -
 drivers/spi/spi-rspi.c                             |    86 +-
 drivers/spi/spi-sh-msiof.c                         |    50 +-
 drivers/spi/spi-sun4i.c                            |    26 +-
 drivers/spi/spi-zynq-qspi.c                        |     6 +-
 drivers/spi/spi.c                                  |     2 +-
 drivers/staging/greybus/uart.c                     |    32 +-
 drivers/staging/iio/adc/ad7816.c                   |     6 +-
 drivers/staging/media/av7110/sp8870.c              |     5 +-
 drivers/staging/media/hantro/hantro_g1_mpeg2_dec.c |     5 +
 drivers/staging/media/imx/imx-media-csc-scaler.c   |     1 +
 drivers/staging/media/meson/vdec/vdec.c            |     2 +-
 drivers/staging/octeon/ethernet-tx.c               |     2 +-
 drivers/staging/rtl8723bs/core/rtw_mlme.c          |    13 -
 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c      |     9 +-
 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c       |     6 +-
 drivers/staging/rtl8723bs/core/rtw_recv.c          |    76 +-
 drivers/staging/rtl8723bs/core/rtw_sta_mgt.c       |     4 +-
 drivers/staging/rtl8723bs/hal/hal_com.c            |    20 +-
 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c  |    16 +-
 drivers/staging/rtl8723bs/hal/sdio_halinit.c       |     8 +-
 drivers/staging/rtl8723bs/hal/sdio_ops.c           |     7 +
 drivers/staging/rtl8723bs/include/drv_types.h      |    41 -
 drivers/staging/rtl8723bs/include/recv_osdep.h     |     4 -
 drivers/staging/rtl8723bs/os_dep/os_intfs.c        |    21 +-
 drivers/staging/rtl8723bs/os_dep/recv_linux.c      |    44 -
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c       |    50 +-
 drivers/staging/sm750fb/sm750.c                    |    10 +-
 drivers/target/target_core_device.c                |    18 +-
 drivers/target/target_core_fabric_lib.c            |    10 +
 drivers/target/target_core_tpg.c                   |    10 +-
 drivers/target/target_core_user.c                  |     5 +
 drivers/thermal/intel/intel_powerclamp.c           |     3 +-
 drivers/thermal/sprd_thermal.c                     |     6 +
 drivers/thermal/ti-soc-thermal/ti-bandgap.c        |    10 +-
 drivers/thermal/ti-soc-thermal/ti-thermal-common.c |     4 +
 drivers/thunderbolt/icm.c                          |     6 +-
 drivers/tty/serial/8250/8250_exar.c                |    59 +-
 drivers/tty/serial/8250/8250_lpss.c                |     7 +-
 drivers/tty/serial/amba-pl011.c                    |    30 +-
 drivers/tty/serial/max310x.c                       |    17 +-
 drivers/tty/serial/pch_uart.c                      |     5 +
 drivers/tty/serial/pmac_zilog.c                    |     5 +-
 drivers/tty/serial/sc16is7xx.c                     |     2 +
 drivers/tty/serial/serial_core.c                   |     7 +
 drivers/tty/serial/sifive.c                        |     2 +-
 drivers/uio/uio_sercos3.c                          |     1 +
 drivers/usb/class/cdc-acm.c                        |     6 +-
 drivers/usb/core/driver.c                          |     1 -
 drivers/usb/core/message.c                         |     1 +
 drivers/usb/gadget/composite.c                     |     2 +-
 drivers/usb/gadget/configfs.c                      |     4 +-
 drivers/usb/gadget/function/f_mass_storage.c       |     7 +-
 drivers/usb/gadget/legacy/inode.c                  |    24 +-
 drivers/usb/gadget/udc/dummy_hcd.c                 |     4 +-
 drivers/usb/gadget/udc/fotg210-udc.c               |    17 +-
 drivers/usb/gadget/udc/fsl_qe_udc.c                |     8 +-
 drivers/usb/host/pci-quirks.c                      |     1 +
 drivers/usb/host/xhci-dbgtty.c                     |     2 +
 drivers/usb/host/xhci-ring.c                       |     9 +-
 drivers/usb/image/microtek.c                       |     1 +
 drivers/usb/misc/cypress_cy7c63.c                  |     8 +-
 drivers/usb/misc/uss720.c                          |     1 +
 drivers/usb/mon/mon_main.c                         |     3 +
 drivers/usb/mtu3/mtu3_trace.h                      |     4 +-
 drivers/usb/musb/da8xx.c                           |     8 +-
 drivers/usb/musb/musb_host.c                       |    14 +-
 drivers/usb/serial/option.c                        |     5 +
 drivers/usb/serial/sierra.c                        |     3 +-
 drivers/usb/serial/usb_wwan.c                      |     3 +
 drivers/usb/storage/alauda.c                       |    95 +-
 drivers/usb/typec/tcpm/tcpm.c                      |     9 +-
 drivers/usb/typec/ucsi/ucsi_ccg.c                  |    33 +-
 drivers/vdpa/vdpa_user/iova_domain.c               |    11 +-
 drivers/vhost/vdpa.c                               |     8 +-
 drivers/vhost/vringh.c                             |    27 +-
 drivers/video/backlight/lm3630a_bl.c               |     2 +-
 drivers/video/backlight/qcom-wled.c                |    35 +-
 drivers/video/fbdev/atmel_lcdfb.c                  |    24 +-
 drivers/video/fbdev/core/bitblit.c                 |     7 +-
 drivers/video/fbdev/core/fbcon.c                   |    64 +
 drivers/video/fbdev/core/fbcon_rotate.c            |     3 +-
 drivers/video/fbdev/core/fbsysfs.c                 |     1 +
 drivers/video/fbdev/gxt4500.c                      |     1 +
 drivers/video/fbdev/kyro/fbdev.c                   |    19 +-
 drivers/video/fbdev/nvidia/nvidia.c                |     1 +
 drivers/video/fbdev/omap2/omapfb/dss/dsi.c         |     9 +-
 drivers/video/fbdev/platinumfb.c                   |    35 +-
 drivers/video/fbdev/sh_mobile_lcdcfb.c             |     6 +-
 drivers/video/fbdev/smscufx.c                      |     9 +-
 drivers/video/fbdev/ssd1307fb.c                    |     6 +-
 drivers/video/fbdev/udlfb.c                        |    36 +-
 drivers/video/fbdev/xen-fbfront.c                  |     7 +-
 drivers/virtio/virtio_balloon.c                    |     6 +-
 drivers/virtio/virtio_ring.c                       |     8 +
 drivers/w1/masters/ds2482.c                        |     8 +
 drivers/xen/gntdev-dmabuf.c                        |     4 +-
 drivers/xen/gntdev.c                               |     7 +
 fs/9p/v9fs.c                                       |    16 +-
 fs/9p/vfs_inode.c                                  |     8 +
 fs/affs/bitmap.c                                   |     2 +-
 fs/afs/rxrpc.c                                     |    34 +-
 fs/aio.c                                           |    18 +-
 fs/btrfs/ctree.h                                   |     2 +-
 fs/btrfs/disk-io.c                                 |     6 +-
 fs/btrfs/inode.c                                   |     3 -
 fs/btrfs/ioctl.c                                   |    11 +
 fs/btrfs/qgroup.c                                  |     4 +-
 fs/btrfs/relocation.c                              |    13 +-
 fs/btrfs/sysfs.c                                   |     1 +
 fs/btrfs/volumes.c                                 |     6 +-
 fs/ceph/addr.c                                     |     3 +
 fs/ceph/caps.c                                     |     6 +
 fs/ceph/dir.c                                      |    14 +-
 fs/ceph/inode.c                                    |     3 +-
 fs/ceph/mds_client.c                               |    26 +-
 fs/ceph/mdsmap.c                                   |    12 +-
 fs/ceph/snap.c                                     |     7 +-
 fs/ceph/super.c                                    |     9 +
 fs/ceph/super.h                                    |     1 -
 fs/ceph/xattr.c                                    |    10 +
 fs/cifs/cifsacl.c                                  |     2 +
 fs/cifs/cifsfs.c                                   |    20 +-
 fs/cifs/cifsglob.h                                 |     2 +
 fs/cifs/cifssmb.c                                  |   256 +-
 fs/cifs/connect.c                                  |    42 +-
 fs/cifs/readdir.c                                  |     3 +
 fs/cifs/smb2ops.c                                  |    35 +-
 fs/cifs/smb2pdu.c                                  |    35 +-
 fs/coredump.c                                      |     4 +
 fs/dcache.c                                        |    65 +-
 fs/dlm/debug_fs.c                                  |    37 +
 fs/dlm/dir.c                                       |     2 +-
 fs/dlm/dlm_internal.h                              |    10 +-
 fs/dlm/lock.c                                      |    99 +-
 fs/dlm/lowcomms.c                                  |    25 +-
 fs/dlm/lowcomms.h                                  |     4 +-
 fs/dlm/member.c                                    |     2 +-
 fs/dlm/midcomms.c                                  |    78 +-
 fs/dlm/midcomms.h                                  |     2 +
 fs/dlm/rcom.c                                      |    42 +-
 fs/dlm/requestqueue.c                              |     7 +-
 fs/dlm/util.c                                      |    26 -
 fs/dlm/util.h                                      |     2 -
 fs/eventpoll.c                                     |    18 +-
 fs/exec.c                                          |    30 +-
 fs/exfat/balloc.c                                  |    31 +-
 fs/exfat/dir.c                                     |     8 +-
 fs/ext4/balloc.c                                   |     6 +-
 fs/ext4/ext4.h                                     |     5 +-
 fs/ext4/extents.c                                  |    26 +-
 fs/ext4/indirect.c                                 |    17 +
 fs/ext4/inode.c                                    |    18 +-
 fs/ext4/namei.c                                    |    11 +-
 fs/ext4/super.c                                    |    33 +-
 fs/f2fs/compress.c                                 |    10 +-
 fs/f2fs/data.c                                     |     8 +-
 fs/f2fs/file.c                                     |    23 +-
 fs/f2fs/gc.c                                       |     9 +-
 fs/f2fs/node.c                                     |    58 +-
 fs/f2fs/segment.c                                  |     3 +-
 fs/f2fs/super.c                                    |    39 +-
 fs/fat/fat.h                                       |     2 +-
 fs/fat/fatent.c                                    |    21 +-
 fs/fat/file.c                                      |     3 +-
 fs/fat/inode.c                                     |     2 +
 fs/fat/misc.c                                      |     6 +-
 fs/fat/namei_msdos.c                               |     3 +
 fs/fs-writeback.c                                  |    24 +-
 fs/fs_pin.c                                        |     9 +-
 fs/fuse/file.c                                     |    12 +-
 fs/fuse/virtio_fs.c                                |    80 +-
 fs/gfs2/bmap.c                                     |     2 +-
 fs/gfs2/glops.c                                    |    10 +-
 fs/gfs2/inode.c                                    |     2 +-
 fs/hfs/btree.c                                     |     7 +-
 fs/hfsplus/btree.c                                 |     7 +-
 fs/hfsplus/extents.c                               |     2 +
 fs/hugetlbfs/inode.c                               |     2 +-
 fs/inode.c                                         |    15 +-
 fs/iomap/buffered-io.c                             |     3 +-
 fs/iomap/fiemap.c                                  |     8 +-
 fs/isofs/dir.c                                     |     4 +-
 fs/isofs/inode.c                                   |     2 +
 fs/isofs/isofs.h                                   |    13 +-
 fs/isofs/joliet.c                                  |    27 +-
 fs/isofs/namei.c                                   |     3 +-
 fs/isofs/rock.c                                    |    11 +-
 fs/jbd2/journal.c                                  |     2 +-
 fs/ksmbd/Kconfig                                   |     1 +
 fs/ksmbd/auth.c                                    |     3 +-
 fs/ksmbd/connection.c                              |    22 +
 fs/ksmbd/mgmt/user_session.c                       |     4 +-
 fs/ksmbd/misc.c                                    |     8 +-
 fs/ksmbd/oplock.c                                  |     9 +-
 fs/ksmbd/server.c                                  |    21 +
 fs/ksmbd/smb2pdu.c                                 |   362 +-
 fs/ksmbd/smb2pdu.h                                 |     1 +
 fs/ksmbd/smbacl.c                                  |    37 +-
 fs/ksmbd/transport_ipc.c                           |    16 +-
 fs/ksmbd/transport_rdma.c                          |     1 -
 fs/ksmbd/transport_tcp.c                           |    15 +
 fs/ksmbd/vfs.c                                     |    79 +-
 fs/ksmbd/vfs.h                                     |     1 +
 fs/lockd/svclock.c                                 |     2 +
 fs/namespace.c                                     |     2 +-
 fs/nfs/blocklayout/blocklayout.h                   |     5 -
 fs/nfs/blocklayout/rpc_pipefs.c                    |    79 +-
 fs/nfs/callback_xdr.c                              |     9 +-
 fs/nfs/dir.c                                       |    13 +-
 fs/nfs/filelayout/filelayout.c                     |    13 +-
 fs/nfs/filelayout/filelayoutdev.c                  |    17 +-
 fs/nfs/flexfilelayout/flexfilelayout.c             |    25 +-
 fs/nfs/flexfilelayout/flexfilelayoutdev.c          |    17 +-
 fs/nfs/internal.h                                  |     1 +
 fs/nfs/netns.h                                     |     5 +-
 fs/nfs/nfs3proc.c                                  |     8 +
 fs/nfs/nfs4_fs.h                                   |     2 +
 fs/nfs/nfs4proc.c                                  |    13 +
 fs/nfs/nfs4state.c                                 |    38 +-
 fs/nfs/pnfs.c                                      |     2 +
 fs/nfs/pnfs.h                                      |     1 +
 fs/nfs/pnfs_nfs.c                                  |    21 +-
 fs/nfs/proc.c                                      |     8 +
 fs/nfsd/blocklayout.c                              |     4 +-
 fs/nfsd/flexfilelayout.c                           |    24 +-
 fs/nfsd/flexfilelayoutxdr.c                        |     4 +-
 fs/nfsd/flexfilelayoutxdr.h                        |     5 +-
 fs/nfsd/nfs4idmap.c                                |     4 +-
 fs/nfsd/nfs4layouts.c                              |     7 +-
 fs/nfsd/nfs4proc.c                                 |     6 +-
 fs/nfsd/nfs4recover.c                              |    87 +-
 fs/nfsd/nfs4state.c                                |    40 +-
 fs/nfsd/nfs4xdr.c                                  |    26 +-
 fs/nfsd/nfsctl.c                                   |    12 +-
 fs/nfsd/pnfs.h                                     |     4 +-
 fs/nfsd/xdr4.h                                     |     1 +
 fs/nilfs2/dir.c                                    |    34 +
 fs/nilfs2/gcinode.c                                |    24 +-
 fs/nilfs2/inode.c                                  |    22 +-
 fs/nilfs2/ioctl.c                                  |     2 +-
 fs/nilfs2/mdt.c                                    |     6 +-
 fs/nilfs2/namei.c                                  |     8 +-
 fs/nilfs2/page.c                                   |    50 +-
 fs/nilfs2/page.h                                   |     4 +-
 fs/nilfs2/recovery.c                               |    49 +-
 fs/nilfs2/segbuf.c                                 |    12 +-
 fs/nilfs2/segment.c                                |    54 +-
 fs/nilfs2/sysfs.c                                  |     5 +-
 fs/nilfs2/the_nilfs.c                              |    46 +-
 fs/notify/fanotify/fanotify.c                      |     7 +-
 fs/notify/fanotify/fanotify.h                      |    21 +-
 fs/notify/inotify/inotify_fsnotify.c               |     2 +-
 fs/ntfs3/attrib.c                                  |     2 +-
 fs/ntfs3/dir.c                                     |     5 +
 fs/ntfs3/frecord.c                                 |    17 +-
 fs/ntfs3/fslog.c                                   |    29 +-
 fs/ntfs3/fsntfs.c                                  |     3 +
 fs/ntfs3/index.c                                   |    14 +-
 fs/ntfs3/inode.c                                   |    19 +-
 fs/ntfs3/namei.c                                   |     9 +-
 fs/ntfs3/super.c                                   |     2 +-
 fs/ntfs3/xattr.c                                   |    27 +-
 fs/ocfs2/alloc.c                                   |    18 +-
 fs/ocfs2/cluster/heartbeat.c                       |    96 +-
 fs/ocfs2/cluster/netdebug.c                        |     4 +
 fs/ocfs2/cluster/nodemanager.c                     |    10 +-
 fs/ocfs2/cluster/quorum.c                          |     7 +-
 fs/ocfs2/cluster/quorum.h                          |     1 +
 fs/ocfs2/cluster/tcp.c                             |    13 +-
 fs/ocfs2/dcache.h                                  |     5 +-
 fs/ocfs2/dlm/dlmconvert.c                          |    10 +-
 fs/ocfs2/dlm/dlmdebug.c                            |     5 +
 fs/ocfs2/dlm/dlmlock.c                             |     8 +-
 fs/ocfs2/dlm/dlmmaster.c                           |    70 +-
 fs/ocfs2/dlmglue.c                                 |    97 +-
 fs/ocfs2/dlmglue.h                                 |     5 +-
 fs/ocfs2/export.c                                  |    10 +-
 fs/ocfs2/file.c                                    |   102 +-
 fs/ocfs2/filecheck.c                               |     7 +-
 fs/ocfs2/inode.c                                   |     5 +-
 fs/ocfs2/journal.c                                 |    18 +-
 fs/ocfs2/journal.h                                 |     2 +-
 fs/ocfs2/move_extents.c                            |    62 +-
 fs/ocfs2/namei.c                                   |     6 +-
 fs/ocfs2/ocfs2.h                                   |     2 +-
 fs/ocfs2/quota_local.c                             |    36 +-
 fs/ocfs2/refcounttree.c                            |    15 +-
 fs/ocfs2/super.c                                   |    20 +-
 fs/ocfs2/xattr.c                                   |   414 +-
 fs/ocfs2/xattr.h                                   |    12 +-
 fs/overlayfs/copy_up.c                             |    69 +-
 fs/overlayfs/dir.c                                 |    18 +-
 fs/overlayfs/export.c                              |     4 +-
 fs/overlayfs/file.c                                |     4 +-
 fs/overlayfs/inode.c                               |    24 +-
 fs/overlayfs/namei.c                               |    52 +-
 fs/overlayfs/overlayfs.h                           |    83 +-
 fs/overlayfs/ovl_entry.h                           |     5 +
 fs/overlayfs/readdir.c                             |    68 +-
 fs/overlayfs/super.c                               |    17 +-
 fs/overlayfs/util.c                                |    31 +-
 fs/proc/array.c                                    |     2 +-
 fs/proc/base.c                                     |     9 +-
 fs/proc/generic.c                                  |    11 +-
 fs/proc/internal.h                                 |    15 +-
 fs/proc/namespaces.c                               |     3 +-
 fs/proc/proc_sysctl.c                              |    17 +-
 fs/pstore/ram.c                                    |     1 +
 fs/pstore/ram_core.c                               |     6 +
 fs/read_write.c                                    |     8 +-
 fs/romfs/super.c                                   |     8 +
 fs/signalfd.c                                      |    29 +-
 fs/splice.c                                        |    97 +-
 fs/stat.c                                          |     6 +-
 fs/udf/balloc.c                                    |    11 +-
 fs/udf/inode.c                                     |    47 +-
 fs/udf/super.c                                     |    45 +-
 fs/udf/truncate.c                                  |     7 +-
 fs/ufs/cylinder.c                                  |    31 +-
 fs/ufs/dir.c                                       |     2 +-
 fs/userfaultfd.c                                   |    14 +-
 fs/verity/measure.c                                |    10 +
 fs/verity/open.c                                   |    38 +-
 fs/verity/read_metadata.c                          |    14 +-
 fs/xfs/libxfs/xfs_attr_leaf.c                      |    13 +
 fs/xfs/libxfs/xfs_bmap.c                           |    12 +
 fs/xfs/libxfs/xfs_bmap.h                           |    10 +-
 fs/xfs/libxfs/xfs_btree.c                          |     4 +-
 fs/xfs/libxfs/xfs_da_btree.c                       |    13 +
 fs/xfs/scrub/attr.c                                |    18 +
 fs/xfs/scrub/bmap.c                                |     7 +
 fs/xfs/scrub/btree.c                               |    16 +-
 fs/xfs/scrub/common.c                              |     7 +-
 fs/xfs/scrub/dabtree.c                             |    27 +-
 fs/xfs/scrub/dir.c                                 |    61 +-
 fs/xfs/scrub/fscounters.c                          |     7 +-
 fs/xfs/scrub/quota.c                               |     8 +-
 fs/xfs/scrub/refcount.c                            |    17 +-
 fs/xfs/xfs_discard.c                               |     5 +-
 fs/xfs/xfs_inode_item_recover.c                    |    20 +-
 fs/xfs/xfs_ioctl32.c                               |     4 +-
 fs/xfs/xfs_iomap.c                                 |     8 +
 fs/xfs/xfs_pnfs.c                                  |    30 +-
 include/acpi/acpi_bus.h                            |     2 +-
 include/asm-generic/bitops/le.h                    |    18 +-
 include/asm-generic/tlb.h                          |     3 +-
 include/drm/ttm/ttm_bo_api.h                       |     4 +-
 include/kvm/arm_vgic.h                             |     1 +
 include/linux/acpi.h                               |    24 +-
 include/linux/assoc_array_priv.h                   |     2 +-
 include/linux/bpf.h                                |    23 +
 include/linux/can/can-ml.h                         |     3 +
 include/linux/clk-provider.h                       |    22 +-
 include/linux/damon.h                              |     6 +
 include/linux/dcache.h                             |     3 +
 include/linux/device.h                             |     5 +
 include/linux/device/bus.h                         |     3 -
 include/linux/fault-inject.h                       |    10 +-
 include/linux/firewire.h                           |     1 -
 include/linux/fs.h                                 |     4 +-
 include/linux/hiddev.h                             |     2 +
 include/linux/i2c.h                                |    17 +-
 include/linux/interrupt.h                          |     3 +
 include/linux/irqchip/arm-gic-v3.h                 |     3 +-
 include/linux/libata.h                             |     6 +
 include/linux/lockdep.h                            |    14 +
 include/linux/lockdep_types.h                      |     1 +
 include/linux/mfd/da9150/core.h                    |     1 +
 include/linux/mfd/twl.h                            |    55 -
 include/linux/mmu_notifier.h                       |    10 +-
 include/linux/mtd/spinand.h                        |     2 +-
 include/linux/nvme.h                               |    10 +
 include/linux/pci.h                                |     3 +
 include/linux/pm_wakeirq.h                         |    10 +-
 include/linux/pm_wakeup.h                          |    48 +-
 include/linux/proc_fs.h                            |     2 +
 include/linux/regulator/driver.h                   |    36 +
 include/linux/rpmsg.h                              |    10 +
 include/linux/sched/signal.h                       |     6 +-
 include/linux/seq_buf.h                            |    27 +-
 include/linux/shmem_fs.h                           |    15 +-
 include/linux/skbuff.h                             |     8 +
 include/linux/soc/ti/k3-ringacc.h                  |    31 +-
 include/linux/spi/rspi.h                           |    18 -
 include/linux/timer.h                              |     8 -
 include/linux/trace_seq.h                          |     2 +
 include/linux/user_namespace.h                     |    36 +-
 include/linux/watch_queue.h                        |     6 +-
 include/math-emu/op-common.h                       |    23 +-
 include/math-emu/soft-fp.h                         |     8 +
 include/media/v4l2-ctrls.h                         |     6 +
 include/net/addrconf.h                             |     3 +
 include/net/bluetooth/bluetooth.h                  |     4 +-
 include/net/dst.h                                  |    16 +-
 include/net/espintcp.h                             |     5 +-
 include/net/inet_frag.h                            |     9 +
 include/net/ip_tunnels.h                           |     3 +
 include/net/ip_vs.h                                |    50 +-
 include/net/mptcp.h                                |     9 +
 include/net/netfilter/nf_conntrack_seqadj.h        |     1 +
 include/net/netns/can.h                            |     2 +-
 include/net/netns/ipv6.h                           |     4 +
 include/net/sch_generic.h                          |     4 +
 include/net/sctp/sm.h                              |     1 +
 include/sound/control.h                            |     4 +-
 include/sound/core.h                               |    27 +-
 include/sound/hwdep.h                              |     1 +
 include/sound/pcm.h                                |     4 +-
 include/sound/pcm_oss.h                            |     1 +
 include/sound/soc-component.h                      |     2 +-
 include/trace/events/thermal.h                     |     4 +-
 include/trace/misc/nfs.h                           |    10 +
 include/uapi/linux/firewire-cdev.h                 |     4 +-
 include/uapi/linux/rtc.h                           |     4 +-
 include/uapi/rdma/rdma_user_rxe.h                  |    10 +-
 include/video/maxinefb.h                           |     4 +-
 init/Kconfig                                       |     4 +-
 init/main.c                                        |    14 +-
 io_uring/io-wq.c                                   |     8 +-
 io_uring/io_uring.c                                |     6 +-
 ipc/mqueue.c                                       |     7 +
 kernel/bpf/bpf_iter.c                              |     7 +
 kernel/bpf/bpf_lsm.c                               |     4 +-
 kernel/bpf/btf.c                                   |    27 +-
 kernel/bpf/queue_stack_maps.c                      |     3 +
 kernel/cgroup/cgroup.c                             |     2 +-
 kernel/cgroup/cpuset.c                             |    17 +-
 kernel/cpu_pm.c                                    |     9 +-
 kernel/debug/gdbstub.c                             |    55 +-
 kernel/events/core.c                               |     9 +
 kernel/fork.c                                      |    41 +-
 kernel/irq/internals.h                             |     2 +
 kernel/irq/irqdomain.c                             |     4 +-
 kernel/irq/manage.c                                |    86 +-
 kernel/kcov.c                                      |     8 +
 kernel/kcsan/core.c                                |     7 +-
 kernel/kexec_file.c                                |     4 +-
 kernel/locking/lockdep.c                           |    28 +-
 kernel/nsproxy.c                                   |     2 +-
 kernel/profile.c                                   |     2 +-
 kernel/rcu/rcutorture.c                            |     2 +-
 kernel/reboot.c                                    |     4 +-
 kernel/resource.c                                  |    11 +-
 kernel/sched/cpufreq_schedutil.c                   |    14 +-
 kernel/sched/fair.c                                |     7 +-
 kernel/seccomp.c                                   |     7 +-
 kernel/signal.c                                    |    40 +-
 kernel/sys.c                                       |     5 +-
 kernel/sysctl.c                                    |    11 -
 kernel/time/itimer.c                               |     2 +-
 kernel/time/namespace.c                            |     2 +-
 kernel/time/posix-cpu-timers.c                     |     4 +-
 kernel/time/posix-stubs.c                          |     4 +-
 kernel/time/posix-timers.c                         |    18 +-
 kernel/time/timeconv.c                             |     6 +-
 kernel/time/timekeeping.c                          |     3 +-
 kernel/time/timer.c                                |    55 +-
 kernel/trace/bpf_trace.c                           |    16 +-
 kernel/trace/trace.c                               |    21 +-
 kernel/trace/trace_events_hist.c                   |    34 +-
 kernel/trace/trace_events_synth.c                  |    10 +
 kernel/trace/trace_seq.c                           |     6 +-
 kernel/trace/trace_synth.h                         |     1 +
 kernel/ucount.c                                    |    62 +-
 kernel/user_namespace.c                            |    10 +-
 kernel/watch_queue.c                               |     2 +-
 lib/842/842_decompress.c                           |     7 +-
 lib/assoc_array.c                                  |   377 +-
 lib/cmdline.c                                      |    13 +-
 lib/cmdline_kunit.c                                |    39 +
 lib/debugobjects.c                                 |    15 +-
 lib/decompress_bunzip2.c                           |     6 +-
 lib/decompress_unlz4.c                             |     4 +
 lib/fault-inject.c                                 |     7 +-
 lib/klist.c                                        |    16 +-
 lib/kobject_uevent.c                               |     8 +-
 lib/raid6/avx2.c                                   |     6 +
 lib/raid6/avx512.c                                 |     6 +
 lib/raid6/recov_avx2.c                             |     2 +
 lib/raid6/recov_avx512.c                           |     2 +
 lib/seq_buf.c                                      |    52 +-
 lib/test_hmm.c                                     |     2 +
 mm/damon/core.c                                    |     5 +-
 mm/filemap.c                                       |    98 +-
 mm/gup.c                                           |     9 +-
 mm/gup_test.c                                      |    17 +-
 mm/huge_memory.c                                   |     8 +-
 mm/hugetlb.c                                       |    24 +-
 mm/internal.h                                      |     3 +
 mm/khugepaged.c                                    |     2 +-
 mm/ksm.c                                           |    31 +-
 mm/madvise.c                                       |    18 +-
 mm/memfd.c                                         |     2 +
 mm/memory.c                                        |    35 +-
 mm/mempolicy.c                                     |     6 +-
 mm/migrate.c                                       |     2 +-
 mm/mlock.c                                         |     2 +-
 mm/mmap.c                                          |    86 +-
 mm/mmu_notifier.c                                  |    24 +-
 mm/mremap.c                                        |    25 +-
 mm/nommu.c                                         |     6 +-
 mm/page_alloc.c                                    |    16 +-
 mm/page_vma_mapped.c                               |    22 +-
 mm/rmap.c                                          |    15 +-
 mm/shmem.c                                         |    13 +-
 mm/swapfile.c                                      |     4 +-
 mm/util.c                                          |    13 +
 net/9p/trans_virtio.c                              |     5 +
 net/9p/trans_xen.c                                 |    14 +-
 net/batman-adv/bat_iv_ogm.c                        |     9 +
 net/batman-adv/distributed-arp-table.c             |     1 +
 net/batman-adv/main.c                              |    12 +-
 net/batman-adv/main.h                              |     3 -
 net/batman-adv/tp_meter.c                          |     2 +-
 net/batman-adv/translation-table.c                 |   145 +-
 net/batman-adv/types.h                             |     8 +-
 net/bluetooth/6lowpan.c                            |     4 +-
 net/bluetooth/hci_core.c                           |   128 +-
 net/bluetooth/hci_debugfs.c                        |   132 +
 net/bluetooth/hci_debugfs.h                        |     5 +
 net/bluetooth/l2cap_core.c                         |    95 +-
 net/bluetooth/l2cap_sock.c                         |     4 +
 net/bluetooth/selftest.c                           |     1 +
 net/bluetooth/smp.c                                |     1 +
 net/bridge/netfilter/ebtables.c                    |    12 +-
 net/can/af_can.c                                   |    51 +-
 net/can/bcm.c                                      |    50 +-
 net/can/gw.c                                       |     7 +-
 net/can/isotp.c                                    |   228 +-
 net/can/proc.c                                     |    69 +-
 net/can/raw.c                                      |   136 +-
 net/ceph/messenger_v1.c                            |     8 +-
 net/ceph/mon_client.c                              |     2 +-
 net/ceph/osd_client.c                              |    13 +-
 net/ceph/osdmap.c                                  |    18 +-
 net/core/bpf_sk_storage.c                          |     9 +-
 net/core/dev.c                                     |     9 +-
 net/core/dst.c                                     |     2 +-
 net/core/filter.c                                  |    50 +-
 net/core/selftests.c                               |     2 +-
 net/core/skbuff.c                                  |    28 +-
 net/core/sock.c                                    |     9 +-
 net/dcb/dcbnl.c                                    |     2 +
 net/ipv4/af_inet.c                                 |     3 +
 net/ipv4/bpf_tcp_ca.c                              |     9 +-
 net/ipv4/gre_offload.c                             |     2 +-
 net/ipv4/icmp.c                                    |     8 +-
 net/ipv4/inet_connection_sock.c                    |    16 +-
 net/ipv4/inet_fragment.c                           |     4 +
 net/ipv4/inet_hashtables.c                         |     5 +-
 net/ipv4/ip_fragment.c                             |    10 +-
 net/ipv4/ip_tunnel.c                               |    14 +-
 net/ipv4/ipmr.c                                    |    11 +-
 net/ipv4/metrics.c                                 |     5 +
 net/ipv4/netfilter/nf_reject_ipv4.c                |    11 +-
 net/ipv4/route.c                                   |     7 +-
 net/ipv4/syncookies.c                              |     2 +
 net/ipv4/tcp_bic.c                                 |    14 +-
 net/ipv4/tcp_cong.c                                |     4 +-
 net/ipv4/tcp_hybla.c                               |    16 +-
 net/ipv4/tcp_input.c                               |     4 +-
 net/ipv4/tcp_metrics.c                             |    20 +-
 net/ipv4/tcp_output.c                              |     2 +-
 net/ipv6/addrconf.c                                |    58 +-
 net/ipv6/calipso.c                                 |     6 +-
 net/ipv6/datagram.c                                |     4 +
 net/ipv6/inet6_hashtables.c                        |     4 +-
 net/ipv6/ip6_offload.c                             |     4 +
 net/ipv6/ip6_output.c                              |    27 +-
 net/ipv6/ip6mr.c                                   |    11 +-
 net/ipv6/netfilter/nf_conntrack_reasm.c            |     2 +-
 net/ipv6/netfilter/nf_reject_ipv6.c                |    13 +-
 net/ipv6/raw.c                                     |     3 +
 net/ipv6/reassembly.c                              |     1 +
 net/ipv6/route.c                                   |    20 +-
 net/ipv6/sit.c                                     |     4 +-
 net/l2tp/l2tp_core.c                               |    47 +-
 net/l2tp/l2tp_core.h                               |     5 +-
 net/l2tp/l2tp_debugfs.c                            |     4 +-
 net/l2tp/l2tp_netlink.c                            |     9 +-
 net/l2tp/l2tp_ppp.c                                |     7 +-
 net/mac80211/debugfs.c                             |     2 +-
 net/mac80211/ibss.c                                |     4 +-
 net/mac80211/ieee80211_i.h                         |     2 +-
 net/mac80211/main.c                                |     2 +
 net/mac80211/mesh_pathtbl.c                        |    17 +-
 net/mac80211/rx.c                                  |     1 +
 net/mac80211/tdls.c                                |     3 +-
 net/mac80211/tx.c                                  |    57 +-
 net/mptcp/options.c                                |     9 +-
 net/mptcp/pm_netlink.c                             |     1 +
 net/mptcp/protocol.h                               |    10 +-
 net/mptcp/subflow.c                                |    48 +-
 net/mptcp/token.c                                  |    65 +-
 net/mptcp/token_test.c                             |     4 +-
 net/netfilter/ipvs/ip_vs_conn.c                    |     8 +-
 net/netfilter/ipvs/ip_vs_ctl.c                     |    38 +-
 net/netfilter/ipvs/ip_vs_dh.c                      |    16 +-
 net/netfilter/ipvs/ip_vs_fo.c                      |     2 +-
 net/netfilter/ipvs/ip_vs_lblc.c                    |     4 +-
 net/netfilter/ipvs/ip_vs_lblcr.c                   |     8 +-
 net/netfilter/ipvs/ip_vs_lc.c                      |     2 +-
 net/netfilter/ipvs/ip_vs_mh.c                      |     2 +-
 net/netfilter/ipvs/ip_vs_nq.c                      |     2 +-
 net/netfilter/ipvs/ip_vs_ovf.c                     |     2 +-
 net/netfilter/ipvs/ip_vs_rr.c                      |     2 +-
 net/netfilter/ipvs/ip_vs_sed.c                     |     4 +-
 net/netfilter/ipvs/ip_vs_sh.c                      |     2 +-
 net/netfilter/ipvs/ip_vs_sync.c                    |    23 +-
 net/netfilter/ipvs/ip_vs_twos.c                    |     4 +-
 net/netfilter/ipvs/ip_vs_wlc.c                     |     4 +-
 net/netfilter/ipvs/ip_vs_wrr.c                     |     2 +-
 net/netfilter/nf_conntrack_core.c                  |     5 +
 net/netfilter/nf_conntrack_netlink.c               |     8 +-
 net/netfilter/nf_conntrack_proto_tcp.c             |     6 +-
 net/netfilter/nf_conntrack_seqadj.c                |    17 +
 net/netfilter/nf_flow_table_ip.c                   |     4 +-
 net/netfilter/nf_synproxy_core.c                   |     4 +-
 net/netfilter/nf_tables_api.c                      |     1 +
 net/netfilter/nft_compat.c                         |    15 +
 net/netfilter/nft_meta.c                           |     6 +-
 net/netfilter/nft_rt.c                             |     6 +-
 net/netfilter/nft_xfrm.c                           |     9 +-
 net/netfilter/xt_dccp.c                            |     2 +-
 net/netlink/af_netlink.c                           |    12 +-
 net/openvswitch/actions.c                          |     9 +
 net/packet/af_packet.c                             |    12 +-
 net/rds/af_rds.c                                   |    31 +-
 net/rds/bind.c                                     |     4 +-
 net/rds/ib_cm.c                                    |     6 +-
 net/rds/ib_rdma.c                                  |     4 +-
 net/rds/ib_recv.c                                  |    13 +-
 net/rds/message.c                                  |    26 +
 net/rds/rdma.c                                     |    63 +-
 net/rds/rdma_transport.c                           |     7 +-
 net/rds/rds.h                                      |    18 +-
 net/rds/recv.c                                     |    17 +-
 net/rds/send.c                                     |    27 +-
 net/rds/tcp.c                                      |     9 +-
 net/rds/tcp_recv.c                                 |     4 +-
 net/rxrpc/sendmsg.c                                |    57 +-
 net/sched/act_api.c                                |    21 +-
 net/sched/act_ife.c                                |     4 +
 net/sched/cls_api.c                                |     9 +-
 net/sched/cls_flower.c                             |    72 +-
 net/sched/sch_etf.c                                |     1 +
 net/sched/sch_generic.c                            |    51 +-
 net/sched/sch_gred.c                               |    16 +-
 net/sched/sch_netem.c                              |     5 +-
 net/sched/sch_qfq.c                                |     3 +
 net/sched/sch_taprio.c                             |    11 +-
 net/sched/sch_teql.c                               |    14 +-
 net/sctp/associola.c                               |     4 +

224 lines not shown · raw message

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

#3 lore raw
Quoted 5 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.15.226 release. There are 2214 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:35 +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/v5.x/stable-review/patch-5.15.226-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-5.15.y
and the diffstat can be found below.

Same build failure as reported against 5.10.y

Signature · 1 line
Brett Sheffield (he/him)
#4 lore raw
In reply to Greg Kroah-Hartman

Hi!

Quoted 4 lines

This is the start of the stable review cycle for the 5.15.226 release. There are 2214 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 see build failures here, similar to ones already reported.

https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/pipelines/3084761653
https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/tree/linux-5.15.y

Best regards,
Pavel

#5 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 5.15.226 release. There are 2214 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:35 +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/v5.x/stable-review/patch-5.15.226-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-5.15.y
and the diffstat can be found below.

thanks,

greg k-h

perf fails to build with:

/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:358: 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:360: 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:361: 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:406: 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:408: 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:409: undefined reference to `evsel__put'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile.perf:670: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/perf] Error 1
make[3]: *** [Makefile.perf:238: 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

which is coming from fb1a8ab598b3 ("perf evsel: Validate branch stack before byte swapping") and 2bdbf51d3627 ("perf evsel: Validate RAW sample before byte swapping")

Signature · 1 line
Florian
author maintainer
#7 lore raw

PATCH 4/2214 ksmbd: wait for negotiation before receiving another PDU

In reply to Greg Kroah-Hartman

5.15-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/ksmbd/server.c | 5 +++++
 1 file changed, 5 insertions(+)
fs/ksmbd/server.c +5 -0
index c1b9a85f2c67e..275eeace4ba13 100644
@@ -295,6 +295,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;
 
 	work = ksmbd_alloc_work_struct();
@@ -319,6 +320,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
#16 lore raw

PATCH 13/2214 mm: move mmap_min_addr logic from callers into vm_unmapped_area()

In reply to Greg Kroah-Hartman

5.15-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.

[ Adapted to the rbtree based unmapped_area() and unmapped_area_topdown()
used before the maple tree conversion: clamp the lower search bound to mmap_min_addr there instead of in the maple tree search. ]

---
 arch/s390/mm/hugetlbpage.c |    2 +-
 arch/s390/mm/mmap.c        |    2 +-
 fs/hugetlbfs/inode.c       |    2 +-
 mm/mmap.c                  |   18 ++++++++++--------
 4 files changed, 13 insertions(+), 11 deletions(-)
arch/s390/mm/hugetlbpage.c +1 -1
@@ -290,7 +290,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
@@ -232,7 +232,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 +10 -8
@@ -1917,6 +1917,7 @@ static unsigned long unmapped_area(struc
 	struct mm_struct *mm = current->mm;
 	struct vm_area_struct *vma;
 	unsigned long length, low_limit, high_limit, gap_start, gap_end;
+	unsigned long min_addr = max(info->low_limit, mmap_min_addr);
 
 	/* Adjust search length to account for worst case alignment overhead */
 	length = info->length + info->align_mask;
@@ -1928,9 +1929,9 @@ static unsigned long unmapped_area(struc
 		return -ENOMEM;
 	high_limit = info->high_limit - length;
 
-	if (info->low_limit > high_limit)
+	if (min_addr > high_limit)
 		return -ENOMEM;
-	low_limit = info->low_limit + length;
+	low_limit = min_addr + length;
 
 	/* Check if rbtree root looks promising */
 	if (RB_EMPTY_ROOT(&mm->mm_rb))
@@ -1996,8 +1997,8 @@ check_highest:
 
 found:
 	/* We found a suitable gap. Clip it with the original low_limit. */
-	if (gap_start < info->low_limit)
-		gap_start = info->low_limit;
+	if (gap_start < min_addr)
+		gap_start = min_addr;
 
 	/* Adjust gap address to the desired alignment */
 	gap_start += (info->align_offset - gap_start) & info->align_mask;
@@ -2012,6 +2013,7 @@ static unsigned long unmapped_area_topdo
 	struct mm_struct *mm = current->mm;
 	struct vm_area_struct *vma;
 	unsigned long length, low_limit, high_limit, gap_start, gap_end;
+	unsigned long min_addr = max(info->low_limit, mmap_min_addr);
 
 	/* Adjust search length to account for worst case alignment overhead */
 	length = info->length + info->align_mask;
@@ -2027,9 +2029,9 @@ static unsigned long unmapped_area_topdo
 		return -ENOMEM;
 	high_limit = gap_end - length;
 
-	if (info->low_limit > high_limit)
+	if (min_addr > high_limit)
 		return -ENOMEM;
-	low_limit = info->low_limit + length;
+	low_limit = min_addr + length;
 
 	/* Check highest gap, which does not precede any rbtree node */
 	gap_start = mm->highest_vm_end;
@@ -2101,7 +2103,7 @@ found_highest:
 	gap_end -= info->length;
 	gap_end -= (gap_end - info->align_offset) & info->align_mask;
 
-	VM_BUG_ON(gap_end < info->low_limit);
+	VM_BUG_ON(gap_end < min_addr);
 	VM_BUG_ON(gap_end < gap_start);
 	return gap_end;
 }
@@ -2208,7 +2210,7 @@ arch_get_unmapped_area_topdown(struct fi
 
 	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
#17 lore raw

PATCH 14/2214 ALSA: line6: Clear prev_fbuf on capture buffer release

In reply to Greg Kroah-Hartman

5.15-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
#18 lore raw

PATCH 15/2214 net: gso: limit recursive IP-in-IP segmentation

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Zihan Xi <[email protected]>

commit 006c8b834aed8b02bd8fb9fb05e9e7ead37d1763 upstream.

IP-in-IP GSO can re-enter inet_gso_segment() or ipv6_gso_segment() for each nested IP header. encap_level tracks header bytes, not callback depth, so a deep chain can exhaust the kernel stack. Making inet_gso_segment() stackable introduced unbounded IPv4 nesting; IPIP GSO/TSO later made the path reachable. The IPv6 stackable path was introduced separately and uses the same guard.

Count IPv4 and IPv6 GSO handler entries in skb_gso_cb, initialized once per top-level GSO operation and preserved across GRE/UDP context changes. Use the existing IP_TUNNEL_RECURSION_LIMIT for both handlers. The first five entries pass, and the sixth returns -EINVAL before dispatching another GSO callback.

[ Ting-Han: this tree predates include/net/gso.h and net/core/gso.c, so
the skb_gso_cb change and gso_recursion_inc_test() go into include/linux/skbuff.h and the reset into __skb_gso_segment() in net/core/dev.c. IP_TUNNEL_RECURSION_LIMIT was added upstream by 6f1a9140ecda ("net: add xmit recursion limit to tunnel xmit functions"), which is not in this tree, so define it (same value, 5) in ip_tunnels.h ]

---
 include/linux/skbuff.h   |    8 ++++++++
 include/net/ip_tunnels.h |    3 +++
 net/core/dev.c           |    1 +
 net/ipv4/af_inet.c       |    3 +++
 net/ipv6/ip6_offload.c   |    4 ++++
 5 files changed, 19 insertions(+)
include/linux/skbuff.h +8 -0
@@ -4657,10 +4657,18 @@ struct skb_gso_cb {
 	int	encap_level;
 	__wsum	csum;
 	__u16	csum_start;
+	/* Number of IPv4/IPv6 GSO handler entries for this packet. */
+	u8	recursion_counter;
 };
 #define SKB_GSO_CB_OFFSET	32
 #define SKB_GSO_CB(skb) ((struct skb_gso_cb *)((skb)->cb + SKB_GSO_CB_OFFSET))
 
+static inline bool gso_recursion_inc_test(struct sk_buff *skb,
+					  unsigned int limit)
+{
+	return ++SKB_GSO_CB(skb)->recursion_counter > limit;
+}
+
 static inline int skb_tnl_header_len(const struct sk_buff *inner_skb)
 {
 	return (skb_mac_header(inner_skb) - inner_skb->head) -
include/net/ip_tunnels.h +3 -0
@@ -24,6 +24,9 @@
 #include <net/ip6_route.h>
 #endif
 
+/* Maximum nesting depth for recursive IP tunnel processing */
+#define IP_TUNNEL_RECURSION_LIMIT	5
+
 /* Keep error state on tunnel for 30 sec */
 #define IPTUNNEL_ERR_TIMEO	(30*HZ)
 
net/core/dev.c +1 -0
@@ -3475,6 +3475,7 @@ struct sk_buff *__skb_gso_segment(struct
 
 	SKB_GSO_CB(skb)->mac_offset = skb_headroom(skb);
 	SKB_GSO_CB(skb)->encap_level = 0;
+	SKB_GSO_CB(skb)->recursion_counter = 0;
 
 	skb_reset_mac_header(skb);
 	skb_reset_mac_len(skb);
net/ipv4/af_inet.c +3 -0
@@ -1358,6 +1358,9 @@ struct sk_buff *inet_gso_segment(struct
 	int id;
 
 	skb_reset_network_header(skb);
+	if (unlikely(gso_recursion_inc_test(skb,
+					   IP_TUNNEL_RECURSION_LIMIT)))
+		goto out;
 	nhoff = skb_network_header(skb) - skb_mac_header(skb);
 	if (unlikely(!pskb_may_pull(skb, sizeof(*iph))))
 		goto out;
net/ipv6/ip6_offload.c +4 -0
@@ -16,6 +16,7 @@
 #include <net/tcp.h>
 #include <net/udp.h>
 #include <net/gro.h>
+#include <net/ip_tunnels.h>
 
 #include "ip6_offload.h"
 
@@ -87,6 +88,9 @@ static struct sk_buff *ipv6_gso_segment(
 	bool gso_partial;
 
 	skb_reset_network_header(skb);
+	if (unlikely(gso_recursion_inc_test(skb,
+					   IP_TUNNEL_RECURSION_LIMIT)))
+		goto out;
 	nhoff = skb_network_header(skb) - skb_mac_header(skb);
 	if (unlikely(!pskb_may_pull(skb, sizeof(*ipv6h))))
 		goto out;
author maintainer
#19 lore raw

PATCH 16/2214 drm/amdgpu/vce: Prevent partial address patches

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Benjamin Cheng <[email protected]>

commit de2a02cc28d6d5d37db07d00a9a684c754a5fd74 upstream.

In the case that only one of lo/hi is valid, the patching could result in a bad address written to in FW.

[ Roman: In 5.10/5.15, amdgpu_vce_cs_reloc() does not take a struct amdgpu_ib *ib argument. The conversion was carried out by commit cdc7893fc93f ("drm/amdgpu: use job and ib structures directly in CS parsers"). Instead, the IB is obtained via p->job->ibs[ib_idx] ]

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +4 -0
@@ -642,11 +642,15 @@ static int amdgpu_vce_validate_bo(struct
 static int amdgpu_vce_cs_reloc(struct amdgpu_cs_parser *p, uint32_t ib_idx,
 			       int lo, int hi, unsigned size, uint32_t index)
 {
+	struct amdgpu_ib *ib = &p->job->ibs[ib_idx];
 	struct amdgpu_bo_va_mapping *mapping;
 	struct amdgpu_bo *bo;
 	uint64_t addr;
 	int r;
 
+	if (lo >= ib->length_dw || hi >= ib->length_dw)
+		return -EINVAL;
+
 	if (index == 0xffffffff)
 		index = 0;
 
author maintainer
#20 lore raw

PATCH 17/2214 drm/amdgpu/jpeg: set no_user_fence for JPEG v3.0 ring

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Yinjie Yao <[email protected]>

commit a2baf12eec41f246689e6a3f8619af1200031576 upstream.

JPEG rings do not support 64-bit user fence writes, reject CS submissions with user fences.

Fixes dfd57dbf44dd ("drm/amdgpu: add JPEG3.0 support for Sienna_Cichlid")
(cherry picked from commit 4d7d774f100efb5089c86a1fb8c5bf47c63fc9ef)
---
 drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c |    1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c +1 -0
@@ -554,6 +554,7 @@ static const struct amd_ip_funcs jpeg_v3
 static const struct amdgpu_ring_funcs jpeg_v3_0_dec_ring_vm_funcs = {
 	.type = AMDGPU_RING_TYPE_VCN_JPEG,
 	.align_mask = 0xf,
+	.no_user_fence = true,
 	.vmhub = AMDGPU_MMHUB_0,
 	.get_rptr = jpeg_v3_0_dec_ring_get_rptr,
 	.get_wptr = jpeg_v3_0_dec_ring_get_wptr,
author maintainer
#21 lore raw

PATCH 18/2214 drm/amdgpu/jpeg: set no_user_fence for JPEG v2.5 ring

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Yinjie Yao <[email protected]>

commit 79405e774ede411c6b47ed41c651e40b92de64a2 upstream.

JPEG rings do not support 64-bit user fence writes, reject CS submissions with user fences.

Fixes 14f43e8f88c5 ("drm/amdgpu: move JPEG2.5 out from VCN2.5")
(cherry picked from commit 3216a7f4e2642bda5fd14f57586e835ae9202587)
---
 drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c +2 -0
@@ -586,6 +586,7 @@ static const struct amd_ip_funcs jpeg_v2
 static const struct amdgpu_ring_funcs jpeg_v2_5_dec_ring_vm_funcs = {
 	.type = AMDGPU_RING_TYPE_VCN_JPEG,
 	.align_mask = 0xf,
+	.no_user_fence = true,
 	.vmhub = AMDGPU_MMHUB_1,
 	.get_rptr = jpeg_v2_5_dec_ring_get_rptr,
 	.get_wptr = jpeg_v2_5_dec_ring_get_wptr,
@@ -616,6 +617,7 @@ static const struct amdgpu_ring_funcs jp
 static const struct amdgpu_ring_funcs jpeg_v2_6_dec_ring_vm_funcs = {
 	.type = AMDGPU_RING_TYPE_VCN_JPEG,
 	.align_mask = 0xf,
+	.no_user_fence = true,
 	.vmhub = AMDGPU_MMHUB_0,
 	.get_rptr = jpeg_v2_5_dec_ring_get_rptr,
 	.get_wptr = jpeg_v2_5_dec_ring_get_wptr,
author maintainer
#22 lore raw

PATCH 19/2214 drm/amdgpu/jpeg: set no_user_fence for JPEG v2.0 ring

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Yinjie Yao <[email protected]>

commit e5f612dc91650561fe2b5b76dd6d2898ec9ad480 upstream.

JPEG rings do not support 64-bit user fence writes, reject CS submissions with user fences.

Fixes 6ac27241106b ("drm/amdgpu: add JPEG v2.0 function supports")
(cherry picked from commit 96179da0c6b059eb31706a0abe8dd6381c533143)
---
 drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c |    1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c +1 -0
@@ -778,6 +778,7 @@ static const struct amd_ip_funcs jpeg_v2
 static const struct amdgpu_ring_funcs jpeg_v2_0_dec_ring_vm_funcs = {
 	.type = AMDGPU_RING_TYPE_VCN_JPEG,
 	.align_mask = 0xf,
+	.no_user_fence = true,
 	.vmhub = AMDGPU_MMHUB_0,
 	.get_rptr = jpeg_v2_0_dec_ring_get_rptr,
 	.get_wptr = jpeg_v2_0_dec_ring_get_wptr,
author maintainer
#23 lore raw

PATCH 20/2214 drm/amd/display: Fix out-of-bounds read in dp_get_eq_aux_rd_interval()

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Harry Wentland <[email protected]>

commit e8b4d37eba05141ee01794fc6b7f2da808cee83b upstream.

[Why & How]
The aux_rd_interval array in struct dc_lttpr_caps is declared with MAX_REPEATER_CNT - 1 (7) elements, indexed 0..6. However, the offset parameter passed to dp_get_eq_aux_rd_interval() can be as large as MAX_REPEATER_CNT (8) when a sink reports 8 LTTPR repeaters via DPCD. This leads to an out-of-bounds read of aux_rd_interval[7] when offset is 8.

Fix this by growing aux_rd_interval to MAX_REPEATER_CNT elements to accommodate the full range of valid repeater counts defined by the DP spec.

Assisted-by GitHub Copilot:Claude claude-4-opus
(cherry picked from commit a55a458a8df37a65ffda5cf721d554a8f74f6b04)
---
 drivers/gpu/drm/amd/display/dc/dc_types.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dc_types.h +1 -1
@@ -395,7 +395,7 @@ struct dc_lttpr_caps {
 	uint8_t max_link_rate;
 	uint8_t phy_repeater_cnt;
 	uint8_t max_ext_timeout;
-	uint8_t aux_rd_interval[MAX_REPEATER_CNT - 1];
+	uint8_t aux_rd_interval[MAX_REPEATER_CNT];
 };
 
 struct dc_dongle_caps {
author maintainer
#24 lore raw

PATCH 21/2214 bpf, arm64: Fix off-by-one in check_imm signed range check

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Daniel Borkmann <[email protected]>

commit 1dd8be4ec722ce54e4cace59f3a4ba658111b3ec upstream.

check_imm(bits, imm) is used in the arm64 BPF JIT to verify that a branch displacement (in arm64 instruction units) fits into the signed N-bit immediate field of a B, B.cond or CBZ/CBNZ encoding before it is handed to the encoder. The macro currently tests for (imm > 0 && imm >> bits) || (imm < 0 && ~imm >> bits) which admits values in [-2^N, 2^N) — effectively a signed (N+1)-bit range. A signed N-bit field only holds [-2^(N-1), 2^(N-1)), so the check admits one extra bit of range on each side.

In particular, for check_imm19(), values in [2^18, 2^19) slip past the check but do not fit into the 19-bit signed imm19 field of B.cond. aarch64_insn_encode_immediate() then masks the raw value into the 19-bit field, setting bit 18 (the sign bit) and flipping a forward branch into a backward one. Same class of issue exists for check_imm26() and the B/BL encoding. Shift by (bits - 1) instead of bits so the actual signed N-bit range is enforced.

---
 arch/arm64/net/bpf_jit_comp.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/net/bpf_jit_comp.c +2 -2
@@ -493,8 +493,8 @@ static int build_insn(const struct bpf_i
 	int ret;
 
 #define check_imm(bits, imm) do {				\
-	if ((((imm) > 0) && ((imm) >> (bits))) ||		\
-	    (((imm) < 0) && (~(imm) >> (bits)))) {		\
+	if ((((imm) > 0) && ((imm) >> ((bits) - 1))) ||		\
+	    (((imm) < 0) && (~(imm) >> ((bits) - 1)))) {	\
 		pr_info("[%2d] imm=%d(0x%x) out of range\n",	\
 			i, imm, imm);				\
 		return -EINVAL;					\
author maintainer
#25 lore raw

PATCH 22/2214 drm/amdgpu: Use vmemdup_array_user in amdgpu_bo_create_list_entry_array

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Tvrtko Ursulin <[email protected]>

commit c4ac100e9ae252b09986766ad23b1f83ca3a369d upstream.

Replace kvmalloc_array() + copy_from_user() with vmemdup_array_user() on the fast path.

This shrinks the source code and improves separation between the kernel and userspace slabs.

Stable-dep-of: c833d6c7199c ("drm/amdgpu: Limit BO list entry count to prevent resource exhaustion")

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c |   43 +++++++++++-----------------
 1 file changed, 18 insertions(+), 25 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +18 -25
@@ -224,43 +224,36 @@ void amdgpu_bo_list_put(struct amdgpu_bo
 int amdgpu_bo_create_list_entry_array(struct drm_amdgpu_bo_list_in *in,
 				      struct drm_amdgpu_bo_list_entry **info_param)
 {
-	const void __user *uptr = u64_to_user_ptr(in->bo_info_ptr);
 	const uint32_t info_size = sizeof(struct drm_amdgpu_bo_list_entry);
+	const void __user *uptr = u64_to_user_ptr(in->bo_info_ptr);
+	const uint32_t bo_info_size = in->bo_info_size;
+	const uint32_t bo_number = in->bo_number;
 	struct drm_amdgpu_bo_list_entry *info;
-	int r;
-
-	info = kvmalloc_array(in->bo_number, info_size, GFP_KERNEL);
-	if (!info)
-		return -ENOMEM;
 
 	/* copy the handle array from userspace to a kernel buffer */
-	r = -EFAULT;
-	if (likely(info_size == in->bo_info_size)) {
-		unsigned long bytes = in->bo_number *
-			in->bo_info_size;
-
-		if (copy_from_user(info, uptr, bytes))
-			goto error_free;
-
+	if (likely(info_size == bo_info_size)) {
+		info = vmemdup_array_user(uptr, bo_number, info_size);
+		if (IS_ERR(info))
+			return PTR_ERR(info);
 	} else {
-		unsigned long bytes = min(in->bo_info_size, info_size);
+		const uint32_t bytes = min(bo_info_size, info_size);
 		unsigned i;
 
-		memset(info, 0, in->bo_number * info_size);
-		for (i = 0; i < in->bo_number; ++i) {
-			if (copy_from_user(&info[i], uptr, bytes))
-				goto error_free;
-
-			uptr += in->bo_info_size;
+		info = kvmalloc_array(bo_number, info_size, GFP_KERNEL);
+		if (!info)
+			return -ENOMEM;
+
+		memset(info, 0, bo_number * info_size);
+		for (i = 0; i < bo_number; ++i, uptr += bo_info_size) {
+			if (copy_from_user(&info[i], uptr, bytes)) {
+				kvfree(info);
+				return -EFAULT;
+			}
 		}
 	}
 
 	*info_param = info;
 	return 0;
-
-error_free:
-	kvfree(info);
-	return r;
 }
 
 int amdgpu_bo_list_ioctl(struct drm_device *dev, void *data,
author maintainer
#8 lore raw

PATCH 5/2214 mm: call the security_mmap_file() LSM hook in remap_file_pages()

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Shu Han <[email protected]>

commit ea7e2d5e49c05e5db1922387b09ca74aa40f46e2 upstream.

The remap_file_pages syscall handler calls do_mmap() directly, which doesn't contain the LSM security check. And if the process has called personality(READ_IMPLIES_EXEC) before and remap_file_pages() is called for RW pages, this will actually result in remapping the pages to RWX, bypassing a W^X policy enforced by SELinux.

So we should check prot by security_mmap_file LSM hook in the remap_file_pages syscall handler before do_mmap() is called. Otherwise, it potentially permits an attacker to bypass a W^X policy enforced by SELinux.

The bypass is similar to CVE-2016-10044, which bypass the same thing via AIO and can be found in [1].

The PoC:

$ cat > test.c
int main(void) {
	size_t pagesz = sysconf(_SC_PAGE_SIZE);
	int mfd = syscall(SYS_memfd_create, "test", 0);
	const char *buf = mmap(NULL, 4 * pagesz, PROT_READ | PROT_WRITE,
		MAP_SHARED, mfd, 0);
	unsigned int old = syscall(SYS_personality, 0xffffffff);
	syscall(SYS_personality, READ_IMPLIES_EXEC | old);
	syscall(SYS_remap_file_pages, buf, pagesz, 0, 2, 0);
	syscall(SYS_personality, old);
	// show the RWX page exists even if W^X policy is enforced
	int fd = open("/proc/self/maps", O_RDONLY);
	unsigned char buf2[1024];
	while (1) {
		int ret = read(fd, buf2, 1024);
		if (ret <= 0) break;
		write(1, buf2, ret);
	}
	close(fd);
}
$ gcc test.c -o test
$ ./test | grep rwx
7f1836c34000-7f1836c35000 rwxs 00002000 00:01 2050 /memfd:test (deleted)
[PM: subject line tweaks]
(cherry picked from commit ea7e2d5e49c05e5db1922387b09ca74aa40f46e2)
---
 mm/mmap.c | 4 ++++
 1 file changed, 4 insertions(+)
mm/mmap.c +4 -0
index 53fa4f5167dd0..4e3c2f796fdd1 100644
@@ -3055,8 +3055,12 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
 		flags |= MAP_LOCKED;
 
 	file = get_file(vma->vm_file);
+	ret = security_mmap_file(vma->vm_file, prot, flags);
+	if (ret)
+		goto out_fput;
 	ret = do_mmap(vma->vm_file, start, size,
 			prot, flags, pgoff, &populate, NULL);
+out_fput:
 	fput(file);
 out:
 	mmap_write_unlock(mm);
Signature · 1 line
2.53.0
author maintainer
#26 lore raw

PATCH 23/2214 drm/amdgpu: Limit BO list entry count to prevent resource exhaustion

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Jesse.Zhang <[email protected]>

commit 6270b1a5dab94665d7adce3dc78bc9066ed28bdd upstream.

Userspace can pass an arbitrary number of BO list entries via the bo_number field. Although the previous multiplication overflow check prevents out-of-bounds allocation, a large number of entries could still cause excessive memory allocation (up to potentially gigabytes) and unnecessarily long list processing times.

Introduce a hard limit of 128k entries per BO list, which is more than sufficient for any realistic use case (e.g., a single list containing all buffers in a large scene). This prevents memory exhaustion attacks and ensures predictable performance.

Return -EINVAL if the requested entry count exceeds the limit

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +4 -0
@@ -35,6 +35,7 @@
 
 #define AMDGPU_BO_LIST_MAX_PRIORITY	32u
 #define AMDGPU_BO_LIST_NUM_BUCKETS	(AMDGPU_BO_LIST_MAX_PRIORITY + 1)
+#define AMDGPU_BO_LIST_MAX_ENTRIES	(128 * 1024)
 
 static void amdgpu_bo_list_free_rcu(struct rcu_head *rcu)
 {
@@ -230,6 +231,9 @@ int amdgpu_bo_create_list_entry_array(st
 	const uint32_t bo_number = in->bo_number;
 	struct drm_amdgpu_bo_list_entry *info;
 
+	if (bo_number > AMDGPU_BO_LIST_MAX_ENTRIES)
+		return -EINVAL;
+
 	/* copy the handle array from userspace to a kernel buffer */
 	if (likely(info_size == bo_info_size)) {
 		info = vmemdup_array_user(uptr, bo_number, info_size);
author maintainer
#27 lore raw

PATCH 24/2214 dmaengine: dw-edma-pcie: Reject devices without driver data

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Koichiro Den <[email protected]>

commit 11d7cfe0c119691b2dafbb699bbca90258c678aa upstream.

dw_edma_pcie_probe() treats the PCI device ID driver_data as the template for the controller layout and copies it unconditionally. A device bound dynamically via sysfs can match the driver without that data, which leads to a NULL pointer dereference.

Reject such matches before enabling the device.

---
 drivers/dma/dw-edma/dw-edma-pcie.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/dma/dw-edma/dw-edma-pcie.c +3 -0
@@ -151,6 +151,9 @@ static int dw_edma_pcie_probe(struct pci
 	int err, nr_irqs;
 	int i, mask;
 
+	if (!pdata)
+		return -ENODEV;
+
 	/* Enable PCI device */
 	err = pcim_enable_device(pdev);
 	if (err) {
author maintainer
#28 lore raw

PATCH 25/2214 drm/rockchip: dw_hdmi: Use resume_early pm ops for system suspend

In reply to Greg Kroah-Hartman

5.15-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 9e1c34af53909..a95ac68114f9d 100644
@@ -592,17 +592,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
#29 lore raw

PATCH 26/2214 drm/amd/pm: Validate OD DPM triples before mutating tables

In reply to Greg Kroah-Hartman

5.15-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 f1a7d6296bdfa..647a7cc9086ea 100644
@@ -5602,23 +5602,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 a801ca47f5be6..7d0cf2a6d2d54 100644
@@ -5466,11 +5466,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);
@@ -5488,21 +5486,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
#30 lore raw

PATCH 27/2214 drm/amdgpu: Gate debugfs MMIO access on kernel lockdown

In reply to Greg Kroah-Hartman

5.15-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 f4f5dc704c701..ea6a246479b34 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"
@@ -1107,6 +1108,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
#31 lore raw

PATCH 28/2214 drm/radeon: avoid double free in r600 DPM cleanup

In reply to Greg Kroah-Hartman

5.15-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 35b77c9447010..ea478a3ddfbac 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
#32 lore raw

PATCH 29/2214 w1: ds2482: add OF device match table

In reply to Greg Kroah-Hartman

5.15-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 50451ba345efb..e4cd059a67f12 100644
@@ -554,9 +554,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
#33 lore raw

PATCH 30/2214 media: cec: stm32: return an error when log-address wait times out

In reply to Greg Kroah-Hartman

5.15-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 4cff10c744457..8f045d3e9eb48 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
#34 lore raw

PATCH 31/2214 irqdomain: Plug leak in irq_domain_alloc_irqs_locked() error path

In reply to Greg Kroah-Hartman

5.15-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 c6152a6942e6e..90e2ec3da82ca 100644
@@ -1544,7 +1544,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++)
@@ -1552,6 +1552,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
#35 lore raw

PATCH 32/2214 clk: zynq: handle kasprintf() failure in periph_clk registration

In reply to Greg Kroah-Hartman

5.15-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 c615664505a55..451126c24eda3 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
#9 lore raw

PATCH 6/2214 mm: split critical region in remap_file_pages() and invoke LSMs in between

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Kirill A. Shutemov <[email protected]>

commit 58a039e679fe72bd0efa8b2abe669a7914bb4429 upstream.

Commit ea7e2d5e49c0 ("mm: call the security_mmap_file() LSM hook in remap_file_pages()") fixed a security issue, it added an LSM check when trying to remap file pages, so that LSMs have the opportunity to evaluate such action like for other memory operations such as mmap() and mprotect().

However, that commit called security_mmap_file() inside the mmap_lock lock, while the other calls do it before taking the lock, after commit 8b3ec6814c83 ("take security_mmap_file() outside of ->mmap_sem").

This caused lock inversion issue with IMA which was taking the mmap_lock and i_mutex lock in the opposite way when the remap_file_pages() system call was called.

Solve the issue by splitting the critical region in remap_file_pages() in two regions: the first takes a read lock of mmap_lock, retrieves the VMA and the file descriptor associated, and calculates the 'prot' and 'flags' variables; the second takes a write lock on mmap_lock, checks that the VMA flags and the VMA file descriptor are the same as the ones obtained in the first critical region (otherwise the system call fails), and calls do_mmap().

In between, after releasing the read lock and before taking the write lock, call security_mmap_file(), and solve the lock inversion issue.

Fixes ea7e2d5e49c0 ("mm: call the security_mmap_file() LSM hook in remap_file_pages()")
Reported-by [email protected]
Cc Jarkko Sakkinen <[email protected]>
Cc Dmitry Kasatkin <[email protected]>
Cc Eric Snowberg <[email protected]>
Cc James Morris <[email protected]>
Cc Mimi Zohar <[email protected]>
Cc "Serge E. Hallyn" <[email protected]>
Cc Shu Han <[email protected]>
Cc Vlastimil Babka <[email protected]>
(cherry picked from commit 58a039e679fe72bd0efa8b2abe669a7914bb4429)
---
 mm/mmap.c | 69 +++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 52 insertions(+), 17 deletions(-)
mm/mmap.c +52 -17
index 4e3c2f796fdd1..226b513b688c2 100644
@@ -2999,6 +2999,7 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
 	unsigned long populate = 0;
 	unsigned long ret = -EINVAL;
 	struct file *file;
+	vm_flags_t vm_flags;
 
 	pr_warn_once("%s (%d) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.rst.\n",
 		     current->comm, current->pid);
@@ -3015,12 +3016,60 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
 	if (pgoff + (size >> PAGE_SHIFT) < pgoff)
 		return ret;
 
-	if (mmap_write_lock_killable(mm))
+	if (mmap_read_lock_killable(mm))
+		return -EINTR;
+
+	/*
+	 * Look up VMA under read lock first so we can perform the security
+	 * without holding locks (which can be problematic). We reacquire a
+	 * write lock later and check nothing changed underneath us.
+	 */
+	vma = vma_lookup(mm, start);
+
+	if (!vma || !(vma->vm_flags & VM_SHARED)) {
+		mmap_read_unlock(mm);
+		return -EINVAL;
+	}
+
+	prot |= vma->vm_flags & VM_READ ? PROT_READ : 0;
+	prot |= vma->vm_flags & VM_WRITE ? PROT_WRITE : 0;
+	prot |= vma->vm_flags & VM_EXEC ? PROT_EXEC : 0;
+
+	flags &= MAP_NONBLOCK;
+	flags |= MAP_SHARED | MAP_FIXED | MAP_POPULATE;
+	if (vma->vm_flags & VM_LOCKED)
+		flags |= MAP_LOCKED;
+
+	/* Save vm_flags used to calculate prot and flags, and recheck later. */
+	vm_flags = vma->vm_flags;
+	file = get_file(vma->vm_file);
+
+	mmap_read_unlock(mm);
+
+	/* Call outside mmap_lock to be consistent with other callers. */
+	ret = security_mmap_file(file, prot, flags);
+	if (ret) {
+		fput(file);
+		return ret;
+	}
+
+	ret = -EINVAL;
+
+	/* OK security check passed, take write lock + let it rip. */
+	if (mmap_write_lock_killable(mm)) {
+		fput(file);
 		return -EINTR;
+	}
 
 	vma = vma_lookup(mm, start);
 
-	if (!vma || !(vma->vm_flags & VM_SHARED))
+	if (!vma)
+		goto out;
+
+	/* Make sure things didn't change under us. */
+	if (vma->vm_flags != vm_flags)
+		goto out;
+	if (vma->vm_file != file)
 		goto out;
 
 	if (start + size > vma->vm_end) {
@@ -3045,25 +3094,11 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
 			goto out;
 	}
 
-	prot |= vma->vm_flags & VM_READ ? PROT_READ : 0;
-	prot |= vma->vm_flags & VM_WRITE ? PROT_WRITE : 0;
-	prot |= vma->vm_flags & VM_EXEC ? PROT_EXEC : 0;
-
-	flags &= MAP_NONBLOCK;
-	flags |= MAP_SHARED | MAP_FIXED | MAP_POPULATE;
-	if (vma->vm_flags & VM_LOCKED)
-		flags |= MAP_LOCKED;
-
-	file = get_file(vma->vm_file);
-	ret = security_mmap_file(vma->vm_file, prot, flags);
-	if (ret)
-		goto out_fput;
 	ret = do_mmap(vma->vm_file, start, size,
 			prot, flags, pgoff, &populate, NULL);
-out_fput:
-	fput(file);
 out:
 	mmap_write_unlock(mm);
+	fput(file);
 	if (populate)
 		mm_populate(ret, populate);
 	if (!IS_ERR_VALUE(ret))
Signature · 1 line
2.53.0
author maintainer
#36 lore raw

PATCH 33/2214 ASoC: tlv320aic26: remove keyclick sysfs file

In reply to Greg Kroah-Hartman

5.15-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 077415a572255..a863cd54b9528 100644
@@ -321,8 +321,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
#37 lore raw

PATCH 34/2214 ASoC: hdac_hdmi: Fix resource cleanup on probe failure

In reply to Greg Kroah-Hartman

5.15-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 6a17926fa8692..7bfb3ee325212 100644
@@ -2163,8 +2163,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;
@@ -2173,8 +2175,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 =
@@ -2199,6 +2203,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
#38 lore raw

PATCH 35/2214 iio: accel: fxls8962af: clamp the device-reported FIFO sample count

In reply to Greg Kroah-Hartman

5.15-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 deff8ceb42fa1..8ea12a051a2be 100644
@@ -709,6 +709,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
#39 lore raw

PATCH 36/2214 fat: reject name longer than NAME_MAX in msdos_format_name()

In reply to Greg Kroah-Hartman

5.15-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
#40 lore raw

PATCH 37/2214 perf/x86/intel/uncore: Fix PCI PMU cleanup on setup failure

In reply to Greg Kroah-Hartman

5.15-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 25bf8dcaa9a28..5719f1bc70574 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
#10 lore raw

PATCH 7/2214 exec: Cleanup POSIX timers right after de_thread()

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Hyunwoo Kim <[email protected]>

commit acb03d3881818581052924a9bbbe92b8741ed448 upstream.

A per-thread CPU timer holds a reference to the PID of the thread it is attached to and, while it is armed, its node is queued in that thread's posix_cputimers. The task is looked up by that PID.

When a non-leader thread exec()s, de_thread() changes which task owns that PID. pid_task(timer->it.cpu.pid, PIDTYPE_PID) then returns NULL, but the node is still queued on tsk, which is alive. timer_lock_sighand() takes a failed lookup to mean that the node is already dequeued, so it has nothing to undo.

begin_new_exec() calls posix_cpu_timers_exit(me) right after exec_task_namespaces() and that removes the leftover node, so the state normally stays invisible. But bprm->point_of_no_return is set before de_thread(), so if unshare_files(), set_mm_exe_file(), exec_mmap() or exec_task_namespaces() fails, the task dies before it gets there. exit_itimers() then frees the k_itimer while its node is still queued, and reaping tsk later erases that freed node from the rbtree.

In short:

the non-leader thread B the parent

timer_create(CLOCK_THREAD_CPUTIME_ID)
timer_settime()
arm_timer() // the node is queued on B
execve()
de_thread(B)
exchange_tids(B, leader) // B's PID now belongs to the leader release_task(leader)
__exit_signal(leader)
posix_cpu_timers_exit(leader) // cleans leader's queue, not B's __unhash_process(leader) // that PID has no task anymore
exec_mmap()
mmap_read_lock_killable(old_mm)
kill(B, SIGKILL)
// -EINTR
get_signal()
do_exit()
exit_itimers()
posix_timer_delete()
posix_cpu_timer_del()
posix_timer_unhash_and_free() // freed while still queued
wait4()
release_task(B)
posix_cpu_timers_exit(B)
cleanup_timerqueue()
timerqueue_del() // use-after-free

Move the POSIX timer cleanup right after de_thread() before any of the later failure conditions brings the task into do_exit().

[ tglx: Move the cleanup right after de_thread() ]

---
 fs/exec.c | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)
fs/exec.c +20 -8
index 6797c8cf88f4f..5efe7ae6f9685 100644
@@ -1234,6 +1234,17 @@ void __set_task_comm(struct task_struct *tsk, const char *buf, bool exec)
 	perf_event_comm(tsk, exec);
 }
 
+static void posixtimer_exec(struct task_struct *me)
+{
+#ifdef CONFIG_POSIX_TIMERS
+	spin_lock_irq(&me->sighand->siglock);
+	posix_cpu_timers_exit(me);
+	spin_unlock_irq(&me->sighand->siglock);
+	exit_itimers(me);
+	flush_itimer_signals();
+#endif
+}
+
 /*
  * Calling this is the point of no return. None of the failures will be
  * seen by userspace since either the process is already taking a fatal
@@ -1262,6 +1273,15 @@ int begin_new_exec(struct linux_binprm * bprm)
 	if (retval)
 		goto out;
 
+	/*
+	 * This must be done here to ensure that POSIX CPU timers which were
+	 * armed on the current task are dequeued from me::posix_cputimers.
+	 * Otherwise in case of a TID switch the deletion of the related POSIX
+	 * timer would not remove an enqueued timer because the TID lookup
+	 * of the old TID fails.
+	 */
+	posixtimer_exec(me);
+
 	/*
 	 * Cancel any io_uring activity across execve
 	 */
@@ -1310,14 +1330,6 @@ int begin_new_exec(struct linux_binprm * bprm)
 
 	bprm->mm = NULL;
 
-#ifdef CONFIG_POSIX_TIMERS
-	spin_lock_irq(&me->sighand->siglock);
-	posix_cpu_timers_exit(me);
-	spin_unlock_irq(&me->sighand->siglock);
-	exit_itimers(me);
-	flush_itimer_signals();
-#endif
-
 	/*
 	 * Make the signal table private.
 	 */
Signature · 1 line
2.53.0
author maintainer
#11 lore raw

PATCH 8/2214 coredump: hold RCU while releasing parked threads

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Christian Brauner <[email protected]>

[ Upstream commit 61d58591aa0188bf2463e263962256316ff8b576 ]

coredump_finish() releases the parked threads by clearing ->task in their core_thread entry and calling wake_up_process() on each of them. It does that without holding a reference on the task and without being inside rcu.

But calling wake_up_process(task) without rcu here isn't safe. A parked thread doesn't need that wakeup to leave. A spurious wakeup or a preemption after the store is enough for the task to go away.

So if the coredump client is preempted between the store and wake_up_process() the thread can exit and be freed in the meantime and try_to_wake_up() takes pi_lock in freed memory.

Hold rcu across the loop.

Fixes a94e2d408eae ("coredump: kill mm->core_done")
[ sashal: Replaced guard(rcu)() with explicit rcu_read_lock() and rcu_read_unlock() calls. ]
---
 fs/coredump.c | 4 ++++
 1 file changed, 4 insertions(+)
fs/coredump.c +4 -0
index 5e5c1d72d63bc..9e97756be4381 100644
@@ -528,6 +528,8 @@ static void coredump_finish(struct mm_struct *mm, bool core_dumped)
 	spin_unlock_irq(&current->sighand->siglock);
 
 	next = mm->core_state->dumper.next;
+	/* A released thread may exit and be freed before it is woken. */
+	rcu_read_lock();
 	while ((curr = next) != NULL) {
 		next = curr->next;
 		task = curr->task;
@@ -536,9 +538,11 @@ static void coredump_finish(struct mm_struct *mm, bool core_dumped)
 		 * ->task == NULL before we read ->next.
 		 */
 		smp_mb();
+		/* Any wakeup now lets the thread exit, rcu keeps it alive. */
 		curr->task = NULL;
 		wake_up_process(task);
 	}
+	rcu_read_unlock();
 
 	mm->core_state = NULL;
 }
Signature · 1 line
2.53.0
author maintainer
#12 lore raw

PATCH 9/2214 asymmetric_keys: reject trust keys without IDs

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Weiming Shi <[email protected]>

[ Upstream commit 9695df3b1db4ac4534274d38ee16e3b9b0bf910e ]

The PKCS#8 parser deliberately leaves the asym_key_ids payload slot empty. key_or_keyring_common() unconditionally dereferences that slot when a PKCS#8 key is supplied to a key_or_keyring restriction. Both the plain and :chain forms reach this branch, allowing an unprivileged caller to trigger a NULL pointer dereference through KEYCTL_RESTRICT_KEYRING followed by add_key().

 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000
 KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
 RIP: 0010:key_or_keyring_common (crypto/asymmetric_keys/restrict.c:205 crypto/asymmetric_keys/restrict.c:279)
 Call Trace:
  <TASK>
  __key_create_or_update (security/keys/key.c:884)
  key_create_or_update (security/keys/key.c:1021)
  __do_sys_add_key (security/keys/keyctl.c:134)
  do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83)
  entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130)
  </TASK>
 Kernel panic - not syncing: Fatal exception

Reject an asymmetric restriction key without key IDs. A PKCS#8 private key cannot identify the signer of a candidate certificate and is not a valid trust anchor.

Fixes 3c58b2362ba8 ("KEYS: Implement PKCS#8 RSA Private Key parser [ver #2]")
Assisted-by Claude:claude-opus-4-8
[ sashal: Reused the existing signer_ids structure pointer for the NULL check instead of introducing a separate kids variable. ]
---
 crypto/asymmetric_keys/restrict.c | 2 ++
 1 file changed, 2 insertions(+)
crypto/asymmetric_keys/restrict.c +2 -0
index 84cefe3b35856..d95002812bb84 100644
@@ -154,6 +154,8 @@ static int key_or_keyring_common(struct key *dest_keyring,
 			const struct asymmetric_key_ids *signer_ids;
 
 			signer_ids = asymmetric_key_ids(trusted);
+			if (!signer_ids)
+				return -ENOKEY;
 
 			/*
 			 * The auth_ids come from the candidate key (the
Signature · 1 line
2.53.0
author maintainer
#13 lore raw

PATCH 10/2214 io_uring/poll: avoid retry wakeup loss when dropping ownership

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Juanlu Herrero <[email protected]>

[ Upstream commit 937d38dcacd675dc0572d6c9b6743960df3128ed ]

If a wakeup sets IO_POLL_RETRY_FLAG between the owning task consuming the existing instance of IO_POLL_RETRY_FLAG and the loop check of io_poll_check_events(), then we stall on processing the request until an unrelated wakeup comes along.

Using atomic_cmpxchg instead of atomic_sub_return to guarantee both the count v and poll_refs are 0 and no wake-ups are missed.

Fixes a26a35e9019f ("io_uring: make poll refs more robust")
Assisted-by LLM
[ sashal: Relocated the change to io_poll_check_events() in the monolithic io_uring implementation. ]
---
 io_uring/io_uring.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
io_uring/io_uring.c +2 -2
index 8d5791d8f4031..a87b24c77c0ee 100644
@@ -5690,8 +5690,8 @@ static int io_poll_check_events(struct io_kiocb *req)
 		 * Release all references, retry if someone tried to restart
 		 * task_work while we were executing it.
 		 */
-	} while (atomic_sub_return(v & IO_POLL_REF_MASK, &req->poll_refs) &
-					IO_POLL_REF_MASK);
+		v &= IO_POLL_REF_MASK;
+	} while (atomic_cmpxchg(&req->poll_refs, v, 0) != v);
 
 	return 1;
 }
Signature · 1 line
2.53.0
author maintainer
#14 lore raw

PATCH 11/2214 lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state

In reply to Greg Kroah-Hartman

5.15-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
#15 lore raw

PATCH 12/2214 usb: typec: tcpm: bound altmode_desc[] per iteration in svdm_consume_modes()

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Greg Kroah-Hartman <[email protected]>

commit 3389c149c68c3fea61910ad5d34f7bf3bff44e32 upstream.

svdm_consume_modes() checks pmdata->altmodes against the array size once before the loop over the count, but forgot to check the bound at every point in the loop.

In the well-behaved SVDM discovery flow this is harmless because each of at most SVID_DISCOVERY_MAX SVIDs contributes at most MODE_DISCOVERY_MAX modes, exactly filling altmode_desc[ALTMODE_DISCOVERY_MAX]. But the CMDT_RSP_ACK handler in tcpm_pd_svdm() does not correlate an incoming ACK with any request the port actually sent. Once port->partner is set, an unsolicited Discover Modes ACK is consumed unconditionally. A broken or malicious port partner can therefore drive altmodes to ALTMODE_DISCOVERY_MAX - 1 via the normal flow, and then send one extra Discover Modes ACK with seven VDOs. Because the pre-loop check passes, the loop could then writes up to five entries past altmode_desc[]. For mode_data_prime the next field in struct tcpm_port is the partner_altmode[] pointer array, which then receives partner-chosen SVID/VDO bytes.

Move the bound check inside the loop so the array can never be indexed past ALTMODE_DISCOVERY_MAX regardless of how many VDOs the partner supplies or how the function was reached.

[Denis Arefev: adapted for 5.10/6.1: tcpm has no SOP' support here, svdm_consume_modes() takes no rx_sop_type argument and has a single pre-loop bound check instead of the two in the SOP/SOP' switch; drop that one check and add the per-iteration bound check]

---
 drivers/usb/typec/tcpm/tcpm.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/usb/typec/tcpm/tcpm.c +4 -5
@@ -1536,17 +1536,16 @@ static void svdm_consume_modes(struct tc
 	struct typec_altmode_desc *paltmode;
 	int i;
 
-	if (pmdata->altmodes >= ARRAY_SIZE(port->partner_altmode)) {
-		/* Already logged in svdm_consume_svids() */
-		return;
-	}
-
 	if (pmdata->svid_index < 0 || pmdata->svid_index >= pmdata->nsvids) {
 		tcpm_log(port, "Invalid SVID index %d", pmdata->svid_index);
 		return;
 	}
 
 	for (i = 1; i < cnt; i++) {
+		if (pmdata->altmodes >= ALTMODE_DISCOVERY_MAX) {
+			/* Already logged in svdm_consume_svids() */
+			return;
+		}
 		paltmode = &pmdata->altmode_desc[pmdata->altmodes];
 		memset(paltmode, 0, sizeof(*paltmode));
 
author maintainer
#6 lore raw

PATCH 3/2214 net: skbuff: propagate shared-frag marker in skb_zerocopy()

In reply to Greg Kroah-Hartman

5.15-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
@@ -3241,6 +3241,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
#42 lore raw

PATCH 39/2214 drm/amdgpu: Add checks to vbios fetch through ATRM

In reply to Greg Kroah-Hartman

5.15-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 7d29d7c87b2cd..05298fabeeef8 100644
@@ -270,8 +270,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
#51 lore raw

PATCH 48/2214 net: usb: rtl8150: handle link status read failures

In reply to Greg Kroah-Hartman

5.15-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 4c7216b4c8ac2..7c2e6ae31d509 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 49/2214 netfilter: ebtables: bound num_counters like nentries in do_replace()

In reply to Greg Kroah-Hartman

5.15-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 6ac4ca32fdbfe..f585b516bca79 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;
@@ -1125,10 +1127,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;
@@ -2264,10 +2265,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 50/2214 dmaengine: pl330: remove debugfs file on teardown

In reply to Greg Kroah-Hartman

5.15-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 ec8a1565630b6..5ccf66842dc13 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;
 };
@@ -2961,14 +2962,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
 
 /*
@@ -3217,6 +3228,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
#54 lore raw

PATCH 51/2214 net: mvneta_bm: add suspend/resume support to prevent crash after resume

In reply to Greg Kroah-Hartman

5.15-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 269d5c8e2b096..708615e9f489a 100644
@@ -5299,6 +5299,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
#55 lore raw

PATCH 52/2214 dmaengine: dw-axi-dmac: fix __le32 on set of CH_CTL_H_LLI_VALID

In reply to Greg Kroah-Hartman

5.15-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 08777129b6f86..decfd838df3f4 100644
@@ -1038,7 +1038,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
#56 lore raw

PATCH 53/2214 wifi: rtlwifi: rtl8723be: Remove unnecessary irq save/restore in hw_init()

In reply to Greg Kroah-Hartman

5.15-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 ccbb082d5e928..8d18dfe774034 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
#57 lore raw

PATCH 54/2214 wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding

In reply to Greg Kroah-Hartman

5.15-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 9272ac0095261..bbcf69452d0e9 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
#58 lore raw

PATCH 55/2214 block: reject block device inodes with i_rdev == 0 in lookup_bdev()

In reply to Greg Kroah-Hartman

5.15-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 e015fea1521e2..8f64f3ce27711 100644
@@ -987,6 +987,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
#59 lore raw

PATCH 56/2214 iio: adc: max1241: add missing MODULE_DEVICE_TABLE()

In reply to Greg Kroah-Hartman

5.15-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 b60f8448f21a4..fb92a68e6827d 100644
@@ -202,6 +202,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
#60 lore raw

PATCH 57/2214 mmc: cqhci: fix to missed endian conversions

In reply to Greg Kroah-Hartman

5.15-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 9569d56193bcd..80a960f7de2e1 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
#43 lore raw

PATCH 40/2214 drm/amdgpu: Validate ATIF buffer length before use

In reply to Greg Kroah-Hartman

5.15-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 0adc992e4630a..fa16c2bba409b 100644
@@ -99,13 +99,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;
@@ -148,6 +150,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;
 }
 
@@ -209,19 +233,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);
 
@@ -231,7 +250,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;
 }
@@ -256,20 +274,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",
@@ -332,20 +344,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;
@@ -377,24 +383,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
#61 lore raw

PATCH 58/2214 mmc: dw_mmc: stop and complete DMA also in STATE_DATA_BUSY state

In reply to Greg Kroah-Hartman

5.15-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 32927e66b60ca..b3366a3633dee 100644
@@ -2177,6 +2177,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
#62 lore raw

PATCH 59/2214 clk: sunxi-ng: fix ccu probe clock unregister on error

In reply to Greg Kroah-Hartman

5.15-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 88cb569e58358..45e106db1fef9 100644
@@ -90,7 +90,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;
 
@@ -104,8 +104,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)
@@ -117,7 +117,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;
 		}
 	}
@@ -145,8 +145,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
#63 lore raw

PATCH 60/2214 nvme: zns: cap zone report nr_zones by DMA buffer size

In reply to Greg Kroah-Hartman

5.15-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 d95010481fce0..aff269e1c5398 100644
@@ -177,7 +177,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)
@@ -187,6 +187,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));
@@ -206,7 +209,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
#64 lore raw

PATCH 61/2214 staging: rtl8723bs: fix missing unregister_netdev on sdio_alloc_irq failure

In reply to Greg Kroah-Hartman

5.15-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
#65 lore raw

PATCH 62/2214 PCI/ATS: Ensure pci_ats_supported() is PF-aware for VFs

In reply to Greg Kroah-Hartman

5.15-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
#66 lore raw

PATCH 63/2214 media: cec: tegra: add missing MODULE_DEVICE_TABLE()

In reply to Greg Kroah-Hartman

5.15-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
#67 lore raw

PATCH 64/2214 media: v4l2-tpg: reduce stack usage for kasan builds

In reply to Greg Kroah-Hartman

5.15-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 533c8bb8fd886..fffbf6d6467c0 100644
@@ -2340,9 +2340,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;
@@ -2439,9 +2441,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
#68 lore raw

PATCH 65/2214 mmc: block: reject invalid perdev_minors before division

In reply to Greg Kroah-Hartman

5.15-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 e0421d857030f..47d2415c0349c 100644
@@ -3130,6 +3130,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
#69 lore raw

PATCH 66/2214 tty: serial: pch_uart: add check for pci_get_slot()

In reply to Greg Kroah-Hartman

5.15-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 69d516463a179..4fb2ee240b17f 100644
@@ -696,6 +696,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
#70 lore raw

PATCH 67/2214 usb: fsl_qe_udc: check qe_alloc_request() failure in ch9getstatus()

In reply to Greg Kroah-Hartman

5.15-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 8bf767a80dd42..6c1402890ff9b 100644
@@ -1941,6 +1941,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;
@@ -1981,8 +1982,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
#44 lore raw

PATCH 41/2214 drm/amd/pm: validate vega10 profile mode inputs

In reply to Greg Kroah-Hartman

5.15-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 7d0cf2a6d2d54..60accc56a1178 100644
@@ -5227,6 +5227,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;
@@ -5242,6 +5247,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
#71 lore raw

PATCH 68/2214 usb_string_copy: Use kzalloc() to avoid leaking old data

In reply to Greg Kroah-Hartman

5.15-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 b2e1b3ac0487c..5fc740d329550 100644
@@ -114,11 +114,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
#72 lore raw

PATCH 69/2214 USB: gadget: inode: fix mm lifetime handling

In reply to Greg Kroah-Hartman

5.15-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 b17122fa7931d..10d01e6c06b89 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, 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);
@@ -539,6 +546,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.
@@ -568,6 +576,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
#73 lore raw

PATCH 70/2214 pinctrl: sx150x: add missing MODULE_DEVICE_TABLE()

In reply to Greg Kroah-Hartman

5.15-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 484a3b9e875c1..6998e24afc5c2 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
#74 lore raw

PATCH 71/2214 media: em28xx: dev_info->pr_info since dev has been freed

In reply to Greg Kroah-Hartman

5.15-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 9027660b0fe64..1af36627ff617 100644
@@ -3509,7 +3509,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
#75 lore raw

PATCH 72/2214 media: em28xx: requeue buffers if start_streaming fails

In reply to Greg Kroah-Hartman

5.15-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 ffc7ae1ee3a9b..15f90c25fab2b 100644
@@ -1080,6 +1080,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;
@@ -1094,7 +1097,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 */
@@ -1117,7 +1120,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;
 		}
 
 		/*
@@ -1142,7 +1145,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
#76 lore raw

PATCH 73/2214 media: em28xx: use vb2_video_unregister_device

In reply to Greg Kroah-Hartman

5.15-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 15f90c25fab2b..a2cdde3bfe900 100644
@@ -2253,17 +2253,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);
@@ -2911,19 +2911,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
#77 lore raw

PATCH 74/2214 soundwire: dmi-quirks: add a global ghost list

In reply to Greg Kroah-Hartman

5.15-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 39f0cc2a5b333..6739f30d25b20 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.
@@ -99,6 +107,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);
@@ -110,10 +119,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
#78 lore raw

PATCH 75/2214 nvme: bound ns descriptor header and body to identify buffer

In reply to Greg Kroah-Hartman

5.15-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 97c6d6aa4ccf5..ae98572008370 100644
@@ -1477,8 +1477,12 @@ static int nvme_identify_ns_descs(struct nvme_ctrl *ctrl, unsigned nsid,
 	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, ids, cur, &csi_seen);
 		if (len < 0)
Signature · 1 line
2.53.0
author maintainer
#79 lore raw

PATCH 76/2214 iwlwifi: dvm: add missing cleaup for on error path

In reply to Greg Kroah-Hartman

5.15-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 a6999ca75377c..85732448f5622 100644
@@ -607,8 +607,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
#80 lore raw

PATCH 77/2214 media: i2c: ov8865: Drop the runtime PM usage count on stream failure

In reply to Greg Kroah-Hartman

5.15-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 92f6c3a940cfb..c587b14c91e93 100644
@@ -2508,15 +2508,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
#45 lore raw

PATCH 42/2214 drm/amdgpu: Support some Barco AMD based graphics adapters

In reply to Greg Kroah-Hartman

5.15-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 58292a296875b..308bfb7feb39c 100644
@@ -1707,6 +1707,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},
@@ -1777,6 +1778,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},
@@ -1805,6 +1807,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},
@@ -1818,6 +1821,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
#81 lore raw

PATCH 78/2214 drm/etnaviv: check all modules for idle after reset

In reply to Greg Kroah-Hartman

5.15-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 0fff51dc97755..ed8f5f8439f78 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
#82 lore raw

PATCH 79/2214 media: i2c: ov8865: Program the sensor on stream start

In reply to Greg Kroah-Hartman

5.15-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 c587b14c91e93..cb076cdd24a09 100644
@@ -2496,7 +2496,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);
@@ -2505,7 +2505,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)
@@ -2750,15 +2766,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
#83 lore raw

PATCH 80/2214 media: ivtv: stop VBI start-code scan before short tail

In reply to Greg Kroah-Hartman

5.15-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
#84 lore raw

PATCH 81/2214 media: cx18: stop VBI start-code scan before short tail

In reply to Greg Kroah-Hartman

5.15-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
#46 lore raw

PATCH 43/2214 drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds

In reply to Greg Kroah-Hartman

5.15-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 1e79baab753ef..70a38bdaa43fb 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
#47 lore raw

PATCH 44/2214 drm/amd/pm: Validate Tonga PowerPlay state array bounds

In reply to Greg Kroah-Hartman

5.15-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
#48 lore raw

PATCH 45/2214 drm/amd/pm: Guard VBIOS AC timing table walk

In reply to Greg Kroah-Hartman

5.15-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
#49 lore raw

PATCH 46/2214 drm/amd/pm: Validate Tonga PPTable subtable bounds

In reply to Greg Kroah-Hartman

5.15-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
#50 lore raw

PATCH 47/2214 drm/amd/pm: Validate legacy hwmgr PP table offsets

In reply to Greg Kroah-Hartman

5.15-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
#41 lore raw

PATCH 38/2214 i2c: acpi: Force ELAN1300 touchpads to 100 kHz

In reply to Greg Kroah-Hartman

5.15-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 3fabf4b1f6fd4..93bd78137ea67 100644
@@ -344,6 +344,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
#86 lore raw

PATCH 83/2214 remoteproc: core: cancel crash_handler work in rproc_add() error path

In reply to Greg Kroah-Hartman

5.15-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 a41b793e994e4..0e12d45b551f5 100644
@@ -2388,6 +2388,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
#95 lore raw

PATCH 92/2214 USB: misc: uss720: Fix leak in get_1284_register

In reply to Greg Kroah-Hartman

5.15-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 fbe00b65f3449..81938702c3c04 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
#96 lore raw

PATCH 93/2214 uio: sercos3: add missing MODULE_DEVICE_TABLE()

In reply to Greg Kroah-Hartman

5.15-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
#97 lore raw

PATCH 94/2214 comedi: ni_atmio16d: Add sanity check to interrupt handler

In reply to Greg Kroah-Hartman

5.15-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 b347878b13592..3b2e714b47249 100644
@@ -224,6 +224,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
#98 lore raw

PATCH 95/2214 comedi: ni_at_a2150: Fix sanity check in interrupt handler

In reply to Greg Kroah-Hartman

5.15-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 10ad7b88713e9..c3dae81fa8234 100644
@@ -134,11 +134,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;
@@ -147,6 +147,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
#99 lore raw

PATCH 96/2214 comedi: pcm818: Fix sanity check in interrupt handler

In reply to Greg Kroah-Hartman

5.15-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 d327af771c20a..a05b05652cda5 100644
@@ -536,13 +536,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
#100 lore raw

PATCH 97/2214 comedi: quatech_daqp_cs: Fix sanity check in interrupt handler

In reply to Greg Kroah-Hartman

5.15-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 fe4408ebf6b3b..c6d0e614d63bc 100644
@@ -212,13 +212,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
#101 lore raw

PATCH 98/2214 comedi: das6402: Add sanity check to interrupt handler

In reply to Greg Kroah-Hartman

5.15-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 927d4b832ecc6..fee77c5b0e097 100644
@@ -175,10 +175,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
author maintainer
#102 lore raw

PATCH 99/2214 comedi: dt2811: Fix sanity check in interrupt handler

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Ian Abbott <[email protected]>

[ Upstream commit 8dda63825752ab19fcbc2a19ecab91d128112415 ]

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, the interrupt handler checks the dev->attached flag to ensure the device is fully set up, but it currently does that after dereferencing dev->read_subdev, which may be NULL if dev->attached is false. Move the check to avoid the possible null pointer dereference.

---
 drivers/comedi/drivers/dt2811.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/comedi/drivers/dt2811.c +5 -2
index 0eb5e6ba69160..d94d3c64e264b 100644
@@ -194,13 +194,16 @@ static irqreturn_t dt2811_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 + DT2811_ADCSR_REG);
 
 	if (status & DT2811_ADCSR_ADERROR) {
Signature · 1 line
2.53.0
author maintainer
#103 lore raw

PATCH 100/2214 comedi: pcm711: Fix sanity check in interrupt handler

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Ian Abbott <[email protected]>

[ Upstream commit f876cbfe3e066bc9e3f3210907bd534be82946c8 ]

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/pcl711.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/comedi/drivers/pcl711.c +2 -1
index bd6f42fe9e3ca..a473f0442de06 100644
@@ -183,7 +183,7 @@ static irqreturn_t pcl711_interrupt(int irq, void *d)
 {
 	struct comedi_device *dev = d;
 	struct comedi_subdevice *s = dev->read_subdev;
-	struct comedi_cmd *cmd = &s->async->cmd;
+	struct comedi_cmd *cmd;
 	unsigned short data;
 
 	if (!dev->attached) {
@@ -191,6 +191,7 @@ static irqreturn_t pcl711_interrupt(int irq, void *d)
 		return IRQ_HANDLED;
 	}
 
+	cmd = &s->async->cmd;
 	data = pcl711_ai_get_sample(dev, s);
 
 	outb(PCL711_INT_STAT_CLR, dev->iobase + PCL711_INT_STAT_REG);
Signature · 1 line
2.53.0
author maintainer
#104 lore raw

PATCH 101/2214 comedi: aio_iiro_16: Add sanity check to interrupt handler

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Ian Abbott <[email protected]>

[ Upstream commit 1ca44751915134f19e8627768159781e75b5da50 ]

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/aio_iiro_16.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/comedi/drivers/aio_iiro_16.c +3 -0
index 60c9c683906bb..e979cf430a111 100644
@@ -60,6 +60,9 @@ static irqreturn_t aio_iiro_16_cos(int irq, void *d)
 	unsigned int status;
 	unsigned int val;
 
+	if (!dev->attached)
+		return IRQ_NONE;
+
 	status = inb(dev->iobase + AIO_IIRO_16_STATUS);
 	if (!(status & AIO_IIRO_16_STATUS_IRQE))
 		return IRQ_NONE;
Signature · 1 line
2.53.0
author maintainer
#87 lore raw

PATCH 84/2214 wifi: iwlwifi: mvm: reset the smart fifo state upon FW stop

In reply to Greg Kroah-Hartman

5.15-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 05e1a6de8c2e3..0d7edc2a09e5f 100644
@@ -1019,6 +1019,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
#105 lore raw

PATCH 102/2214 comedi: pcmmio: Add sanity check to interrupt handler

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Ian Abbott <[email protected]>

[ Upstream commit ea72e2fc9026f375314421ddfa4dbdc49432a899 ]

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/pcmmio.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/comedi/drivers/pcmmio.c +3 -0
index 24a9568d33788..d1cd4bc7f36e8 100644
@@ -363,6 +363,9 @@ static irqreturn_t interrupt_pcmmio(int irq, void *d)
 	unsigned int triggered;
 	unsigned char int_pend;
 
+	if (!dev->attached)
+		return IRQ_NONE;
+
 	/* are there any interrupts pending */
 	int_pend = inb(dev->iobase + PCMMIO_INT_PENDING_REG) & 0x07;
 	if (!int_pend)
Signature · 1 line
2.53.0
author maintainer
#106 lore raw

PATCH 103/2214 comedi: pcm816: Fix sanity check in interrupt handler

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Ian Abbott <[email protected]>

[ Upstream commit 4fdac5090ce3616283216d9a1d2b9664e8e20747 ]

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 devpriv->dma pointer which may be NULL if dev->attached is false. Move the dereference of the devpriv->dma pointer after dev->attached has been checked to avoid the possible null pointer dereference.

---
 drivers/comedi/drivers/pcl816.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/comedi/drivers/pcl816.c +2 -1
index c368a337a0ae0..85299d659ee8d 100644
@@ -244,7 +244,7 @@ static irqreturn_t pcl816_interrupt(int irq, void *d)
 	struct comedi_subdevice *s = dev->read_subdev;
 	struct pcl816_private *devpriv = dev->private;
 	struct comedi_isadma *dma = devpriv->dma;
-	struct comedi_isadma_desc *desc = &dma->desc[dma->cur_dma];
+	struct comedi_isadma_desc *desc;
 	unsigned int nsamples;
 	unsigned int bufptr;
 
@@ -259,6 +259,7 @@ static irqreturn_t pcl816_interrupt(int irq, void *d)
 		return IRQ_HANDLED;
 	}
 
+	desc = &dma->desc[dma->cur_dma];
 	nsamples = comedi_bytes_to_samples(s, desc->size) -
 		   devpriv->ai_poll_ptr;
 	bufptr = devpriv->ai_poll_ptr;
Signature · 1 line
2.53.0
author maintainer
#107 lore raw

PATCH 104/2214 comedi: pcmuio: Add sanity check to interrupt handler

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Ian Abbott <[email protected]>

[ Upstream commit 6f6f6644e011fa910db744e9978127a443b94001 ]

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 pcmuio_interrupt() to ensure the device has been fully set up, avoiding a possible null pointer dereference of dev->subdevices by pcmuio_handle_asic_interrupt().

Also make use of the IRQ_HANDLED(x) macro for the normal return path of the interrupt handler.

---
 drivers/comedi/drivers/pcmuio.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/comedi/drivers/pcmuio.c +4 -1
index b299d648a0eb6..ae12a70534151 100644
@@ -363,12 +363,15 @@ static irqreturn_t pcmuio_interrupt(int irq, void *d)
 	struct pcmuio_private *devpriv = dev->private;
 	int handled = 0;
 
+	if (!dev->attached)
+		return IRQ_NONE;
+
 	if (irq == dev->irq)
 		handled += pcmuio_handle_asic_interrupt(dev, 0);
 	if (irq == devpriv->irq2)
 		handled += pcmuio_handle_asic_interrupt(dev, 1);
 
-	return handled ? IRQ_HANDLED : IRQ_NONE;
+	return IRQ_RETVAL(handled);
 }
 
 /* chip->spinlock is already locked */
Signature · 1 line
2.53.0
author maintainer
#108 lore raw

PATCH 105/2214 misc: bcm-vk: validate write size before allocation

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Yousef Alhouseen <[email protected]>

[ Upstream commit f66c40cd90954f52809b3eabd386137f56bb6215 ]

bcm_vk_write() uses the user-supplied write count to size a flexible-array work entry and then copies count bytes into that array. The allocation expression is evaluated before any overflow check, so a very large count can wrap the allocation smaller than the subsequent copy.

Reject empty writes, check the allocation arithmetic before kzalloc(), and initialize the __counted_by field before copying into to_v_msg[].

---
 drivers/misc/bcm-vk/bcm_vk_msg.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
drivers/misc/bcm-vk/bcm_vk_msg.c +12 -6
index fa14fd9ad1bf4..9176dcee77fba 100644
@@ -9,6 +9,7 @@
 #include <linux/interrupt.h>
 #include <linux/list.h>
 #include <linux/module.h>
+#include <linux/overflow.h>
 #include <linux/poll.h>
 #include <linux/sizes.h>
 #include <linux/spinlock.h>
@@ -1089,6 +1090,7 @@ ssize_t bcm_vk_write(struct file *p_file,
 	u32 q_num;
 	u32 msg_size;
 	u32 msgq_size;
+	size_t entry_size;
 
 	if (!bcm_vk_drv_access_ok(vk))
 		return -EPERM;
@@ -1096,20 +1098,26 @@ ssize_t bcm_vk_write(struct file *p_file,
 	dev_dbg(dev, "Msg count %zu\n", count);
 
 	/* first, do sanity check where count should be multiple of basic blk */
-	if (count & (VK_MSGQ_BLK_SIZE - 1)) {
-		dev_err(dev, "Failure with size %zu not multiple of %zu\n",
+	if (!count || count & (VK_MSGQ_BLK_SIZE - 1)) {
+		dev_err(dev, "Failure with size %zu not a positive multiple of %zu\n",
 			count, VK_MSGQ_BLK_SIZE);
 		rc = -EINVAL;
 		goto write_err;
 	}
 
+	if (check_add_overflow(sizeof(*entry), count, &entry_size) ||
+	    check_add_overflow(entry_size, vk->ib_sgl_size, &entry_size)) {
+		rc = -EOVERFLOW;
+		goto write_err;
+	}
+
 	/* allocate the work entry + buffer for size count and inband sgl */
-	entry = kzalloc(sizeof(*entry) + count + vk->ib_sgl_size,
-			GFP_KERNEL);
+	entry = kzalloc(entry_size, GFP_KERNEL);
 	if (!entry) {
 		rc = -ENOMEM;
 		goto write_err;
 	}
+	entry->to_v_blks = count >> VK_MSGQ_BLK_SZ_SHIFT;
 
 	/* now copy msg from user space, and then formulate the work entry */
 	if (copy_from_user(&entry->to_v_msg[0], buf, count)) {
@@ -1117,7 +1125,6 @@ ssize_t bcm_vk_write(struct file *p_file,
 		goto write_free_ent;
 	}
 
-	entry->to_v_blks = count >> VK_MSGQ_BLK_SZ_SHIFT;
 	entry->ctx = ctx;
 
 	/* do a check on the blk size which could not exceed queue space */
@@ -1354,4 +1361,3 @@ void bcm_vk_msg_remove(struct bcm_vk *vk)
 	bcm_vk_drain_all_pend(&vk->pdev->dev, &vk->to_v_msg_chan, NULL);
 	bcm_vk_drain_all_pend(&vk->pdev->dev, &vk->to_h_msg_chan, NULL);
 }
-
Signature · 1 line
2.53.0
author maintainer
#109 lore raw

PATCH 106/2214 misc: genwqe: handle a first DMA address of zero

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Yousef Alhouseen <[email protected]>

[ Upstream commit d401772a9e18e837631450844f835229354528a4 ]

genwqe_setup_sgl() uses zero as the initial previous DMA address. DMA address zero is valid, so a first entry at that address enters the merge path before last_s has been assigned and dereferences NULL.

Only merge adjacent mappings after an SGL data entry has been created.

---
 drivers/misc/genwqe/card_utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/genwqe/card_utils.c +1 -1
index 039b923d1d60a..95eba283fce57 100644
@@ -413,7 +413,7 @@ int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl,
 			size -= size_to_map;
 			map_offs = 0;
 
-			if (prev_daddr == daddr) {
+			if (last_s && prev_daddr == daddr) {
 				u32 prev_len = be32_to_cpu(last_s->len);
 
 				/* pr_info("daddr combining: "
Signature · 1 line
2.53.0
author maintainer
#110 lore raw

PATCH 107/2214 misc: hpilo: validate device queue entries before use

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Yousef Alhouseen <[email protected]>

[ Upstream commit 7bf6940d7cf41f1f0330a9bae4b7a886e18fd8e3 ]

ilo_pkt_dequeue() trusts descriptor IDs and lengths read from the shared FIFO entry. A bad entry can select a descriptor outside the allocated queue memory or report a packet length larger than one descriptor.

Reject entries whose descriptor index or packet length exceeds the queue layout before deriving the packet pointer returned to read and write paths.

---
 drivers/misc/hpilo.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/misc/hpilo.c +6 -1
index 8d00df9243c43..64795066e196f 100644
@@ -158,11 +158,16 @@ static int ilo_pkt_dequeue(struct ilo_hwinfo *hw, struct ccb *ccb,
 
 	ret = fifo_dequeue(hw, fifobar, &entry);
 	if (ret) {
+		int pkt_len;
+
 		pkt_id = get_entry_id(entry);
+		pkt_len = get_entry_len(entry);
+		if (pkt_id >= NR_QENTRY || pkt_len > desc_mem_sz(1))
+			return 0;
 		if (id)
 			*id = pkt_id;
 		if (len)
-			*len = get_entry_len(entry);
+			*len = pkt_len;
 		if (pkt)
 			*pkt = (void *)(desc + desc_mem_sz(pkt_id));
 	}
Signature · 1 line
2.53.0
author maintainer
#111 lore raw

PATCH 108/2214 greybus: manifest: validate string descriptor header

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Pengpeng Hou <[email protected]>

[ Upstream commit 18b6510f642dbcb856c3af8be974d1600f3ba2d3 ]

identify_descriptor() computes a string descriptor size from desc->string.length.

Require the descriptor to contain the fixed string descriptor header before reading the variable string length. The existing descriptor-size check then reports the short descriptor.

---
 drivers/greybus/manifest.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/greybus/manifest.c +2 -0
index dd7040697bde9..469da3f39afb4 100644
@@ -122,6 +122,8 @@ static int identify_descriptor(struct gb_interface *intf,
 	switch (desc_header->type) {
 	case GREYBUS_TYPE_STRING:
 		expected_size += sizeof(struct greybus_descriptor_string);
+		if (desc_size < expected_size)
+			break;
 		expected_size += desc->string.length;
 
 		/* String descriptors are padded to 4 byte boundaries */
Signature · 1 line
2.53.0
author maintainer
#112 lore raw

PATCH 109/2214 misc: ibmvmc: reject oversized inbound messages

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Yousef Alhouseen <[email protected]>

[ Upstream commit 18189e5d84aa0b3bc89189cba13b9105634cb6fb ]

ibmvmc_recv_msg() trusts the message length from the CRQ.

It passes that length directly to h_copy_rdma().

The destination buffer is only max_mtu bytes.

A larger length can overrun it before userspace reads the message.

Validate the CRQ length before issuing the RDMA copy.

---
 drivers/misc/ibmvmc.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/misc/ibmvmc.c +7 -0
index c0fe3295c3303..cd9fc00868872 100644
@@ -1653,6 +1653,13 @@ static int ibmvmc_recv_msg(struct crq_server_adapter *adapter,
 		return -1;
 	}
 
+	if (msg_len > buffer->size) {
+		dev_err(adapter->dev, "Recv_msg: msg_len 0x%lx exceeds buffer size 0x%x\n",
+			msg_len, buffer->size);
+		spin_unlock_irqrestore(&hmc->lock, flags);
+		return -1;
+	}
+
 	/* RDMA the data into the partition. */
 	rc = h_copy_rdma(msg_len,
 			 adapter->riobn,
Signature · 1 line
2.53.0
author maintainer
#113 lore raw

PATCH 110/2214 driver core: attribute_container: Unwind device_add() on attr failure

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Yuho Choi <[email protected]>

[ Upstream commit 8cfe7ad274bb42c4653b645267410d4a3a23db98 ]

attribute_container_add_class_device() first calls device_add() and then creates the container attributes. If attribute_container_add_attrs() fails, the helper returns the error with the class device still registered.

Callers use an error from this helper as a failed add and do not call device_del() on that path. Undo the successful device_add() before returning the attribute creation error.

---
 drivers/base/attribute_container.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/base/attribute_container.c +6 -1
index 01ef796c2055a..aa93a0756e16a 100644
@@ -455,7 +455,12 @@ attribute_container_add_class_device(struct device *classdev)
 
 	if (error)
 		return error;
-	return attribute_container_add_attrs(classdev);
+
+	error = attribute_container_add_attrs(classdev);
+	if (error)
+		device_del(classdev);
+
+	return error;
 }
 
 /**
Signature · 1 line
2.53.0
author maintainer
#114 lore raw

PATCH 111/2214 media: dvb-core: fix feed leak on failed DMX_ADD_PID

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Rituparna Warwatkar <[email protected]>

[ Upstream commit 9fa26c971ca310dd10a3bc0014f2fc7ea7167bba ]

dvb_dmxdev_add_pid() allocates a new dmxdev_feed, links it into filter->feed.ts and, when the filter is already running, immediately starts the feed.

If starting the feed fails, the newly allocated feed remains on the list. Subsequent restart and rollback paths may then operate on this stale entry, leaving feed resources allocated and causing leaks in drivers that allocate resources from ->start_feed() and release them from ->stop_feed().

Remove the feed from the list and free it when
dvb_dmxdev_start_feed() fails.

Message-ID: <[email protected]>

---
 drivers/media/dvb-core/dmxdev.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/media/dvb-core/dmxdev.c +9 -2
index a5dd2470ecbe1..04583f43ad74f 100644
@@ -880,6 +880,7 @@ static int dvb_dmxdev_add_pid(struct dmxdev *dmxdev,
 			      struct dmxdev_filter *filter, u16 pid)
 {
 	struct dmxdev_feed *feed;
+	int ret;
 
 	if ((filter->type != DMXDEV_TYPE_PES) ||
 	    (filter->state < DMXDEV_STATE_SET))
@@ -897,8 +898,14 @@ static int dvb_dmxdev_add_pid(struct dmxdev *dmxdev,
 	feed->pid = pid;
 	list_add(&feed->next, &filter->feed.ts);
 
-	if (filter->state >= DMXDEV_STATE_GO)
-		return dvb_dmxdev_start_feed(dmxdev, filter, feed);
+	if (filter->state >= DMXDEV_STATE_GO) {
+		ret = dvb_dmxdev_start_feed(dmxdev, filter, feed);
+		if (ret < 0) {
+			list_del(&feed->next);
+			kfree(feed);
+			return ret;
+		}
+	}
 
 	return 0;
 }
Signature · 1 line
2.53.0
author maintainer
#88 lore raw

PATCH 85/2214 tools/lib/api: Fix potential double-free from fdarray__grow()

In reply to Greg Kroah-Hartman

5.15-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 5e6cb9debe37e..d49b560664a1f 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
#115 lore raw

PATCH 112/2214 media: go7007: s2250: propagate control I/O failures

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Yousef Alhouseen <[email protected]>

[ Upstream commit 59dc14a6cb5ff1ae5ce2f6ebf51fe0139e1c0623 ]

The brightness and contrast paths use oldvalue after read_reg_fp() without checking whether the read succeeded. A failed read leaves oldvalue uninitialized and can write arbitrary reserved register bits.

Return read and write errors from every control path so failed hardware access cannot be reported as a successful control update.

---
 drivers/media/usb/go7007/s2250-board.c | 54 ++++++++++++++++----------
 1 file changed, 33 insertions(+), 21 deletions(-)
drivers/media/usb/go7007/s2250-board.c +33 -21
index 1fa6f10ee157b..8aa6d7773e904 100644
@@ -365,36 +365,48 @@ static int s2250_s_ctrl(struct v4l2_ctrl *ctrl)
 	struct s2250 *state = container_of(ctrl->handler, struct s2250, hdl);
 	struct i2c_client *client = v4l2_get_subdevdata(&state->sd);
 	u16 oldvalue;
+	int ret;
 
 	switch (ctrl->id) {
 	case V4L2_CID_BRIGHTNESS:
-		read_reg_fp(client, VPX322_ADDR_BRIGHTNESS0, &oldvalue);
-		write_reg_fp(client, VPX322_ADDR_BRIGHTNESS0,
-			     ctrl->val | (oldvalue & ~0xff));
-		read_reg_fp(client, VPX322_ADDR_BRIGHTNESS1, &oldvalue);
-		write_reg_fp(client, VPX322_ADDR_BRIGHTNESS1,
-			     ctrl->val | (oldvalue & ~0xff));
-		write_reg_fp(client, 0x140, 0x60);
-		break;
+		ret = read_reg_fp(client, VPX322_ADDR_BRIGHTNESS0, &oldvalue);
+		if (ret)
+			return ret;
+		ret = write_reg_fp(client, VPX322_ADDR_BRIGHTNESS0,
+				   ctrl->val | (oldvalue & ~0xff));
+		if (ret)
+			return ret;
+		ret = read_reg_fp(client, VPX322_ADDR_BRIGHTNESS1, &oldvalue);
+		if (ret)
+			return ret;
+		ret = write_reg_fp(client, VPX322_ADDR_BRIGHTNESS1,
+				   ctrl->val | (oldvalue & ~0xff));
+		if (ret)
+			return ret;
+		return write_reg_fp(client, 0x140, 0x60);
 	case V4L2_CID_CONTRAST:
-		read_reg_fp(client, VPX322_ADDR_CONTRAST0, &oldvalue);
-		write_reg_fp(client, VPX322_ADDR_CONTRAST0,
-			     ctrl->val | (oldvalue & ~0x3f));
-		read_reg_fp(client, VPX322_ADDR_CONTRAST1, &oldvalue);
-		write_reg_fp(client, VPX322_ADDR_CONTRAST1,
-			     ctrl->val | (oldvalue & ~0x3f));
-		write_reg_fp(client, 0x140, 0x60);
-		break;
+		ret = read_reg_fp(client, VPX322_ADDR_CONTRAST0, &oldvalue);
+		if (ret)
+			return ret;
+		ret = write_reg_fp(client, VPX322_ADDR_CONTRAST0,
+				   ctrl->val | (oldvalue & ~0x3f));
+		if (ret)
+			return ret;
+		ret = read_reg_fp(client, VPX322_ADDR_CONTRAST1, &oldvalue);
+		if (ret)
+			return ret;
+		ret = write_reg_fp(client, VPX322_ADDR_CONTRAST1,
+				   ctrl->val | (oldvalue & ~0x3f));
+		if (ret)
+			return ret;
+		return write_reg_fp(client, 0x140, 0x60);
 	case V4L2_CID_SATURATION:
-		write_reg_fp(client, VPX322_ADDR_SAT, ctrl->val);
-		break;
+		return write_reg_fp(client, VPX322_ADDR_SAT, ctrl->val);
 	case V4L2_CID_HUE:
-		write_reg_fp(client, VPX322_ADDR_HUE, ctrl->val);
-		break;
+		return write_reg_fp(client, VPX322_ADDR_HUE, ctrl->val);
 	default:
 		return -EINVAL;
 	}
-	return 0;
 }
 
 static int s2250_set_fmt(struct v4l2_subdev *sd,
Signature · 1 line
2.53.0
author maintainer
#116 lore raw

PATCH 113/2214 platform/x86: asus-nb-wmi: map ProArt key (0x8b) to KEY_PROG3

In reply to Greg Kroah-Hartman

5.15-stable review patch. If anyone has any objections, please let me know.

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

From: Nizar Al-Kabbani <[email protected]>

[ Upstream commit 6303451189a6d8f304221065c44ccd597e0acbe5 ]

The dedicated "ProArt" key on the ASUS ProArt PX13 (HN7306) emits ASUS WMI event code 0x8b. This code is absent from the asus-nb-wmi sparse keymap, so pressing the key only produces a "Unknown key code 0x8b" message and does nothing in userspace.

On this model the key is exposed solely through the WMI interface and has no HID scancode, so it can only be handled inside asus-nb-wmi. Map 0x8b to KEY_PROG3 so the key emits a bindable event, consistent with the existing KEY_PROG3 mapping used for the ASUS programmable/Armoury key.

---
 drivers/platform/x86/asus-nb-wmi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/asus-nb-wmi.c +1 -0
index 224c1f1c271bc..e843546f33851 100644
@@ -551,6 +551,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
 	{ KE_KEY, 0x82, { KEY_CAMERA } },
 	{ KE_KEY, 0x88, { KEY_RFKILL  } }, /* Radio Toggle Key */
 	{ KE_KEY, 0x8A, { KEY_PROG1 } }, /* Color enhancement mode */
+	{ KE_KEY, 0x8B, { KEY_PROG3 } }, /* ProArt key (PX13/HN7306) */
 	{ KE_KEY, 0x8C, { KEY_SWITCHVIDEOMODE } }, /* SDSP DVI only */
 	{ KE_KEY, 0x8D, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + DVI */
 	{ KE_KEY, 0x8E, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + DVI */
Signature · 1 line
2.53.0