* [PATCH 5.15 0000/2214] 5.15.226-rc1 review
@ 2026-11-18 14:27 Greg Kroah-Hartman
2026-11-18 14:27 ` [PATCH 5.15 0001/2214] xen-netback: Fix XenBus connection failure cleanup Greg Kroah-Hartman
` (998 more replies)
0 siblings, 999 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:27 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, linux-kernel, torvalds, akpm, linux,
shuah, patches, lkft-triage, pavel, jonathanh, f.fainelli,
sudipm.mukherjee, rwarsow, conor, hargar, broonie, achill, sr
This is the start of the stable review cycle for the 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 <gregkh@linuxfoundation.org>
Linux 5.15.226-rc1
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Fix tuner clock error handling
Kees Cook <kees@kernel.org>
seq_buf: Do not print an empty line from an overflowed seq_buf_do_printk()
Yoann Congal <yoann.congal@smile.fr>
printk: Fix LOG_CPU_MAX_BUF_SHIFT when BASE_SMALL is enabled
Nathan Lynch <nathanl@linux.ibm.com>
seq_buf: Make DECLARE_SEQ_BUF() usable
Akira Yokosawa <akiyks@gmail.com>
docs/process/howto: Replace C89 with C11
Kalesh Singh <kaleshsingh@google.com>
tracing/histogram: Fix documentation inline emphasis warning
Tim Gardner <tim.gardner@canonical.com>
dmaengine: dw-axi-dmac: Fix uninitialized variable in axi_chan_block_xfer_start()
Kemeng Shi <shikemeng@huaweicloud.com>
irqchip/gic-v3-its: Fix its node leak in gic_acpi_parse_madt_its()
Wang Yan <wangyan01@kylinos.cn>
selftests/net: fix EVP_MD_CTX leak in tcp_mmap
Hannes Reinecke <hare@kernel.org>
nvmet: do not return 'reserved' for empty TSAS values
Marc Zyngier <maz@kernel.org>
irqchip/gic-v3-its: Restore quirk probing for ACPI-based systems
Masahiro Yamada <masahiroy@kernel.org>
kconfig: initialize sym->curr.tri to 'no' for all symbol types again
Arnd Bergmann <arnd@arndb.de>
dmaengine: ste_dma40: use proper format string for resource_size_t
Vinod Koul <vkoul@kernel.org>
dmaengine: ste_dma40: use correct print specfier for resource_size_t
Eric Dumazet <edumazet@google.com>
selftests/net: fix typo in tcp_mmap
Bagas Sanjaya <bagasdotme@gmail.com>
tracing/histogram: Wrap remaining shell snippets in code blocks
Steven Price <steven.price@arm.com>
irqchip/gic-v3-its: Fix over allocation in itt_alloc_pool()
Krzysztof Wilczyński <kwilczynski@kernel.org>
PCI/sysfs: Decouple acpi_index from the optional device name element
Dominique Martinet <asmadeus@codewreck.org>
libbpf: fix cross-endian build with newer libbpf
Imre Kaloz <kaloz@kernel.org>
rtc: ds1685: do not sleep in the power-off handler
Imre Kaloz <kaloz@kernel.org>
rtc: ds1685: arm the wake-up alarm at power-off only if an alarm is set
Nickolai Zeldovich <nickolai@csail.mit.edu>
ucount: read the parent ucounts before dropping the rlimit count
Nickolai Zeldovich <nickolai@csail.mit.edu>
splice: retry tee() instead of returning 0 when it races
Zhiyu Zhang <zhiyuzhang999@gmail.com>
watch_queue: keep info_id separate from rcu_head
Jhonata Poma-Hansen <jhonata.poma@gmail.com>
netlink: check sk_rcvbuf before charging the dump skb
Rosen Penev <rosenp@gmail.com>
net: bgmac: fix TX DMA unmapping and slot cleanup
Wentao Liang <vulab@iscas.ac.cn>
apparmor: Fix namespace reference leak in __aa_find_or_create_ns()
Maxime Bélair <maxime.belair@canonical.com>
apparmor: report a label allocation failure as -ENOMEM
Jamie Nguyen <jamien@nvidia.com>
selftests: net: txtimestamp: fix out-of-bounds read in raw UDP checksum
Chris Mason <mason@kernel.org>
rnbd-srv: publish the sess_dev at the end of OPEN
Guoqing Jiang <guoqing.jiang@linux.dev>
block/rnbd-srv: rename one member in rnbd_srv_dev
Md Haris Iqbal <haris.iqbal@ionos.com>
block/rnbd-srv: Replace sess_dev_list with index_idr
Josef Bacik <josef@toxicpanda.com>
block/rnbd-srv: drop the sess_dev kobject unlocked
Josef Bacik <josef@toxicpanda.com>
block/rnbd-srv: don't free the device on a sysfs error
Christoph Hellwig <hch@lst.de>
rnbd-srv: remove the name field from struct rnbd_dev
Christoph Hellwig <hch@lst.de>
rnbd-srv: remove struct rnbd_dev_blk_io
Christoph Hellwig <hch@lst.de>
rnbd-srv: simplify bio mapping in process_rdma
Josef Bacik <josef@toxicpanda.com>
drbd: take req_lock to skip the initial sync as peer
Josef Bacik <josef@toxicpanda.com>
block: partitions/mac: compute the sectors in 64 bits
Josef Bacik <josef@toxicpanda.com>
blk-mq: keep sharing tags fairly after a queue update
Josef Bacik <josef@toxicpanda.com>
block: fix use-after-free of the disk in sync_bdevs()
Markus Probst <markus.probst@posteo.de>
rtc: s35390a: Read 24-hour mode on access
Alexandre Belloni <alexandre.belloni@bootlin.com>
rtc: s35390a: fix typo in comment
Nick Huang <sef1548@gmail.com>
rtc: s35390a: use u8 instead of char for register buffer
André Draszik <andre.draszik@linaro.org>
rtc: s35390a: drop needless struct s35390a::rtc member
ye xingchen <ye.xingchen@zte.com.cn>
rtc: s35390a: Remove the unneeded result variable
Alexandre Belloni <alexandre.belloni@bootlin.com>
rtc: s35390a: let the core handle the alarm resolution
Alexandre Belloni <alexandre.belloni@bootlin.com>
rtc: add alarm related features
Markus Probst <markus.probst@posteo.de>
rtc: s35390a: Fix alarm not disabling
Markus Probst <markus.probst@posteo.de>
rtc: s35390a: Add missing newline to dev_err
Joas Antonio dos Santos <joasantonio108@gmail.com>
net: dcb: initialize PFC value before calling getpfccfg
Josef Bacik <josef@toxicpanda.com>
blk-cgroup: fix root io.stat byte counts on 32-bit
Josef Bacik <josef@toxicpanda.com>
blk-throttle: don't truncate the cgroup v1 iops limits
Chris Mason <mason@kernel.org>
nvmet: don't clear sq->ctrl for a Connect with sqsize 0
Chris Mason <mason@kernel.org>
nvmet-rdma: fix double puts after a failed RDMA WRITE
Chris Mason <mason@kernel.org>
nvmet-rdma: disable interrupts under rsp_wr_wait_lock
Chris Mason <mason@kernel.org>
nvmet-rdma: flush nvmet-wq on module exit
Josef Bacik <josef@toxicpanda.com>
nvme-loop: don't BUG() if a scan runs beside a reset
Josef Bacik <josef@toxicpanda.com>
nvmet-tcp: don't read a removed port at Connect time
Josef Bacik <josef@toxicpanda.com>
nvmet-tcp: stop listening when a port is removed
Rongzheng Wang <testwrzwrz@gmail.com>
nvmet: use the enabled transport when disabling a port
Hannes Reinecke <hare@suse.de>
nvmet: make TCP sectype settable via configfs
Hannes Reinecke <hare@suse.de>
nvme: add TCP TSAS definitions
Qing Zhang <diasyzhang@tencent.com>
nvmet: protect nvmet_ports_list with nvmet_config_sem
Avi Weiss <thnkslprpt@gmail.com>
nvmet: prevent double-free after metadata SGL allocation failure
bui duc phuc <phucduc.bui@gmail.com>
ASoC: xilinx: formatter_pcm: Fix read-modify-write of AUD_CTRL in hw_params
Feng Yang <yangfeng@kylinos.cn>
bpf: Fix out-of-bounds btf->types write for split BTF
Ömer Mete Kaya <omermetekaya0@gmail.com>
usbnet: fix EVENT_RX_PAUSED race in usbnet_skb_return()
Florian Fainelli <f.fainelli@gmail.com>
net: dsa: mv88e6xxx: fix 6351 family statistics snapshot
Paul Moses <p@1g4.org>
perf mmap: Preserve the consumed cursor in forward mode
Paul Moses <p@1g4.org>
perf mmap: Use the head selected by read_init
Len Brown <len.brown@intel.com>
x86_energy_perf_policy: Cleanup: Check fseek() in VM path
Len Brown <len.brown@intel.com>
x86_energy_perf_policy: Fix optarg keyword matching
Dudu Lu <phx0fer@gmail.com>
net: xps: bound the cleanup loop by the old map's num_tc
Allison Henderson <achender@kernel.org>
net/rds: do not initialize transports after rds_init() failed
Hongfu Li <lihongfu@kylinos.cn>
rds:Simplify the allocation of slab caches
Xiu Jianfeng <xiujianfeng@huawei.com>
net: rds: add missing __init/__exit annotations to module init/exit funcs
Cheng Yongkang <teel4res@gmail.com>
net: tun: hold napi_mutex when deleting NAPI in tun_detach_all()
Sally Marcher <me@gry.sh>
ALSA: usb-audio: Add correct datainterval in the quirks-table for Microbook II
Nicolai Buchwitz <nb@tipi-net.de>
net: usb: cdc_mbim: don't enable BHs in tx_fixup under netpoll
Nicolai Buchwitz <nb@tipi-net.de>
net: usb: cdc_ncm: don't enable BHs in tx_fixup under netpoll
Binbin Deng <18983559317@163.com>
net: atlantic: Unregister before clearing RXNFC rules
Qingfang Deng <qingfang.deng@linux.dev>
pppoe: drop discovery frames with no MAC header
Tung Nguyen <tung.quang.nguyen@est.tech>
tipc: fix refcount panic in tipc_rcv() when receiving shared skb
Jerome Brunet <jbrunet@baylibre.com>
clk: cdce925: Size the PLL child name buffer for any int
bui duc phuc <phucduc.bui@gmail.com>
clk: lmk04832: Handle reset GPIO lookup errors
Dudu Lu <phx0fer@gmail.com>
net/sched: taprio: unwind the netdevice notifier if register_qdisc() fails
Dudu Lu <phx0fer@gmail.com>
net/sched: gred: keep the qdisc lock while updating the table
Hungyu Lin <dennylin0707@gmail.com>
thermal: Fix CPU mask truncation in power limit trace event
Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
libceph: reject bad connect_seq in msgr1 READY reply
Xiubo Li <xiubo.li@clyso.com>
ceph: mark the superblock active after mounting
Max Kellermann <max.kellermann@ionos.com>
ceph: remove unused field `i_cap_migration_resv`
Henry Martin <bsdhenrymartin@gmail.com>
netlink: fix out-of-bounds bitmap access clearing stale mc groups
Avi Weiss <thnkslprpt@gmail.com>
profiling: fix sampling step on 64-bit big-endian systems
Edward Adam Davis <eadavis@sina.com>
kernel/reboot: avoid potential deadlocks during suspension
Feng Yang <yangfeng@kylinos.cn>
bpf: Propagate btf_add_type() errors in btf_check_all_metas()
Haotian Zhang <vulab@iscas.ac.cn>
scsi: elx: libefc: Fix resource leak in efcport_init() error path
Dudu Lu <phx0fer@gmail.com>
net/sched: etf: initialise the sock_exterr_skb before filling it
Greg Thelen <gthelen@google.com>
selftests/net: tcp_mmap: remove unused -k option and keepflag
Xiaoyan Li <lixiaoyan@google.com>
selftests/net: Add SHA256 computation over data sent in tcp_mmap
Allison Henderson <achender@kernel.org>
net/rds: keep the connected peer's scope id apart from the bound one
Allison Henderson <achender@kernel.org>
net/rds: include the scope id in the sendmsg connection cache check
Eric Dumazet <edumazet@kernel.org>
net: fix frag_list leak in skb_segment_list() error path
Daniel Machon <daniel.machon@microchip.com>
net: sparx5/lan969x: do not read past skb->len when injecting a frame
Florian Fuchs <fuchsfl@gmail.com>
ALSA: sh: aica: Fix spu_memset() stride
Gregory Price (Meta) <gourry@gourry.net>
cgroup/cpuset: check effective mems for a movable-only configuration
Jiale Yao <yaojiale02@163.com>
regulator: irq: freeze deferred hardware access during suspend
Marco Crivellari <marco.crivellari@suse.com>
regulator: irq_helper: replace use of system_wq with system_dfl_wq
Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
regulator: irq_helper: Provide helper for trivial IRQ notifications
Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
regulator: Add regulator_err2notif() helper
bui duc phuc <phucduc.bui@gmail.com>
ASoC: amd: raven: Fix memory leak in acp3x_dma_close()
Michail Andreas Michalopoulos <mike.michalo@gmail.com>
ksmbd: select CRYPTO_AES
Ivan Hu <ivan.hu@canonical.com>
ACPICA: Initialize parser_state.aml_end in acpi_install_method()
Nickolai Zeldovich <nickolai@csail.mit.edu>
nsproxy: Fix cred leak in the error path of prepare_nsset()
Avi Weiss <thnkslprpt@gmail.com>
signal: skip blocked signals in dequeue_synchronous_signal()
Tianyi Chen <hi@tychen.cc>
eventpoll: propagate wakeup source creation failure in ep_modify()
Marek Szyprowski <m.szyprowski@samsung.com>
ASoC: wm8994: follow AIF clock source changes in MCLK gating
Binbin Deng <18983559317@163.com>
tipc: fix use-after-free of broadcast reception link at node release
Rand Deeb <rand.sec96@gmail.com>
ata: libata-core: Ignore forced transfer modes the host does not support
Travis Howard <thoward@lafayetteinstrument.com>
tg3: Add Datto SIRIS 5 1U Server to restart AER quirk table
Tianyi Gao <tianyi@cloudflare.com>
veth: schedule the peer's NAPI after XDP_TX when only GRO is enabled
Nikhil P. Rao <nikhil.rao@amd.com>
ionic: fix port_info use-after-free on firmware recovery
Namhyung Kim <namhyung@kernel.org>
perf c2c: Fix memory leaks on output fields
Leo Yan <leo.yan@linaro.org>
perf c2c: Use 'peer' as default display for Arm64
Waldemar Brodkorb <wbx@openadk.org>
sh: Select BINFMT_FLAT_NO_DATA_START_OFFSET for !MMU
Paul E. McKenney <paulmck@kernel.org>
sh: Emulate one-byte cmpxchg
Marek Szyprowski <m.szyprowski@samsung.com>
ASoC: wm8994: fix MCLK index used for setting MCLK rate
Marek Szyprowski <m.szyprowski@samsung.com>
ASoC: wm8994: don't lose the AIF clock ratio when staying at 32kHz SYSCLK
Marek Szyprowski <m.szyprowski@samsung.com>
ASoC: wm8994: fix MCLK gating for AIF clocks sourced from MCLK2
Anil Kaushik <anilkaushikwireless@gmail.com>
gtp: hold RCU for the device lookup when adding a PDP context
Anil Kaushik <anilkaushikwireless@gmail.com>
gtp: set a valid genl command in PDP context get and dump replies
Takashi Iwai <tiwai@suse.de>
platform/x86: ibm_rtl: Fix potential OOB read at signature search
Cen Zhang <zzzccc427@gmail.com>
ocfs2: initialize status waiters before publishing them
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: reserve xattr value tree metadata only once
Henry Hu <huhai@kylinos.cn>
ksmbd: fix invalid Next offset in interface info replies
Henry Hu <huhai@kylinos.cn>
ksmbd: fix unlocked IPv6 addr_list walk in fsctl_query_iface_info_ioctl()
Henry Hu <huhai@kylinos.cn>
ksmbd: fix link speed query in fsctl_query_iface_info_ioctl()
Mingming Cao <mmc@linux.ibm.com>
ibmveth: wait for the RX poll to return before freeing the RX queue
Mingming Cao <mmc@linux.ibm.com>
ibmveth: fix netpoll races with RX replenish
Jiale Yao <yaojiale02@163.com>
team: reject CAN, IEEE 802.15.4 and 6LoWPAN devices in team_port_add
Ido Schimmel <idosch@nvidia.com>
ipv6: Hold RCU when emitting route hardware flags notification
Myeonghun Pak <mhun512@gmail.com>
platform/x86: gpd pocket fan: Cancel work before releasing GPIOs
Eric Dumazet <edumazet@kernel.org>
ipv6: account route exceptions to the netns of their dst
Sagi Maimon <maimon.sagi@gmail.com>
net: axienet: release every RX buffer in axienet_dma_bd_release()
Myeonghun Pak <mhun512@gmail.com>
net: hix5hd2: serialize timeout recovery with interface teardown
Rishikesh Jethwani <rjethwani@purestorage.com>
tls: device: protect async RX resync state during device-down
Eric Dumazet <edumazet@kernel.org>
tcp: tcp_metrics: use the socket netns, not the dst device netns
Eric Dumazet <edumazet@google.com>
tcp_metrics: use dst_dev_net_rcu()
Fernando Fernandez Mancera <fmancera@suse.de>
net: openvswitch: drop IP fragments on SCTP set action
Fernando Fernandez Mancera <fmancera@suse.de>
net: openvswitch: skip IPv4 later fragments on TCP/UDP set actions
HyeongJun An <sammiee5311@gmail.com>
ASoC: cs42l56: Remove the ADC Mute Switch control
Liang Hao <haohlliang@gmail.com>
timers: Clear pending_map on CPU hotplug
tangmeng <tangmeng@uniontech.com>
timers: Move timer sysctl into the timer code
Karl Mehltretter <kmehltretter@gmail.com>
rtc: class: Make the time32 hctosys limit configurable
James Hilliard <james.hilliard1@gmail.com>
net: stmmac: avoid duplicate XSK TX completions
Matthieu Baerts (NGI0) <matttbe@kernel.org>
mptcp: options: dss: avoid printing uninit csum
Matthieu Baerts (NGI0) <matttbe@kernel.org>
mptcp: options: mpc: avoid printing uninit data
Li RongQing <lirongqing@baidu.com>
RDMA/mlx5: Fix CQ resize destination index mask
Jamal Hadi Salim <jhs@mojatatu.com>
net/sched: act_api: reject duplicate actions in a batch
Gregory Price (Meta) <gourry@gourry.net>
cgroup/cpuset: use mems_allowed_seq when checking a policy nodemask
Cen Zhang <zzzccc427@gmail.com>
ALSA: aloop: Keep the timer source alive until card release
Cen Zhang <zzzccc427@gmail.com>
ALSA: pcm: Remove channel-map controls before freeing substreams
Thomas Weißschuh <thomas.weissschuh@linutronix.de>
nios2: ksyms: Declare __mulsi3 export
Sung Byeongchan <tjdqudcks0424@naver.com>
netfilter: xt_dccp: handle reserved options as single-byte
Shuangfeng He <huangya90@gmail.com>
netfilter: flowtable: use the vlan id, not the full tci, in the tuple key
Julian Anastasov <ja@ssi.bg>
ipvs: fix more races around the overload flag
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset
Alok Tiwari <alok.a.tiwari@oracle.com>
octeontx2-af: Fix CQ enable state tracking after AQ writes
Cen Zhang <zzzccc427@gmail.com>
ALSA: oss: Keep emulation modules loaded until object teardown
Cen Zhang <zzzccc427@gmail.com>
ALSA: pcm: Protect the unregister notifier traversal
Troy Mitchell <troy.mitchell@linux.dev>
dt-bindings: vendor-prefixes: Add Sensylink
Mikhail Zhilkin <csharper2005@gmail.com>
dt-bindings: Add Sercomm (Suzhou) Corporation vendor prefix
Serhat Kumral <serhatkumral1@gmail.com>
RDMA/usnic: Bound buffer size to sizeof(buf) in flowinfo_read()
Zhiwei Zhang <202275009@qq.com>
RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: sta350: Fix definition of limiter threshold controls
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: sta32x: Fix definition of limiter threshold controls
Serhat Kumral <serhatkumral1@gmail.com>
RDMA/srp: Avoid reading uninitialized has_port on srp_parse_in() failure
Leon Romanovsky <leon@kernel.org>
RDMA/core: Reject LAG selection when source MAC lookup fails
Yunsheng Lin <linyunsheng@huawei.com>
RDMA/core: Remove 'device' argument from rdma_build_skb()
Leon Romanovsky <leon@kernel.org>
RDMA/core: Preserve the selected source GID on failed AH modification
Igor Velkov <iav@iav.lv>
power: supply: gpio-charger: Report discharging without input power
Aleksandr Nogikh <nogikh@google.com>
usb: gadget: dummy_hcd: prevent unbind via sysfs
Igor Skalkin <igor.skalkin@oss.qualcomm.com>
usb: gadget: dummy_hcd: fix SuperSpeed ep0 maxpacket
Alexei Starovoitov <ast@kernel.org>
bpf: Don't take a program with a target program for an iterator
Florian Westphal <fw@strlen.de>
netfilter: nft_compat: restrict raw table targets/matches
Florian Westphal <fw@strlen.de>
selftests: netfilter: fix return value in zone subtest
Florian Westphal <fw@strlen.de>
selftests: netfilter: conntrack_vrf.sh: prefer socat, not iperf3
Florian Westphal <fw@strlen.de>
selftests: netfilter: conntrack_vrf.sh: move to lib.sh infra
Florian Westphal <fw@strlen.de>
netfilter: conntrack: fix unlikely UaF in gc worker
Josef Bacik <josef@toxicpanda.com>
bpf: Don't take an extension for an iterator program
Josef Bacik <josef@toxicpanda.com>
bpf: Bound the nesting that the BTF show code follows
Alexei Starovoitov <ast@kernel.org>
bpf: Clear sk_refcnt of a clone before its storage is linked
Josef Bacik <josef@toxicpanda.com>
bpf: Update the SRH state if End.B6 fails late
Josef Bacik <josef@toxicpanda.com>
bpf: Pull the inner header for End.DT6 in End.BPF
Josef Bacik <josef@toxicpanda.com>
bpf: Validate the SRH which End.DT6 uncovers in End.BPF
Jiayuan Chen <jiayuan.chen@linux.dev>
bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields
Brad Fitzpatrick <bradfitz@tailscale.com>
gre: keep the UDP tunnel GSO type when completing GRO
Joas Antonio dos Santos <joasantonio108@gmail.com>
calipso: update payload_len when removing the CALIPSO option
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: sta350: Fix definition of Ch2 and Ch3 Volume Bypass controls
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: sta32x: Fix definition of Ch2 and Ch3 Volume Bypass controls
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: da732x: Fix definition of ADC2 EQ Overall Volume control
Sasha Levin <sashal@kernel.org>
ARC: Strip libgcc debug information when generating BTF
Piotr Gliźniewicz <p.glizniewicz@gmail.com>
ALSA: 6fire: take stream_mutex in the Digital Thru control
Ömer Mete Kaya <omermetekaya0@gmail.com>
usbnet: fix smp_processor_id() use in preemptible context
Fabrice Derepas <fabrice.derepas@canonical.com>
ima: reject a kexec buffer whose declared size exceeds the buffer
Tao Cui <cuitao@kylinos.cn>
blk-iocost: account zone append completions in latency stats
Tao Cui <cuitao@kylinos.cn>
blk-iocost: charge zone appends as writes
Yuan Chen <chenyuan@kylinos.cn>
bpftool: Fix inverted tracefs validation when scanning /proc/mounts
Matheus Alves de Almeida <matheus.aalmeida@inf.ufrgs.br>
HID: wacom: fix wacom_intuos_irq NULL pen_input deref
Stefano Munari <stefanomunari.sm@gmail.com>
net: usb: lan78xx: reject invalid EEPROM write requests
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
macsec: prevent AES-GCM nonce reuse after packet number wrap
Donggeun Yoo <donggeunyoo.kernel@gmail.com>
tracing: Print a signed histogram key as signed
Donggeun Yoo <donggeunyoo.kernel@gmail.com>
tracing: Clamp the printed end of a histogram bucket at U64_MAX
Steven Rostedt (Google) <rostedt@goodmis.org>
tracing/histogram: Document variable stacktrace
Masami Hiramatsu (Google) <mhiramat@kernel.org>
tracing: docs: Update histogram doc for .percent/.graph and 'nohitcount'
Kalesh Singh <kaleshsingh@google.com>
tracing/histogram: Document expression arithmetic and constants
Donggeun Yoo <donggeunyoo.kernel@gmail.com>
tracing: Print the bucket size as unsigned
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Fix ETDM probe error handling
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Fix HDMI TX startup error handling
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Fix ETDM startup error handling
Trevor Wu <trevor.wu@mediatek.com>
ASoC: mediatek: mt8195: add dai id check before accessing array
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Fix ETDM MCLK error handling
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Propagate IRQ lookup errors
Yang Li <yang.lee@linux.alibaba.com>
ASoC: mediatek: mt8195: Remove unnecessary print function dev_err()
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Fix runtime resume error handling
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Check paired MEMIF clock enable in FE trigger
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Fix FE startup error handling
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Fix paired memif clock error handling
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Fix main clock error handling
Trevor Wu <trevor.wu@mediatek.com>
ASoC: mediatek: mt8195: enable apll tuner
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Fix timing system clock error handling
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8195: Fix register access clock error handling
Colin Ian King <colin.i.king@googlemail.com>
ASoC: mediatek: mt8195: make several arrays static const
Amadeusz Sławiński <amade@asmblr.net>
ASoC: soc-component: Fix return type of snd_soc_pcm_component_pointer()
Amadeusz Sławiński <amade@asmblr.net>
ASoC: soc-ac97: Fix error handling in snd_soc_new_ac97_component()
Amadeusz Sławiński <amade@asmblr.net>
ASoC: ops: Fix return value in snd_soc_limit_volume()
Amadeusz Sławiński <amade@asmblr.net>
ASoC: soc-link: Correct stream stop operations in snd_soc_link_trigger
Hongbo Li <lihongbo22@huawei.com>
ASoC: remove unused substream in macro soc_link_mark_pop
Sasha Levin <sashal@kernel.org>
selftests: keep the build status from wrapping to success
Jacob Moroni <jmoroni@google.com>
RDMA/irdma: Fix FRWR IRDMAQPSQ_PBLADDR field population
Serhat Kumral <serhatkumral1@gmail.com>
IB/rdmavt: Fix error unwind path for qp_priv_init() in rvt_create_qp()
Sasha Levin <sashal@kernel.org>
kselftest/arm64: signal: copy each test binary only once
Takashi Iwai <tiwai@suse.de>
ALSA: core: Serialize snd_refcount put and sync
Youngsung Ahn <ays511.kr@gmail.com>
RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]
Youngsung Ahn <ays511.kr@gmail.com>
RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]
Bob Pearson <rpearsonhpe@gmail.com>
RDMA/rxe: Replace paylen by payload
Bob Pearson <rpearsonhpe@gmail.com>
RDMA/rxe: Fix ref error in rxe_av.c
Chengguang Xu <cgxu519@mykernel.net>
RDMA/rxe: Change variable and function argument to proper type
Bob Pearson <rpearsonhpe@gmail.com>
RDMA/rxe: Lookup kernel AH from ah index in UD WQEs
Bob Pearson <rpearsonhpe@gmail.com>
RDMA/rxe: Replace ah->pd by ah->ibah.pd
Bob Pearson <rpearsonhpe@gmail.com>
RDMA/rxe: Create AH index and return to user space
Bob Pearson <rpearsonhpe@gmail.com>
RDMA/rxe: Move AV from rxe_send_wqe to rxe_send_wr
Youngsung Ahn <ays511.kr@gmail.com>
RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()
Takashi Iwai <tiwai@suse.de>
ALSA: pcm: Add refcount for races between drain and unlink
Takashi Iwai <tiwai@suse.de>
ALSA: Add simple refcount helper functions
Takashi Iwai <tiwai@suse.de>
ALSA: pcm: Use deferred fasync helper
Fuad Tabba <fuad.tabba@linux.dev>
irqchip/gic-v3-its: Don't free the tables of an enabled ITS
Fuad Tabba <fuad.tabba@linux.dev>
irqchip/gic-v3-its: Don't free a vPE table shared with another ITS
Steven Price <steven.price@arm.com>
irqchip/gic-v3-its: Share ITS tables with a non-trusted hypervisor
Marc Zyngier <maz@kernel.org>
irqchip/gic-v3-its: Split allocation from initialisation of its_node
Johan Hovold <johan+linaro@kernel.org>
irqchip/gic-v3-its: Use irq_domain_create_hierarchy()
Marc Zyngier <maz@kernel.org>
irqchip/gic-v3-its: Reset each ITS's BASERn register before probe
Valentin Schneider <valentin.schneider@arm.com>
irqchip/gic-v3-its: Postpone LPI pending table freeing and memreserve
Valentin Schneider <valentin.schneider@arm.com>
irqchip/gic-v3-its: Give the percpu rdist struct its own flags field
Fuad Tabba <fuad.tabba@linux.dev>
irqchip/gic-v3-its: Clear vpt_page after freeing the pending table
Carolina Jubran <cjubran@nvidia.com>
IB/IPoIB: Cancel normal flush work on device stop
Sagi Maimon <maimon.sagi@gmail.com>
net: axienet: free outstanding TX buffers in axienet_dma_bd_release()
Kyrylo Biryuk <illofspeed@gmail.com>
ata: libahci: re-enable FBS after error handling on a port multiplier
Long Zhao <longzhao@ambarella.com>
dt-bindings: vendor-prefixes: add Ambarella
Xingui Yang <yangxingui@huawei.com>
scsi: libsas: Fix out-of-bounds memcpy() in sas_ssp_task_response()
Nicolai Buchwitz <nb@tipi-net.de>
net/mlx5e: use skb_share_check() in the loopback selftest hook
Nicolai Buchwitz <nb@tipi-net.de>
net: stmmac: selftests: use skb_share_check() in the loopback receive hook
Nicolai Buchwitz <nb@tipi-net.de>
net: selftests: use skb_share_check() in the loopback receive hook
Kiran K <kiran.k@intel.com>
Bluetooth: btintel: Zero version data before parsing TLVs
Laxman Acharya Padhya <acharyalaxman8848@gmail.com>
Bluetooth: btintel: propagate version TLV parsing errors
Cen Zhang <zzzccc427@gmail.com>
Bluetooth: 6lowpan: Drain RCU readers on registration failure
Cen Zhang <zzzccc427@gmail.com>
Bluetooth: hci_core: Keep RCU protection through LTK filtering
Hitalo Souza <enghitalo@gmail.com>
Bluetooth: Add missing newline to bt_dev_{err,warn}_ratelimited()
Cen Zhang <zzzccc427@gmail.com>
Bluetooth: 6LoWPAN: Use RCU-safe device list removal
Pauli Virtanen <pav@iki.fi>
Bluetooth: L2CAP: hold chan in l2cap_ecred_conn_rsp()
Mohamad Raizudeen <raizudeen.kerneldev@gmail.com>
PCI: Fix out-of-bounds MMIO read in nvme_disable_and_flr()
Marek Szyprowski <m.szyprowski@samsung.com>
ARM: 9519/1: dma-mapping: Fix wrong free function in __iommu_alloc_simple() error path
Karl Mehltretter <kmehltretter@gmail.com>
ARM: 9492/1: alignment: fix LSR #32 and ASR #32 offset decoding
Atul Akella <atul.akella@gmail.com>
rpmsg: virtio: fix error handling in TX buffer wait
Patrick Oppenlander <patrick.oppenlander@gmail.com>
rpmsg: virtio: EPOLLOUT support
Dr. David Alan Gilbert <linux@treblig.org>
rpmsg: virtio: Remove uncallable offchannel functions
Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
rpmsg: core: add API to get MTU
Avi Weiss <thnkslprpt@gmail.com>
rpmsg: mtk: release channel OF node on device teardown
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm8510: Fix definition of ADC Inversion Switch control
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm8750: Fix definition of ALC Capture NG Type control
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm5100: Fix definition of EQ3 Band 1 Volume control
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm8737: Fix definition of zero cross switches
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm_hubs: Fix definition of MIXINR to MIXOUTR volume control
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm8955: Fix definition of Treble Cutoff control
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm8994: Fix definition of WM8958 noise gate hold time controls
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm8985: Fix definition of ADC 128x Oversampling control
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm8983: Fix definition of ADC 128x Oversampling control
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm8991: Fix definition of LOMIX AINLMUX Bypass Volume control
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm8991: Fix definition of right input PGA controls
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm8990: Fix definition of LOMIX AINLMUX Bypass Volume control
HyeongJun An <sammiee5311@gmail.com>
ASoC: codecs: wm8990: Fix definition of right input PGA controls
Tim Douglas <me@timdoug.com>
serial: pmac_zilog: report received breaks
Cen Zhang <zzzccc427@gmail.com>
ALSA: pcm: Unlink substreams before releasing them
Julian Anastasov <ja@ssi.bg>
ipvs: fix buffer overflow when sending sync messages
Karl Mehltretter <kmehltretter@gmail.com>
thermal: ti-soc-thermal: Fix the return value in ti_bandgap_get_sensor_data() kernel-doc
Florian Fainelli <florian.fainelli@broadcom.com>
tools/thermal/tmon: Fix string truncation warning in optarg copy
Weigang He <geoffreyhe2@gmail.com>
thermal/drivers/sprd: validate the sensor id from the device tree
Takashi Iwai <tiwai@suse.de>
ALSA: usb-audio: Use fixed control index for us16x08 mixer elements
Cen Zhang <zzzccc427@gmail.com>
ALSA: vmaster: Serialize hook registration with control callbacks
Takashi Iwai <tiwai@suse.de>
ALSA: line6: Use kzalloc() for PCM buffer allocation
Takashi Iwai <tiwai@suse.de>
ALSA: jack: Fix kctl free at error in snd_jack_kctl_new()
Amadeusz Sławiński <amade@asmblr.net>
ALSA: pcm: Fix driver_tstamp value reporting
Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
ocfs2: validate chunk and block counts of the local quota file
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: fix possible deadlock between nfs_sync_rwlock and fs_reclaim
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: retain all security xattrs during inode creation
Zhiling Zou <zhilinz@nebusec.ai>
lib: validate in-memory LZ4 chunk length
Karl Mehltretter <kmehltretter@gmail.com>
sh: sh7785lcr: Register the PCA9564 controller as I2C bus 0
bui duc phuc <phucduc.bui@gmail.com>
ASoC: atmel-i2s: use optional API for gclk
bui duc phuc <phucduc.bui@gmail.com>
ASoC: atmel-i2s: use optional API for muxclk
bui duc phuc <phucduc.bui@gmail.com>
ASoC: atmel-i2s: fix MCK generator error handling
bui duc phuc <phucduc.bui@gmail.com>
ASoC: imx-pcm-rpmsg: Fix imx_rpmsg_pcm_close() being skipped on rollback
bui duc phuc <phucduc.bui@gmail.com>
ASoC: atmel: atmel-pcm-pdc: Fix atmel_pcm_close() being skipped on rollback
bui duc phuc <phucduc.bui@gmail.com>
ASoC: amd: vangogh: Fix acp5x_dma_close() being skipped on rollback
bui duc phuc <phucduc.bui@gmail.com>
ASoC: amd: renoir: Fix acp_pdm_dma_close() being skipped on rollback
bui duc phuc <phucduc.bui@gmail.com>
ASoC: amd: raven: Fix acp3x_dma_close() being skipped on rollback
Palla Raghunath <raghunathpalla.0209@gmail.com>
nvmet-fc: don't drop the last assoc reference in nvmet_fc_delete_ctrl()
Surabhi Gogte <sgogte@purestorage.com>
nvme-tcp: store and use the caller's network namespace
Peijie Shao <shaopeijie@cestc.cn>
nvme-tcp: fix selinux denied when calling sock_sendmsg
Keith Busch <kbusch@kernel.org>
nvme: tcp: split controller bringup handling
Heiko Carstens <hca@linux.ibm.com>
s390/uprobes: Fix off-by-one bug in emulated PER handling
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
clk: qcom: rcg2: Clear force enable after rate failure
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
clk: qcom: rcg2: Propagate force-enable status errors
Abel Vesa <abel.vesa@oss.qualcomm.com>
clk: qcom: mmcc-sdm660: Fix MDSS AHB clock HWCG register offset
Abel Vesa <abel.vesa@oss.qualcomm.com>
clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset
Yuho Choi <oss.patchbox@gmail.com>
bus: arm-cci: Drop cci-control-port node reference in __cci_ace_get_port()
Yuho Choi <oss.patchbox@gmail.com>
bus: arm-cci: Drop CPU node reference in cci_ace_init_ports()
Linkai Gong <gonglinkai@kylinos.cn>
char: scx200_gpio: check cdev_add() return value
Weigang He <geoffreyhe2@gmail.com>
thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove
Yogesh Gaur <yogeshgaur.83@gmail.com>
comedi: pcmuio: validate the IRQs supplied by userspace
Yogesh Gaur <yogeshgaur.83@gmail.com>
comedi: pcmmio: validate the IRQ supplied by userspace
Yogesh Gaur <yogeshgaur.83@gmail.com>
comedi: dmm32at: validate the IRQ supplied by userspace
Yogesh Gaur <yogeshgaur.83@gmail.com>
comedi: dt2814: validate the IRQ supplied by userspace
Yogesh Gaur <yogeshgaur.83@gmail.com>
comedi: ni_atmio16d: validate the IRQ supplied by userspace
Yogesh Gaur <yogeshgaur.83@gmail.com>
comedi: comedi_parport: validate the IRQ supplied by userspace
Thomas Fourier <fourier.thomas@gmail.com>
net: alacritech: fix dma_free_coherent() in error path
Tapio Reijonen <tapio.reijonen@vaisala.com>
serial: max310x: don't clobber the TX break bit in set_termios
Jiayuan Chen <jiayuan.chen@linux.dev>
tcp_hybla: fix divide by zero on rtt0 == 0
Jiayuan Chen <jiayuan.chen@linux.dev>
tcp_bic: fix divide by zero on max_increment == 0
Chien Wong <m@xv97.com>
wifi: mac80211: fix encryption tailroom
Haitam Lazaar <haitam@lazaarsec.com>
RDMA/siw: Enforce IB_ACCESS_REMOTE_READ for read responses
Luca Leonardo Scorcia <l.scorcia@gmail.com>
clocksource/drivers/timer-mediatek: Fix random crash at boot
Joas Antonio dos Santos <joasantonio108@gmail.com>
calipso: hash the cache key, not the option start, in calipso_cache_add()
Cen Zhang <zzzccc427@gmail.com>
ALSA: rawmidi: Drain input work before freeing the runtime
Myeonghun Pak <mhun512@gmail.com>
fbdev: gxt4500: Release WC setup on probe failure
Jiale Yao <yaojiale02@163.com>
platform/olpc: Reserve space for a string terminator
Aleksandrova Alyona <aga@itb.spb.ru>
platform/x86: intel_telemetry: initialize default trace verbosity
Dan Carpenter <error27@gmail.com>
mm/hmm/test: reject overflowing page counts
Jiale Yao <yaojiale02@163.com>
wifi: ath11k: avoid IDR mutation during vif mgmt TX cleanup
Jiale Yao <yaojiale02@163.com>
wifi: ath11k: avoid IDR mutation during pending mgmt TX cleanup
Jiale Yao <yaojiale02@163.com>
wifi: ath10k: avoid IDR mutation during TX cleanup
Kunwu Chan <kunwu.chan@gmail.com>
rcutorture: Fix divide-by-zero with fwd_progress_div=1
bui duc phuc <phucduc.bui@gmail.com>
ASoC: codecs: rt5659: propagate GPIO errors
Roberto Bergantinos Corpas <rbergant@redhat.com>
nfs: set gencount on protocol-specific remove
Haotian Zhang <vulab@iscas.ac.cn>
mtd: rawnand: pl353: fix clk reference leak in pl35x_nfc_setup_interface()
bui duc phuc <phucduc.bui@gmail.com>
power: supply: generic-adc-battery: Propagate charged GPIO errors
Sebastian Reichel <sre@kernel.org>
power: supply: generic-adc-battery: convert to managed resources
Filipe Manana <fdmanana@suse.com>
btrfs: qgroup: fix swapped blocks existence check when tracing after COW
Qu Wenruo <wqu@suse.com>
btrfs: qgroup: do not treat "ret > 0" as error when deleting a qgroup
Filipe Manana <fdmanana@suse.com>
btrfs: fix off by one super block end offset calculation when writing super blocks
Jiale Yao <yaojiale02@163.com>
ACPI: PCI: pci_link: clear driver_data before free
Adrián Larumbe <adrian.larumbe@collabora.com>
drm/panfrost: Explicitly enable MMU interrupts at device init
Prathamesh Deshpande <prathameshdeshpande7@gmail.com>
RDMA/mlx5: Cancel software CQ notifications before teardown
Mark Zhang <markzhang@nvidia.com>
RDMA/mlx5: Support driver APIs pre_destroy_cq and post_destroy_cq
Prathamesh Deshpande <prathameshdeshpande7@gmail.com>
RDMA/mlx5: Cancel deferred page-fault EQ work before teardown
Linkai Gong <gonglinkai@kylinos.cn>
mailbox: arm_mhuv2: time out if the receiver never comes up
Beleswar Padhi <b-padhi@ti.com>
mailbox: ti-msgmgr: Read exact number of trailing message bytes
Sang-Hoon Choi <csh0052@gmail.com>
xhci: dbc: lock the minor IDR on registration failure
Leon Romanovsky <leon@kernel.org>
PCI/P2PDMA: Gate the host bridge whitelist warning on verbose
Leon Romanovsky <leon@kernel.org>
PCI/P2PDMA: Safely terminate ACS redirect lists
Kees Cook <keescook@chromium.org>
seq_buf: Introduce DECLARE_SEQ_BUF and seq_buf_str()
Matthew Wilcox (Oracle) <willy@infradead.org>
tracing: Move readpos from seq_buf to trace_seq
Sergey Senozhatsky <senozhatsky@chromium.org>
seq_buf: Add seq_buf_do_printk() helper
Antoni Pokusinski <apokusinski01@gmail.com>
rtc: abx80x: properly handle shared IRQs
Antoni Pokusinski <apokusinski01@gmail.com>
rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()
Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: init radiotap iter after length checks
Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: kill wake_txqs_tasklet on unregistration
Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: mesh: use hlist_add_head_rcu()
Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: clear fragment cache entry 'is_protected'
Johannes Berg <johannes.berg@intel.com>
wifi: ath6kl: don't take RTNL in del_virtual_intf
Takashi Iwai <tiwai@suse.de>
ALSA: hda: intel: Cancel delayed work at shutdown, too
Takashi Iwai <tiwai@suse.de>
ALSA: line6: Fix potential OOB write in line6_capture_copy()
Takashi Iwai <tiwai@suse.de>
ALSA: line6: Reject too small max packet sizes
Vincent Mailhol <mailhol.vincent@wanadoo.fr>
sound: usb: remove third argument of usb_maxpacket()
Jan Beulich <jbeulich@suse.com>
x86/PVH: don't truncate initrd address/size
Gui-Dong Han <hanguidong02@gmail.com>
xen/blkback: Prevent missed completion when draining I/O
Jake Labelle <southampton.jake.labelle@gmail.com>
nilfs2: reject non-regular inodes in dsync recovery
Rosen Penev <rosenp@gmail.com>
crypto: talitos - init tasklets before requesting IRQs
Rosen Penev <rosenp@gmail.com>
crypto: talitos - Use platform_get_irq() to retrieve interrupt
Rosen Penev <rosenp@gmail.com>
crypto: talitos - use devm_platform_ioremap_resource()
Rosen Penev <rosenp@gmail.com>
crypto: talitos - allocate channels with main struct
Takashi Iwai <tiwai@suse.de>
ALSA: hda: Avoid non-operational GPU warning at regular device removal
Takashi Iwai <tiwai@suse.de>
ALSA: core: Add missing barriers for power_ref vs card->shutdown
Takashi Iwai <tiwai@suse.de>
ALSA: core: Check shutdown flag at D0 power-state, too
Takashi Iwai <tiwai@suse.de>
ALSA: core: Fix unintuitive behavior of snd_power_ref_and_wait()
Takashi Iwai <tiwai@suse.de>
ALSA: core: Remove superfluous CONFIG_PM
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
ALSA: core: Make snd_card_disconnect() return void
Takashi Iwai <tiwai@suse.de>
ALSA: core: Simplify snd_power_ref_and_wait() with the standard macro
Takashi Iwai <tiwai@suse.de>
ALSA: usb-audio: Fix invalid UAC2/3 mixer unit matrix evaluation
Takashi Iwai <tiwai@suse.de>
ALSA: usb-audio: Check mixer matrix size for UAC2/3 at parsing
Takashi Iwai <tiwai@suse.de>
ALSA: hda: Fix potential UAF for gating jack
Krzysztof Wilczyński <kwilczynski@kernel.org>
PCI/sysfs: Handle a malformed _DSM result in acpi_attr_is_visible()
Krzysztof Wilczyński <kwilczynski@kernel.org>
PCI/sysfs: Stop reporting _DSM failures as -EPERM
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: common: Handle constraint return value in FE startup
Melissa Wen <mwen@igalia.com>
drm/amd/display: use right type for amdgpu_dc_performance event entries
Melissa Wen <mwen@igalia.com>
drm/amd/display: remove duplicated prev_p_state_change_support assignment
Melissa Wen <mwen@igalia.com>
drm/amd/display: assign missing trace entry in amdgpu_dm_dc_clocks_state
Ting-Han Hou <ue081723@gmail.com>
checkkconfigsymbols.py: Parse Git status output line by line
bui duc phuc <phucduc.bui@gmail.com>
ASoC: rockchip: rockchip_i2s: Handle runtime PM resume failures in set_fmt
Ahmed Naseef <naseefkm@gmail.com>
wifi: mt76: mt7615: read MT7663 temperature from the correct offset
Jiale Yao <yaojiale02@163.com>
wifi: mt76: usb: fix source overread in mt76u_copy
Jiale Yao <yaojiale02@163.com>
wifi: mt76: mt76x02: validate RX padding before use
Jiale Yao <yaojiale02@163.com>
pinctrl: sprd: free maps on DT map failure
Leizhen Zhang <lzsx618@gmail.com>
gen_init_cpio: stop parsing on lines with a missing argument list
Takashi Iwai <tiwai@suse.de>
ALSA: caiaq: Allow zero-length packet handling for EP1
Priyank Rathod <rathodpriyank@google.com>
PCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices()
Robert Richter <rrichter@amd.com>
PCI/AER: Forward RCH downstream port-detected errors to the CXL.mem dev handler
Dave Jiang <dave.jiang@intel.com>
PCI/AER: Add optional logging callback for correctable error
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: reject inconsistent xattr bucket during defrag
Wilson Felipe Pereira <wfelipe@google.com>
init/main: fix false-positive kernel panic on environment variable overwrite
Wilson Felipe Pereira <wfelipe@google.com>
init/main: fix off-by-one in argv_init cleanup
Florian Schmaus <florian.schmaus@codasip.com>
selftests/epoll: fix race condition in multi-waiter wakeup tests
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: fix deadlock in inline-data truncate transactions
Petr Vorel <pvorel@suse.cz>
checkpatch: skip CamelCase cache for --no-tree without root
Ryusuke Konishi <konishi.ryusuke@gmail.com>
nilfs2: fix link count underflow when removing corrupted directory
Marc Kleine-Budde <mkl@pengutronix.de>
spi: spi-sun4i: sun4i_spi_fill_fifo(): always apply A10 FIFO fill level workaround
Marc Kleine-Budde <mkl@pengutronix.de>
spi: spi-sun4i: sun4i_spi_transfer_one(): fix transfers for SUN4I_FIFO_DEPTH
Pengpeng Hou <pengpeng@iscas.ac.cn>
sh: defconfig: Enable the current M66592 UDC symbol
Florian Fuchs <fuchsfl@gmail.com>
sh: uaccess: Require offsettable operands for 64-bit user access
Chen-Yu Tsai <wens@kernel.org>
arm64: dts: allwinner: sun50i-h6: Add missing IOMMU for video engine
Chen-Yu Tsai <wens@kernel.org>
arm64: dts: allwinner: sun50i-h6: Add missing SRAM region for video engine
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Validate memcpy configuration
Julia Lawall <Julia.Lawall@inria.fr>
dmaengine: ste_dma40: fix typo in comment
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Validate fixed physical channel indexes
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix V4B event group mapping
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix event group bounds
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix logical channel bounds check
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Reject direction changes after allocation
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Validate DMA specifier length
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Validate disabled channel indexes
Rosen Penev <rosenp@gmail.com>
dmaengine: ste_dma40: turn d40_base phy_chans into a flexible array
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Put the LCPA SRAM node
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix probe LCLA free
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix LCLA allocation order
Linus Walleij <linus.walleij@linaro.org>
dmaengine: ste_dma40: Use managed resources
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Return IRQ_NONE when no interrupt is pending
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Handle runtime PM resume errors
Sakari Ailus <sakari.ailus@linux.intel.com>
dmaengine: ste_dma40: Remove redundant pm_runtime_mark_last_busy() calls
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Check runtime PM in IRQ
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix probe runtime PM disable
Linus Walleij <linus.walleij@linaro.org>
dmaengine: ste_dma40: Add dev helper variable
Linus Walleij <linus.walleij@linaro.org>
dmaengine: ste_dma40: Get LCPA SRAM from SRAM node
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix failed start cleanup
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix physical cyclic capability
Yang Xiuwei <yangxiuwei@kylinos.cn>
floppy: avoid NULL deref in reset_interrupt when cont is cleared
Karl Mehltretter <kmehltretter@gmail.com>
floppy: flush pending work before releasing resources on init failure
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
NFS: filelayout: calculate dense stripe width in 64 bits
Logan Gunthorpe <logang@deltatee.com>
dmaengine: plx_dma: fix NULL pointer deref in plx_dma_isr()
Logan Gunthorpe <logang@deltatee.com>
dmaengine: ioat: disable relaxed ordering before registering the device
Dan Carpenter <error27@gmail.com>
wifi: carl9170: NUL terminate string in debugfs
Dan Carpenter <error27@gmail.com>
wifi: b43legacy: debugfs: NUL terminate string in debugfs
Dan Carpenter <error27@gmail.com>
wifi: b43: don't pass unterminated string to sscanf()
Dominic White <github@singe.za.net>
wifi: cfg80211: allow zero HE OBSS PD offsets
Xueqin Luo <luoxueqin@kylinos.cn>
cpufreq: sti: avoid NULL dereference in dev_err()
Xueqin Luo <luoxueqin@kylinos.cn>
cpufreq: sparc-us2e: fix frequency table index copy-paste error
Hongyan Xu <getshell@seu.edu.cn>
ASoC: mt6359-accdet: manage private workqueues with devres
Yaozhong Li <yaozhonguwl@gmail.com>
arm64: dts: rockchip: disable unused i2s0 on rk3399-firefly
Yaozhong Li <yaozhonguwl@gmail.com>
arm64: dts: rockchip: fix analog headphone output on rk3399-firefly
Linus Walleij <linusw@kernel.org>
ARM: dts: ux500: Use AB8505 charger compatible
Linus Walleij <linus.walleij@linaro.org>
ARM: dts: AB8505: Enable charging options
Detlev Casanova <detlev.casanova@collabora.com>
arm64: dts: rockchip: Rename rk3328 HDMI audio card
Jiale Yao <yaojiale02@163.com>
ASoC: rt711-sdca: always cancel jack work on remove
Jiale Yao <yaojiale02@163.com>
ASoC: rt711-sdw: always cancel jack work on remove
Jiale Yao <yaojiale02@163.com>
ASoC: rt5682-sdw: always cancel jack work on remove
Linus Walleij <linusw@kernel.org>
power: supply: ab8500_fg: Avoid reserved AB8505 CCConf bit
Linus Walleij <linusw@kernel.org>
power: supply: ab8500_charger: Recover inactive AB8505 charger
Linus Walleij <linusw@kernel.org>
power: supply: ab8500_charger: Skip absent AB8505 main charger
Linus Walleij <linusw@kernel.org>
power: supply: ab8500_charger: Handle detection errors
Linus Walleij <linusw@kernel.org>
power: supply: ab8500_charger: Respect AB8505 register layout
Linus Walleij <linusw@kernel.org>
power: supply: ab8500_btemp: Fix event temperature reporting
Jan Stancek <jstancek@redhat.com>
.gitignore: drop Module.markers
Linus Walleij <linusw@kernel.org>
dt-bindings: power: supply: ab8500: Add AB8505 charger
Chen-Yu Tsai <wens@kernel.org>
dt-bindings: media: sun4i-a10-video-engine: Fix IOMMU count for H6
Li Youhong <liyouhong@kylinos.cn>
md/raid5: drain released_stripes before destroying the cache
Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
md: take reconfig_mutex when enabling PPL on an inactive array
Laurence Oberman <loberman@redhat.com>
scsi: st: Record the tape position after a successful MTLOAD
Laurence Oberman <loberman@redhat.com>
scsi: st: Restore changed drive settings after reset also for MTLOAD and MTRETEN
Niklas Cassel <cassel@kernel.org>
scsi: scsi_debug: Refuse a negative physblk_exp
Oleg Keri <okerixx@gmail.com>
drm/msm/dp: don't report link training success after a reinit
Yuho Choi <dbgh9129@gmail.com>
soc/tegra: flowctrl: Release OF node reference on error
Igor Velkov <iav@iav.lv>
arm64: dts: amlogic: meson-sm1-odroid-hc4: run the SPI NOR at 40 MHz
Igor Velkov <iav@iav.lv>
arm64: dts: amlogic: meson-sm1-odroid-hc4: mux the SPI NOR HOLD# and WP# pins
Matthias Goergens <matthias.goergens@gmail.com>
isofs: return long Joliet names whole
Slavin Liu <bolin.liu@seu.edu.cn>
clocksource/drivers/dbx500-prcmu: Check timer register mapping
Thorsten Blum <blum@kernel.org>
hwrng: intel - return -ENOMEM when ioremap() fails
Liu Dalin <liudalin@kylinsec.com.cn>
rtc: ftrtc010: fix integer overflow in time calculation
Thorsten Blum <blum@kernel.org>
hwrng: intel - return -ENOMEM when kmalloc_obj() fails
Herbert Xu <herbert@gondor.apana.org.au>
crypto: tcrypt - Avoid reading req->base after submission
Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
crypto: tcrypt - Drop leading newlines from prints
Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
crypto: tcrypt - Use pr_info/pr_err
Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
crypto: tcrypt - remove all multibuffer ahash tests
Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
crypto: tcrypt - add asynchronous speed test for SM3
Karl Mehltretter <kmehltretter@gmail.com>
crypto: atmel - handle authenc requests without plaintext
Hemanth Selam <hemanth.selam@gmail.com>
nvdimm/pmem: Release gendisk on probe failure
Mikko Perttunen <mperttunen@nvidia.com>
drm/tegra: Drop reference on postfence
Mikko Perttunen <mperttunen@nvidia.com>
drm/tegra: Don't pass an ERR_PTR to drm_syncobj_replace_fence()
Mikko Perttunen <mperttunen@nvidia.com>
drm/tegra: Fix syncobj_in wait return value check
Chuanhong Guo <gch981213@gmail.com>
pinctrl: mediatek: mt7629: fix the 2.4 GHz Wi-Fi pin mode array
Linkai Gong <gonglinkai@kylinos.cn>
misc: enclosure: fix UAF on device_register() failure
Weigang He <geoffreyhe2@gmail.com>
ARM: vexpress: fix device_node refcount leak in vexpress_smp_dt_prepare_cpus()
Weigang He <geoffreyhe2@gmail.com>
ARM: vexpress: fix device_node refcount leak in vexpress_flags_set()
Liu Dalin <liudalin@kylinsec.com.cn>
rtc: ftrtc010: fix clock resource leak on probe failure
André Draszik <andre.draszik@linaro.org>
rtc: ftrtc010: drop needless struct ftrtc010_rtc::rtc_dev member
Karl Mehltretter <kmehltretter@gmail.com>
OPP: Fix the return value in dev_pm_opp_get_of_node() kernel-doc
Lucas Costa <2000.costalucas@gmail.com>
staging: sm750fb: free cmap on framebuffer release
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drm/msm/mdp5: drop cursor pipe for msm8x76
Qingfang Deng <qingfang.deng@linux.dev>
ARM: mvebu: fix Cortex-A9 errata selection for Armada 38x
Matthias Goergens <matthias.goergens@gmail.com>
x86/hibernate: Ignore page-zero RAM in E820 checksum
Nicolo Giuliani <nicolo.giuliani6@studio.unibo.it>
dt-bindings: vendor-prefixes: Add Sophos
Chen Wang <unicorn_wang@outlook.com>
dt-bindings: vendor-prefixes: add milkv/sophgo
Icenowy Zheng <uwu@icenowy.me>
dt-bindings: vendor-prefixes: add Source Parts and Lctech names
Andreas Kemnade <andreas@kemnade.info>
rtc: bd70528: properly enable wakeup
Nguyễn Văn Cao Nguyên <nguyennvc@greennode.ai>
RDMA/irdma: Do not move a fresh RoCE QP to ERROR on RESET
Nicolas Schier <n.schier@fritz.com>
kconfig: tests: Provide defconfig outfile for savedefconfig
Hongyan Xu <getshell@seu.edu.cn>
RDMA/hfi1: quiesce SDMA asynchronous cleanup on exit
Hongyan Xu <getshell@seu.edu.cn>
RDMA/hfi1: shut down the trap timer before unregistering
Serhat Kumral <serhatkumral1@gmail.com>
RDMA/siw: Fix length of first chunk in siw_try_1seg()
Quanye Yang <quanyeyang@proton.me>
RDMA/rtrs-clt: Validate peer-supplied IO completion msg_id
Qingshuang Fu <fuqingshuang@kylinos.cn>
selftests/timers: clocksource-switch: Fix unchecked open()/read()
Quanye Yang <quanyeyang@proton.me>
RDMA/rtrs-clt: Don't WARN on unexpected info-response opcode
Karl Mehltretter <kmehltretter@gmail.com>
time: Prevent time64_to_tm() day truncation on 32-bit
Jiale Yao <yaojiale02@163.com>
RDMA/mad: Reject receive completions shorter than GRH
Quanye Yang <quanyeyang@proton.me>
RDMA/rtrs-clt: Reject invalid queue_depth from the peer
Yili Zhang <zhangyili01@baidu.com>
RDMA/nldev: Fix NULL deref in dumps of objects abandoned by DRIVER_FAILURE
Pengpeng Hou <hppiscas@163.com>
clk: si5351: fail prepare when PLL reset times out
Myeonghun Pak <mhun512@gmail.com>
clk: ti: adpll: unregister OF clock provider on remove
Dairui Zhang <zhangdairui@gmail.com>
IB/mad: fix UAF and double-free in RMPP receive reassembly
Ruoyu Wang <ruoyuw560@gmail.com>
media: venus: Drop session events without an instance
Selvin Xavier <selvin.xavier@broadcom.com>
RDMA/bnxt_re: Fix the PD and DPI table size
Selvin Xavier <selvin.xavier@broadcom.com>
RDMA/bnxt_re: Initialize wqe.flags in bnxt_re_post_srq_recv()
Selvin Xavier <selvin.xavier@broadcom.com>
RDMA/bnxt_re: Detect wrong sge_len passed for inline
Selvin Xavier <selvin.xavier@broadcom.com>
RDMA/bnxt_re: Fix integer overflow in send payload size computation
Finn Thain <fthain@linux-m68k.org>
swim3: Fix FDEJECT ioctl for exclusive open
Finn Thain <fthain@linux-m68k.org>
swim: Fix FDEJECT ioctl for exclusive open
Logan Odell <loganodell@google.com>
PCI/IOV: Read VF config values that need not match PF
Li RongQing <lirongqing@baidu.com>
IB/isert: Don't share drop_cmd_list across concurrent connection teardowns
Li RongQing <lirongqing@baidu.com>
RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment
Karl Mehltretter <kmehltretter@gmail.com>
soc: ti: k3-ringacc: Fix DMA ring initialization kernel-doc
Karl Mehltretter <kmehltretter@gmail.com>
soc: ti: k3-ringacc: Correct ring API kernel-doc
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192-mt6359: Fix error handling in MTKAIF calibration
Nícolas F. R. A. Prado via Alsa-devel <alsa-devel@alsa-project.org>
ASoC: mt8192: Remove function name log messages
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: Propagate errors in TDM DAI DAPM event handlers
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: Propagate mt8192_afe_gpio_request() errors in ADDA DAI
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: Handle regcache_sync() failure in runtime resume
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: check return values in mt8192_afe_gpio_init()
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: Propagate errors in mt8192_afe_gpio_request()
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: mt8192-afe-gpio: Use guard() for mutex locks
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: switch to devm_clk_get_optional()
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: fix MCK clock error handling
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: fix error handling in APLL enable functions
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: fix AFE clock error handling
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: fix APLL mux error handling
Ovidiu Panait <ovidiu.panait.rb@renesas.com>
spi: rspi: Fix DMA mode when the DMA controller is built as a module
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
spi: rspi: Get rid of unused struct rspi_plat_data
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
spi: spi-rspi: Add support to deassert/assert reset line
Niko Huuskonen <niko.huuskonen.00@gmail.com>
ALSA: caiaq: Fix the Kore controller key map
Arka Mondal <arka@arkamondal.net>
iio: dac: ad5758: Fix the offset calculation
Arka Mondal <arka@arkamondal.net>
iio: dac: ad5758: Reject out-of-range raw values
Chen-Yu Tsai <wenst@chromium.org>
drm/exynos/fimd: fix register offset type in fimd_trigger()
Runyu Xiao <runyu.xiao@seu.edu.cn>
ALSA: via82xx: use helper to activate DXS controls
Yishai Hadas <yishaih@nvidia.com>
RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it
Yishai Hadas <yishaih@nvidia.com>
RDMA/mlx5: Set RQ event handler for raw-packet QP
Yishai Hadas <yishaih@nvidia.com>
RDMA/mlx5: Set SRQ event handler before xarray insertion
Yishai Hadas <yishaih@nvidia.com>
RDMA/mlx5: Set WQ event handler before firmware RQ insertion
Yishai Hadas <yishaih@nvidia.com>
RDMA/hns: Pin CQ buffer writable to match device DMA write access
Ginger Li <ginger.jzllee@gmail.com>
wifi: mac80211: Fix a race when expiring a mesh path
Guanghui Feng <guanghuifeng@linux.alibaba.com>
iommu/vt-d: Fix IQE handling to cover all descriptors in submission range
Myeonghun Pak <mhun512@gmail.com>
PCI: aardvark: Disable PHY on probe failures
Linus Walleij <linusw@kernel.org>
ARM: dts: gemini: Use a level-high interrupt for TVE200
Fernando Fernandez Mancera <fmancera@suse.de>
netfilter: synproxy: fix reset of ct seqadj when reopening a connection
Akhil P Oommen <akhilpo@oss.qualcomm.com>
drm/msm/a6xx: Fix secondary rail vote in ARC votes
Daniel Palmer <daniel@0x0f.com>
m68k: apollo: Fix interrupt setup
WangYuli <wangyuli@uniontech.com>
MIPS: Only check -msym32 when need-compiler
Orgad Shaneh <orgads@gmail.com>
MIPS: Octeon: size the swiotlb for a modular OHCI platform driver
Aaron Kling <webgeek1234@gmail.com>
dt-bindings: vendor-prefixes: Add Retroid Pocket
Marek Vasut <marek.vasut+renesas@mailbox.org>
dt-bindings: vendor-prefixes: Add Retronix Technology Inc.
Adam Skladowski <a39.skl@gmail.com>
dt-bindings: vendor-prefixes: Add LeEco
Bruno Produit <bruno.produit@trailofbits.com>
hfs/hfsplus: serialize B-tree close against folio release
Aaron Kling <webgeek1234@gmail.com>
dt-bindings: vendor-prefixes: Add Chip Wealth Technology
Jagan Teki <jagan@edgeble.ai>
dt-bindings: vendor-prefixes: Document Chongzhou
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8183: Fix APLL enable error handling
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8183: Fix clock handling in mux disable path
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8183: Fix wrong clock cleanup on clk_set_parent() failure
Sudeep Holla <sudeep.holla@kernel.org>
ACPICA: Fix PCC OperationRegion command offsets
Breno Leitao <leitao@debian.org>
ACPICA: Fix memory leak in acpi_ds_create_field()
Xin Yin <yinxin.x@bytedance.com>
writeback: size foreign flushes by target wb dirty pages
Qingfang Deng <qingfang.deng@linux.dev>
mtd: block: prevent reclaim I/O during request processing
Jiebin Sun <jiebin.sun@intel.com>
perf c2c: Fix documented default coalesce fields
Muzaffer Kadir <muzafferkadir@mainlining.org>
dt-bindings: vendor-prefixes: Add General Mobile
Pengpeng Hou <hppiscas@163.com>
iio: accel: bma220: publish the SPI driver ACPI alias
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: rt5665: return cache sync errors from resume
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: rt5660: return cache sync errors from resume
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: rt5659: return cache sync errors from resume
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: rt5616: return cache sync errors from resume
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: rt1308: return cache sync errors from resume
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: rt1305: return cache sync errors from resume
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: rt1016: return cache sync errors from resume
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: rt1011: return cache sync errors from resume
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: nau8540: return cache sync errors from resume
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: ak4642: return cache sync errors from resume
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: adau17x1: return cache sync errors from resume
Slavin Liu <bolin.liu@seu.edu.cn>
ASoC: fsl_asrc: check the second front-end DMA channel
Shengjiu Wang <shengjiu.wang@nxp.com>
ASoC: fsl_asrc: use regmap_write_bits to update clock source registers
Dmitrii Tulnov <tulnov.dl@gmail.com>
kconfig: warn about malformed KCONFIG_PROBABILITY values
Myeonghun Pak <mhun512@gmail.com>
mfd: da9150: Balance IRQ wake on teardown
Myeonghun Pak <mhun512@gmail.com>
mfd: intel_quark_i2c_gpio: Manage the fixed-rate clock
Vincent Jardin <vjardin@free.fr>
dt-bindings: vendor-prefixes: add Free Mobile
Linus Walleij <linus.walleij@linaro.org>
dt-bindings: Add vendor prefixes
Lin, Meng-Bo <linmengbo0689@protonmail.com>
dt-bindings: vendor-prefixes: Add GPLUS
Icenowy Zheng <uwu@icenowy.me>
dt-bindings: vendor-prefixes: add Genesys Logic
Zongmin Zhou <zhouzongmin@kylinos.cn>
serial: sifive: fix off-by-one in console port bounds check
Ginger Li <ginger.jzllee@gmail.com>
media: i2c: ov5648: Fix a data race on state->streaming
Finn Thain <fthain@linux-m68k.org>
swim: Don't search beyond the first data mark
Finn Thain <fthain@linux-m68k.org>
swim: Revisit delays
Finn Thain <fthain@linux-m68k.org>
swim: Check drive ready bit
Finn Thain <fthain@linux-m68k.org>
swim: Deduplicate polling loops
Finn Thain <fthain@linux-m68k.org>
swim: Remove redundant RELAX actions
Finn Thain <fthain@linux-m68k.org>
swim: Fix buffer overflow
Finn Thain <fthain@linux-m68k.org>
swim: Don't use the mark register to read data
Finn Thain <fthain@linux-m68k.org>
swim: Check error register during sector read
Finn Thain <fthain@linux-m68k.org>
swim: Simplify return value initialization
Finn Thain <fthain@linux-m68k.org>
swim: Check for CRC errors
Finn Thain <fthain@linux-m68k.org>
swim: Handle FIFO timeout error
Finn Thain <fthain@linux-m68k.org>
swim: Add track zero recalibration delay
Finn Thain <fthain@linux-m68k.org>
swim: Recalibrate when drive is probed
Finn Thain <fthain@linux-m68k.org>
swim: Don't start motor until medium is present
Finn Thain <fthain@linux-m68k.org>
swim: Configure parameter memory
Luis Chamberlain <mcgrof@kernel.org>
swim: add helper for disk cleanup
Luis Chamberlain <mcgrof@kernel.org>
swim: simplify using blk_cleanup_disk() on swim_remove()
Finn Thain <fthain@linux-m68k.org>
swim: Perform ISM/IWM mode switching according to specs
Finn Thain <fthain@linux-m68k.org>
swim: Don't disable drive after every sector
Finn Thain <fthain@linux-m68k.org>
swim: Enable the drive when probing
Finn Thain <fthain@linux-m68k.org>
swim: Select appropriate drive once only
Finn Thain <fthain@linux-m68k.org>
swim: Assert strobe with stable outputs
Jiale Yao <yaojiale02@163.com>
crypto: ccp - kill v5 IRQ tasklet during teardown
Jiale Yao <yaojiale02@163.com>
crypto: ccp - kill v3 IRQ tasklet during teardown
Weili Qian <qianweili@huawei.com>
crypto: hisilicon/hpre - remove dma_free_coherent on NULL req->dst in ECDH
Wentao Liang <vulab@iscas.ac.cn>
RDMA/siw: Fix qp use-after-free in siw_get_base_qp()
Wentao Liang <vulab@iscas.ac.cn>
RDMA/mlx5: Fix RQ resource reference leak in mlx5_ib_wq_event()
Wentao Liang <vulab@iscas.ac.cn>
RDMA/cxgb4: Fix skb reference leak in rx_pkt()
Wentao Liang <vulab@iscas.ac.cn>
RDMA/cxgb4: Fix neigh reference leak in rx_pkt()
Kim Wooseok <5mghybrid@khu.ac.kr>
wifi: rtl8xxxu: free RX skb when URB submission fails
Bitterblue Smith <rtl8821cerfe2@gmail.com>
wifi: rtl8xxxu: Use dev_* instead of pr_info
Jeremy Bongio <jbongio@google.com>
RDMA/irdma: Use kvzalloc for lvl2 leafmem allocation
Jisheng Zhang <jszhang@kernel.org>
regulator: mp886x: fix pontential division by zero
Jisheng Zhang <jszhang@kernel.org>
regulator: mp886x: check get_voltage_sel() return value
Dmitry Antipov <dmantipov@yandex.ru>
leds: flash: Prevent using uninitialized variable in flash_fault_show()
Li RongQing <lirongqing@baidu.com>
RDMA/core: Fix partial copy of IPv6 flow_lbl in LAG hash skb
Cong Nguyen <congnt264@gmail.com>
leds: lm3692x: Fix regulator/gpio leak and wrong enabled state on last write failure
Haibo Chen <haibo.chen@nxp.com>
leds: pca9532: Check i2c_smbus_read_byte_data() return value
Andrea Parri <parri.andrea@gmail.com>
pstore: reject persistent RAM zones too small for the buffer header
Andrea Parri <parri.andrea@gmail.com>
pstore: don't leave an ERR_PTR in the ramoops zone pointer
Neil Armstrong <neil.armstrong@linaro.org>
dt-bindings: vendor-prefixes: add vendor prefix for Nexperia B.V.
Pengpeng Hou <hppiscas@163.com>
pmdomain: imx: Propagate SCU provider registration failures
Xiang Mei <xmei5@asu.edu>
fs/ntfs3: validate $SDH entry size in ntfs_insert_security
Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3: validate EA entry layout against ef->size in ntfs_read_ea
Zhan Xusheng <zhanxusheng1024@gmail.com>
fs/ntfs3: fix valid_size not being updated in attr_allocate_frame()
Xiang Mei (Microsoft) <xmei5@asu.edu>
fs/ntfs3: check INDEX_ROOT resident size before use in ntfs_read_mft()
Daniel Borkmann <daniel@iogearbox.net>
bpf, lsm: Reject writes into the BPF LSM program context
Hou Tao <houtao1@huawei.com>
bpf: Factor out helpers for ctx access checking
Triet Hoang <triet.hoang.dev@gmail.com>
clk: raspberrypi: Handle cpufreq device registration failure
Karl Asseily <karl@asseily.com>
dt-bindings: vendor-prefixes: add ESS Technology
Felix Gu <ustc.gu@gmail.com>
spi: mxic: fix ps_clk leak in runtime resume
Christian Loehle <christian.loehle@arm.com>
ACPI: CPPC: Validate the _CPC package header
Li RongQing <lirongqing@baidu.com>
RDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in GET_CONTEXT
Slavin Liu <bolin.liu@seu.edu.cn>
crypto: atmel-sha - reject initialization without a device
Julian Braha <julianbraha@gmail.com>
kconfig: fix extra output from savedefconfig on out-of-range defaults
Masahiro Yamada <masahiroy@kernel.org>
kconfig: default to zero if int/hex symbol lacks default property
Masahiro Yamada <masahiroy@kernel.org>
kconfig: remove unneeded symbol_empty variable
Vladimir Oltean <vladimir.oltean@nxp.com>
PCI: cadence: Preserve all error codes in cdns_plat_pcie_probe()
Nikolay Borisov <nik.borisov@suse.com>
ata: sata_dwc_460ex: Don't enable interrupt if libATA core registration fails
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
ata: sata_dwc_460ex: Use temporary variable for struct device
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
ata: sata_dwc_460ex: Use devm_platform_*ioremap_resource() APIs
Hari Mishal <harimishal1@gmail.com>
drm/amd/pm: bound SCLK FCW range entries to the table size
Pengpeng Hou <hppiscas@163.com>
clk: milbeaut: Return divider update timeouts
Zhihao Cheng <chengzhihao1@huawei.com>
md/raid5: setup_conf: Fix null-ptr-def in error handling path
Yogesh Gaur <yogeshgaur.83@gmail.com>
md/raid5: don't BUG() on an inconsistent reshape state from the superblock
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
md: reject v0.90 arrays with too many devices
Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
staging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers
Bart Van Assche <bvanassche@acm.org>
scsi: pm8001: Fix SATA FIS offset in struct hw_event_resp
Slavin Liu <bolin.liu@seu.edu.cn>
ACPI: tables: handle failed initrd override mappings
Chen-Yu Tsai <wenst@chromium.org>
arm64: dts: mediatek: mt8173: Fix MFG_ASYNC power domain clock
Sarthak Sharma <sarthak.sharma@arm.com>
mm/gup_test: report actual pinned bytes
Sarthak Sharma <sarthak.sharma@arm.com>
mm/gup_test: safely calculate GUP batch size
Samuel Moelius <sam.moelius@trailofbits.com>
mm/gup_test: reject wrapped user ranges
Weiming Shi <bestswngs@gmail.com>
ntfs3: fix out-of-bounds read in ntfs_read_mft()
Karl Mehltretter <kmehltretter@gmail.com>
loadpin: Fix stale KEXEC_VERIFY_SIG reference in documentation
Rosen Penev <rosenp@gmail.com>
dmaengine: mv_xor: kill tasklet on channel add error path
Yonghao Zhang <hyz3367@gmail.com>
remoteproc: core: Set trace buffer name for diagnostics
Li RongQing <lirongqing@baidu.com>
RDMA/uverbs: Make CQ handle mandatory for WQ creation
Miles Krause <mileskrause5200@gmail.com>
memory: emif: fix device_node reference leak on np_ddr
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
memory: emif: Convert to platform remove callback returning void
Gregory CLEMENT <gregory.clement@bootlin.com>
phy: cadence: Sierra: Do not modify register when getting parent clock
Linkai Gong <gonglinkai@kylinos.cn>
firmware: imx: dsp: fix mailbox channel leak on kasprintf failure
Karl Mehltretter <kmehltretter@gmail.com>
wifi: mac80211: Fix the return value in mesh_path_add() kernel-doc
Thomas Weißschuh <linux@weissschuh.net>
microblaze: Pass -m{big,little}-endian through KBUILD_CPPFLAGS
Thomas Weißschuh <linux@weissschuh.net>
microblaze: uaccess: Zero out destination on failed get_user()
Weiming Shi <bestswngs@gmail.com>
fs/ntfs3: zero frame pages on read error
Matthew Wilcox (Oracle) <willy@infradead.org>
ntfs: Do not kmap page cache pages for compression
Matthew Wilcox (Oracle) <willy@infradead.org>
ntfs3: Remove calls to set/clear the error flag
Ian Rogers <irogers@google.com>
perf header: Fix potential memory corruption in cpu_cache_level__read
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
ACPI: video: Fix backlight unregistration ordering
Karl Mehltretter <kmehltretter@gmail.com>
ALSA: control: Fix virtual master creation reference in kernel-doc
Karl Mehltretter <kmehltretter@gmail.com>
gfs2: Fix the return value in gfs2_get_link() kernel-doc
Karl Mehltretter <kmehltretter@gmail.com>
ata: libata-scsi: Fix ata_scsi_hotplug() reference in kernel-doc
Karl Mehltretter <kmehltretter@gmail.com>
spi: Fix the return value in spi_new_ancillary_device() kernel-doc
Chaithanya Lagisetty <nagachaithanya9911@gmail.com>
x86/svm: Avoid sign extension of SVM_EVTINJ_VALID in 64-bit expressions
Nora Schiffer <nora.schiffer@ew.tq-group.com>
ARM: dts: imx7-tqma7: correctly specify PMIC voltage constraints
Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
ARM: dts: imx7-tqma7: add SPI-NOR flash
Marek Vasut <marex@nabladev.com>
ARM: dts: stm32: Drop bias-disable from STM32MP15xx DHCOM SoM sdmmc1_b4_pins_a
Xueqin Luo <luoxueqin@kylinos.cn>
cpuidle: teo: Do not return a disabled idle state
Ahmad Fatoum <a.fatoum@pengutronix.de>
ARM: dts: stm32: lxa-mc1: change stdout-path baud rate from 9600 to 115200
Xueqin Luo <luoxueqin@kylinos.cn>
cpuidle: menu: Do not return a disabled idle state
Christian Loehle <christian.loehle@arm.com>
cpuidle: menu: Remove single state handling
Breno Leitao <leitao@debian.org>
cpuidle: menu: Remove incorrect unlikely() annotation
Takashi Sakamoto <o-takashi@sakamocchi.jp>
firewire: core: remove unused link field in fw_packet structure
Karl Mehltretter <kmehltretter@gmail.com>
firewire: cdev: Fix FW_CDEV_IOC_CREATE_ISO_CONTEXT references in kernel-doc
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
ACPI: glue: Fix up and adjust acpi_unbind_one()
Jan Kara <jack@suse.cz>
gfs2: Fix journaled truncate range end offset
Jiawen Liu <1298662399@qq.com>
memory: exynos5422-dmc: handle clock enable failures
Ahsan Atta <ahsan.atta@intel.com>
crypto: qat - avoid OOB read when stripping RSA leading zeros
Mohamad Raizudeen <raizudeen.kerneldev@gmail.com>
crypto: amlogic - Fix DMA memory leak in cipher error path
Jack Wang <jinpu.wang@ionos.com>
crypto: amlogic - Fix dma_map_sg error check
Eric Dumazet <edumazet@google.com>
ip_tunnel: use WRITE_ONCE in ip_tunnel_encap_setup
Eric Dumazet <edumazet@google.com>
sit: fix UAF in ipip6_tunnel_del_prl()
Linus Walleij <linusw@kernel.org>
regulator: ab8500: Propagate mode enable read errors
Linus Walleij <linusw@kernel.org>
regulator: ab8500: Test dedicated enable bits only
Linus Walleij <linusw@kernel.org>
regulator: ab8500: Treat cut 1.0 VAUX3 as fixed
Linus Walleij <linusw@kernel.org>
regulator: ab8500: Handle AB8505 VINTCORE selector 7
Linus Walleij <linusw@kernel.org>
regulator: ab8500: Add AB8505 VAUX3 3.05 V setting
Babanpreet Singh <bbnpreetsingh@gmail.com>
regulator: ab8500: Remove stale expand_register kernel-doc entry
Linus Walleij <linusw@kernel.org>
regulator: ab8500: Fix AB8505 VANA voltage selectors
Koichiro Den <den@valinux.co.jp>
PCI: endpoint: pci-epf-vntb: Serialize virtual PCI bus scan
Jia Wang <wangjia@ultrarisc.com>
dmaengine: dw-axi-dmac: Fix CH_CFG2 channel priority position
Jia Wang <wangjia@ultrarisc.com>
dmaengine: dw-axi-dmac: Fix LLI dump out-of-bounds access
Arnd Bergmann <arnd@arndb.de>
Kbuild: move to -std=gnu11
Mark Rutland <mark.rutland@arm.com>
Kbuild: use -Wdeclaration-after-statement
Jia Wang <wangjia@ultrarisc.com>
dmaengine: dw-axi-dmac: Fix AXI burst length encoding
Rosen Penev <rosenp@gmail.com>
dmaengine: fsl_raid: zero CF descriptor pool allocations
Keisuke Tsukuda <catnyaaan@outlook.com>
usb: gadget: f_mass_storage: ignore class requests while inactive
Keisuke Tsukuda <catnyaaan@outlook.com>
usb: gadget: composite: avoid warning on aborted delayed status
Chaithanya Lagisetty <nagachaithanya9911@gmail.com>
dmaengine: sprd: use clk_bulk API to fix clock imbalance
Pengpeng Hou <pengpeng@iscas.ac.cn>
usb: musb: da8xx: depopulate OF children on probe failure
Pengpeng Hou <pengpeng@iscas.ac.cn>
usb: musb: da8xx: depopulate OF children on remove
Arka Mondal <arka@arkamondal.net>
usb-storage: alauda: fix out-of-bounds zone index
Arka Mondal <arka@arkamondal.net>
usb-storage: alauda: check the return value of alauda_read_map()
Arka Mondal <arka@arkamondal.net>
usb-storage: alauda: do not do DMA from the stack
Yuho Choi <dbgh9129@gmail.com>
USB: pci-quirks: Release EHCI device reference
Jiangong.Han <jiangong.han@windriver.com>
USB: usbmon: fix null-ptr-deref in mon_bus_remove() when mon_bus_init() fails
Diego Fernando Mancera Gomez <diegomancera.dev@gmail.com>
usb: image: microtek: stop SG processing after transfer errors
Junxian Huang <huangjunxian6@hisilicon.com>
RDMA/hns: Fix GID capacity loss in 64K system
Yuho Choi <dbgh9129@gmail.com>
PCI: xgene: Use managed clock for PCIe controller
Karl Mehltretter <kmehltretter@gmail.com>
efi/libstub: Fix efi_set_event_at() parameter documentation
Salah Triki <salah.triki@gmail.com>
iio: imu: adis16400: Check return value of spi_setup()
Chandrakanth Patil <chandrakanth.patil@broadcom.com>
scsi: mpi3mr: Fix use-after-free of the firmware event workqueue
Chandrakanth Patil <chandrakanth.patil@broadcom.com>
scsi: mpi3mr: Fix out-of-bounds read in PCIe topology change events
Chandrakanth Patil <chandrakanth.patil@broadcom.com>
scsi: mpi3mr: Fix out-of-bounds read in SAS topology change events
Chandrakanth Patil <chandrakanth.patil@broadcom.com>
scsi: mpi3mr: Fix out-of-bounds sense buffer access
Chandrakanth Patil <chandrakanth.patil@broadcom.com>
scsi: mpi3mr: Fix out-of-bounds reply frame access
Sreekanth Reddy <sreekanth.reddy@broadcom.com>
scsi: mpi3mr: Gracefully handle online FW update operation
Sreekanth Reddy <sreekanth.reddy@broadcom.com>
scsi: mpi3mr: Add IOC reinit function
Sreekanth Reddy <sreekanth.reddy@broadcom.com>
scsi: mpi3mr: Handle offline FW activation in graceful manner
Sreekanth Reddy <sreekanth.reddy@broadcom.com>
scsi: mpi3mr: Code refactor of IOC init - part2
Sreekanth Reddy <sreekanth.reddy@broadcom.com>
scsi: mpi3mr: Code refactor of IOC init - part1
Sreekanth Reddy <sreekanth.reddy@broadcom.com>
scsi: mpi3mr: Display IOC firmware package version
Sreekanth Reddy <sreekanth.reddy@broadcom.com>
scsi: mpi3mr: Update MPI3 headers - part2
Sreekanth Reddy <sreekanth.reddy@broadcom.com>
scsi: mpi3mr: Add debug APIs based on logging_level bits
Linmao Li <lilinmao@kylinos.cn>
power: supply: bq2515x: Propagate charge-enable read errors
Ryan Brue <ryanbrue.dev@gmail.com>
power: supply: bq24190_charger: use the wake irq API
Peng Fan <peng.fan@nxp.com>
PM: sleep: wakeirq: Introduce device-managed variant of dev_pm_set_wake_irq()
Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
PM: wakeup: implement devm_device_init_wakeup() helper
Johan Hovold <johan+linaro@kernel.org>
PM: sleep: wakeirq: drop unused enable helpers
Bjorn Helgaas <bhelgaas@google.com>
PM: wakeup: Unify device_init_wakeup() for PM_SLEEP and !PM_SLEEP
Karl Mehltretter <kmehltretter@gmail.com>
power: supply: mp2629: Use the full batt_impedance_compensation name in the ABI document
Nicolas Escande <nico.escande@gmail.com>
wifi: ath11k: fix locking problem in ath11k_dp_rx_tid_del_func()
Mikhail Lobanov <m.lobanov@rosalinux.ru>
wifi: ath11k: modify null check logic in ath11k_ce_rx_post_pipe()
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
ACPI: utils: Adjust message printing macros for ACPI objects
Ian Gallagher <cdine@cdine.org>
ACPI: button: Add lid_init_state quirk for Razer Blade Stealth 13 (Early 2020) RZ09-0310
Vinod Koul <vkoul@kernel.org>
dmaengine: zynqmp_dma: drop redundant label
Srinivas Neeli <srinivas.neeli@amd.com>
dmaengine: xilinx_dma: Move descriptors to done list based on completion bit
Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
dmaengine: xilinx_dma: Freeup active list based on descriptor completion bit
Srinivas Neeli <srinivas.neeli@amd.com>
dmaengine: xilinx_dma: Fix MCDMA descriptor fields based on DMA direction
Chaithanya Lagisetty <nagachaithanya9911@gmail.com>
dmaengine: dw-axi-dmac: convert clock handling to clk_bulk API
Walker Chen <walker.chen@starfivetech.com>
dmaengine: dw-axi-dmac: Add support for StarFive JH7110 DMA
Pandith N <pandith.n@intel.com>
dmaengine: dw-axi-dmac: support DMAX_NUM_CHANNELS > 8
Golla Nagendra <nagendra.golla@amd.com>
dmaengine: zynqmp_dma: Fix chan probe/remove error handling
Abin Joseph <abin.joseph@amd.com>
dmaengine: zynqmp_dma: Add support for AMD Versal Gen 2 DMA IP
Michael Tretter <m.tretter@pengutronix.de>
dmaengine: zynqmp_dma: simplify with dev_err_probe
Ruoyu Wang <ruoyuw560@gmail.com>
dmaengine: img-mdc: Fix runtime PM usage counter leak
Myeonghun Pak <mhun512@gmail.com>
dmaengine: mediatek: hsdma: fix runtime PM leak on init failure
Hongling Zeng <zenghongling@kylinos.cn>
dmaengine: sun6i-dma: Fix use-after-free in error handling paths
Samuel Holland <samuel@sholland.org>
dmaengine: sun6i: Do not use virt_to_phys
Karl Mehltretter <kmehltretter@gmail.com>
mtd: spinand: Fix spinand_manufacturer_ops kernel-doc
Manush Prajwal <manushprajwal555@gmail.com>
pwm: lp3943: fix NULL pointer dereference for an unconfigured channel
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
pwm: lp3943: Drop usage of pwm_[gs]et_chip_data()
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt6797: fix wrong unwind order and error code in enable_clock
Chen-Yu Tsai <wenst@chromium.org>
pwm: mtk-disp: Fix period readback
Karl Mehltretter <kmehltretter@gmail.com>
irqchip/gic-v3-its: Don't WARN on LPI free allocation failure
Linkai Gong <gonglinkai@kylinos.cn>
drivers/base/node: fix UAF on device_register() failure
Dmitry Torokhov <dmitry.torokhov@gmail.com>
gpio: crystalcove: add missing MODULE_ALIAS()
Mark Amirkan <markdamirkan@gmail.com>
perf evsel: Validate RAW sample before byte swapping
Mark Amirkan <markdamirkan@gmail.com>
perf evsel: Validate branch stack before byte swapping
Madhavan Srinivasan <maddy@linux.ibm.com>
perf evsel: Add bitfield_swap() to handle branch_stack endian issue
Felix Gu <ustc.gu@gmail.com>
spi: mtk-nor: fix runtime PM usage count leak in probe error path
Dave Jiang <dave.jiang@intel.com>
efi/cper: Read only validated fields in cper_mem_err_pack()
Dave Jiang <dave.jiang@intel.com>
ACPI: extlog: Validate elog record length before walking sections
Dave Jiang <dave.jiang@intel.com>
efi/cper: Reject an error status block length that wraps a u32
Dave Jiang <dave.jiang@intel.com>
efi/cper: Reject CPER records with an out-of-range error_data_length
Jisheng Zhang <jszhang@kernel.org>
regulator: mp886x: fix vsel_mask
Pengpeng Hou <pengpeng@iscas.ac.cn>
memory: brcmstb_dpfe: validate firmware section sizes
Julius Bairaktaris <julius@bairaktaris.de>
wifi: mac80211: fix swapped fq_overlimit/fq_overmemory in aqm debugfs
Fabrice Derepas <fabrice.derepas@canonical.com>
crypto: asymmetric_keys - fix OOB read in pefile_parse_binary
Ruoyu Wang <ruoyuw560@gmail.com>
hwrng: cctrng - Fix runtime PM usage counter leak
Paul Dolan <paul.dolan.dev@gmail.com>
selftests/clone3: tighten CLONE_CLEAR_SIGHAND conflict test
Miquel Raynal (Schneider Electric) <miquel.raynal@bootlin.com>
clk: Use the generic OF phandle parsing in only one place
Rosen Penev <rosenp@gmail.com>
dmaengine: fsl_raid: avoid free_q underflow in free_chan_resources
Rosen Penev <rosenp@gmail.com>
dmaengine: fsl_raid: don't invoke client callback under desc_lock
Koichiro Den <den@valinux.co.jp>
PCI: endpoint: pci-epf-vntb: Pass PF/VF number when BAR programming
Danila Chernetsov <listdansp@mail.ru>
dlm: validate lock modes in recovery messages
Alexander Aring <aahringo@redhat.com>
dlm: use __le types for dlm header
Alexander Aring <aahringo@redhat.com>
fs: dlm: add debugfs rawmsg send functionality
Alexander Aring <aahringo@redhat.com>
fs: dlm: let handle callback data as void
Abdurrahman Karadag <abdurrahmankaradag19@gmail.com>
wifi: rtw88: debugfs: don't vzalloc(0) when rsvd_page is read unconfigured
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
microblaze: prevent ptrace writes to MSR and pt_mode
Alexander A. Klimov <grandmaster@al2klimov.de>
microblaze: CCF: fix refcount leak
Jerome Brunet <jbrunet@baylibre.com>
clk: fix self-consuming provider module pinning
Orgad Shaneh <orgads@gmail.com>
staging: octeon: schedule the TX cleanup tasklet every 1024th packet
Myeonghun Pak <mhun512@gmail.com>
staging: rtl8723bs: disable SDIO function on block size failure
Ethan Tidmore <ethantidmore06@gmail.com>
staging: rtl8723bs: remove unused private debug counters
Michael Straube <straube.linux@gmail.com>
staging: rtl8723bs: move rtw_recv_indicatepkt to rtw_recv.c
Michael Straube <straube.linux@gmail.com>
staging: rtl8723bs: remove wrapper rtw_init_recv_timer
Michael Straube <straube.linux@gmail.com>
staging: rtl8723bs: remove return from void function
Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com>
staging: rtl8723bs: change remaining printk to proper api
Felix Gu <ustc.gu@gmail.com>
spi: omap2-mcspi: Remove unbalanced pm_runtime_put_sync() calls
Ruoyu Wang <ruoyuw560@gmail.com>
pwm: renesas-tpu: Fix runtime PM reference leak
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
pwm: renesas: Drop usage of pwm_[gs]et_chip_data()
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
pwm: renesas-tpu: Improve maths to compute register settings
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
pwm: renesas-tpu: Rename variables to match the usual naming
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
pwm: renesas-tpu: Implement .apply() callback
David Heidelberg <david@ixit.cz>
ASoC: wcd-mbhc-v2: Fix incorrect properties names and typos
Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>
remoteproc: qcom_q6v5_adsp: Fix double jiffies conversion in adsp_start()
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Validate unwinding sizes against record payload
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Validate sym string NUL-termination in code load
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Validate debug entries on native (non-swap) path
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Use dirname() return value in jit_open()
Hrishikesh Suresh <hrishikesh123s@gmail.com>
perf: replace strcpy() with strncpy() in util/jitdump.c
Ian Rogers <irogers@google.com>
perf jit: Fix a few memory leaks
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Fix funlockfile on unlocked stream in jit_open() error path
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Check snprintf return before computing header size
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Bounds-check debug entry byte-swap loop
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Prevent integer underflow in debug info size calculation
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Validate code_size against total_size in code load
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Fix debug_data and unwinding_data leaks
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Fix extended header read that always fails
Breno Leitao <leitao@debian.org>
kexec_file: stop the top-down search before it underflows
Rosen Penev <rosenp@gmail.com>
ARM: dts: helios4: fix spi1 location
Rosen Penev <rosenp@gmail.com>
ARM: dts: helios4: fix vbus-supply for USB2 PHY
Rosen Penev <rosenp@gmail.com>
ARM: dts: armada-388-helios4: fix vmmc property name
Rosen Penev <rosenp@gmail.com>
ARM: dts: armada-395-gp: drop unsupported SDHCI clock-frequency
Rosen Penev <rosenp@gmail.com>
ARM: dts: armada-385-clearfog-gtr: fix vmmc property name
Rosen Penev <rosenp@gmail.com>
ARM: dts: helios4: fix lm75 supply name
Salah Triki <salah.triki@gmail.com>
iio: temperature: tmp117: fix calibbias cache update on I2C write failure
Adi Nata <adinata.softwareengineer@gmail.com>
iio: humidity: hts221: report available values via read_avail()
Pengpeng Hou <pengpeng@iscas.ac.cn>
spi: sh-msiof: propagate setup runtime-PM errors
Geert Uytterhoeven <geert+renesas@glider.be>
spi: sh-msiof: SITMDR1/SIRMDR1 bitfield conversion
Chandradhar Kumar <chandradhar.2003@gmail.com>
regulator: fixed: reject incompatible platform devices
Yuan Chen <chenyuan_fl@163.com>
bpftool: Fix spurious batch file read error
Andreas Kemnade <andreas@kemnade.info>
drm/omap: dsi: avoid sending bta sync all the time in writes
Adrián Larumbe <adrian.larumbe@collabora.com>
drm/panfrost: Prevent division by 0
Raveendra Talabattula <raveendra.talabattula@arm.com>
drm/komeda: Fix bits parsing of GLB_CORE_ID
Nathan Chancellor <nathan@kernel.org>
extract-cert: Wrap key_pass with '#ifdef USE_PKCS11_ENGINE'
Jan Stancek <jstancek@redhat.com>
sign-file,extract-cert: use pkcs11 provider for OPENSSL MAJOR >= 3
Jan Stancek <jstancek@redhat.com>
sign-file,extract-cert: avoid using deprecated ERR_get_error_line()
Jan Stancek <jstancek@redhat.com>
sign-file,extract-cert: move common SSL helper functions to a header
Sean Christopherson <seanjc@google.com>
KVM: x86: Unconditionally reset MMU context when emulating INIT
Milan Milicevic <Milan.Milicevic@amd.com>
drm/amdgpu: publish IH enabled before PSP programs IH_RB_CNTL
Matthias Goergens <matthias.goergens@gmail.com>
udf: don't use eloc after the end of the unallocated space table
Daejun Park <daejun7.park@samsung.com>
xfs: add a flag to convert unwritten extents without allocating blocks
Cen Zhang <zzzccc427@gmail.com>
ocfs2: validate move extents against a stable EOF
Jesse Zhang <Jesse.Zhang@amd.com>
drm/amdgpu: parse CS IBs at the BO offset their VA mapping starts at
Pei Xiao <xiaopei01@kylinos.cn>
comedi: dt2811: fix shift-out-of-bounds in IRQ check
Chuck Lever <cel@kernel.org>
SUNRPC: Copy the deferred RPC Call from the head buffer
Yang Zi <2959243019@qq.com>
comedi: addi_apci_3xxx: fix subdevice count underallocation
Amir Goldstein <amir73il@gmail.com>
ovl: inherit FMODE_NONOTIFY when reading directory layers
Andrew Kanner <andrew.kanner@gmail.com>
selinux: prevent KMSAN warning in selinux_inet_conn_request()
Daejun Park <daejun7.park@samsung.com>
xfs: cap the block count of xfs_iomap_write_direct() at one extent
Daejun Park <daejun7.park@samsung.com>
xfs: mark the inode preallocated for pNFS write layouts past EOF
Josef Bacik <josef@toxicpanda.com>
mm/filemap: don't lose a folio lock wakeup to a signal
Lucas Tanure <lucas.tanure@neat.no>
drm/vc4: hdmi: enable scrambling before the TMDS clock starts
Chengfeng Ye <nicoyip.dev@gmail.com>
xfrm: retry inexact policy lookup after node reinsertion
Hongbin Wang <wh_bin@126.com>
xfrm: Drop unused argument
Zhe Liu <liuzhe1@kylinos.cn>
blk-iocost: account flush sequence latency only once
Bart Van Assche <bvanassche@acm.org>
blk-iocost: Simplify ioc_rqos_done()
Josef Bacik <josef@toxicpanda.com>
mm/mmu_notifier: finish non-blocking interval invalidation on error
Jann Horn <jannh@google.com>
mm: document mmu_notifier_invalidate_range_start_nonblock()
Sean Christopherson <seanjc@google.com>
KVM: x86/mmu: Cap number of parent PTEs per SP at 1000 (the arbitrary rmap limit)
Yingjie Wang <1075151112@qq.com>
nvmet: reject keep-alive timeouts that would overflow
David Hildenbrand (Arm) <david@kernel.org>
mm/shmem: make shmem_file() check the file's inode
Zhou Qiuyue <n0ps1edzz@gmail.com>
ipv6: raw: fix use-after-free in rawv6_send_hdrinc()
David Hildenbrand (Arm) <david@kernel.org>
mm/filemap: finish fault cleanup before dropping the fault lock
chenglong.ma <longpareto@gmail.com>
vduse: fix VA/PA confusion in the coherent page fault path
Luis Gerardo Lopez Hernandez <gamaerry@gmail.com>
ALSA: hda/realtek: Fix internal speakers on Acer Aspire AL16-31P
Alex Hung <alex.hung@amd.com>
drm/amd/display: Avoid closing unowned DDC pins
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: read the xattr entry hash before defragmenting the bucket
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: do not read the entry array of an empty xattr bucket
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: use the stored hash when checking xattr bucket collision
renpanpan <renpanpan@kylinos.cn>
drm/amdgpu: Only enable HDMI audio if display supports it
Guenter Roeck <linux@roeck-us.net>
hwmon: (coretemp) Check for NULL platform device in hotplug callbacks
David Hildenbrand (Arm) <david@kernel.org>
fork: take mmap_lock before copying mm_struct
David Hildenbrand (Arm) <david@kernel.org>
mm/rmap: handle device-exclusive entries in folio_referenced_one()
Thorsten Blum <blum@kernel.org>
hwrng: virtio - prevent use-after-free after a failed restore
Josef Bacik <josef@toxicpanda.com>
mm/filemap: read mapping->a_ops->free_folio under i_lock
Cong Zhang <cong.zhang@oss.qualcomm.com>
virtio_blk: use synchronous quiesce in virtblk_freeze_priv()
Jiale Yao <yaojiale02@163.com>
hwmon: (aquacomputer_d5next) reject short status reports
Cen Zhang (Microsoft) <cenzhang@linux.microsoft.com>
apparmor: fix query_data() output overlapping the lookup key
Gregory Price <gourry@gourry.net>
mm/userfaultfd: compare exact registration modes before skipping
David Hildenbrand (Arm) <david@kernel.org>
mm/mremap: use pudp_huge_get_and_clear() when moving huge PUDs
Chris Mason <mason@kernel.org>
mm/memory: reject remote COW faults on PFN mappings
Chris Down <chris@chrisdown.name>
mm: make swapoff interruptible when unusing mms/shmem
Gregory Price (Meta) <gourry@gourry.net>
mm/mempolicy: apply bind policies against the scoped allocation zone
Eklavya Singh <eklavyasingh2106@gmail.com>
ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute
David Hildenbrand (Arm) <david@kernel.org>
mm/vma: don't leak the charge for stack growth
Daejun Park <daejun7.park@samsung.com>
nvme: unregister when pr_register() is given a zero new key
Jesse Zhang <Jesse.Zhang@amd.com>
drm/amdgpu: don't walk the CS chunks when allocating them failed
Guenter Roeck <linux@roeck-us.net>
hwmon: (tmp108) Fix initial conversion delay and wait until ready
Guenter Roeck <linux@roeck-us.net>
hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp()
Myeonghun Pak <mhun512@gmail.com>
fbdev: kyro: Release WC setup on registration failure
Giovanni Di Santi <giovanni.disanti.lkl@gmail.com>
fbdev: kyro: Use devm_ioremap_wc() for screen mem
Giovanni Di Santi <giovanni.disanti.lkl@gmail.com>
fbdev: kyro: Use devm_ioremap() for mmio registers
Matthias Goergens <matthias.goergens@gmail.com>
udf: fix preallocation discarding before an empty allocation extent
Chris Mason <mason@kernel.org>
mm/huge_memory: fix truncate racing with PMD zapping
Chris Mason <mason@kernel.org>
aio: fix NULL deref when a fault races ring truncation
Chengfeng Ye <nicoyip.dev@gmail.com>
l2tp: snapshot sequencing state when building transmit headers
Fuad Tabba <fuad.tabba@linux.dev>
KVM: arm64: vgic-its: Don't map an LPI from more than one event
Yu Zhang <yuz08559@gmail.com>
scsi: target: Fix demo-mode dynamic ACL dev-entry UAF vs LUN teardown
Ian Bridges <icb@fastmail.org>
ksmbd: do not read past the DACL in the access denied debug message
Jesse Zhang <Jesse.Zhang@amd.com>
drm/amdgpu: keep the CS user fence BO in GTT
Milan Milicevic <Milan.Milicevic@amd.com>
drm/amdgpu: clear RB_OVERFLOW bit when enabling interrupts for navi10_ih
Philip Yang <Philip.Yang@amd.com>
drm/amdgpu: enable Navi 48-bit IH timestamp counter
Yuho Choi <oss.patchbox@gmail.com>
iommu/virtio: Reset device before deleting virtqueues on probe failure
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
drm/msm/hdmi: Handle msm_hdmi_power_on() errors during .atomic_pre_enable()
Chris Mason <mason@kernel.org>
ovl: look up the index by the decoded origin
Leo Liu <leo.liu@amd.com>
drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg
Johannes Weiner <hannes@cmpxchg.org>
mm: page_alloc: do not give all non-blocking requests reserve access
David Hildenbrand (Arm) <david@kernel.org>
mm/mremap: recheck PUDs under the page table lock
Josef Bacik <josef@toxicpanda.com>
mm/mremap: fix moving PUD leaves
Chris Mason <mason@kernel.org>
backing-file: always end a queued write
Myeonghun Pak <mhun512@gmail.com>
hwmon: (sht15) Stop deferred work before releasing its resources
Will Deacon <will@kernel.org>
tools: linux/types.h: Add 128-bit integer types for arm64 UAPI structures
Takashi Iwai <tiwai@suse.de>
ALSA: pcm: Prevent O_APPEND open on OSS streams
Takashi Iwai <tiwai@suse.de>
ALSA: pcm: Optimize cpu_latency_qos_*() calls
Cen Zhang <zzzccc427@gmail.com>
ocfs2: cache the mount context for dentry lock callbacks
Christophe JAILLET <christophe.jaillet@wanadoo.fr>
ocfs2: constify struct ocfs2_lock_res_ops
Kyle Zeng <kylebot@openai.com>
mptcp: pm: kernel: use RCU to free endpoint listeners
John Johansen <john.johansen@canonical.com>
apparmor: on failed load ensure profile files are removed before parent
Stanley Jhu <stanleyjhu@google.com>
scsi: ufs: core: Remove an always-false WARN_ONCE()
Konstantin Khorenko <khorenko@virtuozzo.com>
selftests/core: fix unshare_test with large fs.nr_open
Al Viro <viro@zeniv.linux.org.uk>
selftests:core: test coverage for dup_fd() failure handling in unshare_fd()
Chengfeng Ye <nicoyip.dev@gmail.com>
mm/ksm: mark migration stores with WRITE_ONCE()
Prike Liang <Prike.Liang@amd.com>
drm/amdgpu: finish GPU recovery callbacks before restarting schedulers
Daejun Park <daejun7.park@samsung.com>
xfs: don't skip free extents of the longest length in a whole-AG FITRIM
Chao Yu <chao@kernel.org>
f2fs: fix to fetch ino via ino_of_node() under cache lock
Amir Goldstein <amir73il@gmail.com>
ovl: inherit FMODE_NONOTIFY when opening directory realfiles
Darong Lu <zzyy19904204639@163.com>
libceph: initialize CRUSH choose argument weights
Chao Yu <chao@kernel.org>
f2fs: fix to update superblock crc in sanity_check_area_boundary()
Wei Yang <albinwyang@tencent.com>
mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()
Georgia Garcia <georgia.garcia@canonical.com>
apparmor: remove fs entries created by a failed policy load
David Hildenbrand (Arm) <david@kernel.org>
mm/userfaultfd: wake waiters when registration modes are removed
Jake Labelle <southampton.jake.labelle@gmail.com>
nilfs2: validate directory position after llseek in readdir
Christian Brauner <brauner@kernel.org>
proc: don't let an entry below /proc/<pid>/net be a mountpoint
Al Viro <viro@zeniv.linux.org.uk>
switch procfs from d_set_d_op() to d_splice_alias_ops()
Al Viro <viro@zeniv.linux.org.uk>
new helper: d_splice_alias_ops()
Al Viro <viro@zeniv.linux.org.uk>
procfs: kill ->proc_dops
Christian Brauner <brauner@kernel.org>
proc: add proc_splice_unmountable()
Al Viro <viro@zeniv.linux.org.uk>
/proc/sys: use d_splice_alias() calling conventions to simplify failure exits
Cheng Yongkang <teel4res@gmail.com>
io_uring/timeout: count cancelled timeouts in cq_timeouts
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
ALSA: compress: fix buffer leak on failed SET_PARAMS
guolingxing <guolingxing@tju.edu.cn>
btrfs: prevent deleting the wrong subvolume by ID
Yao Yiqi <yaoyiqi3@huawei.com>
fbcon: Rebuild rotated font buffer on font change
Ian Bridges <icb@fastmail.org>
ksmbd: enforce the read-only share flag when creating a stream
David Hildenbrand (Arm) <david@kernel.org>
mm/ksm: fix use of a freed anon_vma at swap-in
Yizhou Zhao <zhaoyz24@mails.tsinghua.edu.cn>
9p/xen: drain response work after unbinding IRQ
Eric Dumazet <edumazet@kernel.org>
inet: frags: limit the truesize of a reassembly queue
Sean Christopherson <seanjc@google.com>
KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
Kyle Zeng <kylebot@openai.com>
net/packet: check TX_RING fragments before memory accounting
Linus Torvalds <torvalds@linux-foundation.org>
assoc_array: keep gc's cleanup out of the live tree on allocation failure
Linus Torvalds <torvalds@linux-foundation.org>
assoc_array: don't chain a new shortcut onto an existing one
Linus Torvalds <torvalds@linux-foundation.org>
assoc_array: choose between splitting a node and a shortcut without gotos
Linus Torvalds <torvalds@linux-foundation.org>
assoc_array: move shortcut creation into a function of its own
Linus Torvalds <torvalds@linux-foundation.org>
assoc_array: move node splitting into a function of its own
Linus Torvalds <torvalds@linux-foundation.org>
assoc_array: fill the segment cache in one place
Linus Torvalds <torvalds@linux-foundation.org>
assoc_array: move in-place insertion into a function of its own
Linus Torvalds <torvalds@linux-foundation.org>
assoc_array: don't lose objects when a root shortcut is split at level 4
Linus Torvalds <torvalds@linux-foundation.org>
assoc_array: don't lose objects when a shortcut is split on a word boundary
Len Baker <len.baker@gmx.com>
assoc_array: Avoid open coded arithmetic in allocator arguments
Zhengchao Shao <shaozhengchao@huawei.com>
ip6mr: fix UAF issue in ip6mr_sk_done() when addrconf_init_net() failed
Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
splice: fsnotify_access(fd)/fsnotify_modify(fd) in vmsplice
Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
splice: fsnotify_access(in), fsnotify_modify(out) on success in tee
Eric Dumazet <edumazet@kernel.org>
dlm: fix send buffer backpressure handling
Runyu Xiao <runyu.xiao@seu.edu.cn>
media: sti: delta: use unaligned accessors for MJPEG SOF fields
Niklas Cassel <cassel@kernel.org>
ata: libata: Do not leave ata_host_stop() registered when activation fails
Armaan Sandhu <armaan.sandhu0504@gmail.com>
lib/cmdline: fix get_options() count and overflow with large ranges
Olivier Kaloudoff <olivier.kaloudoff@gmail.com>
drm/amdkfd: stop restore retries on device unplug
Guangshuo Li <lgs201920130244@gmail.com>
media: atmel-isi: release unregistered video device on remove
Tim Douglas <me@timdoug.com>
power: supply: generic-adc-battery: fix status with no supplier
Nikolaj Klitlund Børty <nbn@sj.dk>
Bluetooth: btusb: Add device ID for Realtek RTL8761BUE (StarTech AV53C1)
Myeonghun Pak <mhun512@gmail.com>
fbdev: nvidia: Release write-combining handle on probe failure
Maurizio Casciano <mauriziocasciano7@gmail.com>
power: supply: core: Honor supplied-from with CONFIG_OF=y
Francesco Orlando <francesco.orlando99@libero.it>
Input: xpad - add GameSir Nova Lite support
Myeonghun Pak <mhun512@gmail.com>
wifi: mt76: mt7615: restore DBDC state after ext PHY failure
Niklas Cassel <cassel@kernel.org>
ata: libahci: Free the IRQs when activating a multi-IRQ host fails
Niklas Cassel <niklas.cassel@wdc.com>
ata: ahci: print the lpm policy on boot
Wentao Liang <vulab@iscas.ac.cn>
power: supply: ltc2941: Fix of_node reference leak in ltc294x_i2c_probe()
David Heidelberg <david@ixit.cz>
mfd: wcd934x: set DMA mask on parent to silence "DMA mask not set"
Christophe JAILLET <christophe.jaillet@wanadoo.fr>
mfd: wcd934x: Fix an error handling path in wcd934x_slim_probe()
Maíra Canal <maira.canal@usp.br>
mfd: wcd934x: Replace legacy gpio interface for gpiod
Olivier Kaloudoff <olivier.kaloudoff@gmail.com>
ALSA: usb-audio: Add mic resolution quirk for Logitech Webcam C200
Breno Leitao <leitao@debian.org>
dcache: report a Tasks-RCU quiescent state in dentry_kill()
Guangshuo Li <lgs201920130244@gmail.com>
crypto: omap-sham - fix crypto engine cleanup
Fan Wu <fanwu01@zju.edu.cn>
virtio_fs: read the vring size under virtio_fs_mutex in ->get_tree
David Hildenbrand (Arm) <david@kernel.org>
mm/gup: check for overflow when converting nr_pages to bytes in GUP-fast
Samarth Narang <samarth.colleges@gmail.com>
mm/ksm: keep soft-dirty when merging a page
Marc Zyngier <maz@kernel.org>
KVM: arm64: Turn vcpu->arch.pause into a counter
Henrik Enquist <henrik.enquist@gmail.com>
ALSA: aloop: Update the PCM Slave controls for a matching playback
Henrik Enquist <henrik.enquist@gmail.com>
ALSA: aloop: Don't constrain playback params in notify mode
Cen Zhang <zzzccc427@gmail.com>
ocfs2/cluster: initialize heartbeat regions before publishing them
Daeho Jeong <daehojeong@google.com>
f2fs: release a removed xattr node in roll-forward recovery
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
drm/msm/hdmi_phy: Cleanup after msm_hdmi_phy_resource_enable() failure
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drm/msm/hdmi: fill the pwr_regs bulk regulators
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drm/msm/hdmi: use bulk regulator API
Sumit Kumar <sumit.kumar@oss.qualcomm.com>
PCI: dwc: Set DMA_BYPASS bit in outbound IATU CTRL2 register
Hung-Jui Lin <alex.lin.programmer@gmail.com>
posix-timers: Report zero remaining time for disarmed SIGEV_NONE timers
Daehyeon Ko <4ncienth@gmail.com>
ipv6: remove ifaddr from hash during ifdown list cleanup
Eric Dumazet <edumazet@google.com>
ipv6/addrconf: allocate a per netns hash table
Eric Dumazet <edumazet@google.com>
ip6mr: fix use-after-free in ip6mr_sk_done()
Eric Dumazet <edumazet@google.com>
ip6mr: ip6mr_sk_done() can exit early in common cases
Breno Leitao <leitao@debian.org>
ACPI: APEI: accumulate the queued flag across error sections
Adrian Ambrozewicz <aambrozewicz@nvidia.com>
gpiolib: cdev: don't set GPIOD_FLAG_IS_OUT
Radiy Zhambakiev <r.zhambakiev@prosoftsystems.ru>
mfd: tps65217: Use devres for IRQ domain and wake teardown
Jesse Zhang <Jesse.Zhang@amd.com>
drm/ttm: return an error when kmapping a BO without pages
Nicolai Buchwitz <nb@tipi-net.de>
serial: amba-pl011: keep transmitter enabled when disabling RS485
Lino Sanfilippo <LinoSanfilippo@gmx.de>
serial: amba-pl011: remove redundant code in rs485_config
Sean Young <sean@mess.org>
media: serial_ir: Fix race condition where timer can be re-armed
Stanley Jhu <stanleyjhu@google.com>
scsi: ufs: bsg: Reject UIC commands with a non-zero result byte
Christian Brauner <brauner@kernel.org>
iomap: don't mark unwritten parts of a folio uptodate
Breno Leitao <leitao@debian.org>
mm/shmem: report RCU-tasks quiescent states while undoing a range
Hitesh Patel <hitesh@ebytelogic.com>
media: qcom: camss: vfe-17x: Fix write master selection for RDI lines
Linmao Li <lilinmao@kylinos.cn>
PCI: cadence: Store the core controller in platform drvdata
Oleg Nesterov <oleg@redhat.com>
signalfd: don't dequeue the forced fatal signals
Thomas Gleixner <tglx@linutronix.de>
signal: Remove task argument from dequeue_signal()
Eric W. Biederman <ebiederm@xmission.com>
signal: Requeue signals in the appropriate queue
Giorgi Kobakhia <gkobakhi@asu.edu>
ocfs2: fix array out of bound access in __ocfs2_find_path()
Edward Adam Davis <eadavis@qq.com>
ocfs2: fix oob in __ocfs2_find_path
Hsiu-Hsien Lee <swinds24@gmail.com>
ext4: fix fast commit replay failing on a read-only mount
Theodore Ts'o <tytso@mit.edu>
ext4: avoid updating the superblock on a r/o mount if not needed
Ye Bin <yebin10@huawei.com>
ext4: commit super block if fs record error when journal record without error
Zhan Xusheng <zhanxusheng1024@gmail.com>
f2fs: fix defragment writeback range truncation on 32-bit
Zhiguo Niu <zhiguo.niu@unisoc.com>
f2fs: fix to adjust appropirate defragment pg_end
sung byeongchan <tjdqudcks0424@naver.com>
ceph: validate MDS reply fragtree split array length
Alex Kazinsky <a.kazinsky@ideco.ru>
ASoC: tlv320aic32x4: Prevent division by zero in divider callbacks
Guiting Shen <aarongt.shen@gmail.com>
ASoC: tlv320aic32x4: Fix the divide by zero
Maxime Ripard <maxime@cerno.tech>
ASoC: tlv320aic32x4: div: Switch to determine_rate
Nikolaos Karaolidis <nick@karaolidis.com>
fs: don't lose inodes that another LRU walker is isolating
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
ceph: fix 32-bit overflow in readdir reply count check
Robert Foss <robert.foss@linaro.org>
media: camss: vfe: Don't call hw_version() before its dependencies are met
Hitesh Patel <hitesh@ebytelogic.com>
media: qcom: camss: vfe: Fix VFE reset while another line is streaming
Bryan O'Donoghue <bryan.odonoghue@linaro.org>
media: qcom: camss: Move vfe_disable into a common routine where applicable
Robert Foss <robert.foss@linaro.org>
media: camss: vfe: Rework vfe_hw_version_read() function definition
Robert Foss <robert.foss@linaro.org>
media: camss: vfe: Remove vfe_hw_version_read() argument
Robert Foss <robert.foss@linaro.org>
media: camss: vfe: Decrease priority of of VFE HW version to 'dbg'
Robert Foss <robert.foss@linaro.org>
media: camss: vfe: Don't read hardware version needlessly
Ridham Khurana <khurana.ridham222@gmail.com>
hwmon: (lm70) Fix rounding of negative temperatures
Joanne Koong <joannelkoong@gmail.com>
fuse: don't drop destination page cache on a zero byte copy reply
Ma Ke <make_ruc2021@163.com>
i2c: acpi: Fix adapter reference leak in i2c_acpi_new_device_by_fwnode()
Hans de Goede <hdegoede@redhat.com>
i2c: acpi: Add i2c_acpi_new_device_by_fwnode() function
Hongyan Xu <getshell@seu.edu.cn>
mfd: da903x: Cancel IRQ work during teardown
Nikolaos Karaolidis <nick@karaolidis.com>
fs: rotate inodes whose page cache could not be dropped
Fan Wu <fanwu01@zju.edu.cn>
power: supply: bq27xxx: Ensure poll work is cancelled on remove
Sahaj Chaudhari <sahaj123.sc@gmail.com>
gpio: pca953x: Handle direction register read errors in IRQ paths
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
gpio: pca953x: Utilise temporary variable for struct gpio_chip
Alexander Sverdlin <alexander.sverdlin@siemens.com>
tpm: tpm2_probe: propagate transport errors
John Johansen <john.johansen@canonical.com>
apparmor: fix refcount leak in aa_get_newest_profile()
Balakrishnan Sambath <balakrishnan.s@microchip.com>
media: microchip-isc: do not touch WB registers when not streaming
Maciej Kucharek <qchcio@gmail.com>
drm/amdgpu: reset SI ASIC on MacBookPros with VRAM at 0
Armin Wolf <W_Armin@gmx.de>
hwmon: (acpi_power_meter) Fix 18.45 TW bug
Alexey Charkov <alchark@flipper.net>
nvmem: rockchip-otp: Serialize reads
Rosen Penev <rosenp@gmail.com>
nvmem: rockchip-otp: alloc clks with main struct
Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
nvmem: rockchip-otp: Add clks and reg_read to rockchip_data
Mikulas Patocka <mpatocka@redhat.com>
dm-writecache: fix REQ_FUA processing
Takashi Iwai <tiwai@suse.de>
ALSA: emux: Stop voices before freeing zones in all cases
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
ALSA: emux: simplify snd_sf_list.callback handling
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
ALSA: emux: centralize & improve patch info validation
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
ALSA: emu10k1: prune vestiges of SNDRV_SFNT_SAMPLE_{BIDIR,REVERSE}_LOOP support
Jesse Zhang <Jesse.Zhang@amd.com>
drm/amdgpu: reject CS chunks too large for kvmalloc()
Ross Lagerwall <ross.lagerwall@citrix.com>
xen-blkfront: Fix IO race during unplug
Nickolai Zeldovich <nickolai@csail.mit.edu>
mm/mlock: use a long for the page count in mlock_fixup()
Wentao Liang <vulab@iscas.ac.cn>
xen/gntdev: Fix gntdev_dmabuf ref leak in dmabuf_exp_wait_released()
Yao Yiqi <yaoyiqi3@huawei.com>
fbcon: Retry rotated font allocation after failure
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn
Takashi Iwai <tiwai@suse.de>
ALSA: emux: Fix UAF of soundfont zones at note-on
Myeonghun Pak <mhun512@gmail.com>
leds: ktd2692: Pass context to regulator cleanup
Runyu Xiao <runyu.xiao@seu.edu.cn>
block: amiflop: synchronize flush timer before track flush
Joanne Koong <joannelkoong@gmail.com>
fuse: don't launder folios of a bad inode
Nickolai Zeldovich <nickolai@csail.mit.edu>
ucount: take the rlimit reference before checking the limit
Roman Gushchin <roman.gushchin@linux.dev>
signal: restore the override_rlimit logic
Alexey Gladkov <legion@kernel.org>
ucounts: Split rlimit and ucount values and max values
Eric W. Biederman <ebiederm@xmission.com>
ucounts: Use atomic_long_sub_return for clarity
Kaixuan Li <kaixuanli0131@gmail.com>
f2fs: bound the SIT/NAT bitmaps by the checkpoint pack
Stanley Jhu <stanleyjhu@google.com>
scsi: ufs: bsg: Clear the reply buffer before use
Jiri Slaby (SUSE) <jirislaby@kernel.org>
serial: 8250_exar: store the GPIO platform device in struct exar8250
Parker Newman <pnewman@connecttech.com>
serial: exar: fix checkpach warnings
Parker Newman <pnewman@connecttech.com>
serial: exar: add optional board_init function
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
serial: 8250_exar: Clear interrupts before registering handler
Paolo Abeni <pabeni@redhat.com>
mptcp: fix subflow bitfield misuse
Janne Grunau <j@jannau.net>
wifi: brcmfmac: cfg80211: Report port_authorized for 4-way HS offload
Runyu Xiao <runyu.xiao@seu.edu.cn>
IB/hfi1: Shutdown self-rearming timers before freeing
Jiaming Zhang <r772577952@gmail.com>
nilfs2: force clear dirty state when restoring from the shadow map
Myeonghun Pak <mhun512@gmail.com>
soc: fsl: dpio: Free the IRQ before releasing the I/O object
Geraldo Nascimento <geraldogabriel@gmail.com>
PCI: rockchip: Drive at 2.5 GT/s, error other speeds
Yehyeong Lee <yhlee@isslab.korea.ac.kr>
xen/pcifront: check that an AER callback exists before calling it
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
xen/pcifront: Drop pcifront_common_process() tests of pcidev, pdrv
Guangshuo Li <lgs201920130244@gmail.com>
irqchip/imx-intmux: Fix runtime PM teardown on remove
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
irqchip/imx-intmux: Convert to platform_driver::remove_new() callback
Ruide Cao <caoruide123@gmail.com>
mptcp: fix MP_CAPABLE token migration when cloning reqsk
Luxiao Xu <rakukuip@gmail.com>
mm/memory: constrain generic_access_phys() to page boundary
Sung Byeongchan <tjdqudcks0424@naver.com>
virtiofs: validate fixed-output response length
Yuto Ohnuki <ytohnuki@amazon.com>
virtiofs: add FUSE protocol validation
Hugo Villeneuve <hvilleneuve@dimonoff.com>
serial: sc16is7xx: declare MCR and IER as volatile registers
Nanzhe Zhao <zhaonanzhe@xiaomi.com>
f2fs: remove mappedtodisk flag usage in mmap write path
Josef Bacik <josef@toxicpanda.com>
net: skbuff: don't BUG() on a bad csum_start in skb_copy_and_csum_dev()
Runyu Xiao <runyu.xiao@seu.edu.cn>
ALSA: mpu401: shut down timer before freeing MPU
Tobias Schumacher <ts@linux.ibm.com>
s390/pci: Add error cleanup in zpci_directed_irq_init()
Andrey Misiurov <andrey.misyrov@gmail.com>
fbdev: core: Initialize modelist in framebuffer_alloc()
Fan Wu <fanwu01@zju.edu.cn>
media: rockchip: rga: quiesce IRQ before releasing m2m state
Sven Püschel <s.pueschel@pengutronix.de>
media: rockchip: rga: use clk_bulk api
Hans Verkuil <hverkuil-cisco@xs4all.nl>
media: rockchip: rga: fix clock cleanup
Marc Zyngier <maz@kernel.org>
KVM: arm64: Move IN_GUEST_MODE ahead of state being loaded
Jiale Yao <yaojiale02@163.com>
cxl/acpi: Check ACPI companion before use
David Hildenbrand (Arm) <david@kernel.org>
mm: disallow ioremap'ing ordinary RAM in generic_access_phys()
Marco Scardovi <scardracs@disroot.org>
platform/x86: asus-wmi: Serialize WMI method evaluations with a mutex
Runyu Xiao <runyu.xiao@seu.edu.cn>
mailbox: altera: shut down RX polling timer on channel teardown
Krzysztof Karas <krzysztof.karas@intel.com>
iommu/dma: Catch scatterlist length overflows
Bui Viet Dung <dungvn2345@gmail.com>
Bluetooth: hci_debugfs: Pin module for debugfs file operations
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: hci_core: Move all debugfs handling to hci_debugfs.c
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
ALSA: hda/hdmi: clamp sad_count in ELD proc write handler
Myeonghun Pak <mhun512@gmail.com>
mfd: twl-core: Unregister the auxiliary platform device on unbind
Thorsten Blum <thorsten.blum@linux.dev>
mfd: twl-core: Use i2c_check_functionality as boolean value
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
mfd: twl: Remove platform data support
Karl Mehltretter <kmehltretter@gmail.com>
KVM: arm64: vgic-v3: Roll back assignments from the new region
Daeho Jeong <daehojeong@google.com>
f2fs: return -EIO for a lost inode block after cp_error
Geraldo Nascimento <geraldogabriel@gmail.com>
PCI: rockchip-host: Do not attempt 5.0 GT/s retraining
Takashi Iwai <tiwai@suse.de>
ALSA: line6: Handle period elapsed calls outside the locks
Gregory Price <gourry@gourry.net>
mm/madvise: use folio_trylock() in the cold/pageout PMD split
Ethan Nelson-Moore <enelsonmoore@gmail.com>
ata: sata_inic162x: remove dangerous broken driver
Wentao Liang <vulab@iscas.ac.cn>
media: vpif_capture: Fix i2c adapter reference leak in vpif_probe()
Myeonghun Pak <mhun512@gmail.com>
ASoC: stm: stm32_i2s: request IRQ after regmap initialization
bui duc phuc <phucduc.bui@gmail.com>
ASoC: stm: stm32_i2s: Drop redundant error messages
Olivier Moysan <olivier.moysan@foss.st.com>
ASoC: stm32: i2s: remove irqf_oneshot flag
Ryusuke Konishi <konishi.ryusuke@gmail.com>
nilfs2: ignore non-fatal signals during synchronous log write wait
Ryusuke Konishi <konishi.ryusuke@gmail.com>
nilfs2: correct return value kernel-doc descriptions for the rest
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
dmaengine: qcom: bam_dma: free interrupt before the clock in error path
Vishnu Santhosh <vishnu.santhosh@oss.qualcomm.com>
dmaengine: qcom: bam_dma: Defer IRQ trigger type to device tree
Tom Verdonck <tom.verdonck@inspiral.be>
hwmon: (tmp108) Fix jiffies wraparound in conversion-ready check
Yunpeng Tian <shionthanatos@gmail.com>
udf: validate the device specification EA before using it
Marek Czernohous <marek@czernohous.de>
drm/nouveau/pci: use config-space MSI rearm on MCP79/MCP7A (NVAC)
Naman Jain <namjain@linux.microsoft.com>
x86/init: Initialize wall clock in get_rtc_noop()
Hungyu Lin <dennylin0707@gmail.com>
mm/migrate: untag addresses when querying page nodes
Wang Jiang <jiangwang@kylinos.cn>
drm/amd/display: skip pre-flip post_update on DCE
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
ALSA: hwdep: Serialize DSP load requests
David Hildenbrand (Arm) <david@kernel.org>
mm/madvise: fix data loss from MADV_FREE on a KSM page
Takashi Iwai <tiwai@suse.de>
ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect
Daehyeon Ko <4ncienth@gmail.com>
splice: avoid stale f_pos writeback on error
Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
splice: always fsnotify_access(in), fsnotify_modify(out) on success
Chung-Chiang Cheng <cccheng@synology.com>
splice: report related fsnotify events
Kyle Zeng <kylebot@openai.com>
mm/page_vma_mapped: continue past nonmatching huge PMDs
Dominik Maier <dmnk@google.com>
loop: check for read-write open mode on LOOP_SET_STATUS in lo_compat_ioctl()
Ido Schimmel <idosch@nvidia.com>
ipmr, ip6mr: validate packets injected into the register vif on xmit
Josef Bacik <josef@toxicpanda.com>
mm/hugetlb: unmap the page where the other VMA maps it
Sinan Turunc <enscrpt@pm.me>
ALSA: usb-audio: Bound packet copies by the PCM buffer size
Muhammad Bilal <meatuni001@gmail.com>
platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()
Michal Pecio <michal.pecio@gmail.com>
usb: xhci: Fix bounce buffer overflow
Yuejie Shi <syjcnss@gmail.com>
fs/ntfs3: validate the EA value length in ntfs_read_ea()
Xiang Mei <xmei5@asu.edu>
ceph: fix integer overflow in the snap trace bounds check
Pedro Falcato <pfalcato@suse.de>
mm/madvise: atomically clear the young bit on THP MADV_COLD
Vaibhav Nagare <vnagare@redhat.com>
bnxt_en: don't leave an XDP program installed when the open fails
Kyle Zeng <kylebot@openai.com>
netfilter: nf_reject: initialize IPCB at inet ingress
Jun Yang <junvyyang@tencent.com>
sctp: re-point retained control chunks on association migration
David Lee <david.lee@trailofbits.com>
sctp: hold shkey across socket migration
Seungjin Bae <eeodqql09@gmail.com>
usb: typec: ucsi: ccg: Validate altmode index in GET_CURRENT_CAM response
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
crypto: ecc - Handle exceptional points in Shamir multiplication
Sergey Senozhatsky <senozhatsky@chromium.org>
ext4: fix ABBA deadlock in ext4_rmdir()
Abdifatah Suruur <suruurism@gmail.com>
xen/gntdev: prevent private mappings from becoming writable
Jinwang Li <jinwang.li@oss.qualcomm.com>
Bluetooth: L2CAP: Ignore connection responses with wrong ident
Siwei Zhang <oss@fourdim.xyz>
Bluetooth: L2CAP: Only accept connection responses to outstanding requests
Siwei Zhang <oss@fourdim.xyz>
Bluetooth: L2CAP: Reject signalling responses in invalid states
Kuniyuki Iwashima <kuniyu@amazon.com>
af_unix: Clear oob_skb in scan_inflight()
Sean Christopherson <seanjc@google.com>
KVM: x86/mmu: Bug the VM if KVM calcs a CPU role with EFER.LMA=1 && CR4.PAE=0
Punnay Sharma <punnaysharma805@gmail.com>
staging: media: av7110: fix sp8870 initialization failure state
Guangshuo Li <lgs201920130244@gmail.com>
media: i2c: ov5647: fix power cleanup on remove
Sakari Ailus <sakari.ailus@linux.intel.com>
platform/x86: int3472: Fix uninitialised variable warning
Sean Young <sean@mess.org>
media: meson-ir-tx: Ensure probe error is propagated
Yihao Han <hanyihao@vivo.com>
media: meson-ir-tx: remove superfluous dev_err()
Sean Young <sean@mess.org>
media: redrat3: Error path leaves device in transmitting state
Esben Haabendal <esben@geanix.com>
iio: light: ltr501: Power down chip if request irq fails
Jiaming Zhang <r772577952@gmail.com>
gfs2: reject invalid inode sizes
Tom Verdonck <tom.verdonck@inspiral.be>
hwmon: (tmp102) Fix jiffies wraparound in conversion-ready check
Runyu Xiao <runyu.xiao@seu.edu.cn>
ALSA: usb-audio: Protect Roland control activation
Wentao Liang <vulab@iscas.ac.cn>
mtd: mtdsuper: Fix MTD device reference leak in mtd_get_sb()
Fan Wu <fanwu01@zju.edu.cn>
media: mediatek: vpu: free IRQ before destroying watchdog workqueue
Christophe JAILLET <christophe.jaillet@wanadoo.fr>
media: mtk-vpu: Remove redundant 'flush_workqueue()' calls
Karl Mehltretter <kmehltretter@gmail.com>
KVM: arm64: vgic-v3: Undo assignment on iodev registration failure
Fabio Cesari <fabio.cesari@gmail.com>
iio: light: isl29028: fix runtime PM reference leak on error paths
Sean Christopherson <seanjc@google.com>
KVM: x86/mmu: Bug the VM if KVM attempts to walk more levels than the MMU has
Sean Christopherson <seanjc@google.com>
KVM: x86/mmu: Bug the VM if a vCPU ends up in long mode without PAE enabled
Sean Christopherson <seanjc@google.com>
KVM: nSVM: Ignore EFER.LMA if EFER.LME=0 when preparing L2 state
Balakrishnan Sambath <balakrishnan.s@microchip.com>
media: microchip-isc: don't sleep in the clk .is_enabled callback
Hui Peng <benquike@gmail.com>
seccomp: restore knotif->state when SECCOMP_ADDFD_FLAG_SEND is interrupted
Balakrishnan Sambath <balakrishnan.s@microchip.com>
media: microchip-isc: synchronize the IRQ before disabling clocks on stop
Balakrishnan Sambath <balakrishnan.s@microchip.com>
media: microchip-isc: fix WB offset and gain register field masking
Fan Wu <fanwu01@zju.edu.cn>
media: imx-jpeg: finish the job on device_run() error paths
Stanislaw Gruszka <stf_xl@wp.pl>
wifi: mac80211: queue frames while off-channel
Andre Przywara <andre.przywara@arm.com>
of/fdt: Ignore disabled memory nodes
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close
Takashi Iwai <tiwai@suse.de>
ALSA: bcd2000: Fix race between rawmidi and disconnect
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
ALSA: usx2y: Refuse a retried DSP load after a failure
Eric Biggers <ebiggers@kernel.org>
lib/crypto: mips: Disable Octeon SHA code on little-endian kernels
Sven Eckelmann <sven@narfation.org>
batman-adv: tt: don't drop local events queued during TVLV update
Sven Eckelmann <sven@narfation.org>
batman-adv: tt: only update flags for TT events
Sven Eckelmann <sven@narfation.org>
batman-adv: tt: ignore ROAM flag of received ADD changes
Sven Eckelmann <sven@narfation.org>
batman-adv: tt: send ROAM_ADV on each roamed back client
Sven Eckelmann <sven@narfation.org>
batman-adv: tt: clear ROAM flag when re-adding a pending local client
Sven Eckelmann <sven@narfation.org>
batman-adv: tt: only transmit local ROAM flag together with DEL
Sven Eckelmann <sven@narfation.org>
batman-adv: stop originator purge worker before freeing TT
Sven Eckelmann <sven@narfation.org>
batman-adv: tpmeter: fix u32 truncation of reported bytes
Chengfeng Ye <nicoyip.dev@gmail.com>
batman-adv: Close OGM aggregation before transmission
Sven Eckelmann <sven@narfation.org>
batman-adv: Limit number of aggregated packets directly
Daehyeon Ko <4ncienth@gmail.com>
crypto: algif_skcipher - rewind rounded output bytes
Jan Kara <jack@suse.cz>
udf: Make sure there's enough space for LVID implementation use field
Jan Kara <jack@suse.cz>
udf: Avoid invalid LVID used on mount
Zhenhao Wan <whi4ed0g@gmail.com>
drm/nouveau/svm: drain fault handler before freeing svmm
Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
iommu/amd: Force device table to maximum size
Joanne Chang <joannechien@google.com>
f2fs: allow pinning empty compressed files
Jiucheng Xu <jiucheng.xu@amlogic.com>
f2fs: force out-place update for all writes on compressed file
Federico Musto <federico@rimpianto.com>
net: atl1c: drop oversized RX frames instead of panicking
Ard Biesheuvel <ardb@kernel.org>
efi/libstub: arm64: Don't use the platform register x18
Igor Velkov <iav@iav.lv>
genirq/kexec: Do not take the bus lock of an interrupt chip on the crash path
Ricardo Ribalda <ribalda@chromium.org>
media: uvcvideo: Force UVC version for Avermedia GC515
Ricardo Ribalda <ribalda@chromium.org>
media: uvcvideo: Add autosuspend quirk for AVerMedia Live Gamer HD 2
Ricardo Ribalda <ribalda@chromium.org>
media: uvcvideo: Disable autosuspend for Insta360 Link
Lee Jones <lee@kernel.org>
tracing/histograms: Verify event_call identity when updating synth_event refcount
Zhao Gongyi <zhaogongyi@bytedance.com>
ata: libata-scsi: reject data-in commands with a data-out buffer
Oliver Hartkopp <socketcan@hartkopp.net>
can: raw, isotp: copy socket options outside of lock_sock()
SJ Park <sj@kernel.org>
mm/damon/core: move static variable last_nr_regions to damon_ctx
Ido Schimmel <idosch@nvidia.com>
vxlan: Stop rejecting dynamic FDB entries with a nexthop ID
Lee Jones <lee@kernel.org>
HID: wacom: Fix Use-After-Free in wacom_bamboo_pad
Lee Jones <lee@kernel.org>
HID: wacom: Fix Use-After-Free in wacom_intuos_pad
Ramin Moussavi <ramin.moussavi@yacoub.de>
microblaze: restore the ABI argument home area below pt_regs (PTO)
Michal Simek <michal.simek@xilinx.com>
microblaze: Do loop unrolling for optimized memset implementation
Michal Simek <michal.simek@xilinx.com>
microblaze: Use simple memset implementation from lib/string.c
Kiryl Shutsemau (Meta) <kas@kernel.org>
arm64: sdei: Preserve the interrupted context's exception registers
Kiryl Shutsemau (Meta) <kas@kernel.org>
arm64: sdei: Run the event handler on the kernel vectors
Guanglei Zhu <zhugl3@xiaopeng.com>
ceph: clamp the inline data length in ceph_fill_inline_data()
Oliver Hartkopp <socketcan@hartkopp.net>
can: protect the receive lists with a per-device lock
Oliver Hartkopp <socketcan@hartkopp.net>
can: replace ARPHRD_CAN type checks with can_get_ml_priv()
Marco Ziliani <rylos78@gmail.com>
ata: libata-pmp: disable the SEMB port on Marvell 88SM9705
Thorsten Blum <blum@kernel.org>
x86/boot: Fix off-by-one error in sme_clear_pgd()
Jinjie Ruan <ruanjinjie@huawei.com>
arm64: kexec_file: Fix elf_headers memory leak in retry loop
Breno Leitao <leitao@debian.org>
x86/nmi: Ignore negative NMI handler durations
Danish Khateeb <danishkhateeb03@gmail.com>
perf/core: Don't send SIGTRAP after exec removed the event
Shao Mingyin <shao.mingyin@zte.com.cn>
nvmet: bound the traddr and trsvcid configfs writes
Imre Kaloz <kaloz@kernel.org>
MIPS: sgi-ip32: Leave MACE PCI control alone in config accesses
Imre Kaloz <kaloz@kernel.org>
MIPS: sgi-ip32: Mask MACE PCI interrupts in CRIME only
Imre Kaloz <kaloz@kernel.org>
MIPS: mm: Fix the cache error vector jump for XKPHYS kernels
Matthias Goergens <matthias.goergens@gmail.com>
udf: don't let the extent type hide an exhausted free-space table extent
Christian Gmeiner <cgmeiner@igalia.com>
drm/etnaviv: Flush the tile status cache through both the PE and BLT
James Clark <jjc@jclark.com>
net: ethernet: ti: am65-cpsw-nuss: Enable timestamping of unicast PTP packets
Ray Zhang <sgzhang@google.com>
net: count last skb of each sk_backlog pass in __release_sock()
Bryam Vargas <hexlabsecurity@proton.me>
net/smc: don't spin in smc_rx_recvmsg() while a pipe holds spliced data
Sinan Turunc <enscrpt@pm.me>
ALSA: usx2y: Guard the playback copy
Sinan Turunc <enscrpt@pm.me>
ALSA: usx2y: Require a buffer of two URBs
Wentao Liang <vulab@iscas.ac.cn>
ALSA: caiaq: free the EP4 URB when input setup fails
Sinan Turunc <enscrpt@pm.me>
ALSA: line6: Reject capture buffers smaller than two packets
Alex Kazinsky <a.kazinsky@ideco.ru>
ALSA: cs46xx: Handle SCB creation failures before dereferencing
Chris Simpson <chris@nilk.net>
ALSA: hda/realtek: Enable bass speakers on Alienware m17 R3
Ilia Mirkin <imirkin@alum.mit.edu>
drm/nouveau/devinit/gf100-: try to avoid double-running vbios scripts
Zhao Gongyi <zhaogongyi@bytedance.com>
arm64: mm: validate /dev/mem mmap ranges without overflow
Ewan D. Milne <emilne@redhat.com>
nvmet: don't return memory contents beyond valid data when reading ANA log page
Jamal Hadi Salim <jhs@mojatatu.com>
net/sched: clamp skb->queue_mapping before indexing the tx queue
Xia Yan <yanxia@cmss.chinamobile.com>
ipv6: fix device binding after failed datagram connect
David Hildenbrand (Arm) <david@kernel.org>
mm/ksm: reset the unstable trees of all nodes
Josef Bacik <josef@toxicpanda.com>
mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit
Chris Mason <mason@kernel.org>
mm/mmu_notifier: set ->mm only after mmgrab()
Josef Bacik <josef@toxicpanda.com>
mm/mmu_gather: fix flushing ranges with 4 GiB or larger
Chris Mason <mason@kernel.org>
mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast
Liu Changjie <liucj1228@outlook.com>
can: peak_usb: pcan_usb_fd_decode_buf(): accept short uCAN end-of-list records
ChunYuZhiQiang <chunyuzhiqiang@yinhe.ht>
can: dev: can_fill_info(): don't wake up controller if interface is down
Oliver Hartkopp <socketcan@hartkopp.net>
can: proc: skip stats calculation after reset in can_stat_update()
Runyu Xiao <runyu.xiao@seu.edu.cn>
can: proc: reset pkg_stats atomics individually
Oliver Hartkopp <socketcan@hartkopp.net>
can: isotp: check the return values of can_rx_register() in isotp_bind()
Cunhao Lu <1579567540@qq.com>
can: dev: can_put_echo_skb(): free skb on invalid echo index
Daejun Park <daejun7.park@samsung.com>
xfs: clamp the pNFS layout range to the maximum file size
Daejun Park <daejun7.park@samsung.com>
xfs: clamp a pNFS LAYOUTCOMMIT extent before computing its end
Reid Downing <skibletz@gmail.com>
xfs: fix wrong compat fields in xfs_ioctl32_bstat_copyin()
Hungyu Lin <dennylin0707@gmail.com>
block: Return the soft block size for compat BLKBSZGET
Hungyu Lin <dennylin0707@gmail.com>
inotify: do not coalesce rename events
Esben Haabendal <esben@geanix.com>
drm/bridge: nwl-dsi: Limit LCDIF specific sync override
Esben Haabendal <esben@geanix.com>
drm/bridge: nwl-dsi: Cleanup endpoint mux control selection
Kyle Zeng <kylebot@openai.com>
net/sched: sch_qfq: prevent aggregate self-replacement
Jianyun Gao <jianyungao89@gmail.com>
xfs: fix temporary cursor leak in btree shift corruption paths
Cen Zhang <zzzccc427@gmail.com>
ocfs2: wait for filecheck kobject release after a failed add
Cen Zhang <zzzccc427@gmail.com>
ocfs2/cluster: unlink socket containers before releasing resources
Cen Zhang <zzzccc427@gmail.com>
ocfs2: stop recovery before shutting down local allocators
Cen Zhang <zzzccc427@gmail.com>
ocfs2/dlm: serialize migration MLE cleanup on failure
Cen Zhang <zzzccc427@gmail.com>
ocfs2: keep locking_state within the cluster connection lifetime
Matheus Alves de Almeida <matheus.aalmeida@inf.ufrgs.br>
fat: hold truncate_lock in fat_write_failed()
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: do not read the entry array of an empty xattr block
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: do not index before the entry array when dividing an empty bucket
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: find the xattr entry again after converting a block to a bucket
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: find the xattr entry again after defragmenting a bucket
Andrew Morton <akpm@linux-foundation.org>
openrisc: export __mulsi3 for modules
Sean Christopherson <seanjc@google.com>
KVM: nVMX: Process each host MSR entry at most once when unwinding failed VM-Entry
Sean Christopherson <seanjc@google.com>
KVM: x86: Conditionally resched when restarting REP string emulation
Sean Christopherson <seanjc@google.com>
KVM: x86/mmu: Conditionally resched when retrying gPTE walk on A/D update failure
Guenter Roeck <linux@roeck-us.net>
hwmon: (pmbus/q54sj108a2) Add missing NULL pointer check
Guenter Roeck <linux@roeck-us.net>
hwmon: (nct6683) Fix incorrect struct cast in show_pwm() and store_pwm()
Guenter Roeck <linux@roeck-us.net>
hwmon: (lm87) Fix drvdata type confusion in vrm_show() and vrm_store()
Baek Kyu, Kim <pocj8ur4in@gmail.com>
hwmon: (corsair-cpro) Cache fan target only after a successful command
Xia Yan <yana06070@163.com>
veth: keep carrier off when resizing channels with a down peer
Fang Xieyan <fangxy@xiaopeng.com>
vringh: reject empty / undersized indirect descriptor tables
Fang Xieyan <fangxy@xiaopeng.com>
vringh: bound top-level re-entry into indirect tables
Tal Zussman <tz2294@columbia.edu>
vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path
Jose Maria Casanova Crespo <jmcasanova@igalia.com>
drm/v3d: Initialize timedout_batches when running a CSD job
Josef Bacik <josef@toxicpanda.com>
mm/memfd: make f_pos accesses atomic
Chris Mason <mason@kernel.org>
mm/mempolicy: charge shared policy nodes
Ian Bridges <icb@fastmail.org>
ksmbd: grant a POSIX ACL group entry only to the group's members
Lu Yao <yaolu@kylinos.cn>
drm/i915/gem: Reset err for each fence entry
Ian Bridges <icb@fastmail.org>
ksmbd: require DELETE access for delete-on-close opens
Jamal Hadi Salim <jhs@mojatatu.com>
bpf: Fix skb_pull() BUG in __bpf_redirect_neigh()
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
ALSA: usx2y: Initialize idle URBs before submitting streams
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
ALSA: us122l: Fix NULL dereference at hwdep open and release
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
ALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()
Shao Mingyin <shao.mingyin@zte.com.cn>
scsi: target: tcmu: Fix divide-by-zero in data_pages_per_blk store
Yuanhe Shu <xiangzao@linux.alibaba.com>
scsi: target: Verify the iSCSI ISID is null-terminated
Yingjie Wang <x-professor@outlook.com>
scsi: bsg: Report synchronous data copyback failures
guolingxing <guolingxing@tju.edu.cn>
btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()
Masafumi Suzuki <shengshilingmu97@gmail.com>
sctp: account for chunk padding in sctp_init_cause()
Lucas Tanure <lucas.tanure@neat.no>
drm/vc4: hdmi: always cancel the scrambling work synchronously
Franck Baur <franck.baur.67@gmail.com>
net: jme: keep RX MAC clock enabled for WoL
Sven Eckelmann <sven@narfation.org>
batman-adv: fix skb leak when hard_iface is being released
Sven Eckelmann <sven@narfation.org>
batman-adv: dat: initialize orig_node of unfilled candidate slots
Yuanfu Xie <yuanfuxie@stu.pku.edu.cn>
9p: don't decrement a server-owned zero nlink
Yehyeong Lee <yhlee@isslab.korea.ac.kr>
9p/xen: validate the response size from the backend
Imre Kaloz <kaloz@kernel.org>
scsi: aic7xxx: Use default settings on the SGI O2 onboard controllers
Maíra Canal <mcanal@igalia.com>
drm/vc4: Publish the output fence outside of job_lock
Zijing Yin <yzjaurora@gmail.com>
wifi: cfg80211: fix out-of-bounds read in valid_rule()
Alex Kazinsky <a.kazinsky@ideco.ru>
wifi: rsi: Skip TX aggregation setup for non-QoS frames
Weigang He <geoffreyhe2@gmail.com>
wifi: mac80211: reload TDLS header pointer after skb_linearize()
André Draszik <andre.draszik@linaro.org>
drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind
Sabrina Dubroca <sd@queasysnail.net>
xfrm: espintcp: reorder operations within espintcp_init_sk
Qihang <q.h.hack.winter@gmail.com>
xfrm: interface: validate the IP header on xmit
Zhao Zhang <zzhan461@ucr.edu>
9p: fix caches_show() out-of-bounds write
Yifei Gao <gyf161023@gmail.com>
9p/xen: fix refcount leak in p9_xen_response() on wrong tag
Michael Bommarito <michael.bommarito@gmail.com>
9p/trans_virtio: reject mount tags longer than NAME_MAX at probe
Noam D. Eliyahu <noam.d.eliyahu@gmail.com>
tg3: Invert restart quirk logic to restrict SNP power-down bypass
Hungyu Lin <dennylin0707@gmail.com>
posix-timers: Accept NULL clock_getres() output in stubs
Yingjie Wang <x-professor@outlook.com>
scsi: handle out-of-range SG_SET_TIMEOUT values
Sahaj Chaudhari <sahaj123.sc@gmail.com>
gpio: pca953x: Preserve wakeup accounting on parent IRQ failure
Henry Martin <bsdhenrymartin@gmail.com>
rds: fix out-of-bounds conn_path walks via handshake exthdrs
Richard Patel <ripatel@wii.dev>
genirq: Move interrupt thread exit_work object to irqaction
Bui Viet Dung <dungvn2345@gmail.com>
Bluetooth: selftest: Pin module for selftest debugfs file operations
Guangshuo Li <lgs201920130244@gmail.com>
mfd: ab8500: Fix child device leaks on probe failure
Benjamin Coddington <ben.coddington@hammerspace.com>
NFSv4/pnfs: Free the netid when draining a data-server address list
Chuck Lever <cel@kernel.org>
NFSD: Resolve the recall-any mask names in the trace format
Kazuki Hanai <hnkz.64@gmail.com>
media: mediatek: jpeg: Avoid context access after job finish
Rupesh Majhi <zoone.rupert@gmail.com>
iio: pressure: dps310: fix CFG_REG bit definitions
Ruoyu Wang <ruoyuw560@gmail.com>
media: adv748x: Fix endpoint reference leaks on probe failure
Pengpeng Hou <pengpeng@iscas.ac.cn>
media: require two-byte Cypress type 04 records
Takashi Iwai <tiwai@suse.de>
ALSA: usb-audio: Don't try to submit URBs after disconnection
Alexander Sverdlin <alexander.sverdlin@siemens.com>
pwm: tiehrpwm: Clear period on disable to allow reconfiguration
Weibin Liu <liuwb@xiaopeng.com>
spi: bcm-qspi: reject oversized dummy bytes in mspi exec_mem_op
Daejun Park <daejun7.park@samsung.com>
jbd2: don't advance j_fc_off before the buffer is recorded
Christian Borntraeger <borntraeger@linux.ibm.com>
s390/vmcp: Initialize full session info to zero
Pufan Jin <cyan2254650260@gmail.com>
spi: zynq-qspi: fix address buffer corruption and support 4-byte address
Rosen Penev <rosenp@gmail.com>
net: bgmac: enable interrupts only after NAPI is ready
Rosen Penev <rosenp@gmail.com>
mtd: rawnand: ndfc: use devm_platform_ioremap_resource()
Rosen Penev <rosenp@gmail.com>
mtd: rawnand: ndfc: fix gcc uninitialized var
Arnd Bergmann <arnd@arndb.de>
mtd: rawnand: ndfc: add CONFIG_OF dependency
Rosen Penev <rosenp@gmail.com>
mtd: rawnand: ndfc: use ioread32be/iowrite32be and allow COMPILE_TEST
Darrick J. Wong <djwong@kernel.org>
xfs: always report scrub errors in tracepoints
Eric Biggers <ebiggers@kernel.org>
raid6: add missing vzeroupper to AVX2 code
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
xfs: bound da-node entry count against the correct geometry
Darrick J. Wong <djwong@kernel.org>
xfs: reject absurdly large xattr value lengths in xchk_xattr_actor
Darrick J. Wong <djwong@kernel.org>
xfs: rescan the AGs if incore delalloc counter is negative
Darrick J. Wong <djwong@kernel.org>
xfs: allow softlimit with no hardlimit in quota scrub
Qingfang Deng <qingfang.deng@linux.dev>
pppoe: delete session hash entries by pointer match
Sebastian Andrzej Siewior <bigeasy@linutronix.de>
debugobjects: Use LD_WAIT_CONFIG instead of LD_WAIT_SLEEP
Peter Zijlstra <peterz@infradead.org>
debugobjects,locking: Annotate debug_object_fill_pool() wait type violation
Christian Loehle <christian.loehle@arm.com>
ACPI: CPPC: Propagate errors from cross-CPU FFH calls
Christian Loehle <christian.loehle@arm.com>
ACPI: CPPC: Validate FFH register fields before hardware access
Eric Biggers <ebiggers@kernel.org>
raid6: add missing vzeroupper to AVX-512 code
Eric Biggers <ebiggers@kernel.org>
xor: add missing vzeroupper to AVX code
Eric Biggers <ebiggers@kernel.org>
fsverity: Explicitly require FMODE_READ to retrieve hashes
Til Kaiser <mail@tk154.de>
mlxsw: Initialize register query payloads
Jiale Yao <yaojiale02@163.com>
HID: prodikeys: validate fixed-format MIDI reports
Jiri Slaby (SUSE) <jirislaby@kernel.org>
HID: hid-prodikeys: remove struct pk_device
Sean Christopherson <seanjc@google.com>
KVM: x86: Preserve DR6.BLD (Bus Lock Detect) when delivering #DB payload
Keqiang Duan <duankeqiangcym@gmail.com>
KVM: x86: Clear hardware HLT state when userspace makes a vCPU not-halted
Sean Christopherson <seanjc@google.com>
KVM: nSVM: Reject KVM_SET_NESTED_STATE if L1 has EFER.LMA=1 && EFER.LME=0
David Howells <dhowells@redhat.com>
afs: Fix afs to abort the rxrpc call on send error
Chuck Lever <cel@kernel.org>
NFSD: Map flex file layout IDs through the request's user namespace
Chuck Lever <cel@kernel.org>
NFSD: Complete a cld upcall when copying its reply fails
Chuck Lever <cel@kernel.org>
NFSD: Complete a cld upcall when the daemon closes the pipe
Chuck Lever <cel@kernel.org>
NFSD: Move the cld upcall message out of the caller's stack frame
Jeff Layton <jlayton@kernel.org>
nfsd: don't offer flexfiles layouts when NFSv3 isn't being served
Benjamin Coddington <bcodding@hammerspace.com>
NFSv4/flexfiles: fail I/O to the data server once a lock is lost
Ratnaker Gautam <ratnaker.gautam@kuleuven.be>
smb: client: bound POSIX lock data area by response length
Benjamin Coddington <ben.coddington@hammerspace.com>
NFSv4/pnfs: bound the CB_NOTIFY_DEVICEID array count before allocating
Darrick J. Wong <djwong@kernel.org>
xfs: improve dirent bounds checking in scrub and repair
Darrick J. Wong <djwong@kernel.org>
xfs: check for buffer overruns when examining local/remote xattr entries
Ratnaker Gautam <ratnaker.gautam@kuleuven.be>
smb: client: validate SMB1 EA list bounds before parsing
Dominik Maier <dmnk@google.com>
smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl()
Luxiao Xu <rakukuip@gmail.com>
smb: client: fix buffer overflow in SMB2_tcon()
Abdifatah Suruur <suruurism@gmail.com>
smb: client: fix fiemap wild read on empty truncated response
VeroFess <coderzeng@hotmail.com>
smb: server: size directory name conversion buffer correctly
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
xfs: bound inode fork length against the fork size during log recovery
Chris Mason <mason@kernel.org>
ovl: check that the parents of volatile/dirty are dirs
Chris Mason <mason@kernel.org>
ovl: do not copy up a dentry that was removed
Chris Mason <mason@kernel.org>
ovl: hold a reference on the parent in readdir
Chris Mason <mason@kernel.org>
ovl: do not copy up an xattr value that was never read
Christian Brauner <brauner@kernel.org>
ovl: use ovl_path_getxattr() wrapper
Christian Brauner <brauner@kernel.org>
ovl: pass ofs to setattr operations
Christian Brauner <brauner@kernel.org>
ovl: add ovl_upper_mnt_userns() wrapper
Chris Mason <mason@kernel.org>
ovl: take a snapshot of the name for copy up
Eduard Zateev <hackerowskiy@gmail.com>
smb: client: hold server info until cifsd exits
Kamil Sawicki <user148783812897@gmail.com>
net: limit priority VLAN untag depth
Andrew Stellman <astellman@stellman-greene.com>
nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
ALSA: x86: hdmi: fix chmap array missing terminator entry
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
SUNRPC: fix oversized GSS proxy token copy
David Howells <dhowells@redhat.com>
rxrpc: Fix update of call->tx_pending without holding lock
Chuck Lever <cel@kernel.org>
NFSD: Set nn->cld_net before registering the cld pipe
Abdifatah Suruur <suruurism@gmail.com>
smb: client: validate the data area in SMB2_read()
Tristan Madani <tristan@talencesecurity.com>
ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment
Jason Perlow <jperlow@gmail.com>
wifi: brcmfmac: map msgbuf RX packet IDs bidirectional
Avi Weiss <thnkslprpt@gmail.com>
init/bootconfig: pass init arguments in documented order
Hungyu Lin <dennylin0707@gmail.com>
fs: skip copy_file_range write limits when there is no data
Kyle Zeng <kylebot@openai.com>
tcp: fix reordering addition overflow in MTU probing
Zhiling Zou <zhilinz@nebusec.ai>
tcp: check congestion control restriction first
Kunhai Dai <daikunhai@didiglobal.com>
blk-iocost: abort weight transfer on invalid donation weights
Josef Bacik <josef@toxicpanda.com>
mount: refuse setns() with a shared fs_struct again
Eric Biggers <ebiggers@kernel.org>
fsverity: Be more careful with return value of ->get_verity_descriptor()
Fang Xieyan <fangxy@xiaopeng.com>
kgdb: Fix buffer overflow in the qRcmd packet handler
Fang Xieyan <fangxy@xiaopeng.com>
kgdb: Fix buffer overflow in the 'M' and 'X' packet handlers
Fang Xieyan <fangxy@xiaopeng.com>
kgdb: Fix buffer overflow in the 'm' packet handler
Guixin Liu <kanie@linux.alibaba.com>
nvmet: Finish the blk plug when integrity allocation fails
Guixin Liu <kanie@linux.alibaba.com>
nvmet-fc: Tear down the association when the admin queue allocation fails
Andrea Parri <parri.andrea@gmail.com>
nvmet-fc: only send read data for successful commands
Weiming Shi <bestswngs@gmail.com>
nvmet-rdma: reject short connection requests
Tristan Madani <tristan@talencesecurity.com>
ppp: fix stale pointer access after pskb_may_pull in ppp_ccp_peek
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
ASoC: hdac_hda: Keep runtime PM state in sync across codec remove/probe
Hongling Zeng <zenghongling@kylinos.cn>
ntfs3: fix mapping pairs bounds check for alignment
Hyeontae Lee <wonju345@naver.com>
fs/ntfs3: bound DeleteAttribute asize against rec->used in do_action
Hyeontae Lee <wonju345@naver.com>
fs/ntfs3: bound CreateAttribute asize against record_size in do_action
David Yang <mmyangfl@gmail.com>
net: hisilicon: hisi_femac: Stop the receiver before releasing the RX ring
Xia Yan <yanxia@cmss.chinamobile.com>
macvlan: fix passthru promiscuity accounting while down
Jiale Yao <yaojiale02@163.com>
drm/amdkfd: validate SRAT subtables before parsing
Luigi Lauro <luigi.lauro@gmail.com>
drm/amd/display: take a runtime PM reference only when a CRTC turns on
Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>
cpufreq: stats: Fix potential out-of-bounds access in deferred reset
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
ASoC: hdac_hda: Balance the runtime PM disable in codec remove
Eric Dumazet <edumazet@kernel.org>
ixgbe: reserve TX timestamp after skb preparation
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
ALSA: hda: Reject codec reset on ASoC (ext_ops) buses
Ido Schimmel <idosch@nvidia.com>
ipmr: fully initialize the synthetic IP header in ipmr_get_route()
Jiayuan Chen <jiayuan.chen@linux.dev>
bonding: fix out-of-bounds read of arp_ip_target
Wei Jie Law <law.wei.jie@gt.tech.gov.sg>
net: usb: pegasus: check rx pkt_len against the received length
Val Packett <val@packett.cool>
ASoC: qcom: qdsp6: q6afe: fix clk vote response type mismatch
sung byeongchan <tjdqudcks0424@naver.com>
ceph: validate encoded xattr name lengths
sung byeongchan <tjdqudcks0424@naver.com>
ceph: bound name skips in ceph_mdsmap_decode() by the message end
Yuanfu Xie <yuanfuxie@stu.pku.edu.cn>
ceph: clamp MDS reply result code to the errno range
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
libceph: fix out-of-bounds reads from repeated CRUSH bucket entries
Wentao Liang <vulab@iscas.ac.cn>
ceph: Fix mds session leak in __open_export_target_session()
Wentao Liang <vulab@iscas.ac.cn>
ceph: Fix xattr buffer leak in __send_cap()
Felix Hoffmann <f3lix.dev@gmx.de>
libceph: reject mismatched CRUSH weight-set sizes
Raphael Zimmer <raphael.zimmer@tu-ilmenau.de>
libceph: Fix multiple unsafe decodes in ceph_oloc_decode()
Raphael Zimmer <raphael.zimmer@tu-ilmenau.de>
libceph: Fix unsafe decode in ceph_redirect_decode()
Xiubo Li <xiubo.li@clyso.com>
libceph: only set read_from_replica on read requests
Xiang Mei <xmei5@asu.edu>
ceph: reject mdsmaps that claim more than CEPH_MAX_MDS ranks
Max Kellermann <max.kellermann@ionos.com>
ceph: avoid pending truncate during nonblocking cap acquire
Hungyu Lin <dennylin0707@gmail.com>
time/namespace: Fix overflow when converting absolute deadlines
Hungyu Lin <dennylin0707@gmail.com>
timers/itimer: Keep a nonzero value at CPU timer expiry
Wang Haoran <haoranwangsec@gmail.com>
fbdev: atmel_lcdfb: fix list_first_entry() on possibly empty modelist in probe
Cen Zhang <zzzccc427@gmail.com>
ocfs2/cluster: remove zero-address nodes from IP tree on teardown
Cen Zhang <zzzccc427@gmail.com>
ocfs2: snapshot the dentry name while tracing file release
Hungyu Lin <dennylin0707@gmail.com>
compat: avoid double rounding in times()
Ratnaker Gautam <ratnaker.gautam@kuleuven.be>
scsi: libiscsi_tcp: Prevent R2T range check overflow
Stanley Jhu <stanleyjhu@google.com>
scsi: ufs: core: Clear stale UIC result byte before peer DME retries
Sasha Levin <sashal@kernel.org>
cgroup: don't kill migrated processes through their exiting threads
Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
timekeeping: Update offsets on sequence counter retry in ktime_get_update_offsets_now()
Cen Zhang (Microsoft) <cenzhang@linux.microsoft.com>
posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() signal path
Christian Marangi <ansuelsmth@gmail.com>
i2c: mt7621: fix copying uninitialized kernel stack with reduced page_len
Jean Delu <jeandelu@tutamail.com>
parisc: eisa_enumerator: Fix out-of-bounds reads of the EEPROM buffer
Pei Xiao <xiaopei01@kylinos.cn>
tpm: fix zero-length read discarding the pending response
Pei Xiao <xiaopei01@kylinos.cn>
tpm: tpm_nsc: stop using the cleanup callback as dev.release
Pei Xiao <xiaopei01@kylinos.cn>
tpm: tpm_nsc: fix NULL pointer dereference on init failure
Navon John Lukose <navonjohnlukose@gmail.com>
i2c: designware: queue only one read command for block reads
Henry Martin <bsdhenrymartin@gmail.com>
tipc: fix broadcast sender hang on last acker departure
Liu Chao <liuc63@xiaopeng.com>
net: wwan: iosm: validate msg_head before indexing msg_ring
Runyu Xiao <runyu.xiao@seu.edu.cn>
sh: maple: Use the matching IRQ cookie when invoking free_irq()
Julian Sun <sunjunchao@bytedance.com>
writeback: clear old wb dirty state after inode switches
Julian Sun <sunjunchao@bytedance.com>
writeback: reset dirtied_when when switching wbs
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: reserve value tree metadata when moving an xattr into the inode
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: reserve metadata for a new xattr block and its value tree
Matt Turner <mattst88@gmail.com>
alpha: determine tininess after rounding in the FP emulation
Bryam Vargas <hexlabsecurity@proton.me>
net/smc: queue the copied chunk when smc_tx_sendmsg() faults
Yingjie Wang <1075151112@qq.com>
net: unix: reject negative max_dgram_qlen values
Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
net/rds: ib: don't enable IRQs in rds_ib_conn_free()
Tingjie Zhong <catme0w@live.cn>
fbdev: bitblit: Fix glyph clipping when fbcon pans
Daehyeon Ko <4ncienth@gmail.com>
ipv6: do not restart DAD for a dead ifaddr
Daehyeon Ko <4ncienth@gmail.com>
ipv6: initialize temporary ifaddr before publication
Keita Morisaki <kmta1236@gmail.com>
drm/amd/display: Fix swap in median3() for DSC rate control
Jesse Zhang <Jesse.Zhang@amd.com>
drm/amdgpu: reject ANONONLY userptrs that span multiple VMAs
Maciej Kucharek <qchcio@gmail.com>
drm/amdgpu: reset VI ASIC on Apple boards with VRAM at 0
Maciej Kucharek <qchcio@gmail.com>
drm/amdgpu: reset CIK ASIC on Apple boards with VRAM at 0
Luigi Lauro <luigi.lauro@gmail.com>
drm/amdgpu: require _PR3 for BOCO
Nirmoy Das <nirmoyd@nvidia.com>
blk-mq: clear stale inactive flag on hctx reuse
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
ALSA: compress: add missing OPEN-state gate to SET_METADATA
Jamal Hadi Salim <jhs@mojatatu.com>
netdevsim: reject cls_bpf programs bound to another device
Kir Kolyshkin <kolyshkin@gmail.com>
cgroup: fix cgroup.kill for exited thread group leader
Baek Kyu, Kim <pocj8ur4in@gmail.com>
hwmon: (sht3x) Return the consumed count for heater writes
Gregory Price <gourry@gourry.net>
rtc: cmos: Disable ACPI RTC event before handling it
Seongjae Jeong <jsjlee1020@gmail.com>
f2fs: fix submit accounting for IPU writeback
Wenjie Qi <qwjhust@gmail.com>
f2fs: flush SIT journal during filesystem resize
Sanan Hasanov <sanan.hasanov@ucf.edu>
hwmon: (corsair-cpro) Make wait_input_report_lock IRQ safe
Vasiliy Kovalev <kovalev@altlinux.org>
ALSA: hda/via: Apply runtime PM workaround for ASUS X55A
Magnus Lindholm <linmag7@gmail.com>
alpha: invalidate the local context in flush_icache_user_page()
Magnus Lindholm <linmag7@gmail.com>
alpha: invalidate the local context in flush_tlb_mm()
Magnus Lindholm <linmag7@gmail.com>
alpha: fix the local TLB invalidate in the UP flush_tlb_page()
Magnus Lindholm <linmag7@gmail.com>
alpha: fix the local TLB invalidate in flush_tlb_page()
Magnus Lindholm <linmag7@gmail.com>
alpha: invalidate the local context in flush_tlb_page()
Magnus Lindholm <linmag7@gmail.com>
alpha: only use a targeted tbi() when the target mm is really current
Magnus Lindholm <linmag7@gmail.com>
alpha: run check_mmu_context() from finish_arch_post_lock_switch()
Takashi Iwai <tiwai@suse.de>
ALSA: seq: oss: Skip events until fully initialized
Shubham Antil <shubham@octane.security>
RDS/IB: validate receive fragment completions
Seung Min Shin <guncraft2000@naver.com>
sctp: hold transport reference across connect wait
Zixuan Chai <petalzu987@gmail.com>
ipv6: defrag: orphan skb before queuing
Jianyun Gao <jianyungao89@gmail.com>
dax: Return errors from dax_core_init()
Radiy Zhambakiev <r.zhambakiev@prosoftsystems.ru>
mfd: tps65217: Check return value when masking interrupt sources
Radiy Zhambakiev <r.zhambakiev@prosoftsystems.ru>
mfd: tps65217: Fix NULL pointer dereference on IRQ init failure
Weibin Liu <liuwb@xiaopeng.com>
spi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer
Marc Zyngier <maz@kernel.org>
KVM: arm64: Move OUTSIDE_GUEST_MODE publication past context being saved
Ard Biesheuvel <ardb@kernel.org>
efi/libstub: Don't replace an existing LINUX_EFI_MEMRESERVE table
Weibin Liu <liuwb@xiaopeng.com>
spi: jcore: fix divide-by-zero when speed_hz is zero
Fuad Tabba <fuad.tabba@linux.dev>
irqchip/gic-v3-its: Don't clamp nvecs to zero when id_bits is 32
Hui Su <sh_def@163.com>
cpufreq: schedutil: Serialize sugov_start() against rate limit updates
Siwei Zhang <oss@fourdim.xyz>
Bluetooth: L2CAP: Use default TxWindow for zero socket option
Siwei Zhang <oss@fourdim.xyz>
Bluetooth: L2CAP: Reject invalid TxWindow in configuration requests
Siwei Zhang <oss@fourdim.xyz>
Bluetooth: L2CAP: Reject mode changes on connected channels
Bui Viet Dung <dungvn2345@gmail.com>
Bluetooth: 6lowpan: Pin module for 6lowpan_control debugfs file
Karl Mehltretter <kmehltretter@gmail.com>
ARM: 9491/1: alignment: restore uaccess state on emulation fault
Tim Douglas <me@timdoug.com>
serial: pmac_zilog: push received data to the port that received it
Jiri Slaby (SUSE) <jirislaby@kernel.org>
serial: 8250_lpss: do not touch uninitialized line in ehl_serial_exit()
Denis Arefev <arefev@swemel.ru>
ALSA: cs46xx: fix unit mismatch in DSP code area bounds check
Aamir Ahmed <elb12345@hotmail.co.uk>
lib: decompress_bunzip2: fix integer overflow in run-length decoding
Matt Turner <mattst88@gmail.com>
lib/decompress_bunzip2: fix off-by-one in run-length bounds check
Kaixuan Li <kaixuanli0131@gmail.com>
f2fs: check every cur_*_segno[] entry on readonly images
Karl Mehltretter <kmehltretter@gmail.com>
sh: intc: Sort the prio and sense lists after filling them
Andrea Parri <parri.andrea@gmail.com>
nvmet: zns: don't leak stale memory in zone management receive
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
nvmet: free the bvec on file namespace range errors
Yehyeong Lee <yhlee@isslab.korea.ac.kr>
nvme-rdma: don't complete a request after a bogus remote invalidation
Andrea Parri <parri.andrea@gmail.com>
iomap: don't lose a fiemap iteration error when emitting the last extent
Samuel Thibault <samuel.thibault@ens-lyon.org>
speakup: Fix NULL pointer dereference on VT switch + selection
Lorenzo Stoakes (ARM) <ljs@kernel.org>
fbdev: sh_mobile_lcdc: check for fb_deferred_io_init() error
Lorenzo Stoakes (ARM) <ljs@kernel.org>
fbdev: smscufx: check for fb_deferred_io_init() error
Lorenzo Stoakes (ARM) <ljs@kernel.org>
fbdev: udlfb: check for fb_deferred_io_init() error
Lorenzo Stoakes (ARM) <ljs@kernel.org>
fbdev: xen-fbfront: check for fb_deferred_io_init() error
Lorenzo Stoakes (ARM) <ljs@kernel.org>
fbdev: ssd1307fb: check for fb_deferred_io_init() error
Yuanhe Shu <xiangzao@linux.alibaba.com>
mm/page_alloc: do not boost watermarks in kdump capture kernels
Yongjian Mu <ymu@everpuredata.com>
xprtrdma: trim head iovec when the payload arrives via a Write chunk
Tim Menninger <tmenninger@everpuredata.com>
xprtrdma: prevent disconnect feedback during endpoint teardown
Weigang He <geoffreyhe2@gmail.com>
mtd: parsers: qcom: fix offset/size overflow on large partitions
Wentao Liang <vulab@iscas.ac.cn>
btrfs: zoned: fix block group reference leak in btrfs_repair_one_zone()
Ard Biesheuvel <ardb@kernel.org>
arm64/efi: Clear PTE_WRITE when applying EFI_MEMORY_RO
Mikulas Patocka <mpatocka@redhat.com>
dm-snapshot: fix crash if dm_io_client_create fails
Johan Hovold <johan@kernel.org>
USB: serial: sierra: fix urb leak on write completion
Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>
mailbox: qcom-ipcc: Guard against NULL con_priv in send_data()
Wayne Chang <waynec@nvidia.com>
usb: typec: ucsi_ccg: Add retry mechanism in ccg_read
Drobyshev Vladimir <enigma_137@icloud.com>
USB: cdc-acm: add VeriFone VX820 device ID
Zongmin Zhou <zhouzongmin@kylinos.cn>
slimbus: messaging: fix leaked PM vote on tid allocation failure
Johan Hovold <johan@kernel.org>
USB: serial: usb_wwan: fix urb leak on disconnect
Michael Wyraz <michael@wyraz.de>
USB: serial: option: add support for ASR 1286:4e3c modem
Reinhard Speyerer <rspmn@arcor.de>
USB: serial: option: add Rolling Wireless RN947R
Johan Hovold <johan@kernel.org>
USB: cdc-acm: fix urb leak on disconnect
Myeonghun Pak <mhun512@gmail.com>
soc: fsl: dpio: Fix cleanup on IRQ registration failure
Wentao Liang <vulab@iscas.ac.cn>
clk: imx: Fix clock reference leak in imx_obtain_fixed_clock_hw()
Wentao Liang <vulab@iscas.ac.cn>
clk: imx: Fix clock reference leak in imx_get_clk_hw_by_name()
Anastasios Papagiannis <tasos.papagiannnis@gmail.com>
mm/nommu: reject wrapping ranges in access_remote_vm()
Jinjie Ruan <ruanjinjie@huawei.com>
ext4: fix out-of-bounds read in ext4_get_group_info()
Daejun Park <daejun7.park@samsung.com>
ext4: don't report delalloc data as a hole on indirect-mapped inodes
Hemanth Selam <hemanth.selam@gmail.com>
ext4: skip extra isize expansion while unmounting
Matthias Goergens <matthias.goergens@gmail.com>
fanotify: report names longer than NAME_MAX
Krzysztof Wilczyński <kwilczynski@kernel.org>
PCI/sysfs: Pass the device name length in UTF-16 code units
Josef Bacik <josef@toxicpanda.com>
aoe: pull in the headers each received packet type reads
Wentao Liang <vulab@iscas.ac.cn>
clocksource/drivers/digicolor: Fix clk reference leak on request_irq failure
Wentao Liang <vulab@iscas.ac.cn>
clocksource/drivers/fttmr010: Fix clk reference leak in error paths
Wentao Liang <vulab@iscas.ac.cn>
wifi: mt76: Fix of_node reference leak in mt76_get_rate_power_limits()
Jiale Yao <yaojiale02@163.com>
wifi: mt76: mt7615: cancel reset work during unregister
Eason Lai <eason.lai@mediatek.com>
wifi: mt76: fix memory leak in USB TX path
Eason Lai <eason.lai@mediatek.com>
wifi: mt76: mt792x: fix UAF in SDIO TX path when out of memory
Mark Anthony Agarro <markanthonyagarro@gmail.com>
wifi: mt76: mt7615: do not tear down BSS/STA state for monitor vifs
Mark Anthony Agarro <markanthonyagarro@gmail.com>
wifi: mt76: mt76x02: validate TX-status rate index before mac80211 handoff
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: skip uninitialized lockres in ocfs2_mark_lockres_freeing()
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: free replay slots in ocfs2_recovery_exit()
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2: exit recovery thread on mount error path
Zi Yan <ziy@nvidia.com>
USB: gadgetfs: do not WARN about excessively large memory allocations
Michael Liang <mliang@purestorage.com>
fault-inject: fix dentry leak
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
fat: fix fat_ent_write() for reverting the value
DAI RENJIE <drj19981414013@gmail.com>
resource: fix lost wakeup when waiting for a muxed region
Nathan Chancellor <nathan@kernel.org>
wifi: brcmsmac: Adjust txpwrindex value in nphy_ipa_rxcal_gaintbl_2GHz
Denis Efremov (Oracle) <efremov@linux.com>
floppy: return the drive state flags from the 32-bit FDGETDRVSTAT
Denis Efremov (Oracle) <efremov@linux.com>
floppy: don't store a stack buffer in timeout_message
Chuck Lever <cel@kernel.org>
svcrdma: Grant credits from the clamped sc_max_requests
Runyu Xiao <runyu.xiao@seu.edu.cn>
perf: xgene: initialize lock before requesting IRQ
Linus Walleij <linusw@kernel.org>
power: supply: ab8500_fg: Report sub-percent charge changes
Andrey Albershteyn <aalbersh@kernel.org>
fsverity: hoist statx reporting of fs-verity flag
Tharit Tangkijwanichakul <tharitt97@gmail.com>
media: hantro: Harden MPEG-2 control access against NULL
Junrui Luo <moonafterrain@outlook.com>
media: vicodec: fix NULL deref on oversized frame
Guangshuo Li <lgs201920130244@gmail.com>
media: mediatek: vpu: release reserved memory on remove
Michael Freidkin <freidkin@gmail.com>
media: meson: vdec: size capture planes from the aligned canvas
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
crypto: nx - validate 'ignore' before subtracting in decompress
Thorsten Blum <blum@kernel.org>
hwrng: core - reject unknown RNG names
Thorsten Blum <blum@kernel.org>
hwrng: ba431 - fix reported byte count
Thorsten Blum <blum@kernel.org>
hwrng: amd - report partial reads in non-blocking mode
ZhaoJinming <zhaojinming@uniontech.com>
crypto: caam - fix double-free in caam_rsa_set_priv_key_form()
Wei Jie Law <98lawweijie@gmail.com>
media: uvcvideo: Fix NULL deref on events for uninitialized controls
Imre Kaloz <kaloz@kernel.org>
PCI: Disable MSI for ULi M1575 EHCI controller
Mikulas Patocka <mpatocka@redhat.com>
dm-writecache: fix uncommitted_blocks underflow
Mikulas Patocka <mpatocka@redhat.com>
dm-writecache: fix a crash if we attempt to use non-dax device
Mikulas Patocka <mpatocka@redhat.com>
dm-writecache: fix a quirk in statistics
Mikulas Patocka <mpatocka@redhat.com>
dm-writecache: report I/O error if flush failed
Kaho Jiang <kj2864@nyu.edu>
media: em28xx: fix double free in em28xx_alloc_urbs
Ginger Li <ginger.jzllee@gmail.com>
media: exynos4-is: Fix a race between s_stream(0) and the interrupt handler
Guangshuo Li <lgs201920130244@gmail.com>
media: rtl28xxu: fix SDR platform device leak
Wentao Liang <vulab@iscas.ac.cn>
media: pvrusb2: Fix USB parent device leak in class_dev_create()
Guangshuo Li <lgs201920130244@gmail.com>
media: tw686x: fix V4L2 device lifetime on probe failure
Tianchu Chen <flynnnchen@tencent.com>
staging: rtl8723bs: fix RX buffer OOB write from device-reported length
Johan Hovold <johan@kernel.org>
staging: greybus: uart: fix racy TIOCMIWAIT implementation
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
drm/msm/hdmi_bridge: Correct poweroff/audio cleanup order in post_disable
Runyu Xiao <runyu.xiao@seu.edu.cn>
m68k: dmasound: Keep the Q40 IRQ handler registered
Runyu Xiao <runyu.xiao@seu.edu.cn>
ALSA: sgio2audio: Only free successfully requested IRQs
Hitesh Patel <hitesh@ebytelogic.com>
media: qcom: camss: vfe-17x: Fix write master buffer done being dropped
Ibrahim Hashimov <security@auditcode.ai>
fs/ntfs3: fix integer overflow in find_log_rec() causing OOB read
David Heidelberg <david@ixit.cz>
arm64: dts: qcom: sdm845-xiaomi-beryllium: Extend the xbl_mem region
Piotr Kubik <piotr@kubik.pl>
netfilter: ctnetlink: fix inverted IPv6 address match in dump filter
Orgad Shaneh <orgads@gmail.com>
MIPS: mm: do not write a huge TLB entry when the probe misses
Ma Ke <make_ruc2021@163.com>
ASoC: wcd9335: Fix device reference leak in wcd9335_slim_status()
Richard Weinberger <richard@nod.at>
mtd: Call get_wunit() on the master partition
Wentao Liang <vulab@iscas.ac.cn>
mtd: maps: l440gx: Fix double put of the PM device in init_l440gx()
Wentao Liang <vulab@iscas.ac.cn>
mtd: maps: l440gx: Fix double put of the ISA bridge in init_l440gx()
Wentao Liang <vulab@iscas.ac.cn>
mtd: amd76xrom: Fix PCI device reference leak in amd76xrom_init_one()
Orgad Shaneh <orgads@gmail.com>
mtd: cfi_cmdset_0002: cap the write-buffer chunk at 256 bytes on an x8 device
Myeonghun Pak <mhun512@gmail.com>
mtd: maps: pci: balance PCI enable on cleanup
Wentao Liang <vulab@iscas.ac.cn>
mtd: rawnand: atmel: Fix MCK clock leak in atmel_nand_controller_init()
Ridham Khurana <khurana.ridham222@gmail.com>
hwmon: (lm95245) Fix negative temperature conversion
Wentao Liang <vulab@iscas.ac.cn>
regulator: core: Fix coupled regulators reference leak on removal
Guangshuo Li <lgs201920130244@gmail.com>
ASoC: Intel: atom: Fix platform device leak on probe failure
Jiacheng Xu <stitch@zju.edu.cn>
kobject: fix out-of-bounds access in kobject_action_type()
Ryusuke Konishi <konishi.ryusuke@gmail.com>
nilfs2: fix deadlock between nilfs_evict_inode() and find_inode()
David Heidelberg <david@ixit.cz>
mfd: wcd934x: Fix NULL pointer dereference on IRQ probe deferral
Wentao Liang <vulab@iscas.ac.cn>
media: vpif_display: Fix i2c adapter reference leak in vpif_probe()
Wentao Liang <vulab@iscas.ac.cn>
media: au0828: Fix media device leak in au0828_usb_probe()
Runyu Xiao <runyu.xiao@seu.edu.cn>
media: adv7180: Initialize mutex before ancillary clients
Myeonghun Pak <mhun512@gmail.com>
media: tw68: balance PCI enable on cleanup
Myeonghun Pak <mhun512@gmail.com>
media: cx18: Disable PCI device on probe failure
Myeonghun Pak <mhun512@gmail.com>
media: go7007: unregister the I2C adapter on USB probe failure
Myeonghun Pak <mhun512@gmail.com>
media: marvell: manage the MMP camera clock provider
Rohinthan P <rokinthanp03@gmail.com>
media: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functions
Weili Qian <qianweili@huawei.com>
crypto: hisilicon/hpre - fix GFP flags for dma_alloc_coherent
Weili Qian <qianweili@huawei.com>
crypto: hisilicon/hpre - fix ECDH destination DMA mapping
Weili Qian <qianweili@huawei.com>
crypto: hisilicon/hpre - return -EOVERFLOW for small ECDH output buffer
Weili Qian <qianweili@huawei.com>
crypto: hisilicon/hpre - fix pointer dereference before length check
Mohamad Raizudeen <raizudeen.kerneldev@gmail.com>
crypto: amlogic - Fix IRQ handler return value and fallthrough logic
Yuchao Zhang <ndaugoing@gmail.com>
md: validate bblog_size when loading v1.x badblocks metadata
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
nilfs2: fix checkpoint root lifetime on sysfs errors
Wentao Liang <vulab@iscas.ac.cn>
drm/mali-dp: Fix runtime PM leak in malidp_crtc_atomic_enable()
Wentao Liang <vulab@iscas.ac.cn>
ASoC: ti: davinci-mcasp: Fix runtime PM imbalance in __davinci_mcasp_set_clkdiv()
Sean Young <sean@mess.org>
media: meson-ir-tx: Prevent divide by zero in meson_irtx_prepare_pulse()
Cong Nguyen <congnt264@gmail.com>
staging: media: imx: csc-scaler: fix ipu_image_convert_run leak on queue error
Runyu Xiao <runyu.xiao@seu.edu.cn>
PCI: pciehp: Make 'pciehp_poll_mode' parameter read-only
Hui Peng <benquike@gmail.com>
ata: libata-scsi: abort multi-sector pass-through commands when multi_count is 0
Shehryar Ahmad <shehryar.amd@gmail.com>
iio: accel: adis16201: fix channel order for buffer mode
Karl Mehltretter <kmehltretter@gmail.com>
fpga: Fix of_fpga_mgr_get() reference in fpga_mgr_lock() docs
Wentao Liang <vulab@iscas.ac.cn>
ASoC: codecs: wm8994: Fix runtime PM leak in wm8994_mic_detect()
Wentao Liang <vulab@iscas.ac.cn>
regulator: core: Fix rdev reference leak in regulator_resolve_supply()
Wentao Liang <vulab@iscas.ac.cn>
regulator: core: Fix c_rdev reference leak in regulator_resolve_coupling()
Shengming Hu <hu.shengming@zte.com.cn>
cpufreq: conservative: Restrict deferred downscaling to low load
Martin Wilck <martin.wilck@suse.com>
md/raid5: validate payload size before calculating payload_len
Cao Guanghui <caoguanghui@kylinos.cn>
md/raid5: fix NULL pointer dereference in raid5_free_percpu
Cao Guanghui <caoguanghui@kylinos.cn>
md/raid5: track disks array size to fix extra_page leak on error paths
Guangshuo Li <lgs201920130244@gmail.com>
iio: accel: mma9553: disable autosuspend on remove
Guangshuo Li <lgs201920130244@gmail.com>
iio: accel: mma9551: disable autosuspend on remove
Guangshuo Li <lgs201920130244@gmail.com>
iio: accel: kxcjk-1013: Disable autosuspend on remove
Wentao Liang <vulab@iscas.ac.cn>
ASoC: arizona-jack: Fix runtime PM imbalance in arizona_start_hpdet_acc_id()
Wentao Liang <vulab@iscas.ac.cn>
ASoC: wm8994: Fix runtime PM imbalance in wm8994_component_probe()
Liu Chao <liuc63@xiaopeng.com>
usb: fotg210: validate endpoint index in ep0 handlers
Karl Mehltretter <kmehltretter@gmail.com>
crypto: atmel-tdes - sync output bounce buffer before DMA
Yousef Alhouseen <alhouseenyousef@gmail.com>
ntfs3: bound index head insertions by buffer capacity
Niklas Cassel <cassel@kernel.org>
ata: ahci_st: Assert the power down reset in the probe() error path
Niklas Cassel <cassel@kernel.org>
ata: ahci_st: Do not ignore errors when getting the reset controls
Chao Yu <chao@kernel.org>
f2fs: compress: fix to handle race between truncate and writeback
Kyle Zeng <kylebot@openai.com>
affs: validate blocks before freeing them
Bradley Morgan <include@grrlz.net>
PM: CPU: Restore synchronize_rcu() to cpu_pm_unregister_notifier()
Karl Mehltretter <kmehltretter@gmail.com>
lib/842: require a complete history block for repeat templates
Karl Mehltretter <kmehltretter@gmail.com>
lib/842: reject output overflows from index and short data
Karl Mehltretter <kmehltretter@gmail.com>
crypto: atmel-aes - fix AADLENR for standalone GHASH
Karl Mehltretter <kmehltretter@gmail.com>
crypto: atmel-tdes - zero-initialize device state
Junrui Luo <moonafterrain@outlook.com>
media: vicodec: zero-initialize stateful decoder heap buffers
Juan Perdomo <jcperdomo100@gmail.com>
media: cx231xx: preserve I2C transfer length
Maxim Skokov <skokovmaksimevg@gmail.com>
media: vivid: round the height down to the vertical subsampling factor
Eric Kim <seohyun.kim@outlook.kr>
sched/fair: Reset NUMA fault locality after scan period update
Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
iio: imu: inv_icm42600: fix odr change not caught in certain cases
Runyu Xiao <runyu.xiao@seu.edu.cn>
dmaengine: altera-msgdma: initialize state before requesting IRQ
Damon Ding <damon.ding@rock-chips.com>
drm/bridge: analogix_dp: Restore mandatory samsung DP DT properties
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
media: stv0900: bound DiSEqC reply length to msg[] size
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
media: stv090x: bound DiSEqC reply length to msg[] size
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
media: adv7604: avoid negative array index in log_status when cp_read fails
James Hilliard <james.hilliard1@gmail.com>
mtd: rawnand: sunxi: reject ECC maximization on small pages
Xu Rao <raoxu@uniontech.com>
media: m2m-deinterlace: fix default capture field
Punnay Sharma <punnaysharma805@gmail.com>
staging: media: av7110: fix corrupted BER reporting in sp8870
Julian Braha <julianbraha@gmail.com>
media: marvell-cam: fix unmet dependency for VIDEO_MMP_CAMERA
Jeffin Philip <jeffinphilip14@gmail.com>
media: vidtv: fix uaf in vidtv_bridge_on_new_pkts_avail
Piyush Patle <piyushpatle228@gmail.com>
media: vidtv: fix frontend reference leak on unbind
Junrui Luo <moonafterrain@outlook.com>
media: vicodec: make encoder CAPTURE dimensions read-only
Junrui Luo <moonafterrain@outlook.com>
media: vicodec: fix out-of-bounds write on under-rounded coded dimensions
Younho Choi <gdool88@mju.ac.kr>
media: vim2m: keep transaction buffer count stable while streaming
Runyu Xiao <runyu.xiao@seu.edu.cn>
media: saa7146: Initialize interrupt lock before requesting IRQ
Shengzhuo Wei <me@cherr.cc>
media: go7007: bound EZ-USB I2C transfers to the usb_buf size
Linkai Gong <gonglinkai@kylinos.cn>
media: i2c: tc358743: add missing color-space strings
Ruoyu Wang <ruoyuw560@gmail.com>
media: au0828: Free URBs when starting DVB streaming fails
Andi Shyti <andi.shyti@kernel.org>
media: cx231xx: Fix cleanup path on failure
Baolin Liu <liubaolin@kylinos.cn>
isofs: fix Rock Ridge CE extent validation on multisession media
Thorsten Blum <thorsten.blum@linux.dev>
thermal: intel: powerclamp: Reject invalid window_size values
Karl Mehltretter <kmehltretter@gmail.com>
fs_pin: publish pins with RCU list helpers
HyeongJun An <sammiee5311@gmail.com>
mtd: spi-nor: sfdp: check the length of the xSPI Profile 1.0 table
Serin Yeh <serin.yeh@intel.com>
media: i2c: ov8856: fix debug message to report actual CSI-2 lane count
Abdun Nihaal <nihaal@cse.iitm.ac.in>
wifi: ath11k: Fix possible memory leak in ath11k_dp_srng_setup()
Yuan Chen <chenyuan@kylinos.cn>
bpf: Fix queue/stack map u32 index overflow
hanzhijian <hanzhijian1991@gmail.com>
clk: mstar: msc313-mpll: fix off-by-one in clock array allocation
イムティヤズ <reza1234khan1234@gmail.com>
wifi: rtw88: fix out-of-bounds CAM write when key table is full
Justin Chen <justin.chen@broadcom.com>
memory: brcmstb_dpfe: Bounds check DCPU-supplied MSG_ARG_COUNT
Justin Chen <justin.chen@broadcom.com>
memory: brcmstb_dpfe: Fix out-of-bounds access due to DCPU offset
Sam Price <thesamprice@gmail.com>
microblaze: preserve the MSR carry flags across signals
Ramin Moussavi <ramin.moussavi@yacoub.de>
microblaze: don't clobber r3/r4 restored by rt_sigreturn
Ramin Moussavi <ramin.moussavi@yacoub.de>
microblaze: reserve the ABI argument-home area in the signal frame
HyeongJun An <sammiee5311@gmail.com>
remoteproc: elf_loader: Bound the section header table
Daehyeon Ko <4ncienth@gmail.com>
ipc/mqueue: release notification resources during inode eviction
Daehyeon Ko <4ncienth@gmail.com>
aio: prevent eventfd/epoll recursion on poll
Sean Young <sean@mess.org>
media: ir-hix5hd2: Ensure rdev is setup before interrupts are enabled
Sean Young <sean@mess.org>
media: meson-ir-tx: Ensure clock is disabled on unbind
Sean Young <sean@mess.org>
media: redrat3: Ensure all urbs are suspended
Sean Young <sean@mess.org>
media: redrat3: Ensure we don't read beyond the end of the packet
Sean Young <sean@mess.org>
media: streamzap: Add missing rc_unregister_device()
Zhenhao Wan <whi4ed0g@gmail.com>
drm/nouveau: reject zero-size notifier object allocation
Cen Zhang <zzzccc427@gmail.com>
ocfs2: snapshot dentry names in file and setattr traces
Sean Young <sean@mess.org>
media: rc: Fix ABBA deadlock by making locks more fine grained
Fan Wu <fanwu01@zju.edu.cn>
scsi: dc395x: sync the waiting_timer before freeing the host
Fan Wu <fanwu01@zju.edu.cn>
media: s5p-mfc: use timer_shutdown_sync() for the self-rearming watchdog
Balakrishnan Sambath <balakrishnan.s@microchip.com>
media: microchip-isc: take a reference on the parsed endpoints
Ping Cheng <ping.cheng@wacom.com>
HID: wacom: Setup SW_MUTE_DEVICE according to the order of input registration
Lee Jones <lee@kernel.org>
HID: wacom: Advertise SW_MUTE_DEVICE capability prior to registration
Sumanth Korikkar <sumanthk@linux.ibm.com>
s390/cpum_cf: Check session mask before cpu offline
Chris Mason <mason@kernel.org>
ovl: set OVL_WHITEOUTS before publishing the upper dir
Igor Putko <igorpetindev@gmail.com>
serial: core: shut down initialized port on removal
Yuchao Zhang <ndaugoing@gmail.com>
xen-blkfront: unbind irq before tearing down ring and shadow requests
Ruide Cao <caoruide123@gmail.com>
mptcp: hold MP_JOIN msk ref when cloning reqsk
Tianchu Chen <flynnnchen@tencent.com>
staging: rtl8723bs: fix protected RX frame validation in decrypt path
Richard Patel <ripatel@wii.dev>
genirq: Defer kfree(irqaction) until irq_thread_dtor() finishes
Lee Jones <lee@kernel.org>
HID: wacom: Redesign shared sibling data lifecycle
Diego Oliva <diego@bynar.io>
smb: client: fix OOB last_entry pointer from unbounded LastNameOffset
Diego Oliva <diego@bynar.io>
smb: client: fix use-after-free infoleak via the readdir resume name
Paulo Alcantara <pc@manguebit.com>
smb: client: fix warning in CIFSFindNext()
Paulo Alcantara <pc@manguebit.com>
smb: client: fix warning in CIFSFindFirst()
David Hildenbrand (Arm) <david@kernel.org>
mm/hugetlb: fix use-after-free in hugetlb_mfill_atomic_pte()
Stefan Metzmacher <metze@samba.org>
smb: smbdirect: fix buffer length underflow in RDMA transfers
Hyunwoo Kim <imv4bel@gmail.com>
inet: reject unhashed sockets during established lookups
Josef Bacik <josef@toxicpanda.com>
driver core: Limit the messages on a refused uevent
DaeMyung Kang <charsyam@gmail.com>
ksmbd: fix named stream write and EOF handling
Henry Hu <huhai@kylinos.cn>
ksmbd: fix invalid pointer dereference when get_inode_acl() fails
Jan Koester <j.koester@act-marketing.de>
ksmbd: ignore network devices of other namespaces
Ian Bridges <icb@fastmail.org>
ksmbd: fix session reference leak on compounded SESSION_SETUP
DaeMyung Kang <charsyam@gmail.com>
ksmbd: return end of file for reads past a named stream's data
DaeMyung Kang <charsyam@gmail.com>
ksmbd: preserve unreadable named streams on open
Myeonghun Pak <mhun512@gmail.com>
backlight: lm3630a: Cancel delayed work before destroying workqueue
Xu Wang <vulab@iscas.ac.cn>
backlight: lm3630a_bl: Remove redundant 'flush_workqueue()' calls
DaeMyung Kang <charsyam@gmail.com>
ksmbd: avoid restoring only in-memory EOF after allocation change
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: fix extended session security negotiation for raw NTLMSSP
Xiaoyao Li <xiaoyao.li@intel.com>
KVM: VMX: Preserve negative return value in vmx_handle_exit() with bus lock detected
Dairui Zhang <zhangdairui@gmail.com>
ksmbd: verify transform SessionId matches the decrypted header
Ian Bridges <icb@fastmail.org>
ksmbd: fix out-of-bounds read when padding the final compound response
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: prevent share root removal through empty paths
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: prevent stale data from being written by SMB2 WRITE requests
Abdifatah Suruur <suruurism@gmail.com>
ksmbd: reserve space for the UTF-16 terminator in stream info
Giorgi Kobakhia <gkobakhi@asu.edu>
ksmbd: fix overflow in dacloffset bounds check in build_sec_desc()
Yuhang Zheng <z1652074432@gmail.com>
net/sched: cls_flower: avoid stale mask references after delete
Johan Hovold <johan@kernel.org>
driver core: fix parent lock use-after-free on USB disconnect
owen kwan <owen@verialabs.com>
net/sched: sch_teql: fix use-after-free on lower qdisc drop
Zikang Gao <2715417602@qq.com>
smb: client: do not pass a NULL buf to is_oplock_break()
Fredric Cover <fredric.cover.lkernel@gmail.com>
smb: client: fix early procfs exposure race
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: validate security descriptor offsets before pointer arithmetic
David Woodhouse <dwmw@amazon.co.uk>
tun: Require CAP_NET_ADMIN to attach to an ownerless device
Pablo Neira Ayuso <pablo@netfilter.org>
netfilter: conntrack: always lower timeout for non-closing RST packets
Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
drm/amdgpu/powerplay: Align get_tonga_state_array() header with prototype
Jiale Yao <yaojiale02@163.com>
HID: roccat: savu: reject short special reports
Jiale Yao <yaojiale02@163.com>
HID: roccat: ryos: reject short special reports
Jiale Yao <yaojiale02@163.com>
HID: roccat: pyra: reject short button reports
Jiale Yao <yaojiale02@163.com>
HID: roccat: kovaplus: reject short button reports
Jiale Yao <yaojiale02@163.com>
HID: roccat: konepure: reject short button reports
Jiale Yao <yaojiale02@163.com>
HID: roccat: koneplus: reject short button reports
Jiale Yao <yaojiale02@163.com>
HID: roccat: isku: reject short button reports
Gabor Tanz <gabor.tanz@gmail.com>
HID: quirks: Always poll the Anne Pro 2 with product ID a292
Lorenzo Stoakes (ARM) <ljs@kernel.org>
HID: picoLCD: check for fb_deferred_io_init() error
Jiale Yao <yaojiale02@163.com>
HID: mcp2221: validate response report length
Jiale Yao <yaojiale02@163.com>
HID: logitech-dj: validate unnumbered keyboard reports
Jiale Yao <yaojiale02@163.com>
HID: elo: reject short touchscreen reports
Jiale Yao <yaojiale02@163.com>
HID: cp2112: validate response report lengths
Jiale Yao <yaojiale02@163.com>
HID: cougar: reject short special-key reports
Alan Stern <stern@rowland.harvard.edu>
HID: core: Fix out-of-bounds left shift by 32 in s32ton()
Basavaraj Natikar <Basavaraj.Natikar@amd.com>
HID: amd_sfh: Use report type from request node
Basavaraj Natikar <Basavaraj.Natikar@amd.com>
HID: amd_sfh: Remove unsupported motion-state field from accelerometer report
Jiale Yao <yaojiale02@163.com>
HID: zydacron: validate key report length
Amit Machhiwal <amachhiw@linux.ibm.com>
KVM: PPC: Fix get_d_signext() 12-bit displacement for paired-single D-form
Amit Machhiwal <amachhiw@linux.ibm.com>
KVM: PPC: Book3S HV: Add preempt_disable() around virtual-mode HPTE bit-lock users
Sean Christopherson <seanjc@google.com>
KVM: x86: Zero reserved synic flags when delivering message to avoid stack leak
Yosry Ahmed <yosry@kernel.org>
KVM: SVM: Trigger new ASID allocation in both VMCBs on pCPU switch
Ameer Hamza <ameer.hamza@truenas.com>
sunrpc: treat empty auth.unix.gid replies as negative entries
Zhiling Zou <zhilinz@nebusec.ai>
SUNRPC: trace an accepted transport before publishing it
Chuck Lever <cel@kernel.org>
SUNRPC: Reject a socket that already has an svc_sock attached
Chris Mason <clm@meta.com>
sunrpc: pin gss module across auth_domain RCU free
Jeff Layton <jlayton@kernel.org>
SUNRPC: keep the first error in svc_register()
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
nfsd: zero NFSv4 COMPOUND tag padding
Chuck Lever <cel@kernel.org>
NFSD: Reject an oversized principal hash from nfsdcld
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
nfsd: propagate SETXATTR value decode errors
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
nfsd: preflight SEQUENCE replies before accepting a slot
NeilBrown <neil@brown.name>
nfsd: honour client-provided attributes for NFS4_CREATE_EXCLUSIVE4_1
Cen Zhang (Microsoft Security FORGE Labs) <blbllhy@gmail.com>
nfsd: hold cl_lock in client_has_openowners()
Wentao Liang <vulab@iscas.ac.cn>
nfsd: Fix id-to-name cache entry leak in idtoname_parse()
Chuck Lever <cel@kernel.org>
NFSD: Fail a pool_threads read whose reply does not fit
Ameer Hamza <ameer.hamza@truenas.com>
nfsd: don't modify a session slot when replaying its cached reply
Chuck Lever <cel@kernel.org>
NFSD: Don't complete a cld upcall the daemon has not read
Chuck Lever <cel@kernel.org>
NFSD: Do not send CB_RECALL_ANY to NFSv4.0 clients
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
NFSD: copy SETXATTR data from all XDR buffer segments
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
nfsd: clear XDR padding in GETXATTR replies
Benjamin Coddington <ben.coddington@hammerspace.com>
NFSv4/filelayout: Anchor page coalescing on pattern_offset
Benjamin Coddington <ben.coddington@hammerspace.com>
NFSv4.1/pnfs: suspend pNFS on NFS4ERR_TOOSMALL from LAYOUTGET
Chuck Lever <cel@kernel.org>
pnfs/blocklayout: Complete a device upcall when the pipe is closed
Chuck Lever <cel@kernel.org>
pnfs/blocklayout: Complete a device upcall only on its own reply
Benjamin Coddington <ben.coddington@hammerspace.com>
pNFS: Fix CB_NOTIFY_DEVICEID CHANGE to consume ndc_immediate
Darrick J. Wong <djwong@kernel.org>
xfs: propagate errors while checking null siblings
Darrick J. Wong <djwong@kernel.org>
xfs: opportunistically skip btree block checks
Darrick J. Wong <djwong@kernel.org>
xfs: only written file data blocks can be shared
Darrick J. Wong <djwong@kernel.org>
xfs: check for fragments when full-extent sharing matches
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
xfs: reject remote xattr entries with an out-of-range value length
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value
Aleksandr Nogikh <nogikh@google.com>
media: usbtv: fix null-pointer dereference on disconnect
Johan Hovold <johan@kernel.org>
media: usbtv: drop redundant device reference
Al Viro <viro@zeniv.linux.org.uk>
ufs: fix ufs_read_cylinder() failure handling
Ido Schimmel <idosch@nvidia.com>
net/sched: flower: Fix chain template offload
Darrick J. Wong <djwong@kernel.org>
xfs: jump out of xchk_bmap_check_rmap if fatal signals
Darrick J. Wong <djwong@kernel.org>
xfs: mark overfull dabtree node blocks as corrupt
Darrick J. Wong <djwong@kernel.org>
xfs: check fork type against dabtree block magic number
Chris Mason <mason@kernel.org>
ovl: read the nlink xattr of every indexed non-dir
Chris Mason <mason@kernel.org>
ovl: fix a torn path in ovl_get_redirect()
Cen Zhang <zzzccc427@gmail.com>
ocfs2: pin refcount trees before dropping the lookup lock
Jiaming Zhang <r772577952@gmail.com>
ocfs2: fix chunk number of the first chunk in a local quota file
Cen Zhang <zzzccc427@gmail.com>
ocfs2: cancel quota sync work before freeing quota info
Joseph Qi <joseph.qi@linux.alibaba.com>
ocfs2/dlm: hold the lookup reference across convert AST enqueue
Cen Zhang <zzzccc427@gmail.com>
ocfs2/dlm: hold a lock reference across grant AST enqueue
Cen Zhang <zzzccc427@gmail.com>
ocfs2/heartbeat: unlink live slots when their node is missing
Sean Young <sean@mess.org>
media: rc: mce_kbd: Fix inconsistent locking of keylock
Weigang He <geoffreyhe2@gmail.com>
media: rc: fintek-cir: process a full RX buffer instead of overflowing it
Bryan O'Donoghue <bryan.odonoghue@linaro.org>
phy: core: Fix race-condition between _of_phy_get() and try_module_get()
Nickolai Zeldovich <nickolai@csail.mit.edu>
resource: report a devm_request_resource() conflict under the lock
YANXIN LI <fadouse@pm.me>
ufs: use u64 for directory size in ufs_last_byte
Nguyen Quang Le Kien <khiemtranzo532001@gmail.com>
usb: gadget: fix refcount underflow in gadgetfs_bind() error path
Rosen Penev <rosenp@gmail.com>
wifi: ath9k: delete channel-context timers on deinit
Rik van Riel <riel@surriel.com>
media: redrat3: fix UAF in probe error path leaving rc device registered
Shuangpeng Bai <shuangpeng.kernel@gmail.com>
media: gspca: use vb2_video_unregister_device() on disconnect
Myeonghun Pak <mhun512@gmail.com>
media: cx23885: unregister DVB bus when SP2 CI setup fails
Amit Machhiwal <amachhiw@linux.ibm.com>
KVM: PPC: Book3S HV: Add SRCU protection for virtual-mode HPT hcalls
Kyle Zeng <kylebot@openai.com>
io_uring/io-wq: save worker type before dropping its reference
Yousef Alhouseen <alhouseenyousef@gmail.com>
HID: hiddev: keep state alive through disconnect unlock
Xiang Mei <xmei5@asu.edu>
fbdev: udlfb: don't rebuild the mode list while the framebuffer is in use
Yibo Tan <lhfff@tju.edu.cn>
fbdev: atmel_lcdfb: Prevent FIFO work after removal
Karl Mehltretter <kmehltretter@gmail.com>
klist: avoid accesses after waking klist_remove()
Ping Cheng <ping.cheng@wacom.com>
HID: wacom: Write shared touch initial status only once
Lee Jones <lee@kernel.org>
HID: wacom: Use hdev->product in wacom_setup_touch_input_capabilities
Heiko Carstens <hca@linux.ibm.com>
s390/signal: Fix incorrect return address in signal frame
Heiko Carstens <hca@linux.ibm.com>
s390/probes: Fix wrong opcode for cgrb fixup
Niklas Cassel <cassel@kernel.org>
ata: sata_fsl: Fix use-after-free of host_priv on probe() failure
Binbin Deng <18983559317@163.com>
apparmor: fix a use-after-free in aa_lookupn_ns()
Deepanshu Kartikey <kartikey406@gmail.com>
media: imon: fix use-after-free in display_close via dev_dbg
Anuj Bolewar <bolewara@gmail.com>
media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path
Pei Xiao <xiaopei01@kylinos.cn>
media: cx23885: Fix use-after-free in cx23885_finidev due to race condition
Fan Wu <fanwu01@zju.edu.cn>
media: au0828: fix use-after-free in bulk_timeout timer on disconnect
Chuck Lever <cel@kernel.org>
lockd: Fix use-after-free in nlmsvc_retry_blocked
Günther Noack <gnoack@google.com>
landlock: Fix superblock use-after-free in release_inode()
Yehyeong Lee <yhlee@isslab.korea.ac.kr>
nvmet-fc: fix use-after-free in nvmet_fc_ls_create_connection()
James Kim <james010kim@gmail.com>
rapidio: mport_cdev: fix use-after-free in mport_mm_close()
Zijing Yin <yzjaurora@gmail.com>
SUNRPC: fix netns use-after-free in write_gssp()
Andreas Wendleder <gonsolo@gmail.com>
wifi: b43: fix use-after-free in b43_bcma_remove()
Li RongQing <lirongqing@baidu.com>
x86/ioperm: Prevent NULL dereference on theoretical missing IO bitmap
Michail Andreas Michalopoulos <mike.michalo@gmail.com>
ksmbd: accept share config responses from ksmbd-tools before 3.5.3
Kuniyuki Iwashima <kuniyu@google.com>
tcp: Fix potential UAF in reqsk_timer_handler().
David Heidelberg <david@ixit.cz>
backlight: qcom-wled: Fix WLED3 brightness register stride
David Heidelberg <david@ixit.cz>
backlight: qcom-wled: Fix unbalanced OVP IRQ enable at probe
David Heidelberg <david@ixit.cz>
backlight: qcom-wled: Fix NULL pointer dereference in wled_remove()
Kameron Carr <kameroncarr@linux.microsoft.com>
Drivers: hv: vmbus: Bounds check the shared ring buffer indices
Jamal Hadi Salim <jhs@mojatatu.com>
net/sched: act_ife: do not consume the inner header on egress
Antonio Quartulli <antonio@mandelbit.com>
net/sched: fix packet reordering on requeue
Duoming Zhou <duoming@zju.edu.cn>
cxgb4: fix use after free bugs caused by circular dependency problem
Shiming Cheng <shiming.cheng@mediatek.com>
net: gro: fix double aggregation of flush-marked skbs
Matt Bobrowski <mattbobrowski@google.com>
bpf: Fix UAF in sock clone early bailouts
Yucheng Lu <kanolyc@gmail.com>
net/sched: sch_netem: fix out-of-bounds access in packet corruption
Qing Luo <luoqing@kylinos.cn>
sctp: auth: discard auth_chunk when skb_clone fails
Eric Dumazet <edumazet@google.com>
ipv6: use RCU in ip6_output()
Eric Dumazet <edumazet@google.com>
net: dst: introduce dst->dev_rcu
Sean Christopherson <seanjc@google.com>
KVM: nVMX: Put vmcs12 pages if nested VM-Enter fails due to invalid guest state
Inseo An <y0un9sa@gmail.com>
netfilter: nf_tables: fix use-after-free in nf_tables_addchain()
Eric Dumazet <edumazet@google.com>
ipv4: start using dst_dev_rcu()
Bui Viet Dung <dungvn2345@gmail.com>
wwan: wwan_hwsim: Pin module for debugfs file operations
Jonathan Gopel <jgopel@gmail.com>
thunderbolt: Do not RPM complete unrelated subtrees on unplug
Cen Zhang <zzzccc427@gmail.com>
ocfs2: publish the filecheck owner before adding sysfs attributes
Cen Zhang <zzzccc427@gmail.com>
ocfs2: pin owning modules for open debugfs files
Cen Zhang <zzzccc427@gmail.com>
ocfs2: drain quorum work before removing the cluster
Wei Jie Law <law.wei.jie@gt.tech.gov.sg>
net: usb: pegasus: do not advance rx_skb->data on dropped frames
Kaho Jiang <kj2864@nyu.edu>
net: ipv4: add zero check for snd_cwnd_clamp
Xiang Mei <xmei5@asu.edu>
media: go7007: only set audio_enabled if go7007_snd_init() succeeded
Xiang Mei <xmei5@asu.edu>
media: em28xx: reject audio endpoint with zero packet size
Myeonghun Pak <mhun512@gmail.com>
media: cx88: Disable PCI device on MPEG initialization failure
Xiang Mei <xmei5@asu.edu>
libceph: bound mon_command ack decode to front len
Andrea Parri <parri.andrea@gmail.com>
kcsan: Avoid division by zero in kcsan_prandom_u32_max()
Fang Xieyan <fangxy@xiaopeng.com>
kcov: ignore an out-of-range comparison count in write_comp_data()
Yuanfu Xie <yuanfuxie@stu.pku.edu.cn>
ceph: fail readdir when the MDS reply carries no dirfrag
Wentao Guan <guanwentao@uniontech.com>
wifi: cfg80211: release locks on error in cfg80211_wext_siwgenie()
André Draszik <andre.draszik@linaro.org>
kbuild: link-vmlinux.sh: improve detection of third pass requirement
Rohinthan P <rokinthanp03@gmail.com>
media: em28xx: use video_unregister_device for radio_dev
Matus Gajdos <matuszpd@gmail.com>
ALSA: usb-audio: Add native DSD support for Cambridge Audio streamers
Miquel Raynal <miquel.raynal@bootlin.com>
spi: cadence-qspi: Fix status polling with octal DTR chips
Eckhart Mohr <e.mohr@tuxedocomputers.com>
ALSA: hda/realtek: Add quirk for ASRock NUC BOX-358H
Reinhard Speyerer <rspmn@arcor.de>
net: usb: qmi_wwan: add Rolling Wireless RN947R
Vladimir Murzin <vladimir.murzin@arm.com>
usb: mtu3: Fix double dereference in TP_printk
Tarun Noonemunthala <ntarun2000@gmail.com>
ALSA: hda/realtek: Add quirk for HP ENVY 13-aq1xxx
Luis Banha <luisbanha26@gmail.com>
ALSA: hda/realtek: Add mute LED quirk for HP Pavilion 15-ec1xxx
Tomasz Bojanowski <tomasz@bojanowski.me>
ALSA: usb-audio: Add mixer mapping for MSI MAG B850M MORTAR WIFI
Hernan Ganzo <gp@sneemgp.com>
ALSA: hda/realtek: Limit internal mic boost on HP Pavilion 15 (103c:2164)
Jasper Firth <jasper.m.f@hotmail.com>
ASoC: Intel: bytcr_rt5651: Add quirk for Chuwi Hi8 with generic DMI strings
Rosen Penev <rosenp@gmail.com>
gpio: mvebu: keep resume masks within the irqchip cache
Dmitry Antipov <dmantipov@yandex.ru>
HID: roccat: fix locking in roccat_connect() and roccat_disconnect()
Maurizio Lombardi <mlombard@redhat.com>
nvme-fc: do not warn on controller removal race
Youth Cao <cocoh2os08@gmail.com>
HID: i2c-hid: Add i2c-hid-quirk-bad-input-size quirk for 0911:5288 device
Bob Song <songxiebing@kylinos.cn>
ALSA: hda/conexant: Always enable the headset-mic pin on plugin
Xiubo Li <xiubo.li@clyso.com>
ceph: do not cache negative dentries for snapped directories
Federico Valentín Andrade <fandrade@frba.utn.edu.ar>
ALSA: usb-audio: Skip mixer creation on M-Audio Venom
Li Jun <lijun01@kylinos.cn>
tpm: tpm_tis_spi: fix nodef CR50 tpm_tis_spi_resume is null
Dave Carey <carvsdriver@gmail.com>
HID: multitouch: Fix stale MT slots when contact count drops to zero
Helge Deller <deller@gmx.de>
fbcon: Fix KASAN slab-out-of-bounds Read in fbcon_prepare_logo
Jenson Johnathon Reggentin <mail@jregg.de>
docs: block: fix dead http link in blk-mq.rst
Chen Changcheng <chenchangcheng@kylinos.cn>
scsi: snic: Fix SCSI host leak on workqueue allocation failure
Daeho Jeong <daehojeong@google.com>
f2fs: avoid setting SBI_NEED_FSCK on transient resize failure
Robin Everaars <robineveraars@pm.me>
ACPI: button: Add DMI quirk for Razer Blade Pro 17 early 2020 lid switch
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: enable TCP keepalive for accepted connections
BingKun Yue <yuebingkun@kylinos.cn>
fbdev: platinumfb: add error checking for ioremap calls
Randy Dunlap <rdunlap@infradead.org>
fbdev: maxine: fix 64-bit build error
Pengpeng Hou <pengpeng@iscas.ac.cn>
rtc: brcmstb-waketimer: add missing MODULE_DEVICE_TABLE()
Robert Leussler <robert.leussler@leica-geosystems.com>
rtc: ds1307: fix RX8130 wakeup alarm WADA bit for day-of-month mode
Jinqian Yang <yangjinqian1@huawei.com>
virtio_ring: fix infinite loop in virtnet_poll_cleantx when device is broken
Pengpeng Hou <pengpeng@iscas.ac.cn>
rtc: ab-eoz9: add missing MODULE_DEVICE_TABLE()
Denis V. Lunev <den@openvz.org>
virtio_balloon: warn on failed buffer add in tell_host()
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
ASoC: codec: max98926: fixup invert setup mask
Alex Elder <elder@riscstar.com>
net: stmmac: use dma_addr_t for DMA addresses
Thomas Huth <thuth@redhat.com>
smb: server: Free session data in user_session.c with kfree_sensitive()
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: notify parent directory leases on child create
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: honor client signing-required in all modes
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: reject blocking compound lock requests
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: fix SMB2 byte-range lock end offset
ChenXiaoSong <chenxiaosong@kylinos.cn>
smb/server: cancel async requests when closing connection
Gael Blivet <gael.blivet@gmail.com>
ksmbd: skip fallocate for SMB2_CREATE_ALLOCATION_SIZE on a stream handle
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: allow FSCTL_SET_SPARSE without input buffer
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: handle empty QUERY_ALLOCATED_RANGES output
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: preserve access denied status for copychunk
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: protect private extended attributes
Israel Téllez García <i.tellez@btesa.com>
libbpf: Fix ring buffer consumer loop on 32-bit position wrap
Yang Wen <anmuxixixi@gmail.com>
exfat: keep FITRIM within the requested range
Takashi Iwai <tiwai@suse.de>
ALSA: hda/intel: Add sanity check for BAR0 size
Michail Tatas <michail.tatas@gmail.com>
ipmi: Fix leak in __ipmi_bmc_register
Jiaming Zhang <r772577952@gmail.com>
hfsplus: validate extent record length before writing it back
Dmytro Moroziuk <dmorozyk1@gmail.com>
ALSA: hda/conexant: Add mute LED quirk for HP ProBook 440 G5
Matt Turner <mattst88@gmail.com>
alpha: run the remote RTC access in a worker, not an IPI callback
Chao Shi <coshi036@gmail.com>
nvme: ratelimit the completion-path messages driven by device data
Griffin Kroah-Hartman <griffin@kroah.com>
nfc: nxp-nci: Add remove on IRQ error
Griffin Kroah-Hartman <griffin@kroah.com>
nfc: mrvl: spi: Unregister dev on allocation fail
Geliang Tang <tanggeliang@kylinos.cn>
nvme-tcp: look up host_iface in the current netns
Zhe Liu <liuzhe1@kylinos.cn>
docs: cgroup-v2: fix stale "io" controller introduction
Brian Grech <bgrech@redhat.com>
selftests/net: fin_ack_lat: fix latency threshold typo
Michal Pecio <michal.pecio@gmail.com>
ALSA: usx2y: Stop clearing urb->hcpriv before submission
Pengpeng Hou <pengpeng@iscas.ac.cn>
fbdev: udlfb: validate vendor descriptor items
Andreas Kemnade <andreas@kemnade.info>
fbdev: omap2: dsi: do not copy isr table
Daniel Golle <daniel@makrotopia.org>
net: dsa: mt7530: error out on failed PHY_IAC command writes
Li Qiang <liqiang01@kylinos.cn>
Bluetooth: hci_bcsp: validate received packet lengths
Chen Changcheng <chenchangcheng@kylinos.cn>
Bluetooth: btrsi: Move set_bt_context after successful HCI registration
Junhao He <hejunhao3@h-partners.com>
ACPI: APEI: Handle repeated SEA error storms
Aurabindo Pillai <aurabindo.pillai@amd.com>
drm/amd: Add DCN6 register headers
Filipe Manana <fdmanana@suse.com>
btrfs: fix memory barrier order in reloc_root_is_dead()
Pengpeng Hou <pengpeng@iscas.ac.cn>
Bluetooth: hci_nokia: validate firmware packet bounds
Pavel Zverev <playximik29@gmail.com>
Bluetooth: btusb: Add support for 1357:c123 Realtek 8852BE device
Rui Qi <qirui.001@bytedance.com>
selftests/ftrace: Force C locale in ftracetest
Yunye Zhao <yunye.zhao@linux.alibaba.com>
md: add cond_resched() to md_do_sync()'s skip path
Yu Kuai <yukuai@fygo.io>
md/raid5: reject zero-sector reshape chunks
Junzhe Yu <junzheyu1@gmail.com>
ext4: guard against NULL s_group_info in ext4_get_group_info
Pengpeng Hou <pengpeng@iscas.ac.cn>
HID: rmi: check report length before trimming sentinel bytes
liulhong617 <liulhong617@gmail.com>
arm64: mm: fix accidental linear mapping of no-map reserved memory
Carl Quist <equalizerjr@gmail.com>
ALSA: hda/realtek: Enable mute LED on HP Laptop 15-dy0xxx
Jinhui Guo <guojinhui.liam@bytedance.com>
net: usb: cdc_ether: add quirk for AMI BMC stale link events
Johan Alvarado <contact@c127.dev>
net: stmmac: raise TX completion interrupt at the end of an xmit burst
Stefan Haberland <sth@linux.ibm.com>
s390/dasd: Snapshot intrc before freeing the request block
Simon Glass <sjg@chromium.org>
kconfig: abort rather than loop for ever on EOF
Allison Henderson <achender@kernel.org>
net/rds: unpin MR pages with unpin_user_pages_dirty_lock()
Sharath Srinivasan <sharath.srinivasan@oracle.com>
net/rds: fix rds_message leak in the rds_send_xmit() drop path
Håkon Bugge <haakon.bugge@oracle.com>
net/rds: hold the socket while an rds_mr references it
Allison Henderson <achender@kernel.org>
net/rds: don't use unpin_user_pages_dirty_lock() from atomic context
Wahid Khan <wahidzk0091@gmail.com>
HID: intel-ish-hid: ignore post-init ENUM_DEVICES from firmware
Aaron Ma <mapengyu@gmail.com>
HID: quirks: Add ALWAYS_POLL quirk for Beitong BTP-KP20D dongle
Can Peng <pengcan@kylinos.cn>
wifi: brcmfmac: validate msgbuf flowring IDs before use
Can Peng <pengcan@kylinos.cn>
wifi: brcmfmac: Set DMA direction for msgbuf packet IDs
Felix Fietkau <nbd@nbd.name>
wifi: mt76: mt7603: fix U-APSD service period termination
Felix Fietkau <nbd@nbd.name>
wifi: mt76: set the EOSP bit in the QoS header of the last released frame
Pablo Neira Ayuso <pablo@netfilter.org>
netfilter: nf_tables: call skb_valid_dst() before skb_dst()
Minghao Zhang <zhangmh25@mails.tsinghua.edu.cn>
netfilter: conntrack: tcp: use UNACK timeout for non-closing RST packets
Ahmed Naseef <naseefkm@gmail.com>
wifi: mt76: mt7603: add 0x7592 EEPROM chip ID
Devin Wittmayer <lucid_duck@justthetip.ca>
wifi: mt76: mt76x02: report rx FCS errors to mac80211
David Bauer <mail@david-bauer.net>
wifi: mt76: mt7603: free beacon SKB on error
Hari Mishal <harimishal1@gmail.com>
virtio_console: take a kref in find_port_by_vq() to fix port UAF
이상호 <kudo3228@gmail.com>
romfs: detect hard link cycles
bui duc phuc <phucduc.bui@gmail.com>
regulator: rt6245: Restore state on enable failure
Bob Song <songxiebing@kylinos.cn>
ALSA: hda/realtek: add missing error checks for COEF index reads in alc269
Dmitry Torokhov <dmitry.torokhov@gmail.com>
mfd: ipaq-micro: Fix out-of-bounds stack read in ipaq_micro_str
Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3: Fix memory leak in indx_find_sort()
Bob Song <songxiebing@kylinos.cn>
ALSA: hda/realtek: add missing NULL check for codec->bus->pci
Yichong Chen <chenyichong@uniontech.com>
exfat: free new directory cluster if zeroing fails
wangdicheng <wangdicheng@kylinos.cn>
ALSA: hda/conexant: Add NULL check for dc_mode_path
Gary Guo <gary@garyguo.net>
ata: ata_generic: Don't store pci_device_id
Dmitry Osipenko <digetx@gmail.com>
clk: tegra: support 48MHz clock for pll_p_out1
Chen Changcheng <chenchangcheng@kylinos.cn>
media: cx88: fix memory leak in cx8802_register_driver() error path
Pengpeng Hou <pengpeng@iscas.ac.cn>
clk: imx: imx8qxp-lpcg: add missing MODULE_DEVICE_TABLE()
Pengpeng Hou <pengpeng@iscas.ac.cn>
clk: imx: imx8qxp: add missing MODULE_DEVICE_TABLE()
Jay Vadayath <jay@artiphishell.com>
udf: bound lengthAllocDescs from unallocated space entry
Jan Kara <jack@suse.cz>
udf: Fix bh leak for unallocated space entries
Tyrel Datwyler <tyreld@linux.ibm.com>
scsi: ibmvfc: free ibmvfc_target allocations with mempool_free
Tyrel Datwyler <tyreld@linux.ibm.com>
scsi: ibmvfc: check for NULL evt in implicit LOGO and target delete path
Jiaxing Hu <gahing@gahingwoo.com>
iommu/rockchip: Clear stale page faults before enabling stall
Pengpeng Hou <pengpeng@iscas.ac.cn>
hsi: omap_ssi: remove debugfs on port creation failure
Pengpeng Hou <pengpeng@iscas.ac.cn>
firmware: imx: scu: manage mailbox channels and global handle
Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3: load ATTR_BITMAP run extents from $MFT extension records
Senjin <senjin@hatchling.org>
fs/ntfs3: fix lseek EINVAL on sparse/compressed files with 64-bit clusters
Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
ntfs3: fix info-leak in ntfs_rename()
Kyle Zeng <kylebot@openai.com>
fs/ntfs3: reserve NUL byte when converting UTF-16 names
Brian Norris <briannorris@chromium.org>
PCI/portdrv: Allow probing even without child services
Pengpeng Hou <pengpeng@iscas.ac.cn>
soc: ixp4xx: qmgr: add missing MODULE_DEVICE_TABLE()
Benjamin Marzinski <bmarzins@redhat.com>
bitops: make the *_bit_le functions use unsigned long
Zhang Yi <yi.zhang@huawei.com>
ext4: check return value of ext4_get_block() in ext4_load_tail_bh()
Manikanta Pubbisetty <manikanta.pubbisetty@oss.qualcomm.com>
wifi: ath10k: trigger hardware recovery upon rx failures
Pengpeng Hou <pengpeng@iscas.ac.cn>
wifi: ath11k: validate regulatory capability phy_id
Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
iommu/qcom: Publish pgtbl_ops before releasing init_mutex
Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
iommu/qcom: Check pm_runtime_resume_and_get() return in probe
Heiko Schocher <hs@nabladev.com>
drm/panel: simple: Add Kyocera tcg070wvlq panel
Lachlan Hodges <lachlan.hodges@morsemicro.com>
wifi: cfg80211: include cf1 offset when sending chandef
Kuan-Wei Chiu <visitorckw@gmail.com>
riscv, bpf: Add support for BPF_MOVSX in RV32 JIT
Pengpeng Hou <pengpeng@iscas.ac.cn>
power: reset: piix4-poweroff: add missing MODULE_DEVICE_TABLE()
Pengpeng Hou <pengpeng@iscas.ac.cn>
power: supply: cros_pchg: unregister EC notifier
Kuan-Wei Chiu <visitorckw@gmail.com>
riscv, bpf: Add support for BPF_SDIV and BPF_SMOD in RV32 JIT
Shahar Tzarfati <shahar.tzarfati@intel.com>
wifi: mac80211: ibss: read deauth reason_code after frame length check
Yun Zhou <yun.zhou@windriver.com>
ext4: set EXT4_STATE_NO_EXPAND in ext4_evict_inode
Ali Alaei <ali.alaei.tabatabaei@gmail.com>
PCI: vmd: Handle BUS_RESTRICT_CFG value 3 for Arrow Lake-HX
Baokun Li <libaokun@linux.alibaba.com>
ext4: reduce max cluster size to match documented 256MB limit
Pengpeng Hou <pengpeng@iscas.ac.cn>
ACPI: FPDT: validate table and record lengths
Nizar Al-Kabbani <nizar.m.kabbani@gmail.com>
platform/x86: asus-nb-wmi: map ProArt key (0x8b) to KEY_PROG3
Yousef Alhouseen <alhouseenyousef@gmail.com>
media: go7007: s2250: propagate control I/O failures
Rituparna Warwatkar <rwarwatkar@gmail.com>
media: dvb-core: fix feed leak on failed DMX_ADD_PID
Yuho Choi <dbgh9129@gmail.com>
driver core: attribute_container: Unwind device_add() on attr failure
Yousef Alhouseen <alhouseenyousef@gmail.com>
misc: ibmvmc: reject oversized inbound messages
Pengpeng Hou <pengpeng@iscas.ac.cn>
greybus: manifest: validate string descriptor header
Yousef Alhouseen <alhouseenyousef@gmail.com>
misc: hpilo: validate device queue entries before use
Yousef Alhouseen <alhouseenyousef@gmail.com>
misc: genwqe: handle a first DMA address of zero
Yousef Alhouseen <alhouseenyousef@gmail.com>
misc: bcm-vk: validate write size before allocation
Ian Abbott <abbotti@mev.co.uk>
comedi: pcmuio: Add sanity check to interrupt handler
Ian Abbott <abbotti@mev.co.uk>
comedi: pcm816: Fix sanity check in interrupt handler
Ian Abbott <abbotti@mev.co.uk>
comedi: pcmmio: Add sanity check to interrupt handler
Ian Abbott <abbotti@mev.co.uk>
comedi: aio_iiro_16: Add sanity check to interrupt handler
Ian Abbott <abbotti@mev.co.uk>
comedi: pcm711: Fix sanity check in interrupt handler
Ian Abbott <abbotti@mev.co.uk>
comedi: dt2811: Fix sanity check in interrupt handler
Ian Abbott <abbotti@mev.co.uk>
comedi: das6402: Add sanity check to interrupt handler
Ian Abbott <abbotti@mev.co.uk>
comedi: quatech_daqp_cs: Fix sanity check in interrupt handler
Ian Abbott <abbotti@mev.co.uk>
comedi: pcm818: Fix sanity check in interrupt handler
Ian Abbott <abbotti@mev.co.uk>
comedi: ni_at_a2150: Fix sanity check in interrupt handler
Ian Abbott <abbotti@mev.co.uk>
comedi: ni_atmio16d: Add sanity check to interrupt handler
Pengpeng Hou <pengpeng@iscas.ac.cn>
uio: sercos3: add missing MODULE_DEVICE_TABLE()
Michail Tatas <michail.tatas@gmail.com>
USB: misc: uss720: Fix leak in get_1284_register
Oliver Neukum <oneukum@suse.com>
usb: misc: cypress_cy7c63: check result of IO
Lucas Martins Alves <lucas.alves@lumal21.com.br>
usb: musb: host: clear stale RX interrupt on three-strikes error
Hans Verkuil <hverkuil+cisco@kernel.org>
media: cec/core: drop cec_post_state_event call
Hans Verkuil <hverkuil+cisco@kernel.org>
media: cec: tegra_cec: don't break off msg on NACK
Shivaprasad G Bhat <sbhat@linux.ibm.com>
scsi: qla2xxx: Handle INTx not connected while passing through
Mikko Perttunen <mperttunen@nvidia.com>
gpu: host1x: Wait for timeout worker completion on channel free
Namhyung Kim <namhyung@kernel.org>
tools/lib/api: Fix potential double-free from fdarray__grow()
Emmanuel Grumbach <emmanuel.grumbach@intel.com>
wifi: iwlwifi: mvm: reset the smart fifo state upon FW stop
Jingyi Wang <jingyi.wang@oss.qualcomm.com>
remoteproc: core: cancel crash_handler work in rproc_add() error path
Yousef Alhouseen <alhouseenyousef@gmail.com>
media: go7007: avoid undefined shifts in MPEG-4 headers
Pengpeng Hou <pengpeng@iscas.ac.cn>
media: cx18: stop VBI start-code scan before short tail
Pengpeng Hou <pengpeng@iscas.ac.cn>
media: ivtv: stop VBI start-code scan before short tail
Jurison Murati <eng.juri@gmail.com>
media: i2c: ov8865: Program the sensor on stream start
Lucas Stach <l.stach@pengutronix.de>
drm/etnaviv: check all modules for idle after reset
Jurison Murati <eng.juri@gmail.com>
media: i2c: ov8865: Drop the runtime PM usage count on stream failure
Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
iwlwifi: dvm: add missing cleaup for on error path
Hari Mishal <harimishal1@gmail.com>
nvme: bound ns descriptor header and body to identify buffer
Bard Liao <yung-chuan.liao@linux.intel.com>
soundwire: dmi-quirks: add a global ghost list
Hans Verkuil <hverkuil+cisco@kernel.org>
media: em28xx: use vb2_video_unregister_device
Hans Verkuil <hverkuil+cisco@kernel.org>
media: em28xx: requeue buffers if start_streaming fails
Hans Verkuil <hverkuil+cisco@kernel.org>
media: em28xx: dev_info->pr_info since dev has been freed
Pengpeng Hou <pengpeng@iscas.ac.cn>
pinctrl: sx150x: add missing MODULE_DEVICE_TABLE()
Gabriel Prostitis <prostitisgabriel@gmail.com>
USB: gadget: inode: fix mm lifetime handling
David Laight <david.laight.linux@gmail.com>
usb_string_copy: Use kzalloc() to avoid leaking old data
Haoxiang Li <haoxiang_li2024@163.com>
usb: fsl_qe_udc: check qe_alloc_request() failure in ch9getstatus()
Haoxiang Li <haoxiang_li2024@163.com>
tty: serial: pch_uart: add check for pci_get_slot()
Xu Rao <raoxu@uniontech.com>
mmc: block: reject invalid perdev_minors before division
Arnd Bergmann <arnd@arndb.de>
media: v4l2-tpg: reduce stack usage for kasan builds
Pengpeng Hou <pengpeng@iscas.ac.cn>
media: cec: tegra: add missing MODULE_DEVICE_TABLE()
Pranjal Shrivastava <praan@google.com>
PCI/ATS: Ensure pci_ats_supported() is PF-aware for VFs
Devansh Soni <devanshsoni874@gmail.com>
staging: rtl8723bs: fix missing unregister_netdev on sdio_alloc_irq failure
Xixin Liu <liuxixin@kylinos.cn>
nvme: zns: cap zone report nr_zones by DMA buffer size
Jerome Brunet <jbrunet@baylibre.com>
clk: sunxi-ng: fix ccu probe clock unregister on error
Marek Szyprowski <m.szyprowski@samsung.com>
mmc: dw_mmc: stop and complete DMA also in STATE_DATA_BUSY state
Ben Dooks <ben.dooks@codethink.co.uk>
mmc: cqhci: fix to missed endian conversions
Pengpeng Hou <pengpeng@iscas.ac.cn>
iio: adc: max1241: add missing MODULE_DEVICE_TABLE()
Yun Zhou <yun.zhou@windriver.com>
block: reject block device inodes with i_rdev == 0 in lookup_bdev()
William Hansen-Baird <william.hansen.baird@gmail.com>
wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding
William Hansen-Baird <william.hansen.baird@gmail.com>
wifi: rtlwifi: rtl8723be: Remove unnecessary irq save/restore in hw_init()
Ben Dooks <ben.dooks@codethink.co.uk>
dmaengine: dw-axi-dmac: fix __le32 on set of CH_CTL_H_LLI_VALID
Yun Zhou <yun.zhou@windriver.com>
net: mvneta_bm: add suspend/resume support to prevent crash after resume
Pengpeng Hou <pengpeng@iscas.ac.cn>
dmaengine: pl330: remove debugfs file on teardown
Jiayuan Chen <jiayuan.chen@linux.dev>
netfilter: ebtables: bound num_counters like nentries in do_replace()
Yousef Alhouseen <alhouseenyousef@gmail.com>
net: usb: rtl8150: handle link status read failures
Yang Wang <kevinyang.wang@amd.com>
drm/amd/pm: Validate legacy hwmgr PP table offsets
Yang Wang <kevinyang.wang@amd.com>
drm/amd/pm: Validate Tonga PPTable subtable bounds
Xiang Liu <xiang.liu@amd.com>
drm/amd/pm: Guard VBIOS AC timing table walk
Yang Wang <kevinyang.wang@amd.com>
drm/amd/pm: Validate Tonga PowerPlay state array bounds
Yang Wang <kevinyang.wang@amd.com>
drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds
Matthew Jacob <mjacob@feralsw.com>
drm/amdgpu: Support some Barco AMD based graphics adapters
Lijo Lazar <lijo.lazar@amd.com>
drm/amd/pm: validate vega10 profile mode inputs
Lijo Lazar <lijo.lazar@amd.com>
drm/amdgpu: Validate ATIF buffer length before use
Lijo Lazar <lijo.lazar@amd.com>
drm/amdgpu: Add checks to vbios fetch through ATRM
Abhijeeth Babu <babu.jeeth@gmail.com>
i2c: acpi: Force ELAN1300 touchpads to 100 kHz
Zide Chen <zide.chen@intel.com>
perf/x86/intel/uncore: Fix PCI PMU cleanup on setup failure
Zizhi Wo <wozizhi@huawei.com>
fat: reject name longer than NAME_MAX in msdos_format_name()
Bryam Vargas <hexlabsecurity@proton.me>
iio: accel: fxls8962af: clamp the device-reported FIFO sample count
Haoxiang Li <haoxiang_li2024@163.com>
ASoC: hdac_hdmi: Fix resource cleanup on probe failure
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: tlv320aic26: remove keyclick sysfs file
William Theesfeld <william@theesfeld.net>
clk: zynq: handle kasprintf() failure in periph_clk registration
Kemeng Shi <shikemeng@huaweicloud.com>
irqdomain: Plug leak in irq_domain_alloc_irqs_locked() error path
Pengpeng Hou <pengpeng@iscas.ac.cn>
media: cec: stm32: return an error when log-address wait times out
Kryštof Černý <cleverline1mc@gmail.com>
w1: ds2482: add OF device match table
Ruoyu Wang <ruoyuw560@gmail.com>
drm/radeon: avoid double free in r600 DPM cleanup
Asad Kamal <asad.kamal@amd.com>
drm/amdgpu: Gate debugfs MMIO access on kernel lockdown
Asad Kamal <asad.kamal@amd.com>
drm/amd/pm: Validate OD DPM triples before mutating tables
Jonas Karlman <jonas@kwiboo.se>
drm/rockchip: dw_hdmi: Use resume_early pm ops for system suspend
Koichiro Den <den@valinux.co.jp>
dmaengine: dw-edma-pcie: Reject devices without driver data
Jesse.Zhang <Jesse.Zhang@amd.com>
drm/amdgpu: Limit BO list entry count to prevent resource exhaustion
Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
drm/amdgpu: Use vmemdup_array_user in amdgpu_bo_create_list_entry_array
Daniel Borkmann <daniel@iogearbox.net>
bpf, arm64: Fix off-by-one in check_imm signed range check
Harry Wentland <harry.wentland@amd.com>
drm/amd/display: Fix out-of-bounds read in dp_get_eq_aux_rd_interval()
Yinjie Yao <yinjie.yao@amd.com>
drm/amdgpu/jpeg: set no_user_fence for JPEG v2.0 ring
Yinjie Yao <yinjie.yao@amd.com>
drm/amdgpu/jpeg: set no_user_fence for JPEG v2.5 ring
Yinjie Yao <yinjie.yao@amd.com>
drm/amdgpu/jpeg: set no_user_fence for JPEG v3.0 ring
Benjamin Cheng <benjamin.cheng@amd.com>
drm/amdgpu/vce: Prevent partial address patches
Zihan Xi <zihanx@nebusec.ai>
net: gso: limit recursive IP-in-IP segmentation
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
ALSA: line6: Clear prev_fbuf on capture buffer release
Linus Torvalds <torvalds@linux-foundation.org>
mm: move 'mmap_min_addr' logic from callers into vm_unmapped_area()
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
usb: typec: tcpm: bound altmode_desc[] per iteration in svdm_consume_modes()
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state
Juanlu Herrero <juanlu@fastmail.com>
io_uring/poll: avoid retry wakeup loss when dropping ownership
Weiming Shi <bestswngs@gmail.com>
asymmetric_keys: reject trust keys without IDs
Christian Brauner <brauner@kernel.org>
coredump: hold RCU while releasing parked threads
Hyunwoo Kim <imv4bel@gmail.com>
exec: Cleanup POSIX timers right after de_thread()
Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
mm: split critical region in remap_file_pages() and invoke LSMs in between
Shu Han <ebpqwerty472123@gmail.com>
mm: call the security_mmap_file() LSM hook in remap_file_pages()
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: wait for negotiation before receiving another PDU
Zizhen Liu <pointerliu@126.com>
net: skbuff: propagate shared-frag marker in skb_zerocopy()
Tu Dinh <ngoc-tu.dinh@vates.tech>
xen-netback: Zero out sring pointers on unmap
Tu Dinh <ngoc-tu.dinh@vates.tech>
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 +
net/sctp/endpointola.c | 4 +
net/sctp/sm_make_chunk.c | 14 +-
net/sctp/socket.c | 83 +-
net/smc/smc_rx.c | 39 +-
net/smc/smc_tx.c | 7 +
net/sunrpc/auth_gss/svcauth_gss.c | 29 +-
net/sunrpc/svc.c | 9 +-
net/sunrpc/svc_xprt.c | 16 +-
net/sunrpc/svcauth_unix.c | 7 +
net/sunrpc/svcsock.c | 3 +
net/sunrpc/xprtrdma/rpc_rdma.c | 27 +-
net/sunrpc/xprtrdma/svc_rdma_transport.c | 3 +-
net/sunrpc/xprtrdma/verbs.c | 9 +-
net/tipc/bearer.c | 4 +
net/tipc/group.c | 19 +-
net/tipc/node.c | 2 +-
net/tipc/socket.c | 12 +-
net/tls/tls_device.c | 21 +-
net/unix/garbage.c | 20 +-
net/unix/sysctl_net_unix.c | 4 +-
net/wireless/nl80211.c | 10 +-
net/wireless/reg.c | 3 +
net/wireless/wext-sme.c | 6 +-
net/xfrm/espintcp.c | 41 +-
net/xfrm/xfrm_interface_core.c | 8 +
net/xfrm/xfrm_policy.c | 26 +-
scripts/checkkconfigsymbols.py | 2 +-
scripts/checkpatch.pl | 2 +
scripts/extract-cert.c | 144 +-
scripts/kconfig/conf.c | 33 +-
scripts/kconfig/symbol.c | 71 +-
scripts/kconfig/tests/conftest.py | 9 +-
.../kconfig/tests/randconfig_probability/Kconfig | 12 +
.../tests/randconfig_probability/__init__.py | 130 +
scripts/kconfig/tests/savedefconfig_range/Kconfig | 60 +
.../kconfig/tests/savedefconfig_range/__init__.py | 8 +
scripts/kconfig/tests/savedefconfig_range/config | 7 +
.../tests/savedefconfig_range/expected_defconfig | 0
scripts/link-vmlinux.sh | 19 +-
scripts/mod/modpost.c | 4 +-
scripts/sign-file.c | 132 +-
scripts/ssl-common.h | 32 +
security/apparmor/apparmorfs.c | 15 +-
security/apparmor/include/label.h | 6 +-
security/apparmor/include/policy_ns.h | 16 +
security/apparmor/label.c | 15 +-
security/apparmor/policy.c | 16 +
security/apparmor/policy_ns.c | 8 +-
security/integrity/ima/ima_template.c | 5 +
security/landlock/fs.c | 10 +-
security/selinux/netlabel.c | 1 +
sound/core/compress_offload.c | 12 +-
sound/core/control.c | 4 +
sound/core/hwdep.c | 14 +-
sound/core/init.c | 95 +-
sound/core/jack.c | 2 +-
sound/core/misc.c | 27 +
sound/core/oss/mixer_oss.c | 36 +-
sound/core/oss/pcm_oss.c | 12 +
sound/core/pcm.c | 14 +-
sound/core/pcm_compat.c | 4 +-
sound/core/pcm_lib.c | 2 +-
sound/core/pcm_local.h | 6 +
sound/core/pcm_native.c | 109 +-
sound/core/rawmidi.c | 3 +
sound/core/seq/oss/seq_oss_device.h | 1 +
sound/core/seq/oss/seq_oss_event.c | 3 +
sound/core/seq/oss/seq_oss_init.c | 2 +
sound/core/vmaster.c | 7 +-
sound/drivers/aloop.c | 48 +-
sound/drivers/mpu401/mpu401_uart.c | 8 +-
sound/isa/sb/emu8000_patch.c | 13 -
sound/mips/sgio2audio.c | 13 +-
sound/oss/dmasound/dmasound_q40.c | 65 +-
sound/pci/cs46xx/dsp_spos.c | 4 +-
sound/pci/cs46xx/dsp_spos_scb_lib.c | 3 +-
sound/pci/emu10k1/emu10k1_patch.c | 85 +-
sound/pci/hda/hda_codec.c | 8 +-
sound/pci/hda/hda_eld.c | 6 +-
sound/pci/hda/hda_intel.c | 19 +-
sound/pci/hda/hda_jack.c | 9 +-
sound/pci/hda/hda_sysfs.c | 4 +
sound/pci/hda/patch_conexant.c | 17 +-
sound/pci/hda/patch_hdmi.c | 3 +-
sound/pci/hda/patch_realtek.c | 40 +-
sound/pci/hda/patch_via.c | 1 +
sound/pci/via82xx.c | 11 +-
sound/sh/aica.c | 2 +-
sound/soc/amd/raven/acp3x-pcm-dma.c | 4 +-
sound/soc/amd/renoir/acp3x-pdm-dma.c | 2 +-
sound/soc/amd/vangogh/acp5x-pcm-dma.c | 2 +-
sound/soc/atmel/atmel-i2s.c | 43 +-
sound/soc/atmel/atmel-pcm-pdc.c | 2 +
sound/soc/codecs/adau17x1.c | 4 +-
sound/soc/codecs/ak4642.c | 3 +-
sound/soc/codecs/arizona-jack.c | 1 +
sound/soc/codecs/cs42l56.c | 1 -
sound/soc/codecs/da732x.c | 2 +-
sound/soc/codecs/hdac_hda.c | 16 +
sound/soc/codecs/hdac_hdmi.c | 10 +-
sound/soc/codecs/max98926.c | 2 +-
sound/soc/codecs/mt6359-accdet.c | 50 +-
sound/soc/codecs/nau8540.c | 4 +-
sound/soc/codecs/rt1011.c | 4 +-
sound/soc/codecs/rt1016.c | 4 +-
sound/soc/codecs/rt1305.c | 4 +-
sound/soc/codecs/rt1308.c | 4 +-
sound/soc/codecs/rt5616.c | 3 +-
sound/soc/codecs/rt5659.c | 10 +-
sound/soc/codecs/rt5660.c | 4 +-
sound/soc/codecs/rt5665.c | 4 +-
sound/soc/codecs/rt5682-sdw.c | 3 +-
sound/soc/codecs/rt711-sdca-sdw.c | 6 +-
sound/soc/codecs/rt711-sdw.c | 8 +-
sound/soc/codecs/sta32x.c | 20 +-
sound/soc/codecs/sta350.c | 20 +-
sound/soc/codecs/tlv320aic26.c | 6 +
sound/soc/codecs/tlv320aic32x4-clk.c | 35 +-
sound/soc/codecs/tlv320aic32x4.h | 5 +-
sound/soc/codecs/wcd-mbhc-v2.c | 8 +-
sound/soc/codecs/wcd9335.c | 12 +
sound/soc/codecs/wm5100.c | 2 +-
sound/soc/codecs/wm8510.c | 2 +-
sound/soc/codecs/wm8737.c | 8 +-
sound/soc/codecs/wm8750.c | 2 +-
sound/soc/codecs/wm8955.c | 2 +-
sound/soc/codecs/wm8983.c | 2 +-
sound/soc/codecs/wm8985.c | 2 +-
sound/soc/codecs/wm8990.c | 10 +-
sound/soc/codecs/wm8991.c | 10 +-
sound/soc/codecs/wm8994.c | 162 +-
sound/soc/codecs/wm8994.h | 2 +
sound/soc/codecs/wm_hubs.c | 2 +-
sound/soc/fsl/fsl_asrc.c | 8 +-
sound/soc/fsl/fsl_asrc_dma.c | 5 +
sound/soc/fsl/imx-pcm-rpmsg.c | 2 +-
sound/soc/intel/atom/sst/sst_acpi.c | 14 +-
sound/soc/intel/boards/bytcr_rt5651.c | 17 +
sound/soc/mediatek/common/mtk-afe-fe-dai.c | 8 +-
sound/soc/mediatek/mt6797/mt6797-afe-clk.c | 14 +-
sound/soc/mediatek/mt8183/mt8183-afe-clk.c | 22 +-
sound/soc/mediatek/mt8192/mt8192-afe-clk.c | 143 +-
sound/soc/mediatek/mt8192/mt8192-afe-gpio.c | 90 +-
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 10 +-
sound/soc/mediatek/mt8192/mt8192-dai-adda.c | 44 +-
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c | 20 +-
.../mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c | 39 +-
sound/soc/mediatek/mt8195/mt8195-afe-clk.c | 357 +-
sound/soc/mediatek/mt8195/mt8195-afe-clk.h | 11 +
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 109 +-
sound/soc/mediatek/mt8195/mt8195-dai-adda.c | 17 +-
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c | 274 +-
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c | 26 +-
sound/soc/qcom/qdsp6/q6afe.c | 10 +-
sound/soc/rockchip/rockchip_i2s.c | 4 +-
sound/soc/soc-ac97.c | 4 +-
sound/soc/soc-component.c | 2 +-
sound/soc/soc-link.c | 10 +-
sound/soc/soc-ops.c | 10 +-
sound/soc/stm/stm32_i2s.c | 27 +-
sound/soc/ti/davinci-mcasp.c | 1 +
sound/soc/xilinx/xlnx_formatter_pcm.c | 18 +-
sound/synth/emux/emux.c | 16 +-
sound/synth/emux/emux_synth.c | 9 +-
sound/synth/emux/soundfont.c | 71 +-
sound/usb/6fire/control.c | 7 +
sound/usb/bcd2000/bcd2000.c | 62 +-
sound/usb/caiaq/device.c | 3 +-
sound/usb/caiaq/input.c | 31 +-
sound/usb/endpoint.c | 40 +-
sound/usb/line6/capture.c | 49 +-
sound/usb/line6/capture.h | 2 +-
sound/usb/line6/pcm.c | 20 +-
sound/usb/line6/playback.c | 31 +-
sound/usb/midi.c | 26 +-
sound/usb/mixer.c | 116 +-
sound/usb/mixer.h | 5 +-
sound/usb/mixer_maps.c | 4 +
sound/usb/mixer_quirks.c | 2 +-
sound/usb/mixer_us16x08.c | 3 +-
sound/usb/pcm.c | 21 +-
sound/usb/quirks-table.h | 24 +
sound/usb/quirks.c | 2 +
sound/usb/usx2y/us122l.c | 27 +-
sound/usb/usx2y/usX2Yhwdep.c | 5 +
sound/usb/usx2y/usb_stream.c | 15 +-
sound/usb/usx2y/usbusx2yaudio.c | 46 +-
sound/usb/usx2y/usx2yhwdeppcm.c | 2 +-
sound/x86/intel_hdmi_audio.c | 9 +-
tools/bpf/bpftool/main.c | 16 +-
tools/bpf/bpftool/tracelog.c | 2 +-
tools/include/linux/types.h | 5 +
tools/lib/api/fd/array.c | 5 +-
tools/lib/bpf/btf.c | 4 +-
tools/lib/bpf/ringbuf.c | 2 +-
tools/lib/perf/mmap.c | 2 +-
tools/perf/Documentation/perf-c2c.txt | 2 +-
tools/perf/builtin-c2c.c | 62 +-
tools/perf/tests/sample-parsing.c | 109 +
tools/perf/util/evsel.c | 95 +-
tools/perf/util/evsel.h | 13 +
tools/perf/util/genelf_debug.c | 45 +-
tools/perf/util/header.c | 18 +-
tools/perf/util/jitdump.c | 134 +-
tools/perf/util/mmap.c | 3 +-
.../x86_energy_perf_policy.c | 18 +-
tools/testing/selftests/Makefile | 4 +-
tools/testing/selftests/arm64/signal/Makefile | 4 +-
.../selftests/clone3/clone3_clear_sighand.c | 6 +-
tools/testing/selftests/core/Makefile | 2 +-
tools/testing/selftests/core/unshare_test.c | 109 +
.../filesystems/epoll/epoll_wakeup_test.c | 32 +-
tools/testing/selftests/ftrace/ftracetest | 3 +
tools/testing/selftests/net/Makefile | 2 +-
tools/testing/selftests/net/fib_nexthops.sh | 46 +-
tools/testing/selftests/net/fin_ack_lat.c | 2 +-
tools/testing/selftests/net/tcp_mmap.c | 110 +-
tools/testing/selftests/net/txtimestamp.c | 23 +-
tools/testing/selftests/netfilter/conntrack_vrf.sh | 140 +-
tools/testing/selftests/seccomp/seccomp_bpf.c | 179 +
.../testing/selftests/timers/clocksource-switch.c | 23 +-
tools/thermal/tmon/tmon.c | 2 +-
usr/gen_init_cpio.c | 1 +
1776 files changed, 99149 insertions(+), 12440 deletions(-)
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0001/2214] xen-netback: Fix XenBus connection failure cleanup
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
@ 2026-11-18 14:27 ` Greg Kroah-Hartman
2026-11-18 14:27 ` [PATCH 5.15 0002/2214] xen-netback: Zero out sring pointers on unmap Greg Kroah-Hartman
` (997 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:27 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Tu Dinh
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tu Dinh <ngoc-tu.dinh@vates.tech>
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")
Signed-off-by: Tu Dinh <ngoc-tu.dinh@vates.tech>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/net/xen-netback/xenbus.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--- a/drivers/net/xen-netback/xenbus.c
+++ b/drivers/net/xen-netback/xenbus.c
@@ -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;
}
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0002/2214] xen-netback: Zero out sring pointers on unmap
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
2026-11-18 14:27 ` [PATCH 5.15 0001/2214] xen-netback: Fix XenBus connection failure cleanup Greg Kroah-Hartman
@ 2026-11-18 14:27 ` Greg Kroah-Hartman
2026-11-18 14:27 ` [PATCH 5.15 0003/2214] net: skbuff: propagate shared-frag marker in skb_zerocopy() Greg Kroah-Hartman
` (996 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:27 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Tu Dinh, Juergen Gross
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tu Dinh <ngoc-tu.dinh@vates.tech>
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")
Signed-off-by: Tu Dinh <ngoc-tu.dinh@vates.tech>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/net/xen-netback/netback.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -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,
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0003/2214] net: skbuff: propagate shared-frag marker in skb_zerocopy()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
2026-11-18 14:27 ` [PATCH 5.15 0001/2214] xen-netback: Fix XenBus connection failure cleanup Greg Kroah-Hartman
2026-11-18 14:27 ` [PATCH 5.15 0002/2214] xen-netback: Zero out sring pointers on unmap Greg Kroah-Hartman
@ 2026-11-18 14:27 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0004/2214] ksmbd: wait for negotiation before receiving another PDU Greg Kroah-Hartman
` (995 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:27 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, stable, Zizhen Liu, Eric Dumazet,
Jakub Kicinski, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zizhen Liu <pointerliu@126.com>
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")
Cc: stable@kernel.org
Signed-off-by: Zizhen Liu <pointerliu@126.com>
Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Link: https://patch.msgid.link/20261022104217.1852191-1-pointerliu@126.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
[ sashal: Adjusted context in skb_zerocopy() due to missing from->unreadable propagation. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
net/core/skbuff.c | 2 ++
1 file changed, 2 insertions(+)
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -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);
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0004/2214] ksmbd: wait for negotiation before receiving another PDU
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (2 preceding siblings ...)
2026-11-18 14:27 ` [PATCH 5.15 0003/2214] net: skbuff: propagate shared-frag marker in skb_zerocopy() Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0005/2214] mm: call the security_mmap_file() LSM hook in remap_file_pages() Greg Kroah-Hartman
` (994 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, ihopenre-eng, Namjae Jeon,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Namjae Jeon <linkinjeon@kernel.org>
[ 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")
Reported-by: ihopenre-eng <ihopenre@gmail.com>
Reviewed-by: ihopenre-eng <ihopenre@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/ksmbd/server.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fs/ksmbd/server.c b/fs/ksmbd/server.c
index c1b9a85f2c67e..275eeace4ba13 100644
--- a/fs/ksmbd/server.c
+++ b/fs/ksmbd/server.c
@@ -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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0005/2214] mm: call the security_mmap_file() LSM hook in remap_file_pages()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (3 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0004/2214] ksmbd: wait for negotiation before receiving another PDU Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0006/2214] mm: split critical region in remap_file_pages() and invoke LSMs in between Greg Kroah-Hartman
` (993 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Shu Han, Stephen Smalley, Paul Moore,
yao zhang1, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Shu Han <ebpqwerty472123@gmail.com>
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)
Link: https://project-zero.issues.chromium.org/issues/42452389 [1]
Cc: stable@vger.kernel.org
Signed-off-by: Shu Han <ebpqwerty472123@gmail.com>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
[PM: subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
(cherry picked from commit ea7e2d5e49c05e5db1922387b09ca74aa40f46e2)
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
mm/mmap.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/mm/mmap.c b/mm/mmap.c
index 53fa4f5167dd0..4e3c2f796fdd1 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0006/2214] mm: split critical region in remap_file_pages() and invoke LSMs in between
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (4 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0005/2214] mm: call the security_mmap_file() LSM hook in remap_file_pages() Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0007/2214] exec: Cleanup POSIX timers right after de_thread() Greg Kroah-Hartman
` (992 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Kirill A. Shutemov, Roberto Sassu,
syzbot+1cd571a672400ef3a930, Jann Horn, Lorenzo Stoakes,
Liam R. Howlett, Paul Moore, Jarkko Sakkinen, Dmitry Kasatkin,
Eric Snowberg, James Morris, Mimi Zohar, Serge E. Hallyn, Shu Han,
Vlastimil Babka, Andrew Morton, yao zhang1, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
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.
Link: https://lkml.kernel.org/r/20241018161415.3845146-1-roberto.sassu@huaweicloud.com
Fixes: ea7e2d5e49c0 ("mm: call the security_mmap_file() LSM hook in remap_file_pages()")
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Reported-by: syzbot+1cd571a672400ef3a930@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/linux-security-module/66f7b10e.050a0220.46d20.0036.GAE@google.com/
Tested-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Jann Horn <jannh@google.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Paul Moore <paul@paul-moore.com>
Tested-by: syzbot+1cd571a672400ef3a930@syzkaller.appspotmail.com
Cc: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Dmitry Kasatkin <dmitry.kasatkin@gmail.com>
Cc: Eric Snowberg <eric.snowberg@oracle.com>
Cc: James Morris <jmorris@namei.org>
Cc: Mimi Zohar <zohar@linux.ibm.com>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Cc: Shu Han <ebpqwerty472123@gmail.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
(cherry picked from commit 58a039e679fe72bd0efa8b2abe669a7914bb4429)
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
mm/mmap.c | 69 +++++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 52 insertions(+), 17 deletions(-)
diff --git a/mm/mmap.c b/mm/mmap.c
index 4e3c2f796fdd1..226b513b688c2 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -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))
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0007/2214] exec: Cleanup POSIX timers right after de_thread()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (5 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0006/2214] mm: split critical region in remap_file_pages() and invoke LSMs in between Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0008/2214] coredump: hold RCU while releasing parked threads Greg Kroah-Hartman
` (991 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Hyunwoo Kim, Thomas Gleixner,
Kijo Park, Oleg Nesterov, Frederic Weisbecker, Lee Jones,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hyunwoo Kim <imv4bel@gmail.com>
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() ]
Fixes: 55e8c8eb2c7b ("posix-cpu-timers: Store a reference to a pid not a task")
Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Kijo Park <red993688@gmail.com>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/ao7Q8miiuLAPVnWv@v4bel
Link: https://patch.msgid.link/20260911090541.627712075@kernel.org
[Lee: Context conflict only - no functional change]
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/exec.c | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/fs/exec.c b/fs/exec.c
index 6797c8cf88f4f..5efe7ae6f9685 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -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.
*/
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0008/2214] coredump: hold RCU while releasing parked threads
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (6 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0007/2214] exec: Cleanup POSIX timers right after de_thread() Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0009/2214] asymmetric_keys: reject trust keys without IDs Greg Kroah-Hartman
` (990 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Oleg Nesterov,
Christian Brauner (Amutable), Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Christian Brauner <brauner@kernel.org>
[ 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")
Cc: stable@vger.kernel.org
Acked-by: Oleg Nesterov <oleg@redhat.com>
Link: https://patch.msgid.link/20260921-work-coredump-fixes-v3-1-8e4adb1619e6@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
[ sashal: Replaced guard(rcu)() with explicit rcu_read_lock() and rcu_read_unlock() calls. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/coredump.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fs/coredump.c b/fs/coredump.c
index 5e5c1d72d63bc..9e97756be4381 100644
--- a/fs/coredump.c
+++ b/fs/coredump.c
@@ -528,6 +528,8 @@ static void coredump_finish(struct mm_struct *mm, bool core_dumped)
spin_unlock_irq(¤t->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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0009/2214] asymmetric_keys: reject trust keys without IDs
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (7 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0008/2214] coredump: hold RCU while releasing parked threads Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0010/2214] io_uring/poll: avoid retry wakeup loss when dropping ownership Greg Kroah-Hartman
` (989 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Xiang Mei, Weiming Shi, Herbert Xu,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Weiming Shi <bestswngs@gmail.com>
[ 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]")
Cc: stable@vger.kernel.org
Reported-by: Xiang Mei <xmei5@asu.edu>
Link: https://lore.kernel.org/r/20260429181629.110802-2-bestswngs@gmail.com
Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Weiming Shi <bestswngs@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
[ sashal: Reused the existing signer_ids structure pointer for the NULL check instead of introducing a separate kids variable. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
crypto/asymmetric_keys/restrict.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crypto/asymmetric_keys/restrict.c b/crypto/asymmetric_keys/restrict.c
index 84cefe3b35856..d95002812bb84 100644
--- a/crypto/asymmetric_keys/restrict.c
+++ b/crypto/asymmetric_keys/restrict.c
@@ -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
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0010/2214] io_uring/poll: avoid retry wakeup loss when dropping ownership
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (8 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0009/2214] asymmetric_keys: reject trust keys without IDs Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0011/2214] lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state Greg Kroah-Hartman
` (988 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Juanlu Herrero, Anand Natarajan,
Jens Axboe, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Juanlu Herrero <juanlu@fastmail.com>
[ 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.
Cc: stable@vger.kernel.org
Fixes: a26a35e9019f ("io_uring: make poll refs more robust")
Signed-off-by: Juanlu Herrero <juanlu@fastmail.com>
Assisted-by: LLM
Suggested-by: Anand Natarajan <anand@meta.com>
Link: https://patch.msgid.link/20261013-pu-cmpxchg-v1-1-4ddc10fd8a03@fastmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
[ sashal: Relocated the change to io_poll_check_events() in the monolithic io_uring implementation. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
io_uring/io_uring.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index 8d5791d8f4031..a87b24c77c0ee 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0011/2214] lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (9 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0010/2214] io_uring/poll: avoid retry wakeup loss when dropping ownership Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0012/2214] usb: typec: tcpm: bound altmode_desc[] per iteration in svdm_consume_modes() Greg Kroah-Hartman
` (987 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jason A. Donenfeld,
Jérémy Jean, Eric Biggers
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
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")
Cc: stable@vger.kernel.org
Assisted-by: LLM
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
Link: https://patch.msgid.link/20261009125354.315476-2-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
arch/arm64/crypto/poly1305-armv8.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/arm64/crypto/poly1305-armv8.pl
+++ b/arch/arm64/crypto/poly1305-armv8.pl
@@ -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
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0012/2214] usb: typec: tcpm: bound altmode_desc[] per iteration in svdm_consume_modes()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (10 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0011/2214] lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0013/2214] mm: move mmap_min_addr logic from callers into vm_unmapped_area() Greg Kroah-Hartman
` (986 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Badhri Jagan Sridharan,
Heikki Krogerus, stable, Denis Arefev
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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.
Assisted-by: gkh_clanker_t1000
Cc: Badhri Jagan Sridharan <badhri@google.com>
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: stable <stable@kernel.org>
Link: https://patch.msgid.link/2026051351-reshuffle-skillful-90af@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[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]
Signed-off-by: Denis Arefev <arefev@swemel.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/usb/typec/tcpm/tcpm.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
--- a/drivers/usb/typec/tcpm/tcpm.c
+++ b/drivers/usb/typec/tcpm/tcpm.c
@@ -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));
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0013/2214] mm: move mmap_min_addr logic from callers into vm_unmapped_area()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (11 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0012/2214] usb: typec: tcpm: bound altmode_desc[] per iteration in svdm_consume_modes() Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0014/2214] ALSA: line6: Clear prev_fbuf on capture buffer release Greg Kroah-Hartman
` (985 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Linus Torvalds, Liam R. Howlett,
Russell King, Liam Howlett, Andrew Morton, Florian Fainelli
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Linus Torvalds <torvalds@linux-foundation.org>
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.
Link: https://lkml.kernel.org/r/20230418214009.1142926-1-Liam.Howlett@oracle.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Liam Howlett <liam.howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
[ 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. ]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
---
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(-)
--- a/arch/s390/mm/hugetlbpage.c
+++ b/arch/s390/mm/hugetlbpage.c
@@ -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;
--- a/arch/s390/mm/mmap.c
+++ b/arch/s390/mm/mmap.c
@@ -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;
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -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;
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -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;
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0014/2214] ALSA: line6: Clear prev_fbuf on capture buffer release
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (12 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0013/2214] mm: move mmap_min_addr logic from callers into vm_unmapped_area() Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0015/2214] net: gso: limit recursive IP-in-IP segmentation Greg Kroah-Hartman
` (984 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Bin Yu, Cheng Wen, YuanZhe Liu,
Takashi Iwai
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: YuanZhe Liu <25031212351@stu.xidian.edu.cn>
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().
Fixes: 63e20df1e5b2 ("ALSA: line6: Reorganize PCM stream handling")
Cc: stable@vger.kernel.org
Co-developed-by: Bin Yu <byu@xidian.edu.cn>
Signed-off-by: Bin Yu <byu@xidian.edu.cn>
Co-developed-by: Cheng Wen <wencheng@xidian.edu.cn>
Signed-off-by: Cheng Wen <wencheng@xidian.edu.cn>
Signed-off-by: YuanZhe Liu <25031212351@stu.xidian.edu.cn>
Link: https://patch.msgid.link/20261013063554.571-1-25031212351@stu.xidian.edu.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
sound/usb/line6/pcm.c | 8 ++++++++
1 file changed, 8 insertions(+)
--- a/sound/usb/line6/pcm.c
+++ b/sound/usb/line6/pcm.c
@@ -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;
}
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0015/2214] net: gso: limit recursive IP-in-IP segmentation
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (13 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0014/2214] ALSA: line6: Clear prev_fbuf on capture buffer release Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0016/2214] drm/amdgpu/vce: Prevent partial address patches Greg Kroah-Hartman
` (983 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Vega, Luxing Yin, Zihan Xi,
Willem de Bruijn, Paolo Abeni, Ting-Han Hou
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zihan Xi <zihanx@nebusec.ai>
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.
Fixes: 3347c9602955 ("ipv4: gso: make inet_gso_segment() stackable")
Cc: stable@vger.kernel.org
Reported-by: Vega <vega@nebusec.ai>
Closes: https://lore.kernel.org/all/cover.1790157745.git.zihanx@nebusec.ai/
Assisted-by: LLM
Co-developed-by: Luxing Yin <root@tr0jan.top>
Signed-off-by: Luxing Yin <root@tr0jan.top>
Signed-off-by: Zihan Xi <zihanx@nebusec.ai>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260924051521.32568-2-zihanx@nebusec.ai
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
[ 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 ]
Signed-off-by: Ting-Han Hou <ue081723@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
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(+)
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -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) -
--- a/include/net/ip_tunnels.h
+++ b/include/net/ip_tunnels.h
@@ -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)
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -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);
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -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;
--- a/net/ipv6/ip6_offload.c
+++ b/net/ipv6/ip6_offload.c
@@ -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;
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0016/2214] drm/amdgpu/vce: Prevent partial address patches
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (14 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0015/2214] net: gso: limit recursive IP-in-IP segmentation Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0017/2214] drm/amdgpu/jpeg: set no_user_fence for JPEG v3.0 ring Greg Kroah-Hartman
` (982 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Benjamin Cheng, Alex Deucher,
Roman Demidov
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Benjamin Cheng <benjamin.cheng@amd.com>
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.
Signed-off-by: Benjamin Cheng <benjamin.cheng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
[ 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] ]
Signed-off-by: Roman Demidov <roman.demidov.nn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
@@ -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;
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0017/2214] drm/amdgpu/jpeg: set no_user_fence for JPEG v3.0 ring
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (15 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0016/2214] drm/amdgpu/vce: Prevent partial address patches Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0018/2214] drm/amdgpu/jpeg: set no_user_fence for JPEG v2.5 ring Greg Kroah-Hartman
` (981 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Christian König, Alex Deucher,
Yinjie Yao, Roman Demidov
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yinjie Yao <yinjie.yao@amd.com>
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")
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Yinjie Yao <yinjie.yao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 4d7d774f100efb5089c86a1fb8c5bf47c63fc9ef)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Roman Demidov <roman.demidov.nn@gmail.com>
---
drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
@@ -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,
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0018/2214] drm/amdgpu/jpeg: set no_user_fence for JPEG v2.5 ring
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (16 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0017/2214] drm/amdgpu/jpeg: set no_user_fence for JPEG v3.0 ring Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0019/2214] drm/amdgpu/jpeg: set no_user_fence for JPEG v2.0 ring Greg Kroah-Hartman
` (980 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Christian König, Alex Deucher,
Yinjie Yao, Roman Demidov
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yinjie Yao <yinjie.yao@amd.com>
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")
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Yinjie Yao <yinjie.yao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 3216a7f4e2642bda5fd14f57586e835ae9202587)
Signed-off-by: Roman Demidov <roman.demidov.nn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 2 ++
1 file changed, 2 insertions(+)
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c
@@ -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,
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0019/2214] drm/amdgpu/jpeg: set no_user_fence for JPEG v2.0 ring
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (17 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0018/2214] drm/amdgpu/jpeg: set no_user_fence for JPEG v2.5 ring Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0020/2214] drm/amd/display: Fix out-of-bounds read in dp_get_eq_aux_rd_interval() Greg Kroah-Hartman
` (979 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Christian König, Alex Deucher,
Yinjie Yao, Roman Demidov
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yinjie Yao <yinjie.yao@amd.com>
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")
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Yinjie Yao <yinjie.yao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 96179da0c6b059eb31706a0abe8dd6381c533143)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Roman Demidov <roman.demidov.nn@gmail.com>
---
drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c
@@ -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,
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0020/2214] drm/amd/display: Fix out-of-bounds read in dp_get_eq_aux_rd_interval()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (18 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0019/2214] drm/amdgpu/jpeg: set no_user_fence for JPEG v2.0 ring Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0021/2214] bpf, arm64: Fix off-by-one in check_imm signed range check Greg Kroah-Hartman
` (978 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Harry Wentland, Ray Wu,
Daniel Wheeler, Alex Deucher, Roman Demidov
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Harry Wentland <harry.wentland@amd.com>
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
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit a55a458a8df37a65ffda5cf721d554a8f74f6b04)
Cc: stable@vger.kernel.org
Signed-off-by: Roman Demidov <roman.demidov.nn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/gpu/drm/amd/display/dc/dc_types.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/gpu/drm/amd/display/dc/dc_types.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_types.h
@@ -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 {
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0021/2214] bpf, arm64: Fix off-by-one in check_imm signed range check
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (19 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0020/2214] drm/amd/display: Fix out-of-bounds read in dp_get_eq_aux_rd_interval() Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0022/2214] drm/amdgpu: Use vmemdup_array_user in amdgpu_bo_create_list_entry_array Greg Kroah-Hartman
` (977 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Daniel Borkmann, Puranjay Mohan,
Alexei Starovoitov, Roman Demidov
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Daniel Borkmann <daniel@iogearbox.net>
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.
Fixes: e54bcde3d69d ("arm64: eBPF JIT compiler")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20260415121403.639619-2-daniel@iogearbox.net
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Roman Demidov <roman.demidov.nn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
arch/arm64/net/bpf_jit_comp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/arch/arm64/net/bpf_jit_comp.c
+++ b/arch/arm64/net/bpf_jit_comp.c
@@ -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; \
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0022/2214] drm/amdgpu: Use vmemdup_array_user in amdgpu_bo_create_list_entry_array
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (20 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0021/2214] bpf, arm64: Fix off-by-one in check_imm signed range check Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0023/2214] drm/amdgpu: Limit BO list entry count to prevent resource exhaustion Greg Kroah-Hartman
` (976 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Tvrtko Ursulin, Alex Deucher,
Roman Demidov
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
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.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: c833d6c7199c ("drm/amdgpu: Limit BO list entry count to prevent resource exhaustion")
Signed-off-by: Roman Demidov <roman.demidov.nn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 43 +++++++++++-----------------
1 file changed, 18 insertions(+), 25 deletions(-)
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
@@ -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,
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0023/2214] drm/amdgpu: Limit BO list entry count to prevent resource exhaustion
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (21 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0022/2214] drm/amdgpu: Use vmemdup_array_user in amdgpu_bo_create_list_entry_array Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0024/2214] dmaengine: dw-edma-pcie: Reject devices without driver data Greg Kroah-Hartman
` (975 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Christian König, Jesse Zhang,
Alex Deucher, Sasha Levin, Roman Demidov
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jesse.Zhang <Jesse.Zhang@amd.com>
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
Reviewed-by: Christian König <christian.koenig@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 688b87d39e0aa8135105b40dc167d74b5ada5332)
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Roman Demidov <roman.demidov.nn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
@@ -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);
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0024/2214] dmaengine: dw-edma-pcie: Reject devices without driver data
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (22 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0023/2214] drm/amdgpu: Limit BO list entry count to prevent resource exhaustion Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0025/2214] drm/rockchip: dw_hdmi: Use resume_early pm ops for system suspend Greg Kroah-Hartman
` (974 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Koichiro Den, Frank Li, Vinod Koul,
Roman Demidov
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Koichiro Den <den@valinux.co.jp>
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.
Fixes: 41aaff2a2ac0 ("dmaengine: Add Synopsys eDMA IP PCIe glue-logic")
Cc: stable@vger.kernel.org
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260521142153.2957432-3-den@valinux.co.jp
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Roman Demidov <roman.demidov.nn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/dma/dw-edma/dw-edma-pcie.c | 3 +++
1 file changed, 3 insertions(+)
--- a/drivers/dma/dw-edma/dw-edma-pcie.c
+++ b/drivers/dma/dw-edma/dw-edma-pcie.c
@@ -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) {
^ permalink raw reply [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0025/2214] drm/rockchip: dw_hdmi: Use resume_early pm ops for system suspend
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (23 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0024/2214] dmaengine: dw-edma-pcie: Reject devices without driver data Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0026/2214] drm/amd/pm: Validate OD DPM triples before mutating tables Greg Kroah-Hartman
` (973 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jonas Karlman, Heiko Stuebner,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jonas Karlman <jonas@kwiboo.se>
[ 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()
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Tested-by: Heiko Stuebner <heiko@sntech.de> #rk3328
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20260518193748.2482823-12-jonas@kwiboo.se
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
index 9e1c34af53909..a95ac68114f9d 100644
--- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
+++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
@@ -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 = {
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0026/2214] drm/amd/pm: Validate OD DPM triples before mutating tables
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (24 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0025/2214] drm/rockchip: dw_hdmi: Use resume_early pm ops for system suspend Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0027/2214] drm/amdgpu: Gate debugfs MMIO access on kernel lockdown Greg Kroah-Hartman
` (972 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Asad Kamal, Lijo Lazar,
Hawking Zhang, Alex Deucher, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Asad Kamal <asad.kamal@amd.com>
[ 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.
Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
.../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(-)
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
index f1a7d6296bdfa..647a7cc9086ea 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
@@ -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;
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
index a801ca47f5be6..7d0cf2a6d2d54 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0027/2214] drm/amdgpu: Gate debugfs MMIO access on kernel lockdown
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (25 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0026/2214] drm/amd/pm: Validate OD DPM triples before mutating tables Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0028/2214] drm/radeon: avoid double free in r600 DPM cleanup Greg Kroah-Hartman
` (971 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Asad Kamal, Lijo Lazar, Alex Deucher,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Asad Kamal <asad.kamal@amd.com>
[ 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)
Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
index f4f5dc704c701..ea6a246479b34 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
@@ -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,
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0028/2214] drm/radeon: avoid double free in r600 DPM cleanup
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (26 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0027/2214] drm/amdgpu: Gate debugfs MMIO access on kernel lockdown Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0029/2214] w1: ds2482: add OF device match table Greg Kroah-Hartman
` (970 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Ruoyu Wang, Alex Deucher,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ruoyu Wang <ruoyuw560@gmail.com>
[ 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.
Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/radeon/r600_dpm.c | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c
index 35b77c9447010..ea478a3ddfbac 100644
--- a/drivers/gpu/drm/radeon/r600_dpm.c
+++ b/drivers/gpu/drm/radeon/r600_dpm.c
@@ -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,
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0029/2214] w1: ds2482: add OF device match table
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (27 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0028/2214] drm/radeon: avoid double free in r600 DPM cleanup Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0030/2214] media: cec: stm32: return an error when log-address wait times out Greg Kroah-Hartman
` (969 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Kryštof Černý,
Krzysztof Kozlowski, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kryštof Černý <cleverline1mc@gmail.com>
[ 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.
Signed-off-by: Kryštof Černý <cleverline1mc@gmail.com>
Link: https://patch.msgid.link/20260612-w1-of-autoload-v1-1-74e8a17626e6@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/w1/masters/ds2482.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/w1/masters/ds2482.c b/drivers/w1/masters/ds2482.c
index 50451ba345efb..e4cd059a67f12 100644
--- a/drivers/w1/masters/ds2482.c
+++ b/drivers/w1/masters/ds2482.c
@@ -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,
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0030/2214] media: cec: stm32: return an error when log-address wait times out
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (28 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0029/2214] w1: ds2482: add OF device match table Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0031/2214] irqdomain: Plug leak in irq_domain_alloc_irqs_locked() error path Greg Kroah-Hartman
` (968 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Hans Verkuil,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ 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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/cec/platform/stm32/stm32-cec.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/drivers/media/cec/platform/stm32/stm32-cec.c b/drivers/media/cec/platform/stm32/stm32-cec.c
index 4cff10c744457..8f045d3e9eb48 100644
--- a/drivers/media/cec/platform/stm32/stm32-cec.c
+++ b/drivers/media/cec/platform/stm32/stm32-cec.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0031/2214] irqdomain: Plug leak in irq_domain_alloc_irqs_locked() error path
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (29 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0030/2214] media: cec: stm32: return an error when log-address wait times out Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0032/2214] clk: zynq: handle kasprintf() failure in periph_clk registration Greg Kroah-Hartman
` (967 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Kemeng Shi, Thomas Gleixner,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kemeng Shi <shikemeng@huaweicloud.com>
[ 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 ]
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260623075134.4432-2-shikemeng@huaweicloud.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
kernel/irq/irqdomain.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index c6152a6942e6e..90e2ec3da82ca 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -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:
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0032/2214] clk: zynq: handle kasprintf() failure in periph_clk registration
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (30 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0031/2214] irqdomain: Plug leak in irq_domain_alloc_irqs_locked() error path Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0033/2214] ASoC: tlv320aic26: remove keyclick sysfs file Greg Kroah-Hartman
` (966 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, William Theesfeld, Brian Masney,
Michal Simek, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: William Theesfeld <william@theesfeld.net>
[ 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.
Signed-off-by: William Theesfeld <william@theesfeld.net>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/clk/zynq/clkc.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/clk/zynq/clkc.c b/drivers/clk/zynq/clkc.c
index c615664505a55..451126c24eda3 100644
--- a/drivers/clk/zynq/clkc.c
+++ b/drivers/clk/zynq/clkc.c
@@ -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)
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0033/2214] ASoC: tlv320aic26: remove keyclick sysfs file
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (31 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0032/2214] clk: zynq: handle kasprintf() failure in periph_clk registration Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0034/2214] ASoC: hdac_hdmi: Fix resource cleanup on probe failure Greg Kroah-Hartman
` (965 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Mark Brown,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ 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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260615064549.34110-1-pengpeng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
sound/soc/codecs/tlv320aic26.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c
index 077415a572255..a863cd54b9528 100644
--- a/sound/soc/codecs/tlv320aic26.c
+++ b/sound/soc/codecs/tlv320aic26.c
@@ -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,
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0034/2214] ASoC: hdac_hdmi: Fix resource cleanup on probe failure
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (32 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0033/2214] ASoC: tlv320aic26: remove keyclick sysfs file Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0035/2214] iio: accel: fxls8962af: clamp the device-reported FIFO sample count Greg Kroah-Hartman
` (964 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Haoxiang Li, Mark Brown, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Haoxiang Li <haoxiang_li2024@163.com>
[ 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/s5h1s0esk8o.wl-tiwai@suse.de/
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.
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Link: https://patch.msgid.link/20260622151127.1198196-1-haoxiang_li2024@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
sound/soc/codecs/hdac_hdmi.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c
index 6a17926fa8692..7bfb3ee325212 100644
--- a/sound/soc/codecs/hdac_hdmi.c
+++ b/sound/soc/codecs/hdac_hdmi.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0035/2214] iio: accel: fxls8962af: clamp the device-reported FIFO sample count
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (33 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0034/2214] ASoC: hdac_hdmi: Fix resource cleanup on probe failure Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0036/2214] fat: reject name longer than NAME_MAX in msdos_format_name() Greg Kroah-Hartman
` (963 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Bryam Vargas, Andy Shevchenko,
Jonathan Cameron, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bryam Vargas <hexlabsecurity@proton.me>
[ 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.
Signed-off-by: Bryam Vargas <hexlabsecurity@proton.me>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/iio/accel/fxls8962af-core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c
index deff8ceb42fa1..8ea12a051a2be 100644
--- a/drivers/iio/accel/fxls8962af-core.c
+++ b/drivers/iio/accel/fxls8962af-core.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0036/2214] fat: reject name longer than NAME_MAX in msdos_format_name()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (34 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0035/2214] iio: accel: fxls8962af: clamp the device-reported FIFO sample count Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0037/2214] perf/x86/intel/uncore: Fix PCI PMU cleanup on setup failure Greg Kroah-Hartman
` (962 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Zizhi Wo,
Christian Brauner (Amutable), Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zizhi Wo <wozizhi@huawei.com>
[ 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.
Signed-off-by: Zizhi Wo <wozizhi@huawei.com>
Link: https://patch.msgid.link/20260629130943.3671939-1-wozizhi@huaweicloud.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/fat/namei_msdos.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/fat/namei_msdos.c b/fs/fat/namei_msdos.c
index fba3a07d39478..ea6ff97d3aea6 100644
--- a/fs/fat/namei_msdos.c
+++ b/fs/fat/namei_msdos.c
@@ -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 */
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0037/2214] perf/x86/intel/uncore: Fix PCI PMU cleanup on setup failure
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (35 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0036/2214] fat: reject name longer than NAME_MAX in msdos_format_name() Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0038/2214] i2c: acpi: Force ELAN1300 touchpads to 100 kHz Greg Kroah-Hartman
` (961 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Zide Chen, Peter Zijlstra (Intel),
Dapeng Mi, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zide Chen <zide.chen@intel.com>
[ 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().
Signed-off-by: Zide Chen <zide.chen@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://sashiko.dev/#/patchset/20260512233048.9577-1-zide.chen@intel.com?part=1
Link: https://patch.msgid.link/20260611160033.66760-2-zide.chen@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
arch/x86/events/intel/uncore.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/x86/events/intel/uncore.c b/arch/x86/events/intel/uncore.c
index 25bf8dcaa9a28..5719f1bc70574 100644
--- a/arch/x86/events/intel/uncore.c
+++ b/arch/x86/events/intel/uncore.c
@@ -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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0038/2214] i2c: acpi: Force ELAN1300 touchpads to 100 kHz
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (36 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0037/2214] perf/x86/intel/uncore: Fix PCI PMU cleanup on setup failure Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0039/2214] drm/amdgpu: Add checks to vbios fetch through ATRM Greg Kroah-Hartman
` (960 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Abhijeeth Babu, Mika Westerberg,
Andi Shyti, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Abhijeeth Babu <babu.jeeth@gmail.com>
[ 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.
Signed-off-by: Abhijeeth Babu <babu.jeeth@gmail.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260617192611.125513-1-babu.jeeth@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/i2c/i2c-core-acpi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/i2c/i2c-core-acpi.c b/drivers/i2c/i2c-core-acpi.c
index 3fabf4b1f6fd4..93bd78137ea67 100644
--- a/drivers/i2c/i2c-core-acpi.c
+++ b/drivers/i2c/i2c-core-acpi.c
@@ -344,6 +344,7 @@ static const struct acpi_device_id i2c_acpi_force_100khz_device_ids[] = {
*/
{ "DLL0945", 0 },
{ "ELAN06FA", 0 },
+ { "ELAN1300", 0 },
{}
};
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0039/2214] drm/amdgpu: Add checks to vbios fetch through ATRM
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (37 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0038/2214] i2c: acpi: Force ELAN1300 touchpads to 100 kHz Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0040/2214] drm/amdgpu: Validate ATIF buffer length before use Greg Kroah-Hartman
` (959 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Lijo Lazar, Alex Deucher,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lijo Lazar <lijo.lazar@amd.com>
[ Upstream commit 8c3fcfc14fc1320a1155acb2dd7656fce7003bc0 ]
Check if a valid buffer object is returned after ATRM call. Also, match
the buffer length against requested size before copying.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
index 7d29d7c87b2cd..05298fabeeef8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
@@ -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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0040/2214] drm/amdgpu: Validate ATIF buffer length before use
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (38 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0039/2214] drm/amdgpu: Add checks to vbios fetch through ATRM Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0041/2214] drm/amd/pm: validate vega10 profile mode inputs Greg Kroah-Hartman
` (958 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Lijo Lazar, Alex Deucher,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lijo Lazar <lijo.lazar@amd.com>
[ 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.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Assisted-by: Claude Sonnet (Cursor AI)
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 68 ++++++++++++------------
1 file changed, 34 insertions(+), 34 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
index 0adc992e4630a..fa16c2bba409b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
@@ -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(¶ms, 0, sizeof(params));
- size = min(sizeof(params), size);
+ size = min(sizeof(params), (size_t)*(u16 *)info->buffer.pointer);
memcpy(¶ms, 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,
- ¶ms);
+ ¶ms, 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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0041/2214] drm/amd/pm: validate vega10 profile mode inputs
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (39 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0040/2214] drm/amdgpu: Validate ATIF buffer length before use Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0042/2214] drm/amdgpu: Support some Barco AMD based graphics adapters Greg Kroah-Hartman
` (957 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Lijo Lazar, Asad Kamal, Alex Deucher,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lijo Lazar <lijo.lazar@amd.com>
[ Upstream commit bf939f2a1687ef4ab815640096357f8ef5bd5fb6 ]
Check for out of range profile modes and custom params that exceed 8 bits.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
index 7d0cf2a6d2d54..60accc56a1178 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
@@ -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];
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0042/2214] drm/amdgpu: Support some Barco AMD based graphics adapters
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (40 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0041/2214] drm/amd/pm: validate vega10 profile mode inputs Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0043/2214] drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds Greg Kroah-Hartman
` (956 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Matthew Jacob, Alex Deucher,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Matthew Jacob <mjacob@feralsw.com>
[ 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.
Signed-off-by: Matthew Jacob <mjacob@feralsw.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 58292a296875b..308bfb7feb39c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -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},
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0043/2214] drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (41 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0042/2214] drm/amdgpu: Support some Barco AMD based graphics adapters Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0044/2214] drm/amd/pm: Validate Tonga PowerPlay state array bounds Greg Kroah-Hartman
` (955 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Yang Wang, Hawking Zhang,
Alex Deucher, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <kevinyang.wang@amd.com>
[ 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.
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
.../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(-)
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c
index 95b988823f50f..bc75f09112cda 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c
@@ -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;
}
-
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c
index 1e79baab753ef..70a38bdaa43fb 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c
@@ -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);
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c
index 1f90825394575..20af10dda2e81 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0044/2214] drm/amd/pm: Validate Tonga PowerPlay state array bounds
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (42 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0043/2214] drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0045/2214] drm/amd/pm: Guard VBIOS AC timing table walk Greg Kroah-Hartman
` (954 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Yang Wang, Hawking Zhang,
Alex Deucher, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <kevinyang.wang@amd.com>
[ 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.
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
.../powerplay/hwmgr/process_pptables_v1_0.c | 62 ++++++++++++-------
1 file changed, 40 insertions(+), 22 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
index 17882f8dfdd34..14bc6beb91b33 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
@@ -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;
}
-
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0045/2214] drm/amd/pm: Guard VBIOS AC timing table walk
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (43 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0044/2214] drm/amd/pm: Validate Tonga PowerPlay state array bounds Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0046/2214] drm/amd/pm: Validate Tonga PPTable subtable bounds Greg Kroah-Hartman
` (953 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Xiang Liu, Hawking Zhang,
Alex Deucher, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Xiang Liu <xiang.liu@amd.com>
[ 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.
Signed-off-by: Xiang Liu <xiang.liu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
.../drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 28 +++++++++++++++----
1 file changed, 22 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
index 640350bbd9085..e981cc3d2f1a5 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0046/2214] drm/amd/pm: Validate Tonga PPTable subtable bounds
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (44 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0045/2214] drm/amd/pm: Guard VBIOS AC timing table walk Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0047/2214] drm/amd/pm: Validate legacy hwmgr PP table offsets Greg Kroah-Hartman
` (952 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Yang Wang, Asad Kamal, Kenneth Feng,
Alex Deucher, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <kevinyang.wang@amd.com>
[ 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.
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
.../powerplay/hwmgr/process_pptables_v1_0.c | 606 +++++++++++++++---
1 file changed, 521 insertions(+), 85 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
index 14bc6beb91b33..02cdcea0bafce 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
@@ -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(
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0047/2214] drm/amd/pm: Validate legacy hwmgr PP table offsets
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (45 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0046/2214] drm/amd/pm: Validate Tonga PPTable subtable bounds Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0048/2214] net: usb: rtl8150: handle link status read failures Greg Kroah-Hartman
` (951 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Yang Wang, Hawking Zhang,
Alex Deucher, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <kevinyang.wang@amd.com>
[ 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.
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
.../amd/pm/powerplay/hwmgr/processpptables.c | 446 +++++++++++++-----
1 file changed, 316 insertions(+), 130 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
index 2ca93a1f0b8e1..e645d44c702b7 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
@@ -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,
};
-
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0048/2214] net: usb: rtl8150: handle link status read failures
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (46 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0047/2214] drm/amd/pm: Validate legacy hwmgr PP table offsets Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0049/2214] netfilter: ebtables: bound num_counters like nentries in do_replace() Greg Kroah-Hartman
` (950 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, syzbot+9db6c624635564ad813c,
Petko Manolov, Yousef Alhouseen, Andrew Lunn, Paolo Abeni,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yousef Alhouseen <alhouseenyousef@gmail.com>
[ 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.
Reported-by: syzbot+9db6c624635564ad813c@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=9db6c624635564ad813c
Suggested-by: Petko Manolov <petkan@nucleusys.com>
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260630101216.10365-1-alhouseenyousef@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/net/usb/rtl8150.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c
index 4c7216b4c8ac2..7c2e6ae31d509 100644
--- a/drivers/net/usb/rtl8150.c
+++ b/drivers/net/usb/rtl8150.c
@@ -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
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0049/2214] netfilter: ebtables: bound num_counters like nentries in do_replace()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (47 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0048/2214] net: usb: rtl8150: handle link status read failures Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0050/2214] dmaengine: pl330: remove debugfs file on teardown Greg Kroah-Hartman
` (949 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jiayuan Chen, Florian Westphal,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jiayuan Chen <jiayuan.chen@linux.dev>
[ 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.
Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/bridge/netfilter/ebtables.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c
index 6ac4ca32fdbfe..f585b516bca79 100644
--- a/net/bridge/netfilter/ebtables.c
+++ b/net/bridge/netfilter/ebtables.c
@@ -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));
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0050/2214] dmaengine: pl330: remove debugfs file on teardown
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (48 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0049/2214] netfilter: ebtables: bound num_counters like nentries in do_replace() Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0051/2214] net: mvneta_bm: add suspend/resume support to prevent crash after resume Greg Kroah-Hartman
` (948 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Vinod Koul,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ 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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260615091645.28878-1-pengpeng@iscas.ac.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/dma/pl330.c | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index ec8a1565630b6..5ccf66842dc13 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -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)
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0051/2214] net: mvneta_bm: add suspend/resume support to prevent crash after resume
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (49 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0050/2214] dmaengine: pl330: remove debugfs file on teardown Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0052/2214] dmaengine: dw-axi-dmac: fix __le32 on set of CH_CTL_H_LLI_VALID Greg Kroah-Hartman
` (947 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Yun Zhou, Paolo Abeni, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yun Zhou <yun.zhou@windriver.com>
[ 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.
Signed-off-by: Yun Zhou <yun.zhou@windriver.com>
Link: https://patch.msgid.link/20260630060311.4072140-1-yun.zhou@windriver.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/net/ethernet/marvell/mvneta.c | 18 ++++++
drivers/net/ethernet/marvell/mvneta_bm.c | 72 ++++++++++++++++++++++++
2 files changed, 90 insertions(+)
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index 269d5c8e2b096..708615e9f489a 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -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
diff --git a/drivers/net/ethernet/marvell/mvneta_bm.c b/drivers/net/ethernet/marvell/mvneta_bm.c
index 46c942ef2287f..e6489f5772493 100644
--- a/drivers/net/ethernet/marvell/mvneta_bm.c
+++ b/drivers/net/ethernet/marvell/mvneta_bm.c
@@ -129,6 +129,7 @@ static int mvneta_bm_pool_create(struct mvneta_bm *priv,
if (!IS_ALIGNED((u32)bm_pool->virt_addr, MVNETA_BM_POOL_PTR_ALIGN)) {
dma_free_coherent(&pdev->dev, size_bytes, bm_pool->virt_addr,
bm_pool->phys_addr);
+ bm_pool->virt_addr = NULL;
dev_err(&pdev->dev, "BM pool %d is not %d bytes aligned\n",
bm_pool->id, MVNETA_BM_POOL_PTR_ALIGN);
return -ENOMEM;
@@ -139,6 +140,7 @@ static int mvneta_bm_pool_create(struct mvneta_bm *priv,
if (err < 0) {
dma_free_coherent(&pdev->dev, size_bytes, bm_pool->virt_addr,
bm_pool->phys_addr);
+ bm_pool->virt_addr = NULL;
return err;
}
@@ -479,6 +481,75 @@ static int mvneta_bm_remove(struct platform_device *pdev)
return 0;
}
+static int mvneta_bm_suspend(struct device *dev)
+{
+ struct mvneta_bm *priv = dev_get_drvdata(dev);
+ int i;
+
+ /* Drain buffers and free pool resources while BM is still clocked */
+ for (i = 0; i < MVNETA_BM_POOLS_NUM; i++) {
+ struct mvneta_bm_pool *bm_pool = &priv->bm_pools[i];
+ int size_bytes;
+
+ if (bm_pool->type == MVNETA_BM_FREE)
+ continue;
+
+ mvneta_bm_bufs_free(priv, bm_pool, bm_pool->port_map);
+ if (bm_pool->hwbm_pool.buf_num)
+ dev_warn(&priv->pdev->dev,
+ "pool %d: %d buffers not freed\n",
+ bm_pool->id, bm_pool->hwbm_pool.buf_num);
+
+ mvneta_bm_pool_disable(priv, bm_pool->id);
+
+ if (bm_pool->virt_addr) {
+ size_bytes = sizeof(u32) * bm_pool->hwbm_pool.size;
+ dma_free_coherent(&priv->pdev->dev, size_bytes,
+ bm_pool->virt_addr,
+ bm_pool->phys_addr);
+ bm_pool->virt_addr = NULL;
+ }
+ /*
+ * Safe to destroy: device_link guarantees all mvneta ports
+ * have already suspended, so no hwbm_pool_add() can be in
+ * progress holding buf_lock. Pairs with mutex_init() in
+ * mvneta_bm_pool_use() on resume.
+ */
+ mutex_destroy(&bm_pool->hwbm_pool.buf_lock);
+ bm_pool->type = MVNETA_BM_FREE;
+ }
+
+ mvneta_bm_write(priv, MVNETA_BM_COMMAND_REG, MVNETA_BM_STOP_MASK);
+ clk_disable_unprepare(priv->clk);
+ return 0;
+}
+
+static int mvneta_bm_resume(struct device *dev)
+{
+ struct mvneta_bm *priv = dev_get_drvdata(dev);
+ int i, err;
+
+ err = clk_prepare_enable(priv->clk);
+ if (err)
+ return err;
+
+ /* Reinitialize BM hardware; pools are refilled by mvneta_resume() */
+ mvneta_bm_default_set(priv);
+
+ /* Restore pool registers lost during clock gating */
+ for (i = 0; i < MVNETA_BM_POOLS_NUM; i++) {
+ mvneta_bm_write(priv, MVNETA_BM_POOL_READ_PTR_REG(i), 0);
+ mvneta_bm_write(priv, MVNETA_BM_POOL_WRITE_PTR_REG(i), 0);
+ mvneta_bm_write(priv, MVNETA_BM_POOL_SIZE_REG(i),
+ priv->bm_pools[i].hwbm_pool.size);
+ }
+
+ mvneta_bm_write(priv, MVNETA_BM_COMMAND_REG, MVNETA_BM_START_MASK);
+ return 0;
+}
+
+static DEFINE_SIMPLE_DEV_PM_OPS(mvneta_bm_pm_ops, mvneta_bm_suspend, mvneta_bm_resume);
+
static const struct of_device_id mvneta_bm_match[] = {
{ .compatible = "marvell,armada-380-neta-bm" },
{ }
@@ -491,6 +562,7 @@ static struct platform_driver mvneta_bm_driver = {
.driver = {
.name = MVNETA_BM_DRIVER_NAME,
.of_match_table = mvneta_bm_match,
+ .pm = pm_sleep_ptr(&mvneta_bm_pm_ops),
},
};
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0052/2214] dmaengine: dw-axi-dmac: fix __le32 on set of CH_CTL_H_LLI_VALID
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (50 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0051/2214] net: mvneta_bm: add suspend/resume support to prevent crash after resume Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0053/2214] wifi: rtlwifi: rtl8723be: Remove unnecessary irq save/restore in hw_init() Greg Kroah-Hartman
` (946 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Ben Dooks, Vinod Koul, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ben Dooks <ben.dooks@codethink.co.uk>
[ 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?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Link: https://patch.msgid.link/20260617084944.705266-1-ben.dooks@codethink.co.uk
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
index 08777129b6f86..decfd838df3f4 100644
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
@@ -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)
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0053/2214] wifi: rtlwifi: rtl8723be: Remove unnecessary irq save/restore in hw_init()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (51 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0052/2214] dmaengine: dw-axi-dmac: fix __le32 on set of CH_CTL_H_LLI_VALID Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0054/2214] wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding Greg Kroah-Hartman
` (945 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, William Hansen-Baird, Ping-Ke Shih,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: William Hansen-Baird <william.hansen.baird@gmail.com>
[ 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/20210111153707.10071-1-mark.rutland@arm.com/
Signed-off-by: William Hansen-Baird <william.hansen.baird@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260609095359.2964193-1-william.hansen.baird@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
index ccbb082d5e928..8d18dfe774034 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
@@ -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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0054/2214] wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (52 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0053/2214] wifi: rtlwifi: rtl8723be: Remove unnecessary irq save/restore in hw_init() Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0055/2214] block: reject block device inodes with i_rdev == 0 in lookup_bdev() Greg Kroah-Hartman
` (944 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, William Hansen-Baird, Ping-Ke Shih,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: William Hansen-Baird <william.hansen.baird@gmail.com>
[ 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.
Signed-off-by: William Hansen-Baird <william.hansen.baird@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260630141553.785769-2-william.hansen.baird@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/net/wireless/realtek/rtlwifi/pci.c | 39 ++++++++++++++--------
1 file changed, 26 insertions(+), 13 deletions(-)
diff --git a/drivers/net/wireless/realtek/rtlwifi/pci.c b/drivers/net/wireless/realtek/rtlwifi/pci.c
index 9272ac0095261..bbcf69452d0e9 100644
--- a/drivers/net/wireless/realtek/rtlwifi/pci.c
+++ b/drivers/net/wireless/realtek/rtlwifi/pci.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0055/2214] block: reject block device inodes with i_rdev == 0 in lookup_bdev()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (53 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0054/2214] wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0056/2214] iio: adc: max1241: add missing MODULE_DEVICE_TABLE() Greg Kroah-Hartman
` (943 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, syzbot+72fe3ea5814121fbc76e,
Yun Zhou, Christian Brauner (Amutable), Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yun Zhou <yun.zhou@windriver.com>
[ 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.
Reported-by: syzbot+72fe3ea5814121fbc76e@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=72fe3ea5814121fbc76e
Signed-off-by: Yun Zhou <yun.zhou@windriver.com>
Link: https://patch.msgid.link/20260703065548.1135125-1-yun.zhou@windriver.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
block/bdev.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/block/bdev.c b/block/bdev.c
index e015fea1521e2..8f64f3ce27711 100644
--- a/block/bdev.c
+++ b/block/bdev.c
@@ -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:
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0056/2214] iio: adc: max1241: add missing MODULE_DEVICE_TABLE()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (54 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0055/2214] block: reject block device inodes with i_rdev == 0 in lookup_bdev() Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0057/2214] mmc: cqhci: fix to missed endian conversions Greg Kroah-Hartman
` (942 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Andy Shevchenko,
Jonathan Cameron, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ 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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/iio/adc/max1241.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/adc/max1241.c b/drivers/iio/adc/max1241.c
index b60f8448f21a4..fb92a68e6827d 100644
--- a/drivers/iio/adc/max1241.c
+++ b/drivers/iio/adc/max1241.c
@@ -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" },
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0057/2214] mmc: cqhci: fix to missed endian conversions
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (55 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0056/2214] iio: adc: max1241: add missing MODULE_DEVICE_TABLE() Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0058/2214] mmc: dw_mmc: stop and complete DMA also in STATE_DATA_BUSY state Greg Kroah-Hartman
` (941 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Ben Dooks, Adrian Hunter,
Ulf Hansson, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ben Dooks <ben.dooks@codethink.co.uk>
[ 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] *
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/mmc/host/cqhci-core.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/mmc/host/cqhci-core.c b/drivers/mmc/host/cqhci-core.c
index 9569d56193bcd..80a960f7de2e1 100644
--- a/drivers/mmc/host/cqhci-core.c
+++ b/drivers/mmc/host/cqhci-core.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0058/2214] mmc: dw_mmc: stop and complete DMA also in STATE_DATA_BUSY state
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (56 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0057/2214] mmc: cqhci: fix to missed endian conversions Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0059/2214] clk: sunxi-ng: fix ccu probe clock unregister on error Greg Kroah-Hartman
` (940 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Marek Szyprowski, Shawn Lin,
Ulf Hansson, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Marek Szyprowski <m.szyprowski@samsung.com>
[ 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.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/mmc/host/dw_mmc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 32927e66b60ca..b3366a3633dee 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0059/2214] clk: sunxi-ng: fix ccu probe clock unregister on error
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (57 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0058/2214] mmc: dw_mmc: stop and complete DMA also in STATE_DATA_BUSY state Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0060/2214] nvme: zns: cap zone report nr_zones by DMA buffer size Greg Kroah-Hartman
` (939 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Sashiko, Chen-Yu Tsai, Jerome Brunet,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jerome Brunet <jbrunet@baylibre.com>
[ 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.
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://lore.kernel.org/r/20260629131254.7E34C1F00A3A@smtp.kernel.org
Reviewed-by: Chen-Yu Tsai <wens@kernel.org>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://patch.msgid.link/20260706-a733-rtc-v4-3-f330728db3d3@baylibre.com
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/clk/sunxi-ng/ccu_common.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/clk/sunxi-ng/ccu_common.c b/drivers/clk/sunxi-ng/ccu_common.c
index 88cb569e58358..45e106db1fef9 100644
--- a/drivers/clk/sunxi-ng/ccu_common.c
+++ b/drivers/clk/sunxi-ng/ccu_common.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0060/2214] nvme: zns: cap zone report nr_zones by DMA buffer size
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (58 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0059/2214] clk: sunxi-ng: fix ccu probe clock unregister on error Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0061/2214] staging: rtl8723bs: fix missing unregister_netdev on sdio_alloc_irq failure Greg Kroah-Hartman
` (938 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Xixin Liu, Christoph Hellwig,
Keith Busch, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Xixin Liu <liuxixin@kylinos.cn>
[ 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.
Signed-off-by: Xixin Liu <liuxixin@kylinos.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/nvme/host/zns.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/nvme/host/zns.c b/drivers/nvme/host/zns.c
index d95010481fce0..aff269e1c5398 100644
--- a/drivers/nvme/host/zns.c
+++ b/drivers/nvme/host/zns.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0061/2214] staging: rtl8723bs: fix missing unregister_netdev on sdio_alloc_irq failure
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (59 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0060/2214] nvme: zns: cap zone report nr_zones by DMA buffer size Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0062/2214] PCI/ATS: Ensure pci_ats_supported() is PF-aware for VFs Greg Kroah-Hartman
` (937 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Devansh Soni, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Devansh Soni <devanshsoni874@gmail.com>
[ 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.
Signed-off-by: Devansh Soni <devanshsoni874@gmail.com>
Link: https://patch.msgid.link/20260619125724.12458-1-devanshsoni874@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index 3b5a6f685bce5..258f68c35dc07 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0062/2214] PCI/ATS: Ensure pci_ats_supported() is PF-aware for VFs
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (60 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0061/2214] staging: rtl8723bs: fix missing unregister_netdev on sdio_alloc_irq failure Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:28 ` [PATCH 5.15 0063/2214] media: cec: tegra: add missing MODULE_DEVICE_TABLE() Greg Kroah-Hartman
` (936 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jason Gunthorpe, Samiullah Khawaja,
Nicolin Chen, Lu Baolu, Kevin Tian, Bjorn Helgaas,
Pranjal Shrivastava, Joerg Roedel, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pranjal Shrivastava <praan@google.com>
[ 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.
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Samiullah Khawaja <skhawaja@google.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Pranjal Shrivastava <praan@google.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/pci/ats.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c
index c967ad6e26267..aa89408cf0195 100644
--- a/drivers/pci/ats.c
+++ b/drivers/pci/ats.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0063/2214] media: cec: tegra: add missing MODULE_DEVICE_TABLE()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (61 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0062/2214] PCI/ATS: Ensure pci_ats_supported() is PF-aware for VFs Greg Kroah-Hartman
@ 2026-11-18 14:28 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0064/2214] media: v4l2-tpg: reduce stack usage for kasan builds Greg Kroah-Hartman
` (935 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:28 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Hans Verkuil,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ 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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/cec/platform/tegra/tegra_cec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/cec/platform/tegra/tegra_cec.c b/drivers/media/cec/platform/tegra/tegra_cec.c
index 5e907395ca2e5..43fe54f792b65 100644
--- a/drivers/media/cec/platform/tegra/tegra_cec.c
+++ b/drivers/media/cec/platform/tegra/tegra_cec.c
@@ -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 = {
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0064/2214] media: v4l2-tpg: reduce stack usage for kasan builds
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (62 preceding siblings ...)
2026-11-18 14:28 ` [PATCH 5.15 0063/2214] media: cec: tegra: add missing MODULE_DEVICE_TABLE() Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0065/2214] mmc: block: reject invalid perdev_minors before division Greg Kroah-Hartman
` (934 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Arnd Bergmann, Hans Verkuil,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Arnd Bergmann <arnd@arndb.de>
[ 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.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c b/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
index 533c8bb8fd886..fffbf6d6467c0 100644
--- a/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
+++ b/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0065/2214] mmc: block: reject invalid perdev_minors before division
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (63 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0064/2214] media: v4l2-tpg: reduce stack usage for kasan builds Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0066/2214] tty: serial: pch_uart: add check for pci_get_slot() Greg Kroah-Hartman
` (933 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Xu Rao, Ulf Hansson, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Xu Rao <raoxu@uniontech.com>
[ 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.
Signed-off-by: Xu Rao <raoxu@uniontech.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/mmc/core/block.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
index e0421d857030f..47d2415c0349c 100644
--- a/drivers/mmc/core/block.c
+++ b/drivers/mmc/core/block.c
@@ -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");
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0066/2214] tty: serial: pch_uart: add check for pci_get_slot()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (64 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0065/2214] mmc: block: reject invalid perdev_minors before division Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0067/2214] usb: fsl_qe_udc: check qe_alloc_request() failure in ch9getstatus() Greg Kroah-Hartman
` (932 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Haoxiang Li, Andy Shevchenko,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Haoxiang Li <haoxiang_li2024@163.com>
[ Upstream commit 970ede67de0e3f6a1e707ec99ae49d80bf3f2966 ]
Add check for pci_get_slot() to prevent a potetial
null pointer dereference in pch_request_dma().
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260623140539.2272473-1-haoxiang_li2024@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/tty/serial/pch_uart.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c
index 69d516463a179..4fb2ee240b17f 100644
--- a/drivers/tty/serial/pch_uart.c
+++ b/drivers/tty/serial/pch_uart.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0067/2214] usb: fsl_qe_udc: check qe_alloc_request() failure in ch9getstatus()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (65 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0066/2214] tty: serial: pch_uart: add check for pci_get_slot() Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0068/2214] usb_string_copy: Use kzalloc() to avoid leaking old data Greg Kroah-Hartman
` (931 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Haoxiang Li, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Haoxiang Li <haoxiang_li2024@163.com>
[ 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.
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Link: https://patch.msgid.link/20260620120631.2894977-1-haoxiang_li2024@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/usb/gadget/udc/fsl_qe_udc.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c
index 8bf767a80dd42..6c1402890ff9b 100644
--- a/drivers/usb/gadget/udc/fsl_qe_udc.c
+++ b/drivers/usb/gadget/udc/fsl_qe_udc.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0068/2214] usb_string_copy: Use kzalloc() to avoid leaking old data
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (66 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0067/2214] usb: fsl_qe_udc: check qe_alloc_request() failure in ch9getstatus() Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0069/2214] USB: gadget: inode: fix mm lifetime handling Greg Kroah-Hartman
` (930 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, David Laight, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Laight <david.laight.linux@gmail.com>
[ 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.
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Link: https://patch.msgid.link/20260608095523.2606-37-david.laight.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/usb/gadget/configfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c
index b2e1b3ac0487c..5fc740d329550 100644
--- a/drivers/usb/gadget/configfs.c
+++ b/drivers/usb/gadget/configfs.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0069/2214] USB: gadget: inode: fix mm lifetime handling
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (67 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0068/2214] usb_string_copy: Use kzalloc() to avoid leaking old data Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0070/2214] pinctrl: sx150x: add missing MODULE_DEVICE_TABLE() Greg Kroah-Hartman
` (929 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Gabriel Prostitis, Alan Stern,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gabriel Prostitis <prostitisgabriel@gmail.com>
[ 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.
Reported-by: Gabriel Prostitis <prostitisgabriel@gmail.com>
Signed-off-by: Gabriel Prostitis <prostitisgabriel@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://patch.msgid.link/20260601-mm-uaf-fix-v2-2-3c942a707bce@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/usb/gadget/legacy/inode.c | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/gadget/legacy/inode.c b/drivers/usb/gadget/legacy/inode.c
index b17122fa7931d..10d01e6c06b89 100644
--- a/drivers/usb/gadget/legacy/inode.c
+++ b/drivers/usb/gadget/legacy/inode.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0070/2214] pinctrl: sx150x: add missing MODULE_DEVICE_TABLE()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (68 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0069/2214] USB: gadget: inode: fix mm lifetime handling Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0071/2214] media: em28xx: dev_info->pr_info since dev has been freed Greg Kroah-Hartman
` (928 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Linus Walleij,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ 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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/pinctrl/pinctrl-sx150x.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pinctrl/pinctrl-sx150x.c b/drivers/pinctrl/pinctrl-sx150x.c
index 484a3b9e875c1..6998e24afc5c2 100644
--- a/drivers/pinctrl/pinctrl-sx150x.c
+++ b/drivers/pinctrl/pinctrl-sx150x.c
@@ -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 },
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0071/2214] media: em28xx: dev_info->pr_info since dev has been freed
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (69 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0070/2214] pinctrl: sx150x: add missing MODULE_DEVICE_TABLE() Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0072/2214] media: em28xx: requeue buffers if start_streaming fails Greg Kroah-Hartman
` (927 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Hans Verkuil, Mauro Carvalho Chehab,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hans Verkuil <hverkuil+cisco@kernel.org>
[ 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.
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Tested-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/usb/em28xx/em28xx-cards.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c
index 9027660b0fe64..1af36627ff617 100644
--- a/drivers/media/usb/em28xx/em28xx-cards.c
+++ b/drivers/media/usb/em28xx/em28xx-cards.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0072/2214] media: em28xx: requeue buffers if start_streaming fails
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (70 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0071/2214] media: em28xx: dev_info->pr_info since dev has been freed Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0073/2214] media: em28xx: use vb2_video_unregister_device Greg Kroah-Hartman
` (926 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Hans Verkuil, Mauro Carvalho Chehab,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hans Verkuil <hverkuil+cisco@kernel.org>
[ 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.
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Tested-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/usb/em28xx/em28xx-video.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c
index ffc7ae1ee3a9b..15f90c25fab2b 100644
--- a/drivers/media/usb/em28xx/em28xx-video.c
+++ b/drivers/media/usb/em28xx/em28xx-video.c
@@ -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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0073/2214] media: em28xx: use vb2_video_unregister_device
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (71 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0072/2214] media: em28xx: requeue buffers if start_streaming fails Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0074/2214] soundwire: dmi-quirks: add a global ghost list Greg Kroah-Hartman
` (925 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Hans Verkuil, Mauro Carvalho Chehab,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hans Verkuil <hverkuil+cisco@kernel.org>
[ Upstream commit 7c8bf63b79371f5b57da1bd1401bd420180ac6e6 ]
Use vb2_video_unregister_device instead of video_unregister_device
to ensure any streaming is correctly stopped at unregister time.
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Tested-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/usb/em28xx/em28xx-video.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c
index 15f90c25fab2b..a2cdde3bfe900 100644
--- a/drivers/media/usb/em28xx/em28xx-video.c
+++ b/drivers/media/usb/em28xx/em28xx-video.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0074/2214] soundwire: dmi-quirks: add a global ghost list
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (72 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0073/2214] media: em28xx: use vb2_video_unregister_device Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0075/2214] nvme: bound ns descriptor header and body to identify buffer Greg Kroah-Hartman
` (924 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Bard Liao, Charles Keepax,
Pierre-Louis Bossart, Vinod Koul, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bard Liao <yung-chuan.liao@linux.intel.com>
[ Upstream commit b7a5d101d7d267922e828c40135bcaccf8cfb3bf ]
Not like other ghost devices, the 0x000000D010010500 ADR doesn't belong
to any codec. We should disable it in all devices.
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20260703011656.2572959-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/soundwire/dmi-quirks.c | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/drivers/soundwire/dmi-quirks.c b/drivers/soundwire/dmi-quirks.c
index 39f0cc2a5b333..6739f30d25b20 100644
--- a/drivers/soundwire/dmi-quirks.c
+++ b/drivers/soundwire/dmi-quirks.c
@@ -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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0075/2214] nvme: bound ns descriptor header and body to identify buffer
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (73 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0074/2214] soundwire: dmi-quirks: add a global ghost list Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0076/2214] iwlwifi: dvm: add missing cleaup for on error path Greg Kroah-Hartman
` (923 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Christoph Hellwig, Hari Mishal,
Keith Busch, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hari Mishal <harimishal1@gmail.com>
[ 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.
Assisted-by: gkh_clanker_t1000
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hari Mishal <harimishal1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/nvme/host/core.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 97c6d6aa4ccf5..ae98572008370 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -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)
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0076/2214] iwlwifi: dvm: add missing cleaup for on error path
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (74 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0075/2214] nvme: bound ns descriptor header and body to identify buffer Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0077/2214] media: i2c: ov8865: Drop the runtime PM usage count on stream failure Greg Kroah-Hartman
` (922 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Haoxiang Li, Miri Korenblit,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
[ Upstream commit 94280e6e0c69a5327e377803732f494d8b5a74cd ]
In iwlagn_tx_agg_start(), call iwlagn_dealloc_agg_txq()
to clear bit on error path.
Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Link: https://patch.msgid.link/20260401030555.541685-1-lihaoxiang@isrc.iscas.ac.cn
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/net/wireless/intel/iwlwifi/dvm/tx.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/tx.c b/drivers/net/wireless/intel/iwlwifi/dvm/tx.c
index a6999ca75377c..85732448f5622 100644
--- a/drivers/net/wireless/intel/iwlwifi/dvm/tx.c
+++ b/drivers/net/wireless/intel/iwlwifi/dvm/tx.c
@@ -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];
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0077/2214] media: i2c: ov8865: Drop the runtime PM usage count on stream failure
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (75 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0076/2214] iwlwifi: dvm: add missing cleaup for on error path Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0078/2214] drm/etnaviv: check all modules for idle after reset Greg Kroah-Hartman
` (921 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jurison Murati, Daniel Scally,
Sakari Ailus, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jurison Murati <eng.juri@gmail.com>
[ 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.
Signed-off-by: Jurison Murati <eng.juri@gmail.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/i2c/ov8865.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/drivers/media/i2c/ov8865.c b/drivers/media/i2c/ov8865.c
index 92f6c3a940cfb..c587b14c91e93 100644
--- a/drivers/media/i2c/ov8865.c
+++ b/drivers/media/i2c/ov8865.c
@@ -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,
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0078/2214] drm/etnaviv: check all modules for idle after reset
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (76 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0077/2214] media: i2c: ov8865: Drop the runtime PM usage count on stream failure Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0079/2214] media: i2c: ov8865: Program the sensor on stream start Greg Kroah-Hartman
` (920 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Christian Gmeiner, Lucas Stach,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lucas Stach <l.stach@pengutronix.de>
[ 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.
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Link: https://patch.msgid.link/20260511085148.652256-1-l.stach@pengutronix.de
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
index 0fff51dc97755..ed8f5f8439f78 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
@@ -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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0079/2214] media: i2c: ov8865: Program the sensor on stream start
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (77 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0078/2214] drm/etnaviv: check all modules for idle after reset Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0080/2214] media: ivtv: stop VBI start-code scan before short tail Greg Kroah-Hartman
` (919 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jurison Murati, Sakari Ailus,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jurison Murati <eng.juri@gmail.com>
[ 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.
Signed-off-by: Jurison Murati <eng.juri@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/i2c/ov8865.c | 34 +++++++++++++++++++++++++---------
1 file changed, 25 insertions(+), 9 deletions(-)
diff --git a/drivers/media/i2c/ov8865.c b/drivers/media/i2c/ov8865.c
index c587b14c91e93..cb076cdd24a09 100644
--- a/drivers/media/i2c/ov8865.c
+++ b/drivers/media/i2c/ov8865.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0080/2214] media: ivtv: stop VBI start-code scan before short tail
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (78 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0079/2214] media: i2c: ov8865: Program the sensor on stream start Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0081/2214] media: cx18: " Greg Kroah-Hartman
` (918 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Hans Verkuil,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ 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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/pci/ivtv/ivtv-vbi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/ivtv/ivtv-vbi.c b/drivers/media/pci/ivtv/ivtv-vbi.c
index 80478b026d752..279a4d6bece19 100644
--- a/drivers/media/pci/ivtv/ivtv-vbi.c
+++ b/drivers/media/pci/ivtv/ivtv-vbi.c
@@ -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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0081/2214] media: cx18: stop VBI start-code scan before short tail
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (79 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0080/2214] media: ivtv: stop VBI start-code scan before short tail Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0082/2214] media: go7007: avoid undefined shifts in MPEG-4 headers Greg Kroah-Hartman
` (917 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Hans Verkuil,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ 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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/pci/cx18/cx18-vbi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/cx18/cx18-vbi.c b/drivers/media/pci/cx18/cx18-vbi.c
index c7cce38dd7547..38b2cfd2372c0 100644
--- a/drivers/media/pci/cx18/cx18-vbi.c
+++ b/drivers/media/pci/cx18/cx18-vbi.c
@@ -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]))
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0082/2214] media: go7007: avoid undefined shifts in MPEG-4 headers
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (80 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0081/2214] media: cx18: " Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0083/2214] remoteproc: core: cancel crash_handler work in rproc_add() error path Greg Kroah-Hartman
` (916 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Yousef Alhouseen, Hans Verkuil,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yousef Alhouseen <alhouseenyousef@gmail.com>
[ Upstream commit 41f82777e547732460290ceb28fcc7c1b95ef192 ]
The byte-alignment paths can call CODE_ADD() with a zero bit
length. The macro then shifts an int by name.b, which can be 32
after the preceding bit was flushed.
vti_bitlen() can likewise shift a signed int into its sign bit while
searching for the bit length, and the package mask construction can
shift by the full type width.
Make zero-length additions a no-op, derive the bit length with fls(),
and build the mask with GENMASK().
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/usb/go7007/go7007-fw.c | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/drivers/media/usb/go7007/go7007-fw.c b/drivers/media/usb/go7007/go7007-fw.c
index 018019ba47d46..d50304301eeae 100644
--- a/drivers/media/usb/go7007/go7007-fw.c
+++ b/drivers/media/usb/go7007/go7007-fw.c
@@ -13,6 +13,7 @@
*/
#include <linux/module.h>
+#include <linux/bitops.h>
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/device.h>
@@ -58,14 +59,16 @@ struct code_gen {
#define CODE_GEN(name, dest) struct code_gen name = { dest, 0, 32, 0 }
#define CODE_ADD(name, val, length) do { \
- name.b -= (length); \
- name.a |= (val) << name.b; \
- while (name.b <= 24) { \
- *name.p = name.a >> 24; \
- ++name.p; \
- name.a <<= 8; \
- name.b += 8; \
- name.len += 8; \
+ if (length) { \
+ name.b -= (length); \
+ name.a |= (val) << name.b; \
+ while (name.b <= 24) { \
+ *name.p = name.a >> 24; \
+ ++name.p; \
+ name.a <<= 8; \
+ name.b += 8; \
+ name.len += 8; \
+ } \
} \
} while (0)
@@ -707,11 +710,10 @@ static int gen_mpeg1hdr_to_package(struct go7007 *go,
static int vti_bitlen(struct go7007 *go)
{
- unsigned int i, max_time_incr = go->sensor_framerate / go->fps_scale;
+ unsigned int max_time_incr = go->sensor_framerate / go->fps_scale;
+ int bitlen = fls(max_time_incr);
- for (i = 31; (max_time_incr & ((1 << i) - 1)) == max_time_incr; --i)
- ;
- return i + 1;
+ return bitlen ?: 1;
}
static int mpeg4_frame_header(struct go7007 *go, unsigned char *buf,
@@ -1209,7 +1211,7 @@ static int seqhead_to_package(struct go7007 *go, __le16 *code, int space,
0xbf08, fps,
0xbf09, 0,
0xbff2, vop_time_increment_bitlength,
- 0xbff3, (1 << vop_time_increment_bitlength) - 1,
+ 0xbff3, GENMASK(vop_time_increment_bitlength - 1, 0),
0xbfe6, 0,
0xbfe7, (fps / 1000) << 8,
0, 0,
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0083/2214] remoteproc: core: cancel crash_handler work in rproc_add() error path
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (81 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0082/2214] media: go7007: avoid undefined shifts in MPEG-4 headers Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0084/2214] wifi: iwlwifi: mvm: reset the smart fifo state upon FW stop Greg Kroah-Hartman
` (915 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jingyi Wang, Bjorn Andersson,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jingyi Wang <jingyi.wang@oss.qualcomm.com>
[ Upstream commit 0ec167625b4fea30b26da33c188e853ff25d5583 ]
Ensure crash_handler work is cancelled before tearing down rproc resources
to avoid accessing freed memory.
Signed-off-by: Jingyi Wang <jingyi.wang@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260623-rproc-attach-issue-v3-3-8e24310707ce@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/remoteproc/remoteproc_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index a41b793e994e4..0e12d45b551f5 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -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:
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0084/2214] wifi: iwlwifi: mvm: reset the smart fifo state upon FW stop
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (82 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0083/2214] remoteproc: core: cancel crash_handler work in rproc_add() error path Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0085/2214] tools/lib/api: Fix potential double-free from fdarray__grow() Greg Kroah-Hartman
` (914 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Emmanuel Grumbach, Miri Korenblit,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[ 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.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://patch.msgid.link/20260714165826.7d3c5efe2d1a.I16b23c328a677257257f695fa6f439e41fbcd081@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index 05e1a6de8c2e3..0d7edc2a09e5f 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0085/2214] tools/lib/api: Fix potential double-free from fdarray__grow()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (83 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0084/2214] wifi: iwlwifi: mvm: reset the smart fifo state upon FW stop Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0086/2214] gpu: host1x: Wait for timeout worker completion on channel free Greg Kroah-Hartman
` (913 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Sashiko Review, Ian Rogers,
Namhyung Kim, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Namhyung Kim <namhyung@kernel.org>
[ 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.
Reported-by: Sashiko Review <sashiko-bot@kernel.org>
Closes: https://lore.kernel.org/linux-perf-users/20260710200150.11FE71F00A3A@smtp.kernel.org
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
tools/lib/api/fd/array.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/lib/api/fd/array.c b/tools/lib/api/fd/array.c
index 5e6cb9debe37e..d49b560664a1f 100644
--- a/tools/lib/api/fd/array.c
+++ b/tools/lib/api/fd/array.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0086/2214] gpu: host1x: Wait for timeout worker completion on channel free
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (84 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0085/2214] tools/lib/api: Fix potential double-free from fdarray__grow() Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0087/2214] scsi: qla2xxx: Handle INTx not connected while passing through Greg Kroah-Hartman
` (912 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mikko Perttunen, Thierry Reding,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mikko Perttunen <mperttunen@nvidia.com>
[ Upstream commit 7a39b9856acccc8e9b05845ca2bf62494fcd3dfa ]
cdma_timeout_destroy() used cancel_delayed_work() to cancel pending
timeout work when destroying the CDMA. Usually this is fine, but
there is a narrow race condition where the timeout handler has started
execution but has not taken cdma->lock; the channel is freed causing
cdma_stop to take cdma->lock and flush the channel; host1x_cdma_deinit
then proceeds with deinitializing cdma while the handler is waiting to
take cdma->lock.
Therefore change cdma_timeout_destroy to use cancel_delayed_work_sync
instead to ensure any pending timeout work completes before proceeding.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20260609-b4-host1x-small-fixes-a-v1-1-7c1131c0b3ad@nvidia.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/host1x/hw/cdma_hw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/host1x/hw/cdma_hw.c b/drivers/gpu/host1x/hw/cdma_hw.c
index e49cd5b8f7354..83be9959fc061 100644
--- a/drivers/gpu/host1x/hw/cdma_hw.c
+++ b/drivers/gpu/host1x/hw/cdma_hw.c
@@ -309,7 +309,7 @@ static int cdma_timeout_init(struct host1x_cdma *cdma)
static void cdma_timeout_destroy(struct host1x_cdma *cdma)
{
if (cdma->timeout.initialized)
- cancel_delayed_work(&cdma->timeout.wq);
+ cancel_delayed_work_sync(&cdma->timeout.wq);
cdma->timeout.initialized = false;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0087/2214] scsi: qla2xxx: Handle INTx not connected while passing through
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (85 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0086/2214] gpu: host1x: Wait for timeout worker completion on channel free Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0088/2214] media: cec: tegra_cec: dont break off msg on NACK Greg Kroah-Hartman
` (911 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Shivaprasad G Bhat, Kyle Mahlkuch,
Martin K. Petersen, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Shivaprasad G Bhat <sbhat@linux.ibm.com>
[ Upstream commit 7268e509b43ac1734e1bdb7d18553f7e1080dfb4 ]
The PCI_INTERRUPT_PIN reports if the device supports the INTx. However,
when the device is assigned to a guest via vfio, the PCI_INTERRUPT_PIN
is set to 0 (i.e none) if the line is not connected and/or the platform
cannot route the interrupt.
In such cases, the guest PCI_INTERRUPT_PIN is 0 and the port number
becomes -1 (255, uint8_t underflow) for qla[25|27|28]xx and qla2031
devices. The flt_region_nvram is never set, and subsequently the LUN
detection fails. Below warnings show the NVRAM configuration failure:
[]-0073:1: Inconsistent NVRAM checksum=0xffffffc0 id=HCAM version=0x100.
[]-0074:1: Falling back to functioning (yet invalid -- WWPN) defaults.
[]-0076:1: NVRAM configuration failed.
Handle this case and set the port_no to devfn like its done everywhere
else.
Reference: commit 2bd42b03ab6b ("vfio/pci: Virtualize zero INTx PIN if no pdev->irq")
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Reviewed-by: Kyle Mahlkuch <kmahlkuc@linux.ibm.com>
Link: https://patch.msgid.link/177885270578.1573.14283751510936407585.stgit@linux.ibm.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/scsi/qla2xxx/qla_os.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 2e787858f9d50..863f91be4b69e 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -2789,11 +2789,16 @@ qla2x00_set_isp_flags(struct qla_hw_data *ha)
else {
/* Get adapter physical port no from interrupt pin register. */
pci_read_config_byte(ha->pdev, PCI_INTERRUPT_PIN, &ha->port_no);
- if (IS_QLA25XX(ha) || IS_QLA2031(ha) ||
- IS_QLA27XX(ha) || IS_QLA28XX(ha))
- ha->port_no--;
- else
- ha->port_no = !(ha->port_no & 1);
+ if (ha->port_no == 0) {
+ /* None of INT[A|B|C|D] may be virtualized by vfio */
+ ha->port_no = PCI_FUNC(ha->pdev->devfn);
+ } else {
+ if (IS_QLA25XX(ha) || IS_QLA2031(ha) ||
+ IS_QLA27XX(ha) || IS_QLA28XX(ha))
+ ha->port_no--;
+ else
+ ha->port_no = !(ha->port_no & 1);
+ }
}
ql_dbg_pci(ql_dbg_init, ha->pdev, 0x000b,
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0088/2214] media: cec: tegra_cec: dont break off msg on NACK
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (86 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0087/2214] scsi: qla2xxx: Handle INTx not connected while passing through Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0089/2214] media: cec/core: drop cec_post_state_event call Greg Kroah-Hartman
` (910 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Hans Verkuil, Mikko Perttunen,
Mauro Carvalho Chehab, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hans Verkuil <hverkuil+cisco@kernel.org>
[ Upstream commit be627f257ce283c95fd2988080dc0db3a20d0d2a ]
The Tegra CEC hardware has a bug where, if the first attempt
to transmit a message is NACKed so the transmit is aborted,
then the second attempt can contain corrupt data.
Ensure that the full message is always transmitted to avoid hitting
this bug.
I suspect some internal state is not reset in the case of aborting
a message due to a NACK.
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/cec/platform/tegra/tegra_cec.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/drivers/media/cec/platform/tegra/tegra_cec.c b/drivers/media/cec/platform/tegra/tegra_cec.c
index 43fe54f792b65..c30df776bf8a5 100644
--- a/drivers/media/cec/platform/tegra/tegra_cec.c
+++ b/drivers/media/cec/platform/tegra/tegra_cec.c
@@ -243,7 +243,18 @@ static int tegra_cec_adap_enable(struct cec_adapter *adap, bool enable)
TEGRA_CEC_INT_MASK_RX_REGISTER_FULL |
TEGRA_CEC_INT_MASK_RX_START_BIT_DETECTED);
- cec_write(cec, TEGRA_CEC_HW_CONTROL, TEGRA_CEC_HWCTRL_TX_RX_MODE);
+ /*
+ * TX_NAK_MODE ensures that the whole message is transmitted even
+ * if each byte is NACKed. Without this flag the retransmit of the
+ * messages after a NACK can be corrupt. This is a bug in the hardware.
+ *
+ * While less efficient, in practice you rarely transmit messages
+ * that can be NACKed, with the exception of POLL messages which
+ * are just one byte anyway.
+ */
+ cec_write(cec, TEGRA_CEC_HW_CONTROL,
+ TEGRA_CEC_HWCTRL_TX_RX_MODE |
+ TEGRA_CEC_HWCTRL_TX_NAK_MODE);
return 0;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0089/2214] media: cec/core: drop cec_post_state_event call
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (87 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0088/2214] media: cec: tegra_cec: dont break off msg on NACK Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0090/2214] usb: musb: host: clear stale RX interrupt on three-strikes error Greg Kroah-Hartman
` (909 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Hans Verkuil, Mauro Carvalho Chehab,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hans Verkuil <hverkuil+cisco@kernel.org>
[ Upstream commit 2ff4b91e82bd76e1a6e1ff22bfc9aeda08e12a61 ]
No need to call cec_post_state_event() if the next call
is to cec_adap_unconfigure() since that will also call
cec_post_state_event().
This fixes the case when, when the physical address is
invalidated, you get two CEC_EVENT_STATE_CHANGE events:
one with a non-zero log_addr_mask and one with a zero
log_addr_mask.
You just want to see the event with phys_addr set to
f.f.f.f and log_addr_mask set to 0.
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/cec/core/cec-adap.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/media/cec/core/cec-adap.c b/drivers/media/cec/core/cec-adap.c
index 19367fdf3d431..365714c343572 100644
--- a/drivers/media/cec/core/cec-adap.c
+++ b/drivers/media/cec/core/cec-adap.c
@@ -1636,7 +1636,6 @@ void __cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr, bool block)
cec_phys_addr_exp(phys_addr));
if (becomes_invalid || !is_invalid) {
adap->phys_addr = CEC_PHYS_ADDR_INVALID;
- cec_post_state_event(adap);
cec_adap_unconfigure(adap);
if (becomes_invalid) {
cec_adap_enable(adap);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0090/2214] usb: musb: host: clear stale RX interrupt on three-strikes error
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (88 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0089/2214] media: cec/core: drop cec_post_state_event call Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0091/2214] usb: misc: cypress_cy7c63: check result of IO Greg Kroah-Hartman
` (908 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Lucas Martins Alves, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lucas Martins Alves <lucas.alves@lumal21.com.br>
[ Upstream commit 3a3a48487344a653f46a4aadc9ba296386eb3541 ]
Unplugging a busy USB Ethernet adapter can leave a stale RX interrupt
pending while the host handles MUSB_RXCSR_H_ERROR. On AM335x/DSPS
platforms this can retrigger the same three-strikes error before the
disconnect path completes, flooding the log and potentially leaving the
host port stuck until reboot.
Clear the pending endpoint RX interrupt when aborting the transfer so
the error storm is broken, and rate limit the error message to avoid
spamming the log while the fault path completes.
Signed-off-by: Lucas Martins Alves <lucas.alves@lumal21.com.br>
Link: https://patch.msgid.link/20260714134941.18508-1-lucas.alves@lumal21.com.br
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/usb/musb/musb_host.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 08c73e9f75d0f..732fe78aa7985 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -1774,7 +1774,8 @@ void musb_host_rx(struct musb *musb, u8 epnum)
status = -EPIPE;
} else if (rx_csr & MUSB_RXCSR_H_ERROR) {
- dev_err(musb->controller, "ep%d RX three-strikes error", epnum);
+ dev_err_ratelimited(musb->controller,
+ "ep%d RX three-strikes error\n", epnum);
/*
* The three-strikes error could only happen when the USB
@@ -1788,6 +1789,17 @@ void musb_host_rx(struct musb *musb, u8 epnum)
rx_csr &= ~MUSB_RXCSR_H_ERROR;
musb_writew(epio, MUSB_RXCSR, rx_csr);
+ /*
+ * Unplugging a USB-Ethernet adapter while it is busy can make
+ * the controller keep re-asserting the three-strikes error for
+ * this endpoint before the disconnect is processed. That floods
+ * the log and can wedge the host port until reboot. Drop the
+ * stale pending RX interrupt on platforms that support it (e.g.
+ * AM335x/DSPS) to break the storm; the transfer is still
+ * aborted below via the fault path.
+ */
+ musb_platform_clear_ep_rxintr(musb, epnum);
+
} else if (rx_csr & MUSB_RXCSR_DATAERROR) {
if (USB_ENDPOINT_XFER_ISOC != qh->type) {
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0091/2214] usb: misc: cypress_cy7c63: check result of IO
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (89 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0090/2214] usb: musb: host: clear stale RX interrupt on three-strikes error Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0092/2214] USB: misc: uss720: Fix leak in get_1284_register Greg Kroah-Hartman
` (907 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Oliver Neukum, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Oliver Neukum <oneukum@suse.com>
[ Upstream commit 0673b919e0933541ae56bb3f0253853f696d3773 ]
If the device returns a bogus short read, treat it as EIO.
Actually check for IO errors.
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://patch.msgid.link/20260710095523.1646308-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/usb/misc/cypress_cy7c63.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/misc/cypress_cy7c63.c b/drivers/usb/misc/cypress_cy7c63.c
index 3be5551a98678..3def90646fdcd 100644
--- a/drivers/usb/misc/cypress_cy7c63.c
+++ b/drivers/usb/misc/cypress_cy7c63.c
@@ -89,8 +89,11 @@ static int vendor_command(struct cypress *dev, unsigned char request,
address, data, iobuf, CYPRESS_MAX_REQSIZE,
USB_CTRL_GET_TIMEOUT);
/* we must not process garbage */
- if (retval < 2)
+ if (retval < 2) {
+ if (retval >= 0)
+ retval = -EIO;
goto err_buf;
+ }
/* store returned data (more READs to be added) */
switch (request) {
@@ -175,8 +178,9 @@ static ssize_t read_port(struct device *dev, struct device_attribute *attr,
dev_dbg(&cyp->udev->dev, "READ_PORT%d called\n", port_num);
result = vendor_command(cyp, CYPRESS_READ_PORT, read_id, 0);
-
dev_dbg(&cyp->udev->dev, "Result of vendor_command: %d\n\n", result);
+ if (result < 0)
+ return result;
return sprintf(buf, "%d", cyp->port[port_num]);
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0092/2214] USB: misc: uss720: Fix leak in get_1284_register
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (90 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0091/2214] usb: misc: cypress_cy7c63: check result of IO Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0093/2214] uio: sercos3: add missing MODULE_DEVICE_TABLE() Greg Kroah-Hartman
` (906 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, syzbot+56962eb32ba0136cd330,
Michail Tatas, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Michail Tatas <michail.tatas@gmail.com>
[ 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.
link: https://syzkaller.appspot.com/bug?extid=56962eb32ba0136cd330
Reported-by: syzbot+56962eb32ba0136cd330@syzkaller.appspotmail.com
Signed-off-by: Michail Tatas <michail.tatas@gmail.com>
Link: https://patch.msgid.link/allaDTUua9n5DQ0a@michalis-linux
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/usb/misc/uss720.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/misc/uss720.c b/drivers/usb/misc/uss720.c
index fbe00b65f3449..81938702c3c04 100644
--- a/drivers/usb/misc/uss720.c
+++ b/drivers/usb/misc/uss720.c
@@ -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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0093/2214] uio: sercos3: add missing MODULE_DEVICE_TABLE()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (91 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0092/2214] USB: misc: uss720: Fix leak in get_1284_register Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0094/2214] comedi: ni_atmio16d: Add sanity check to interrupt handler Greg Kroah-Hartman
` (905 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ 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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260704152642.54769-1-pengpeng@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/uio/uio_sercos3.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/uio/uio_sercos3.c b/drivers/uio/uio_sercos3.c
index b93a5f8f4cba2..20d8b5f9d0e97 100644
--- a/drivers/uio/uio_sercos3.c
+++ b/drivers/uio/uio_sercos3.c
@@ -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",
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0094/2214] comedi: ni_atmio16d: Add sanity check to interrupt handler
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (92 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0093/2214] uio: sercos3: add missing MODULE_DEVICE_TABLE() Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0095/2214] comedi: ni_at_a2150: Fix sanity check in " Greg Kroah-Hartman
` (904 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jaeyoung Chung, Sangyun Kim,
Kyungwook Boo, Ian Abbott, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <abbotti@mev.co.uk>
[ 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.
Reported-by: Jaeyoung Chung <jjy600901@snu.ac.kr>
Link: https://lore.kernel.org/lkml/20260610115912.780131-1-jjy600901@snu.ac.kr/
Reported-by: Sangyun Kim <sangyun.kim@snu.ac.kr>
Reported-by: Kyungwook Boo <bookyungwook@gmail.com>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-6-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/comedi/drivers/ni_atmio16d.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/comedi/drivers/ni_atmio16d.c b/drivers/comedi/drivers/ni_atmio16d.c
index b347878b13592..3b2e714b47249 100644
--- a/drivers/comedi/drivers/ni_atmio16d.c
+++ b/drivers/comedi/drivers/ni_atmio16d.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0095/2214] comedi: ni_at_a2150: Fix sanity check in interrupt handler
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (93 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0094/2214] comedi: ni_atmio16d: Add sanity check to interrupt handler Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0096/2214] comedi: pcm818: " Greg Kroah-Hartman
` (903 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Ian Abbott, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <abbotti@mev.co.uk>
[ 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.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-5-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/comedi/drivers/ni_at_a2150.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/drivers/comedi/drivers/ni_at_a2150.c b/drivers/comedi/drivers/ni_at_a2150.c
index 10ad7b88713e9..c3dae81fa8234 100644
--- a/drivers/comedi/drivers/ni_at_a2150.c
+++ b/drivers/comedi/drivers/ni_at_a2150.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0096/2214] comedi: pcm818: Fix sanity check in interrupt handler
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (94 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0095/2214] comedi: ni_at_a2150: Fix sanity check in " Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0097/2214] comedi: quatech_daqp_cs: " Greg Kroah-Hartman
` (902 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Ian Abbott, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <abbotti@mev.co.uk>
[ 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.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-9-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/comedi/drivers/pcl818.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/comedi/drivers/pcl818.c b/drivers/comedi/drivers/pcl818.c
index d327af771c20a..a05b05652cda5 100644
--- a/drivers/comedi/drivers/pcl818.c
+++ b/drivers/comedi/drivers/pcl818.c
@@ -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
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0097/2214] comedi: quatech_daqp_cs: Fix sanity check in interrupt handler
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (95 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0096/2214] comedi: pcm818: " Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0098/2214] comedi: das6402: Add sanity check to " Greg Kroah-Hartman
` (901 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Ian Abbott, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <abbotti@mev.co.uk>
[ 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.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-12-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/comedi/drivers/quatech_daqp_cs.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/comedi/drivers/quatech_daqp_cs.c b/drivers/comedi/drivers/quatech_daqp_cs.c
index fe4408ebf6b3b..c6d0e614d63bc 100644
--- a/drivers/comedi/drivers/quatech_daqp_cs.c
+++ b/drivers/comedi/drivers/quatech_daqp_cs.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0098/2214] comedi: das6402: Add sanity check to interrupt handler
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (96 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0097/2214] comedi: quatech_daqp_cs: " Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0099/2214] comedi: dt2811: Fix sanity check in " Greg Kroah-Hartman
` (900 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jaeyoung Chung, Sangyun Kim,
Kyungwook Boo, Ian Abbott, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <abbotti@mev.co.uk>
[ 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.
Reported-by: Jaeyoung Chung <jjy600901@snu.ac.kr>
Link: https://lore.kernel.org/lkml/20260610115912.780131-1-jjy600901@snu.ac.kr/
Reported-by: Sangyun Kim <sangyun.kim@snu.ac.kr>
Reported-by: Kyungwook Boo <bookyungwook@gmail.com>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-3-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/comedi/drivers/das6402.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/comedi/drivers/das6402.c b/drivers/comedi/drivers/das6402.c
index 927d4b832ecc6..fee77c5b0e097 100644
--- a/drivers/comedi/drivers/das6402.c
+++ b/drivers/comedi/drivers/das6402.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0099/2214] comedi: dt2811: Fix sanity check in interrupt handler
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (97 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0098/2214] comedi: das6402: Add sanity check to " Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0100/2214] comedi: pcm711: " Greg Kroah-Hartman
` (899 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Ian Abbott, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <abbotti@mev.co.uk>
[ 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.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-4-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/comedi/drivers/dt2811.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/comedi/drivers/dt2811.c b/drivers/comedi/drivers/dt2811.c
index 0eb5e6ba69160..d94d3c64e264b 100644
--- a/drivers/comedi/drivers/dt2811.c
+++ b/drivers/comedi/drivers/dt2811.c
@@ -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) {
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0100/2214] comedi: pcm711: Fix sanity check in interrupt handler
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (98 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0099/2214] comedi: dt2811: Fix sanity check in " Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0101/2214] comedi: aio_iiro_16: Add sanity check to " Greg Kroah-Hartman
` (898 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jaeyoung Chung, Sangyun Kim,
Kyungwook Boo, Ian Abbott, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <abbotti@mev.co.uk>
[ 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.
Reported-by: Jaeyoung Chung <jjy600901@snu.ac.kr>
Link: https://lore.kernel.org/lkml/20260610115912.780131-1-jjy600901@snu.ac.kr/
Reported-by: Sangyun Kim <sangyun.kim@snu.ac.kr>
Reported-by: Kyungwook Boo <bookyungwook@gmail.com>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-7-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/comedi/drivers/pcl711.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/comedi/drivers/pcl711.c b/drivers/comedi/drivers/pcl711.c
index bd6f42fe9e3ca..a473f0442de06 100644
--- a/drivers/comedi/drivers/pcl711.c
+++ b/drivers/comedi/drivers/pcl711.c
@@ -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);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0101/2214] comedi: aio_iiro_16: Add sanity check to interrupt handler
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (99 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0100/2214] comedi: pcm711: " Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0102/2214] comedi: pcmmio: " Greg Kroah-Hartman
` (897 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jaeyoung Chung, Sangyun Kim,
Kyungwook Boo, Ian Abbott, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <abbotti@mev.co.uk>
[ 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.
Reported-by: Jaeyoung Chung <jjy600901@snu.ac.kr>
Link: https://lore.kernel.org/lkml/20260610115912.780131-1-jjy600901@snu.ac.kr/
Reported-by: Sangyun Kim <sangyun.kim@snu.ac.kr>
Reported-by: Kyungwook Boo <bookyungwook@gmail.com>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-2-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/comedi/drivers/aio_iiro_16.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/comedi/drivers/aio_iiro_16.c b/drivers/comedi/drivers/aio_iiro_16.c
index 60c9c683906bb..e979cf430a111 100644
--- a/drivers/comedi/drivers/aio_iiro_16.c
+++ b/drivers/comedi/drivers/aio_iiro_16.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0102/2214] comedi: pcmmio: Add sanity check to interrupt handler
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (100 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0101/2214] comedi: aio_iiro_16: Add sanity check to " Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0103/2214] comedi: pcm816: Fix sanity check in " Greg Kroah-Hartman
` (896 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jaeyoung Chung, Sangyun Kim,
Kyungwook Boo, Ian Abbott, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <abbotti@mev.co.uk>
[ 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.
Reported-by: Jaeyoung Chung <jjy600901@snu.ac.kr>
Link: https://lore.kernel.org/lkml/20260610115912.780131-1-jjy600901@snu.ac.kr/
Reported-by: Sangyun Kim <sangyun.kim@snu.ac.kr>
Reported-by: Kyungwook Boo <bookyungwook@gmail.com>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-10-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/comedi/drivers/pcmmio.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/comedi/drivers/pcmmio.c b/drivers/comedi/drivers/pcmmio.c
index 24a9568d33788..d1cd4bc7f36e8 100644
--- a/drivers/comedi/drivers/pcmmio.c
+++ b/drivers/comedi/drivers/pcmmio.c
@@ -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)
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0103/2214] comedi: pcm816: Fix sanity check in interrupt handler
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (101 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0102/2214] comedi: pcmmio: " Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0104/2214] comedi: pcmuio: Add sanity check to " Greg Kroah-Hartman
` (895 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Ian Abbott, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <abbotti@mev.co.uk>
[ 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.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-8-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/comedi/drivers/pcl816.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/comedi/drivers/pcl816.c b/drivers/comedi/drivers/pcl816.c
index c368a337a0ae0..85299d659ee8d 100644
--- a/drivers/comedi/drivers/pcl816.c
+++ b/drivers/comedi/drivers/pcl816.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0104/2214] comedi: pcmuio: Add sanity check to interrupt handler
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (102 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0103/2214] comedi: pcm816: Fix sanity check in " Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0105/2214] misc: bcm-vk: validate write size before allocation Greg Kroah-Hartman
` (894 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Ian Abbott, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <abbotti@mev.co.uk>
[ 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.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-11-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/comedi/drivers/pcmuio.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/comedi/drivers/pcmuio.c b/drivers/comedi/drivers/pcmuio.c
index b299d648a0eb6..ae12a70534151 100644
--- a/drivers/comedi/drivers/pcmuio.c
+++ b/drivers/comedi/drivers/pcmuio.c
@@ -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 */
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0105/2214] misc: bcm-vk: validate write size before allocation
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (103 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0104/2214] comedi: pcmuio: Add sanity check to " Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0106/2214] misc: genwqe: handle a first DMA address of zero Greg Kroah-Hartman
` (893 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Yousef Alhouseen, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yousef Alhouseen <alhouseenyousef@gmail.com>
[ 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[].
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Link: https://patch.msgid.link/20260629160605.29412-1-alhouseenyousef@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/misc/bcm-vk/bcm_vk_msg.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/drivers/misc/bcm-vk/bcm_vk_msg.c b/drivers/misc/bcm-vk/bcm_vk_msg.c
index fa14fd9ad1bf4..9176dcee77fba 100644
--- a/drivers/misc/bcm-vk/bcm_vk_msg.c
+++ b/drivers/misc/bcm-vk/bcm_vk_msg.c
@@ -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);
}
-
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0106/2214] misc: genwqe: handle a first DMA address of zero
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (104 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0105/2214] misc: bcm-vk: validate write size before allocation Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0107/2214] misc: hpilo: validate device queue entries before use Greg Kroah-Hartman
` (892 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Yousef Alhouseen, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yousef Alhouseen <alhouseenyousef@gmail.com>
[ 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.
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Link: https://patch.msgid.link/20260630104923.53827-1-alhouseenyousef@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/misc/genwqe/card_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/genwqe/card_utils.c b/drivers/misc/genwqe/card_utils.c
index 039b923d1d60a..95eba283fce57 100644
--- a/drivers/misc/genwqe/card_utils.c
+++ b/drivers/misc/genwqe/card_utils.c
@@ -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: "
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0107/2214] misc: hpilo: validate device queue entries before use
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (105 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0106/2214] misc: genwqe: handle a first DMA address of zero Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0108/2214] greybus: manifest: validate string descriptor header Greg Kroah-Hartman
` (891 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Yousef Alhouseen, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yousef Alhouseen <alhouseenyousef@gmail.com>
[ 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.
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Link: https://patch.msgid.link/20260624190919.3432-1-alhouseenyousef@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/misc/hpilo.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/misc/hpilo.c b/drivers/misc/hpilo.c
index 8d00df9243c43..64795066e196f 100644
--- a/drivers/misc/hpilo.c
+++ b/drivers/misc/hpilo.c
@@ -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));
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0108/2214] greybus: manifest: validate string descriptor header
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (106 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0107/2214] misc: hpilo: validate device queue entries before use Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0109/2214] misc: ibmvmc: reject oversized inbound messages Greg Kroah-Hartman
` (890 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ 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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260706091935.78020-1-pengpeng@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/greybus/manifest.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/greybus/manifest.c b/drivers/greybus/manifest.c
index dd7040697bde9..469da3f39afb4 100644
--- a/drivers/greybus/manifest.c
+++ b/drivers/greybus/manifest.c
@@ -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 */
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0109/2214] misc: ibmvmc: reject oversized inbound messages
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (107 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0108/2214] greybus: manifest: validate string descriptor header Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0110/2214] driver core: attribute_container: Unwind device_add() on attr failure Greg Kroah-Hartman
` (889 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Yousef Alhouseen, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yousef Alhouseen <alhouseenyousef@gmail.com>
[ 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.
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Link: https://patch.msgid.link/20260624175139.7981-1-alhouseenyousef@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/misc/ibmvmc.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/misc/ibmvmc.c b/drivers/misc/ibmvmc.c
index c0fe3295c3303..cd9fc00868872 100644
--- a/drivers/misc/ibmvmc.c
+++ b/drivers/misc/ibmvmc.c
@@ -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,
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0110/2214] driver core: attribute_container: Unwind device_add() on attr failure
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (108 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0109/2214] misc: ibmvmc: reject oversized inbound messages Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0111/2214] media: dvb-core: fix feed leak on failed DMX_ADD_PID Greg Kroah-Hartman
` (888 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Yuho Choi, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yuho Choi <dbgh9129@gmail.com>
[ 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.
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
Link: https://patch.msgid.link/20260608172717.88657-1-dbgh9129@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/base/attribute_container.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c
index 01ef796c2055a..aa93a0756e16a 100644
--- a/drivers/base/attribute_container.c
+++ b/drivers/base/attribute_container.c
@@ -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;
}
/**
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0111/2214] media: dvb-core: fix feed leak on failed DMX_ADD_PID
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (109 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0110/2214] driver core: attribute_container: Unwind device_add() on attr failure Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0112/2214] media: go7007: s2250: propagate control I/O failures Greg Kroah-Hartman
` (887 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, syzbot+e9a1f5e196de6663631b,
Rituparna Warwatkar, Mauro Carvalho Chehab, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Rituparna Warwatkar <rwarwatkar@gmail.com>
[ 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.
Reported-by: syzbot+e9a1f5e196de6663631b@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=e9a1f5e196de6663631b
Signed-off-by: Rituparna Warwatkar <rwarwatkar@gmail.com>
Link: https://patch.msgid.link/20260714141059.63582-1-rwarwatkar@gmail.com
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Message-ID: <20260714141059.63582-1-rwarwatkar@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/dvb-core/dmxdev.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c
index a5dd2470ecbe1..04583f43ad74f 100644
--- a/drivers/media/dvb-core/dmxdev.c
+++ b/drivers/media/dvb-core/dmxdev.c
@@ -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;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0112/2214] media: go7007: s2250: propagate control I/O failures
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (110 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0111/2214] media: dvb-core: fix feed leak on failed DMX_ADD_PID Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0113/2214] platform/x86: asus-nb-wmi: map ProArt key (0x8b) to KEY_PROG3 Greg Kroah-Hartman
` (886 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Yousef Alhouseen, Hans Verkuil,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yousef Alhouseen <alhouseenyousef@gmail.com>
[ 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.
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/media/usb/go7007/s2250-board.c | 54 ++++++++++++++++----------
1 file changed, 33 insertions(+), 21 deletions(-)
diff --git a/drivers/media/usb/go7007/s2250-board.c b/drivers/media/usb/go7007/s2250-board.c
index 1fa6f10ee157b..8aa6d7773e904 100644
--- a/drivers/media/usb/go7007/s2250-board.c
+++ b/drivers/media/usb/go7007/s2250-board.c
@@ -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,
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0113/2214] platform/x86: asus-nb-wmi: map ProArt key (0x8b) to KEY_PROG3
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (111 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0112/2214] media: go7007: s2250: propagate control I/O failures Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0114/2214] ACPI: FPDT: validate table and record lengths Greg Kroah-Hartman
` (885 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Nizar Al-Kabbani, Denis Benato,
Ilpo Järvinen, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Nizar Al-Kabbani <nizar.m.kabbani@gmail.com>
[ 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.
Signed-off-by: Nizar Al-Kabbani <nizar.m.kabbani@gmail.com>
Reviewed-by: Denis Benato <denis.benato@linux.dev>
Link: https://patch.msgid.link/20260719090843.66777-1-nizar.m.kabbani@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/platform/x86/asus-nb-wmi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c
index 224c1f1c271bc..e843546f33851 100644
--- a/drivers/platform/x86/asus-nb-wmi.c
+++ b/drivers/platform/x86/asus-nb-wmi.c
@@ -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 */
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0114/2214] ACPI: FPDT: validate table and record lengths
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (112 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0113/2214] platform/x86: asus-nb-wmi: map ProArt key (0x8b) to KEY_PROG3 Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0115/2214] ext4: reduce max cluster size to match documented 256MB limit Greg Kroah-Hartman
` (884 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Rafael J. Wysocki,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ Upstream commit 458b40fcdd04a9a0334830de5a536d8425454e4b ]
FPDT records are supplied by firmware and are walked through
length fields stored in the table itself.
Check the main-table entry length before reading an entry, check
the mapped subtable length before remapping it, and check each
record length before saving a typed record pointer for sysfs.
This keeps malformed firmware records from being interpreted as
complete resume, suspend, or boot records when the current item
is shorter than the structure consumed by the driver.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260706094141.82438-1-pengpeng@iscas.ac.cn
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/acpi/acpi_fpdt.c | 53 +++++++++++++++++++++++++++++++++++-----
1 file changed, 47 insertions(+), 6 deletions(-)
diff --git a/drivers/acpi/acpi_fpdt.c b/drivers/acpi/acpi_fpdt.c
index 271092f2700a1..058d1ad47699a 100644
--- a/drivers/acpi/acpi_fpdt.c
+++ b/drivers/acpi/acpi_fpdt.c
@@ -165,7 +165,7 @@ static int fpdt_process_subtable(u64 address, u32 subtable_type)
struct fpdt_subtable_header *subtable_header;
struct fpdt_record_header *record_header;
char *signature = (subtable_type == SUBTABLE_FBPT ? "FBPT" : "S3PT");
- u32 length, offset;
+ u32 length, offset, remaining;
int result;
if (!fpdt_address_valid(address)) {
@@ -179,10 +179,17 @@ static int fpdt_process_subtable(u64 address, u32 subtable_type)
if (strncmp((char *)&subtable_header->signature, signature, 4)) {
pr_info(FW_BUG "subtable signature and type mismatch!\n");
+ acpi_os_unmap_memory(subtable_header, sizeof(*subtable_header));
return -EINVAL;
}
length = subtable_header->length;
+ if (length < sizeof(*subtable_header)) {
+ pr_err(FW_BUG "Invalid FPDT subtable length %u.\n", length);
+ acpi_os_unmap_memory(subtable_header, sizeof(*subtable_header));
+ return -EINVAL;
+ }
+
acpi_os_unmap_memory(subtable_header, sizeof(*subtable_header));
subtable_header = acpi_os_map_memory(address, length);
@@ -191,17 +198,29 @@ static int fpdt_process_subtable(u64 address, u32 subtable_type)
offset = sizeof(*subtable_header);
while (offset < length) {
- record_header = (void *)subtable_header + offset;
- offset += record_header->length;
+ remaining = length - offset;
+ if (remaining < sizeof(*record_header)) {
+ pr_err(FW_BUG "Truncated FPDT record header.\n");
+ result = -EINVAL;
+ goto err;
+ }
- if (!record_header->length) {
- pr_err(FW_BUG "Zero-length record found in FPTD.\n");
+ record_header = (void *)subtable_header + offset;
+ if (record_header->length < sizeof(*record_header) ||
+ record_header->length > remaining) {
+ pr_err(FW_BUG "Invalid FPDT record length %u.\n",
+ record_header->length);
result = -EINVAL;
goto err;
}
+ offset += record_header->length;
switch (record_header->type) {
case RECORD_S3_RESUME:
+ if (record_header->length < sizeof(*record_resume)) {
+ result = -EINVAL;
+ goto err;
+ }
if (subtable_type != SUBTABLE_S3PT) {
pr_err(FW_BUG "Invalid record %d for subtable %s\n",
record_header->type, signature);
@@ -218,6 +237,10 @@ static int fpdt_process_subtable(u64 address, u32 subtable_type)
goto err;
break;
case RECORD_S3_SUSPEND:
+ if (record_header->length < sizeof(*record_suspend)) {
+ result = -EINVAL;
+ goto err;
+ }
if (subtable_type != SUBTABLE_S3PT) {
pr_err(FW_BUG "Invalid %d for subtable %s\n",
record_header->type, signature);
@@ -233,6 +256,10 @@ static int fpdt_process_subtable(u64 address, u32 subtable_type)
goto err;
break;
case RECORD_BOOT:
+ if (record_header->length < sizeof(*record_boot)) {
+ result = -EINVAL;
+ goto err;
+ }
if (subtable_type != SUBTABLE_FBPT) {
pr_err(FW_BUG "Invalid %d for subtable %s\n",
record_header->type, signature);
@@ -289,7 +316,21 @@ static int __init acpi_init_fpdt(void)
}
while (offset < header->length) {
+ if (header->length - offset < sizeof(*subtable)) {
+ pr_err(FW_BUG "Truncated FPDT subtable entry.\n");
+ result = -EINVAL;
+ goto err_subtable;
+ }
+
subtable = (void *)header + offset;
+ if (subtable->length < sizeof(*subtable) ||
+ subtable->length > header->length - offset) {
+ pr_err(FW_BUG "Invalid FPDT subtable entry length %u.\n",
+ subtable->length);
+ result = -EINVAL;
+ goto err_subtable;
+ }
+
switch (subtable->type) {
case SUBTABLE_FBPT:
case SUBTABLE_S3PT:
@@ -302,7 +343,7 @@ static int __init acpi_init_fpdt(void)
/* Other types are reserved in ACPI 6.4 spec. */
break;
}
- offset += sizeof(*subtable);
+ offset += subtable->length;
}
return 0;
err_subtable:
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0115/2214] ext4: reduce max cluster size to match documented 256MB limit
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (113 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0114/2214] ACPI: FPDT: validate table and record lengths Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0116/2214] PCI: vmd: Handle BUS_RESTRICT_CFG value 3 for Arrow Lake-HX Greg Kroah-Hartman
` (883 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Sashiko, Baokun Li, Andreas Dilger,
Theodore Tso, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Baokun Li <libaokun@linux.alibaba.com>
[ Upstream commit afa3caf2fbc417f755f36e271c4b3c2d45ccda9d ]
The mke2fs man page documents:
Valid cluster-size values are from 2048 to 256M bytes per cluster.
but EXT4_MAX_CLUSTER_LOG_SIZE was set to 30 (1GB), allowing crafted
filesystem images to specify cluster sizes up to 1GB.
On 32-bit systems with bigalloc enabled, the consistency check in
ext4_handle_clustersize():
s_blocks_per_group == s_clusters_per_group * (clustersize / blocksize)
can overflow when the cluster ratio is large enough. Since
s_blocks_per_group is not range-checked in the bigalloc path, the
wrapped product can pass the consistency check, leading to inconsistent
group geometry and potential out-of-bounds block allocation.
Reduce EXT4_MAX_CLUSTER_LOG_SIZE to 28 to match the documented 256MB
limit. With this cap, the maximum product is:
(blocksize * 8) * (256M / blocksize) = 2^31
which fits safely in a 32-bit unsigned long for all block sizes.
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/patchset/20260608061112.392391-1-libaokun%40linux.alibaba.com
Signed-off-by: Baokun Li <libaokun@linux.alibaba.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://patch.msgid.link/20260608111150.827117-3-libaokun@linux.alibaba.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/ext4/ext4.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index d99eabf846b8e..f8de0cc489529 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -279,7 +279,7 @@ struct ext4_io_submit {
#define EXT4_MAX_BLOCK_SIZE 65536
#define EXT4_MIN_BLOCK_LOG_SIZE 10
#define EXT4_MAX_BLOCK_LOG_SIZE 16
-#define EXT4_MAX_CLUSTER_LOG_SIZE 30
+#define EXT4_MAX_CLUSTER_LOG_SIZE 28
#ifdef __KERNEL__
# define EXT4_BLOCK_SIZE(s) ((s)->s_blocksize)
#else
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0116/2214] PCI: vmd: Handle BUS_RESTRICT_CFG value 3 for Arrow Lake-HX
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (114 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0115/2214] ext4: reduce max cluster size to match documented 256MB limit Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0117/2214] ext4: set EXT4_STATE_NO_EXPAND in ext4_evict_inode Greg Kroah-Hartman
` (882 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Lin Mohan, Ali Alaei,
Manivannan Sadhasivam, Bjorn Helgaas, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ali Alaei <ali.alaei.tabatabaei@gmail.com>
[ Upstream commit 72b32eccbcd591b9606edacf3bd7c455176d7660 ]
On Intel Arrow Lake-HX systems (e.g. Core Ultra 9 275HX on Acer Predator
PH16-73), the VMD controller reports BUS_RESTRICT_CFG = 3 in the VMCONFIG
register. The existing switch statement only handled values 0, 1, and 2,
causing vmd_get_bus_number_start() to return -ENODEV and aborting the
entire VMD probe. This leaves NVMe drives behind the VMD controller
invisible to the kernel.
Hardware registers (VMCAP/VMCONFIG at offsets 0x40/0x44):
VMD 0000:00:0e.0 (8086:ad0b): VMCAP=0x000f, VMCONFIG=0x03b8
BUS_RESTRICT_CFG(0x03b8) = (0x03b8 >> 8) & 0x3 = 3
Add cfg=3 as a fallthrough to cfg=2, setting busn_start=224, which is
the correct bus number base for this hardware.
Also add a PCI_POSSIBLE_ERROR() guard after reading VMCONFIG: a failed
config space read returns 0xFFFF, and BUS_RESTRICT_CFG(0xFFFF) = 3,
so without this guard a removed or errored device would falsely match
the new case 3 instead of being caught as an error.
Reported-by: Lin Mohan <linmhwork@outlook.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221137 # Arrow-Lake-S
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221136 # Arrow-Lake-S
Signed-off-by: Ali Alaei <ali.alaei.tabatabaei@gmail.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260628143450.92492-1-ali.alaei.tabatabaei@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/pci/controller/vmd.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c
index d0d18e9c69685..c41c5ade5d8a9 100644
--- a/drivers/pci/controller/vmd.c
+++ b/drivers/pci/controller/vmd.c
@@ -590,6 +590,8 @@ static int vmd_get_bus_number_start(struct vmd_dev *vmd)
pci_read_config_word(dev, PCI_REG_VMCAP, ®);
if (BUS_RESTRICT_CAP(reg)) {
pci_read_config_word(dev, PCI_REG_VMCONFIG, ®);
+ if (PCI_POSSIBLE_ERROR(reg))
+ return -ENODEV;
switch (BUS_RESTRICT_CFG(reg)) {
case 0:
@@ -598,6 +600,7 @@ static int vmd_get_bus_number_start(struct vmd_dev *vmd)
case 1:
vmd->busn_start = 128;
break;
+ case 3:
case 2:
vmd->busn_start = 224;
break;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0117/2214] ext4: set EXT4_STATE_NO_EXPAND in ext4_evict_inode
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (115 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0116/2214] PCI: vmd: Handle BUS_RESTRICT_CFG value 3 for Arrow Lake-HX Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0118/2214] wifi: mac80211: ibss: read deauth reason_code after frame length check Greg Kroah-Hartman
` (881 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Yun Zhou, Jan Kara, Theodore Tso,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yun Zhou <yun.zhou@windriver.com>
[ Upstream commit 2c0e4fb511f97467dafc91b6afb3414100289081 ]
An inode being evicted will never need its extra isize expanded. Set
EXT4_STATE_NO_EXPAND before ext4_mark_inode_dirty() in ext4_evict_inode()
to make this explicit and prevent any unnecessary work in
ext4_try_to_expand_extra_isize().
This also provides defense-in-depth for the s_writepages_rwsem deadlock
during mount-time orphan cleanup, ensuring the expand path is blocked
for inodes under eviction regardless of how they are reached.
Signed-off-by: Yun Zhou <yun.zhou@windriver.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260623061903.2148767-2-yun.zhou@windriver.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/ext4/inode.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 7aa37fee5d889..5d2409cd4030d 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -281,6 +281,7 @@ void ext4_evict_inode(struct inode *inode)
if (ext4_inode_is_fast_symlink(inode))
memset(EXT4_I(inode)->i_data, 0, sizeof(EXT4_I(inode)->i_data));
inode->i_size = 0;
+ ext4_set_inode_state(inode, EXT4_STATE_NO_EXPAND);
err = ext4_mark_inode_dirty(handle, inode);
if (err) {
ext4_warning(inode->i_sb,
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0118/2214] wifi: mac80211: ibss: read deauth reason_code after frame length check
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (116 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0117/2214] ext4: set EXT4_STATE_NO_EXPAND in ext4_evict_inode Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0119/2214] riscv, bpf: Add support for BPF_SDIV and BPF_SMOD in RV32 JIT Greg Kroah-Hartman
` (880 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Shahar Tzarfati, Miri Korenblit,
Johannes Berg, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Shahar Tzarfati <shahar.tzarfati@intel.com>
[ Upstream commit aa4c0a649903567762edf2bbc7fff608953b3ca4 ]
The function was reading reason_code from the frame before validating
that the frame is at least IEEE80211_DEAUTH_FRAME_LEN bytes long.
Move the reason_code read to after the length check so the field is
guaranteed to be present before it is accessed.
Signed-off-by: Shahar Tzarfati <shahar.tzarfati@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260715212706.db26604650bd.I2caa73c396b8c9d357224b9334d5df3cafac498e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/mac80211/ibss.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index ce927c16a9154..13fa4d64a84d9 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -935,11 +935,13 @@ static void ieee80211_rx_mgmt_deauth_ibss(struct ieee80211_sub_if_data *sdata,
struct ieee80211_mgmt *mgmt,
size_t len)
{
- u16 reason = le16_to_cpu(mgmt->u.deauth.reason_code);
+ u16 reason;
if (len < IEEE80211_DEAUTH_FRAME_LEN)
return;
+ reason = le16_to_cpu(mgmt->u.deauth.reason_code);
+
ibss_dbg(sdata, "RX DeAuth SA=%pM DA=%pM\n", mgmt->sa, mgmt->da);
ibss_dbg(sdata, "\tBSSID=%pM (reason: %d)\n", mgmt->bssid, reason);
sta_info_destroy_addr(sdata, mgmt->sa);
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0119/2214] riscv, bpf: Add support for BPF_SDIV and BPF_SMOD in RV32 JIT
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (117 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0118/2214] wifi: mac80211: ibss: read deauth reason_code after frame length check Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0120/2214] power: supply: cros_pchg: unregister EC notifier Greg Kroah-Hartman
` (879 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Kuan-Wei Chiu, Pu Lehui,
Kumar Kartikeya Dwivedi, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuan-Wei Chiu <visitorckw@gmail.com>
[ Upstream commit 2e0fa2389c50fd3a69bb738efa74e127b7516938 ]
The current rv32 bpf jit compiler incorrectly treats BPF_SDIV and
BPF_SMOD as unsigned operations. The BPF instruction set allows
signed division and modulo by reusing the BPF_DIV and BPF_MOD opcodes
with the instruction offset set to 1.
Update the emit_alu_r32() function to accept an 'is_sdiv' variable and
emit the correct div and rem instructions when the offset is 1.
Before this patch:
[ 44.161771] test_bpf: #165 ALU_SDIV_X: -6 / 2 = -3 jited:1 ret 2147483645 != -3 (0x7ffffffd != 0xfffffffd)FAIL (1 times)
[ 44.167385] test_bpf: #166 ALU_SDIV_K: -6 / 2 = -3 jited:1 ret 2147483645 != -3 (0x7ffffffd != 0xfffffffd)FAIL (1 times)
[ 44.171053] test_bpf: #169 ALU_SMOD_X: -7 % 2 = -1 jited:1 ret 1 != -1 (0x1 != 0xffffffff)FAIL (1 times)
[ 44.172081] test_bpf: #170 ALU_SMOD_K: -7 % 2 = -1 jited:1 ret 1 != -1 (0x1 != 0xffffffff)FAIL (1 times)
After this patch:
[ 16.002192] test_bpf: #165 ALU_SDIV_X: -6 / 2 = -3 jited:1 95 PASS
[ 16.002983] test_bpf: #166 ALU_SDIV_K: -6 / 2 = -3 jited:1 1059 PASS
[ 16.017167] test_bpf: #169 ALU_SMOD_X: -7 % 2 = -1 jited:1 136 PASS
[ 16.023002] test_bpf: #170 ALU_SMOD_K: -7 % 2 = -1 jited:1 109 PASS
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Reviewed-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/bpf/20260714002451.4091139-2-visitorckw@gmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
arch/riscv/net/bpf_jit_comp32.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/arch/riscv/net/bpf_jit_comp32.c b/arch/riscv/net/bpf_jit_comp32.c
index e6497424cbf60..bd4961cf349f9 100644
--- a/arch/riscv/net/bpf_jit_comp32.c
+++ b/arch/riscv/net/bpf_jit_comp32.c
@@ -509,12 +509,15 @@ static void emit_alu_r64(const s8 *dst, const s8 *src,
}
static void emit_alu_r32(const s8 *dst, const s8 *src,
- struct rv_jit_context *ctx, const u8 op)
+ struct rv_jit_context *ctx,
+ const struct bpf_insn *insn)
{
const s8 *tmp1 = bpf2rv32[TMP_REG_1];
const s8 *tmp2 = bpf2rv32[TMP_REG_2];
const s8 *rd = bpf_get_reg32(dst, tmp1, ctx);
const s8 *rs = bpf_get_reg32(src, tmp2, ctx);
+ u8 op = BPF_OP(insn->code);
+ bool is_signed = insn->off == 1;
switch (op) {
case BPF_MOV:
@@ -539,10 +542,12 @@ static void emit_alu_r32(const s8 *dst, const s8 *src,
emit(rv_mul(lo(rd), lo(rd), lo(rs)), ctx);
break;
case BPF_DIV:
- emit(rv_divu(lo(rd), lo(rd), lo(rs)), ctx);
+ emit(is_signed ? rv_div(lo(rd), lo(rd), lo(rs)) :
+ rv_divu(lo(rd), lo(rd), lo(rs)), ctx);
break;
case BPF_MOD:
- emit(rv_remu(lo(rd), lo(rd), lo(rs)), ctx);
+ emit(is_signed ? rv_rem(lo(rd), lo(rd), lo(rs)) :
+ rv_remu(lo(rd), lo(rd), lo(rs)), ctx);
break;
case BPF_LSH:
emit(rv_sll(lo(rd), lo(rd), lo(rs)), ctx);
@@ -1044,7 +1049,7 @@ int bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx,
emit_imm32(tmp2, imm, ctx);
src = tmp2;
}
- emit_alu_r32(dst, src, ctx, BPF_OP(code));
+ emit_alu_r32(dst, src, ctx, insn);
break;
case BPF_ALU | BPF_MOV | BPF_K:
@@ -1068,7 +1073,7 @@ int bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx,
* src is ignored---choose tmp2 as a dummy register since it
* is not on the stack.
*/
- emit_alu_r32(dst, tmp2, ctx, BPF_OP(code));
+ emit_alu_r32(dst, tmp2, ctx, insn);
break;
case BPF_ALU | BPF_END | BPF_FROM_LE:
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0120/2214] power: supply: cros_pchg: unregister EC notifier
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (118 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0119/2214] riscv, bpf: Add support for BPF_SDIV and BPF_SMOD in RV32 JIT Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0121/2214] power: reset: piix4-poweroff: add missing MODULE_DEVICE_TABLE() Greg Kroah-Hartman
` (878 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Tzung-Bi Shih,
Sebastian Reichel, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ Upstream commit 631adfa03595c63b2a621cdc62db60bb1ce5f91c ]
cros_pchg_probe() registers an EC event notifier whose callback uses the
devm-allocated charger_data via container_of(). The driver has no
remove callback and does not unregister the notifier, so the notifier
chain can retain a pointer to freed driver state after unbind or probe
cleanup.
Register a devm cleanup action immediately after the notifier is
installed so the notifier is unregistered before the driver state is
released. Also fail probe if the notifier cannot be registered, instead
of leaving a charger device that cannot receive EC events.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://patch.msgid.link/20260615063105.39152-1-pengpeng@iscas.ac.cn
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/power/supply/cros_peripheral_charger.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers/power/supply/cros_peripheral_charger.c b/drivers/power/supply/cros_peripheral_charger.c
index 305f10dfc06d1..b3f6a956ca398 100644
--- a/drivers/power/supply/cros_peripheral_charger.c
+++ b/drivers/power/supply/cros_peripheral_charger.c
@@ -282,6 +282,14 @@ static int cros_ec_notify(struct notifier_block *nb,
return cros_pchg_event(charger, host_event);
}
+static void cros_pchg_unregister_notifier(void *data)
+{
+ struct charger_data *charger = data;
+
+ blocking_notifier_chain_unregister(&charger->ec_device->event_notifier,
+ &charger->notifier);
+}
+
static int cros_pchg_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -367,9 +375,10 @@ static int cros_pchg_probe(struct platform_device *pdev)
ret = blocking_notifier_chain_register(&ec_dev->ec_dev->event_notifier,
nb);
if (ret < 0)
- dev_err(dev, "Failed to register notifier (err:%d)\n", ret);
+ return dev_err_probe(dev, ret, "Failed to register notifier\n");
- return 0;
+ return devm_add_action_or_reset(dev, cros_pchg_unregister_notifier,
+ charger);
}
static struct platform_driver cros_pchg_driver = {
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0121/2214] power: reset: piix4-poweroff: add missing MODULE_DEVICE_TABLE()
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (119 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0120/2214] power: supply: cros_pchg: unregister EC notifier Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0122/2214] riscv, bpf: Add support for BPF_MOVSX in RV32 JIT Greg Kroah-Hartman
` (877 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Sebastian Reichel,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <pengpeng@iscas.ac.cn>
[ Upstream commit ffefc5d9a052f67bc87b57d1107fd7cc1fa1a3d4 ]
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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260704152336.51384-1-pengpeng@iscas.ac.cn
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/power/reset/piix4-poweroff.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/power/reset/piix4-poweroff.c b/drivers/power/reset/piix4-poweroff.c
index 7f308292d7e38..19ab3822338ed 100644
--- a/drivers/power/reset/piix4-poweroff.c
+++ b/drivers/power/reset/piix4-poweroff.c
@@ -96,6 +96,7 @@ static const struct pci_device_id piix4_poweroff_ids[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_3) },
{ 0 },
};
+MODULE_DEVICE_TABLE(pci, piix4_poweroff_ids);
static struct pci_driver piix4_poweroff_driver = {
.name = "piix4-poweroff",
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0122/2214] riscv, bpf: Add support for BPF_MOVSX in RV32 JIT
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (120 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0121/2214] power: reset: piix4-poweroff: add missing MODULE_DEVICE_TABLE() Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:29 ` [PATCH 5.15 0123/2214] wifi: cfg80211: include cf1 offset when sending chandef Greg Kroah-Hartman
` (876 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Kuan-Wei Chiu, Pu Lehui,
Kumar Kartikeya Dwivedi, Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuan-Wei Chiu <visitorckw@gmail.com>
[ Upstream commit c6a08afdfe3a81b1a54e921921e9481dd6c78f8a ]
The current rv32 bpf jit compiler incorrectly treats BPF_MOVSX as a
standard zero-extended move operation. The bpf instruction set allows
sign-extension moves by reusing the BPF_MOV opcode with the instruction
offset set to 8, 16, or 32.
Update the bpf_jit_emit_insn() function to check the offset field for
both ALU and ALU64 MOV operations. If the offset is non-zero, emit the
correct slli and srai instructions to perform the sign extension.
Before this patch:
[ 19.549705] test_bpf: #82 ALU_MOVSX | BPF_B jited:1 ret 2 != 1 (0x2 != 0x1)FAIL (1 times)
[ 19.551354] test_bpf: #83 ALU_MOVSX | BPF_H jited:1 ret 2 != 1 (0x2 != 0x1)FAIL (1 times)
[ 19.552576] test_bpf: #84 ALU64_MOVSX | BPF_B jited:1 ret 2 != 1 (0x2 != 0x1)FAIL (1 times)
[ 19.553542] test_bpf: #85 ALU64_MOVSX | BPF_H jited:1 ret 2 != 1 (0x2 != 0x1)FAIL (1 times)
[ 19.554807] test_bpf: #86 ALU64_MOVSX | BPF_W jited:1 ret 2 != 1 (0x2 != 0x1)FAIL (1 times)
After this patch:
[ 17.931172] test_bpf: #82 ALU_MOVSX | BPF_B jited:1 125 PASS
[ 17.932198] test_bpf: #83 ALU_MOVSX | BPF_H jited:1 124 PASS
[ 17.933039] test_bpf: #84 ALU64_MOVSX | BPF_B jited:1 124 PASS
[ 17.933918] test_bpf: #85 ALU64_MOVSX | BPF_H jited:1 124 PASS
[ 17.934751] test_bpf: #86 ALU64_MOVSX | BPF_W jited:1 122 PASS
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Reviewed-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/bpf/20260714002451.4091139-3-visitorckw@gmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
arch/riscv/net/bpf_jit_comp32.c | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/riscv/net/bpf_jit_comp32.c b/arch/riscv/net/bpf_jit_comp32.c
index bd4961cf349f9..e3cb9c4465bfd 100644
--- a/arch/riscv/net/bpf_jit_comp32.c
+++ b/arch/riscv/net/bpf_jit_comp32.c
@@ -975,6 +975,24 @@ int bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx,
switch (code) {
case BPF_ALU64 | BPF_MOV | BPF_X:
+ if (insn->off != 0) {
+ const s8 *rd = bpf_get_reg64(dst, tmp1, ctx);
+ const s8 *rs = bpf_get_reg64(src, tmp2, ctx);
+
+ if (insn->off == 8) {
+ emit(rv_slli(lo(rd), lo(rs), 24), ctx);
+ emit(rv_srai(lo(rd), lo(rd), 24), ctx);
+ } else if (insn->off == 16) {
+ emit(rv_slli(lo(rd), lo(rs), 16), ctx);
+ emit(rv_srai(lo(rd), lo(rd), 16), ctx);
+ } else {
+ emit(rv_addi(lo(rd), lo(rs), 0), ctx);
+ }
+ emit(rv_srai(hi(rd), lo(rd), 31), ctx);
+ bpf_put_reg64(dst, rd, ctx);
+ break;
+ }
+ fallthrough;
case BPF_ALU64 | BPF_ADD | BPF_X:
case BPF_ALU64 | BPF_ADD | BPF_K:
@@ -1025,6 +1043,20 @@ int bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx,
emit_zext64(dst, ctx);
break;
}
+ if (insn->off != 0) {
+ const s8 *rd = bpf_get_reg32(dst, tmp1, ctx);
+ const s8 *rs = bpf_get_reg32(src, tmp2, ctx);
+
+ if (insn->off == 8) {
+ emit(rv_slli(lo(rd), lo(rs), 24), ctx);
+ emit(rv_srai(lo(rd), lo(rd), 24), ctx);
+ } else if (insn->off == 16) {
+ emit(rv_slli(lo(rd), lo(rs), 16), ctx);
+ emit(rv_srai(lo(rd), lo(rd), 16), ctx);
+ }
+ bpf_put_reg32(dst, rd, ctx);
+ break;
+ }
fallthrough;
case BPF_ALU | BPF_ADD | BPF_X:
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0123/2214] wifi: cfg80211: include cf1 offset when sending chandef
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (121 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0122/2214] riscv, bpf: Add support for BPF_MOVSX in RV32 JIT Greg Kroah-Hartman
@ 2026-11-18 14:29 ` Greg Kroah-Hartman
2026-11-18 14:30 ` [PATCH 5.15 0124/2214] drm/panel: simple: Add Kyocera tcg070wvlq panel Greg Kroah-Hartman
` (875 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:29 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Lachlan Hodges, Johannes Berg,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lachlan Hodges <lachlan.hodges@morsemicro.com>
[ Upstream commit 5a69b8dffd2a1b06e4cc4c9003c639eb78bac4cd ]
The cf1 offset is not included when sending the chandef leading
to incorrect channel resolution in usermode. Include it.
Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Link: https://patch.msgid.link/20260721053958.227853-1-lachlan.hodges@morsemicro.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/wireless/nl80211.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 312163181d6b6..0a68d4f838445 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -3571,6 +3571,10 @@ static int nl80211_send_chandef(struct sk_buff *msg,
return -ENOBUFS;
if (nla_put_u32(msg, NL80211_ATTR_CENTER_FREQ1, chandef->center_freq1))
return -ENOBUFS;
+ if (chandef->freq1_offset &&
+ nla_put_u32(msg, NL80211_ATTR_CENTER_FREQ1_OFFSET,
+ chandef->freq1_offset))
+ return -ENOBUFS;
if (chandef->center_freq2 &&
nla_put_u32(msg, NL80211_ATTR_CENTER_FREQ2, chandef->center_freq2))
return -ENOBUFS;
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0124/2214] drm/panel: simple: Add Kyocera tcg070wvlq panel
2026-11-18 14:27 [PATCH 5.15 0000/2214] 5.15.226-rc1 review Greg Kroah-Hartman
` (122 preceding siblings ...)
2026-11-18 14:29 ` [PATCH 5.15 0123/2214] wifi: cfg80211: include cf1 offset when sending chandef Greg Kroah-Hartman
@ 2026-11-18 14:30 ` Greg Kroah-Hartman
2026-11-18 14:30 ` [PATCH 5.15 0125/2214] iommu/qcom: Check pm_runtime_resume_and_get() return in probe Greg Kroah-Hartman
` (874 subsequent siblings)
998 siblings, 0 replies; 2219+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-18 14:30 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Heiko Schocher, Neil Armstrong,
Sasha Levin
5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Heiko Schocher <hs@nabladev.com>
[ Upstream commit 900517da69afca6f72dacf14278aee3b65275507 ]
Commit 922fb2db0287 ("dt-bindings: display: simple: Add Kyocera
tcg070wvlq panel") added the compatible string for the Kyocera
tcg070wvlq panel to the devicetree bindings documentation
(panel-simple.yaml), but the corresponding entry was not added
to the panel-simple driver.
Add the missing compatible entry to the driver.
Signed-off-by: Heiko Schocher <hs@nabladev.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260721041935.757240-1-hs@nabladev.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/panel/panel-simple.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 754549f11a2ac..bd86d15bfeaea 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -4775,6 +4775,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "koe,tx31d200vm0baa",
.data = &koe_tx31d200vm0baa,
+ }, {
+ .compatible = "kyo,tcg070wvlq",
+ .data = &lg_lb070wv8,
}, {
.compatible = "kyo,tcg121xglp",
.data = &kyo_tcg121xglp,
--
2.53.0
^ permalink raw reply related [flat|nested] 2219+ messages in thread
* [PATCH 5.15 0125/2214] iommu/qcom: Check pm_runtime_resume_and_get() return in probe