5.10.275-rc1 review
Subsystems (7)
Greg Kroah-Hartman
maintainerPATCH 1/1848 xen-netback: Fix XenBus connection failure cleanup
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tu Dinh <[email protected]>
commit dc6d814562b65813556933dbda1015cef61dabf8 upstream.
xenvif_get_stats and xenvif_get_ethtool_stats capture vif->num_queues under rcu_read_lock. We need to unpublish vif->num_queues before synchronize_net to ensure that readers that come afterwards will not read a non-zero vif->num_queues and attempt to access invalid queues.
This is the same cleanup algorithm as used in backend_disconnect and added in commit b17075d5c198 ("xen-netback: fix race condition on XenBus disconnect").
This is XSA-531
--- drivers/net/xen-netback/xenbus.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/net/xen-netback/xenbus.c +5 -3
@@ -731,6 +731,7 @@ static void connect(struct backend_infounsigned 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_inforeturn ; 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 ; }
Greg Kroah-Hartman
maintainerPATCH 2/1848 xen-netback: Zero out sring pointers on unmap
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tu Dinh <[email protected]>
commit f96f16592a32430a0582309d73a873b6d3ee2bdb upstream.
If xenvif_map_frontend_data_rings() fails when a ring is already mapped, it unmaps them via xenvif_unmap_frontend_data_rings() which keeps the ring pointers unchanged. xenvif_connect_data()'s cleanup path calls xenvif_disconnect_queue() which in turn calls xenvif_unmap_frontend_data_rings() again, which will attempt to unmap the pointers a second time.
Zero out the ring pointers after they are unmapped to avoid this issue.
This is XSA-532
--- drivers/net/xen-netback/netback.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/net/xen-netback/netback.c +7 -2
@@ -1534,12 +1534,17 @@ static inline bool tx_dealloc_work_todo(void xenvif_unmap_frontend_data_rings (struct xenvif_queue *queue) { -if (queue->tx.sring) +if (queue->tx.sring) {xenbus_unmap_ring_vfree (xenvif_to_xenbus_device (queue->vif), queue->tx.sring); -if (queue->rx.sring) + queue->tx.sring =NULL ; + } + +if (queue->rx.sring) {xenbus_unmap_ring_vfree (xenvif_to_xenbus_device (queue->vif), queue->rx.sring); + queue->rx.sring =NULL ; + } } int xenvif_map_frontend_data_rings(struct xenvif_queue *queue,
Greg Kroah-Hartman
maintainercover 5.10.275-rc1 review
This is the start of the stable review cycle for the 5.10.275 release. There are 1848 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:32 +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.10.275-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.10.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <[email protected]>
Linux 5.10.275-rc1
Waqar Hameed <[email protected]>
power: supply: ab8500: Fix use-after-free in power_supply_changed()
David Gow <[email protected]>
time/kunit: Use correct format specifier
Kuogee Hsieh <[email protected]>
drm/msm/dp: add fail safe mode outside of event_mutex context
Heikki Krogerus <[email protected]>
software node: Handle software node injection to an existing device properly
Masahiro Yamada <[email protected]>
kconfig: fix file name in warnings when loading KCONFIG_DEFCONFIG_LIST
Yuan Can <[email protected]>
power: supply: ab8500: Fix error handling in ab8500_charger_init()
Kuogee Hsieh <[email protected]>
drm/msm/dp: do not stop transmitting phy test pattern during DP phy compliance test
Kuogee Hsieh <[email protected]>
drm/msm/dp: always add fail-safe mode into connector mode list
Kuogee Hsieh <[email protected]>
drm/msm/dp: stop link training after link training 2 failed
Horia Geantă <[email protected]>
crypto: tcrypt - fix skcipher multi-buffer tests for 1420B blocks
Yixing Liu <[email protected]>
RDMA/hns: Fix some print issues
Andy Shevchenko <[email protected]>
mfd: Remove software node conditionally and locate at right place
Heikki Krogerus <[email protected]>
software node: Allow node addition to already existing device
Heikki Krogerus <[email protected]>
software node: Fix device_add_software_node()
Yoann Congal <[email protected]>
printk: Fix LOG_CPU_MAX_BUF_SHIFT when BASE_SMALL is enabled
Kemeng Shi <[email protected]>
irqchip/gic-v3-its: Fix its node leak in gic_acpi_parse_madt_its()
Wang Yan <[email protected]>
selftests/net: fix EVP_MD_CTX leak in tcp_mmap
Hannes Reinecke <[email protected]>
nvmet: do not return 'reserved' for empty TSAS values
Marc Zyngier <[email protected]>
irqchip/gic-v3-its: Restore quirk probing for ACPI-based systems
Masahiro Yamada <[email protected]>
kconfig: initialize sym->curr.tri to 'no' for all symbol types again
Arnd Bergmann <[email protected]>
dmaengine: ste_dma40: use proper format string for resource_size_t
Vinod Koul <[email protected]>
dmaengine: ste_dma40: use correct print specfier for resource_size_t
Eric Dumazet <[email protected]>
selftests/net: fix typo in tcp_mmap
Steven Price <[email protected]>
irqchip/gic-v3-its: Fix over allocation in itt_alloc_pool()
Dominique Martinet <[email protected]>
libbpf: fix cross-endian build with newer libbpf
Imre Kaloz <[email protected]>
rtc: ds1685: do not sleep in the power-off handler
Imre Kaloz <[email protected]>
rtc: ds1685: arm the wake-up alarm at power-off only if an alarm is set
Nickolai Zeldovich <[email protected]>
splice: retry tee() instead of returning 0 when it races
Zhiyu Zhang <[email protected]>
watch_queue: keep info_id separate from rcu_head
Jhonata Poma-Hansen <[email protected]>
netlink: check sk_rcvbuf before charging the dump skb
Rosen Penev <[email protected]>
net: bgmac: fix TX DMA unmapping and slot cleanup
Wentao Liang <[email protected]>
apparmor: Fix namespace reference leak in __aa_find_or_create_ns()
Maxime Bélair <[email protected]>
apparmor: report a label allocation failure as -ENOMEM
Jamie Nguyen <[email protected]>
selftests: net: txtimestamp: fix out-of-bounds read in raw UDP checksum
Josef Bacik <[email protected]>
drbd: take req_lock to skip the initial sync as peer
Josef Bacik <[email protected]>
block: partitions/mac: compute the sectors in 64 bits
Josef Bacik <[email protected]>
blk-mq: keep sharing tags fairly after a queue update
Markus Probst <[email protected]>
rtc: s35390a: Fix alarm not disabling
Markus Probst <[email protected]>
rtc: s35390a: Add missing newline to dev_err
Joas Antonio dos Santos <[email protected]>
net: dcb: initialize PFC value before calling getpfccfg
Josef Bacik <[email protected]>
blk-throttle: don't truncate the cgroup v1 iops limits
Chris Mason <[email protected]>
nvmet-rdma: fix double puts after a failed RDMA WRITE
Chris Mason <[email protected]>
nvmet-rdma: disable interrupts under rsp_wr_wait_lock
Josef Bacik <[email protected]>
nvme-loop: don't BUG() if a scan runs beside a reset
Ming Lei <[email protected]>
nvme-loop: use blk_mq_hctx_set_fq_lock_class to set loop's lock class
Ming Lei <[email protected]>
blk-mq: add new API of blk_mq_hctx_set_fq_lock_class
Josef Bacik <[email protected]>
nvmet-tcp: don't read a removed port at Connect time
Josef Bacik <[email protected]>
nvmet-tcp: stop listening when a port is removed
Rongzheng Wang <[email protected]>
nvmet: use the enabled transport when disabling a port
Hannes Reinecke <[email protected]>
nvmet: make TCP sectype settable via configfs
Hannes Reinecke <[email protected]>
nvme: add TCP TSAS definitions
Avi Weiss <[email protected]>
nvmet: prevent double-free after metadata SGL allocation failure
bui duc phuc <[email protected]>
ASoC: xilinx: formatter_pcm: Fix read-modify-write of AUD_CTRL in hw_params
Ömer Mete Kaya <[email protected]>
usbnet: fix EVENT_RX_PAUSED race in usbnet_skb_return()
Florian Fainelli <[email protected]>
net: dsa: mv88e6xxx: fix 6351 family statistics snapshot
Paul Moses <[email protected]>
perf mmap: Preserve the consumed cursor in forward mode
Paul Moses <[email protected]>
perf mmap: Use the head selected by read_init
Len Brown <[email protected]>
x86_energy_perf_policy: Cleanup: Check fseek() in VM path
Len Brown <[email protected]>
x86_energy_perf_policy: Fix optarg keyword matching
Allison Henderson <[email protected]>
net/rds: do not initialize transports after rds_init() failed
Hongfu Li <[email protected]>
rds:Simplify the allocation of slab caches
Xiu Jianfeng <[email protected]>
net: rds: add missing __init/__exit annotations to module init/exit funcs
Cheng Yongkang <[email protected]>
net: tun: hold napi_mutex when deleting NAPI in tun_detach_all()
Sally Marcher <[email protected]>
ALSA: usb-audio: Add correct datainterval in the quirks-table for Microbook II
Nicolai Buchwitz <[email protected]>
net: usb: cdc_mbim: don't enable BHs in tx_fixup under netpoll
Nicolai Buchwitz <[email protected]>
net: usb: cdc_ncm: don't enable BHs in tx_fixup under netpoll
Binbin Deng <[email protected]>
net: atlantic: Unregister before clearing RXNFC rules
Qingfang Deng <[email protected]>
pppoe: drop discovery frames with no MAC header
Tung Nguyen <[email protected]>
tipc: fix refcount panic in tipc_rcv() when receiving shared skb
Jerome Brunet <[email protected]>
clk: cdce925: Size the PLL child name buffer for any int
Dudu Lu <[email protected]>
net/sched: taprio: unwind the netdevice notifier if register_qdisc() fails
Dudu Lu <[email protected]>
net/sched: gred: keep the qdisc lock while updating the table
Hungyu Lin <[email protected]>
thermal: Fix CPU mask truncation in power limit trace event
Xiubo Li <[email protected]>
ceph: mark the superblock active after mounting
Max Kellermann <[email protected]>
ceph: remove unused field i_cap_migration_resv
Henry Martin <[email protected]>
netlink: fix out-of-bounds bitmap access clearing stale mc groups
Avi Weiss <[email protected]>
profiling: fix sampling step on 64-bit big-endian systems
Edward Adam Davis <[email protected]>
kernel/reboot: avoid potential deadlocks during suspension
Feng Yang <[email protected]>
bpf: Propagate btf_add_type() errors in btf_check_all_metas()
Dudu Lu <[email protected]>
net/sched: etf: initialise the sock_exterr_skb before filling it
Greg Thelen <[email protected]>
selftests/net: tcp_mmap: remove unused -k option and keepflag
Xiaoyan Li <[email protected]>
selftests/net: Add SHA256 computation over data sent in tcp_mmap
Allison Henderson <[email protected]>
net/rds: keep the connected peer's scope id apart from the bound one
Allison Henderson <[email protected]>
net/rds: include the scope id in the sendmsg connection cache check
Eric Dumazet <[email protected]>
net: fix frag_list leak in skb_segment_list() error path
Florian Fuchs <[email protected]>
ALSA: sh: aica: Fix spu_memset() stride
Gregory Price (Meta) <[email protected]>
cgroup/cpuset: check effective mems for a movable-only configuration
bui duc phuc <[email protected]>
ASoC: amd: raven: Fix memory leak in acp3x_dma_close()
Ivan Hu <[email protected]>
ACPICA: Initialize parser_state.aml_end in acpi_install_method()
Nickolai Zeldovich <[email protected]>
nsproxy: Fix cred leak in the error path of prepare_nsset()
Avi Weiss <[email protected]>
signal: skip blocked signals in dequeue_synchronous_signal()
Tianyi Chen <[email protected]>
eventpoll: propagate wakeup source creation failure in ep_modify()
Marek Szyprowski <[email protected]>
ASoC: wm8994: follow AIF clock source changes in MCLK gating
Binbin Deng <[email protected]>
tipc: fix use-after-free of broadcast reception link at node release
Rand Deeb <[email protected]>
ata: libata-core: Ignore forced transfer modes the host does not support
Travis Howard <[email protected]>
tg3: Add Datto SIRIS 5 1U Server to restart AER quirk table
Nikhil P. Rao <[email protected]>
ionic: fix port_info use-after-free on firmware recovery
Shannon Nelson <[email protected]>
ionic: remove some unnecessary oom messages
Marek Szyprowski <[email protected]>
ASoC: wm8994: fix MCLK index used for setting MCLK rate
Marek Szyprowski <[email protected]>
ASoC: wm8994: don't lose the AIF clock ratio when staying at 32kHz SYSCLK
Marek Szyprowski <[email protected]>
ASoC: wm8994: fix MCLK gating for AIF clocks sourced from MCLK2
Anil Kaushik <[email protected]>
gtp: hold RCU for the device lookup when adding a PDP context
Anil Kaushik <[email protected]>
gtp: set a valid genl command in PDP context get and dump replies
Takashi Iwai <[email protected]>
platform/x86: ibm_rtl: Fix potential OOB read at signature search
Cen Zhang <[email protected]>
ocfs2: initialize status waiters before publishing them
Joseph Qi <[email protected]>
ocfs2: reserve xattr value tree metadata only once
Mingming Cao <[email protected]>
ibmveth: wait for the RX poll to return before freeing the RX queue
Mingming Cao <[email protected]>
ibmveth: fix netpoll races with RX replenish
Jiale Yao <[email protected]>
team: reject CAN, IEEE 802.15.4 and 6LoWPAN devices in team_port_add
Eric Dumazet <[email protected]>
ipv6: account route exceptions to the netns of their dst
Sagi Maimon <[email protected]>
net: axienet: release every RX buffer in axienet_dma_bd_release()
Myeonghun Pak <[email protected]>
net: hix5hd2: serialize timeout recovery with interface teardown
Rishikesh Jethwani <[email protected]>
tls: device: protect async RX resync state during device-down
Fernando Fernandez Mancera <[email protected]>
net: openvswitch: drop IP fragments on SCTP set action
Fernando Fernandez Mancera <[email protected]>
net: openvswitch: skip IPv4 later fragments on TCP/UDP set actions
HyeongJun An <[email protected]>
ASoC: cs42l56: Remove the ADC Mute Switch control
Liang Hao <[email protected]>
timers: Clear pending_map on CPU hotplug
tangmeng <[email protected]>
timers: Move timer sysctl into the timer code
Karl Mehltretter <[email protected]>
rtc: class: Make the time32 hctosys limit configurable
Li RongQing <[email protected]>
RDMA/mlx5: Fix CQ resize destination index mask
Jamal Hadi Salim <[email protected]>
net/sched: act_api: reject duplicate actions in a batch
Gregory Price (Meta) <[email protected]>
cgroup/cpuset: use mems_allowed_seq when checking a policy nodemask
Cen Zhang <[email protected]>
ALSA: pcm: Remove channel-map controls before freeing substreams
Thomas Weißschuh <[email protected]>
nios2: ksyms: Declare __mulsi3 export
Sung Byeongchan <[email protected]>
netfilter: xt_dccp: handle reserved options as single-byte
Jérémy Jean <[email protected]>
netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset
Alok Tiwari <[email protected]>
octeontx2-af: Fix CQ enable state tracking after AQ writes
Cen Zhang <[email protected]>
ALSA: oss: Keep emulation modules loaded until object teardown
Troy Mitchell <[email protected]>
dt-bindings: vendor-prefixes: Add Sensylink
Mikhail Zhilkin <[email protected]>
dt-bindings: Add Sercomm (Suzhou) Corporation vendor prefix
Serhat Kumral <[email protected]>
RDMA/usnic: Bound buffer size to sizeof(buf) in flowinfo_read()
Zhiwei Zhang <[email protected]>
RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()
Bob Pearson <[email protected]>
RDMA/rxe: Remove unused pkt->offset
HyeongJun An <[email protected]>
ASoC: codecs: sta350: Fix definition of limiter threshold controls
HyeongJun An <[email protected]>
ASoC: codecs: sta32x: Fix definition of limiter threshold controls
Serhat Kumral <[email protected]>
RDMA/srp: Avoid reading uninitialized has_port on srp_parse_in() failure
Leon Romanovsky <[email protected]>
RDMA/core: Reject LAG selection when source MAC lookup fails
Yunsheng Lin <[email protected]>
RDMA/core: Remove 'device' argument from rdma_build_skb()
Leon Romanovsky <[email protected]>
RDMA/core: Preserve the selected source GID on failed AH modification
Igor Velkov <[email protected]>
power: supply: gpio-charger: Report discharging without input power
Aleksandr Nogikh <[email protected]>
usb: gadget: dummy_hcd: prevent unbind via sysfs
Igor Skalkin <[email protected]>
usb: gadget: dummy_hcd: fix SuperSpeed ep0 maxpacket
Alexei Starovoitov <[email protected]>
bpf: Don't take a program with a target program for an iterator
Florian Westphal <[email protected]>
netfilter: nft_compat: restrict raw table targets/matches
Florian Westphal <[email protected]>
selftests: netfilter: fix return value in zone subtest
Florian Westphal <[email protected]>
selftests: netfilter: conntrack_vrf.sh: prefer socat, not iperf3
Florian Westphal <[email protected]>
selftests: netfilter: conntrack_vrf.sh: move to lib.sh infra
Florian Westphal <[email protected]>
netfilter: conntrack: fix unlikely UaF in gc worker
Josef Bacik <[email protected]>
bpf: Don't take an extension for an iterator program
Josef Bacik <[email protected]>
bpf: Bound the nesting that the BTF show code follows
Josef Bacik <[email protected]>
bpf: Update the SRH state if End.B6 fails late
Josef Bacik <[email protected]>
bpf: Pull the inner header for End.DT6 in End.BPF
Josef Bacik <[email protected]>
bpf: Validate the SRH which End.DT6 uncovers in End.BPF
Jiayuan Chen <[email protected]>
bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields
Brad Fitzpatrick <[email protected]>
gre: keep the UDP tunnel GSO type when completing GRO
Joas Antonio dos Santos <[email protected]>
calipso: update payload_len when removing the CALIPSO option
HyeongJun An <[email protected]>
ASoC: codecs: sta350: Fix definition of Ch2 and Ch3 Volume Bypass controls
HyeongJun An <[email protected]>
ASoC: codecs: sta32x: Fix definition of Ch2 and Ch3 Volume Bypass controls
HyeongJun An <[email protected]>
ASoC: codecs: da732x: Fix definition of ADC2 EQ Overall Volume control
Sasha Levin <[email protected]>
ARC: Strip libgcc debug information when generating BTF
Viresh Kumar <[email protected]>
arch: arc: Remove CONFIG_OPROFILE support
Piotr Gliźniewicz <[email protected]>
ALSA: 6fire: take stream_mutex in the Digital Thru control
Ömer Mete Kaya <[email protected]>
usbnet: fix smp_processor_id() use in preemptible context
Heiner Kallweit <[email protected]>
usbnet: switch to core handling of rx/tx byte/packet counters
Heiner Kallweit <[email protected]>
net: core: add dev_get_tstats64 as a ndo_get_stats64 implementation
Fabrice Derepas <[email protected]>
ima: reject a kexec buffer whose declared size exceeds the buffer
Tao Cui <[email protected]>
blk-iocost: account zone append completions in latency stats
Tao Cui <[email protected]>
blk-iocost: charge zone appends as writes
Yuan Chen <[email protected]>
bpftool: Fix inverted tracefs validation when scanning /proc/mounts
Matheus Alves de Almeida <[email protected]>
HID: wacom: fix wacom_intuos_irq NULL pen_input deref
Stefano Munari <[email protected]>
net: usb: lan78xx: reject invalid EEPROM write requests
Jérémy Jean <[email protected]>
macsec: prevent AES-GCM nonce reuse after packet number wrap
Donggeun Yoo <[email protected]>
tracing: Print a signed histogram key as signed
Amadeusz Sławiński <[email protected]>
ASoC: soc-component: Fix return type of snd_soc_pcm_component_pointer()
Amadeusz Sławiński <[email protected]>
ASoC: soc-ac97: Fix error handling in snd_soc_new_ac97_component()
Amadeusz Sławiński <[email protected]>
ASoC: ops: Fix return value in snd_soc_limit_volume()
Sasha Levin <[email protected]>
selftests: keep the build status from wrapping to success
Sasha Levin <[email protected]>
kselftest/arm64: signal: copy each test binary only once
Youngsung Ahn <[email protected]>
RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]
Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Don't free the tables of an enabled ITS
Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Don't free a vPE table shared with another ITS
Steven Price <[email protected]>
irqchip/gic-v3-its: Share ITS tables with a non-trusted hypervisor
Marc Zyngier <[email protected]>
irqchip/gic-v3-its: Split allocation from initialisation of its_node
Johan Hovold <[email protected]>
irqchip/gic-v3-its: Use irq_domain_create_hierarchy()
Marc Zyngier <[email protected]>
irqchip/gic-v3-its: Reset each ITS's BASERn register before probe
Valentin Schneider <[email protected]>
irqchip/gic-v3-its: Postpone LPI pending table freeing and memreserve
Valentin Schneider <[email protected]>
irqchip/gic-v3-its: Give the percpu rdist struct its own flags field
Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Clear vpt_page after freeing the pending table
Carolina Jubran <[email protected]>
IB/IPoIB: Cancel normal flush work on device stop
Sagi Maimon <[email protected]>
net: axienet: free outstanding TX buffers in axienet_dma_bd_release()
Robert Hancock <[email protected]>
net: axienet: Clean up device used for DMA calls
Kyrylo Biryuk <[email protected]>
ata: libahci: re-enable FBS after error handling on a port multiplier
Long Zhao <[email protected]>
dt-bindings: vendor-prefixes: add Ambarella
Xingui Yang <[email protected]>
scsi: libsas: Fix out-of-bounds memcpy() in sas_ssp_task_response()
Nicolai Buchwitz <[email protected]>
net/mlx5e: use skb_share_check() in the loopback selftest hook
Nicolai Buchwitz <[email protected]>
net: stmmac: selftests: use skb_share_check() in the loopback receive hook
Cen Zhang <[email protected]>
Bluetooth: 6lowpan: Drain RCU readers on registration failure
Cen Zhang <[email protected]>
Bluetooth: hci_core: Keep RCU protection through LTK filtering
Cen Zhang <[email protected]>
Bluetooth: 6LoWPAN: Use RCU-safe device list removal
Pauli Virtanen <[email protected]>
Bluetooth: L2CAP: hold chan in l2cap_ecred_conn_rsp()
Mohamad Raizudeen <[email protected]>
PCI: Fix out-of-bounds MMIO read in nvme_disable_and_flr()
Marek Szyprowski <[email protected]>
ARM: 9519/1: dma-mapping: Fix wrong free function in __iommu_alloc_simple() error path
Karl Mehltretter <[email protected]>
ARM: 9492/1: alignment: fix LSR #32 and ASR #32 offset decoding
Avi Weiss <[email protected]>
rpmsg: mtk: release channel OF node on device teardown
HyeongJun An <[email protected]>
ASoC: codecs: wm8510: Fix definition of ADC Inversion Switch control
HyeongJun An <[email protected]>
ASoC: codecs: wm8750: Fix definition of ALC Capture NG Type control
HyeongJun An <[email protected]>
ASoC: codecs: wm5100: Fix definition of EQ3 Band 1 Volume control
HyeongJun An <[email protected]>
ASoC: codecs: wm8737: Fix definition of zero cross switches
HyeongJun An <[email protected]>
ASoC: codecs: wm_hubs: Fix definition of MIXINR to MIXOUTR volume control
HyeongJun An <[email protected]>
ASoC: codecs: wm8955: Fix definition of Treble Cutoff control
HyeongJun An <[email protected]>
ASoC: codecs: wm8994: Fix definition of WM8958 noise gate hold time controls
HyeongJun An <[email protected]>
ASoC: codecs: wm8985: Fix definition of ADC 128x Oversampling control
HyeongJun An <[email protected]>
ASoC: codecs: wm8983: Fix definition of ADC 128x Oversampling control
HyeongJun An <[email protected]>
ASoC: codecs: wm8991: Fix definition of LOMIX AINLMUX Bypass Volume control
HyeongJun An <[email protected]>
ASoC: codecs: wm8991: Fix definition of right input PGA controls
HyeongJun An <[email protected]>
ASoC: codecs: wm8990: Fix definition of LOMIX AINLMUX Bypass Volume control
HyeongJun An <[email protected]>
ASoC: codecs: wm8990: Fix definition of right input PGA controls
Tim Douglas <[email protected]>
serial: pmac_zilog: report received breaks
Cen Zhang <[email protected]>
ALSA: pcm: Unlink substreams before releasing them
Julian Anastasov <[email protected]>
ipvs: fix buffer overflow when sending sync messages
Karl Mehltretter <[email protected]>
thermal: ti-soc-thermal: Fix the return value in ti_bandgap_get_sensor_data() kernel-doc
Florian Fainelli <[email protected]>
tools/thermal/tmon: Fix string truncation warning in optarg copy
Weigang He <[email protected]>
thermal/drivers/sprd: validate the sensor id from the device tree
Takashi Iwai <[email protected]>
ALSA: usb-audio: Use fixed control index for us16x08 mixer elements
Takashi Iwai <[email protected]>
ALSA: line6: Use kzalloc() for PCM buffer allocation
Takashi Iwai <[email protected]>
ALSA: jack: Fix kctl free at error in snd_jack_kctl_new()
Amadeusz Sławiński <[email protected]>
ALSA: pcm: Fix driver_tstamp value reporting
Nguyen Ngoc Thang <[email protected]>
ocfs2: validate chunk and block counts of the local quota file
Joseph Qi <[email protected]>
ocfs2: fix possible deadlock between nfs_sync_rwlock and fs_reclaim
Joseph Qi <[email protected]>
ocfs2: retain all security xattrs during inode creation
Zhiling Zou <[email protected]>
lib: validate in-memory LZ4 chunk length
Karl Mehltretter <[email protected]>
sh: sh7785lcr: Register the PCA9564 controller as I2C bus 0
bui duc phuc <[email protected]>
ASoC: atmel-i2s: use optional API for gclk
bui duc phuc <[email protected]>
ASoC: atmel-i2s: use optional API for muxclk
Codrin Ciubotariu <[email protected]>
ASoC: atmel-i2s: do not warn if muxclk is missing
bui duc phuc <[email protected]>
ASoC: atmel-i2s: fix MCK generator error handling
bui duc phuc <[email protected]>
ASoC: atmel: atmel-pcm-pdc: Fix atmel_pcm_close() being skipped on rollback
bui duc phuc <[email protected]>
ASoC: amd: renoir: Fix acp_pdm_dma_close() being skipped on rollback
bui duc phuc <[email protected]>
ASoC: amd: raven: Fix acp3x_dma_close() being skipped on rollback
Surabhi Gogte <[email protected]>
nvme-tcp: store and use the caller's network namespace
Peijie Shao <[email protected]>
nvme-tcp: fix selinux denied when calling sock_sendmsg
Keith Busch <[email protected]>
nvme: tcp: split controller bringup handling
Heiko Carstens <[email protected]>
s390/uprobes: Fix off-by-one bug in emulated PER handling
Konrad Dybcio <[email protected]>
clk: qcom: rcg2: Clear force enable after rate failure
Konrad Dybcio <[email protected]>
clk: qcom: rcg2: Propagate force-enable status errors
Abel Vesa <[email protected]>
clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset
Yuho Choi <[email protected]>
bus: arm-cci: Drop cci-control-port node reference in __cci_ace_get_port()
Yuho Choi <[email protected]>
bus: arm-cci: Drop CPU node reference in cci_ace_init_ports()
Linkai Gong <[email protected]>
char: scx200_gpio: check cdev_add() return value
Weigang He <[email protected]>
thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove
Yogesh Gaur <[email protected]>
comedi: pcmuio: validate the IRQs supplied by userspace
Yogesh Gaur <[email protected]>
comedi: pcmmio: validate the IRQ supplied by userspace
Yogesh Gaur <[email protected]>
comedi: dmm32at: validate the IRQ supplied by userspace
Yogesh Gaur <[email protected]>
comedi: dt2814: validate the IRQ supplied by userspace
Yogesh Gaur <[email protected]>
comedi: ni_atmio16d: validate the IRQ supplied by userspace
Yogesh Gaur <[email protected]>
comedi: comedi_parport: validate the IRQ supplied by userspace
Thomas Fourier <[email protected]>
net: alacritech: fix dma_free_coherent() in error path
Tapio Reijonen <[email protected]>
serial: max310x: fix RS485 delays being programmed as bit-times
Tapio Reijonen <[email protected]>
serial: max310x: centralize the RS485 transceiver programming
Tapio Reijonen <[email protected]>
serial: max310x: fix breaks not reaching the wire in RS485 mode
Hugo Villeneuve <[email protected]>
serial: max310x: use common power function for all variants
Hugo Villeneuve <[email protected]>
serial: max310x: use common detect function for all variants
Hugo Villeneuve <[email protected]>
serial: max310x: simplify probe() and remove() error handling
Hugo Villeneuve <[email protected]>
serial: max310x: remove holes in struct max310x_devtype
Hugo Villeneuve <[email protected]>
serial: max310x: remove trailing whitespaces
Tapio Reijonen <[email protected]>
serial: max310x: don't clobber the TX break bit in set_termios
Jiayuan Chen <[email protected]>
tcp_hybla: fix divide by zero on rtt0 == 0
Jiayuan Chen <[email protected]>
tcp_bic: fix divide by zero on max_increment == 0
Chien Wong <[email protected]>
wifi: mac80211: fix encryption tailroom
Haitam Lazaar <[email protected]>
RDMA/siw: Enforce IB_ACCESS_REMOTE_READ for read responses
Luca Leonardo Scorcia <[email protected]>
clocksource/drivers/timer-mediatek: Fix random crash at boot
Joas Antonio dos Santos <[email protected]>
calipso: hash the cache key, not the option start, in calipso_cache_add()
Cen Zhang <[email protected]>
ALSA: rawmidi: Drain input work before freeing the runtime
Myeonghun Pak <[email protected]>
fbdev: gxt4500: Release WC setup on probe failure
Jiale Yao <[email protected]>
platform/olpc: Reserve space for a string terminator
Aleksandrova Alyona <[email protected]>
platform/x86: intel_telemetry: initialize default trace verbosity
Dan Carpenter <[email protected]>
mm/hmm/test: reject overflowing page counts
Jiale Yao <[email protected]>
wifi: ath11k: avoid IDR mutation during vif mgmt TX cleanup
Jiale Yao <[email protected]>
wifi: ath11k: avoid IDR mutation during pending mgmt TX cleanup
Jiale Yao <[email protected]>
wifi: ath10k: avoid IDR mutation during TX cleanup
Kunwu Chan <[email protected]>
rcutorture: Fix divide-by-zero with fwd_progress_div=1
bui duc phuc <[email protected]>
ASoC: codecs: rt5659: propagate GPIO errors
Roberto Bergantinos Corpas <[email protected]>
nfs: set gencount on protocol-specific remove
Filipe Manana <[email protected]>
btrfs: qgroup: fix swapped blocks existence check when tracing after COW
Qu Wenruo <[email protected]>
btrfs: qgroup: do not treat "ret > 0" as error when deleting a qgroup
Jiale Yao <[email protected]>
ACPI: PCI: pci_link: clear driver_data before free
Adrián Larumbe <[email protected]>
drm/panfrost: Explicitly enable MMU interrupts at device init
Prathamesh Deshpande <[email protected]>
RDMA/mlx5: Cancel deferred page-fault EQ work before teardown
Beleswar Padhi <[email protected]>
mailbox: ti-msgmgr: Read exact number of trailing message bytes
Antoni Pokusinski <[email protected]>
rtc: abx80x: properly handle shared IRQs
Kevin P. Fleming <[email protected]>
rtc: abx80x: Add utility function for writing configuration key
Antoni Pokusinski <[email protected]>
rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()
Johannes Berg <[email protected]>
wifi: mac80211: init radiotap iter after length checks
Johannes Berg <[email protected]>
wifi: mac80211: kill wake_txqs_tasklet on unregistration
Johannes Berg <[email protected]>
wifi: mac80211: mesh: use hlist_add_head_rcu()
Johannes Berg <[email protected]>
wifi: mac80211: clear fragment cache entry 'is_protected'
Johannes Berg <[email protected]>
wifi: ath6kl: don't take RTNL in del_virtual_intf
Takashi Iwai <[email protected]>
ALSA: hda: intel: Cancel delayed work at shutdown, too
Takashi Iwai <[email protected]>
ALSA: line6: Fix potential OOB write in line6_capture_copy()
Takashi Iwai <[email protected]>
ALSA: line6: Reject too small max packet sizes
Vincent Mailhol <[email protected]>
sound: usb: remove third argument of usb_maxpacket()
Jan Beulich <[email protected]>
x86/PVH: don't truncate initrd address/size
Gui-Dong Han <[email protected]>
xen/blkback: Prevent missed completion when draining I/O
Jake Labelle <[email protected]>
nilfs2: reject non-regular inodes in dsync recovery
Rosen Penev <[email protected]>
crypto: talitos - init tasklets before requesting IRQs
Rosen Penev <[email protected]>
crypto: talitos - Use platform_get_irq() to retrieve interrupt
Rosen Penev <[email protected]>
crypto: talitos - use devm_platform_ioremap_resource()
Rosen Penev <[email protected]>
crypto: talitos - allocate channels with main struct
Takashi Iwai <[email protected]>
ALSA: hda: Avoid non-operational GPU warning at regular device removal
Takashi Iwai <[email protected]>
ALSA: usb-audio: Fix invalid UAC2/3 mixer unit matrix evaluation
Takashi Iwai <[email protected]>
ALSA: usb-audio: Check mixer matrix size for UAC2/3 at parsing
Takashi Iwai <[email protected]>
ALSA: hda: Fix potential UAF for gating jack
Krzysztof Wilczyński <[email protected]>
PCI/sysfs: Stop reporting _DSM failures as -EPERM
Krzysztof Wilczyński <[email protected]>
PCI/sysfs: Rely on lengths from scnprintf(), dsm_label_utf16s_to_utf8s()
bui duc phuc <[email protected]>
ASoC: mediatek: common: Handle constraint return value in FE startup
Melissa Wen <[email protected]>
drm/amd/display: use right type for amdgpu_dc_performance event entries
Ting-Han Hou <[email protected]>
checkkconfigsymbols.py: Parse Git status output line by line
bui duc phuc <[email protected]>
ASoC: rockchip: rockchip_i2s: Handle runtime PM resume failures in set_fmt
Ahmed Naseef <[email protected]>
wifi: mt76: mt7615: read MT7663 temperature from the correct offset
Felix Fietkau <[email protected]>
mt76: implement .mcu_parse_response in struct mt76_mcu_ops
Jiale Yao <[email protected]>
wifi: mt76: usb: fix source overread in mt76u_copy
Jiale Yao <[email protected]>
wifi: mt76: mt76x02: validate RX padding before use
Jiale Yao <[email protected]>
pinctrl: sprd: free maps on DT map failure
Leizhen Zhang <[email protected]>
gen_init_cpio: stop parsing on lines with a missing argument list
Takashi Iwai <[email protected]>
ALSA: caiaq: Allow zero-length packet handling for EP1
Priyank Rathod <[email protected]>
PCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices()
Robert Richter <[email protected]>
PCI/AER: Forward RCH downstream port-detected errors to the CXL.mem dev handler
Dave Jiang <[email protected]>
PCI/AER: Add optional logging callback for correctable error
Joseph Qi <[email protected]>
ocfs2: reject inconsistent xattr bucket during defrag
Wilson Felipe Pereira <[email protected]>
init/main: fix false-positive kernel panic on environment variable overwrite
Wilson Felipe Pereira <[email protected]>
init/main: fix off-by-one in argv_init cleanup
Florian Schmaus <[email protected]>
selftests/epoll: fix race condition in multi-waiter wakeup tests
Joseph Qi <[email protected]>
ocfs2: fix deadlock in inline-data truncate transactions
Petr Vorel <[email protected]>
checkpatch: skip CamelCase cache for --no-tree without root
Ryusuke Konishi <[email protected]>
nilfs2: fix link count underflow when removing corrupted directory
Marc Kleine-Budde <[email protected]>
spi: spi-sun4i: sun4i_spi_fill_fifo(): always apply A10 FIFO fill level workaround
Marc Kleine-Budde <[email protected]>
spi: spi-sun4i: sun4i_spi_transfer_one(): fix transfers for SUN4I_FIFO_DEPTH
Pengpeng Hou <[email protected]>
sh: defconfig: Enable the current M66592 UDC symbol
Florian Fuchs <[email protected]>
sh: uaccess: Require offsettable operands for 64-bit user access
Chen-Yu Tsai <[email protected]>
arm64: dts: allwinner: sun50i-h6: Add missing IOMMU for video engine
Chen-Yu Tsai <[email protected]>
arm64: dts: allwinner: sun50i-h6: Add missing SRAM region for video engine
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate memcpy configuration
Julia Lawall <[email protected]>
dmaengine: ste_dma40: fix typo in comment
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate fixed physical channel indexes
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix V4B event group mapping
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix event group bounds
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix logical channel bounds check
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Reject direction changes after allocation
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate DMA specifier length
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate disabled channel indexes
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix memcpy channel parsing
Rosen Penev <[email protected]>
dmaengine: ste_dma40: turn d40_base phy_chans into a flexible array
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Pass dev to OF function
Bjorn Helgaas <[email protected]>
dmaengine: stedma40: fix 'physical' typo
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Put the LCPA SRAM node
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix probe LCLA free
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix LCLA allocation order
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix probe IRQ leak
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Use managed resources
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Remove platform data
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Return IRQ_NONE when no interrupt is pending
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Handle runtime PM resume errors
Sakari Ailus <[email protected]>
dmaengine: ste_dma40: Remove redundant pm_runtime_mark_last_busy() calls
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Check runtime PM in IRQ
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix probe runtime PM disable
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Add dev helper variable
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Get LCPA SRAM from SRAM node
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix failed start cleanup
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix physical cyclic capability
Yang Xiuwei <[email protected]>
floppy: avoid NULL deref in reset_interrupt when cont is cleared
Karl Mehltretter <[email protected]>
floppy: flush pending work before releasing resources on init failure
Jérémy Jean <[email protected]>
NFS: filelayout: calculate dense stripe width in 64 bits
Logan Gunthorpe <[email protected]>
dmaengine: plx_dma: fix NULL pointer deref in plx_dma_isr()
Logan Gunthorpe <[email protected]>
dmaengine: ioat: disable relaxed ordering before registering the device
Dan Carpenter <[email protected]>
wifi: carl9170: NUL terminate string in debugfs
Dan Carpenter <[email protected]>
wifi: b43legacy: debugfs: NUL terminate string in debugfs
Dan Carpenter <[email protected]>
wifi: b43: don't pass unterminated string to sscanf()
Dominic White <[email protected]>
wifi: cfg80211: allow zero HE OBSS PD offsets
Xueqin Luo <[email protected]>
cpufreq: sti: avoid NULL dereference in dev_err()
Xueqin Luo <[email protected]>
cpufreq: sparc-us2e: fix frequency table index copy-paste error
Yaozhong Li <[email protected]>
arm64: dts: rockchip: disable unused i2s0 on rk3399-firefly
Yaozhong Li <[email protected]>
arm64: dts: rockchip: fix analog headphone output on rk3399-firefly
Peter Robinson <[email protected]>
arm64: dts: rockchip: add infrared receiver node to RK3399 Firefly
Detlev Casanova <[email protected]>
arm64: dts: rockchip: Rename rk3328 HDMI audio card
Linus Walleij <[email protected]>
power: supply: ab8500_fg: Avoid reserved AB8505 CCConf bit
Linus Walleij <[email protected]>
power: supply: ab8500_charger: Handle detection errors
Linus Walleij <[email protected]>
power: supply: ab8500: Move to componentized binding
Linus Walleij <[email protected]>
mfd/power: ab8500: Push data to power supply code
Linus Walleij <[email protected]>
power: ab8500: Require device tree
Lee Jones <[email protected]>
mfd: Standardise MFD_CELL_* helper names
Linus Walleij <[email protected]>
power: supply: ab8500_fg: Request all IRQs as threaded
Linus Walleij <[email protected]>
power: supply: ab8500_charger: Oneshot threaded IRQs
Linus Walleij <[email protected]>
power: supply: ab8500: Convert to dev_pm_ops
Linus Walleij <[email protected]>
power: supply: ab8500: Use local helper
Tian Tao <[email protected]>
power: supply: Fix missing IRQF_ONESHOT as only threaded handler
Linus Walleij <[email protected]>
power: supply: ab8500_btemp: Fix event temperature reporting
Jan Stancek <[email protected]>
.gitignore: drop Module.markers
Masahiro Yamada <[email protected]>
.gitignore: ignore only top-level modules.builtin
Chen-Yu Tsai <[email protected]>
dt-bindings: media: sun4i-a10-video-engine: Fix IOMMU count for H6
Li Youhong <[email protected]>
md/raid5: drain released_stripes before destroying the cache
Nguyen Ngoc Thang <[email protected]>
md: take reconfig_mutex when enabling PPL on an inactive array
Laurence Oberman <[email protected]>
scsi: st: Record the tape position after a successful MTLOAD
Laurence Oberman <[email protected]>
scsi: st: Restore changed drive settings after reset also for MTLOAD and MTRETEN
Niklas Cassel <[email protected]>
scsi: scsi_debug: Refuse a negative physblk_exp
Oleg Keri <[email protected]>
drm/msm/dp: don't report link training success after a reinit
Kuogee Hsieh <[email protected]>
drm/msm/dp: do not end dp link training until video is ready
Kuogee Hsieh <[email protected]>
drm/msm/dp: reduce link rate if failed at link training 1
Yuho Choi <[email protected]>
soc/tegra: flowctrl: Release OF node reference on error
Matthias Goergens <[email protected]>
isofs: return long Joliet names whole
Slavin Liu <[email protected]>
clocksource/drivers/dbx500-prcmu: Check timer register mapping
Thorsten Blum <[email protected]>
hwrng: intel - return -ENOMEM when ioremap() fails
Liu Dalin <[email protected]>
rtc: ftrtc010: fix integer overflow in time calculation
Thorsten Blum <[email protected]>
hwrng: intel - return -ENOMEM when kmalloc_obj() fails
Herbert Xu <[email protected]>
crypto: tcrypt - Avoid reading req->base after submission
Anirudh Venkataramanan <[email protected]>
crypto: tcrypt - Drop leading newlines from prints
Anirudh Venkataramanan <[email protected]>
crypto: tcrypt - Use pr_info/pr_err
Tianjia Zhang <[email protected]>
crypto: tcrypt - remove all multibuffer ahash tests
Tianjia Zhang <[email protected]>
crypto: tcrypt - add asynchronous speed test for SM3
Tianjia Zhang <[email protected]>
crypto: tcrypt - Fix missing return value check
Ard Biesheuvel <[email protected]>
crypto: tcrypt - include 1420 byte blocks in aead and skcipher benchmarks
Karl Mehltretter <[email protected]>
crypto: atmel - handle authenc requests without plaintext
Chuanhong Guo <[email protected]>
pinctrl: mediatek: mt7629: fix the 2.4 GHz Wi-Fi pin mode array
Linkai Gong <[email protected]>
misc: enclosure: fix UAF on device_register() failure
Weigang He <[email protected]>
ARM: vexpress: fix device_node refcount leak in vexpress_smp_dt_prepare_cpus()
Weigang He <[email protected]>
ARM: vexpress: fix device_node refcount leak in vexpress_flags_set()
Karl Mehltretter <[email protected]>
OPP: Fix the return value in dev_pm_opp_get_of_node() kernel-doc
Lucas Costa <[email protected]>
staging: sm750fb: free cmap on framebuffer release
Dmitry Baryshkov <[email protected]>
drm/msm/mdp5: drop cursor pipe for msm8x76
Qingfang Deng <[email protected]>
ARM: mvebu: fix Cortex-A9 errata selection for Armada 38x
Matthias Goergens <[email protected]>
x86/hibernate: Ignore page-zero RAM in E820 checksum
Nicolo Giuliani <[email protected]>
dt-bindings: vendor-prefixes: Add Sophos
Chen Wang <[email protected]>
dt-bindings: vendor-prefixes: add milkv/sophgo
Icenowy Zheng <[email protected]>
dt-bindings: vendor-prefixes: add Source Parts and Lctech names
Andreas Kemnade <[email protected]>
rtc: bd70528: properly enable wakeup
Nicolas Schier <[email protected]>
kconfig: tests: Provide defconfig outfile for savedefconfig
Hongyan Xu <[email protected]>
RDMA/hfi1: quiesce SDMA asynchronous cleanup on exit
Serhat Kumral <[email protected]>
RDMA/siw: Fix length of first chunk in siw_try_1seg()
Qingshuang Fu <[email protected]>
selftests/timers: clocksource-switch: Fix unchecked open()/read()
Karl Mehltretter <[email protected]>
time: Prevent time64_to_tm() day truncation on 32-bit
Cassio Neri <[email protected]>
time: Improve performance of time64_to_tm()
Paul E. McKenney <[email protected]>
clocksource: Provide kernel module to test clocksource watchdog
Arnd Bergmann <[email protected]>
timekeeping: add CONFIG_LEGACY_TIMER_TICK
Jiale Yao <[email protected]>
RDMA/mad: Reject receive completions shorter than GRH
Quanye Yang <[email protected]>
RDMA/rtrs-clt: Reject invalid queue_depth from the peer
Yili Zhang <[email protected]>
RDMA/nldev: Fix NULL deref in dumps of objects abandoned by DRIVER_FAILURE
Myeonghun Pak <[email protected]>
clk: ti: adpll: unregister OF clock provider on remove
Dairui Zhang <[email protected]>
IB/mad: fix UAF and double-free in RMPP receive reassembly
Ruoyu Wang <[email protected]>
media: venus: Drop session events without an instance
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Fix the PD and DPI table size
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Initialize wqe.flags in bnxt_re_post_srq_recv()
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Detect wrong sge_len passed for inline
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Fix integer overflow in send payload size computation
Finn Thain <[email protected]>
swim3: Fix FDEJECT ioctl for exclusive open
Finn Thain <[email protected]>
swim: Fix FDEJECT ioctl for exclusive open
Logan Odell <[email protected]>
PCI/IOV: Read VF config values that need not match PF
Li RongQing <[email protected]>
IB/isert: Don't share drop_cmd_list across concurrent connection teardowns
Li RongQing <[email protected]>
RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment
Karl Mehltretter <[email protected]>
soc: ti: k3-ringacc: Correct ring API kernel-doc
Ovidiu Panait <[email protected]>
spi: rspi: Fix DMA mode when the DMA controller is built as a module
Andy Shevchenko <[email protected]>
spi: rspi: Get rid of unused struct rspi_plat_data
Lad Prabhakar <[email protected]>
spi: spi-rspi: Add support to deassert/assert reset line
Niko Huuskonen <[email protected]>
ALSA: caiaq: Fix the Kore controller key map
Arka Mondal <[email protected]>
iio: dac: ad5758: Fix the offset calculation
Arka Mondal <[email protected]>
iio: dac: ad5758: Reject out-of-range raw values
Chen-Yu Tsai <[email protected]>
drm/exynos/fimd: fix register offset type in fimd_trigger()
Runyu Xiao <[email protected]>
ALSA: via82xx: use helper to activate DXS controls
Yishai Hadas <[email protected]>
RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it
Yishai Hadas <[email protected]>
RDMA/mlx5: Set RQ event handler for raw-packet QP
Yishai Hadas <[email protected]>
RDMA/mlx5: Set SRQ event handler before xarray insertion
Yishai Hadas <[email protected]>
RDMA/mlx5: Set WQ event handler before firmware RQ insertion
Yishai Hadas <[email protected]>
RDMA/hns: Pin CQ buffer writable to match device DMA write access
Xi Wang <[email protected]>
RDMA/hns: Refactor the MTR creation flow
Ginger Li <[email protected]>
wifi: mac80211: Fix a race when expiring a mesh path
Guanghui Feng <[email protected]>
iommu/vt-d: Fix IQE handling to cover all descriptors in submission range
Lu Baolu <[email protected]>
iommu/vt-d: Report more information about invalidation errors
Linus Walleij <[email protected]>
ARM: dts: gemini: Use a level-high interrupt for TVE200
Fernando Fernandez Mancera <[email protected]>
netfilter: synproxy: fix reset of ct seqadj when reopening a connection
Akhil P Oommen <[email protected]>
drm/msm/a6xx: Fix secondary rail vote in ARC votes
Daniel Palmer <[email protected]>
m68k: apollo: Fix interrupt setup
Orgad Shaneh <[email protected]>
MIPS: Octeon: size the swiotlb for a modular OHCI platform driver
Aaron Kling <[email protected]>
dt-bindings: vendor-prefixes: Add Retroid Pocket
Marek Vasut <[email protected]>
dt-bindings: vendor-prefixes: Add Retronix Technology Inc.
Krzysztof Kozlowski <[email protected]>
dt-bindings: vendor-prefixes: add Revotics
Adam Skladowski <[email protected]>
dt-bindings: vendor-prefixes: Add LeEco
Bruno Produit <[email protected]>
hfs/hfsplus: serialize B-tree close against folio release
Aaron Kling <[email protected]>
dt-bindings: vendor-prefixes: Add Chip Wealth Technology
Jagan Teki <[email protected]>
dt-bindings: vendor-prefixes: Document Chongzhou
bui duc phuc <[email protected]>
ASoC: mediatek: mt8183: Fix APLL enable error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8183: Fix clock handling in mux disable path
bui duc phuc <[email protected]>
ASoC: mediatek: mt8183: Fix wrong clock cleanup on clk_set_parent() failure
Sudeep Holla <[email protected]>
ACPICA: Fix PCC OperationRegion command offsets
Breno Leitao <[email protected]>
ACPICA: Fix memory leak in acpi_ds_create_field()
Qingfang Deng <[email protected]>
mtd: block: prevent reclaim I/O during request processing
Jiebin Sun <[email protected]>
perf c2c: Fix documented default coalesce fields
Muzaffer Kadir <[email protected]>
dt-bindings: vendor-prefixes: Add General Mobile
Pengpeng Hou <[email protected]>
iio: accel: bma220: publish the SPI driver ACPI alias
Pengpeng Hou <[email protected]>
ASoC: rt5665: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt5660: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt5659: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt5616: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt1308: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt1305: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt1016: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt1011: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: nau8540: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: ak4642: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: adau17x1: return cache sync errors from resume
Slavin Liu <[email protected]>
ASoC: fsl_asrc: check the second front-end DMA channel
Shengjiu Wang <[email protected]>
ASoC: fsl_asrc: use regmap_write_bits to update clock source registers
Dmitrii Tulnov <[email protected]>
kconfig: warn about malformed KCONFIG_PROBABILITY values
Masahiro Yamada <[email protected]>
kconfig: move conf_set_all_new_symbols() to conf.c
Masahiro Yamada <[email protected]>
kconfig: move conf_rewrite_mod_or_yes() to conf.c
Masahiro Yamada <[email protected]>
kconfig: split randconfig setup code into set_randconfig_seed()
Myeonghun Pak <[email protected]>
mfd: da9150: Balance IRQ wake on teardown
Myeonghun Pak <[email protected]>
mfd: intel_quark_i2c_gpio: Manage the fixed-rate clock
Andy Shevchenko <[email protected]>
mfd: intel_quark_i2c_gpio: Convert I²C to use software nodes
Andy Shevchenko <[email protected]>
mfd: intel_quark_i2c_gpio: Don't play dirty trick with const
Andy Shevchenko <[email protected]>
mfd: intel_quark_i2c_gpio: Enable MSI interrupt
Andy Shevchenko <[email protected]>
mfd: intel_quark_i2c_gpio: Reuse BAR definitions for MFD cell indexing
Andy Shevchenko <[email protected]>
mfd: intel_quark_i2c_gpio: Replace I²C speeds with descriptive definitions
Andy Shevchenko <[email protected]>
mfd: intel_quark_i2c_gpio: Remove unused struct device member
Andy Shevchenko <[email protected]>
mfd: intel_quark_i2c_gpio: Unregister resources in reversed order
Heikki Krogerus <[email protected]>
mfd: core: Add support for software nodes
Heikki Krogerus <[email protected]>
software node: Introduce device_add_software_node()
Vincent Jardin <[email protected]>
dt-bindings: vendor-prefixes: add Free Mobile
Linus Walleij <[email protected]>
dt-bindings: Add vendor prefixes
Lin, Meng-Bo <[email protected]>
dt-bindings: vendor-prefixes: Add GPLUS
Icenowy Zheng <[email protected]>
dt-bindings: vendor-prefixes: add Genesys Logic
Ivan Uvarov <[email protected]>
dt-bindings: add compatible vendor prefix for Forlinx
Zongmin Zhou <[email protected]>
serial: sifive: fix off-by-one in console port bounds check
Finn Thain <[email protected]>
swim: Don't search beyond the first data mark
Finn Thain <[email protected]>
swim: Fix buffer overflow
Finn Thain <[email protected]>
swim: Don't use the mark register to read data
Finn Thain <[email protected]>
swim: Check error register during sector read
Finn Thain <[email protected]>
swim: Simplify return value initialization
Finn Thain <[email protected]>
swim: Check for CRC errors
Finn Thain <[email protected]>
swim: Handle FIFO timeout error
Finn Thain <[email protected]>
swim: Don't start motor until medium is present
Finn Thain <[email protected]>
swim: Configure parameter memory
Luis Chamberlain <[email protected]>
swim: add helper for disk cleanup
Luis Chamberlain <[email protected]>
swim: simplify using blk_cleanup_disk() on swim_remove()
Christoph Hellwig <[email protected]>
swim: use blk_mq_alloc_disk
Christoph Hellwig <[email protected]>
swim: don't call blk_queue_bounce_limit
Finn Thain <[email protected]>
swim: Perform ISM/IWM mode switching according to specs
Finn Thain <[email protected]>
swim: Don't disable drive after every sector
Finn Thain <[email protected]>
swim: Enable the drive when probing
Finn Thain <[email protected]>
swim: Select appropriate drive once only
Finn Thain <[email protected]>
swim: Assert strobe with stable outputs
Jiale Yao <[email protected]>
crypto: ccp - kill v5 IRQ tasklet during teardown
Jiale Yao <[email protected]>
crypto: ccp - kill v3 IRQ tasklet during teardown
Wentao Liang <[email protected]>
RDMA/siw: Fix qp use-after-free in siw_get_base_qp()
Wentao Liang <[email protected]>
RDMA/cxgb4: Fix skb reference leak in rx_pkt()
Kim Wooseok <[email protected]>
wifi: rtl8xxxu: free RX skb when URB submission fails
Bitterblue Smith <[email protected]>
wifi: rtl8xxxu: Use dev_* instead of pr_info
Jisheng Zhang <[email protected]>
regulator: mp886x: fix pontential division by zero
Jisheng Zhang <[email protected]>
regulator: mp886x: check get_voltage_sel() return value
Dmitry Antipov <[email protected]>
leds: flash: Prevent using uninitialized variable in flash_fault_show()
Li RongQing <[email protected]>
RDMA/core: Fix partial copy of IPv6 flow_lbl in LAG hash skb
Cong Nguyen <[email protected]>
leds: lm3692x: Fix regulator/gpio leak and wrong enabled state on last write failure
Haibo Chen <[email protected]>
leds: pca9532: Check i2c_smbus_read_byte_data() return value
Andrea Parri <[email protected]>
pstore: reject persistent RAM zones too small for the buffer header
Andrea Parri <[email protected]>
pstore: don't leave an ERR_PTR in the ramoops zone pointer
Neil Armstrong <[email protected]>
dt-bindings: vendor-prefixes: add vendor prefix for Nexperia B.V.
Pengpeng Hou <[email protected]>
pmdomain: imx: Propagate SCU provider registration failures
Triet Hoang <[email protected]>
clk: raspberrypi: Handle cpufreq device registration failure
Karl Asseily <[email protected]>
dt-bindings: vendor-prefixes: add ESS Technology
Felix Gu <[email protected]>
spi: mxic: fix ps_clk leak in runtime resume
Christian Loehle <[email protected]>
ACPI: CPPC: Validate the _CPC package header
Li RongQing <[email protected]>
RDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in GET_CONTEXT
Slavin Liu <[email protected]>
crypto: atmel-sha - reject initialization without a device
Julian Braha <[email protected]>
kconfig: fix extra output from savedefconfig on out-of-range defaults
Masahiro Yamada <[email protected]>
kconfig: default to zero if int/hex symbol lacks default property
Masahiro Yamada <[email protected]>
kconfig: remove unneeded symbol_empty variable
Masahiro Yamada <[email protected]>
kconfig: change defconfig_list option to environment variable
Vladimir Oltean <[email protected]>
PCI: cadence: Preserve all error codes in cdns_plat_pcie_probe()
Nikolay Borisov <[email protected]>
ata: sata_dwc_460ex: Don't enable interrupt if libATA core registration fails
Andy Shevchenko <[email protected]>
ata: sata_dwc_460ex: Use temporary variable for struct device
Andy Shevchenko <[email protected]>
ata: sata_dwc_460ex: Use devm_platform_*ioremap_resource() APIs
Hari Mishal <[email protected]>
drm/amd/pm: bound SCLK FCW range entries to the table size
Pengpeng Hou <[email protected]>
clk: milbeaut: Return divider update timeouts
Zhihao Cheng <[email protected]>
md/raid5: setup_conf: Fix null-ptr-def in error handling path
Yogesh Gaur <[email protected]>
md/raid5: don't BUG() on an inconsistent reshape state from the superblock
Jérémy Jean <[email protected]>
md: reject v0.90 arrays with too many devices
Abdelnasser Hussein <[email protected]>
staging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers
Bart Van Assche <[email protected]>
scsi: pm8001: Fix SATA FIS offset in struct hw_event_resp
Slavin Liu <[email protected]>
ACPI: tables: handle failed initrd override mappings
Sarthak Sharma <[email protected]>
mm/gup_test: report actual pinned bytes
Sarthak Sharma <[email protected]>
mm/gup_test: safely calculate GUP batch size
Samuel Moelius <[email protected]>
mm/gup_test: reject wrapped user ranges
John Hubbard <[email protected]>
mm/gup_benchmark: rename to mm/gup_test
Karl Mehltretter <[email protected]>
loadpin: Fix stale KEXEC_VERIFY_SIG reference in documentation
Jiele zhao <[email protected]>
security/loadpin: Update the changing interface in the source code.
Rosen Penev <[email protected]>
dmaengine: mv_xor: kill tasklet on channel add error path
Yonghao Zhang <[email protected]>
remoteproc: core: Set trace buffer name for diagnostics
Li RongQing <[email protected]>
RDMA/uverbs: Make CQ handle mandatory for WQ creation
Miles Krause <[email protected]>
memory: emif: fix device_node reference leak on np_ddr
Uwe Kleine-König <[email protected]>
memory: emif: Convert to platform remove callback returning void
Linkai Gong <[email protected]>
firmware: imx: dsp: fix mailbox channel leak on kasprintf failure
Karl Mehltretter <[email protected]>
wifi: mac80211: Fix the return value in mesh_path_add() kernel-doc
Thomas Weißschuh <[email protected]>
microblaze: Pass -m{big,little}-endian through KBUILD_CPPFLAGS
Thomas Weißschuh <[email protected]>
microblaze: uaccess: Zero out destination on failed get_user()
Ian Rogers <[email protected]>
perf header: Fix potential memory corruption in cpu_cache_level__read
Rafael J. Wysocki <[email protected]>
ACPI: video: Fix backlight unregistration ordering
Karl Mehltretter <[email protected]>
ALSA: control: Fix virtual master creation reference in kernel-doc
Karl Mehltretter <[email protected]>
gfs2: Fix the return value in gfs2_get_link() kernel-doc
Karl Mehltretter <[email protected]>
ata: libata-scsi: Fix ata_scsi_hotplug() reference in kernel-doc
Chaithanya Lagisetty <[email protected]>
x86/svm: Avoid sign extension of SVM_EVTINJ_VALID in 64-bit expressions
Nora Schiffer <[email protected]>
ARM: dts: imx7-tqma7: correctly specify PMIC voltage constraints
Matthias Schiffer <[email protected]>
ARM: dts: imx7-tqma7: add SPI-NOR flash
Ahmad Fatoum <[email protected]>
ARM: dts: stm32: lxa-mc1: change stdout-path baud rate from 9600 to 115200
Xueqin Luo <[email protected]>
cpuidle: menu: Do not return a disabled idle state
Christian Loehle <[email protected]>
cpuidle: menu: Remove single state handling
Breno Leitao <[email protected]>
cpuidle: menu: Remove incorrect unlikely() annotation
Takashi Sakamoto <[email protected]>
firewire: core: remove unused link field in fw_packet structure
Karl Mehltretter <[email protected]>
firewire: cdev: Fix FW_CDEV_IOC_CREATE_ISO_CONTEXT references in kernel-doc
Rafael J. Wysocki <[email protected]>
ACPI: glue: Fix up and adjust acpi_unbind_one()
Jan Kara <[email protected]>
gfs2: Fix journaled truncate range end offset
Jiawen Liu <[email protected]>
memory: exynos5422-dmc: handle clock enable failures
Ahsan Atta <[email protected]>
crypto: qat - avoid OOB read when stripping RSA leading zeros
Mohamad Raizudeen <[email protected]>
crypto: amlogic - Fix DMA memory leak in cipher error path
Jack Wang <[email protected]>
crypto: amlogic - Fix dma_map_sg error check
Eric Dumazet <[email protected]>
ip_tunnel: use WRITE_ONCE in ip_tunnel_encap_setup
Eric Dumazet <[email protected]>
sit: fix UAF in ipip6_tunnel_del_prl()
Linus Walleij <[email protected]>
regulator: ab8500: Propagate mode enable read errors
Linus Walleij <[email protected]>
regulator: ab8500: Test dedicated enable bits only
Linus Walleij <[email protected]>
regulator: ab8500: Treat cut 1.0 VAUX3 as fixed
Linus Walleij <[email protected]>
regulator: ab8500: Handle AB8505 VINTCORE selector 7
Linus Walleij <[email protected]>
regulator: ab8500: Add AB8505 VAUX3 3.05 V setting
Babanpreet Singh <[email protected]>
regulator: ab8500: Remove stale expand_register kernel-doc entry
Linus Walleij <[email protected]>
regulator: ab8500: Fix AB8505 VANA voltage selectors
Rosen Penev <[email protected]>
dmaengine: fsl_raid: zero CF descriptor pool allocations
Keisuke Tsukuda <[email protected]>
usb: gadget: f_mass_storage: ignore class requests while inactive
Keisuke Tsukuda <[email protected]>
usb: gadget: composite: avoid warning on aborted delayed status
Chaithanya Lagisetty <[email protected]>
dmaengine: sprd: use clk_bulk API to fix clock imbalance
Pengpeng Hou <[email protected]>
usb: musb: da8xx: depopulate OF children on probe failure
Pengpeng Hou <[email protected]>
usb: musb: da8xx: depopulate OF children on remove
Arka Mondal <[email protected]>
usb-storage: alauda: fix out-of-bounds zone index
Arka Mondal <[email protected]>
usb-storage: alauda: check the return value of alauda_read_map()
Arka Mondal <[email protected]>
usb-storage: alauda: do not do DMA from the stack
Yuho Choi <[email protected]>
USB: pci-quirks: Release EHCI device reference
Jiangong.Han <[email protected]>
USB: usbmon: fix null-ptr-deref in mon_bus_remove() when mon_bus_init() fails
Diego Fernando Mancera Gomez <[email protected]>
usb: image: microtek: stop SG processing after transfer errors
Yuho Choi <[email protected]>
PCI: xgene: Use managed clock for PCIe controller
Karl Mehltretter <[email protected]>
efi/libstub: Fix efi_set_event_at() parameter documentation
Salah Triki <[email protected]>
iio: imu: adis16400: Check return value of spi_setup()
Linmao Li <[email protected]>
power: supply: bq2515x: Propagate charge-enable read errors
Ryan Brue <[email protected]>
power: supply: bq24190_charger: use the wake irq API
Peng Fan <[email protected]>
PM: sleep: wakeirq: Introduce device-managed variant of dev_pm_set_wake_irq()
Joe Hattori <[email protected]>
PM: wakeup: implement devm_device_init_wakeup() helper
Johan Hovold <[email protected]>
PM: sleep: wakeirq: drop unused enable helpers
Bjorn Helgaas <[email protected]>
PM: wakeup: Unify device_init_wakeup() for PM_SLEEP and !PM_SLEEP
Karl Mehltretter <[email protected]>
power: supply: mp2629: Use the full batt_impedance_compensation name in the ABI document
Nicolas Escande <[email protected]>
wifi: ath11k: fix locking problem in ath11k_dp_rx_tid_del_func()
Mikhail Lobanov <[email protected]>
wifi: ath11k: modify null check logic in ath11k_ce_rx_post_pipe()
Rafael J. Wysocki <[email protected]>
ACPI: utils: Adjust message printing macros for ACPI objects
Ian Gallagher <[email protected]>
ACPI: button: Add lid_init_state quirk for Razer Blade Stealth 13 (Early 2020) RZ09-0310
Vinod Koul <[email protected]>
dmaengine: zynqmp_dma: drop redundant label
Srinivas Neeli <[email protected]>
dmaengine: xilinx_dma: Move descriptors to done list based on completion bit
Radhey Shyam Pandey <[email protected]>
dmaengine: xilinx_dma: Freeup active list based on descriptor completion bit
Srinivas Neeli <[email protected]>
dmaengine: xilinx_dma: Fix MCDMA descriptor fields based on DMA direction
Golla Nagendra <[email protected]>
dmaengine: zynqmp_dma: Fix chan probe/remove error handling
Abin Joseph <[email protected]>
dmaengine: zynqmp_dma: Add support for AMD Versal Gen 2 DMA IP
Michael Tretter <[email protected]>
dmaengine: zynqmp_dma: simplify with dev_err_probe
Ruoyu Wang <[email protected]>
dmaengine: img-mdc: Fix runtime PM usage counter leak
Myeonghun Pak <[email protected]>
dmaengine: mediatek: hsdma: fix runtime PM leak on init failure
Hongling Zeng <[email protected]>
dmaengine: sun6i-dma: Fix use-after-free in error handling paths
Samuel Holland <[email protected]>
dmaengine: sun6i: Do not use virt_to_phys
Karl Mehltretter <[email protected]>
mtd: spinand: Fix spinand_manufacturer_ops kernel-doc
Manush Prajwal <[email protected]>
pwm: lp3943: fix NULL pointer dereference for an unconfigured channel
Uwe Kleine-König <[email protected]>
pwm: lp3943: Drop usage of pwm_[gs]et_chip_data()
bui duc phuc <[email protected]>
ASoC: mediatek: mt6797: fix wrong unwind order and error code in enable_clock
Karl Mehltretter <[email protected]>
irqchip/gic-v3-its: Don't WARN on LPI free allocation failure
Andy Shevchenko <[email protected]>
irqchip/gic-v3: Switch to bitmap_zalloc()
Linkai Gong <[email protected]>
drivers/base/node: fix UAF on device_register() failure
Dmitry Torokhov <[email protected]>
gpio: crystalcove: add missing MODULE_ALIAS()
Felix Gu <[email protected]>
spi: mtk-nor: fix runtime PM usage count leak in probe error path
Dave Jiang <[email protected]>
efi/cper: Read only validated fields in cper_mem_err_pack()
Dave Jiang <[email protected]>
ACPI: extlog: Validate elog record length before walking sections
Dave Jiang <[email protected]>
efi/cper: Reject an error status block length that wraps a u32
Dave Jiang <[email protected]>
efi/cper: Reject CPER records with an out-of-range error_data_length
Shuai Xue <[email protected]>
efi: cper: check section header more appropriately
Jisheng Zhang <[email protected]>
regulator: mp886x: fix vsel_mask
Axel Lin <[email protected]>
regulator: mp886x: Convert to use regulator_set_ramp_delay_regmap
Pengpeng Hou <[email protected]>
memory: brcmstb_dpfe: validate firmware section sizes
Julius Bairaktaris <[email protected]>
wifi: mac80211: fix swapped fq_overlimit/fq_overmemory in aqm debugfs
Fabrice Derepas <[email protected]>
crypto: asymmetric_keys - fix OOB read in pefile_parse_binary
Ruoyu Wang <[email protected]>
hwrng: cctrng - Fix runtime PM usage counter leak
Paul Dolan <[email protected]>
selftests/clone3: tighten CLONE_CLEAR_SIGHAND conflict test
Miquel Raynal (Schneider Electric) <[email protected]>
clk: Use the generic OF phandle parsing in only one place
Rosen Penev <[email protected]>
dmaengine: fsl_raid: avoid free_q underflow in free_chan_resources
Rosen Penev <[email protected]>
dmaengine: fsl_raid: don't invoke client callback under desc_lock
Abdurrahman Karadag <[email protected]>
wifi: rtw88: debugfs: don't vzalloc(0) when rsvd_page is read unconfigured
Jérémy Jean <[email protected]>
microblaze: prevent ptrace writes to MSR and pt_mode
Alexander A. Klimov <[email protected]>
microblaze: CCF: fix refcount leak
Orgad Shaneh <[email protected]>
staging: octeon: schedule the TX cleanup tasklet every 1024th packet
Felix Gu <[email protected]>
spi: omap2-mcspi: Remove unbalanced pm_runtime_put_sync() calls
Ruoyu Wang <[email protected]>
pwm: renesas-tpu: Fix runtime PM reference leak
Uwe Kleine-König <[email protected]>
pwm: renesas: Drop usage of pwm_[gs]et_chip_data()
Uwe Kleine-König <[email protected]>
pwm: renesas-tpu: Improve maths to compute register settings
Uwe Kleine-König <[email protected]>
pwm: renesas-tpu: Rename variables to match the usual naming
Uwe Kleine-König <[email protected]>
pwm: renesas-tpu: Implement .apply() callback
Anup Vishwakarma <[email protected]>
remoteproc: qcom_q6v5_adsp: Fix double jiffies conversion in adsp_start()
Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Validate unwinding sizes against record payload
Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Validate sym string NUL-termination in code load
Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Validate debug entries on native (non-swap) path
Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Use dirname() return value in jit_open()
Hrishikesh Suresh <[email protected]>
perf: replace strcpy() with strncpy() in util/jitdump.c
Ian Rogers <[email protected]>
perf jit: Fix a few memory leaks
Yonatan Goldschmidt <[email protected]>
perf inject jit: Add namespaces support
Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Fix funlockfile on unlocked stream in jit_open() error path
Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Check snprintf return before computing header size
Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Bounds-check debug entry byte-swap loop
Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Prevent integer underflow in debug info size calculation
Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Validate code_size against total_size in code load
Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Fix debug_data and unwinding_data leaks
Arnaldo Carvalho de Melo <[email protected]>
perf jitdump: Fix extended header read that always fails
Breno Leitao <[email protected]>
kexec_file: stop the top-down search before it underflows
Rosen Penev <[email protected]>
ARM: dts: helios4: fix spi1 location
Rosen Penev <[email protected]>
ARM: dts: helios4: fix vbus-supply for USB2 PHY
Rosen Penev <[email protected]>
ARM: dts: armada-388-helios4: fix vmmc property name
Rosen Penev <[email protected]>
ARM: dts: armada-395-gp: drop unsupported SDHCI clock-frequency
Rosen Penev <[email protected]>
ARM: dts: armada-385-clearfog-gtr: fix vmmc property name
Rosen Penev <[email protected]>
ARM: dts: helios4: fix lm75 supply name
Adi Nata <[email protected]>
iio: humidity: hts221: report available values via read_avail()
Pengpeng Hou <[email protected]>
spi: sh-msiof: propagate setup runtime-PM errors
Geert Uytterhoeven <[email protected]>
spi: sh-msiof: SITMDR1/SIRMDR1 bitfield conversion
Chandradhar Kumar <[email protected]>
regulator: fixed: reject incompatible platform devices
Yuan Chen <[email protected]>
bpftool: Fix spurious batch file read error
Adrián Larumbe <[email protected]>
drm/panfrost: Prevent division by 0
Raveendra Talabattula <[email protected]>
drm/komeda: Fix bits parsing of GLB_CORE_ID
Joachim Vandersmissen <[email protected]>
crypto: ecdh - explicitly zeroize private_key
Nathan Chancellor <[email protected]>
extract-cert: Wrap key_pass with '#ifdef USE_PKCS11_ENGINE'
Jan Stancek <[email protected]>
sign-file,extract-cert: use pkcs11 provider for OPENSSL MAJOR >= 3
Jan Stancek <[email protected]>
sign-file,extract-cert: avoid using deprecated ERR_get_error_line()
Jan Stancek <[email protected]>
sign-file,extract-cert: move common SSL helper functions to a header
Matthias Goergens <[email protected]>
udf: don't use eloc after the end of the unallocated space table
Daejun Park <[email protected]>
xfs: add a flag to convert unwritten extents without allocating blocks
Cen Zhang <[email protected]>
ocfs2: validate move extents against a stable EOF
Jesse Zhang <[email protected]>
drm/amdgpu: parse CS IBs at the BO offset their VA mapping starts at
Pei Xiao <[email protected]>
comedi: dt2811: fix shift-out-of-bounds in IRQ check
Yang Zi <[email protected]>
comedi: addi_apci_3xxx: fix subdevice count underallocation
Amir Goldstein <[email protected]>
ovl: inherit FMODE_NONOTIFY when reading directory layers
Andrew Kanner <[email protected]>
selinux: prevent KMSAN warning in selinux_inet_conn_request()
Daejun Park <[email protected]>
xfs: cap the block count of xfs_iomap_write_direct() at one extent
Imre Kaloz <[email protected]>
scsi: aic7xxx: Use default settings on the SGI O2 onboard controllers
Daejun Park <[email protected]>
xfs: mark the inode preallocated for pNFS write layouts past EOF
Josef Bacik <[email protected]>
mm/filemap: don't lose a folio lock wakeup to a signal
Chengfeng Ye <[email protected]>
xfrm: retry inexact policy lookup after node reinsertion
Zhe Liu <[email protected]>
blk-iocost: account flush sequence latency only once
Bart Van Assche <[email protected]>
blk-iocost: Simplify ioc_rqos_done()
Josef Bacik <[email protected]>
mm/mmu_notifier: finish non-blocking interval invalidation on error
Jann Horn <[email protected]>
mm: document mmu_notifier_invalidate_range_start_nonblock()
Sean Christopherson <[email protected]>
KVM: x86/mmu: Cap number of parent PTEs per SP at 1000 (the arbitrary rmap limit)
Yingjie Wang <[email protected]>
nvmet: reject keep-alive timeouts that would overflow
David Hildenbrand (Arm) <[email protected]>
mm/shmem: make shmem_file() check the file's inode
Zhou Qiuyue <[email protected]>
ipv6: raw: fix use-after-free in rawv6_send_hdrinc()
Luis Gerardo Lopez Hernandez <[email protected]>
ALSA: hda/realtek: Fix internal speakers on Acer Aspire AL16-31P
Jinjie Ruan <[email protected]>
arm64: kexec_file: Fix elf_headers memory leak in retry loop
Alex Hung <[email protected]>
drm/amd/display: Avoid closing unowned DDC pins
Sean Christopherson <[email protected]>
KVM: x86: Conditionally resched when restarting REP string emulation
Hou Wenlong <[email protected]>
KVM: x86: Exit to userspace if emulation prepared a completion callback
Joseph Qi <[email protected]>
ocfs2: read the xattr entry hash before defragmenting the bucket
Joseph Qi <[email protected]>
ocfs2: do not read the entry array of an empty xattr bucket
Joseph Qi <[email protected]>
ocfs2: use the stored hash when checking xattr bucket collision
Yingjie Wang <[email protected]>
scsi: bsg: Report synchronous data copyback failures
renpanpan <[email protected]>
drm/amdgpu: Only enable HDMI audio if display supports it
Guenter Roeck <[email protected]>
hwmon: (coretemp) Check for NULL platform device in hotplug callbacks
David Hildenbrand (Arm) <[email protected]>
fork: take mmap_lock before copying mm_struct
Thorsten Blum <[email protected]>
hwrng: virtio - prevent use-after-free after a failed restore
Josef Bacik <[email protected]>
mm/filemap: read mapping->a_ops->free_folio under i_lock
Cong Zhang <[email protected]>
virtio_blk: use synchronous quiesce in virtblk_freeze_priv()
Cen Zhang (Microsoft) <[email protected]>
apparmor: fix query_data() output overlapping the lookup key
Gregory Price <[email protected]>
mm/userfaultfd: compare exact registration modes before skipping
Chris Mason <[email protected]>
mm/memory: reject remote COW faults on PFN mappings
Chris Down <[email protected]>
mm: make swapoff interruptible when unusing mms/shmem
Eklavya Singh <[email protected]>
ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute
David Hildenbrand (Arm) <[email protected]>
mm/vma: don't leak the charge for stack growth
Daejun Park <[email protected]>
nvme: unregister when pr_register() is given a zero new key
Jesse Zhang <[email protected]>
drm/amdgpu: don't walk the CS chunks when allocating them failed
Guenter Roeck <[email protected]>
hwmon: (tmp108) Fix initial conversion delay and wait until ready
Guenter Roeck <[email protected]>
hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp()
Myeonghun Pak <[email protected]>
fbdev: kyro: Release WC setup on registration failure
Giovanni Di Santi <[email protected]>
fbdev: kyro: Use devm_ioremap_wc() for screen mem
Giovanni Di Santi <[email protected]>
fbdev: kyro: Use devm_ioremap() for mmio registers
Matthias Goergens <[email protected]>
udf: fix preallocation discarding before an empty allocation extent
Chris Mason <[email protected]>
mm/huge_memory: fix truncate racing with PMD zapping
Chris Mason <[email protected]>
aio: fix NULL deref when a fault races ring truncation
Chengfeng Ye <[email protected]>
l2tp: snapshot sequencing state when building transmit headers
Fuad Tabba <[email protected]>
KVM: arm64: vgic-its: Don't map an LPI from more than one event
Yu Zhang <[email protected]>
scsi: target: Fix demo-mode dynamic ACL dev-entry UAF vs LUN teardown
Jesse Zhang <[email protected]>
drm/amdgpu: keep the CS user fence BO in GTT
Yuho Choi <[email protected]>
iommu/virtio: Reset device before deleting virtqueues on probe failure
Krzysztof Kozlowski <[email protected]>
drm/msm/hdmi: Handle msm_hdmi_power_on() errors during .atomic_pre_enable()
Chris Mason <[email protected]>
ovl: look up the index by the decoded origin
Yifei Gao <[email protected]>
9p/xen: fix refcount leak in p9_xen_response() on wrong tag
Josef Bacik <[email protected]>
mm/mremap: fix moving PUD leaves
Chris Mason <[email protected]>
backing-file: always end a queued write
Will Deacon <[email protected]>
tools: linux/types.h: Add 128-bit integer types for arm64 UAPI structures
Takashi Iwai <[email protected]>
ALSA: pcm: Prevent O_APPEND open on OSS streams
Cen Zhang <[email protected]>
ocfs2: cache the mount context for dentry lock callbacks
Christophe JAILLET <[email protected]>
ocfs2: constify struct ocfs2_lock_res_ops
John Johansen <[email protected]>
apparmor: on failed load ensure profile files are removed before parent
Konstantin Khorenko <[email protected]>
selftests/core: fix unshare_test with large fs.nr_open
Al Viro <[email protected]>
selftests:core: test coverage for dup_fd() failure handling in unshare_fd()
Chengfeng Ye <[email protected]>
mm/ksm: mark migration stores with WRITE_ONCE()
Prike Liang <[email protected]>
drm/amdgpu: finish GPU recovery callbacks before restarting schedulers
Daejun Park <[email protected]>
xfs: don't skip free extents of the longest length in a whole-AG FITRIM
Chao Yu <[email protected]>
f2fs: fix to fetch ino via ino_of_node() under cache lock
Amir Goldstein <[email protected]>
ovl: inherit FMODE_NONOTIFY when opening directory realfiles
Darong Lu <[email protected]>
libceph: initialize CRUSH choose argument weights
Chao Yu <[email protected]>
f2fs: fix to update superblock crc in sanity_check_area_boundary()
Wei Yang <[email protected]>
mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()
Georgia Garcia <[email protected]>
apparmor: remove fs entries created by a failed policy load
David Hildenbrand (Arm) <[email protected]>
mm/userfaultfd: wake waiters when registration modes are removed
Jake Labelle <[email protected]>
nilfs2: validate directory position after llseek in readdir
Christian Brauner <[email protected]>
proc: don't let an entry below /proc/<pid>/net be a mountpoint
Al Viro <[email protected]>
switch procfs from d_set_d_op() to d_splice_alias_ops()
Al Viro <[email protected]>
new helper: d_splice_alias_ops()
Al Viro <[email protected]>
procfs: kill ->proc_dops
Christian Brauner <[email protected]>
proc: add proc_splice_unmountable()
Al Viro <[email protected]>
/proc/sys: use d_splice_alias() calling conventions to simplify failure exits
Cheng Yongkang <[email protected]>
io_uring/timeout: count cancelled timeouts in cq_timeouts
Peter Ujfalusi <[email protected]>
ALSA: compress: fix buffer leak on failed SET_PARAMS
guolingxing <[email protected]>
btrfs: prevent deleting the wrong subvolume by ID
Yao Yiqi <[email protected]>
fbcon: Rebuild rotated font buffer on font change
David Hildenbrand (Arm) <[email protected]>
mm/ksm: fix use of a freed anon_vma at swap-in
Yizhou Zhao <[email protected]>
9p/xen: drain response work after unbinding IRQ
Eric Dumazet <[email protected]>
inet: frags: limit the truesize of a reassembly queue
Fang Xieyan <[email protected]>
kgdb: Fix buffer overflow in the 'M' and 'X' packet handlers
Bhaskar Chowdhury <[email protected]>
kernel: debug: Ordinary typo fixes in the file gdbstub.c
Kyle Zeng <[email protected]>
net/packet: check TX_RING fragments before memory accounting
Chuck Lever <[email protected]>
SUNRPC: Copy the deferred RPC Call from the head buffer
Linus Torvalds <[email protected]>
assoc_array: keep gc's cleanup out of the live tree on allocation failure
Linus Torvalds <[email protected]>
assoc_array: don't chain a new shortcut onto an existing one
Linus Torvalds <[email protected]>
assoc_array: choose between splitting a node and a shortcut without gotos
Linus Torvalds <[email protected]>
assoc_array: move shortcut creation into a function of its own
Linus Torvalds <[email protected]>
assoc_array: move node splitting into a function of its own
Linus Torvalds <[email protected]>
assoc_array: fill the segment cache in one place
Linus Torvalds <[email protected]>
assoc_array: move in-place insertion into a function of its own
Linus Torvalds <[email protected]>
assoc_array: don't lose objects when a root shortcut is split at level 4
Linus Torvalds <[email protected]>
assoc_array: don't lose objects when a shortcut is split on a word boundary
Len Baker <[email protected]>
assoc_array: Avoid open coded arithmetic in allocator arguments
Zhengchao Shao <[email protected]>
ip6mr: fix UAF issue in ip6mr_sk_done() when addrconf_init_net() failed
Ahelenia Ziemiańska <[email protected]>
splice: fsnotify_access(fd)/fsnotify_modify(fd) in vmsplice
Ahelenia Ziemiańska <[email protected]>
splice: fsnotify_access(in), fsnotify_modify(out) on success in tee
Eric Dumazet <[email protected]>
dlm: fix send buffer backpressure handling
Runyu Xiao <[email protected]>
media: sti: delta: use unaligned accessors for MJPEG SOF fields
Niklas Cassel <[email protected]>
ata: libata: Do not leave ata_host_stop() registered when activation fails
Armaan Sandhu <[email protected]>
lib/cmdline: fix get_options() count and overflow with large ranges
Olivier Kaloudoff <[email protected]>
drm/amdkfd: stop restore retries on device unplug
Guangshuo Li <[email protected]>
media: atmel-isi: release unregistered video device on remove
Tim Douglas <[email protected]>
power: supply: generic-adc-battery: fix status with no supplier
Nikolaj Klitlund Børty <[email protected]>
Bluetooth: btusb: Add device ID for Realtek RTL8761BUE (StarTech AV53C1)
Myeonghun Pak <[email protected]>
fbdev: nvidia: Release write-combining handle on probe failure
Maurizio Casciano <[email protected]>
power: supply: core: Honor supplied-from with CONFIG_OF=y
Francesco Orlando <[email protected]>
Input: xpad - add GameSir Nova Lite support
Myeonghun Pak <[email protected]>
wifi: mt76: mt7615: restore DBDC state after ext PHY failure
Niklas Cassel <[email protected]>
ata: libahci: Free the IRQs when activating a multi-IRQ host fails
Niklas Cassel <[email protected]>
ata: ahci: print the lpm policy on boot
Wentao Liang <[email protected]>
power: supply: ltc2941: Fix of_node reference leak in ltc294x_i2c_probe()
David Heidelberg <[email protected]>
mfd: wcd934x: set DMA mask on parent to silence "DMA mask not set"
Christophe JAILLET <[email protected]>
mfd: wcd934x: Fix an error handling path in wcd934x_slim_probe()
Maíra Canal <[email protected]>
mfd: wcd934x: Replace legacy gpio interface for gpiod
Olivier Kaloudoff <[email protected]>
ALSA: usb-audio: Add mic resolution quirk for Logitech Webcam C200
Breno Leitao <[email protected]>
dcache: report a Tasks-RCU quiescent state in dentry_kill()
Guangshuo Li <[email protected]>
crypto: omap-sham - fix crypto engine cleanup
Yingjie Wang <[email protected]>
scsi: handle out-of-range SG_SET_TIMEOUT values
Fan Wu <[email protected]>
virtio_fs: read the vring size under virtio_fs_mutex in ->get_tree
David Hildenbrand (Arm) <[email protected]>
mm/gup: check for overflow when converting nr_pages to bytes in GUP-fast
Samarth Narang <[email protected]>
mm/ksm: keep soft-dirty when merging a page
Marc Zyngier <[email protected]>
KVM: arm64: Turn vcpu->arch.pause into a counter
Henrik Enquist <[email protected]>
ALSA: aloop: Update the PCM Slave controls for a matching playback
Henrik Enquist <[email protected]>
ALSA: aloop: Don't constrain playback params in notify mode
Cen Zhang <[email protected]>
ocfs2/cluster: initialize heartbeat regions before publishing them
Daeho Jeong <[email protected]>
f2fs: release a removed xattr node in roll-forward recovery
Krzysztof Kozlowski <[email protected]>
drm/msm/hdmi_phy: Cleanup after msm_hdmi_phy_resource_enable() failure
Dmitry Baryshkov <[email protected]>
drm/msm/hdmi: fill the pwr_regs bulk regulators
Dmitry Baryshkov <[email protected]>
drm/msm/hdmi: use bulk regulator API
Sumit Kumar <[email protected]>
PCI: dwc: Set DMA_BYPASS bit in outbound IATU CTRL2 register
Hung-Jui Lin <[email protected]>
posix-timers: Report zero remaining time for disarmed SIGEV_NONE timers
Daehyeon Ko <[email protected]>
ipv6: remove ifaddr from hash during ifdown list cleanup
Eric Dumazet <[email protected]>
ipv6/addrconf: allocate a per netns hash table
Eric Dumazet <[email protected]>
ip6mr: fix use-after-free in ip6mr_sk_done()
Eric Dumazet <[email protected]>
ip6mr: ip6mr_sk_done() can exit early in common cases
Breno Leitao <[email protected]>
ACPI: APEI: accumulate the queued flag across error sections
Adrian Ambrozewicz <[email protected]>
gpiolib: cdev: don't set GPIOD_FLAG_IS_OUT
Radiy Zhambakiev <[email protected]>
mfd: tps65217: Use devres for IRQ domain and wake teardown
Jesse Zhang <[email protected]>
drm/ttm: return an error when kmapping a BO without pages
Lorenzo Stoakes (ARM) <[email protected]>
fbdev: udlfb: check for fb_deferred_io_init() error
Stanley Jhu <[email protected]>
scsi: ufs: bsg: Reject UIC commands with a non-zero result byte
Christian Brauner <[email protected]>
iomap: don't mark unwritten parts of a folio uptodate
Breno Leitao <[email protected]>
mm/shmem: report RCU-tasks quiescent states while undoing a range
Linmao Li <[email protected]>
PCI: cadence: Store the core controller in platform drvdata
Giorgi Kobakhia <[email protected]>
ocfs2: fix array out of bound access in __ocfs2_find_path()
Edward Adam Davis <[email protected]>
ocfs2: fix oob in __ocfs2_find_path
Hsiu-Hsien Lee <[email protected]>
ext4: fix fast commit replay failing on a read-only mount
sung byeongchan <[email protected]>
ceph: validate MDS reply fragtree split array length
Alex Kazinsky <[email protected]>
ASoC: tlv320aic32x4: Prevent division by zero in divider callbacks
Guiting Shen <[email protected]>
ASoC: tlv320aic32x4: Fix the divide by zero
Maxime Ripard <[email protected]>
ASoC: tlv320aic32x4: div: Switch to determine_rate
Nikolaos Karaolidis <[email protected]>
fs: don't lose inodes that another LRU walker is isolating
Jérémy Jean <[email protected]>
ceph: fix 32-bit overflow in readdir reply count check
Ridham Khurana <[email protected]>
hwmon: (lm70) Fix rounding of negative temperatures
Joanne Koong <[email protected]>
fuse: don't drop destination page cache on a zero byte copy reply
Ma Ke <[email protected]>
i2c: acpi: Fix adapter reference leak in i2c_acpi_new_device_by_fwnode()
Hans de Goede <[email protected]>
i2c: acpi: Add i2c_acpi_new_device_by_fwnode() function
Hongyan Xu <[email protected]>
mfd: da903x: Cancel IRQ work during teardown
Tingjie Zhong <[email protected]>
fbdev: bitblit: Fix glyph clipping when fbcon pans
Nikolaos Karaolidis <[email protected]>
fs: rotate inodes whose page cache could not be dropped
Sahaj Chaudhari <[email protected]>
gpio: pca953x: Handle direction register read errors in IRQ paths
Andy Shevchenko <[email protected]>
gpio: pca953x: Utilise temporary variable for struct gpio_chip
Alexander Sverdlin <[email protected]>
tpm: tpm2_probe: propagate transport errors
John Johansen <[email protected]>
apparmor: fix refcount leak in aa_get_newest_profile()
Balakrishnan Sambath <[email protected]>
media: microchip-isc: do not touch WB registers when not streaming
Maciej Kucharek <[email protected]>
drm/amdgpu: reset SI ASIC on MacBookPros with VRAM at 0
Armin Wolf <[email protected]>
hwmon: (acpi_power_meter) Fix 18.45 TW bug
Alexey Charkov <[email protected]>
nvmem: rockchip-otp: Serialize reads
Takashi Iwai <[email protected]>
ALSA: emux: Stop voices before freeing zones in all cases
Oswald Buddenhagen <[email protected]>
ALSA: emux: simplify snd_sf_list.callback handling
Oswald Buddenhagen <[email protected]>
ALSA: emux: centralize & improve patch info validation
Oswald Buddenhagen <[email protected]>
ALSA: emu10k1: prune vestiges of SNDRV_SFNT_SAMPLE_{BIDIR,REVERSE}_LOOP support
Jesse Zhang <[email protected]>
drm/amdgpu: reject CS chunks too large for kvmalloc()
Luigi Lauro <[email protected]>
drm/amd/display: take a runtime PM reference only when a CRTC turns on
Nickolai Zeldovich <[email protected]>
mm/mlock: use a long for the page count in mlock_fixup()
Wentao Liang <[email protected]>
xen/gntdev: Fix gntdev_dmabuf ref leak in dmabuf_exp_wait_released()
Yao Yiqi <[email protected]>
fbcon: Retry rotated font allocation after failure
Keita Morisaki <[email protected]>
drm/amd/display: Fix swap in median3() for DSC rate control
Peter Ujfalusi <[email protected]>
ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn
Takashi Iwai <[email protected]>
ALSA: emux: Fix UAF of soundfont zones at note-on
Myeonghun Pak <[email protected]>
leds: ktd2692: Pass context to regulator cleanup
Runyu Xiao <[email protected]>
block: amiflop: synchronize flush timer before track flush
Joanne Koong <[email protected]>
fuse: don't launder folios of a bad inode
Kaixuan Li <[email protected]>
f2fs: bound the SIT/NAT bitmaps by the checkpoint pack
Stanley Jhu <[email protected]>
scsi: ufs: bsg: Clear the reply buffer before use
Jiri Slaby (SUSE) <[email protected]>
serial: 8250_exar: store the GPIO platform device in struct exar8250
Weibin Liu <[email protected]>
spi: jcore: fix divide-by-zero when speed_hz is zero
Jay Fang <[email protected]>
spi: jcore: Fix trailing statements should be on next line
Janne Grunau <[email protected]>
wifi: brcmfmac: cfg80211: Report port_authorized for 4-way HS offload
Jiaming Zhang <[email protected]>
nilfs2: force clear dirty state when restoring from the shadow map
Myeonghun Pak <[email protected]>
soc: fsl: dpio: Free the IRQ before releasing the I/O object
Geraldo Nascimento <[email protected]>
PCI: rockchip: Drive at 2.5 GT/s, error other speeds
Yehyeong Lee <[email protected]>
xen/pcifront: check that an AER callback exists before calling it
Uwe Kleine-König <[email protected]>
xen/pcifront: Drop pcifront_common_process() tests of pcidev, pdrv
Guangshuo Li <[email protected]>
irqchip/imx-intmux: Fix runtime PM teardown on remove
Uwe Kleine-König <[email protected]>
irqchip/imx-intmux: Convert to platform_driver::remove_new() callback
Sung Byeongchan <[email protected]>
virtiofs: validate fixed-output response length
Yuto Ohnuki <[email protected]>
virtiofs: add FUSE protocol validation
Hugo Villeneuve <[email protected]>
serial: sc16is7xx: declare MCR and IER as volatile registers
Nanzhe Zhao <[email protected]>
f2fs: remove mappedtodisk flag usage in mmap write path
Lorenzo Stoakes (ARM) <[email protected]>
fbdev: smscufx: check for fb_deferred_io_init() error
Josef Bacik <[email protected]>
net: skbuff: don't BUG() on a bad csum_start in skb_copy_and_csum_dev()
Runyu Xiao <[email protected]>
ALSA: mpu401: shut down timer before freeing MPU
Tobias Schumacher <[email protected]>
s390/pci: Add error cleanup in zpci_directed_irq_init()
Andrey Misiurov <[email protected]>
fbdev: core: Initialize modelist in framebuffer_alloc()
Fan Wu <[email protected]>
media: rockchip: rga: quiesce IRQ before releasing m2m state
Sven Püschel <[email protected]>
media: rockchip: rga: use clk_bulk api
Hans Verkuil <[email protected]>
media: rockchip: rga: fix clock cleanup
Marc Zyngier <[email protected]>
KVM: arm64: Move IN_GUEST_MODE ahead of state being loaded
Tim Menninger <[email protected]>
xprtrdma: prevent disconnect feedback during endpoint teardown
Chuck Lever <[email protected]>
xprtrdma: Remove the RPC/RDMA QP event handler
David Hildenbrand (Arm) <[email protected]>
mm: disallow ioremap'ing ordinary RAM in generic_access_phys()
Marco Scardovi <[email protected]>
platform/x86: asus-wmi: Serialize WMI method evaluations with a mutex
Krzysztof Karas <[email protected]>
iommu/dma: Catch scatterlist length overflows
Bui Viet Dung <[email protected]>
Bluetooth: hci_debugfs: Pin module for debugfs file operations
Luiz Augusto von Dentz <[email protected]>
Bluetooth: hci_core: Move all debugfs handling to hci_debugfs.c
Claire Chang <[email protected]>
Bluetooth: Move force_bredr_smp debugfs into hci_debugfs_create_bredr
Peter Ujfalusi <[email protected]>
ALSA: hda/hdmi: clamp sad_count in ELD proc write handler
Myeonghun Pak <[email protected]>
mfd: twl-core: Unregister the auxiliary platform device on unbind
Thorsten Blum <[email protected]>
mfd: twl-core: Use i2c_check_functionality as boolean value
Uwe Kleine-König <[email protected]>
mfd: twl: Remove platform data support
Guangshuo Li <[email protected]>
mfd: ab8500: Fix child device leaks on probe failure
Linus Walleij <[email protected]>
mfd: ab8500: Drop bm disable parameter
Geraldo Nascimento <[email protected]>
PCI: rockchip-host: Do not attempt 5.0 GT/s retraining
Takashi Iwai <[email protected]>
ALSA: line6: Handle period elapsed calls outside the locks
Gregory Price <[email protected]>
mm/madvise: use folio_trylock() in the cold/pageout PMD split
Ethan Nelson-Moore <[email protected]>
ata: sata_inic162x: remove dangerous broken driver
Mikulas Patocka <[email protected]>
dm-writecache: report I/O error if flush failed
Wentao Liang <[email protected]>
media: vpif_capture: Fix i2c adapter reference leak in vpif_probe()
Myeonghun Pak <[email protected]>
ASoC: stm: stm32_i2s: request IRQ after regmap initialization
bui duc phuc <[email protected]>
ASoC: stm: stm32_i2s: Drop redundant error messages
Olivier Moysan <[email protected]>
ASoC: stm32: i2s: remove irqf_oneshot flag
Ryusuke Konishi <[email protected]>
nilfs2: ignore non-fatal signals during synchronous log write wait
Bartosz Golaszewski <[email protected]>
dmaengine: qcom: bam_dma: free interrupt before the clock in error path
Vishnu Santhosh <[email protected]>
dmaengine: qcom: bam_dma: Defer IRQ trigger type to device tree
Tom Verdonck <[email protected]>
hwmon: (tmp108) Fix jiffies wraparound in conversion-ready check
Yunpeng Tian <[email protected]>
udf: validate the device specification EA before using it
Marek Czernohous <[email protected]>
drm/nouveau/pci: use config-space MSI rearm on MCP79/MCP7A (NVAC)
Naman Jain <[email protected]>
x86/init: Initialize wall clock in get_rtc_noop()
Hungyu Lin <[email protected]>
mm/migrate: untag addresses when querying page nodes
YuanZhe Liu <[email protected]>
ALSA: hwdep: Serialize DSP load requests
David Hildenbrand (Arm) <[email protected]>
mm/madvise: fix data loss from MADV_FREE on a KSM page
Takashi Iwai <[email protected]>
ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect
Daehyeon Ko <[email protected]>
splice: avoid stale f_pos writeback on error
Ahelenia Ziemiańska <[email protected]>
splice: always fsnotify_access(in), fsnotify_modify(out) on success
Chung-Chiang Cheng <[email protected]>
splice: report related fsnotify events
Al Viro <[email protected]>
take the guts of file-to-pipe splice into a helper function
Al Viro <[email protected]>
do_splice_to(): move the logics for limiting the read length in
Kyle Zeng <[email protected]>
mm/page_vma_mapped: continue past nonmatching huge PMDs
Dominik Maier <[email protected]>
loop: check for read-write open mode on LOOP_SET_STATUS in lo_compat_ioctl()
Ido Schimmel <[email protected]>
ipmr, ip6mr: validate packets injected into the register vif on xmit
Josef Bacik <[email protected]>
mm/hugetlb: unmap the page where the other VMA maps it
Sinan Turunc <[email protected]>
ALSA: usb-audio: Bound packet copies by the PCM buffer size
Muhammad Bilal <[email protected]>
platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()
Jorge Lopez <[email protected]>
platform/x86: Move existing HP drivers to a new hp subdir
Mario Limonciello <[email protected]>
platform/x86: Rename hp-wireless to wireless-hotkey
Elia Devito <[email protected]>
platform/x86: hp-wmi: rename "thermal policy" to "thermal profile"
Michal Pecio <[email protected]>
usb: xhci: Fix bounce buffer overflow
Xiang Mei <[email protected]>
ceph: fix integer overflow in the snap trace bounds check
Pedro Falcato <[email protected]>
mm/madvise: atomically clear the young bit on THP MADV_COLD
Vaibhav Nagare <[email protected]>
bnxt_en: don't leave an XDP program installed when the open fails
Kyle Zeng <[email protected]>
netfilter: nf_reject: initialize IPCB at inet ingress
Jun Yang <[email protected]>
sctp: re-point retained control chunks on association migration
David Lee <[email protected]>
sctp: hold shkey across socket migration
Seungjin Bae <[email protected]>
usb: typec: ucsi: ccg: Validate altmode index in GET_CURRENT_CAM response
Jérémy Jean <[email protected]>
crypto: ecc - Handle exceptional points in Shamir multiplication
Sergey Senozhatsky <[email protected]>
ext4: fix ABBA deadlock in ext4_rmdir()
Abdifatah Suruur <[email protected]>
xen/gntdev: prevent private mappings from becoming writable
Jinwang Li <[email protected]>
Bluetooth: L2CAP: Ignore connection responses with wrong ident
Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Only accept connection responses to outstanding requests
Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Reject signalling responses in invalid states
Punnay Sharma <[email protected]>
staging: media: av7110: fix sp8870 initialization failure state
Rosen Penev <[email protected]>
mtd: rawnand: ndfc: use devm_platform_ioremap_resource()
Rosen Penev <[email protected]>
mtd: rawnand: ndfc: fix gcc uninitialized var
Sean Young <[email protected]>
media: redrat3: Error path leaves device in transmitting state
Esben Haabendal <[email protected]>
iio: light: ltr501: Power down chip if request irq fails
Jiaming Zhang <[email protected]>
gfs2: reject invalid inode sizes
Tom Verdonck <[email protected]>
hwmon: (tmp102) Fix jiffies wraparound in conversion-ready check
Runyu Xiao <[email protected]>
ALSA: usb-audio: Protect Roland control activation
Wentao Liang <[email protected]>
mtd: mtdsuper: Fix MTD device reference leak in mtd_get_sb()
Fan Wu <[email protected]>
media: mediatek: vpu: free IRQ before destroying watchdog workqueue
Christophe JAILLET <[email protected]>
media: mtk-vpu: Remove redundant 'flush_workqueue()' calls
Karl Mehltretter <[email protected]>
KVM: arm64: vgic-v3: Undo assignment on iodev registration failure
Fabio Cesari <[email protected]>
iio: light: isl29028: fix runtime PM reference leak on error paths
Sean Christopherson <[email protected]>
KVM: x86/mmu: Bug the VM if KVM attempts to walk more levels than the MMU has
Sean Christopherson <[email protected]>
KVM: x86/mmu: Bug the VM if a vCPU ends up in long mode without PAE enabled
Sean Christopherson <[email protected]>
KVM: nSVM: Ignore EFER.LMA if EFER.LME=0 when preparing L2 state
Balakrishnan Sambath <[email protected]>
media: microchip-isc: don't sleep in the clk .is_enabled callback
Balakrishnan Sambath <[email protected]>
media: microchip-isc: synchronize the IRQ before disabling clocks on stop
Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix WB offset and gain register field masking
Weili Qian <[email protected]>
crypto: hisilicon/hpre - fix GFP flags for dma_alloc_coherent
Stanislaw Gruszka <[email protected]>
wifi: mac80211: queue frames while off-channel
Andre Przywara <[email protected]>
of/fdt: Ignore disabled memory nodes
YuanZhe Liu <[email protected]>
ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close
Takashi Iwai <[email protected]>
ALSA: bcd2000: Fix race between rawmidi and disconnect
YuanZhe Liu <[email protected]>
ALSA: usx2y: Refuse a retried DSP load after a failure
Eric Biggers <[email protected]>
lib/crypto: mips: Disable Octeon SHA code on little-endian kernels
Sven Eckelmann <[email protected]>
batman-adv: tt: don't drop local events queued during TVLV update
Sven Eckelmann <[email protected]>
batman-adv: tt: only update flags for TT events
Sven Eckelmann <[email protected]>
batman-adv: tt: ignore ROAM flag of received ADD changes
Sven Eckelmann <[email protected]>
batman-adv: tt: send ROAM_ADV on each roamed back client
Sven Eckelmann <[email protected]>
batman-adv: tt: clear ROAM flag when re-adding a pending local client
Sven Eckelmann <[email protected]>
batman-adv: tt: only transmit local ROAM flag together with DEL
Sven Eckelmann <[email protected]>
batman-adv: stop originator purge worker before freeing TT
Sven Eckelmann <[email protected]>
batman-adv: tpmeter: fix u32 truncation of reported bytes
Chengfeng Ye <[email protected]>
batman-adv: Close OGM aggregation before transmission
Sven Eckelmann <[email protected]>
batman-adv: Limit number of aggregated packets directly
Daehyeon Ko <[email protected]>
crypto: algif_skcipher - rewind rounded output bytes
Jan Kara <[email protected]>
udf: Make sure there's enough space for LVID implementation use field
Jan Kara <[email protected]>
udf: Avoid invalid LVID used on mount
Daehyeon Ko <[email protected]>
aio: prevent eventfd/epoll recursion on poll
Zhenhao Wan <[email protected]>
drm/nouveau/svm: drain fault handler before freeing svmm
Suravee Suthikulpanit <[email protected]>
iommu/amd: Force device table to maximum size
Joanne Chang <[email protected]>
f2fs: allow pinning empty compressed files
Jiucheng Xu <[email protected]>
f2fs: force out-place update for all writes on compressed file
Federico Musto <[email protected]>
net: atl1c: drop oversized RX frames instead of panicking
Ard Biesheuvel <[email protected]>
efi/libstub: arm64: Don't use the platform register x18
Igor Velkov <[email protected]>
genirq/kexec: Do not take the bus lock of an interrupt chip on the crash path
Ricardo Ribalda <[email protected]>
media: uvcvideo: Force UVC version for Avermedia GC515
Laurent Pinchart <[email protected]>
media: uvcvideo: Force UVC version to 1.0a for 1bcf:0b40
Ricardo Ribalda <[email protected]>
media: uvcvideo: Add autosuspend quirk for AVerMedia Live Gamer HD 2
Ricardo Ribalda <[email protected]>
media: uvcvideo: Disable autosuspend for Insta360 Link
Lee Jones <[email protected]>
tracing/histograms: Verify event_call identity when updating synth_event refcount
ChunYuZhiQiang <[email protected]>
can: dev: can_fill_info(): don't wake up controller if interface is down
Zhao Gongyi <[email protected]>
ata: libata-scsi: reject data-in commands with a data-out buffer
Oliver Hartkopp <[email protected]>
can: raw, isotp: copy socket options outside of lock_sock()
Ido Schimmel <[email protected]>
vxlan: Stop rejecting dynamic FDB entries with a nexthop ID
Ping Cheng <[email protected]>
HID: wacom: Setup SW_MUTE_DEVICE according to the order of input registration
Ping Cheng <[email protected]>
HID: wacom: Write shared touch initial status only once
Lee Jones <[email protected]>
HID: wacom: Fix Use-After-Free in wacom_bamboo_pad
Lee Jones <[email protected]>
HID: wacom: Fix Use-After-Free in wacom_intuos_pad
Lee Jones <[email protected]>
HID: wacom: Advertise SW_MUTE_DEVICE capability prior to registration
Ramin Moussavi <[email protected]>
microblaze: restore the ABI argument home area below pt_regs (PTO)
Michal Simek <[email protected]>
microblaze: Do loop unrolling for optimized memset implementation
Michal Simek <[email protected]>
microblaze: Use simple memset implementation from lib/string.c
Kiryl Shutsemau (Meta) <[email protected]>
arm64: sdei: Preserve the interrupted context's exception registers
Kiryl Shutsemau (Meta) <[email protected]>
arm64: sdei: Run the event handler on the kernel vectors
Guanglei Zhu <[email protected]>
ceph: clamp the inline data length in ceph_fill_inline_data()
Oliver Hartkopp <[email protected]>
can: protect the receive lists with a per-device lock
Oliver Hartkopp <[email protected]>
can: replace ARPHRD_CAN type checks with can_get_ml_priv()
Oliver Hartkopp <[email protected]>
can: raw: add missing refcount for memory leak fix
Eric Dumazet <[email protected]>
can: raw: fix lockdep issue in raw_release()
Ziyang Xuan <[email protected]>
can: raw: fix receiver memory leak
Marco Ziliani <[email protected]>
ata: libata-pmp: disable the SEMB port on Marvell 88SM9705
Thorsten Blum <[email protected]>
x86/boot: Fix off-by-one error in sme_clear_pgd()
Breno Leitao <[email protected]>
x86/nmi: Ignore negative NMI handler durations
Shao Mingyin <[email protected]>
nvmet: bound the traddr and trsvcid configfs writes
Imre Kaloz <[email protected]>
MIPS: sgi-ip32: Leave MACE PCI control alone in config accesses
Imre Kaloz <[email protected]>
MIPS: sgi-ip32: Mask MACE PCI interrupts in CRIME only
Imre Kaloz <[email protected]>
MIPS: mm: Fix the cache error vector jump for XKPHYS kernels
Matthias Goergens <[email protected]>
udf: don't let the extent type hide an exhausted free-space table extent
Christian Gmeiner <[email protected]>
drm/etnaviv: Flush the tile status cache through both the PE and BLT
James Clark <[email protected]>
net: ethernet: ti: am65-cpsw-nuss: Enable timestamping of unicast PTP packets
Ray Zhang <[email protected]>
net: count last skb of each sk_backlog pass in __release_sock()
Bryam Vargas <[email protected]>
net/smc: don't spin in smc_rx_recvmsg() while a pipe holds spliced data
Sinan Turunc <[email protected]>
ALSA: usx2y: Guard the playback copy
Sinan Turunc <[email protected]>
ALSA: usx2y: Require a buffer of two URBs
Wentao Liang <[email protected]>
ALSA: caiaq: free the EP4 URB when input setup fails
Sinan Turunc <[email protected]>
ALSA: line6: Reject capture buffers smaller than two packets
Alex Kazinsky <[email protected]>
ALSA: cs46xx: Handle SCB creation failures before dereferencing
Chris Simpson <[email protected]>
ALSA: hda/realtek: Enable bass speakers on Alienware m17 R3
Ilia Mirkin <[email protected]>
drm/nouveau/devinit/gf100-: try to avoid double-running vbios scripts
Zhao Gongyi <[email protected]>
arm64: mm: validate /dev/mem mmap ranges without overflow
Ewan D. Milne <[email protected]>
nvmet: don't return memory contents beyond valid data when reading ANA log page
Jamal Hadi Salim <[email protected]>
net/sched: clamp skb->queue_mapping before indexing the tx queue
Xia Yan <[email protected]>
ipv6: fix device binding after failed datagram connect
David Hildenbrand (Arm) <[email protected]>
mm/ksm: reset the unstable trees of all nodes
Josef Bacik <[email protected]>
mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit
Chris Mason <[email protected]>
mm/mmu_notifier: set ->mm only after mmgrab()
Josef Bacik <[email protected]>
mm/mmu_gather: fix flushing ranges with 4 GiB or larger
Chris Mason <[email protected]>
mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast
Liu Changjie <[email protected]>
can: peak_usb: pcan_usb_fd_decode_buf(): accept short uCAN end-of-list records
Oliver Hartkopp <[email protected]>
can: proc: skip stats calculation after reset in can_stat_update()
Runyu Xiao <[email protected]>
can: proc: reset pkg_stats atomics individually
Oliver Hartkopp <[email protected]>
can: isotp: check the return values of can_rx_register() in isotp_bind()
Daejun Park <[email protected]>
xfs: clamp the pNFS layout range to the maximum file size
Daejun Park <[email protected]>
xfs: clamp a pNFS LAYOUTCOMMIT extent before computing its end
Reid Downing <[email protected]>
xfs: fix wrong compat fields in xfs_ioctl32_bstat_copyin()
Hungyu Lin <[email protected]>
block: Return the soft block size for compat BLKBSZGET
Hungyu Lin <[email protected]>
inotify: do not coalesce rename events
Esben Haabendal <[email protected]>
drm/bridge: nwl-dsi: Limit LCDIF specific sync override
Esben Haabendal <[email protected]>
drm/bridge: nwl-dsi: Cleanup endpoint mux control selection
Kyle Zeng <[email protected]>
net/sched: sch_qfq: prevent aggregate self-replacement
Jianyun Gao <[email protected]>
xfs: fix temporary cursor leak in btree shift corruption paths
Cen Zhang <[email protected]>
ocfs2: wait for filecheck kobject release after a failed add
Cen Zhang <[email protected]>
ocfs2/cluster: unlink socket containers before releasing resources
Cen Zhang <[email protected]>
ocfs2: stop recovery before shutting down local allocators
Cen Zhang <[email protected]>
ocfs2/dlm: serialize migration MLE cleanup on failure
Cen Zhang <[email protected]>
ocfs2: keep locking_state within the cluster connection lifetime
Matheus Alves de Almeida <[email protected]>
fat: hold truncate_lock in fat_write_failed()
Joseph Qi <[email protected]>
ocfs2: do not read the entry array of an empty xattr block
Joseph Qi <[email protected]>
ocfs2: do not index before the entry array when dividing an empty bucket
Joseph Qi <[email protected]>
ocfs2: find the xattr entry again after converting a block to a bucket
Joseph Qi <[email protected]>
ocfs2: find the xattr entry again after defragmenting a bucket
Andrew Morton <[email protected]>
openrisc: export __mulsi3 for modules
Sean Christopherson <[email protected]>
KVM: nVMX: Process each host MSR entry at most once when unwinding failed VM-Entry
Sean Christopherson <[email protected]>
KVM: x86/mmu: Conditionally resched when retrying gPTE walk on A/D update failure
Guenter Roeck <[email protected]>
hwmon: (nct6683) Fix incorrect struct cast in show_pwm() and store_pwm()
Guenter Roeck <[email protected]>
hwmon: (lm87) Fix drvdata type confusion in vrm_show() and vrm_store()
Baek Kyu, Kim <[email protected]>
hwmon: (corsair-cpro) Cache fan target only after a successful command
Fang Xieyan <[email protected]>
vringh: reject empty / undersized indirect descriptor tables
Fang Xieyan <[email protected]>
vringh: bound top-level re-entry into indirect tables
Jose Maria Casanova Crespo <[email protected]>
drm/v3d: Initialize timedout_batches when running a CSD job
Josef Bacik <[email protected]>
mm/memfd: make f_pos accesses atomic
Chris Mason <[email protected]>
mm/mempolicy: charge shared policy nodes
Lu Yao <[email protected]>
drm/i915/gem: Reset err for each fence entry
Jamal Hadi Salim <[email protected]>
bpf: Fix skb_pull() BUG in __bpf_redirect_neigh()
YuanZhe Liu <[email protected]>
ALSA: usx2y: Initialize idle URBs before submitting streams
YuanZhe Liu <[email protected]>
ALSA: us122l: Fix NULL dereference at hwdep open and release
YuanZhe Liu <[email protected]>
ALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()
Yuanhe Shu <[email protected]>
scsi: target: Verify the iSCSI ISID is null-terminated
guolingxing <[email protected]>
btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()
Masafumi Suzuki <[email protected]>
sctp: account for chunk padding in sctp_init_cause()
Sven Eckelmann <[email protected]>
batman-adv: fix skb leak when hard_iface is being released
Sven Eckelmann <[email protected]>
batman-adv: dat: initialize orig_node of unfilled candidate slots
Yuanfu Xie <[email protected]>
9p: don't decrement a server-owned zero nlink
Yehyeong Lee <[email protected]>
9p/xen: validate the response size from the backend
Maíra Canal <[email protected]>
drm/vc4: Publish the output fence outside of job_lock
Zijing Yin <[email protected]>
wifi: cfg80211: fix out-of-bounds read in valid_rule()
Alex Kazinsky <[email protected]>
wifi: rsi: Skip TX aggregation setup for non-QoS frames
Weigang He <[email protected]>
wifi: mac80211: reload TDLS header pointer after skb_linearize()
André Draszik <[email protected]>
drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind
Sabrina Dubroca <[email protected]>
xfrm: espintcp: reorder operations within espintcp_init_sk
Qihang <[email protected]>
xfrm: interface: validate the IP header on xmit
Zhao Zhang <[email protected]>
9p: fix caches_show() out-of-bounds write
Michael Bommarito <[email protected]>
9p/trans_virtio: reject mount tags longer than NAME_MAX at probe
Noam D. Eliyahu <[email protected]>
tg3: Invert restart quirk logic to restrict SNP power-down bypass
Hungyu Lin <[email protected]>
posix-timers: Accept NULL clock_getres() output in stubs
Sahaj Chaudhari <[email protected]>
gpio: pca953x: Preserve wakeup accounting on parent IRQ failure
Henry Martin <[email protected]>
rds: fix out-of-bounds conn_path walks via handshake exthdrs
Richard Patel <[email protected]>
genirq: Move interrupt thread exit_work object to irqaction
Bui Viet Dung <[email protected]>
Bluetooth: selftest: Pin module for selftest debugfs file operations
Kazuki Hanai <[email protected]>
media: mediatek: jpeg: Avoid context access after job finish
Rupesh Majhi <[email protected]>
iio: pressure: dps310: fix CFG_REG bit definitions
Ruoyu Wang <[email protected]>
media: adv748x: Fix endpoint reference leaks on probe failure
Pengpeng Hou <[email protected]>
media: require two-byte Cypress type 04 records
Alexander Sverdlin <[email protected]>
pwm: tiehrpwm: Clear period on disable to allow reconfiguration
Weibin Liu <[email protected]>
spi: bcm-qspi: reject oversized dummy bytes in mspi exec_mem_op
Daejun Park <[email protected]>
jbd2: don't advance j_fc_off before the buffer is recorded
Qais Yousef <[email protected]>
arm64: kprobes: Fix Uexpected kernel BRK exception at EL1
Masami Hiramatsu <[email protected]>
arm64: kprobes: Remove redundant kprobe_step_ctx
Christian Borntraeger <[email protected]>
s390/vmcp: Initialize full session info to zero
Pufan Jin <[email protected]>
spi: zynq-qspi: fix address buffer corruption and support 4-byte address
Rosen Penev <[email protected]>
net: bgmac: enable interrupts only after NAPI is ready
Darrick J. Wong <[email protected]>
xfs: always report scrub errors in tracepoints
Darrick J. Wong <[email protected]>
xfs: jump out of xchk_bmap_check_rmap if fatal signals
Eric Biggers <[email protected]>
raid6: add missing vzeroupper to AVX2 code
Aldo Ariel Panzardo <[email protected]>
xfs: bound da-node entry count against the correct geometry
Darrick J. Wong <[email protected]>
xfs: reject absurdly large xattr value lengths in xchk_xattr_actor
Darrick J. Wong <[email protected]>
xfs: rescan the AGs if incore delalloc counter is negative
Darrick J. Wong <[email protected]>
xfs: allow softlimit with no hardlimit in quota scrub
Qingfang Deng <[email protected]>
pppoe: delete session hash entries by pointer match
Christian Loehle <[email protected]>
ACPI: CPPC: Validate FFH register fields before hardware access
Eric Biggers <[email protected]>
raid6: add missing vzeroupper to AVX-512 code
Eric Biggers <[email protected]>
xor: add missing vzeroupper to AVX code
Eric Biggers <[email protected]>
fsverity: Be more careful with return value of ->get_verity_descriptor()
Eric Biggers <[email protected]>
fs-verity: factor out fsverity_get_descriptor()
Eric Biggers <[email protected]>
fsverity: Explicitly require FMODE_READ to retrieve hashes
Til Kaiser <[email protected]>
mlxsw: Initialize register query payloads
Jiale Yao <[email protected]>
HID: prodikeys: validate fixed-format MIDI reports
Jiri Slaby (SUSE) <[email protected]>
HID: hid-prodikeys: remove struct pk_device
Keqiang Duan <[email protected]>
KVM: x86: Clear hardware HLT state when userspace makes a vCPU not-halted
Sean Christopherson <[email protected]>
KVM: nSVM: Reject KVM_SET_NESTED_STATE if L1 has EFER.LMA=1 && EFER.LME=0
David Howells <[email protected]>
afs: Fix afs to abort the rxrpc call on send error
Zhiling Zou <[email protected]>
SUNRPC: trace an accepted transport before publishing it
Chuck Lever <[email protected]>
NFSD: Map flex file layout IDs through the request's user namespace
Chuck Lever <[email protected]>
NFSD: Complete a cld upcall when copying its reply fails
Chuck Lever <[email protected]>
NFSD: Complete a cld upcall when the daemon closes the pipe
Chuck Lever <[email protected]>
NFSD: Move the cld upcall message out of the caller's stack frame
Jeff Layton <[email protected]>
nfsd: don't offer flexfiles layouts when NFSv3 isn't being served
Benjamin Coddington <[email protected]>
NFSv4/flexfiles: fail I/O to the data server once a lock is lost
Ratnaker Gautam <[email protected]>
smb: client: bound POSIX lock data area by response length
Benjamin Coddington <[email protected]>
NFSv4/pnfs: bound the CB_NOTIFY_DEVICEID array count before allocating
Darrick J. Wong <[email protected]>
xfs: improve dirent bounds checking in scrub and repair
Darrick J. Wong <[email protected]>
xfs: check for buffer overruns when examining local/remote xattr entries
Ratnaker Gautam <[email protected]>
smb: client: validate SMB1 EA list bounds before parsing
Luxiao Xu <[email protected]>
smb: client: fix buffer overflow in SMB2_tcon()
Abdifatah Suruur <[email protected]>
smb: client: fix fiemap wild read on empty truncated response
Chris Mason <[email protected]>
ovl: check that the parents of volatile/dirty are dirs
Chris Mason <[email protected]>
ovl: do not copy up a dentry that was removed
Chris Mason <[email protected]>
ovl: hold a reference on the parent in readdir
Chris Mason <[email protected]>
ovl: do not copy up an xattr value that was never read
Chris Mason <[email protected]>
ovl: take a snapshot of the name for copy up
Eduard Zateev <[email protected]>
smb: client: hold server info until cifsd exits
Kamil Sawicki <[email protected]>
net: limit priority VLAN untag depth
Andrew Stellman <[email protected]>
nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()
Peter Ujfalusi <[email protected]>
ALSA: x86: hdmi: fix chmap array missing terminator entry
Jérémy Jean <[email protected]>
SUNRPC: fix oversized GSS proxy token copy
David Howells <[email protected]>
rxrpc: Fix update of call->tx_pending without holding lock
Chuck Lever <[email protected]>
NFSD: Set nn->cld_net before registering the cld pipe
Abdifatah Suruur <[email protected]>
smb: client: validate the data area in SMB2_read()
Jason Perlow <[email protected]>
wifi: brcmfmac: map msgbuf RX packet IDs bidirectional
Hungyu Lin <[email protected]>
fs: skip copy_file_range write limits when there is no data
Kyle Zeng <[email protected]>
tcp: fix reordering addition overflow in MTU probing
Zhiling Zou <[email protected]>
tcp: check congestion control restriction first
Kunhai Dai <[email protected]>
blk-iocost: abort weight transfer on invalid donation weights
Josef Bacik <[email protected]>
mount: refuse setns() with a shared fs_struct again
Fang Xieyan <[email protected]>
kgdb: Fix buffer overflow in the qRcmd packet handler
Fang Xieyan <[email protected]>
kgdb: Fix buffer overflow in the 'm' packet handler
Guixin Liu <[email protected]>
nvmet: Finish the blk plug when integrity allocation fails
Andrea Parri <[email protected]>
nvmet-fc: only send read data for successful commands
Weiming Shi <[email protected]>
nvmet-rdma: reject short connection requests
Tristan Madani <[email protected]>
ppp: fix stale pointer access after pskb_may_pull in ppp_ccp_peek
Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Keep runtime PM state in sync across codec remove/probe
David Yang <[email protected]>
net: hisilicon: hisi_femac: Stop the receiver before releasing the RX ring
Xia Yan <[email protected]>
macvlan: fix passthru promiscuity accounting while down
Zhongqiu Han <[email protected]>
cpufreq: stats: Fix potential out-of-bounds access in deferred reset
Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Balance the runtime PM disable in codec remove
Eric Dumazet <[email protected]>
ixgbe: reserve TX timestamp after skb preparation
Peter Ujfalusi <[email protected]>
ALSA: hda: Reject codec reset on ASoC (ext_ops) buses
Ido Schimmel <[email protected]>
ipmr: fully initialize the synthetic IP header in ipmr_get_route()
Jiayuan Chen <[email protected]>
bonding: fix out-of-bounds read of arp_ip_target
Wei Jie Law <[email protected]>
net: usb: pegasus: check rx pkt_len against the received length
Val Packett <[email protected]>
ASoC: qcom: qdsp6: q6afe: fix clk vote response type mismatch
sung byeongchan <[email protected]>
ceph: validate encoded xattr name lengths
sung byeongchan <[email protected]>
ceph: bound name skips in ceph_mdsmap_decode() by the message end
Yuanfu Xie <[email protected]>
ceph: clamp MDS reply result code to the errno range
Jérémy Jean <[email protected]>
libceph: fix out-of-bounds reads from repeated CRUSH bucket entries
Wentao Liang <[email protected]>
ceph: Fix mds session leak in __open_export_target_session()
Wentao Liang <[email protected]>
ceph: Fix xattr buffer leak in __send_cap()
Felix Hoffmann <[email protected]>
libceph: reject mismatched CRUSH weight-set sizes
Raphael Zimmer <[email protected]>
libceph: Fix multiple unsafe decodes in ceph_oloc_decode()
Raphael Zimmer <[email protected]>
libceph: Fix unsafe decode in ceph_redirect_decode()
Xiubo Li <[email protected]>
libceph: only set read_from_replica on read requests
Hungyu Lin <[email protected]>
time/namespace: Fix overflow when converting absolute deadlines
Hungyu Lin <[email protected]>
timers/itimer: Keep a nonzero value at CPU timer expiry
Wang Haoran <[email protected]>
fbdev: atmel_lcdfb: fix list_first_entry() on possibly empty modelist in probe
Cen Zhang <[email protected]>
ocfs2/cluster: remove zero-address nodes from IP tree on teardown
Cen Zhang <[email protected]>
ocfs2: snapshot the dentry name while tracing file release
Hungyu Lin <[email protected]>
compat: avoid double rounding in times()
Ratnaker Gautam <[email protected]>
scsi: libiscsi_tcp: Prevent R2T range check overflow
Stanley Jhu <[email protected]>
scsi: ufs: core: Clear stale UIC result byte before peer DME retries
Thomas Weißschuh (Schneider Electric) <[email protected]>
timekeeping: Update offsets on sequence counter retry in ktime_get_update_offsets_now()
Cen Zhang (Microsoft) <[email protected]>
posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() signal path
Christian Marangi <[email protected]>
i2c: mt7621: fix copying uninitialized kernel stack with reduced page_len
Jean Delu <[email protected]>
parisc: eisa_enumerator: Fix out-of-bounds reads of the EEPROM buffer
Pei Xiao <[email protected]>
tpm: fix zero-length read discarding the pending response
Pei Xiao <[email protected]>
tpm: tpm_nsc: stop using the cleanup callback as dev.release
Pei Xiao <[email protected]>
tpm: tpm_nsc: fix NULL pointer dereference on init failure
Navon John Lukose <[email protected]>
i2c: designware: queue only one read command for block reads
Henry Martin <[email protected]>
tipc: fix broadcast sender hang on last acker departure
Runyu Xiao <[email protected]>
sh: maple: Use the matching IRQ cookie when invoking free_irq()
Joseph Qi <[email protected]>
ocfs2: reserve value tree metadata when moving an xattr into the inode
Joseph Qi <[email protected]>
ocfs2: reserve metadata for a new xattr block and its value tree
Bryam Vargas <[email protected]>
net/smc: queue the copied chunk when smc_tx_sendmsg() faults
Yingjie Wang <[email protected]>
net: unix: reject negative max_dgram_qlen values
Nguyen Ngoc Thang <[email protected]>
net/rds: ib: don't enable IRQs in rds_ib_conn_free()
Daehyeon Ko <[email protected]>
ipv6: do not restart DAD for a dead ifaddr
Daehyeon Ko <[email protected]>
ipv6: initialize temporary ifaddr before publication
Jesse Zhang <[email protected]>
drm/amdgpu: reject ANONONLY userptrs that span multiple VMAs
Maciej Kucharek <[email protected]>
drm/amdgpu: reset VI ASIC on Apple boards with VRAM at 0
Maciej Kucharek <[email protected]>
drm/amdgpu: reset CIK ASIC on Apple boards with VRAM at 0
Nirmoy Das <[email protected]>
blk-mq: clear stale inactive flag on hctx reuse
Peter Ujfalusi <[email protected]>
ALSA: compress: add missing OPEN-state gate to SET_METADATA
Jamal Hadi Salim <[email protected]>
netdevsim: reject cls_bpf programs bound to another device
Baek Kyu, Kim <[email protected]>
hwmon: (sht3x) Return the consumed count for heater writes
Gregory Price <[email protected]>
rtc: cmos: Disable ACPI RTC event before handling it
Wenjie Qi <[email protected]>
f2fs: flush SIT journal during filesystem resize
Sanan Hasanov <[email protected]>
hwmon: (corsair-cpro) Make wait_input_report_lock IRQ safe
Vasiliy Kovalev <[email protected]>
ALSA: hda/via: Apply runtime PM workaround for ASUS X55A
Magnus Lindholm <[email protected]>
alpha: invalidate the local context in flush_icache_user_page()
Magnus Lindholm <[email protected]>
alpha: invalidate the local context in flush_tlb_mm()
Magnus Lindholm <[email protected]>
alpha: fix the local TLB invalidate in the UP flush_tlb_page()
Magnus Lindholm <[email protected]>
alpha: fix the local TLB invalidate in flush_tlb_page()
Magnus Lindholm <[email protected]>
alpha: invalidate the local context in flush_tlb_page()
Magnus Lindholm <[email protected]>
alpha: only use a targeted tbi() when the target mm is really current
Magnus Lindholm <[email protected]>
alpha: run check_mmu_context() from finish_arch_post_lock_switch()
Takashi Iwai <[email protected]>
ALSA: seq: oss: Skip events until fully initialized
Shubham Antil <[email protected]>
RDS/IB: validate receive fragment completions
Seung Min Shin <[email protected]>
sctp: hold transport reference across connect wait
Zixuan Chai <[email protected]>
ipv6: defrag: orphan skb before queuing
Jianyun Gao <[email protected]>
dax: Return errors from dax_core_init()
Radiy Zhambakiev <[email protected]>
mfd: tps65217: Check return value when masking interrupt sources
Radiy Zhambakiev <[email protected]>
mfd: tps65217: Fix NULL pointer dereference on IRQ init failure
Weibin Liu <[email protected]>
spi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer
Ard Biesheuvel <[email protected]>
efi/libstub: Don't replace an existing LINUX_EFI_MEMRESERVE table
Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Don't clamp nvecs to zero when id_bits is 32
Hui Su <[email protected]>
cpufreq: schedutil: Serialize sugov_start() against rate limit updates
Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Use default TxWindow for zero socket option
Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Reject invalid TxWindow in configuration requests
Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Reject mode changes on connected channels
Bui Viet Dung <[email protected]>
Bluetooth: 6lowpan: Pin module for 6lowpan_control debugfs file
Karl Mehltretter <[email protected]>
ARM: 9491/1: alignment: restore uaccess state on emulation fault
Tim Douglas <[email protected]>
serial: pmac_zilog: push received data to the port that received it
Jiri Slaby (SUSE) <[email protected]>
serial: 8250_lpss: do not touch uninitialized line in ehl_serial_exit()
Denis Arefev <[email protected]>
ALSA: cs46xx: fix unit mismatch in DSP code area bounds check
Aamir Ahmed <[email protected]>
lib: decompress_bunzip2: fix integer overflow in run-length decoding
Matt Turner <[email protected]>
lib/decompress_bunzip2: fix off-by-one in run-length bounds check
Karl Mehltretter <[email protected]>
sh: intc: Sort the prio and sense lists after filling them
Jérémy Jean <[email protected]>
nvmet: free the bvec on file namespace range errors
Yehyeong Lee <[email protected]>
nvme-rdma: don't complete a request after a bogus remote invalidation
Samuel Thibault <[email protected]>
speakup: Fix NULL pointer dereference on VT switch + selection
Yuanhe Shu <[email protected]>
mm/page_alloc: do not boost watermarks in kdump capture kernels
Yongjian Mu <[email protected]>
xprtrdma: trim head iovec when the payload arrives via a Write chunk
Ard Biesheuvel <[email protected]>
arm64/efi: Clear PTE_WRITE when applying EFI_MEMORY_RO
Mikulas Patocka <[email protected]>
dm-snapshot: fix crash if dm_io_client_create fails
Johan Hovold <[email protected]>
USB: serial: sierra: fix urb leak on write completion
Anup Vishwakarma <[email protected]>
mailbox: qcom-ipcc: Guard against NULL con_priv in send_data()
Wayne Chang <[email protected]>
usb: typec: ucsi_ccg: Add retry mechanism in ccg_read
Drobyshev Vladimir <[email protected]>
USB: cdc-acm: add VeriFone VX820 device ID
Zongmin Zhou <[email protected]>
slimbus: messaging: fix leaked PM vote on tid allocation failure
Johan Hovold <[email protected]>
USB: serial: usb_wwan: fix urb leak on disconnect
Michael Wyraz <[email protected]>
USB: serial: option: add support for ASR 1286:4e3c modem
Reinhard Speyerer <[email protected]>
USB: serial: option: add Rolling Wireless RN947R
Johan Hovold <[email protected]>
USB: cdc-acm: fix urb leak on disconnect
Myeonghun Pak <[email protected]>
soc: fsl: dpio: Fix cleanup on IRQ registration failure
Wentao Liang <[email protected]>
clk: imx: Fix clock reference leak in imx_obtain_fixed_clock_hw()
Wentao Liang <[email protected]>
clk: imx: Fix clock reference leak in imx_get_clk_hw_by_name()
Anastasios Papagiannis <[email protected]>
mm/nommu: reject wrapping ranges in access_remote_vm()
Jinjie Ruan <[email protected]>
ext4: fix out-of-bounds read in ext4_get_group_info()
Daejun Park <[email protected]>
ext4: don't report delalloc data as a hole on indirect-mapped inodes
Hemanth Selam <[email protected]>
ext4: skip extra isize expansion while unmounting
Matthias Goergens <[email protected]>
fanotify: report names longer than NAME_MAX
Krzysztof Wilczyński <[email protected]>
PCI/sysfs: Pass the device name length in UTF-16 code units
Josef Bacik <[email protected]>
aoe: pull in the headers each received packet type reads
Wentao Liang <[email protected]>
clocksource/drivers/digicolor: Fix clk reference leak on request_irq failure
Wentao Liang <[email protected]>
clocksource/drivers/fttmr010: Fix clk reference leak in error paths
Jiale Yao <[email protected]>
wifi: mt76: mt7615: cancel reset work during unregister
Mark Anthony Agarro <[email protected]>
wifi: mt76: mt76x02: validate TX-status rate index before mac80211 handoff
Joseph Qi <[email protected]>
ocfs2: skip uninitialized lockres in ocfs2_mark_lockres_freeing()
Joseph Qi <[email protected]>
ocfs2: free replay slots in ocfs2_recovery_exit()
Joseph Qi <[email protected]>
ocfs2: exit recovery thread on mount error path
Zi Yan <[email protected]>
USB: gadgetfs: do not WARN about excessively large memory allocations
Michael Liang <[email protected]>
fault-inject: fix dentry leak
OGAWA Hirofumi <[email protected]>
fat: fix fat_ent_write() for reverting the value
DAI RENJIE <[email protected]>
resource: fix lost wakeup when waiting for a muxed region
Nathan Chancellor <[email protected]>
wifi: brcmsmac: Adjust txpwrindex value in nphy_ipa_rxcal_gaintbl_2GHz
Denis Efremov (Oracle) <[email protected]>
floppy: return the drive state flags from the 32-bit FDGETDRVSTAT
Denis Efremov (Oracle) <[email protected]>
floppy: don't store a stack buffer in timeout_message
Chuck Lever <[email protected]>
svcrdma: Grant credits from the clamped sc_max_requests
Runyu Xiao <[email protected]>
perf: xgene: initialize lock before requesting IRQ
Linus Walleij <[email protected]>
power: supply: ab8500_fg: Report sub-percent charge changes
Junrui Luo <[email protected]>
media: vicodec: fix NULL deref on oversized frame
Guangshuo Li <[email protected]>
media: mediatek: vpu: release reserved memory on remove
Michael Freidkin <[email protected]>
media: meson: vdec: size capture planes from the aligned canvas
Aldo Ariel Panzardo <[email protected]>
crypto: nx - validate 'ignore' before subtracting in decompress
Thorsten Blum <[email protected]>
hwrng: core - reject unknown RNG names
Thorsten Blum <[email protected]>
hwrng: ba431 - fix reported byte count
Thorsten Blum <[email protected]>
hwrng: amd - report partial reads in non-blocking mode
ZhaoJinming <[email protected]>
crypto: caam - fix double-free in caam_rsa_set_priv_key_form()
Wei Jie Law <[email protected]>
media: uvcvideo: Fix NULL deref on events for uninitialized controls
Imre Kaloz <[email protected]>
PCI: Disable MSI for ULi M1575 EHCI controller
Mikulas Patocka <[email protected]>
dm-writecache: fix uncommitted_blocks underflow
Mikulas Patocka <[email protected]>
dm-writecache: fix a crash if we attempt to use non-dax device
Kaho Jiang <[email protected]>
media: em28xx: fix double free in em28xx_alloc_urbs
Ginger Li <[email protected]>
media: exynos4-is: Fix a race between s_stream(0) and the interrupt handler
Guangshuo Li <[email protected]>
media: rtl28xxu: fix SDR platform device leak
Wentao Liang <[email protected]>
media: pvrusb2: Fix USB parent device leak in class_dev_create()
Guangshuo Li <[email protected]>
media: tw686x: fix V4L2 device lifetime on probe failure
Tianchu Chen <[email protected]>
staging: rtl8723bs: fix RX buffer OOB write from device-reported length
Johan Hovold <[email protected]>
staging: greybus: uart: fix racy TIOCMIWAIT implementation
Krzysztof Kozlowski <[email protected]>
drm/msm/hdmi_bridge: Correct poweroff/audio cleanup order in post_disable
Runyu Xiao <[email protected]>
m68k: dmasound: Keep the Q40 IRQ handler registered
Runyu Xiao <[email protected]>
ALSA: sgio2audio: Only free successfully requested IRQs
David Heidelberg <[email protected]>
arm64: dts: qcom: sdm845-xiaomi-beryllium: Extend the xbl_mem region
Piotr Kubik <[email protected]>
netfilter: ctnetlink: fix inverted IPv6 address match in dump filter
Orgad Shaneh <[email protected]>
MIPS: mm: do not write a huge TLB entry when the probe misses
Ma Ke <[email protected]>
ASoC: wcd9335: Fix device reference leak in wcd9335_slim_status()
Richard Weinberger <[email protected]>
mtd: Call get_wunit() on the master partition
Wentao Liang <[email protected]>
mtd: maps: l440gx: Fix double put of the PM device in init_l440gx()
Wentao Liang <[email protected]>
mtd: maps: l440gx: Fix double put of the ISA bridge in init_l440gx()
Wentao Liang <[email protected]>
mtd: amd76xrom: Fix PCI device reference leak in amd76xrom_init_one()
Orgad Shaneh <[email protected]>
mtd: cfi_cmdset_0002: cap the write-buffer chunk at 256 bytes on an x8 device
Myeonghun Pak <[email protected]>
mtd: maps: pci: balance PCI enable on cleanup
Wentao Liang <[email protected]>
mtd: rawnand: atmel: Fix MCK clock leak in atmel_nand_controller_init()
Ridham Khurana <[email protected]>
hwmon: (lm95245) Fix negative temperature conversion
Wentao Liang <[email protected]>
regulator: core: Fix coupled regulators reference leak on removal
Guangshuo Li <[email protected]>
ASoC: Intel: atom: Fix platform device leak on probe failure
Jiacheng Xu <[email protected]>
kobject: fix out-of-bounds access in kobject_action_type()
Ryusuke Konishi <[email protected]>
nilfs2: fix deadlock between nilfs_evict_inode() and find_inode()
David Heidelberg <[email protected]>
mfd: wcd934x: Fix NULL pointer dereference on IRQ probe deferral
Wentao Liang <[email protected]>
media: vpif_display: Fix i2c adapter reference leak in vpif_probe()
Wentao Liang <[email protected]>
media: au0828: Fix media device leak in au0828_usb_probe()
Runyu Xiao <[email protected]>
media: adv7180: Initialize mutex before ancillary clients
Myeonghun Pak <[email protected]>
media: tw68: balance PCI enable on cleanup
Myeonghun Pak <[email protected]>
media: cx18: Disable PCI device on probe failure
Myeonghun Pak <[email protected]>
media: go7007: unregister the I2C adapter on USB probe failure
Myeonghun Pak <[email protected]>
media: marvell: manage the MMP camera clock provider
Weili Qian <[email protected]>
crypto: hisilicon/hpre - fix pointer dereference before length check
Mohamad Raizudeen <[email protected]>
crypto: amlogic - Fix IRQ handler return value and fallthrough logic
Yuchao Zhang <[email protected]>
md: validate bblog_size when loading v1.x badblocks metadata
Aldo Ariel Panzardo <[email protected]>
nilfs2: fix checkpoint root lifetime on sysfs errors
Wentao Liang <[email protected]>
drm/mali-dp: Fix runtime PM leak in malidp_crtc_atomic_enable()
Wentao Liang <[email protected]>
ASoC: ti: davinci-mcasp: Fix runtime PM imbalance in __davinci_mcasp_set_clkdiv()
Cong Nguyen <[email protected]>
staging: media: imx: csc-scaler: fix ipu_image_convert_run leak on queue error
Runyu Xiao <[email protected]>
PCI: pciehp: Make 'pciehp_poll_mode' parameter read-only
Hui Peng <[email protected]>
ata: libata-scsi: abort multi-sector pass-through commands when multi_count is 0
Shehryar Ahmad <[email protected]>
iio: accel: adis16201: fix channel order for buffer mode
Karl Mehltretter <[email protected]>
fpga: Fix of_fpga_mgr_get() reference in fpga_mgr_lock() docs
Wentao Liang <[email protected]>
ASoC: codecs: wm8994: Fix runtime PM leak in wm8994_mic_detect()
Wentao Liang <[email protected]>
regulator: core: Fix rdev reference leak in regulator_resolve_supply()
Wentao Liang <[email protected]>
regulator: core: Fix c_rdev reference leak in regulator_resolve_coupling()
Shengming Hu <[email protected]>
cpufreq: conservative: Restrict deferred downscaling to low load
Martin Wilck <[email protected]>
md/raid5: validate payload size before calculating payload_len
Cao Guanghui <[email protected]>
md/raid5: fix NULL pointer dereference in raid5_free_percpu
Cao Guanghui <[email protected]>
md/raid5: track disks array size to fix extra_page leak on error paths
Guangshuo Li <[email protected]>
iio: accel: mma9553: disable autosuspend on remove
Guangshuo Li <[email protected]>
iio: accel: mma9551: disable autosuspend on remove
Guangshuo Li <[email protected]>
iio: accel: kxcjk-1013: Disable autosuspend on remove
Wentao Liang <[email protected]>
ASoC: arizona-jack: Fix runtime PM imbalance in arizona_start_hpdet_acc_id()
Wentao Liang <[email protected]>
ASoC: wm8994: Fix runtime PM imbalance in wm8994_component_probe()
Liu Chao <[email protected]>
usb: fotg210: validate endpoint index in ep0 handlers
Karl Mehltretter <[email protected]>
crypto: atmel-tdes - sync output bounce buffer before DMA
Niklas Cassel <[email protected]>
ata: ahci_st: Assert the power down reset in the probe() error path
Niklas Cassel <[email protected]>
ata: ahci_st: Do not ignore errors when getting the reset controls
Chao Yu <[email protected]>
f2fs: compress: fix to handle race between truncate and writeback
Kyle Zeng <[email protected]>
affs: validate blocks before freeing them
Bradley Morgan <[email protected]>
PM: CPU: Restore synchronize_rcu() to cpu_pm_unregister_notifier()
Karl Mehltretter <[email protected]>
lib/842: require a complete history block for repeat templates
Karl Mehltretter <[email protected]>
lib/842: reject output overflows from index and short data
Karl Mehltretter <[email protected]>
crypto: atmel-aes - fix AADLENR for standalone GHASH
Karl Mehltretter <[email protected]>
crypto: atmel-tdes - zero-initialize device state
Junrui Luo <[email protected]>
media: vicodec: zero-initialize stateful decoder heap buffers
Juan Perdomo <[email protected]>
media: cx231xx: preserve I2C transfer length
Maxim Skokov <[email protected]>
media: vivid: round the height down to the vertical subsampling factor
Eric Kim <[email protected]>
sched/fair: Reset NUMA fault locality after scan period update
Jean-Baptiste Maneyrol <[email protected]>
iio: imu: inv_icm42600: fix odr change not caught in certain cases
Runyu Xiao <[email protected]>
dmaengine: altera-msgdma: initialize state before requesting IRQ
Damon Ding <[email protected]>
drm/bridge: analogix_dp: Restore mandatory samsung DP DT properties
Greg Kroah-Hartman <[email protected]>
media: stv0900: bound DiSEqC reply length to msg[] size
Greg Kroah-Hartman <[email protected]>
media: stv090x: bound DiSEqC reply length to msg[] size
Greg Kroah-Hartman <[email protected]>
media: adv7604: avoid negative array index in log_status when cp_read fails
James Hilliard <[email protected]>
mtd: rawnand: sunxi: reject ECC maximization on small pages
Xu Rao <[email protected]>
media: m2m-deinterlace: fix default capture field
Punnay Sharma <[email protected]>
staging: media: av7110: fix corrupted BER reporting in sp8870
Julian Braha <[email protected]>
media: marvell-cam: fix unmet dependency for VIDEO_MMP_CAMERA
Jeffin Philip <[email protected]>
media: vidtv: fix uaf in vidtv_bridge_on_new_pkts_avail
Piyush Patle <[email protected]>
media: vidtv: fix frontend reference leak on unbind
Junrui Luo <[email protected]>
media: vicodec: make encoder CAPTURE dimensions read-only
Junrui Luo <[email protected]>
media: vicodec: fix out-of-bounds write on under-rounded coded dimensions
Younho Choi <[email protected]>
media: vim2m: keep transaction buffer count stable while streaming
Runyu Xiao <[email protected]>
media: saa7146: Initialize interrupt lock before requesting IRQ
Shengzhuo Wei <[email protected]>
media: go7007: bound EZ-USB I2C transfers to the usb_buf size
Linkai Gong <[email protected]>
media: i2c: tc358743: add missing color-space strings
Ruoyu Wang <[email protected]>
media: au0828: Free URBs when starting DVB streaming fails
Andi Shyti <[email protected]>
media: cx231xx: Fix cleanup path on failure
Baolin Liu <[email protected]>
isofs: fix Rock Ridge CE extent validation on multisession media
Thorsten Blum <[email protected]>
thermal: intel: powerclamp: Reject invalid window_size values
Karl Mehltretter <[email protected]>
fs_pin: publish pins with RCU list helpers
Abdun Nihaal <[email protected]>
wifi: ath11k: Fix possible memory leak in ath11k_dp_srng_setup()
イムティヤズ <[email protected]>
wifi: rtw88: fix out-of-bounds CAM write when key table is full
Justin Chen <[email protected]>
memory: brcmstb_dpfe: Bounds check DCPU-supplied MSG_ARG_COUNT
Justin Chen <[email protected]>
memory: brcmstb_dpfe: Fix out-of-bounds access due to DCPU offset
Sam Price <[email protected]>
microblaze: preserve the MSR carry flags across signals
Ramin Moussavi <[email protected]>
microblaze: don't clobber r3/r4 restored by rt_sigreturn
Ramin Moussavi <[email protected]>
microblaze: reserve the ABI argument-home area in the signal frame
HyeongJun An <[email protected]>
remoteproc: elf_loader: Bound the section header table
Daehyeon Ko <[email protected]>
ipc/mqueue: release notification resources during inode eviction
Sean Young <[email protected]>
media: ir-hix5hd2: Ensure rdev is setup before interrupts are enabled
Sean Young <[email protected]>
media: redrat3: Ensure all urbs are suspended
Sean Young <[email protected]>
media: redrat3: Ensure we don't read beyond the end of the packet
Sean Young <[email protected]>
media: streamzap: Add missing rc_unregister_device()
Zhenhao Wan <[email protected]>
drm/nouveau: reject zero-size notifier object allocation
Cen Zhang <[email protected]>
ocfs2: snapshot dentry names in file and setattr traces
Sean Young <[email protected]>
media: rc: Fix ABBA deadlock by making locks more fine grained
Bryan O'Donoghue <[email protected]>
phy: core: Fix race-condition between _of_phy_get() and try_module_get()
Fan Wu <[email protected]>
scsi: dc395x: sync the waiting_timer before freeing the host
Chris Mason <[email protected]>
ovl: set OVL_WHITEOUTS before publishing the upper dir
Igor Putko <[email protected]>
serial: core: shut down initialized port on removal
Yuchao Zhang <[email protected]>
xen-blkfront: unbind irq before tearing down ring and shadow requests
Tianchu Chen <[email protected]>
staging: rtl8723bs: fix protected RX frame validation in decrypt path
Richard Patel <[email protected]>
genirq: Defer kfree(irqaction) until irq_thread_dtor() finishes
Lee Jones <[email protected]>
HID: wacom: Redesign shared sibling data lifecycle
Diego Oliva <[email protected]>
smb: client: fix OOB last_entry pointer from unbounded LastNameOffset
Diego Oliva <[email protected]>
smb: client: fix use-after-free infoleak via the readdir resume name
Paulo Alcantara <[email protected]>
smb: client: fix warning in CIFSFindNext()
Paulo Alcantara <[email protected]>
smb: client: fix warning in CIFSFindFirst()
David Hildenbrand (Arm) <[email protected]>
mm/hugetlb: fix use-after-free in hugetlb_mfill_atomic_pte()
Hyunwoo Kim <[email protected]>
inet: reject unhashed sockets during established lookups
Josef Bacik <[email protected]>
driver core: Limit the messages on a refused uevent
Myeonghun Pak <[email protected]>
backlight: lm3630a: Cancel delayed work before destroying workqueue
Xu Wang <[email protected]>
backlight: lm3630a_bl: Remove redundant 'flush_workqueue()' calls
Antonio Quartulli <[email protected]>
net/sched: fix packet reordering on requeue
Yuhang Zheng <[email protected]>
net/sched: cls_flower: avoid stale mask references after delete
owen kwan <[email protected]>
net/sched: sch_teql: fix use-after-free on lower qdisc drop
Zikang Gao <[email protected]>
smb: client: do not pass a NULL buf to is_oplock_break()
Fredric Cover <[email protected]>
smb: client: fix early procfs exposure race
David Woodhouse <[email protected]>
tun: Require CAP_NET_ADMIN to attach to an ownerless device
Pablo Neira Ayuso <[email protected]>
netfilter: conntrack: always lower timeout for non-closing RST packets
Jiale Yao <[email protected]>
HID: roccat: savu: reject short special reports
Jiale Yao <[email protected]>
HID: roccat: ryos: reject short special reports
Jiale Yao <[email protected]>
HID: roccat: pyra: reject short button reports
Jiale Yao <[email protected]>
HID: roccat: kovaplus: reject short button reports
Jiale Yao <[email protected]>
HID: roccat: konepure: reject short button reports
Jiale Yao <[email protected]>
HID: roccat: koneplus: reject short button reports
Jiale Yao <[email protected]>
HID: roccat: isku: reject short button reports
Gabor Tanz <[email protected]>
HID: quirks: Always poll the Anne Pro 2 with product ID a292
Jiale Yao <[email protected]>
HID: mcp2221: validate response report length
Jiale Yao <[email protected]>
HID: logitech-dj: validate unnumbered keyboard reports
Jiale Yao <[email protected]>
HID: elo: reject short touchscreen reports
Jiale Yao <[email protected]>
HID: cp2112: validate response report lengths
Jiale Yao <[email protected]>
HID: cougar: reject short special-key reports
Alan Stern <[email protected]>
HID: core: Fix out-of-bounds left shift by 32 in s32ton()
Jiale Yao <[email protected]>
HID: zydacron: validate key report length
Amit Machhiwal <[email protected]>
KVM: PPC: Fix get_d_signext() 12-bit displacement for paired-single D-form
Sean Christopherson <[email protected]>
KVM: x86: Zero reserved synic flags when delivering message to avoid stack leak
Ameer Hamza <[email protected]>
sunrpc: treat empty auth.unix.gid replies as negative entries
Chuck Lever <[email protected]>
SUNRPC: Reject a socket that already has an svc_sock attached
Chris Mason <[email protected]>
sunrpc: pin gss module across auth_domain RCU free
Jeff Layton <[email protected]>
SUNRPC: keep the first error in svc_register()
Aldo Ariel Panzardo <[email protected]>
nfsd: zero NFSv4 COMPOUND tag padding
Chuck Lever <[email protected]>
NFSD: Reject an oversized principal hash from nfsdcld
Aldo Ariel Panzardo <[email protected]>
nfsd: propagate SETXATTR value decode errors
Jérémy Jean <[email protected]>
nfsd: preflight SEQUENCE replies before accepting a slot
NeilBrown <[email protected]>
nfsd: honour client-provided attributes for NFS4_CREATE_EXCLUSIVE4_1
Cen Zhang (Microsoft Security FORGE Labs) <[email protected]>
nfsd: hold cl_lock in client_has_openowners()
Wentao Liang <[email protected]>
nfsd: Fix id-to-name cache entry leak in idtoname_parse()
Chuck Lever <[email protected]>
NFSD: Fail a pool_threads read whose reply does not fit
Ameer Hamza <[email protected]>
nfsd: don't modify a session slot when replaying its cached reply
Chuck Lever <[email protected]>
NFSD: Don't complete a cld upcall the daemon has not read
Chuck Lever <[email protected]>
NFSD: Do not send CB_RECALL_ANY to NFSv4.0 clients
Aldo Ariel Panzardo <[email protected]>
NFSD: copy SETXATTR data from all XDR buffer segments
Aldo Ariel Panzardo <[email protected]>
nfsd: clear XDR padding in GETXATTR replies
Benjamin Coddington <[email protected]>
NFSv4/filelayout: Anchor page coalescing on pattern_offset
Benjamin Coddington <[email protected]>
NFSv4.1/pnfs: suspend pNFS on NFS4ERR_TOOSMALL from LAYOUTGET
Chuck Lever <[email protected]>
pnfs/blocklayout: Complete a device upcall when the pipe is closed
Chuck Lever <[email protected]>
pnfs/blocklayout: Complete a device upcall only on its own reply
Benjamin Coddington <[email protected]>
pNFS: Fix CB_NOTIFY_DEVICEID CHANGE to consume ndc_immediate
Darrick J. Wong <[email protected]>
xfs: propagate errors while checking null siblings
Darrick J. Wong <[email protected]>
xfs: opportunistically skip btree block checks
Darrick J. Wong <[email protected]>
xfs: only written file data blocks can be shared
Darrick J. Wong <[email protected]>
xfs: check for fragments when full-extent sharing matches
Aldo Ariel Panzardo <[email protected]>
xfs: reject remote xattr entries with an out-of-range value length
Aldo Ariel Panzardo <[email protected]>
xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value
Aleksandr Nogikh <[email protected]>
media: usbtv: fix null-pointer dereference on disconnect
Johan Hovold <[email protected]>
media: usbtv: drop redundant device reference
Al Viro <[email protected]>
ufs: fix ufs_read_cylinder() failure handling
Ido Schimmel <[email protected]>
net/sched: flower: Fix chain template offload
Darrick J. Wong <[email protected]>
xfs: mark overfull dabtree node blocks as corrupt
Darrick J. Wong <[email protected]>
xfs: check fork type against dabtree block magic number
Chris Mason <[email protected]>
ovl: read the nlink xattr of every indexed non-dir
Chris Mason <[email protected]>
ovl: fix a torn path in ovl_get_redirect()
Cen Zhang <[email protected]>
ocfs2: pin refcount trees before dropping the lookup lock
Jiaming Zhang <[email protected]>
ocfs2: fix chunk number of the first chunk in a local quota file
Cen Zhang <[email protected]>
ocfs2: cancel quota sync work before freeing quota info
Joseph Qi <[email protected]>
ocfs2/dlm: hold the lookup reference across convert AST enqueue
Cen Zhang <[email protected]>
ocfs2/dlm: hold a lock reference across grant AST enqueue
Cen Zhang <[email protected]>
ocfs2/heartbeat: unlink live slots when their node is missing
Sean Young <[email protected]>
media: rc: mce_kbd: Fix inconsistent locking of keylock
Weigang He <[email protected]>
media: rc: fintek-cir: process a full RX buffer instead of overflowing it
Nickolai Zeldovich <[email protected]>
resource: report a devm_request_resource() conflict under the lock
YANXIN LI <[email protected]>
ufs: use u64 for directory size in ufs_last_byte
Nguyen Quang Le Kien <[email protected]>
usb: gadget: fix refcount underflow in gadgetfs_bind() error path
Rik van Riel <[email protected]>
media: redrat3: fix UAF in probe error path leaving rc device registered
Shuangpeng Bai <[email protected]>
media: gspca: use vb2_video_unregister_device() on disconnect
Myeonghun Pak <[email protected]>
media: cx23885: unregister DVB bus when SP2 CI setup fails
Kyle Zeng <[email protected]>
io_uring/io-wq: save worker type before dropping its reference
Yousef Alhouseen <[email protected]>
HID: hiddev: keep state alive through disconnect unlock
Xiang Mei <[email protected]>
fbdev: udlfb: don't rebuild the mode list while the framebuffer is in use
Yibo Tan <[email protected]>
fbdev: atmel_lcdfb: Prevent FIFO work after removal
Karl Mehltretter <[email protected]>
klist: avoid accesses after waking klist_remove()
Lee Jones <[email protected]>
HID: wacom: Use hdev->product in wacom_setup_touch_input_capabilities
Heiko Carstens <[email protected]>
s390/probes: Fix wrong opcode for cgrb fixup
Niklas Cassel <[email protected]>
ata: sata_fsl: Fix use-after-free of host_priv on probe() failure
Binbin Deng <[email protected]>
apparmor: fix a use-after-free in aa_lookupn_ns()
Deepanshu Kartikey <[email protected]>
media: imon: fix use-after-free in display_close via dev_dbg
Anuj Bolewar <[email protected]>
media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path
Pei Xiao <[email protected]>
media: cx23885: Fix use-after-free in cx23885_finidev due to race condition
Chuck Lever <[email protected]>
lockd: Fix use-after-free in nlmsvc_retry_blocked
Yehyeong Lee <[email protected]>
nvmet-fc: fix use-after-free in nvmet_fc_ls_create_connection()
James Kim <[email protected]>
rapidio: mport_cdev: fix use-after-free in mport_mm_close()
Zijing Yin <[email protected]>
SUNRPC: fix netns use-after-free in write_gssp()
Andreas Wendleder <[email protected]>
wifi: b43: fix use-after-free in b43_bcma_remove()
Li RongQing <[email protected]>
x86/ioperm: Prevent NULL dereference on theoretical missing IO bitmap
xiongxin <[email protected]>
gpio: dwapb: mask/unmask IRQ when disable/enale it
David Heidelberg <[email protected]>
backlight: qcom-wled: Fix WLED3 brightness register stride
David Heidelberg <[email protected]>
backlight: qcom-wled: Fix unbalanced OVP IRQ enable at probe
David Heidelberg <[email protected]>
backlight: qcom-wled: Fix NULL pointer dereference in wled_remove()
Kameron Carr <[email protected]>
Drivers: hv: vmbus: Bounds check the shared ring buffer indices
Jamal Hadi Salim <[email protected]>
net/sched: act_ife: do not consume the inner header on egress
Koichiro Den <[email protected]>
net: sched: avoid qdisc_reset_all_tx_gt() vs dequeue race for lockless qdiscs
Matt Bobrowski <[email protected]>
bpf: Fix UAF in sock clone early bailouts
Yucheng Lu <[email protected]>
net/sched: sch_netem: fix out-of-bounds access in packet corruption
Qing Luo <[email protected]>
sctp: auth: discard auth_chunk when skb_clone fails
Sean Christopherson <[email protected]>
KVM: nVMX: Put vmcs12 pages if nested VM-Enter fails due to invalid guest state
Inseo An <[email protected]>
netfilter: nf_tables: fix use-after-free in nf_tables_addchain()
Eric Dumazet <[email protected]>
ipv4: start using dst_dev_rcu()
Ilya Maximets <[email protected]>
openvswitch: vport: fix self-deadlock on release of tunnel ports
Yang Yang <[email protected]>
openvswitch: defer tunnel netdev_put to RCU release
Jonathan Gopel <[email protected]>
thunderbolt: Do not RPM complete unrelated subtrees on unplug
Cen Zhang <[email protected]>
ocfs2: publish the filecheck owner before adding sysfs attributes
Cen Zhang <[email protected]>
ocfs2: pin owning modules for open debugfs files
Cen Zhang <[email protected]>
ocfs2: drain quorum work before removing the cluster
Wei Jie Law <[email protected]>
net: usb: pegasus: do not advance rx_skb->data on dropped frames
Kaho Jiang <[email protected]>
net: ipv4: add zero check for snd_cwnd_clamp
Xiang Mei <[email protected]>
media: go7007: only set audio_enabled if go7007_snd_init() succeeded
Xiang Mei <[email protected]>
media: em28xx: reject audio endpoint with zero packet size
Myeonghun Pak <[email protected]>
media: cx88: Disable PCI device on MPEG initialization failure
Xiang Mei <[email protected]>
libceph: bound mon_command ack decode to front len
Andrea Parri <[email protected]>
kcsan: Avoid division by zero in kcsan_prandom_u32_max()
Fang Xieyan <[email protected]>
kcov: ignore an out-of-range comparison count in write_comp_data()
Yuanfu Xie <[email protected]>
ceph: fail readdir when the MDS reply carries no dirfrag
Wentao Guan <[email protected]>
wifi: cfg80211: release locks on error in cfg80211_wext_siwgenie()
André Draszik <[email protected]>
kbuild: link-vmlinux.sh: improve detection of third pass requirement
Rohinthan P <[email protected]>
media: em28xx: use video_unregister_device for radio_dev
Eckhart Mohr <[email protected]>
ALSA: hda/realtek: Add quirk for ASRock NUC BOX-358H
Reinhard Speyerer <[email protected]>
net: usb: qmi_wwan: add Rolling Wireless RN947R
Vladimir Murzin <[email protected]>
usb: mtu3: Fix double dereference in TP_printk
Tarun Noonemunthala <[email protected]>
ALSA: hda/realtek: Add quirk for HP ENVY 13-aq1xxx
Luis Banha <[email protected]>
ALSA: hda/realtek: Add mute LED quirk for HP Pavilion 15-ec1xxx
Hernan Ganzo <[email protected]>
ALSA: hda/realtek: Limit internal mic boost on HP Pavilion 15 (103c:2164)
Jasper Firth <[email protected]>
ASoC: Intel: bytcr_rt5651: Add quirk for Chuwi Hi8 with generic DMI strings
Rosen Penev <[email protected]>
gpio: mvebu: keep resume masks within the irqchip cache
Dmitry Antipov <[email protected]>
HID: roccat: fix locking in roccat_connect() and roccat_disconnect()
Maurizio Lombardi <[email protected]>
nvme-fc: do not warn on controller removal race
Youth Cao <[email protected]>
HID: i2c-hid: Add i2c-hid-quirk-bad-input-size quirk for 0911:5288 device
Xiubo Li <[email protected]>
ceph: do not cache negative dentries for snapped directories
Federico Valentín Andrade <[email protected]>
ALSA: usb-audio: Skip mixer creation on M-Audio Venom
Li Jun <[email protected]>
tpm: tpm_tis_spi: fix nodef CR50 tpm_tis_spi_resume is null
Dave Carey <[email protected]>
HID: multitouch: Fix stale MT slots when contact count drops to zero
Helge Deller <[email protected]>
fbcon: Fix KASAN slab-out-of-bounds Read in fbcon_prepare_logo
Jenson Johnathon Reggentin <[email protected]>
docs: block: fix dead http link in blk-mq.rst
Chen Changcheng <[email protected]>
scsi: snic: Fix SCSI host leak on workqueue allocation failure
Daeho Jeong <[email protected]>
f2fs: avoid setting SBI_NEED_FSCK on transient resize failure
Robin Everaars <[email protected]>
ACPI: button: Add DMI quirk for Razer Blade Pro 17 early 2020 lid switch
BingKun Yue <[email protected]>
fbdev: platinumfb: add error checking for ioremap calls
Randy Dunlap <[email protected]>
fbdev: maxine: fix 64-bit build error
Pengpeng Hou <[email protected]>
rtc: brcmstb-waketimer: add missing MODULE_DEVICE_TABLE()
Robert Leussler <[email protected]>
rtc: ds1307: fix RX8130 wakeup alarm WADA bit for day-of-month mode
Pengpeng Hou <[email protected]>
rtc: ab-eoz9: add missing MODULE_DEVICE_TABLE()
Denis V. Lunev <[email protected]>
virtio_balloon: warn on failed buffer add in tell_host()
Kuninori Morimoto <[email protected]>
ASoC: codec: max98926: fixup invert setup mask
Alex Elder <[email protected]>
net: stmmac: use dma_addr_t for DMA addresses
Israel Téllez García <[email protected]>
libbpf: Fix ring buffer consumer loop on 32-bit position wrap
Takashi Iwai <[email protected]>
ALSA: hda/intel: Add sanity check for BAR0 size
Michail Tatas <[email protected]>
ipmi: Fix leak in __ipmi_bmc_register
Jiaming Zhang <[email protected]>
hfsplus: validate extent record length before writing it back
Dmytro Moroziuk <[email protected]>
ALSA: hda/conexant: Add mute LED quirk for HP ProBook 440 G5
Matt Turner <[email protected]>
alpha: run the remote RTC access in a worker, not an IPI callback
Chao Shi <[email protected]>
nvme: ratelimit the completion-path messages driven by device data
Griffin Kroah-Hartman <[email protected]>
nfc: nxp-nci: Add remove on IRQ error
Griffin Kroah-Hartman <[email protected]>
nfc: mrvl: spi: Unregister dev on allocation fail
Zhe Liu <[email protected]>
docs: cgroup-v2: fix stale "io" controller introduction
Brian Grech <[email protected]>
selftests/net: fin_ack_lat: fix latency threshold typo
Michal Pecio <[email protected]>
ALSA: usx2y: Stop clearing urb->hcpriv before submission
Pengpeng Hou <[email protected]>
fbdev: udlfb: validate vendor descriptor items
Andreas Kemnade <[email protected]>
fbdev: omap2: dsi: do not copy isr table
Daniel Golle <[email protected]>
net: dsa: mt7530: error out on failed PHY_IAC command writes
Li Qiang <[email protected]>
Bluetooth: hci_bcsp: validate received packet lengths
Chen Changcheng <[email protected]>
Bluetooth: btrsi: Move set_bt_context after successful HCI registration
Junhao He <[email protected]>
ACPI: APEI: Handle repeated SEA error storms
Aurabindo Pillai <[email protected]>
drm/amd: Add DCN6 register headers
Filipe Manana <[email protected]>
btrfs: fix memory barrier order in reloc_root_is_dead()
Pengpeng Hou <[email protected]>
Bluetooth: hci_nokia: validate firmware packet bounds
Rui Qi <[email protected]>
selftests/ftrace: Force C locale in ftracetest
Yunye Zhao <[email protected]>
md: add cond_resched() to md_do_sync()'s skip path
Yu Kuai <[email protected]>
md/raid5: reject zero-sector reshape chunks
Junzhe Yu <[email protected]>
ext4: guard against NULL s_group_info in ext4_get_group_info
Pengpeng Hou <[email protected]>
HID: rmi: check report length before trimming sentinel bytes
liulhong617 <[email protected]>
arm64: mm: fix accidental linear mapping of no-map reserved memory
Carl Quist <[email protected]>
ALSA: hda/realtek: Enable mute LED on HP Laptop 15-dy0xxx
Stefan Haberland <[email protected]>
s390/dasd: Snapshot intrc before freeing the request block
Simon Glass <[email protected]>
kconfig: abort rather than loop for ever on EOF
Allison Henderson <[email protected]>
net/rds: unpin MR pages with unpin_user_pages_dirty_lock()
Sharath Srinivasan <[email protected]>
net/rds: fix rds_message leak in the rds_send_xmit() drop path
Håkon Bugge <[email protected]>
net/rds: hold the socket while an rds_mr references it
Allison Henderson <[email protected]>
net/rds: don't use unpin_user_pages_dirty_lock() from atomic context
Wahid Khan <[email protected]>
HID: intel-ish-hid: ignore post-init ENUM_DEVICES from firmware
Aaron Ma <[email protected]>
HID: quirks: Add ALWAYS_POLL quirk for Beitong BTP-KP20D dongle
Can Peng <[email protected]>
wifi: brcmfmac: validate msgbuf flowring IDs before use
Can Peng <[email protected]>
wifi: brcmfmac: Set DMA direction for msgbuf packet IDs
Felix Fietkau <[email protected]>
wifi: mt76: mt7603: fix U-APSD service period termination
Pablo Neira Ayuso <[email protected]>
netfilter: nf_tables: call skb_valid_dst() before skb_dst()
Minghao Zhang <[email protected]>
netfilter: conntrack: tcp: use UNACK timeout for non-closing RST packets
Devin Wittmayer <[email protected]>
wifi: mt76: mt76x02: report rx FCS errors to mac80211
Hari Mishal <[email protected]>
virtio_console: take a kref in find_port_by_vq() to fix port UAF
이상호 <[email protected]>
romfs: detect hard link cycles
Dmitry Torokhov <[email protected]>
mfd: ipaq-micro: Fix out-of-bounds stack read in ipaq_micro_str
Bob Song <[email protected]>
ALSA: hda/realtek: add missing NULL check for codec->bus->pci
Yichong Chen <[email protected]>
exfat: free new directory cluster if zeroing fails
wangdicheng <[email protected]>
ALSA: hda/conexant: Add NULL check for dc_mode_path
Gary Guo <[email protected]>
ata: ata_generic: Don't store pci_device_id
Dmitry Osipenko <[email protected]>
clk: tegra: support 48MHz clock for pll_p_out1
Chen Changcheng <[email protected]>
media: cx88: fix memory leak in cx8802_register_driver() error path
Pengpeng Hou <[email protected]>
clk: imx: imx8qxp-lpcg: add missing MODULE_DEVICE_TABLE()
Pengpeng Hou <[email protected]>
clk: imx: imx8qxp: add missing MODULE_DEVICE_TABLE()
Jay Vadayath <[email protected]>
udf: bound lengthAllocDescs from unallocated space entry
Jan Kara <[email protected]>
udf: Fix bh leak for unallocated space entries
Tyrel Datwyler <[email protected]>
scsi: ibmvfc: free ibmvfc_target allocations with mempool_free
Tyrel Datwyler <[email protected]>
scsi: ibmvfc: check for NULL evt in implicit LOGO and target delete path
Jiaxing Hu <[email protected]>
iommu/rockchip: Clear stale page faults before enabling stall
Pengpeng Hou <[email protected]>
hsi: omap_ssi: remove debugfs on port creation failure
Pengpeng Hou <[email protected]>
firmware: imx: scu: manage mailbox channels and global handle
Brian Norris <[email protected]>
PCI/portdrv: Allow probing even without child services
Pengpeng Hou <[email protected]>
soc: ixp4xx: qmgr: add missing MODULE_DEVICE_TABLE()
Benjamin Marzinski <[email protected]>
bitops: make the *_bit_le functions use unsigned long
Zhang Yi <[email protected]>
ext4: check return value of ext4_get_block() in ext4_load_tail_bh()
Manikanta Pubbisetty <[email protected]>
wifi: ath10k: trigger hardware recovery upon rx failures
Pengpeng Hou <[email protected]>
wifi: ath11k: validate regulatory capability phy_id
Mukesh Ojha <[email protected]>
iommu/qcom: Publish pgtbl_ops before releasing init_mutex
Mukesh Ojha <[email protected]>
iommu/qcom: Check pm_runtime_resume_and_get() return in probe
Heiko Schocher <[email protected]>
drm/panel: simple: Add Kyocera tcg070wvlq panel
Lachlan Hodges <[email protected]>
wifi: cfg80211: include cf1 offset when sending chandef
Kuan-Wei Chiu <[email protected]>
riscv, bpf: Add support for BPF_MOVSX in RV32 JIT
Pengpeng Hou <[email protected]>
power: reset: piix4-poweroff: add missing MODULE_DEVICE_TABLE()
Kuan-Wei Chiu <[email protected]>
riscv, bpf: Add support for BPF_SDIV and BPF_SMOD in RV32 JIT
Shahar Tzarfati <[email protected]>
wifi: mac80211: ibss: read deauth reason_code after frame length check
Yun Zhou <[email protected]>
ext4: set EXT4_STATE_NO_EXPAND in ext4_evict_inode
Ali Alaei <[email protected]>
PCI: vmd: Handle BUS_RESTRICT_CFG value 3 for Arrow Lake-HX
Baokun Li <[email protected]>
ext4: reduce max cluster size to match documented 256MB limit
Nizar Al-Kabbani <[email protected]>
platform/x86: asus-nb-wmi: map ProArt key (0x8b) to KEY_PROG3
Yousef Alhouseen <[email protected]>
media: go7007: s2250: propagate control I/O failures
Rituparna Warwatkar <[email protected]>
media: dvb-core: fix feed leak on failed DMX_ADD_PID
Yuho Choi <[email protected]>
driver core: attribute_container: Unwind device_add() on attr failure
Yousef Alhouseen <[email protected]>
misc: ibmvmc: reject oversized inbound messages
Pengpeng Hou <[email protected]>
greybus: manifest: validate string descriptor header
Yousef Alhouseen <[email protected]>
misc: hpilo: validate device queue entries before use
Yousef Alhouseen <[email protected]>
misc: genwqe: handle a first DMA address of zero
Ian Abbott <[email protected]>
comedi: pcmuio: Add sanity check to interrupt handler
Ian Abbott <[email protected]>
comedi: pcm816: Fix sanity check in interrupt handler
Ian Abbott <[email protected]>
comedi: pcmmio: Add sanity check to interrupt handler
Ian Abbott <[email protected]>
comedi: aio_iiro_16: Add sanity check to interrupt handler
Ian Abbott <[email protected]>
comedi: pcm711: Fix sanity check in interrupt handler
Ian Abbott <[email protected]>
comedi: dt2811: Fix sanity check in interrupt handler
Ian Abbott <[email protected]>
comedi: das6402: Add sanity check to interrupt handler
Ian Abbott <[email protected]>
comedi: quatech_daqp_cs: Fix sanity check in interrupt handler
Ian Abbott <[email protected]>
comedi: pcm818: Fix sanity check in interrupt handler
Ian Abbott <[email protected]>
comedi: ni_at_a2150: Fix sanity check in interrupt handler
Ian Abbott <[email protected]>
comedi: ni_atmio16d: Add sanity check to interrupt handler
Pengpeng Hou <[email protected]>
uio: sercos3: add missing MODULE_DEVICE_TABLE()
Michail Tatas <[email protected]>
USB: misc: uss720: Fix leak in get_1284_register
Oliver Neukum <[email protected]>
usb: misc: cypress_cy7c63: check result of IO
Lucas Martins Alves <[email protected]>
usb: musb: host: clear stale RX interrupt on three-strikes error
Hans Verkuil <[email protected]>
media: cec/core: drop cec_post_state_event call
Hans Verkuil <[email protected]>
media: cec: tegra_cec: don't break off msg on NACK
Shivaprasad G Bhat <[email protected]>
scsi: qla2xxx: Handle INTx not connected while passing through
Mikko Perttunen <[email protected]>
gpu: host1x: Wait for timeout worker completion on channel free
Namhyung Kim <[email protected]>
tools/lib/api: Fix potential double-free from fdarray__grow()
Yousef Alhouseen <[email protected]>
media: go7007: avoid undefined shifts in MPEG-4 headers
Pengpeng Hou <[email protected]>
media: cx18: stop VBI start-code scan before short tail
Pengpeng Hou <[email protected]>
media: ivtv: stop VBI start-code scan before short tail
Lucas Stach <[email protected]>
drm/etnaviv: check all modules for idle after reset
Haoxiang Li <[email protected]>
iwlwifi: dvm: add missing cleaup for on error path
Hari Mishal <[email protected]>
nvme: bound ns descriptor header and body to identify buffer
Hans Verkuil <[email protected]>
media: em28xx: use vb2_video_unregister_device
Hans Verkuil <[email protected]>
media: em28xx: requeue buffers if start_streaming fails
Hans Verkuil <[email protected]>
media: em28xx: dev_info->pr_info since dev has been freed
Gabriel Prostitis <[email protected]>
USB: gadget: inode: fix mm lifetime handling
David Laight <[email protected]>
usb_string_copy: Use kzalloc() to avoid leaking old data
Haoxiang Li <[email protected]>
usb: fsl_qe_udc: check qe_alloc_request() failure in ch9getstatus()
Haoxiang Li <[email protected]>
tty: serial: pch_uart: add check for pci_get_slot()
Xu Rao <[email protected]>
mmc: block: reject invalid perdev_minors before division
Arnd Bergmann <[email protected]>
media: v4l2-tpg: reduce stack usage for kasan builds
Pengpeng Hou <[email protected]>
media: cec: tegra: add missing MODULE_DEVICE_TABLE()
Pranjal Shrivastava <[email protected]>
PCI/ATS: Ensure pci_ats_supported() is PF-aware for VFs
Xixin Liu <[email protected]>
nvme: zns: cap zone report nr_zones by DMA buffer size
Jerome Brunet <[email protected]>
clk: sunxi-ng: fix ccu probe clock unregister on error
Ben Dooks <[email protected]>
mmc: cqhci: fix to missed endian conversions
Pengpeng Hou <[email protected]>
iio: adc: max1241: add missing MODULE_DEVICE_TABLE()
William Hansen-Baird <[email protected]>
wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding
William Hansen-Baird <[email protected]>
wifi: rtlwifi: rtl8723be: Remove unnecessary irq save/restore in hw_init()
Yun Zhou <[email protected]>
net: mvneta_bm: add suspend/resume support to prevent crash after resume
Pengpeng Hou <[email protected]>
dmaengine: pl330: remove debugfs file on teardown
Jiayuan Chen <[email protected]>
netfilter: ebtables: bound num_counters like nentries in do_replace()
Yousef Alhouseen <[email protected]>
net: usb: rtl8150: handle link status read failures
Yang Wang <[email protected]>
drm/amd/pm: Validate legacy hwmgr PP table offsets
Yang Wang <[email protected]>
drm/amd/pm: Validate Tonga PowerPlay state array bounds
Yang Wang <[email protected]>
drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds
Matthew Jacob <[email protected]>
drm/amdgpu: Support some Barco AMD based graphics adapters
Lijo Lazar <[email protected]>
drm/amd/pm: validate vega10 profile mode inputs
Lijo Lazar <[email protected]>
drm/amdgpu: Validate ATIF buffer length before use
Lijo Lazar <[email protected]>
drm/amdgpu: Add checks to vbios fetch through ATRM
Abhijeeth Babu <[email protected]>
i2c: acpi: Force ELAN1300 touchpads to 100 kHz
Zizhi Wo <[email protected]>
fat: reject name longer than NAME_MAX in msdos_format_name()
Haoxiang Li <[email protected]>
ASoC: hdac_hdmi: Fix resource cleanup on probe failure
Pengpeng Hou <[email protected]>
ASoC: tlv320aic26: remove keyclick sysfs file
William Theesfeld <[email protected]>
clk: zynq: handle kasprintf() failure in periph_clk registration
Kemeng Shi <[email protected]>
irqdomain: Plug leak in irq_domain_alloc_irqs_locked() error path
Pengpeng Hou <[email protected]>
media: cec: stm32: return an error when log-address wait times out
Kryštof Černý <[email protected]>
w1: ds2482: add OF device match table
Ruoyu Wang <[email protected]>
drm/radeon: avoid double free in r600 DPM cleanup
Asad Kamal <[email protected]>
drm/amdgpu: Gate debugfs MMIO access on kernel lockdown
Asad Kamal <[email protected]>
drm/amd/pm: Validate OD DPM triples before mutating tables
Jonas Karlman <[email protected]>
drm/rockchip: dw_hdmi: Use resume_early pm ops for system suspend
Jesse.Zhang <[email protected]>
drm/amdgpu: Limit BO list entry count to prevent resource exhaustion
Tvrtko Ursulin <[email protected]>
drm/amdgpu: Use vmemdup_array_user in amdgpu_bo_create_list_entry_array
Philipp Stanner <[email protected]>
string.h: add array-wrappers for (v)memdup_user()
Jiasheng Jiang <[email protected]>
drm/amdkfd: Check for null pointer after calling kmemdup
Koichiro Den <[email protected]>
dmaengine: dw-edma-pcie: Reject devices without driver data
Daniel Borkmann <[email protected]>
bpf, arm64: Fix off-by-one in check_imm signed range check
Harry Wentland <[email protected]>
drm/amd/display: Fix out-of-bounds read in dp_get_eq_aux_rd_interval()
Yinjie Yao <[email protected]>
drm/amdgpu/jpeg: set no_user_fence for JPEG v2.0 ring
Yinjie Yao <[email protected]>
drm/amdgpu/jpeg: set no_user_fence for JPEG v2.5 ring
Yinjie Yao <[email protected]>
drm/amdgpu/jpeg: set no_user_fence for JPEG v3.0 ring
Benjamin Cheng <[email protected]>
drm/amdgpu/vce: Prevent partial address patches
Zihan Xi <[email protected]>
net: gso: limit recursive IP-in-IP segmentation
YuanZhe Liu <[email protected]>
ALSA: line6: Clear prev_fbuf on capture buffer release
Linus Torvalds <[email protected]>
mm: move 'mmap_min_addr' logic from callers into vm_unmapped_area()
Greg Kroah-Hartman <[email protected]>
usb: typec: tcpm: bound altmode_desc[] per iteration in svdm_consume_modes()
Jérémy Jean <[email protected]>
lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state
Weiming Shi <[email protected]>
asymmetric_keys: reject trust keys without IDs
Christian Brauner <[email protected]>
coredump: hold RCU while releasing parked threads
Yi Yang <[email protected]>
serial: tegra: Add missing clk_disable_unprepare() in tegra_uart_hw_init()
Dan Carpenter <[email protected]>
nvme-tcp: fix error codes in nvme_tcp_setup_ctrl()
Zhao Li <[email protected]>
wifi: mac80211: shut down RX BA session timer on teardown
Hyunwoo Kim <[email protected]>
exec: Cleanup POSIX timers right after de_thread()
Bryam Vargas <[email protected]>
net/iucv: fix the recvmsg window update
Tu Dinh <[email protected]>
xen-netback: Zero out sring pointers on unmap
Tu Dinh <[email protected]>
xen-netback: Fix XenBus connection failure cleanup
-------------
Diffstat:
.gitignore | 3 +-
Documentation/ABI/testing/sysfs-class-power-mp2629 | 2 +-
Documentation/PCI/pci-error-recovery.rst | 7 +
Documentation/admin-guide/LSM/LoadPin.rst | 14 +-
Documentation/admin-guide/cgroup-v2.rst | 10 +-
Documentation/admin-guide/kernel-parameters.txt | 6 +
Documentation/block/blk-mq.rst | 2 +-
Documentation/core-api/pin_user_pages.rst | 6 +-
.../media/allwinner,sun4i-a10-video-engine.yaml | 21 +-
.../devicetree/bindings/vendor-prefixes.yaml | 56 +
Documentation/filesystems/fsverity.rst | 2 +
Documentation/filesystems/overlayfs.rst | 3 +-
Documentation/kbuild/kconfig-language.rst | 5 -
Documentation/kbuild/kconfig.rst | 8 +
Documentation/networking/ip-sysctl.rst | 3 +-
MAINTAINERS | 5 +-
Makefile | 4 +-
arch/alpha/include/asm/mmu_context.h | 15 +-
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/Kconfig | 1 -
arch/arc/Makefile | 9 +-
arch/arc/lib/Makefile | 8 +
arch/arc/oprofile/Makefile | 10 -
arch/arc/oprofile/common.c | 23 -
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/stm32mp157c-lxa-mc1.dts | 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 +-
.../boot/dts/qcom/sdm845-xiaomi-beryllium.dts | 6 +
arch/arm64/boot/dts/rockchip/rk3328.dtsi | 2 +-
arch/arm64/boot/dts/rockchip/rk3399-firefly.dts | 45 +-
arch/arm64/crypto/poly1305-armv8.pl | 2 +-
arch/arm64/include/asm/kprobes.h | 7 -
arch/arm64/include/asm/kvm_host.h | 2 +-
arch/arm64/kernel/efi.c | 8 +-
arch/arm64/kernel/machine_kexec.c | 2 +-
arch/arm64/kernel/machine_kexec_file.c | 2 +
arch/arm64/kernel/probes/kprobes.c | 53 +-
arch/arm64/kernel/sdei.c | 101 +-
arch/arm64/kvm/arm.c | 26 +-
arch/arm64/kvm/vgic/vgic-its.c | 40 +-
arch/arm64/kvm/vgic/vgic-mmio-v3.c | 13 +-
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/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_paired_singles.c | 7 +-
arch/riscv/net/bpf_jit_comp32.c | 47 +-
arch/s390/configs/debug_defconfig | 2 +-
arch/s390/configs/defconfig | 2 +-
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/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/uaccess_32.h | 8 +-
arch/x86/include/asm/cpufeatures.h | 6 +
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 | 18 +
arch/x86/kvm/mmu/paging_tmpl.h | 24 +-
arch/x86/kvm/svm/nested.c | 11 +-
arch/x86/kvm/vmx/nested.c | 9 +
arch/x86/kvm/vmx/vmx.c | 1 +
arch/x86/kvm/x86.c | 22 +-
arch/x86/mm/mem_encrypt_identity.c | 2 +-
arch/x86/platform/pvh/enlighten.c | 2 +
arch/x86/power/hibernate.c | 51 +-
block/blk-flush.c | 25 +
block/blk-iocost.c | 10 +-
block/blk-mq.c | 4 +
block/blk-throttle.c | 3 +-
block/bsg.c | 6 +-
block/ioctl.c | 4 +-
block/partitions/mac.c | 4 +-
block/scsi_ioctl.c | 11 +-
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/ecdh.c | 2 +
crypto/tcrypt.c | 533 +-
crypto/testmgr.h | 198 +-
drivers/accessibility/speakup/selection.c | 6 +
drivers/acpi/acpi_extlog.c | 9 +
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 | 22 +-
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/core.c | 4 +-
drivers/base/node.c | 17 +-
drivers/base/power/wakeirq.c | 75 +-
drivers/base/power/wakeup.c | 30 -
drivers/base/swnode.c | 92 +-
drivers/block/Kconfig | 2 +-
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/swim.c | 191 +-
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 | 12 +-
drivers/bluetooth/btrsi.c | 3 +-
drivers/bluetooth/btusb.c | 4 +
drivers/bluetooth/hci_bcsp.c | 5 +-
drivers/bluetooth/hci_nokia.c | 20 +
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-milbeaut.c | 10 +-
drivers/clk/clk.c | 5 +-
drivers/clk/imx/clk-imx8qxp-lpcg.c | 1 +
drivers/clk/imx/clk-imx8qxp.c | 1 +
drivers/clk/imx/clk.c | 15 +-
drivers/clk/qcom/clk-rcg2.c | 9 +-
drivers/clk/qcom/mmcc-msm8996.c | 4 +-
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/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/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 | 8 +-
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/dax/super.c | 2 +-
drivers/dma/Kconfig | 1 +
drivers/dma/altera-msgdma.c | 10 +-
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 | 704 +-
.../dma-ste-dma40.h => drivers/dma/ste_dma40.h | 101 +-
drivers/dma/ste_dma40_ll.c | 3 +-
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/extcon/extcon-arizona.c | 1 +
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-dwapb.c | 12 +-
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 | 21 +-
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 | 1 +
drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 1 +
drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 1 +
drivers/gpu/drm/amd/amdgpu/si.c | 10 +
drivers/gpu/drm/amd/amdgpu/vi.c | 10 +
drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 3 +
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 11 +-
.../drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h | 17 +-
drivers/gpu/drm/amd/display/dc/core/dc_link.c | 6 +-
drivers/gpu/drm/amd/display/dc/dc_types.h | 2 +-
drivers/gpu/drm/amd/display/dc/dsc/rc_calc.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 | 3 +
.../amd/pm/powerplay/hwmgr/process_pptables_v1_0.c | 62 +-
.../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 | 138 +-
drivers/gpu/drm/msm/dp/dp_display.c | 6 +
drivers/gpu/drm/msm/dp/dp_panel.c | 15 +-
drivers/gpu/drm/msm/dp/dp_panel.h | 1 +
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 | 35 +
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/ttm/ttm_bo_util.c | 4 +
drivers/gpu/drm/v3d/v3d_sched.c | 2 +
drivers/gpu/drm/vc4/vc4_gem.c | 10 +-
drivers/gpu/host1x/hw/cdma_hw.c | 2 +-
drivers/greybus/manifest.c | 2 +
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-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/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/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/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/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 | 4 +-
drivers/infiniband/hw/hfi1/fault.c | 1 -
drivers/infiniband/hw/hfi1/sdma.c | 3 +
drivers/infiniband/hw/hns/hns_roce_cq.c | 2 +-
drivers/infiniband/hw/hns/hns_roce_device.h | 1 -
drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 1 -
drivers/infiniband/hw/hns/hns_roce_mr.c | 291 +-
drivers/infiniband/hw/hns/hns_roce_qp.c | 5 +-
drivers/infiniband/hw/hns/hns_roce_srq.c | 2 -
drivers/infiniband/hw/mlx5/cq.c | 2 +-
drivers/infiniband/hw/mlx5/odp.c | 2 +-
drivers/infiniband/hw/mlx5/qp.c | 3 +-
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/rxe/rxe_hdr.h | 178 +-
drivers/infiniband/sw/rxe/rxe_loc.h | 3 +
drivers/infiniband/sw/rxe/rxe_recv.c | 11 +-
drivers/infiniband/sw/rxe/rxe_req.c | 1 -
drivers/infiniband/sw/rxe/rxe_resp.c | 3 +-
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 | 4 +
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 | 14 +-
drivers/iommu/intel/dmar.c | 140 +-
drivers/iommu/rockchip-iommu.c | 13 +
drivers/iommu/virtio-iommu.c | 6 +-
drivers/irqchip/irq-gic-v3-its.c | 505 +-
drivers/irqchip/irq-gic-v3-mbi.c | 5 +-
drivers/irqchip/irq-gic-v3.c | 1 +
drivers/irqchip/irq-imx-intmux.c | 29 +-
drivers/leds/led-class-flash.c | 2 +-
drivers/leds/leds-ktd2692.c | 10 +-
drivers/leds/leds-lm3692x.c | 4 +-
drivers/leds/leds-pca9532.c | 9 +-
drivers/mailbox/qcom-ipcc.c | 6 +
drivers/mailbox/ti-msgmgr.c | 12 +-
drivers/md/dm-snap-persistent.c | 7 +-
drivers/md/dm-writecache.c | 14 +-
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/sp8870.c | 5 +-
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/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 | 46 +-
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 | 2 +
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/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/venus/hfi_msgs.c | 3 +
drivers/media/platform/rockchip/rga/rga.c | 69 +-
drivers/media/platform/rockchip/rga/rga.h | 7 +-
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/rc-ir-raw.c | 40 +-
drivers/media/rc/redrat3.c | 32 +-
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 | 19 +-
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 | 51 +-
drivers/media/usb/uvc/uvcvideo.h | 1 +
drivers/memory/brcmstb_dpfe.c | 34 +-
drivers/memory/emif.c | 9 +-
drivers/memory/samsung/exynos5422-dmc.c | 11 +-
drivers/mfd/ab8500-core.c | 109 +-
drivers/mfd/da903x.c | 35 +-
drivers/mfd/da9150-core.c | 8 +-
drivers/mfd/db8500-prcmu.c | 6 +-
drivers/mfd/intel_quark_i2c_gpio.c | 158 +-
drivers/mfd/ipaq-micro.c | 2 +-
drivers/mfd/mfd-core.c | 18 +-
drivers/mfd/mt6360-core.c | 12 +-
drivers/mfd/tps65217.c | 72 +-
drivers/mfd/twl-core.c | 346 +-
drivers/mfd/wcd934x.c | 34 +-
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.c | 14 +-
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/atmel/nand-controller.c | 6 +-
drivers/mtd/nand/raw/ndfc.c | 21 +-
drivers/mtd/nand/raw/sunxi_nand.c | 3 +
drivers/net/bonding/bond_main.c | 2 +-
drivers/net/can/dev/dev.c | 4 +-
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 | 34 +
drivers/net/ethernet/broadcom/bgmac.c | 61 +-
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 25 +-
drivers/net/ethernet/broadcom/tg3.c | 42 +-
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/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 +-
drivers/net/ethernet/pensando/ionic/ionic_dev.c | 2 +-
drivers/net/ethernet/pensando/ionic/ionic_lif.c | 8 +-
drivers/net/ethernet/pensando/ionic/ionic_main.c | 17 +-
drivers/net/ethernet/stmicro/stmmac/chain_mode.c | 3 +-
drivers/net/ethernet/stmicro/stmmac/ring_mode.c | 3 +-
.../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 | 116 +-
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_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 | 51 +-
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/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/mediatek/mt76/mt76.h | 2 +
drivers/net/wireless/mediatek/mt76/mt7603/main.c | 76 +-
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c | 24 +-
drivers/net/wireless/mediatek/mt76/mt7615/init.c | 15 +-
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 20 +-
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h | 2 +
.../net/wireless/mediatek/mt76/mt7615/pci_init.c | 1 +
.../net/wireless/mediatek/mt76/mt7615/sdio_mcu.c | 1 +
.../net/wireless/mediatek/mt76/mt7615/usb_mcu.c | 1 +
.../net/wireless/mediatek/mt76/mt76x0/pci_mcu.c | 1 +
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 33 +-
drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c | 23 +-
drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h | 2 +
.../net/wireless/mediatek/mt76/mt76x02_usb_mcu.c | 1 +
.../net/wireless/mediatek/mt76/mt76x2/pci_mcu.c | 1 +
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 15 +-
drivers/net/wireless/mediatek/mt76/usb.c | 16 +-
.../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/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/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 | 34 +-
drivers/nvme/host/zns.c | 8 +-
drivers/nvme/target/admin-cmd.c | 16 +-
drivers/nvme/target/configfs.c | 95 +-
drivers/nvme/target/core.c | 17 +-
drivers/nvme/target/fc.c | 16 +-
drivers/nvme/target/io-cmd-bdev.c | 5 +-
drivers/nvme/target/io-cmd-file.c | 4 +-
drivers/nvme/target/loop.c | 10 +-
drivers/nvme/target/nvmet.h | 8 +
drivers/nvme/target/rdma.c | 25 +-
drivers/nvme/target/tcp.c | 7 +-
drivers/nvmem/rockchip-otp.c | 13 +-
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 | 7 +-
drivers/pci/controller/dwc/pcie-designware.h | 1 +
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/hotplug/pciehp_core.c | 2 +-
drivers/pci/iov.c | 25 -
drivers/pci/pci-label.c | 24 +-
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/phy-core.c | 42 +-
drivers/pinctrl/mediatek/pinctrl-mt7629.c | 2 +-
drivers/pinctrl/sprd/pinctrl-sprd.c | 3 +
drivers/platform/olpc/olpc-ec.c | 2 +-
drivers/platform/x86/Kconfig | 50 +-
drivers/platform/x86/Makefile | 6 +-
drivers/platform/x86/asus-nb-wmi.c | 1 +
drivers/platform/x86/asus-wmi.c | 11 +
drivers/platform/x86/hp-wireless.c | 102 -
drivers/platform/x86/hp/Kconfig | 61 +
drivers/platform/x86/hp/Makefile | 10 +
drivers/platform/x86/{ => hp}/hp-wmi.c | 24 +-
drivers/platform/x86/{ => hp}/hp_accel.c | 2 +-
drivers/platform/x86/{ => hp}/tc1100-wmi.c | 0
drivers/platform/x86/ibm_rtl.c | 8 +-
drivers/platform/x86/intel_telemetry_core.c | 4 +
drivers/platform/x86/wireless-hotkey.c | 103 +
drivers/power/reset/piix4-poweroff.c | 1 +
drivers/power/supply/Kconfig | 2 +-
.../abx500 => drivers/power/supply}/ab8500-bm.h | 23 +-
drivers/power/supply/ab8500_bmdata.c | 3 +-
drivers/power/supply/ab8500_btemp.c | 241 +-
drivers/power/supply/ab8500_charger.c | 447 +-
drivers/power/supply/ab8500_fg.c | 258 +-
drivers/power/supply/abx500_chargalg.c | 159 +-
drivers/power/supply/bq24190_charger.c | 9 +-
drivers/power/supply/bq2515x_charger.c | 15 +-
drivers/power/supply/generic-adc-battery.c | 2 +-
drivers/power/supply/gpio-charger.c | 5 +-
drivers/power/supply/ltc2941-battery-gauge.c | 3 +
drivers/power/supply/pm2301_charger.c | 2 +-
drivers/power/supply/power_supply_core.c | 83 +-
drivers/pwm/pwm-lp3943.c | 22 +-
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/mp886x.c | 45 +-
drivers/remoteproc/qcom_q6v5_adsp.c | 2 +-
drivers/remoteproc/remoteproc_core.c | 3 +
drivers/remoteproc/remoteproc_elf_loader.c | 23 +-
drivers/rpmsg/mtk_rpmsg.c | 1 +
drivers/rtc/Kconfig | 21 +
drivers/rtc/class.c | 8 +-
drivers/rtc/rtc-ab-eoz9.c | 1 +
drivers/rtc/rtc-abx80x.c | 97 +-
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 | 5 +-
drivers/rtc/rtc-s35390a.c | 31 +-
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/ibmvscsi/ibmvfc.c | 10 +-
drivers/scsi/libiscsi_tcp.c | 3 +-
drivers/scsi/libsas/sas_task.c | 2 +-
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_debug.c | 4 +-
drivers/scsi/snic/snic_main.c | 1 +
drivers/scsi/st.c | 75 +
drivers/scsi/ufs/ufs_bsg.c | 6 +-
drivers/scsi/ufs/ufshcd.c | 9 +-
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/spi/spi-bcm-qspi.c | 3 +-
drivers/spi/spi-jcore.c | 5 +-
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/staging/comedi/drivers/addi_apci_3xxx.c | 2 +-
drivers/staging/comedi/drivers/aio_iiro_16.c | 3 +
drivers/staging/comedi/drivers/comedi_parport.c | 3 +-
drivers/staging/comedi/drivers/das6402.c | 10 +-
drivers/staging/comedi/drivers/dmm32at.c | 3 +-
drivers/staging/comedi/drivers/dt2811.c | 9 +-
drivers/staging/comedi/drivers/dt2814.c | 3 +-
drivers/staging/comedi/drivers/ni_at_a2150.c | 13 +-
drivers/staging/comedi/drivers/ni_atmio16d.c | 7 +-
drivers/staging/comedi/drivers/pcl711.c | 3 +-
drivers/staging/comedi/drivers/pcl816.c | 3 +-
drivers/staging/comedi/drivers/pcl818.c | 3 +-
drivers/staging/comedi/drivers/pcmmio.c | 6 +-
drivers/staging/comedi/drivers/pcmuio.c | 10 +-
drivers/staging/comedi/drivers/quatech_daqp_cs.c | 4 +-
drivers/staging/greybus/uart.c | 32 +-
drivers/staging/iio/adc/ad7816.c | 6 +-
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_recv.c | 25 +-
drivers/staging/rtl8723bs/hal/sdio_ops.c | 7 +
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/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 | 27 +-
drivers/tty/serial/8250/8250_lpss.c | 7 +-
drivers/tty/serial/max310x.c | 340 +-
drivers/tty/serial/pch_uart.c | 5 +
drivers/tty/serial/pmac_zilog.c | 5 +-
drivers/tty/serial/sc16is7xx.c | 2 +
drivers/tty/serial/serial-tegra.c | 7 +-
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/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-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/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/smscufx.c | 6 +-
drivers/video/fbdev/udlfb.c | 33 +-
drivers/virtio/virtio_balloon.c | 6 +-
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/ioctl.c | 11 +
fs/btrfs/qgroup.c | 4 +-
fs/btrfs/relocation.c | 13 +-
fs/btrfs/sysfs.c | 1 +
fs/ceph/addr.c | 3 +
fs/ceph/caps.c | 2 +
fs/ceph/dir.c | 14 +-
fs/ceph/inode.c | 3 +-
fs/ceph/mds_client.c | 26 +-
fs/ceph/mdsmap.c | 4 +-
fs/ceph/snap.c | 7 +-
fs/ceph/super.c | 9 +
fs/ceph/super.h | 1 -
fs/ceph/xattr.c | 10 +
fs/cifs/cifsfs.c | 20 +-
fs/cifs/cifsglob.h | 2 +
fs/cifs/cifssmb.c | 256 +-
fs/cifs/connect.c | 33 +-
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/lowcomms.c | 6 +-
fs/eventpoll.c | 18 +-
fs/exec.c | 28 +-
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 | 13 +-
fs/ext4/namei.c | 11 +-
fs/ext4/super.c | 14 +
fs/f2fs/compress.c | 10 +-
fs/f2fs/data.c | 9 +-
fs/f2fs/file.c | 6 -
fs/f2fs/gc.c | 9 +-
fs/f2fs/node.c | 42 +-
fs/f2fs/segment.c | 2 +-
fs/f2fs/super.c | 30 +
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_pin.c | 9 +-
fs/fuse/file.c | 12 +-
fs/fuse/virtio_fs.c | 80 +-
fs/gfs2/bmap.c | 2 +-
fs/gfs2/glops.c | 8 +-
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/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/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/flexfilelayout/flexfilelayout.c | 25 +-
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/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/inode.c | 10 +-
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 | 19 +-
fs/nilfs2/segment.c | 10 +-
fs/nilfs2/sysfs.c | 5 +-
fs/nilfs2/the_nilfs.c | 34 +-
fs/notify/fanotify/fanotify.c | 7 +-
fs/notify/fanotify/fanotify.h | 21 +-
fs/notify/inotify/inotify_fsnotify.c | 2 +-
fs/ocfs2/alloc.c | 18 +-
fs/ocfs2/cluster/heartbeat.c | 51 +-
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 | 29 +-
fs/overlayfs/dir.c | 14 +-
fs/overlayfs/export.c | 4 +-
fs/overlayfs/file.c | 4 +-
fs/overlayfs/inode.c | 14 +-
fs/overlayfs/namei.c | 15 +-
fs/overlayfs/overlayfs.h | 4 +-
fs/overlayfs/readdir.c | 68 +-
fs/overlayfs/super.c | 17 +-
fs/overlayfs/util.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/splice.c | 139 +-
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 | 16 +-
fs/verity/fsverity_private.h | 7 +-
fs/verity/measure.c | 10 +
fs/verity/open.c | 154 +-
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_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 | 2 +-
include/kvm/arm_vgic.h | 1 +
include/linux/acpi.h | 24 +-
include/linux/assoc_array_priv.h | 2 +-
include/linux/blk-mq.h | 3 +
include/linux/can/can-ml.h | 3 +
include/linux/clocksource.h | 3 +
include/linux/dcache.h | 3 +
include/linux/fault-inject.h | 10 +-
include/linux/firewire.h | 1 -
include/linux/hiddev.h | 2 +
include/linux/i2c.h | 17 +-
include/linux/intel-iommu.h | 6 +
include/linux/interrupt.h | 3 +
include/linux/irqchip/arm-gic-v3.h | 3 +-
include/linux/libata.h | 6 +
include/linux/mfd/core.h | 10 +-
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/netdevice.h | 1 +
include/linux/nvme.h | 11 +
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/property.h | 3 +
include/linux/shmem_fs.h | 15 +-
include/linux/skbuff.h | 8 +
include/linux/soc/ti/k3-ringacc.h | 26 +-
include/linux/spi/rspi.h | 18 -
include/linux/string.h | 40 +
include/linux/timekeeping.h | 1 +
include/linux/timer.h | 8 -
include/linux/usb/usbnet.h | 6 +-
include/linux/watch_queue.h | 6 +-
include/net/addrconf.h | 3 +
include/net/dst.h | 12 +
include/net/espintcp.h | 5 +-
include/net/inet_frag.h | 9 +
include/net/ip_tunnels.h | 3 +
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 | 13 +
include/net/sctp/sm.h | 1 +
include/sound/control.h | 2 +-
include/sound/core.h | 3 +-
include/sound/hwdep.h | 1 +
include/sound/pcm_oss.h | 1 +
include/sound/soc-component.h | 2 +-
include/trace/events/rpcrdma.h | 32 -
include/trace/events/thermal.h | 4 +-
include/uapi/linux/firewire-cdev.h | 4 +-
include/video/maxinefb.h | 4 +-
init/Kconfig | 13 +-
init/main.c | 8 +-
io_uring/io-wq.c | 8 +-
io_uring/io_uring.c | 2 +
ipc/mqueue.c | 7 +
kernel/bpf/bpf_iter.c | 7 +
kernel/bpf/btf.c | 20 +-
kernel/cgroup/cpuset.c | 17 +-
kernel/cpu_pm.c | 9 +-
kernel/debug/gdbstub.c | 59 +-
kernel/fork.c | 29 +-
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/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/signal.c | 5 +-
kernel/sys.c | 3 +
kernel/sysctl.c | 11 -
kernel/time/Kconfig | 16 +
kernel/time/Makefile | 3 +
kernel/time/clocksource-wdtest.c | 202 +
kernel/time/clocksource.c | 6 +-
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/tick-legacy.c | 19 +
kernel/time/time_test.c | 98 +
kernel/time/timeconv.c | 120 +-
kernel/time/timekeeping.c | 3 +-
kernel/time/timer.c | 55 +-
kernel/trace/trace_events_hist.c | 25 +-
kernel/trace/trace_events_synth.c | 10 +
kernel/trace/trace_synth.h | 1 +
kernel/watch_queue.c | 2 +-
lib/842/842_decompress.c | 7 +-
lib/Kconfig.debug | 12 +
lib/assoc_array.c | 377 +-
lib/cmdline.c | 13 +-
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/test_hmm.c | 2 +
mm/Kconfig | 15 +-
mm/Makefile | 2 +-
mm/filemap.c | 62 +-
mm/gup.c | 9 +-
mm/{gup_benchmark.c => gup_test.c} | 53 +-
mm/huge_memory.c | 8 +-
mm/hugetlb.c | 24 +-
mm/khugepaged.c | 2 +-
mm/ksm.c | 31 +-
mm/madvise.c | 18 +-
mm/memfd.c | 2 +
mm/memory.c | 41 +-
mm/mempolicy.c | 4 +-
mm/migrate.c | 2 +-
mm/mlock.c | 2 +-
mm/mmap.c | 21 +-
mm/mmu_notifier.c | 24 +-
mm/mremap.c | 6 +-
mm/nommu.c | 6 +-
mm/page_alloc.c | 12 +-
mm/page_vma_mapped.c | 22 +-
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 | 182 +
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 | 45 +-
net/bluetooth/smp.h | 2 +
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 | 174 +-
net/ceph/mon_client.c | 2 +-
net/ceph/osd_client.c | 13 +-
net/ceph/osdmap.c | 18 +-
net/core/bpf_sk_storage.c | 2 -
net/core/dev.c | 22 +
net/core/filter.c | 50 +-
net/core/skbuff.c | 22 +-
net/core/sock.c | 9 +-
net/dcb/dcbnl.c | 2 +
net/ipv4/af_inet.c | 3 +
net/ipv4/gre_offload.c | 2 +-
net/ipv4/icmp.c | 10 +-
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 | 5 +-
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_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/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 | 13 +-
net/ipv6/sit.c | 4 +-
net/iucv/af_iucv.c | 41 +-
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/agg-rx.c | 5 +-
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 | 6 +-
net/mac80211/tdls.c | 3 +-
net/mac80211/tx.c | 57 +-
net/netfilter/ipvs/ip_vs_sync.c | 23 +-
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_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/openvswitch/vport-netdev.c | 8 +-
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 | 52 +-
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 | 27 +-
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/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 | 11 +-
scripts/checkkconfigsymbols.py | 2 +-
scripts/checkpatch.pl | 2 +
scripts/extract-cert.c | 144 +-
scripts/kconfig/Makefile | 10 +
scripts/kconfig/conf.c | 293 +-
scripts/kconfig/confdata.c | 229 +-
scripts/kconfig/expr.h | 1 -
scripts/kconfig/lexer.l | 1 -
scripts/kconfig/lkc.h | 13 -
scripts/kconfig/menu.c | 9 -
scripts/kconfig/parser.y | 6 -
scripts/kconfig/symbol.c | 72 +-
scripts/kconfig/tests/conftest.py | 13 +-
.../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/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/selinux/netlabel.c | 1 +
sound/core/compress_offload.c | 12 +-
sound/core/control.c | 5 +-
sound/core/hwdep.c | 14 +-
sound/core/init.c | 29 +-
sound/core/jack.c | 2 +-
sound/core/oss/mixer_oss.c | 36 +-
sound/core/oss/pcm_oss.c | 12 +
sound/core/pcm.c | 6 +-
sound/core/pcm_compat.c | 4 +-
sound/core/pcm_local.h | 6 +
sound/core/pcm_native.c | 20 +-
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/drivers/aloop.c | 31 +-
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 | 6 +
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 | 7 +-
sound/pci/hda/patch_hdmi.c | 3 +-
sound/pci/hda/patch_realtek.c | 18 +
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/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/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/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/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/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/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/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-ops.c | 10 +-
sound/soc/stm/stm32_i2s.c | 26 +-
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/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_quirks.c | 2 +-
sound/usb/mixer_us16x08.c | 3 +-
sound/usb/pcm.c | 20 +
sound/usb/quirks-table.h | 24 +
sound/usb/usx2y/us122l.c | 27 +-
sound/usb/usx2y/usX2Yhwdep.c | 4 +
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-inject.c | 4 +-
tools/perf/util/genelf_debug.c | 45 +-
tools/perf/util/header.c | 18 +-
tools/perf/util/jit.h | 2 +-
tools/perf/util/jitdump.c | 218 +-
tools/perf/util/mmap.c | 3 +-
tools/perf/util/namespaces.c | 12 +
tools/perf/util/namespaces.h | 2 +
.../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 +-
.../testing/selftests/timers/clocksource-switch.c | 23 +-
tools/testing/selftests/vm/.gitignore | 2 +-
tools/testing/selftests/vm/Makefile | 2 +-
tools/testing/selftests/vm/config | 2 +-
.../selftests/vm/{gup_benchmark.c => gup_test.c} | 16 +-
tools/testing/selftests/vm/run_vmtests | 8 +-
tools/thermal/tmon/tmon.c | 2 +-
usr/gen_init_cpio.c | 1 +
1517 files changed, 94283 insertions(+), 11360 deletions(-)Quoted 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.10.275 release. There are 1848 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Quoted 8 lines
Responses should be made by Fri, 20 Nov 2026 14:55:32 +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.10.275-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.10.y
and the diffstat can be found below.
Build failure on amd64 with amdgpu.
git bisect start
# status: waiting for both 'good' and 'bad' commits
# bad: [12d2575b30ab6dd7d0f61ef33860d08836347cbb] Linux 5.10.275-rc1
git bisect bad 12d2575b30ab6dd7d0f61ef33860d08836347cbb
# status: waiting for 'good' commit(s), 'bad' commit known
# good: [3a323bc22b881a5bdc1646080f93f5ecb22850bf] Linux 5.10.274
git bisect good 3a323bc22b881a5bdc1646080f93f5ecb22850bf
# good: [48be8a7d04b11bd8a2d641bfb8965ee037cab57b] xen/gntdev: Fix gntdev_dmabuf ref leak in dmabuf_exp_wait_released() git bisect good 48be8a7d04b11bd8a2d641bfb8965ee037cab57b
# good: [7edc53e830e18e313c808faa4bc5d2e14d90aa34] iio: dac: ad5758: Fix the offset calculation
git bisect good 7edc53e830e18e313c808faa4bc5d2e14d90aa34
# good: [533ee956be520b32f60844a83d6b030ae2586849] sh: sh7785lcr: Register the PCA9564 controller as I2C bus 0 git bisect good 533ee956be520b32f60844a83d6b030ae2586849
# bad: [6c4061694ecb407f5d67421f35e7f550f98805df] ASoC: cs42l56: Remove the ADC Mute Switch control
git bisect bad 6c4061694ecb407f5d67421f35e7f550f98805df
# good: [5ed2a3e2073ef449d3f0c6d052dbfa8a55c2ff73] ASoC: soc-component: Fix return type of snd_soc_pcm_component_pointer() git bisect good 5ed2a3e2073ef449d3f0c6d052dbfa8a55c2ff73
# bad: [a356793651fdb50e5b5bc0558357d578b8d405d3] selftests: netfilter: fix return value in zone subtest git bisect bad a356793651fdb50e5b5bc0558357d578b8d405d3
# good: [e9e79589baa60f79c75823422974ef46fd619613] ARC: Strip libgcc debug information when generating BTF git bisect good e9e79589baa60f79c75823422974ef46fd619613
# bad: [4428e62a30507763e58fb1bb017f273ec98457d5] bpf: Validate the SRH which End.DT6 uncovers in End.BPF git bisect bad 4428e62a30507763e58fb1bb017f273ec98457d5
# good: [d0c3b85950d12e1808644f31f10a95461f254df0] ASoC: codecs: sta350: Fix definition of Ch2 and Ch3 Volume Bypass controls git bisect good d0c3b85950d12e1808644f31f10a95461f254df0
# good: [1de066662fa2ef918a350698c90f873e803e61eb] gre: keep the UDP tunnel GSO type when completing GRO git bisect good 1de066662fa2ef918a350698c90f873e803e61eb
# good: [51a5555c99ede3eed53b2999a4ab3245cf4a2e49] bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields git bisect good 51a5555c99ede3eed53b2999a4ab3245cf4a2e49
# first 'bad' commit: [4428e62a30507763e58fb1bb017f273ec98457d5] bpf: Validate the SRH which End.DT6 uncovers in End.BPF
Reverting 4428e62a30507763e58fb1bb017f273ec98457d5 fixes the build.
Signature · 1 line
Brett Sheffield (he/him)
Hi!
Quoted 4 lines
This is the start of the stable review cycle for the 5.10.275 release. There are 1848 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
We get build failures here:
https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/pipelines/3084757694
https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/tree/linux-5.10.y
Best regards,
Pavel
drivers/dma/ste_dma40.c: In function 'd40_handle_interrupt':
2300
15:17:13drivers/dma/ste_dma40.c:1695:8: error: too few arguments to function 'pm_runtime_get_if_active' 2301
15:17:13
1695 | ret = pm_runtime_get_if_active(base->dev);
2302
15:17:13
| ^~~~~~~~~~~~~~~~~~~~~~~~
2303
15:17:13
In file included from drivers/dma/ste_dma40.c:19:
2304
15:17:13./include/linux/pm_runtime.h:42:12: note: declared here
2305
15:17:13
42 | extern int pm_runtime_get_if_active(struct device *dev, bool ign_usage_count);
2306
15:17:13
| ^~~~~~~~~~~~~~~~~~~~~~~~
2307
15:17:13drivers/dma/ste_dma40.c: In function 'd40_hw_detect_init':
2308
15:17:13
CC drivers/clk/imx/clk-pllv3.o
2309
15:17:13drivers/dma/ste_dma40.c:3306:11: warning: returning 'int' from a function with return type 'struct d40_base *' makes pointer from integer without a cast [-Wint-conversion] 2310
15:17:13
3
Quoted 46 lines · Brett A C Sheffield
Quoted 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.10.275 release. There are 1848 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Quoted 8 lines
Responses should be made by Fri, 20 Nov 2026 14:55:32 +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.10.275-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.10.y
and the diffstat can be found below.Build failure on amd64 with amdgpu.
git bisect start
# status: waiting for both 'good' and 'bad' commits
# bad: [12d2575b30ab6dd7d0f61ef33860d08836347cbb] Linux 5.10.275-rc1
git bisect bad12d2575b30ab6dd7d0f61ef33860d08836347cbb
# status: waiting for 'good' commit(s), 'bad' commit known
# good: [3a323bc22b881a5bdc1646080f93f5ecb22850bf] Linux 5.10.274
git bisect good3a323bc22b881a5bdc1646080f93f5ecb22850bf
# good: [48be8a7d04b11bd8a2d641bfb8965ee037cab57b] xen/gntdev: Fixgntdev_dmabufref leak indmabuf_exp_wait_released()git bisect good48be8a7d04b11bd8a2d641bfb8965ee037cab57b
# good: [7edc53e830e18e313c808faa4bc5d2e14d90aa34] iio: dac: ad5758: Fix the offset calculation
git bisect good7edc53e830e18e313c808faa4bc5d2e14d90aa34
# good: [533ee956be520b32f60844a83d6b030ae2586849] sh: sh7785lcr: Register the PCA9564 controller as I2C bus 0 git bisect good533ee956be520b32f60844a83d6b030ae2586849
# bad: [6c4061694ecb407f5d67421f35e7f550f98805df] ASoC: cs42l56: Remove the ADC Mute Switch control
git bisect bad6c4061694ecb407f5d67421f35e7f550f98805df
# good: [5ed2a3e2073ef449d3f0c6d052dbfa8a55c2ff73] ASoC: soc-component: Fix return type ofsnd_soc_pcm_component_pointer()git bisect good5ed2a3e2073ef449d3f0c6d052dbfa8a55c2ff73
# bad: [a356793651fdb50e5b5bc0558357d578b8d405d3] selftests: netfilter: fix return value in zone subtest git bisect bada356793651fdb50e5b5bc0558357d578b8d405d3
# good: [e9e79589baa60f79c75823422974ef46fd619613] ARC: Strip libgcc debug information when generating BTF git bisect goode9e79589baa60f79c75823422974ef46fd619613
# bad: [4428e62a30507763e58fb1bb017f273ec98457d5] bpf: Validate the SRH which End.DT6 uncovers in End.BPF git bisect bad4428e62a30507763e58fb1bb017f273ec98457d5
# good: [d0c3b85950d12e1808644f31f10a95461f254df0] ASoC: codecs: sta350: Fix definition of Ch2 and Ch3 Volume Bypass controls git bisect goodd0c3b85950d12e1808644f31f10a95461f254df0
# good: [1de066662fa2ef918a350698c90f873e803e61eb] gre: keep the UDP tunnel GSO type when completing GRO git bisect good1de066662fa2ef918a350698c90f873e803e61eb
# good: [51a5555c99ede3eed53b2999a4ab3245cf4a2e49] bpf: Fix verifier WARN on narrow read ofbpf_tcp_socku64 fields git bisect good51a5555c99ede3eed53b2999a4ab3245cf4a2e49
Quoted 3 lines
# first 'bad' commit: [4428e62a30507763e58fb1bb017f273ec98457d5] bpf: Validate the SRH which End.DT6 uncovers in End.BPFReverting
4428e62a30507763e58fb1bb017f273ec98457d5fixes the build.
I'm also having this build failure. It's the same one I had when testing the stable-queue yesterday, before 5.10.275-rc1:
https://lore.kernel.org/stable/[email protected]/
Signature · 1 line
-Barry K. Nathan <[email protected]>
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.10.275 release. There are 1848 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:32 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.275-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.10.y
and the diffstat can be found below.thanks,
greg k-h
perf fails to build with:
util/jitdump.c: In function 'jr_entry_pid':util/jitdump.c:416:31: error: 'struct nsinfo' has no member named 'in_pidns'
416 | if (jd->nsi && jd->nsi->in_pidns)
| ^~util/jitdump.c: In function 'jr_entry_tid':util/jitdump.c:423:31: error: 'struct nsinfo' has no member named 'in_pidns'
423 | if (jd->nsi && jd->nsi->in_pidns)
| ^~
which is coming from 428d7a722786 ("perf inject jit: Add namespaces support") we need to also back port 2b51c71be599 ("perf namespaces: Add 'in_pidns' to nsinfo struct") as a dependency.
Signature · 1 line
Florian
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.10.275 release. There are 1848 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:32 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 9 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.275-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.10.y
and the diffstat can be found below.thanks,
greg k-h
Build failed on my system.
net/core/filter.c: In function ‘bpf_update_srh_state’:net/core/filter.c:5867:26: error: implicit declaration of function ‘seg6_get_srh ’ [-Werror=implicit-function-declaration]
5867 | srh_state->srh = seg6_get_srh(skb, 0);
| ^~~~~~~~~~~~I haven't isolated the commit yet.
thanks,
-- Shuah
Greg Kroah-Hartman
maintainerPATCH 3/1848 net/iucv: fix the recvmsg window update
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bryam Vargas <[email protected]>
commit fa5acd038ea657ad5033713d6916214cbd349151 upstream.
iucv_sock_recvmsg() sends the HiperSockets-only AF_IUCV_FLAG_WIN without testing the transport, so on a classic z/VM socket iucv_send_ctrl() sizes the skb through a NULL iucv->hs_dev. SO_MSGLIMIT accepts 1, so msglimit / 2 is zero and one recvmsg() on its own socket is enough for an unprivileged process to take a spurious disconnect.
It also calls iucv_send_ctrl() under spin_lock_bh(&message_q.lock), which allocates GFP_KERNEL inside a section the code treats as atomic. Sending outside that lock lets two recvmsg() reach afiucv_hs_send() at once, where msg_recv is sampled for the advertised window and subtracted after dev_queue_xmit() -- and sendmsg reaches that counter under lock_sock() while recvmsg holds no socket lock, so both can subtract the same value, the counter goes negative and the credit reaches the peer twice.
Test the transport, claim the credit with atomic_xchg() after the last error exit and hand it back if the transmit fails, and send once the lock is dropped.
--- net/iucv/af_iucv.c | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-)
net/iucv/af_iucv.c +24 -17
@@ -223,12 +223,6 @@ static int afiucv_hs_send(struct iucv_message *imsg, struct sock *sock, phs_hdr->flags = flags;if (flags ==AF_IUCV_FLAG_SYN ) phs_hdr->window = iucv->msglimit; -else if ((flags ==AF_IUCV_FLAG_WIN ) || !flags) { - confirm_recv =atomic_read (&iucv->msg_recv); - phs_hdr->window = confirm_recv; -if (confirm_recv) - phs_hdr->flags = phs_hdr->flags |AF_IUCV_FLAG_WIN ; - }memcpy (phs_hdr->destUserID, iucv->dst_user_id,8 );memcpy (phs_hdr->destAppName, iucv->dst_name,8 );memcpy (phs_hdr->srcUserID, iucv->src_user_id,8 );
@@ -261,21 +255,29 @@ static int afiucv_hs_send(struct iucv_message *imsg, struct sock *sock, } skb->protocol =cpu_to_be16 (ETH_P_AF_IUCV ); +/* Claim the receive credit here, not while building the header: +* to minimize the time the window is zeroed. +*/ +if (flags ==AF_IUCV_FLAG_WIN || !flags) { + confirm_recv =atomic_xchg (&iucv->msg_recv,0 ); + phs_hdr->window = confirm_recv; +if (confirm_recv) + phs_hdr->flags = phs_hdr->flags |AF_IUCV_FLAG_WIN ; + }__skb_header_release (skb); nskb =skb_clone (skb,GFP_ATOMIC );if (!nskb) { err = -ENOMEM ; +atomic_add (confirm_recv, &iucv->msg_recv); goto err_free; }skb_queue_tail (&iucv->send_skb_q, nskb); err =dev_queue_xmit (skb);if (net_xmit_eval (err)) { +atomic_add (confirm_recv, &iucv->msg_recv);skb_unlink (nskb, &iucv->send_skb_q);kfree_skb (nskb); - }else { -atomic_sub (confirm_recv, &iucv->msg_recv); -WARN_ON (atomic_read (&iucv->msg_recv) <0 ); }return net_xmit_eval (err);
@@ -1258,6 +1260,7 @@ static int iucv_sock_recvmsg(struct socket *sock, struct msghdr *msg,struct iucv_sock *iucv =iucv_sk (sk);unsigned int copied, rlen;struct sk_buff *skb, *rskb, *cskb; +bool send_win = false;int err =0 ;u32 offset;
@@ -1350,16 +1353,20 @@ static int iucv_sock_recvmsg(struct socket *sock, struct msghdr *msg,if (skb_queue_empty (&iucv->backlog_skb_q)) {if (!list_empty (&iucv->message_q.list))iucv_process_message_q (sk); -if (atomic_read (&iucv->msg_recv) >= - iucv->msglimit /2 ) { - err =iucv_send_ctrl (sk,AF_IUCV_FLAG_WIN ); -if (err) { - sk->sk_state =IUCV_DISCONN ; - sk->sk_state_change (sk); - } - } +if (iucv->transport ==AF_IUCV_TRANS_HIPER && +atomic_read (&iucv->msg_recv) >= + iucv->msglimit /2 ) + send_win = true; }spin_unlock_bh (&iucv->message_q.lock); + +if (send_win) { + err =iucv_send_ctrl (sk,AF_IUCV_FLAG_WIN ); +if (err) { + sk->sk_state =IUCV_DISCONN ; + sk->sk_state_change (sk); + } + } } done:
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 5/1848 wifi: mac80211: shut down RX BA session timer on teardown
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zhao Li <[email protected]>
commit e588e83e5c7a0f6d7a77dbbb58927c8c8cfd598e upstream.
Tearing down an RX BA session while a BlockAckReq frame is being processed can rearm the session timer after teardown deletes it. A later expiry then accesses the freed tid_rx state.
___ieee80211_stop_rx_ba_session() uses del_timer_sync() before RCU readers have finished with tid_rx. del_timer_sync() does not prevent a concurrent ieee80211_rx_h_ctrl() reader from calling mod_timer() afterward.
Mark tid_rx removed under reorder_lock before deleting the timers, and serialize the BAR removed check and mod_timer() call with the same lock.
This differs from the upstream commit, which uses timer_shutdown_sync() instead. Linux 5.10 does not provide that helper.
LLM assistance was used to find the bug and review.
--- net/mac80211/agg-rx.c | 5 ++--- net/mac80211/rx.c | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-)
net/mac80211/agg-rx.c +2 -3
@@ -103,12 +103,11 @@ void ___ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid,if (!tid_rx)return ; -del_timer_sync (&tid_rx->session_timer); - -/* make sure ieee80211_sta_reorder_release() doesn't re-arm the timer */ +/* Prevent BAR and reorder release from rearming the timers. */ spin_lock_bh (&tid_rx->reorder_lock); tid_rx->removed = true;spin_unlock_bh (&tid_rx->reorder_lock); +del_timer_sync (&tid_rx->session_timer);del_timer_sync (&tid_rx->reorder_timer);call_rcu (&tid_rx->rcu_head, ieee80211_free_tid_rx);
net/mac80211/rx.c +3 -2
@@ -3101,12 +3101,13 @@ ieee80211_rx_h_ctrl(struct ieee80211_rx_data *rx, struct sk_buff_head *frames) event.u.ba.ssn = start_seq_num; event.u.ba.sta = &rx->sta->sta; +spin_lock (&tid_agg_rx->reorder_lock); +/* reset session timer */ -if (tid_agg_rx->timeout) +if (tid_agg_rx->timeout && !tid_agg_rx->removed)mod_timer (&tid_agg_rx->session_timer,TU_TO_EXP_TIME (tid_agg_rx->timeout)); -spin_lock (&tid_agg_rx->reorder_lock);/* release stored frames up to start of BAR */ ieee80211_release_reorder_frames (rx->sdata, tid_agg_rx, start_seq_num, frames);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 14/1848 net: gso: limit recursive IP-in-IP segmentation
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zihan Xi <[email protected]>
commit 006c8b834aed8b02bd8fb9fb05e9e7ead37d1763 upstream.
IP-in-IP GSO can re-enter inet_gso_segment() or ipv6_gso_segment() for each nested IP header. encap_level tracks header bytes, not callback depth, so a deep chain can exhaust the kernel stack. Making inet_gso_segment() stackable introduced unbounded IPv4 nesting; IPIP GSO/TSO later made the path reachable. The IPv6 stackable path was introduced separately and uses the same guard.
Count IPv4 and IPv6 GSO handler entries in skb_gso_cb, initialized once per top-level GSO operation and preserved across GRE/UDP context changes. Use the existing IP_TUNNEL_RECURSION_LIMIT for both handlers. The first five entries pass, and the sixth returns -EINVAL before dispatching another GSO callback.
[ Ting-Han: this tree predates include/net/gso.h and net/core/gso.c, so
the skb_gso_cb change and gso_recursion_inc_test() go into include/linux/skbuff.h and the reset into __skb_gso_segment() in net/core/dev.c. IP_TUNNEL_RECURSION_LIMIT was added upstream by 6f1a9140ecda ("net: add xmit recursion limit to tunnel xmit functions"), which is not in this tree, so define it (same value, 5) in ip_tunnels.h ]
--- include/linux/skbuff.h | 8 ++++++++ include/net/ip_tunnels.h | 3 +++ net/core/dev.c | 1 + net/ipv4/af_inet.c | 3 +++ net/ipv6/ip6_offload.c | 4 ++++ 5 files changed, 19 insertions(+)
include/linux/skbuff.h +8 -0
@@ -4500,10 +4500,18 @@ struct skb_gso_cb {int encap_level;__wsum csum;__u16 csum_start; +/* Number of IPv4/IPv6 GSO handler entries for this packet. */ +u8 recursion_counter; };#define SKB_GSO_CB_OFFSET 32#define SKB_GSO_CB (skb) ((struct skb_gso_cb *)((skb)->cb + SKB_GSO_CB_OFFSET)) +static inline bool gso_recursion_inc_test (struct sk_buff *skb, +unsigned int limit) +{ +return ++SKB_GSO_CB (skb)->recursion_counter > limit; +} +static inline int skb_tnl_header_len (const struct sk_buff *inner_skb) { return (skb_mac_header(inner_skb) - inner_skb->head) -
include/net/ip_tunnels.h +3 -0
@@ -24,6 +24,9 @@#include <net/ip6_route.h> #endif +/* Maximum nesting depth for recursive IP tunnel processing */ +#define IP_TUNNEL_RECURSION_LIMIT 5 +/* Keep error state on tunnel for 30 sec */ #define IPTUNNEL_ERR_TIMEO (30*HZ)
net/core/dev.c +1 -0
@@ -3415,6 +3415,7 @@ struct sk_buff *__skb_gso_segment(structSKB_GSO_CB (skb)->mac_offset =skb_headroom (skb);SKB_GSO_CB (skb)->encap_level =0 ; +SKB_GSO_CB (skb)->recursion_counter =0 ;skb_reset_mac_header (skb);skb_reset_mac_len (skb);
net/ipv4/af_inet.c +3 -0
@@ -1351,6 +1351,9 @@ struct sk_buff *inet_gso_segment(structint id;skb_reset_network_header (skb); +if (unlikely (gso_recursion_inc_test (skb, +IP_TUNNEL_RECURSION_LIMIT ))) + goto out; nhoff =skb_network_header (skb) -skb_mac_header (skb);if (unlikely (!pskb_may_pull (skb,sizeof (*iph)))) goto out;
net/ipv6/ip6_offload.c +4 -0
@@ -15,6 +15,7 @@#include <net/inet_common.h> #include <net/tcp.h> #include <net/udp.h> +#include <net/ip_tunnels.h> #include "ip6_offload.h"
@@ -86,6 +87,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;
Greg Kroah-Hartman
maintainerPATCH 15/1848 drm/amdgpu/vce: Prevent partial address patches
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Benjamin Cheng <[email protected]>
commit de2a02cc28d6d5d37db07d00a9a684c754a5fd74 upstream.
In the case that only one of lo/hi is valid, the patching could result in a bad address written to in FW.
[ Roman: In 5.10/5.15, amdgpu_vce_cs_reloc() does not take a struct amdgpu_ib *ib argument. The conversion was carried out by commit cdc7893fc93f ("drm/amdgpu: use job and ib structures directly in CS parsers"). Instead, the IB is obtained via p->job->ibs[ib_idx] ]
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +4 -0
@@ -634,11 +634,15 @@ static int amdgpu_vce_validate_bo(structstatic 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 ;
Greg Kroah-Hartman
maintainerPATCH 16/1848 drm/amdgpu/jpeg: set no_user_fence for JPEG v3.0 ring
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yinjie Yao <[email protected]>
commit a2baf12eec41f246689e6a3f8619af1200031576 upstream.
JPEG rings do not support 64-bit user fence writes, reject CS submissions with user fences.
--- drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c +1 -0
@@ -551,6 +551,7 @@ static const struct amd_ip_funcs jpeg_v3static 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,
Greg Kroah-Hartman
maintainerPATCH 17/1848 drm/amdgpu/jpeg: set no_user_fence for JPEG v2.5 ring
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yinjie Yao <[email protected]>
commit 79405e774ede411c6b47ed41c651e40b92de64a2 upstream.
JPEG rings do not support 64-bit user fence writes, reject CS submissions with user fences.
[ Roman: Version 5.10 does not yet support JPEG2.6, so the fix is being applied only to JPEG2.5 ]
--- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c +1 -0
@@ -566,6 +566,7 @@ static const struct amd_ip_funcs jpeg_v2static 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,
Greg Kroah-Hartman
maintainerPATCH 18/1848 drm/amdgpu/jpeg: set no_user_fence for JPEG v2.0 ring
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yinjie Yao <[email protected]>
commit e5f612dc91650561fe2b5b76dd6d2898ec9ad480 upstream.
JPEG rings do not support 64-bit user fence writes, reject CS submissions with user fences.
--- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c +1 -0
@@ -774,6 +774,7 @@ static const struct amd_ip_funcs jpeg_v2static 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,
Greg Kroah-Hartman
maintainerPATCH 19/1848 drm/amd/display: Fix out-of-bounds read in dp_get_eq_aux_rd_interval()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Harry Wentland <[email protected]>
commit e8b4d37eba05141ee01794fc6b7f2da808cee83b upstream.
[Why & How]
The aux_rd_interval array in struct dc_lttpr_caps is declared with MAX_REPEATER_CNT - 1 (7) elements, indexed 0..6. However, the offset parameter passed to dp_get_eq_aux_rd_interval() can be as large as MAX_REPEATER_CNT (8) when a sink reports 8 LTTPR repeaters via DPCD. This leads to an out-of-bounds read of aux_rd_interval[7] when offset is 8.
Fix this by growing aux_rd_interval to MAX_REPEATER_CNT elements to accommodate the full range of valid repeater counts defined by the DP spec.
--- drivers/gpu/drm/amd/display/dc/dc_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dc_types.h +1 -1
@@ -433,7 +433,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 {
Greg Kroah-Hartman
maintainerPATCH 20/1848 bpf, arm64: Fix off-by-one in check_imm signed range check
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Daniel Borkmann <[email protected]>
commit 1dd8be4ec722ce54e4cace59f3a4ba658111b3ec upstream.
check_imm(bits, imm) is used in the arm64 BPF JIT to verify that a branch displacement (in arm64 instruction units) fits into the signed N-bit immediate field of a B, B.cond or CBZ/CBNZ encoding before it is handed to the encoder. The macro currently tests for (imm > 0 && imm >> bits) || (imm < 0 && ~imm >> bits) which admits values in [-2^N, 2^N) — effectively a signed (N+1)-bit range. A signed N-bit field only holds [-2^(N-1), 2^(N-1)), so the check admits one extra bit of range on each side.
In particular, for check_imm19(), values in [2^18, 2^19) slip past the check but do not fit into the 19-bit signed imm19 field of B.cond. aarch64_insn_encode_immediate() then masks the raw value into the 19-bit field, setting bit 18 (the sign bit) and flipping a forward branch into a backward one. Same class of issue exists for check_imm26() and the B/BL encoding. Shift by (bits - 1) instead of bits so the actual signed N-bit range is enforced.
--- arch/arm64/net/bpf_jit_comp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/net/bpf_jit_comp.c +2 -2
@@ -494,8 +494,8 @@ static int build_insn(const struct bpf_iint 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; \
Greg Kroah-Hartman
maintainerPATCH 21/1848 dmaengine: dw-edma-pcie: Reject devices without driver data
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Koichiro Den <[email protected]>
commit 11d7cfe0c119691b2dafbb699bbca90258c678aa upstream.
dw_edma_pcie_probe() treats the PCI device ID driver_data as the template for the controller layout and copies it unconditionally. A device bound dynamically via sysfs can match the driver without that data, which leads to a NULL pointer dereference.
Reject such matches before enabling the device.
--- drivers/dma/dw-edma/dw-edma-pcie.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/dma/dw-edma/dw-edma-pcie.c +3 -0
@@ -104,6 +104,9 @@ static int dw_edma_pcie_probe(struct pcistruct dw_edma *dw;int i, mask; +if (!pdata) +return -ENODEV ; +/* Enable PCI device */ err =pcim_enable_device (pdev);if (err) {
Greg Kroah-Hartman
maintainerPATCH 22/1848 drm/amdkfd: Check for null pointer after calling kmemdup
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jiasheng Jiang <[email protected]>
commit abfaf0eee97925905e742aa3b0b72e04a918fa9e upstream.
As the possible failure of the allocation, kmemdup() may return NULL pointer.
Therefore, it should be better to check the 'props2' in order to prevent the dereference of NULL pointer.
--- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +3 -0
@@ -408,6 +408,9 @@ static int kfd_parse_subtype_iolink(strureturn -ENODEV ;/* same everything but the other direction */ props2 =kmemdup (props,sizeof (*props2),GFP_KERNEL ); +if (!props2) +return -ENOMEM ; + props2->node_from = id_to; props2->node_to = id_from; props2->kobj =NULL ;
Greg Kroah-Hartman
maintainerPATCH 23/1848 string.h: add array-wrappers for (v)memdup_user()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Philipp Stanner <[email protected]>
commit 313ebe47d75558511aa1237b6e35c663b5c0ec6f upstream.
Currently, user array duplications are sometimes done without an overflow check. Sometimes the checks are done manually; sometimes the array size is calculated with array_size() and sometimes by calculating n * size directly in code.
Introduce wrappers for arrays for memdup_user() and vmemdup_user() to provide a standardized and safe way for duplicating user arrays.
This is both for new code as well as replacing usage of (v)memdup_user() in existing code that uses, e.g., n * size to calculate array sizes.
Stable-dep-of: c833d6c7199c ("drm/amdgpu: Limit BO list entry count to prevent resource exhaustion")
--- include/linux/string.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+)
include/linux/string.h +40 -0
@@ -5,6 +5,8 @@#include <linux/compiler.h> /* for inline */ #include <linux/types.h> /* for size_t */ #include <linux/stddef.h> /* for NULL */ +#include <linux/err.h> /* for ERR_PTR() */ +#include <linux/overflow.h> /* for check_mul_overflow() */ #include <stdarg.h> #include <uapi/linux/string.h>
@@ -13,6 +15,44 @@ extern void *memdup_user(const void __usextern void *vmemdup_user (const void __user *,size_t );extern void *memdup_user_nul (const void __user *,size_t ); +/** +* memdup_array_user - duplicate array from user space +* @src: source address in user space +* @n: number of array members to copy +* @size: size of one array member +* +* Return: an ERR_PTR() on failure. Result is physically +* contiguous, to be freed by kfree(). +*/ +static inline void *memdup_array_user (const void __user *src,size_t n,size_t size) +{ +size_t nbytes; + +if (check_mul_overflow (n, size, &nbytes)) +return ERR_PTR (-EOVERFLOW ); + +return memdup_user (src, nbytes); +} + +/** +* vmemdup_array_user - duplicate array from user space +* @src: source address in user space +* @n: number of array members to copy +* @size: size of one array member +* +* Return: an ERR_PTR() on failure. Result may be not +* physically contiguous. Use kvfree() to free. +*/ +static inline void *vmemdup_array_user (const void __user *src,size_t n,size_t size) +{ +size_t nbytes; + +if (check_mul_overflow (n, size, &nbytes)) +return ERR_PTR (-EOVERFLOW ); + +return vmemdup_user (src, nbytes); +} +/* * Include machine specific inline routines */
Greg Kroah-Hartman
maintainerPATCH 6/1848 nvme-tcp: fix error codes in nvme_tcp_setup_ctrl()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dan Carpenter <[email protected]>
commit 522af60cb2f8e3658bda1902fb7f200dcf888a5c upstream.
These error paths currently return success but they should return -EOPNOTSUPP.
[ Karl Mehltretter: Omit the SGL-check hunk because 5.10.y lacks
73ffcefcfca0 ("nvme-tcp: check sgl supported by target"). ]
--- drivers/nvme/host/tcp.c | 1 + 1 file changed, 1 insertion(+)
drivers/nvme/host/tcp.c +1 -0
@@ -2116,6 +2116,7 @@ static int nvme_tcp_setup_ctrl(struct nvme_ctrl *ctrl, bool new)return ret;if (ctrl->icdoff) { + ret = -EOPNOTSUPP ;dev_err (ctrl->device,"icdoff is not supported!\n" ); goto destroy_admin; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 24/1848 drm/amdgpu: Use vmemdup_array_user in amdgpu_bo_create_list_entry_array
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tvrtko Ursulin <[email protected]>
commit c4ac100e9ae252b09986766ad23b1f83ca3a369d upstream.
Replace kvmalloc_array() + copy_from_user() with vmemdup_array_user() on the fast path.
This shrinks the source code and improves separation between the kernel and userspace slabs.
Stable-dep-of: c833d6c7199c ("drm/amdgpu: Limit BO list entry count to prevent resource exhaustion")
--- drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 43 +++++++++++----------------- 1 file changed, 18 insertions(+), 25 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +18 -25
@@ -224,43 +224,36 @@ void amdgpu_bo_list_put(struct amdgpu_boint 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,
Greg Kroah-Hartman
maintainerPATCH 25/1848 drm/amdgpu: Limit BO list entry count to prevent resource exhaustion
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jesse.Zhang <[email protected]>
commit 6270b1a5dab94665d7adce3dc78bc9066ed28bdd upstream.
Userspace can pass an arbitrary number of BO list entries via the bo_number field. Although the previous multiplication overflow check prevents out-of-bounds allocation, a large number of entries could still cause excessive memory allocation (up to potentially gigabytes) and unnecessarily long list processing times.
Introduce a hard limit of 128k entries per BO list, which is more than sufficient for any realistic use case (e.g., a single list containing all buffers in a large scene). This prevents memory exhaustion attacks and ensures predictable performance.
Return -EINVAL if the requested entry count exceeds the limit
--- drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +4 -0
@@ -35,6 +35,7 @@#define AMDGPU_BO_LIST_MAX_PRIORITY 32u#define AMDGPU_BO_LIST_NUM_BUCKETS (AMDGPU_BO_LIST_MAX_PRIORITY + 1) +#define AMDGPU_BO_LIST_MAX_ENTRIES (128 * 1024)static void amdgpu_bo_list_free_rcu (struct rcu_head *rcu) {
@@ -230,6 +231,9 @@ int amdgpu_bo_create_list_entry_array(stconst 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);
Greg Kroah-Hartman
maintainerPATCH 26/1848 drm/rockchip: dw_hdmi: Use resume_early pm ops for system suspend
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jonas Karlman <[email protected]>
[ Upstream commit af3a9eadc11896f6677bcb7102bfb7c84be48d2d ]
rockchip_drm_sys_resume()/drm_mode_config_helper_resume() is called before the resume pm ops of dw-hdmi. This result in an atomic_enable() before dw_hdmi_rockchip_resume()/dw_hdmi_resume() is called.
Resume (without changes):
- rockchip_drm_sys_resume()
- drm_mode_config_helper_resume()
- atomic_enable()
- dw_hdmi_rockchip_resume()
- dw_hdmi_resume()
- dw_hdmi_init_hw()
Change to use resume_early pm ops for system suspend to ensure pm ops for dw-hdmi is run before rockchip-drm pm ops. Also fix a possible NULL pointer dereference timing issue while at it.
Resume (with changes):
- dw_hdmi_rockchip_resume_early()
- dw_hdmi_resume()
- dw_hdmi_init_hw()
- rockchip_drm_sys_resume()
- drm_mode_config_helper_resume()
- atomic_enable()
--- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +4 -3
@@ -592,17 +592,18 @@ static int dw_hdmi_rockchip_remove(struct platform_device *pdev)return 0 ; } -static int __maybe_unused dw_hdmi_rockchip_resume (struct device *dev) +static int __maybe_unused dw_hdmi_rockchip_resume_early (struct device *dev) {struct rockchip_hdmi *hdmi =dev_get_drvdata (dev); -dw_hdmi_resume (hdmi->hdmi); +if (hdmi) +dw_hdmi_resume (hdmi->hdmi);return 0 ; }static const struct dev_pm_ops dw_hdmi_rockchip_pm = { -SET_SYSTEM_SLEEP_PM_OPS (NULL , dw_hdmi_rockchip_resume) +SET_LATE_SYSTEM_SLEEP_PM_OPS (NULL , dw_hdmi_rockchip_resume_early) };struct platform_driver dw_hdmi_rockchip_pltfm_driver = {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 27/1848 drm/amd/pm: Validate OD DPM triples before mutating tables
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Asad Kamal <[email protected]>
[ Upstream commit b390cb9d776039fc4f0be13b2649299079227d12 ]
vega10_odn_edit_dpm_table() and smu7_odn_edit_dpm_table() could mutate the live ODN table for valid triples, then return 0 after detecting a truncated buffer or out-of-range index. Validate all (index, clock, voltage) triples first and return -EINVAL on any failure; only then apply updates.
v2: Use distinct message for different error case, removed unused input_level from validation loop (Lijo)
v3: Reject negative level indices, input[] is long but was compared only against unsigned table bounds, so negative values could pass and truncate when assigned to uint32_t input_level.
Set DPMTABLE_OD_UPDATE_SCLK/MCLK only after validation passes, so a failed sysfs write does not leave need_update_dpm_table set for a later commit.
--- .../drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 34 ++++++++++------- .../drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 37 ++++++++++++------- 2 files changed, 43 insertions(+), 28 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c +20 -14
@@ -5093,23 +5093,29 @@ static int smu7_odn_edit_dpm_table(struct pp_hwmgr *hwmgr, }for (i =0 ; i < size; i +=3 ) { -if (i +3 > size || input[i] >= podn_dpm_table_in_backend->num_of_pl) { -pr_info ("invalid clock voltage input \n" ); -return 0 ; +if (i +3 > size) { +pr_info ("truncated clock/voltage input\n" ); +return -EINVAL ; } - input_level = input[i]; - input_clk = input[i+1 ] *100 ; - input_vol = input[i+2 ]; - -if (smu7_check_clk_voltage_valid (hwmgr, type, input_clk, input_vol)) { - podn_dpm_table_in_backend->entries[input_level].clock = input_clk; - podn_vdd_dep_in_backend->entries[input_level].clk = input_clk; - podn_dpm_table_in_backend->entries[input_level].vddc = input_vol; - podn_vdd_dep_in_backend->entries[input_level].vddc = input_vol; - podn_vdd_dep_in_backend->entries[input_level].vddgfx = input_vol; - }else { +if (input[i] <0 || input[i] >= podn_dpm_table_in_backend->num_of_pl) { +pr_info ("invalid clock/voltage level\n" );return -EINVAL ; } + input_clk = input[i +1 ] *100 ; + input_vol = input[i +2 ]; +if (!smu7_check_clk_voltage_valid (hwmgr, type, input_clk, input_vol)) +return -EINVAL ; + } + +for (i =0 ; i < size; i +=3 ) { + input_level = input[i]; + input_clk = input[i +1 ] *100 ; + input_vol = input[i +2 ]; + podn_dpm_table_in_backend->entries[input_level].clock = input_clk; + podn_vdd_dep_in_backend->entries[input_level].clk = input_clk; + podn_dpm_table_in_backend->entries[input_level].vddc = input_vol; + podn_vdd_dep_in_backend->entries[input_level].vddc = input_vol; + podn_vdd_dep_in_backend->entries[input_level].vddgfx = input_vol; }return 0 ;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +23 -14
@@ -5457,11 +5457,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);
@@ -5479,21 +5477,32 @@ static int vega10_odn_edit_dpm_table(struct pp_hwmgr *hwmgr, }for (i =0 ; i < size; i +=3 ) { -if (i +3 > size || input[i] >= podn_vdd_dep_table->count) { -pr_info ("invalid clock voltage input\n" ); -return 0 ; +if (i +3 > size) { +pr_info ("truncated clock/voltage input\n" ); +return -EINVAL ; } - input_level = input[i]; - input_clk = input[i+1 ] *100 ; - input_vol = input[i+2 ]; - -if (vega10_check_clk_voltage_valid (hwmgr, type, input_clk, input_vol)) { - dpm_table->dpm_levels[input_level].value = input_clk; - podn_vdd_dep_table->entries[input_level].clk = input_clk; - podn_vdd_dep_table->entries[input_level].vddc = input_vol; - }else { +if (input[i] <0 || input[i] >= podn_vdd_dep_table->count) { +pr_info ("invalid clock/voltage level\n" );return -EINVAL ; } + input_clk = input[i +1 ] *100 ; + input_vol = input[i +2 ]; +if (!vega10_check_clk_voltage_valid (hwmgr, type, input_clk, input_vol)) +return -EINVAL ; + } + +if (type ==PP_OD_EDIT_SCLK_VDDC_TABLE ) + data->need_update_dpm_table |=DPMTABLE_OD_UPDATE_SCLK ; +else + data->need_update_dpm_table |=DPMTABLE_OD_UPDATE_MCLK ; + +for (i =0 ; i < size; i +=3 ) { + input_level = input[i]; + input_clk = input[i +1 ] *100 ; + input_vol = input[i +2 ]; + dpm_table->dpm_levels[input_level].value = input_clk; + podn_vdd_dep_table->entries[input_level].clk = input_clk; + podn_vdd_dep_table->entries[input_level].vddc = input_vol; }vega10_odn_update_soc_table (hwmgr, type);return 0 ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 28/1848 drm/amdgpu: Gate debugfs MMIO access on kernel lockdown
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Asad Kamal <[email protected]>
[ Upstream commit 17ac73b24006700f50972d37e297dec1f523c14a ]
amdgpu_regs, amdgpu_regs2, and related debugfs nodes allow arbitrary MMIO read/write via RREG32/WREG32 without checking security_locked_down(). On kernel_lockdown=integrity systems this bypasses the same restrictions as /dev/mem and PCI config space sysfs.
Check LOCKDOWN_PCI_ACCESS (matching pci-sysfs) at the entry of every debugfs handler that performs direct register access.
v2: Use consistent check as per previous check to use LOCKDOWN_DEBUGFS(Lijo)
v3: Do not create any entry from amdgpu_debugfs_regs_init() if LOCKDOWN_PCI_ACCESS is active and log once. (Lijo)
--- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +7 -0
@@ -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 <linux/poll.h> #include <drm/drm_debugfs.h>
@@ -1217,6 +1218,12 @@ int amdgpu_debugfs_regs_init(struct amdgpu_device *adev)struct dentry *ent, *root = minor->debugfs_root;unsigned int i; +if (security_locked_down (LOCKDOWN_PCI_ACCESS )) { +drm_info (adev_to_drm (adev), +"amdgpu: HW debugfs nodes disabled (kernel lockdown)\n" ); +return 0 ; + } +for (i =0 ; i <ARRAY_SIZE (debugfs_regs); i++) { ent = debugfs_create_file(debugfs_regs_names[i], S_IFREG | S_IRUGO, root,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 29/1848 drm/radeon: avoid double free in r600 DPM cleanup
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ruoyu Wang <[email protected]>
[ Upstream commit d3f30034f861a585f8e487ae1555d9f288a96f87 ]
r600_parse_extended_power_table() uses manual kfree() calls for some early allocation failures, but the freed pointers are left in the dynamic power-management state. If device teardown later calls r600_free_extended_power_table(), those stale pointers can be freed again.
Use the common extended power table cleanup helper for those early failure paths as well, and clear each pointer after freeing it so repeated cleanup stays safe.
--- drivers/gpu/drm/radeon/r600_dpm.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-)
drivers/gpu/drm/radeon/r600_dpm.c +15 -6
@@ -935,7 +935,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev) ret =r600_parse_clk_voltage_dep_table (&rdev->pm.dpm.dyn_state.vddci_dependency_on_mclk, dep_table);if (ret) { -kfree (rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries); +r600_free_extended_power_table (rdev);return ret; } }
@@ -946,8 +946,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev) ret =r600_parse_clk_voltage_dep_table (&rdev->pm.dpm.dyn_state.vddc_dependency_on_mclk, dep_table);if (ret) { -kfree (rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries); -kfree (rdev->pm.dpm.dyn_state.vddci_dependency_on_mclk.entries); +r600_free_extended_power_table (rdev);return ret; } }
@@ -958,9 +957,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev) ret =r600_parse_clk_voltage_dep_table (&rdev->pm.dpm.dyn_state.mvdd_dependency_on_mclk, dep_table);if (ret) { -kfree (rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries); -kfree (rdev->pm.dpm.dyn_state.vddci_dependency_on_mclk.entries); -kfree (rdev->pm.dpm.dyn_state.vddc_dependency_on_mclk.entries); +r600_free_extended_power_table (rdev);return ret; } }
@@ -1300,17 +1297,29 @@ void r600_free_extended_power_table(struct radeon_device *rdev)struct radeon_dpm_dynamic_state *dyn_state = &rdev->pm.dpm.dyn_state;kfree (dyn_state->vddc_dependency_on_sclk.entries); + dyn_state->vddc_dependency_on_sclk.entries =NULL ;kfree (dyn_state->vddci_dependency_on_mclk.entries); + dyn_state->vddci_dependency_on_mclk.entries =NULL ;kfree (dyn_state->vddc_dependency_on_mclk.entries); + dyn_state->vddc_dependency_on_mclk.entries =NULL ;kfree (dyn_state->mvdd_dependency_on_mclk.entries); + dyn_state->mvdd_dependency_on_mclk.entries =NULL ;kfree (dyn_state->cac_leakage_table.entries); + dyn_state->cac_leakage_table.entries =NULL ;kfree (dyn_state->phase_shedding_limits_table.entries); + dyn_state->phase_shedding_limits_table.entries =NULL ;kfree (dyn_state->ppm_table); + dyn_state->ppm_table =NULL ;kfree (dyn_state->cac_tdp_table); + dyn_state->cac_tdp_table =NULL ;kfree (dyn_state->vce_clock_voltage_dependency_table.entries); + dyn_state->vce_clock_voltage_dependency_table.entries =NULL ;kfree (dyn_state->uvd_clock_voltage_dependency_table.entries); + dyn_state->uvd_clock_voltage_dependency_table.entries =NULL ;kfree (dyn_state->samu_clock_voltage_dependency_table.entries); + dyn_state->samu_clock_voltage_dependency_table.entries =NULL ;kfree (dyn_state->acp_clock_voltage_dependency_table.entries); + dyn_state->acp_clock_voltage_dependency_table.entries =NULL ; } enum radeon_pcie_gen r600_get_pcie_gen_support(struct radeon_device *rdev,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 30/1848 w1: ds2482: add OF device match table
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kryštof Černý <[email protected]>
[ Upstream commit 53f33fd74d3993af0fbb5494b5be709f6ca6b712 ]
Add an of_device_id table and hook it into the i2c driver so the ds2482/ds2484 can be matched and auto-probed from Device Tree.
This allows automatic module loading when instantiated via DT.
--- drivers/w1/masters/ds2482.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/w1/masters/ds2482.c +8 -0
@@ -554,9 +554,17 @@ static const struct i2c_device_id ds2482_id[] = { };MODULE_DEVICE_TABLE (i2c, ds2482_id); +static const struct of_device_id ds2482_of_match[] = { + { .compatible ="maxim,ds2482" , }, + { .compatible ="maxim,ds2484" , }, + { } +}; +MODULE_DEVICE_TABLE (of, ds2482_of_match); +static struct i2c_driver ds2482_driver = { .driver = { .name ="ds2482" , + .of_match_table = ds2482_of_match, }, .probe = ds2482_probe, .remove = ds2482_remove,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 31/1848 media: cec: stm32: return an error when log-address wait times out
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 3bc2e4a26465386332ee1a40219d8dafba335b0b ]
stm32_cec_adap_log_addr() waits for TXSOM to clear before disabling CEC and updating the logical address registers. The wait result is ignored, so a timeout can still be reported as a successful logical address update.
Return the polling error before touching the address registers. Compute the address mask only for valid logical addresses so the invalid-address path does not evaluate a shift based on CEC_LOG_ADDR_INVALID.
--- drivers/media/cec/platform/stm32/stm32-cec.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
drivers/media/cec/platform/stm32/stm32-cec.c +11 -5
@@ -195,18 +195,24 @@ static int stm32_cec_adap_enable(struct cec_adapter *adap, bool enable)static int stm32_cec_adap_log_addr (struct cec_adapter *adap,u8 logical_addr) {struct stm32_cec *cec = adap->priv; -u32 oar = (1 << logical_addr) <<16 ;u32 val; +int ret;/* Poll every 100µs the register CEC_CR to wait end of transmission */ -regmap_read_poll_timeout (cec->regmap,CEC_CR , val, !(val &TXSOM ), -100 ,CEC_XFER_TIMEOUT_MS *1000 ); + ret =regmap_read_poll_timeout (cec->regmap,CEC_CR , val, !(val &TXSOM ), +100 ,CEC_XFER_TIMEOUT_MS *1000 ); +if (ret) +return ret; +regmap_update_bits (cec->regmap,CEC_CR ,CECEN ,0 ); -if (logical_addr ==CEC_LOG_ADDR_INVALID ) +if (logical_addr ==CEC_LOG_ADDR_INVALID ) {regmap_update_bits (cec->regmap,CEC_CFGR ,OAR ,0 ); -else + }else { +u32 oar =BIT (logical_addr) <<16 ; +regmap_update_bits (cec->regmap,CEC_CFGR , oar, oar); + }regmap_update_bits (cec->regmap,CEC_CR ,CECEN ,CECEN );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 32/1848 irqdomain: Plug leak in irq_domain_alloc_irqs_locked() error path
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kemeng Shi <[email protected]>
[ Upstream commit 13856e22217fbf7c1200633716ff87ccb50fd89a ]
When irq_domain_trim_hierarchy() fails in irq_domain_alloc_irqs_locked(), the error handling path fails to undo the hierarchy allocations.
Add the missing cleanup.
[ tglx: Massage change log ]
--- kernel/irq/irqdomain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
kernel/irq/irqdomain.c +3 -1
@@ -1514,7 +1514,7 @@ static int irq_domain_alloc_irqs_locked(struct irq_domain *domain, int irq_base,for (i =0 ; i < nr_irqs; i++) { ret =irq_domain_trim_hierarchy (virq + i);if (ret) - goto out_free_irq_data; + goto out_free_irqs; }for (i =0 ; i < nr_irqs; i++)
@@ -1522,6 +1522,8 @@ static int irq_domain_alloc_irqs_locked(struct irq_domain *domain, int irq_base,return virq; +out_free_irqs: +irq_domain_free_irqs_hierarchy (domain, virq, nr_irqs); out_free_irq_data:irq_domain_free_irq_data (virq, nr_irqs); out_free_desc:
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 33/1848 clk: zynq: handle kasprintf() failure in periph_clk registration
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: William Theesfeld <[email protected]>
[ Upstream commit d4d0d335e8d37c6c7e1c5664c7664288eca5a09b ]
zynq_clk_register_periph_clk() ignores the return value of the two kasprintf() calls used to build the mux and divider clock names, and passes the resulting (possibly NULL) pointers straight into clk_register_mux(), clk_register_divider() and clk_register_gate() as the clock '"'name'"' argument. On allocation failure that name later gets dereferenced by the clock framework (e.g. in debugfs name formatting), causing a NULL-pointer dereference.
Check both kasprintf() returns. On failure unwind any allocated name buffer and the spinlock, then fall through to the existing err label which sets clks[] to ERR_PTR(-ENOMEM). Freeing the spinlock on the error path is correct here because no clk_register_*() call has had a chance to take ownership of it; the success path intentionally hands it off to the registered clocks.
The neighbouring zynq_clk_register_fclk() in the same file already uses this per-allocation goto-label cleanup pattern; this change brings periph_clk into line with it.
--- drivers/clk/zynq/clkc.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/clk/zynq/clkc.c +8 -0
@@ -187,7 +187,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 =clk_register_mux (NULL , mux_name, parents,4 ,CLK_SET_RATE_NO_REPARENT , clk_ctrl,4 ,2 ,0 , lock);
@@ -206,6 +210,10 @@ static void __init zynq_clk_register_periph_clk(enum zynq_clk clk0,return ; +err_div_name: +kfree (mux_name); +err_mux_name: +kfree (lock); err: clks[clk0] =ERR_PTR (-ENOMEM );if (two_gates)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 7/1848 serial: tegra: Add missing clk_disable_unprepare() in tegra_uart_hw_init()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yi Yang <[email protected]>
commit 38f28cfe9d08e3a47ef008798b275fef8118fc20 upstream.
Add the missing clk_disable_unprepare() before return from tegra_uart_hw_init() in the error handling path.
When request_irq() fails in tegra_uart_startup(), 'tup->uart_clk' has been enabled, fix it by adding clk_disable_unprepare().
--- drivers/tty/serial/serial-tegra.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/tty/serial/serial-tegra.c +6 -1
@@ -1060,6 +1060,7 @@ static int tegra_uart_hw_init(struct tegra_uart_port *tup)if (tup->cdata->fifo_mode_enable_status) { ret =tegra_uart_wait_fifo_mode_enabled (tup);if (ret <0 ) { +clk_disable_unprepare (tup->uart_clk);dev_err (tup->uport.dev,"Failed to enable FIFO mode: %d\n" , ret);return ret;
@@ -1081,6 +1082,7 @@ static int tegra_uart_hw_init(struct tegra_uart_port *tup)*/ ret =tegra_set_baudrate (tup,TEGRA_UART_DEFAULT_BAUD );if (ret <0 ) { +clk_disable_unprepare (tup->uart_clk);dev_err (tup->uport.dev,"Failed to set baud rate\n" );return ret; }
@@ -1240,10 +1242,13 @@ static int tegra_uart_startup(struct uart_port *u) dev_name(u->dev), tup);if (ret <0 ) {dev_err (u->dev,"Failed to register ISR for IRQ %d\n" , u->irq); - goto fail_hw_init; + goto fail_request_irq; }return 0 ; +fail_request_irq: +/* tup->uart_clk is already enabled in tegra_uart_hw_init */ +clk_disable_unprepare (tup->uart_clk); fail_hw_init:if (!tup->use_rx_pio)tegra_uart_dma_channel_free (tup, true);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 34/1848 ASoC: tlv320aic26: remove keyclick sysfs file
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit ae375f8d063d71e598c0d7e14fc056154c84d7a7 ]
aic26_probe() creates the keyclick sysfs file on the component device. The file callback uses the ASoC component pointer stored in the driver private data.
There is no matching remove callback, so the sysfs file can remain after the component is removed while its backing component state is gone.
Add a component remove callback that removes the keyclick file.
--- sound/soc/codecs/tlv320aic26.c | 6 ++++++ 1 file changed, 6 insertions(+)
sound/soc/codecs/tlv320aic26.c +6 -0
@@ -321,8 +321,14 @@ static int aic26_probe(struct snd_soc_component *component)return 0 ; } +static void aic26_remove (struct snd_soc_component *component) +{ +device_remove_file (component->dev, &dev_attr_keyclick); +} +static const struct snd_soc_component_driver aic26_soc_component_dev = { .probe = aic26_probe, + .remove = aic26_remove, .controls = aic26_snd_controls, .num_controls =ARRAY_SIZE (aic26_snd_controls), .dapm_widgets = tlv320aic26_dapm_widgets,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 35/1848 ASoC: hdac_hdmi: Fix resource cleanup on probe failure
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Haoxiang Li <[email protected]>
[ Upstream commit 785903b7770f19ea05b8a76081dff691c56fa771 ]
hdac_hdmi_dev_probe() gets the HDA link before allocating and initializing the HDMI codec private data. Several later error paths return directly without dropping the link reference, leaving the hlink refcount unbalanced.
Release the link reference on probe failures. Also turn display power off if the failure happens after it has been enabled.
This issue was dicussed in:
https://lore.kernel.org/all/[email protected]/
I think the paths fixed here are probe failure paths: the device has not been fully initialized or bound, and runtime PM suspend cannot be relied on to balance the reference taken during probe.
--- sound/soc/codecs/hdac_hdmi.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
sound/soc/codecs/hdac_hdmi.c +8 -2
@@ -2161,8 +2161,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;
@@ -2171,8 +2173,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 =
@@ -2197,6 +2201,8 @@ static int hdac_hdmi_dev_probe(struct hdac_device *hdev)if (ret <0 ) {dev_err (&hdev->dev,"Failed in parse and map nid with err: %d\n" , ret); +snd_hdac_ext_bus_link_put (hdev->bus, hlink); +snd_hdac_display_power (hdev->bus, hdev->addr, false);return ret; }snd_hdac_refresh_widgets (hdev);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 36/1848 fat: reject name longer than NAME_MAX in msdos_format_name()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zizhi Wo <[email protected]>
[ Upstream commit 9d7ed813ee5ff0d469bd99630828ed6fdef4e8da ]
msdos_format_name() performs no upper-bound check on the input name length. It silently truncates an arbitrarily long name into the 8.3 form (11 bytes) and returns success. The subsequent fat_scan() then matches only against these 11 truncated bytes, so it returns an inode as long as any entry with the same 8.3 name exists on disk.
For example, passing a 300-byte name of all 'A's returns 0 with res set to "AAAAAAAA" (8 'A's + 3 padding spaces), reporting success for a name far longer than NAME_MAX.
As a result, when a user calls open() on a path component longer than NAME_MAX (255) bytes, the VFS only enforces PATH_MAX, not the length of an individual component. The dentry keeps the original long name but gets an inode attached and becomes positive. Later in vfs_open() -> fsnotify_open() -> fanotify_info_copy_name() triggers WARN_ON_ONCE(), and the event is reported to userspace with an empty name.
vfat is not affected, as create goes through xlate_to_uni() which refuses names longer than FAT_LFN_LEN.
Fix this by checking 'len > NAME_MAX' at the entry of msdos_format_name(), the single entry point for all msdos name handling, aligning with the NAME_MAX check that xfs/9p/ceph/simple_lookup() perform at lookup.
--- fs/fat/namei_msdos.c | 3 +++ 1 file changed, 3 insertions(+)
fs/fat/namei_msdos.c +3 -0
@@ -29,6 +29,9 @@ static int msdos_format_name(const unsigned char *name, int len,unsigned char c;int space; +if (len >NAME_MAX ) +return -ENAMETOOLONG ; +if (name[0 ] =='.' ) {/* dotfile because . and .. already done */ if (opts->dotsOK) {/* Get rid of dot - test for it elsewhere */
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 37/1848 i2c: acpi: Force ELAN1300 touchpads to 100 kHz
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Abhijeeth Babu <[email protected]>
[ Upstream commit 9e9762e578db7556bea644bb5a8a2435f63544d1 ]
The ELAN1300 touchpad with HID ID 04F3:3104 on the ASUS VivoBook X513UA_KM513UA exhibits severe pointer jumps and erratic movement when the I2C bus operates at 400 kHz.
The system DSDT describes the touchpad using an I2cSerialBusV2 resource with a speed of 0x00061A80, corresponding to 400 kHz, on the AMDI0010:03 controller.
At this speed, libinput repeatedly reports:
kernel bug: Touch jump detected and discarded
Add ELAN1300 to i2c_acpi_force_100khz_device_ids so that it operates at 100 kHz.
Before the change, nine touch-jump events were recorded, with additional messages suppressed by libinput's rate limiter. With the bus forced to 100 kHz, no touch-jump events have been observed and the touchpad operates normally.
The affected system uses BIOS X513UA.319 dated 2023-05-09.
--- drivers/i2c/i2c-core-acpi.c | 1 + 1 file changed, 1 insertion(+)
drivers/i2c/i2c-core-acpi.c +1 -0
@@ -316,6 +316,7 @@ static const struct acpi_device_id i2c_acpi_force_100khz_device_ids[] = {*/ { "DLL0945", 0 }, { "ELAN06FA", 0 }, + { "ELAN1300", 0 }, {} };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 38/1848 drm/amdgpu: Add checks to vbios fetch through ATRM
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lijo Lazar <[email protected]>
[ Upstream commit 8c3fcfc14fc1320a1155acb2dd7656fce7003bc0 ]
Check if a valid buffer object is returned after ATRM call. Also, match the buffer length against requested size before copying.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c +8 -2
@@ -266,8 +266,14 @@ static int amdgpu_atrm_call(acpi_handle atrm_handle, uint8_t *bios, } obj = (union acpi_object *)buffer.pointer; -memcpy (bios+offset, obj->buffer.pointer, obj->buffer.length); - len = obj->buffer.length; +if (!obj || obj->type !=ACPI_TYPE_BUFFER ) { +DRM_ERROR ("ATRM returned an invalid object\n" ); +kfree (buffer.pointer); +return -EINVAL ; + } + + len =min_t (size_t, obj->buffer.length, len); +memcpy (bios+offset, obj->buffer.pointer, len);kfree (buffer.pointer);return len; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 39/1848 drm/amdgpu: Validate ATIF buffer length before use
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lijo Lazar <[email protected]>
[ Upstream commit b978b7d43963bbb3e2d850288f7c21ac11c3b751 ]
Add a min_size parameter to amdgpu_atif_call() to validate that the returned ACPI buffer is of type ACPI_TYPE_BUFFER, holds at least a u16 size field, does not claim more data than was actually returned, and meets the minimum size required by the calling function. Each caller passes its required minimum via sizeof() or offsetof() of the expected output struct and drops its own size check.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 68 ++++++++++++------------ 1 file changed, 34 insertions(+), 34 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +34 -34
@@ -78,13 +78,15 @@ struct amdgpu_atif {* @handle: acpi handle * @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;
@@ -127,6 +129,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; }
@@ -189,19 +213,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);
@@ -211,7 +230,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; }
@@ -266,20 +284,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",
@@ -342,20 +354,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;
@@ -387,24 +393,18 @@ static int amdgpu_atif_get_sbios_requests(struct amdgpu_atif *atif,int count =0 ; info =amdgpu_atif_call (atif,ATIF_FUNCTION_GET_SYSTEM_BIOS_REQUESTS , -NULL ); +NULL ,sizeof (*req));if (!info)return -EIO ; - size = *(u16 *)info->buffer.pointer; -if (size <0xd ) { - count = -EINVAL ; - goto out; - }memset (req,0 ,sizeof (*req)); - size =min (sizeof (*req), size); + size =min (sizeof (*req), (size_t )*(u16 *)info->buffer.pointer);memcpy (req, info->buffer.pointer, size);DRM_DEBUG_DRIVER ("SBIOS pending requests: %#x\n" , req->pending); count =hweight32 (req->pending); -out:kfree (info);return count; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 40/1848 drm/amd/pm: validate vega10 profile mode inputs
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lijo Lazar <[email protected]>
[ Upstream commit bf939f2a1687ef4ab815640096357f8ef5bd5fb6 ]
Check for out of range profile modes and custom params that exceed 8 bits.
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +9 -0
@@ -5218,6 +5218,11 @@ static int vega10_set_power_profile_mode(struct pp_hwmgr *hwmgr, long *input, uiuint8_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 ;
@@ -5233,6 +5238,10 @@ static int vega10_set_power_profile_mode(struct pp_hwmgr *hwmgr, long *input, uireturn -EINVAL ; } +if ((input[0 ] & ~0xFF ) || (input[1 ] & ~0xFF ) || + (input[2 ] & ~0xFF ) || (input[3 ] & ~0xFF )) +return -EINVAL ; + data->custom_profile_mode[0 ] = busy_set_point = input[0 ]; data->custom_profile_mode[1 ] =FPS = input[1 ]; data->custom_profile_mode[2 ] = use_rlc_busy = input[2 ];
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 41/1848 drm/amdgpu: Support some Barco AMD based graphics adapters
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Matthew Jacob <[email protected]>
[ Upstream commit 3dc4d68ee26a7ac12069ff0562ad8935106c79b6 ]
These adapters typically are only supported by Barco on the Windows platform. However, with these changes in the linux driver, multiple monitor support should work correctly.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4 -0
@@ -907,6 +907,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},
@@ -977,6 +978,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},
@@ -1005,6 +1007,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},
@@ -1018,6 +1021,7 @@ static const struct pci_device_id pciidlist[] = { {0x1002, 0x6985, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, {0x1002, 0x6986, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, {0x1002, 0x6987, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, + {0x1002, 0x698F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, {0x1002, 0x6995, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, {0x1002, 0x6997, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, {0x1002, 0x699F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 42/1848 drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <[email protected]>
[ Upstream commit 3a8d8e0b7f61cd759d5d4870b6220161f8a5b114 ]
The Vega hwmgr PowerPlay table parsers read fixed table fields, state array entries, or SMC PPT fields before validating that the VBIOS table buffer covers those structures. A truncated table can therefore lead to out-of-bounds reads during hwmgr initialization.
Reject tables smaller than the fixed PowerPlay table. For Vega10, also validate the state array offset and entry range before dereferencing the state array.
--- .../powerplay/hwmgr/vega10_processpptables.c | 59 ++++++++++++------- .../powerplay/hwmgr/vega12_processpptables.c | 7 +++ .../powerplay/hwmgr/vega20_processpptables.c | 7 +++ 3 files changed, 52 insertions(+), 21 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c +38 -21
@@ -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(
@@ -1284,15 +1309,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); }
@@ -1343,17 +1367,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 );
@@ -1395,4 +1413,3 @@ int vega10_baco_set_cap(struct pp_hwmgr *hwmgr) PHM_PlatformCaps_BACO);return result; } -
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c +7 -0
@@ -65,6 +65,13 @@ static int check_powerplay_tables(struct pp_hwmgr *hwmgr, const ATOM_Vega12_POWERPLAYTABLE *powerplay_table) { + size_t smc_pptable_size = +offsetofend (ATOM_Vega12_POWERPLAYTABLE, smcPPTable); +size_t table_size = hwmgr->soft_pp_table_size; + +PP_ASSERT_WITH_CODE ((table_size >= smc_pptable_size), +"Invalid PowerPlay Table!" , return -1 ); +PP_ASSERT_WITH_CODE ((powerplay_table->sHeader.format_revision >=ATOM_VEGA12_TABLE_REVISION_VEGA12 ),"Unsupported PPTable format!" , return -1 );
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c +7 -0
@@ -639,6 +639,13 @@ static int check_powerplay_tables(struct pp_hwmgr *hwmgr, const ATOM_Vega20_POWERPLAYTABLE *powerplay_table) { + size_t smc_pptable_size = +offsetofend (ATOM_Vega20_POWERPLAYTABLE, smcPPTable); +size_t table_size = hwmgr->soft_pp_table_size; + +PP_ASSERT_WITH_CODE ((table_size >= smc_pptable_size), +"Invalid PowerPlay Table!" , return -1 ); +PP_ASSERT_WITH_CODE ((powerplay_table->sHeader.format_revision >=ATOM_VEGA20_TABLE_REVISION_VEGA20 ),"Unsupported PPTable format!" , return -1 );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 43/1848 drm/amd/pm: Validate Tonga PowerPlay state array bounds
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <[email protected]>
[ Upstream commit 1ac24df78c566d767a5ef05a1fe0ecc55bac248d ]
process_pptables_v1_0.c builds the Tonga state array pointer from usStateArrayOffset before checking that the table buffer covers the referenced data. A truncated PowerPlay table can therefore lead to out-of-bounds reads while validating the state array.
Validate the fixed table size first, then check the state array offset and entry range before dereferencing the state array.
--- .../powerplay/hwmgr/process_pptables_v1_0.c | 62 ++++++++++++------- 1 file changed, 40 insertions(+), 22 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c +40 -22
@@ -1034,15 +1034,17 @@ static int init_thermal_controller(* @param 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),
@@ -1051,12 +1053,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 ;
@@ -1160,17 +1184,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); }
@@ -1300,15 +1323,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,
@@ -1334,4 +1353,3 @@ int get_powerplay_table_entry_v1_0(struct pp_hwmgr *hwmgr,return result; } -
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 8/1848 coredump: hold RCU while releasing parked threads
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Christian Brauner <[email protected]>
[ Upstream commit 61d58591aa0188bf2463e263962256316ff8b576 ]
coredump_finish() releases the parked threads by clearing ->task in their core_thread entry and calling wake_up_process() on each of them. It does that without holding a reference on the task and without being inside rcu.
But calling wake_up_process(task) without rcu here isn't safe. A parked thread doesn't need that wakeup to leave. A spurious wakeup or a preemption after the store is enough for the task to go away.
So if the coredump client is preempted between the store and wake_up_process() the thread can exit and be freed in the meantime and try_to_wake_up() takes pi_lock in freed memory.
Hold rcu across the loop.
--- fs/coredump.c | 4 ++++ 1 file changed, 4 insertions(+)
fs/coredump.c +4 -0
@@ -529,6 +529,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;
@@ -537,9 +539,11 @@ static void coredump_finish(struct mm_struct *mm, bool core_dumped)* ->task == NULL before we read ->next. */ smp_mb (); +/* Any wakeup now lets the thread exit, rcu keeps it alive. */ curr->task =NULL ;wake_up_process (task); } +rcu_read_unlock (); mm->core_state =NULL ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 44/1848 drm/amd/pm: Validate legacy hwmgr PP table offsets
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <[email protected]>
[ Upstream commit 0ceb6bc43e62f0e73b282c9de8f4bc4d5498f281 ]
processpptables.c walks several variable-length PPLIB tables by using offsets from the VBIOS PowerPlay table. Some paths dereference extended headers, state arrays, clock arrays, non-clock arrays, or VCE records before checking that the referenced data is inside the table buffer.
Add local bounds helpers and validate the relevant offsets and entry sizes before dereferencing them. This prevents truncated or malformed legacy PowerPlay tables from driving out-of-bounds reads during hwmgr initialization and table entry lookup.
--- .../amd/pm/powerplay/hwmgr/processpptables.c | 446 +++++++++++++----- 1 file changed, 316 insertions(+), 130 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c +316 -130
@@ -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; }
@@ -776,20 +793,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[] = {
@@ -857,6 +891,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);
@@ -869,13 +905,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
@@ -902,49 +946,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);
@@ -953,12 +1076,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;
@@ -1692,21 +1826,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 );
@@ -1730,6 +1913,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);
@@ -1832,4 +2019,3 @@ const struct pp_table_func pptable_funcs = { .pptable_get_vce_state_table_entry = get_vce_state_table_entry, }; -
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 45/1848 net: usb: rtl8150: handle link status read failures
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yousef Alhouseen <[email protected]>
[ Upstream commit 8c9c5b9a689612dcb92a04a4218c975cd19f19d8 ]
set_carrier() ignores the result of the USB control transfer and tests the stack variable supplied as its receive buffer. If the device rejects or aborts the request, that variable remains uninitialized and the driver chooses an arbitrary carrier state.
Leave the existing carrier state unchanged when the link status cannot be read. A transient USB error should not be treated as link loss.
--- drivers/net/usb/rtl8150.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/usb/rtl8150.c +3 -1
@@ -734,7 +734,9 @@ static void set_carrier(struct net_device *netdev)rtl8150_t *dev =netdev_priv (netdev);short tmp; -get_registers (dev,CSCR ,2 , &tmp); +if (get_registers (dev,CSCR ,2 , &tmp)) +return ; +if (tmp &CSCR_LINK_STATUS )netif_carrier_on (netdev);else
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 46/1848 netfilter: ebtables: bound num_counters like nentries in do_replace()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jiayuan Chen <[email protected]>
[ Upstream commit 43ae85af154b27f9a0ff602f7a01e3a7583ffdab ]
do_replace_finish() allocates the counter buffer before it is validated:
counterstmp = vmalloc_array(repl->num_counters, sizeof(*counterstmp));
do_replace() only checks num_counters against INT_MAX / sizeof(struct ebt_counter), so vmalloc_array() can be asked for up to 134217726 * 16 = 2147483616 bytes (~2 GiB).
num_counters must in fact equal nentries: do_replace_finish() later rejects the request when repl->num_counters != t->private->nentries. get_counters() folds the per-CPU counters back into one entry per rule, so what userspace gets is bounded by nentries, never by nentries * nr_cpus. Apply the same upper bound used for nentries (MAX_EBT_ENTRIES) to the incoming num_counters so the over-sized allocation can no longer be requested.
The allocation is still kept outside the ebt_mutex, since vmalloc() may sleep and trigger reclaim; only the bound is tightened.
--- net/bridge/netfilter/ebtables.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
net/bridge/netfilter/ebtables.c +6 -6
@@ -38,6 +38,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))
@@ -1084,10 +1086,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 ;
@@ -2151,10 +2152,9 @@ static int compat_copy_ebt_replace_from_user(struct ebt_replace *repl,if (tmp.entries_size ==0 )return -EINVAL ; -if (tmp.nentries >= ((INT_MAX -sizeof (struct ebt_table_info )) / -NR_CPUS -SMP_CACHE_BYTES ) /sizeof (struct ebt_counter )) +if (tmp.nentries >=MAX_EBT_ENTRIES )return -ENOMEM ; -if (tmp.num_counters >=INT_MAX /sizeof (struct ebt_counter )) +if (tmp.num_counters >=MAX_EBT_ENTRIES )return -ENOMEM ;memcpy (repl, &tmp, offsetof(struct ebt_replace , hook_entry));
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 47/1848 dmaengine: pl330: remove debugfs file on teardown
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 0d3e3376b289cdaff5b3b6c1581999926ff1000f ]
init_pl330_debugfs() creates a debugfs file with struct pl330_dmac as private data. pl330_remove() then unregisters the DMA device and frees the PL330 channel/thread state without removing that file.
Keep the debugfs dentry and remove it before tearing down the DMAC state used by the debugfs show callback.
--- drivers/dma/pl330.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-)
drivers/dma/pl330.c +16 -3
@@ -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; };
@@ -2963,14 +2964,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 /*
@@ -3219,6 +3230,8 @@ static void pl330_remove(struct amba_device *adev)struct dma_pl330_chan *pch, *_p;int i, irq; +deinit_pl330_debugfs (pl330); +pm_runtime_get_noresume (pl330->ddma.dev);if (adev->dev.of_node)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 48/1848 net: mvneta_bm: add suspend/resume support to prevent crash after resume
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yun Zhou <[email protected]>
[ Upstream commit 140be217df577961bea1ca36240439a463026cbd ]
The mvneta driver uses the hardware Buffer Manager (BM) for RX buffer allocation. During suspend, mvneta disables its clock, causing BM to lose all buffer address state. On resume, mvneta_bm_port_init() re- attaches the BM pool to the NIC, but BM hardware returns stale/garbage buffer addresses. When NAPI poll processes these buffers, DMA cache sync hits an invalid virtual address causing a kernel panic:
Unable to handle kernel paging request at virtual address b0000080 PC is at v7_dma_inv_range Call trace: v7_dma_inv_range from arch_sync_dma_for_cpu+0x94/0x158 arch_sync_dma_for_cpu from __dma_sync_single_for_cpu+0xc4/0x15c __dma_sync_single_for_cpu from mvneta_rx_swbm+0x6c8/0xf48 mvneta_rx_swbm from mvneta_poll+0x6fc/0x70c mvneta_poll from __napi_poll.constprop.0+0x2c/0x1e0 __napi_poll.constprop.0 from net_rx_action+0x160/0x2c4 net_rx_action from handle_softirqs+0xd8/0x2b8 handle_softirqs from run_ksoftirqd+0x30/0x94 run_ksoftirqd from smpboot_thread_fn+0x100/0x204 smpboot_thread_fn from kthread+0xf4/0x110 kthread from ret_from_fork+0x14/0x28
Fix by adding suspend/resume callbacks to the BM driver:
- suspend: drain all buffers (with DMA unmapping), free the BPPE regions, and reset pool state to FREE before stopping BM and gating the clock.
- resume: enable the clock, reinitialize BM defaults, and restore pool read/write pointers and size registers. Pool allocation and buffer refill are handled by mvneta_resume() through the normal mvneta_bm_port_init() path, which sees pools as FREE and performs full initialization identical to probe.
Add a device_link (DL_FLAG_AUTOREMOVE_CONSUMER) in mvneta_probe to guarantee BM resumes before mvneta and suspends after mvneta. If the link cannot be created, fall back to SW buffer management to avoid a potential crash on resume due to unordered PM transitions.
--- drivers/net/ethernet/marvell/mvneta.c | 18 ++++++ drivers/net/ethernet/marvell/mvneta_bm.c | 72 ++++++++++++++++++++++++ 2 files changed, 90 insertions(+)
drivers/net/ethernet/marvell/mvneta.c +18 -0
@@ -5216,6 +5216,24 @@ static int mvneta_probe(struct platform_device *pdev) "use SW buffer management\n");mvneta_bm_put (pp->bm_priv); pp->bm_priv =NULL ; + }else if (!device_link_add (&pdev->dev, + &pp->bm_priv->pdev->dev, +DL_FLAG_AUTOREMOVE_CONSUMER )) { +/* +* Link guarantees BM resumes before mvneta. +* Without it, BM may not be ready when +* mvneta_bm_port_init() runs on resume, +* causing stale buffer addresses and a crash. +* Fall back to SW management to be safe. +*/ +dev_warn (&pdev->dev, +"failed to link to BM, use SW buffer management\n" ); +mvneta_bm_pool_destroy (pp->bm_priv, + pp->pool_long,1 << pp->id); +mvneta_bm_pool_destroy (pp->bm_priv, + pp->pool_short,1 << pp->id); +mvneta_bm_put (pp->bm_priv); + pp->bm_priv =NULL ; } }/* Set RX packet offset correction for platforms, whose
drivers/net/ethernet/marvell/mvneta_bm.c +72 -0
96 lines not on this page · raw message
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 9/1848 asymmetric_keys: reject trust keys without IDs
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Weiming Shi <[email protected]>
[ Upstream commit 9695df3b1db4ac4534274d38ee16e3b9b0bf910e ]
The PKCS#8 parser deliberately leaves the asym_key_ids payload slot empty. key_or_keyring_common() unconditionally dereferences that slot when a PKCS#8 key is supplied to a key_or_keyring restriction. Both the plain and :chain forms reach this branch, allowing an unprivileged caller to trigger a NULL pointer dereference through KEYCTL_RESTRICT_KEYRING followed by add_key().
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000 KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] RIP: 0010:key_or_keyring_common (crypto/asymmetric_keys/restrict.c:205 crypto/asymmetric_keys/restrict.c:279) Call Trace: <TASK> __key_create_or_update (security/keys/key.c:884) key_create_or_update (security/keys/key.c:1021) __do_sys_add_key (security/keys/keyctl.c:134) do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) </TASK> Kernel panic - not syncing: Fatal exception
Reject an asymmetric restriction key without key IDs. A PKCS#8 private key cannot identify the signer of a candidate certificate and is not a valid trust anchor.
--- crypto/asymmetric_keys/restrict.c | 2 ++ 1 file changed, 2 insertions(+)
crypto/asymmetric_keys/restrict.c +2 -0
@@ -154,6 +154,8 @@ static int key_or_keyring_common(struct key *dest_keyring,const struct asymmetric_key_ids *signer_ids; signer_ids =asymmetric_key_ids (trusted); +if (!signer_ids) +return -ENOKEY ;/* * The auth_ids come from the candidate key (the
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 10/1848 lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jérémy Jean <[email protected]>
commit 24f07e8c07a0c0dd275331cbb41c79a78741eef9 upstream.
When poly1305_blocks_neon() resumes from a base 2^26 accumulator and the next update contains an odd number of full 16-byte blocks, it processes one leading block through poly1305_mult() so that the remaining NEON work has an even block count. That requires converting the accumulator to the base 2^64 form used by poly1305_mult(). The final ADC of that conversion stores the carry into d2, but the following accumulation and poly1305_mult() use h2. If the conversion carries across bit 128, the carry is dropped and the emitted tag is wrong.
This was introduced by Cryptogams commit 03dc4adf91c8 ("arm/poly1305-armv*.pl: optimize branches."), which removed the reduction that consumed d2 shortly before Linux imported the code. OpenSSL's copy did not take that change.
The carry is possible because the NEON code stores the accumulator [h0, h1, h2, h3, h4] in a lazily reduced, redundant base 2^26 form: its final carry chain leaves h0, h2, h3 < 2^26, but h1 and h4 may slightly exceed 2^26 - 1. For example, the reachable state
h0 = 4
h1 = 2^26
h2 = 2^26 - 1
h3 = 2^26 - 1
h4 = 2^24 - 1
represents 4 + 2^26*2^26 + (2^26-1)*2^52 + (2^26-1)*2^78 + (2^24-1)*2^104 = 2^128 + 4, despite the bit representing the 2^128 term (bit 24 of h4) not being set; the extra comes from the h1 limb being above the normal base 2^26 range. When this value is converted into the non-redundant base 2^64 form, a carry into the new 2^128 bit (in bit 0 of h2) is necessary to preserve the value.
Given the above bounds, a carry into bit 128 happens exactly when h1 >= 2^26, h2 = h3 = 2^26 - 1, and h4 mod 2^24 = 2^24 - 1.
Store the carry into h2, matching the other base 2^26 to base 2^64 conversions in poly1305_blocks() and poly1305_emit().
This bug causes an incorrect tag to be emitted. However, this is unlikely to happen in practice where Poly1305 is used with a random key, since the random key tends to distribute the accumulator values throughout their valid range. There isn't an obvious way for an attacker without knowledge of the r_key to cause [h0, h1, h2, h3, h4] to land on the precise values where this bug occurs.
[EB: Rewrote the commit message to more clearly describe the bug and
its impact, and simplified explanation about why there's a carry bit.]
--- arch/arm64/crypto/poly1305-armv8.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/crypto/poly1305-armv8.pl +1 -1
@@ -372,7 +372,7 @@ poly1305_blocks_neon: adc $h1,$h1,xzr lsr $h2,x14,#24 adds $h1,$h1,x14,lsl#40 - adc $d2,$h2,xzr // can be partially reduced... + adc $h2,$h2,xzr // preserve carry into top limb ldp $d0,$d1,[$inp],#16 // load input sub $len,$len,#16
Greg Kroah-Hartman
maintainerPATCH 11/1848 usb: typec: tcpm: bound altmode_desc[] per iteration in svdm_consume_modes()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Greg Kroah-Hartman <[email protected]>
commit 3389c149c68c3fea61910ad5d34f7bf3bff44e32 upstream.
svdm_consume_modes() checks pmdata->altmodes against the array size once before the loop over the count, but forgot to check the bound at every point in the loop.
In the well-behaved SVDM discovery flow this is harmless because each of at most SVID_DISCOVERY_MAX SVIDs contributes at most MODE_DISCOVERY_MAX modes, exactly filling altmode_desc[ALTMODE_DISCOVERY_MAX]. But the CMDT_RSP_ACK handler in tcpm_pd_svdm() does not correlate an incoming ACK with any request the port actually sent. Once port->partner is set, an unsolicited Discover Modes ACK is consumed unconditionally. A broken or malicious port partner can therefore drive altmodes to ALTMODE_DISCOVERY_MAX - 1 via the normal flow, and then send one extra Discover Modes ACK with seven VDOs. Because the pre-loop check passes, the loop could then writes up to five entries past altmode_desc[]. For mode_data_prime the next field in struct tcpm_port is the partner_altmode[] pointer array, which then receives partner-chosen SVID/VDO bytes.
Move the bound check inside the loop so the array can never be indexed past ALTMODE_DISCOVERY_MAX regardless of how many VDOs the partner supplies or how the function was reached.
[Denis Arefev: adapted for 5.10/6.1: tcpm has no SOP' support here, svdm_consume_modes() takes no rx_sop_type argument and has a single pre-loop bound check instead of the two in the SOP/SOP' switch; drop that one check and add the per-iteration bound check]
--- drivers/usb/typec/tcpm/tcpm.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/usb/typec/tcpm/tcpm.c +4 -5
@@ -1155,17 +1155,16 @@ static void svdm_consume_modes(struct tcstruct 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));
Greg Kroah-Hartman
maintainerPATCH 12/1848 mm: move mmap_min_addr logic from callers into vm_unmapped_area()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Linus Torvalds <[email protected]>
commit 6b008640db7355d8de6ac18f74cedd7ccc92684f upstream.
Instead of having callers care about the mmap_min_addr logic for the lowest valid mapping address (and some of them getting it wrong), just move the logic into vm_unmapped_area() itself. One less thing for various architecture cases (and generic helpers) to worry about.
We should really try to make much more of this be common code, but baby steps..
Without this, vm_unmapped_area() could return an address below mmap_min_addr (because some caller forgot about that). That then causes the mmap machinery to think it has found a workable address, but then later security_mmap_addr(addr) is unhappy about it and the mmap() returns with a nonsensical error (EPERM).
The proper action is to either return ENOMEM (if the virtual address space is exhausted), or try to find another address (ie do a bottom-up search for free addresses after the top-down one failed).
See commit 2afc745f3e30 ("mm: ensure get_unmapped_area() returns higher address than mmap_min_addr"), which fixed this for one call site (the generic arch_get_unmapped_area_topdown() fallback) but left other cases alone.
[ Adapted to the rbtree based unmapped_area() and unmapped_area_topdown()
used before the maple tree conversion: clamp the lower search bound to mmap_min_addr there instead of in the maple tree search. ]
--- arch/s390/mm/hugetlbpage.c | 2 +- arch/s390/mm/mmap.c | 2 +- fs/hugetlbfs/inode.c | 2 +- mm/mmap.c | 18 ++++++++++-------- 4 files changed, 13 insertions(+), 11 deletions(-)
arch/s390/mm/hugetlbpage.c +1 -1
@@ -290,7 +290,7 @@ static unsigned long hugetlb_get_unmappe info.flags =VM_UNMAPPED_AREA_TOPDOWN ; info.length = len; - info.low_limit =max (PAGE_SIZE , mmap_min_addr); + info.low_limit =PAGE_SIZE ; info.high_limit = current->mm->mmap_base; info.align_mask =PAGE_MASK & ~huge_page_mask (h); info.align_offset =0 ;
arch/s390/mm/mmap.c +1 -1
@@ -136,7 +136,7 @@ unsigned long arch_get_unmapped_area_top info.flags =VM_UNMAPPED_AREA_TOPDOWN ; info.length = len; - info.low_limit =max (PAGE_SIZE , mmap_min_addr); + info.low_limit =PAGE_SIZE ; info.high_limit = mm->mmap_base;if (filp || (flags &MAP_SHARED )) info.align_mask =MMAP_ALIGN_MASK <<PAGE_SHIFT ;
fs/hugetlbfs/inode.c +1 -1
@@ -232,7 +232,7 @@ hugetlb_get_unmapped_area_topdown(struct info.flags =VM_UNMAPPED_AREA_TOPDOWN ; info.length = len; - info.low_limit =max (PAGE_SIZE , mmap_min_addr); + info.low_limit =PAGE_SIZE ; info.high_limit =arch_get_mmap_base (addr, current->mm->mmap_base); info.align_mask =PAGE_MASK & ~huge_page_mask (h); info.align_offset =0 ;
mm/mmap.c +10 -8
@@ -1944,6 +1944,7 @@ static unsigned long unmapped_area(strucstruct 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;
@@ -1955,9 +1956,9 @@ static unsigned long unmapped_area(strucreturn -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))
@@ -2023,8 +2024,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;
@@ -2039,6 +2040,7 @@ static unsigned long unmapped_area_topdostruct 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;
@@ -2054,9 +2056,9 @@ static unsigned long unmapped_area_topdoreturn -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;
@@ -2128,7 +2130,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; }
@@ -2235,7 +2237,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 ;
Greg Kroah-Hartman
maintainerPATCH 13/1848 ALSA: line6: Clear prev_fbuf on capture buffer release
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: YuanZhe Liu <[email protected]>
commit aa118c8f61d59387961d58ffae831c5259a9f222 upstream.
A KASAN slab-use-after-free read was reported in submit_audio_out_urb() when generating an impulse test signal:
BUG: KASAN: slab-use-after-free in create_impulse_test_signal sound/usb/line6/playback.c:76 [inline] BUG: KASAN: slab-use-after-free in submit_audio_out_urb+0x1848/0x1b20 sound/usb/line6/playback.c:249 Read of size 2 at addr ffff888008d74870 by task syz.2.3214/7785 Allocated by task 11: kmem_cache_alloc_noprof+0x2f0/0x390 mm/slub.c:4144 line6_buffer_acquire+0x1a1/0x220 sound/usb/line6/pcm.c:158 line6_pcm_acquire+0xb6/0x230 sound/usb/line6/pcm.c:329 line6_startup_work+0x3c/0x50 sound/usb/line6/driver.c:728 Freed by task 7785: kfree+0xf8/0x390 mm/slub.c:6566 line6_buffer_release sound/usb/line6/pcm.c:176 [inline] line6_buffer_release+0xa5/0xf0 sound/usb/line6/pcm.c:170 __line6_pcm_release sound/usb/line6/pcm.c:305 [inline] line6_pcm_release+0x5a/0x80 sound/usb/line6/pcm.c:313 snd_toneport_monitor_put+0x11b/0x190 sound/usb/line6/toneport.c:183
line6pcm->prev_fbuf points into the capture PCM stream buffer (line6pcm->in.buffer), which is updated during audio_in_callback() to feed rate synchronization, software monitoring, and impulse test signal generation on playback side.
When all capture streams are closed, line6_buffer_release() frees pstr->buffer with kfree(). However, it does not clear line6pcm->prev_fbuf. If playback is subsequently started (e.g. via impulse test signal volume control snd_line6_impulse_volume_put()), submit_audio_out_urb() dereferences the stale pointer line6pcm->prev_fbuf under in.lock, resulting in a slab-use-after-free read.
Clear prev_fbuf and prev_fsize in line6_buffer_release() when releasing the capture stream buffer under in.lock, ensuring that no stale buffer pointer can be accessed by submit_audio_out_urb().
--- sound/usb/line6/pcm.c | 8 ++++++++ 1 file changed, 8 insertions(+)
sound/usb/line6/pcm.c +8 -0
@@ -173,6 +173,14 @@ static void line6_buffer_release(structclear_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 ; }
Greg Kroah-Hartman
maintainerPATCH 4/1848 exec: Cleanup POSIX timers right after de_thread()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hyunwoo Kim <[email protected]>
commit acb03d3881818581052924a9bbbe92b8741ed448 upstream.
A per-thread CPU timer holds a reference to the PID of the thread it is attached to and, while it is armed, its node is queued in that thread's posix_cputimers. The task is looked up by that PID.
When a non-leader thread exec()s, de_thread() changes which task owns that PID. pid_task(timer->it.cpu.pid, PIDTYPE_PID) then returns NULL, but the node is still queued on tsk, which is alive. timer_lock_sighand() takes a failed lookup to mean that the node is already dequeued, so it has nothing to undo.
begin_new_exec() calls posix_cpu_timers_exit(me) right after exec_task_namespaces() and that removes the leftover node, so the state normally stays invisible. But bprm->point_of_no_return is set before de_thread(), so if unshare_files(), set_mm_exe_file(), exec_mmap() or exec_task_namespaces() fails, the task dies before it gets there. exit_itimers() then frees the k_itimer while its node is still queued, and reaping tsk later erases that freed node from the rbtree.
In short:
the non-leader thread B the parent
timer_create(CLOCK_THREAD_CPUTIME_ID)
timer_settime()
arm_timer() // the node is queued on B
execve()
de_thread(B)
exchange_tids(B, leader) // B's PID now belongs to the leader release_task(leader)
__exit_signal(leader)
posix_cpu_timers_exit(leader) // cleans leader's queue, not B's __unhash_process(leader) // that PID has no task anymore
exec_mmap()
mmap_read_lock_killable(old_mm)
kill(B, SIGKILL)
// -EINTR
get_signal()
do_exit()
exit_itimers()
posix_timer_delete()
posix_cpu_timer_del()
posix_timer_unhash_and_free() // freed while still queued
wait4()
release_task(B)
posix_cpu_timers_exit(B)
cleanup_timerqueue()
timerqueue_del() // use-after-free
Move the POSIX timer cleanup right after de_thread() before any of the later failure conditions brings the task into do_exit().
[ tglx: Move the cleanup right after de_thread() ]
--- fs/exec.c | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-)
fs/exec.c +20 -8
@@ -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); +/* Ensure the files table is not shared. */ retval =unshare_files ();if (retval)
@@ -1303,14 +1323,6 @@ int begin_new_exec(struct linux_binprm * bprm) bprm->mm =NULL ; -#ifdef CONFIG_POSIX_TIMERS -spin_lock_irq (&me->sighand->siglock); -posix_cpu_timers_exit (me); -spin_unlock_irq (&me->sighand->siglock); -exit_itimers (me); -flush_itimer_signals (); -#endif -/* * Make the signal table private. */
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 50/1848 wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: William Hansen-Baird <[email protected]>
[ Upstream commit 04a46c2dbf3b516c96a1d19b72917b56055ad6c1 ]
commit 77a6407c6ab2 ("wifi: rtlwifi: disable ASPM for RTL8723BE with subsystem ID 11ad:1723") adds code which sets ppsc->support_aspm to false in _rtl_pci_update_default_setting() in order to disable ASPM.
This does not, however, disable ASPM. Rather, it disables driver
control of ASPM, and blocks calls to rtl_pci_enable_aspm()
and rtl_pci_disable_aspm().
In some cases, the pci device supplied to the probe function has ASPM enabled. The code would therefore not disable ASPM, as it means to, but rather just leave it enabled.
This was discovered through testing on a Razer Blade 14 2017.
Implement a new __rtl_pci_disable_aspm(hw) function which does not check ppsc->support_aspm before disabling and call it from rtl_pci_disable_aspm().
Then move the code added in the previous commit to rtl_pci_init_aspm() to allow adding a call to __rtl_pci_disable_aspm(hw).
This makes sure ASPM is disabled while still disabling
driver control of ASPM to block it from being enabled later.
--- drivers/net/wireless/realtek/rtlwifi/pci.c | 39 ++++++++++++++-------- 1 file changed, 26 insertions(+), 13 deletions(-)
drivers/net/wireless/realtek/rtlwifi/pci.c +26 -13
@@ -156,15 +156,6 @@ static void _rtl_pci_update_default_setting(struct ieee80211_hw *hw) init_aspm == 0x43) ppsc->support_aspm = false; -/* RTL8723BE found on some ASUSTek laptops, such as F441U and -* X555UQ with subsystem ID 11ad:1723 are known to output large -* amounts of PCIe AER errors during and after boot up, causing -* heavy lags, poor network throughput, and occasional lock-ups. -*/ -if (rtlpriv->rtlhal.hw_type ==HARDWARE_TYPE_RTL8723BE && - (rtlpci->pdev->subsystem_vendor ==0x11ad && - rtlpci->pdev->subsystem_device ==0x1723 )) - ppsc->support_aspm = false; } static bool _rtl_pci_platform_switch_device_pci_aspm(
@@ -203,7 +194,7 @@ static void _rtl_pci_switch_clk_req(struct ieee80211_hw *hw, u16 value) }/*Disable RTL8192SE ASPM & Disable Pci Bridge ASPM*/ -static void rtl_pci_disable_aspm (struct ieee80211_hw *hw) +static void __rtl_pci_disable_aspm (struct ieee80211_hw *hw) {struct rtl_priv *rtlpriv =rtl_priv (hw);struct rtl_pci_priv *pcipriv =rtl_pcipriv (hw);
@@ -215,9 +206,6 @@ static void rtl_pci_disable_aspm(struct ieee80211_hw *hw)u16 aspmlevel =0 ;u8 tmp_u1b =0 ; -if (!ppsc->support_aspm) -return ; -if (pcibridge_vendor ==PCI_BRIDGE_VENDOR_UNKNOWN ) {rtl_dbg (rtlpriv,COMP_POWER ,DBG_TRACE ,"PCI(Bridge) UNKNOWN\n" );
@@ -240,6 +228,16 @@ static void rtl_pci_disable_aspm(struct ieee80211_hw *hw)_rtl_pci_platform_switch_device_pci_aspm (hw, linkctrl_reg); } +static void rtl_pci_disable_aspm (struct ieee80211_hw *hw) +{ +struct rtl_ps_ctl *ppsc =rtl_psc (rtl_priv (hw)); + +if (!ppsc->support_aspm) +return ; + +__rtl_pci_disable_aspm (hw); +} +/*Enable RTL8192SE ASPM & Enable Pci Bridge ASPM for *power saving We should follow the sequence to enable *RTL8192SE first then enable Pci Bridge ASPM
@@ -331,10 +329,25 @@ static void rtl_pci_parse_configuration(struct pci_dev *pdev,static void rtl_pci_init_aspm (struct ieee80211_hw *hw) { +struct rtl_pci *rtlpci =rtl_pcidev (rtl_pcipriv (hw));struct rtl_ps_ctl *ppsc =rtl_psc (rtl_priv (hw)); +struct rtl_priv *rtlpriv =rtl_priv (hw);_rtl_pci_update_default_setting (hw); +/* +* RTL8723BE found on some ASUSTek laptops, such as F441U and +* X555UQ with subsystem ID 11ad:1723 are known to output large +* amounts of PCIe AER errors during and after boot up, causing +* heavy lags, poor network throughput, and occasional lock-ups. +*/ +if (rtlpriv->rtlhal.hw_type ==HARDWARE_TYPE_RTL8723BE && + (rtlpci->pdev->subsystem_vendor ==0x11ad && + rtlpci->pdev->subsystem_device ==0x1723 )) { +__rtl_pci_disable_aspm (hw); + ppsc->support_aspm = false; + } +if (ppsc->reg_rfps_level &RT_RF_PS_LEVEL_ALWAYS_ASPM ) {/*Always enable ASPM & Clock Req. */ rtl_pci_enable_aspm (hw);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 59/1848 tty: serial: pch_uart: add check for pci_get_slot()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Haoxiang Li <[email protected]>
[ Upstream commit 970ede67de0e3f6a1e707ec99ae49d80bf3f2966 ]
Add check for pci_get_slot() to prevent a potetial null pointer dereference in pch_request_dma().
--- drivers/tty/serial/pch_uart.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/tty/serial/pch_uart.c +5 -0
@@ -700,6 +700,11 @@ static void pch_request_dma(struct uart_port *port)/* Get DMA's dev information */ dma_dev =pci_get_slot (priv->pdev->bus,PCI_DEVFN (PCI_SLOT (priv->pdev->devfn),0 )); +if (!dma_dev) { +dev_err (priv->port.dev,"%s: failed to get DMA device\n" , + __func__); +return ; + }/* Set Tx DMA */ param = &priv->param_tx;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 60/1848 usb: fsl_qe_udc: check qe_alloc_request() failure in ch9getstatus()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Haoxiang Li <[email protected]>
[ Upstream commit 612551bf7cf7113b8bbd5e8c1eea86d9427c2f95 ]
qe_alloc_request() may return NULL on allocation failure. ch9getstatus() passes the return value directly to container_of() and then immediately dereferences the resulting qe_req pointer. Check the allocation result before using it and stall the control request on failure.
--- drivers/usb/gadget/udc/fsl_qe_udc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/usb/gadget/udc/fsl_qe_udc.c +6 -2
@@ -1935,6 +1935,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 ;
@@ -1975,8 +1976,11 @@ static void ch9getstatus(struct qe_udc *udc, u8 request_type, u16 value, } } - req =container_of (qe_alloc_request (&ep->ep,GFP_KERNEL ), - struct qe_req, req); + usb_req =qe_alloc_request (&ep->ep,GFP_KERNEL ); +if (!usb_req) + goto stall; + + req = container_of(usb_req, struct qe_req, req); req->req.length =2 ; req->req.buf = udc->statusbuf; *(u16 *)req->req.buf =cpu_to_le16 (usb_status);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 61/1848 usb_string_copy: Use kzalloc() to avoid leaking old data
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Laight <[email protected]>
[ Upstream commit 057df423bf4747091cf942af57307627e941e1fb ]
If the string is read while being updated (which is why the copy is done in place) and the new string is longer than the old one, then the reader can read memory that isnt part of either string.
Use memcpy() to copy the known length string instead of strcpy.
--- drivers/usb/gadget/configfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/configfs.c +2 -2
@@ -114,11 +114,11 @@ static int usb_string_copy(const char *s, char **s_copy)if (copy) { str = copy; }else { - str =kmalloc (USB_MAX_STRING_WITH_NULL_LEN ,GFP_KERNEL ); + str =kzalloc (USB_MAX_STRING_WITH_NULL_LEN ,GFP_KERNEL );if (!str)return -ENOMEM ; } -strcpy (str, s); +memcpy (str, s, ret +1 );if (str[ret -1 ] =='\n' ) str[ret -1 ] ='\0' ; *s_copy = str;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 62/1848 USB: gadget: inode: fix mm lifetime handling
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gabriel Prostitis <[email protected]>
[ Upstream commit a1c33c80e11ecd5c3310a38c4be324095dd85ac5 ]
priv stores a pointer to the submitting task's mm_struct, but does not currently hold a reference to it while async requests are pending.
This can result in a use-after-free if the task exits before completion handling finishes.
Take a reference with mmgrab() when queuing the read request and release it with mmdrop() on request completion.
--- drivers/usb/gadget/legacy/inode.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-)
drivers/usb/gadget/legacy/inode.c +13 -4
@@ -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);
@@ -538,6 +545,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.
@@ -567,6 +575,7 @@ static ssize_t ep_aio(struct kiocb *iocb, fail:spin_unlock_irq (&epdata->dev->lock); +mmdrop (priv->mm);kfree (priv->to_free);kfree (priv);put_ep (epdata);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 63/1848 media: em28xx: dev_info->pr_info since dev has been freed
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hans Verkuil <[email protected]>
[ Upstream commit c132b07f7e5853c0df35a9b94b8e204cdc6afdef ]
In em28xx_free_device() dev_info passed &dev->intf->dev, but that device can be freed already.
Just use pr_info instead.
--- drivers/media/usb/em28xx/em28xx-cards.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/em28xx/em28xx-cards.c +1 -1
@@ -3459,7 +3459,7 @@ void em28xx_free_device(struct kref *ref) {struct em28xx *dev =kref_to_dev (ref); -dev_info (&dev->intf->dev,"Freeing device\n" ); +pr_info ("%s: Freeing device\n" , dev->name);if (!dev->disconnected)em28xx_release_resources (dev);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 64/1848 media: em28xx: requeue buffers if start_streaming fails
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hans Verkuil <[email protected]>
[ Upstream commit 67f87b104f4ef3108607ac9d8fa2075b13ed314d ]
If start_streaming fails, then all queued buffers must be returned to vb2 in state QUEUED.
Otherwise it will trigger a WARN_ON.
--- drivers/media/usb/em28xx/em28xx-video.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-)
drivers/media/usb/em28xx/em28xx-video.c +16 -2
@@ -1080,6 +1080,9 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count) {struct em28xx *dev =vb2_get_drv_priv (vq);struct em28xx_v4l2 *v4l2 = dev->v4l2; +struct em28xx_dmaqueue *dmaq = vq->type ==V4L2_BUF_TYPE_VBI_CAPTURE ? + &dev->vbiq : &dev->vidq; +unsigned long flags =0 ;struct v4l2_frequency f;struct v4l2_fh *owner;int rc =0 ;
@@ -1094,7 +1097,7 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count)*/ rc =res_get (dev, vq->type);if (rc) -return rc; + goto exit;if (v4l2->streaming_users ==0 ) {/* First active streaming user, so allocate all the URBs */
@@ -1117,7 +1120,7 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count) em28xx_urb_data_copy);if (rc <0 ) {res_free (dev, vq->type); -return rc; + goto exit; }/*
@@ -1142,7 +1145,18 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count) } v4l2->streaming_users++; +return 0 ; +exit: +spin_lock_irqsave (&dev->slock, flags); +while (!list_empty (&dmaq->active)) { +struct em28xx_buffer *buf; + + buf = list_entry(dmaq->active.next, struct em28xx_buffer, list); +list_del (&buf->list); +vb2_buffer_done (&buf->vb.vb2_buf,VB2_BUF_STATE_QUEUED ); + } +spin_unlock_irqrestore (&dev->slock, flags);return rc; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 65/1848 media: em28xx: use vb2_video_unregister_device
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hans Verkuil <[email protected]>
[ Upstream commit 7c8bf63b79371f5b57da1bd1401bd420180ac6e6 ]
Use vb2_video_unregister_device instead of video_unregister_device to ensure any streaming is correctly stopped at unregister time.
--- drivers/media/usb/em28xx/em28xx-video.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/media/usb/em28xx/em28xx-video.c +6 -6
@@ -2253,17 +2253,17 @@ static int em28xx_v4l2_fini(struct em28xx *dev)if (video_is_registered (&v4l2->radio_dev)) {dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->radio_dev)); -video_unregister_device (&v4l2->radio_dev); +vb2_video_unregister_device (&v4l2->radio_dev); }if (video_is_registered (&v4l2->vbi_dev)) {dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->vbi_dev)); -video_unregister_device (&v4l2->vbi_dev); +vb2_video_unregister_device (&v4l2->vbi_dev); }if (video_is_registered (&v4l2->vdev)) {dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->vdev)); -video_unregister_device (&v4l2->vdev); +vb2_video_unregister_device (&v4l2->vdev); }v4l2_ctrl_handler_free (&v4l2->ctrl_handler);
@@ -2911,19 +2911,19 @@ static int em28xx_v4l2_init(struct em28xx *dev)dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->radio_dev)); -video_unregister_device (&v4l2->radio_dev); +vb2_video_unregister_device (&v4l2->radio_dev); }if (video_is_registered (&v4l2->vbi_dev)) {dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->vbi_dev)); -video_unregister_device (&v4l2->vbi_dev); +vb2_video_unregister_device (&v4l2->vbi_dev); }if (video_is_registered (&v4l2->vdev)) {dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->vdev)); -video_unregister_device (&v4l2->vdev); +vb2_video_unregister_device (&v4l2->vdev); }v4l2_ctrl_handler_free (&v4l2->ctrl_handler);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 66/1848 nvme: bound ns descriptor header and body to identify buffer
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hari Mishal <[email protected]>
[ Upstream commit 3c568b35a0d309acb40746552bec2af24cd550ef ]
nvme_identify_ns_descs() allocates a buffer and gives it to the controller, which populates it and then iterates the buffer with variable byte increments that vary by type and body size. But, there is no bounds check inside the iteration itself except the loop bound itself. Fix this by checking and stopping iteration if the next header or its declared body would go past the buffer itself.
--- drivers/nvme/host/core.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/nvme/host/core.c +4 -0
@@ -1379,8 +1379,12 @@ static int nvme_identify_ns_descs(struct nvme_ctrl *ctrl, unsigned nsid,for (pos =0 ; pos <NVME_IDENTIFY_DATA_SIZE ; pos += len) {struct nvme_ns_id_desc *cur = data + pos; +if (pos +sizeof (*cur) >NVME_IDENTIFY_DATA_SIZE ) +break ;if (cur->nidl ==0 )break ; +if (pos +sizeof (*cur) + cur->nidl >NVME_IDENTIFY_DATA_SIZE ) +break ; len =nvme_process_ns_desc (ctrl, ids, cur, &csi_seen);if (len <0 )
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 67/1848 iwlwifi: dvm: add missing cleaup for on error path
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Haoxiang Li <[email protected]>
[ Upstream commit 94280e6e0c69a5327e377803732f494d8b5a74cd ]
In iwlagn_tx_agg_start(), call iwlagn_dealloc_agg_txq() to clear bit on error path.
--- drivers/net/wireless/intel/iwlwifi/dvm/tx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/dvm/tx.c +3 -1
@@ -606,8 +606,10 @@ int iwlagn_tx_agg_start(struct iwl_priv *priv, struct ieee80211_vif *vif, } ret =iwl_sta_tx_modify_enable_tid (priv, sta_id, tid); -if (ret) +if (ret) { +iwlagn_dealloc_agg_txq (priv, txq_id);return ret; + }spin_lock_bh (&priv->sta_lock); tid_data = &priv->tid_data[sta_id][tid];
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 68/1848 drm/etnaviv: check all modules for idle after reset
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lucas Stach <[email protected]>
[ Upstream commit 1006d1f7c03d92b28c252333836635df8e165401 ]
While the FE is an important part of the GPU, which needs to be idle after reset, all other modules should be idle after a proper reset. Check all present modules for being idle to determine whether the reset was successful.
--- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/etnaviv/etnaviv_gpu.c +3 -3
@@ -525,9 +525,9 @@ static int etnaviv_hw_reset(struct etnaviv_gpu *gpu)/* read idle register. */ idle =gpu_read (gpu,VIVS_HI_IDLE_STATE ); -/* try resetting again if FE is not idle */ -if ((idle &VIVS_HI_IDLE_STATE_FE ) ==0 ) { -dev_dbg (gpu->dev,"FE is not idle\n" ); +/* try resetting again if any module is not idle */ +if ((idle & gpu->idle_mask) != gpu->idle_mask) { +dev_dbg (gpu->dev,"GPU modules not idle\n" );continue ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 51/1848 iio: adc: max1241: add missing MODULE_DEVICE_TABLE()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 790a2080e0c9eabefea3561dec301172043de236 ]
The driver has a match table for the spi bus wired into its driver structure, but the table is not exported with MODULE_DEVICE_TABLE().
Add the missing MODULE_DEVICE_TABLE() entry so module alias information is generated for automatic module loading.
This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the driver registration structure, and the missing module alias publication.
--- drivers/iio/adc/max1241.c | 1 + 1 file changed, 1 insertion(+)
drivers/iio/adc/max1241.c +1 -0
@@ -204,6 +204,7 @@ static const struct spi_device_id max1241_id[] = { { "max1241", max1241 }, {} }; +MODULE_DEVICE_TABLE (spi, max1241_id);static const struct of_device_id max1241_dt_ids[] = { { .compatible = "maxim,max1241" },
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 69/1848 media: ivtv: stop VBI start-code scan before short tail
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit f373cf17fb8e7a530bc6e1e36fc41cb5dab2cdaa ]
compress_sliced_buf() scans one byte at a time while testing a four-byte VBI start code. The final iterations can read beyond the remaining buffer tail.
Stop the scan once fewer than four bytes remain.
--- drivers/media/pci/ivtv/ivtv-vbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/ivtv/ivtv-vbi.c +1 -1
@@ -330,7 +330,7 @@ static u32 compress_sliced_buf(struct ivtv *itv, u32 line, u8 *buf, u32 size, u8unsigned lines =0 ;/* find the first valid line */ -for (i =0 ; i < size; i++, buf++) { +for (i =0 ; i +3 < size; i++, buf++) {if (buf[0 ] ==0xff && !buf[1 ] && !buf[2 ] && buf[3 ] == sav)break ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 70/1848 media: cx18: stop VBI start-code scan before short tail
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit bf533acaaa7dee21d49bcaabf8e813ea36bddcd8 ]
compress_sliced_buf() scans one byte at a time while testing a four-byte VBI start code. The final iterations can read beyond the remaining buffer tail.
Stop the scan once fewer than four bytes remain.
--- drivers/media/pci/cx18/cx18-vbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/cx18/cx18-vbi.c +1 -1
@@ -135,7 +135,7 @@ static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, : VBI_HBLANK_SAMPLES_50HZ;/* find the first valid line */ -for (i = hdr_size, buf += hdr_size; i < size; i++, buf++) { +for (i = hdr_size, buf += hdr_size; i +3 < size; i++, buf++) {if (buf[0 ] ==0xff && !buf[1 ] && !buf[2 ] && (buf[3 ] == sliced_vbi_eav_rp[0 ] || buf[3 ] == sliced_vbi_eav_rp[1 ]))
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 71/1848 media: go7007: avoid undefined shifts in MPEG-4 headers
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yousef Alhouseen <[email protected]>
[ Upstream commit 41f82777e547732460290ceb28fcc7c1b95ef192 ]
The byte-alignment paths can call CODE_ADD() with a zero bit length. The macro then shifts an int by name.b, which can be 32 after the preceding bit was flushed.
vti_bitlen() can likewise shift a signed int into its sign bit while searching for the bit length, and the package mask construction can shift by the full type width.
Make zero-length additions a no-op, derive the bit length with fls(), and build the mask with GENMASK().
--- drivers/media/usb/go7007/go7007-fw.c | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-)
drivers/media/usb/go7007/go7007-fw.c +15 -13
@@ -13,6 +13,7 @@*/ #include <linux/module.h> +#include <linux/bitops.h> #include <linux/time.h> #include <linux/mm.h> #include <linux/device.h>
@@ -58,14 +59,16 @@ struct code_gen {#define CODE_GEN (name, dest) struct code_gen name = { dest, 0, 32, 0 }#define CODE_ADD (name, val, length) do { \ - name.b -= (length); \ - name.a |= (val) << name.b; \ - while (name.b <= 24) { \ - *name.p = name.a >> 24; \ - ++name.p; \ - name.a <<= 8; \ - name.b += 8; \ - name.len += 8; \ + if (length) { \ + name.b -= (length); \ + name.a |= (val) << name.b; \ + while (name.b <= 24) { \ + *name.p = name.a >> 24; \ + ++name.p; \ + name.a <<= 8; \ + name.b += 8; \ + name.len += 8; \ + } \ } \ } while (0)
@@ -707,11 +710,10 @@ static int gen_mpeg1hdr_to_package(struct go7007 *go,static int vti_bitlen (struct go7007 *go) { -unsigned int i, max_time_incr = go->sensor_framerate / go->fps_scale; +unsigned int max_time_incr = go->sensor_framerate / go->fps_scale; +int bitlen =fls (max_time_incr); -for (i =31 ; (max_time_incr & ((1 << i) -1 )) == max_time_incr; --i) - ; -return i +1 ; +return bitlen ?:1 ; } static int mpeg4_frame_header(struct go7007 *go, unsigned char *buf,
@@ -1209,7 +1211,7 @@ static int seqhead_to_package(struct go7007 *go, __le16 *code, int space,0xbf08 , fps,0xbf09 ,0 ,0xbff2 , vop_time_increment_bitlength, -0xbff3 , (1 << vop_time_increment_bitlength) -1 , +0xbff3 ,GENMASK (vop_time_increment_bitlength -1 ,0 ),0xbfe6 ,0 ,0xbfe7 , (fps /1000 ) <<8 , 0, 0,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 72/1848 tools/lib/api: Fix potential double-free from fdarray__grow()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Namhyung Kim <[email protected]>
[ Upstream commit eadce0f46a1d066b812c7e5aa46a33711c78a755 ]
If the realloc for fda->entries succeeds but the realloc for fda->priv fails, the error path frees the newly allocated entries.
However, fda->entries is neither updated to point to the new entries block nor cleared to NULL. If realloc moved the allocation to a new block, the old fda->entries pointer is now freed memory.
When fdarray__exit() is later called to clean up, it executes free(fda->entries), which would trigger a double-free on that old pointer.
--- tools/lib/api/fd/array.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
tools/lib/api/fd/array.c +3 -2
@@ -31,7 +31,8 @@ int fdarray__grow(struct fdarray *fda, int nr) priv =realloc (fda->priv, psize);if (priv ==NULL ) { -free (entries); +/* this will be freed by fdarray__exit() */ + fda->entries = entries;return -ENOMEM ; }
@@ -50,7 +51,7 @@ struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow)if (fda !=NULL ) {if (fdarray__grow (fda, nr_alloc)) { -free (fda); +fdarray__delete (fda); fda =NULL ; }else { fda->nr_autogrow = nr_autogrow;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 73/1848 gpu: host1x: Wait for timeout worker completion on channel free
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mikko Perttunen <[email protected]>
[ Upstream commit 7a39b9856acccc8e9b05845ca2bf62494fcd3dfa ]
cdma_timeout_destroy() used cancel_delayed_work() to cancel pending timeout work when destroying the CDMA. Usually this is fine, but there is a narrow race condition where the timeout handler has started execution but has not taken cdma->lock; the channel is freed causing cdma_stop to take cdma->lock and flush the channel; host1x_cdma_deinit then proceeds with deinitializing cdma while the handler is waiting to take cdma->lock.
Therefore change cdma_timeout_destroy to use cancel_delayed_work_sync instead to ensure any pending timeout work completes before proceeding.
--- drivers/gpu/host1x/hw/cdma_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/host1x/hw/cdma_hw.c +1 -1
@@ -309,7 +309,7 @@ static int cdma_timeout_init(struct host1x_cdma *cdma, unsigned int syncpt)static void cdma_timeout_destroy (struct host1x_cdma *cdma) {if (cdma->timeout.initialized) -cancel_delayed_work (&cdma->timeout.wq); +cancel_delayed_work_sync (&cdma->timeout.wq); cdma->timeout.initialized = false; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 74/1848 scsi: qla2xxx: Handle INTx not connected while passing through
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Shivaprasad G Bhat <[email protected]>
[ Upstream commit 7268e509b43ac1734e1bdb7d18553f7e1080dfb4 ]
The PCI_INTERRUPT_PIN reports if the device supports the INTx. However, when the device is assigned to a guest via vfio, the PCI_INTERRUPT_PIN is set to 0 (i.e none) if the line is not connected and/or the platform cannot route the interrupt.
In such cases, the guest PCI_INTERRUPT_PIN is 0 and the port number becomes -1 (255, uint8_t underflow) for qla[25|27|28]xx and qla2031 devices. The flt_region_nvram is never set, and subsequently the LUN detection fails. Below warnings show the NVRAM configuration failure:
[]-0073:1: Inconsistent NVRAM checksum=0xffffffc0 id=HCAM version=0x100. []-0074:1: Falling back to functioning (yet invalid -- WWPN) defaults. []-0076:1: NVRAM configuration failed.
Handle this case and set the port_no to devfn like its done everywhere else.
Reference: commit 2bd42b03ab6b ("vfio/pci: Virtualize zero INTx PIN if no pdev->irq")
--- drivers/scsi/qla2xxx/qla_os.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
drivers/scsi/qla2xxx/qla_os.c +10 -5
@@ -2680,11 +2680,16 @@ qla2x00_set_isp_flags(struct qla_hw_data *ha)else {/* Get adapter physical port no from interrupt pin register. */ pci_read_config_byte (ha->pdev,PCI_INTERRUPT_PIN , &ha->port_no); -if (IS_QLA25XX (ha) ||IS_QLA2031 (ha) || -IS_QLA27XX (ha) ||IS_QLA28XX (ha)) - ha->port_no--; -else - ha->port_no = !(ha->port_no &1 ); +if (ha->port_no ==0 ) { +/* None of INT[A|B|C|D] may be virtualized by vfio */ + ha->port_no =PCI_FUNC (ha->pdev->devfn); + }else { +if (IS_QLA25XX (ha) ||IS_QLA2031 (ha) || +IS_QLA27XX (ha) ||IS_QLA28XX (ha)) + ha->port_no--; +else + ha->port_no = !(ha->port_no &1 ); + } } ql_dbg_pci(ql_dbg_init, ha->pdev, 0x000b,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 75/1848 media: cec: tegra_cec: dont break off msg on NACK
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hans Verkuil <[email protected]>
[ Upstream commit be627f257ce283c95fd2988080dc0db3a20d0d2a ]
The Tegra CEC hardware has a bug where, if the first attempt to transmit a message is NACKed so the transmit is aborted, then the second attempt can contain corrupt data.
Ensure that the full message is always transmitted to avoid hitting this bug.
I suspect some internal state is not reset in the case of aborting a message due to a NACK.
--- drivers/media/cec/platform/tegra/tegra_cec.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
drivers/media/cec/platform/tegra/tegra_cec.c +12 -1
@@ -243,7 +243,18 @@ static int tegra_cec_adap_enable(struct cec_adapter *adap, bool enable)TEGRA_CEC_INT_MASK_RX_REGISTER_FULL | TEGRA_CEC_INT_MASK_RX_START_BIT_DETECTED); -cec_write (cec,TEGRA_CEC_HW_CONTROL ,TEGRA_CEC_HWCTRL_TX_RX_MODE ); +/* +* TX_NAK_MODE ensures that the whole message is transmitted even +* if each byte is NACKed. Without this flag the retransmit of the +* messages after a NACK can be corrupt. This is a bug in the hardware. +* +* While less efficient, in practice you rarely transmit messages +* that can be NACKed, with the exception of POLL messages which +* are just one byte anyway. +*/ +cec_write (cec,TEGRA_CEC_HW_CONTROL , +TEGRA_CEC_HWCTRL_TX_RX_MODE | +TEGRA_CEC_HWCTRL_TX_NAK_MODE );return 0 ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 76/1848 media: cec/core: drop cec_post_state_event call
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hans Verkuil <[email protected]>
[ Upstream commit 2ff4b91e82bd76e1a6e1ff22bfc9aeda08e12a61 ]
No need to call cec_post_state_event() if the next call is to cec_adap_unconfigure() since that will also call cec_post_state_event().
This fixes the case when, when the physical address is invalidated, you get two CEC_EVENT_STATE_CHANGE events:
one with a non-zero log_addr_mask and one with a zero log_addr_mask.
You just want to see the event with phys_addr set to f.f.f.f and log_addr_mask set to 0.
--- drivers/media/cec/core/cec-adap.c | 1 - 1 file changed, 1 deletion(-)
drivers/media/cec/core/cec-adap.c +0 -1
@@ -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);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 77/1848 usb: musb: host: clear stale RX interrupt on three-strikes error
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lucas Martins Alves <[email protected]>
[ Upstream commit 3a3a48487344a653f46a4aadc9ba296386eb3541 ]
Unplugging a busy USB Ethernet adapter can leave a stale RX interrupt pending while the host handles MUSB_RXCSR_H_ERROR. On AM335x/DSPS platforms this can retrigger the same three-strikes error before the disconnect path completes, flooding the log and potentially leaving the host port stuck until reboot.
Clear the pending endpoint RX interrupt when aborting the transfer so the error storm is broken, and rate limit the error message to avoid spamming the log while the fault path completes.
--- drivers/usb/musb/musb_host.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
drivers/usb/musb/musb_host.c +13 -1
@@ -1780,7 +1780,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
@@ -1794,6 +1795,17 @@ void musb_host_rx(struct musb *musb, u8 epnum) rx_csr &= ~MUSB_RXCSR_H_ERROR ;musb_writew (epio,MUSB_RXCSR , rx_csr); +/* +* Unplugging a USB-Ethernet adapter while it is busy can make +* the controller keep re-asserting the three-strikes error for +* this endpoint before the disconnect is processed. That floods +* the log and can wedge the host port until reboot. Drop the +* stale pending RX interrupt on platforms that support it (e.g. +* AM335x/DSPS) to break the storm; the transfer is still +* aborted below via the fault path. +*/ +musb_platform_clear_ep_rxintr (musb, epnum); + }else if (rx_csr &MUSB_RXCSR_DATAERROR ) {if (USB_ENDPOINT_XFER_ISOC != qh->type) {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 78/1848 usb: misc: cypress_cy7c63: check result of IO
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Oliver Neukum <[email protected]>
[ Upstream commit 0673b919e0933541ae56bb3f0253853f696d3773 ]
If the device returns a bogus short read, treat it as EIO. Actually check for IO errors.
--- drivers/usb/misc/cypress_cy7c63.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/usb/misc/cypress_cy7c63.c +6 -2
@@ -89,8 +89,11 @@ static int vendor_command(struct cypress *dev, unsigned char request, address, data, iobuf,CYPRESS_MAX_REQSIZE , USB_CTRL_GET_TIMEOUT);/* we must not process garbage */ -if (retval <2 ) +if (retval <2 ) { +if (retval >=0 ) + retval = -EIO ; goto err_buf; + }/* store returned data (more READs to be added) */ switch (request) {
@@ -175,8 +178,9 @@ static ssize_t read_port(struct device *dev, struct device_attribute *attr,dev_dbg (&cyp->udev->dev,"READ_PORT%d called\n" , port_num); result =vendor_command (cyp,CYPRESS_READ_PORT , read_id,0 ); -dev_dbg (&cyp->udev->dev,"Result of vendor_command: %d\n\n" , result); +if (result <0 ) +return result;return sprintf (buf,"%d" , cyp->port[port_num]); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 52/1848 mmc: cqhci: fix to missed endian conversions
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ben Dooks <[email protected]>
[ Upstream commit 0aae2c73175821a71c0e20607f8e333be5b71940 ]
Fix two places where the wrong type or conversion of little-endian types to fix the following sparse warnings:
drivers/mmc/host/cqhci-core.c:487:15: warning: incorrect type in assignment (different base types)drivers/mmc/host/cqhci-core.c:487:15: expected restricted __le32 [usertype]drivers/mmc/host/cqhci-core.c:487:15: got intdrivers/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_descdrivers/mmc/host/cqhci-core.c:566:19: got restricted __le64 [usertype] *
--- drivers/mmc/host/cqhci.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/mmc/host/cqhci.c +7 -7
@@ -457,11 +457,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 );
@@ -510,7 +510,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;
@@ -542,7 +542,7 @@ static void cqhci_prep_dcmd_desc(struct mmc_host *mmc, CQHCI_CMD_TIMING(timing) | CQHCI_RESP_TYPE(resp_type));if (cq_host->ops->update_dcmd_desc) cq_host->ops->update_dcmd_desc (mmc, mrq, &data); - *task_desc |= data; + *task_desc |=cpu_to_le64 (data); desc = (u8 *)task_desc;pr_debug ("%s: cqhci: dcmd: cmd: %d timing: %d resp: %d\n" ,mmc_hostname (mmc), mrq->cmd->opcode, timing, resp_type);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 79/1848 USB: misc: uss720: Fix leak in get_1284_register
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Michail Tatas <[email protected]>
[ Upstream commit 15902712b9e2a46649cba2f22002d05faec2a990 ]
if wait_for_completion_timeout() times out in get_1284_register() then we do not destroy the reference acquired via kref_get() in submit_async_request. Add the missing kref_put in the timeout path.
--- drivers/usb/misc/uss720.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/misc/uss720.c +1 -0
@@ -223,6 +223,7 @@ static int get_1284_register(struct parport *pp, unsigned char reg, unsigned cha }printk (KERN_WARNING "get_1284_register timeout\n" );kill_all_async_requests_priv (priv); +kref_put (&rq->ref_count, destroy_async);return -EIO ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 80/1848 uio: sercos3: add missing MODULE_DEVICE_TABLE()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit a432f68c51fc6761658445e80a798b8425fdb3dc ]
The driver has a match table for the pci bus wired into its driver structure, but the table is not exported with MODULE_DEVICE_TABLE().
Add the missing MODULE_DEVICE_TABLE() entry so module alias information is generated for automatic module loading.
This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the driver registration structure, and the missing module alias publication.
--- drivers/uio/uio_sercos3.c | 1 + 1 file changed, 1 insertion(+)
drivers/uio/uio_sercos3.c +1 -0
@@ -218,6 +218,7 @@ static struct pci_device_id sercos3_pci_ids[] = { }, { 0, } }; +MODULE_DEVICE_TABLE (pci, sercos3_pci_ids);static struct pci_driver sercos3_pci_driver = { .name ="sercos3" ,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 81/1848 comedi: ni_atmio16d: Add sanity check to interrupt handler
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <[email protected]>
[ Upstream commit 13f4796223489a5349b466ce54bb868f46c9fefd ]
The driver requests an interrupt handler for the device, after setting device registers to disable interrupt generation. The interrupt handler should not be called prematurely unless the user-configured I/O port base address and/or IRQ number are incorrect or the hardware is bad.
For safety, check the dev->attached flag in the interrupt handler to ensure the device has been fully set up, avoiding a possible null pointer dereference of dev->read_subdev.
--- drivers/staging/comedi/drivers/ni_atmio16d.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/staging/comedi/drivers/ni_atmio16d.c +3 -0
@@ -224,6 +224,9 @@ static irqreturn_t atmio16d_interrupt(int irq, void *d)struct comedi_subdevice *s = dev->read_subdev;unsigned short val; +if (!dev->attached) +return IRQ_NONE ; + val =inw (dev->iobase +AD_FIFO_REG );comedi_buf_write_samples (s, &val,1 );comedi_handle_events (dev, s);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 82/1848 comedi: ni_at_a2150: Fix sanity check in interrupt handler
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <[email protected]>
[ Upstream commit e7356cdc7077a4f30fc5232a18e9fc6a4d404581 ]
The driver requests an interrupt handler for the device before it is fully set up.
For safety, the interrupt handler checks the dev->attached flag to ensure the device is fully set up, but it currently does that after dereferencing various pointers which may be NULL if dev->attached is false. Move the check to avoid the possible null pointer dereferences.
--- drivers/staging/comedi/drivers/ni_at_a2150.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
drivers/staging/comedi/drivers/ni_at_a2150.c +9 -4
@@ -134,11 +134,11 @@ static irqreturn_t a2150_interrupt(int irq, void *d)struct comedi_device *dev = d;struct a2150_private *devpriv = dev->private;struct comedi_isadma *dma = devpriv->dma; -struct comedi_isadma_desc *desc = &dma->desc[0 ]; +struct comedi_isadma_desc *desc;struct comedi_subdevice *s = dev->read_subdev; -struct comedi_async *async = s->async; -struct comedi_cmd *cmd = &async->cmd; -unsigned short *buf = desc->virt_addr; +struct comedi_async *async; +struct comedi_cmd *cmd; +unsigned short *buf;unsigned int max_points, num_points, residue, leftover;unsigned short dpnt;int status;
@@ -147,6 +147,11 @@ static irqreturn_t a2150_interrupt(int irq, void *d)if (!dev->attached)return IRQ_HANDLED ; + desc = &dma->desc[0 ]; + async = s->async; + cmd = &async->cmd; + buf = desc->virt_addr; + status =inw (dev->iobase +STATUS_REG );if ((status &INTR_BIT ) ==0 )return IRQ_NONE ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 83/1848 comedi: pcm818: Fix sanity check in interrupt handler
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <[email protected]>
[ Upstream commit 956e8478261a575d1e87490f2e5db1788b8c209d ]
The driver requests an interrupt handler for the device before it is fully set up.
For safety, the interrupt handler checks the dev->attached flag to ensure the device is fully set up, but it currently does that after dereferencing the dev->read_dev pointer which may be NULL if dev->attached is false. Move the check to avoid the possible null pointer dereference.
--- drivers/staging/comedi/drivers/pcl818.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/comedi/drivers/pcl818.c +2 -1
@@ -536,13 +536,14 @@ static irqreturn_t pcl818_interrupt(int irq, void *d)struct comedi_device *dev = d;struct pcl818_private *devpriv = dev->private;struct comedi_subdevice *s = dev->read_subdev; -struct comedi_cmd *cmd = &s->async->cmd; +struct comedi_cmd *cmd;if (!dev->attached || !devpriv->ai_cmd_running) {pcl818_ai_clear_eoc (dev);return IRQ_HANDLED ; } + cmd = &s->async->cmd;if (devpriv->ai_cmd_canceled) {/* * The cleanup from ai_cancel() has been delayed
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 84/1848 comedi: quatech_daqp_cs: Fix sanity check in interrupt handler
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <[email protected]>
[ Upstream commit 1bc9538df6be8dac8727179d8bcc0d880648361b ]
The driver requests an interrupt handler for the device before it is fully set up.
For safety, the interrupt handler checks the dev->attached flag to ensure the device is fully set up, but it currently does that after dereferencing the dev->read_dev pointer which may be NULL if dev->attached is false. Move the check to avoid the possible null pointer dereference.
--- drivers/staging/comedi/drivers/quatech_daqp_cs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/comedi/drivers/quatech_daqp_cs.c +3 -1
@@ -212,13 +212,15 @@ static irqreturn_t daqp_interrupt(int irq, void *dev_id) {struct comedi_device *dev = dev_id;struct comedi_subdevice *s = dev->read_subdev; -struct comedi_cmd *cmd = &s->async->cmd; +struct comedi_cmd *cmd;int loop_limit =10000 ;int status;if (!dev->attached)return IRQ_NONE ; + cmd = &s->async->cmd; + status =inb (dev->iobase +DAQP_STATUS_REG );if (!(status &DAQP_STATUS_EVENTS ))return IRQ_NONE ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 85/1848 comedi: das6402: Add sanity check to interrupt handler
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <[email protected]>
[ Upstream commit e90d0550c5b3056c8821f5cd714f80902de0fca6 ]
The driver requests an interrupt handler for the device, after setting device registers to disable interrupt generation. The interrupt handler should not be called prematurely unless the user-configured I/O port base address and/or IRQ number are incorrect or the hardware is bad.
For safety, check the dev->attached flag in the interrupt handler to ensure the device has been fully set up, avoiding a possible null pointer dereference of dev->read_subdev.
--- drivers/staging/comedi/drivers/das6402.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/staging/comedi/drivers/das6402.c +8 -2
@@ -175,10 +175,16 @@ static irqreturn_t das6402_interrupt(int irq, void *d) {struct comedi_device *dev = d;struct comedi_subdevice *s = dev->read_subdev; -struct comedi_async *async = s->async; -struct comedi_cmd *cmd = &async->cmd; +struct comedi_async *async; +struct comedi_cmd *cmd;unsigned int status; +if (!dev->attached) +return IRQ_NONE ; + + async = s->async; + cmd = &async->cmd; + status =inb (dev->iobase +DAS6402_STATUS_REG );if ((status &DAS6402_STATUS_INT ) ==0 )return IRQ_NONE ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 86/1848 comedi: dt2811: Fix sanity check in interrupt handler
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <[email protected]>
[ Upstream commit 8dda63825752ab19fcbc2a19ecab91d128112415 ]
The driver requests an interrupt handler for the device, after setting device registers to disable interrupt generation. The interrupt handler should not be called prematurely unless the user-configured I/O port base address and/or IRQ number are incorrect or the hardware is bad.
For safety, the interrupt handler checks the dev->attached flag to ensure the device is fully set up, but it currently does that after dereferencing dev->read_subdev, which may be NULL if dev->attached is false. Move the check to avoid the possible null pointer dereference.
--- drivers/staging/comedi/drivers/dt2811.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/staging/comedi/drivers/dt2811.c +5 -2
@@ -194,13 +194,16 @@ static irqreturn_t dt2811_interrupt(int irq, void *d) {struct comedi_device *dev = d;struct comedi_subdevice *s = dev->read_subdev; -struct comedi_async *async = s->async; -struct comedi_cmd *cmd = &async->cmd; +struct comedi_async *async; +struct comedi_cmd *cmd;unsigned int status;if (!dev->attached)return IRQ_NONE ; + async = s->async; + cmd = &async->cmd; + status =inb (dev->iobase +DT2811_ADCSR_REG );if (status &DT2811_ADCSR_ADERROR ) {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 87/1848 comedi: pcm711: Fix sanity check in interrupt handler
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <[email protected]>
[ Upstream commit f876cbfe3e066bc9e3f3210907bd534be82946c8 ]
The driver requests an interrupt handler for the device before it is fully set up.
For safety, the interrupt handler checks the dev->attached flag to ensure the device is fully set up, but it currently does that after dereferencing the dev->read_dev pointer which may be NULL if dev->attached is false. Move the check to avoid the possible null pointer dereference.
--- drivers/staging/comedi/drivers/pcl711.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/comedi/drivers/pcl711.c +2 -1
@@ -183,7 +183,7 @@ static irqreturn_t pcl711_interrupt(int irq, void *d) {struct comedi_device *dev = d;struct comedi_subdevice *s = dev->read_subdev; -struct comedi_cmd *cmd = &s->async->cmd; +struct comedi_cmd *cmd;unsigned short data;if (!dev->attached) {
@@ -191,6 +191,7 @@ static irqreturn_t pcl711_interrupt(int irq, void *d)return IRQ_HANDLED ; } + cmd = &s->async->cmd; data =pcl711_ai_get_sample (dev, s);outb (PCL711_INT_STAT_CLR , dev->iobase +PCL711_INT_STAT_REG );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 88/1848 comedi: aio_iiro_16: Add sanity check to interrupt handler
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <[email protected]>
[ Upstream commit 1ca44751915134f19e8627768159781e75b5da50 ]
The driver requests an interrupt handler for the device, after setting device registers to disable interrupt generation. The interrupt handler should not be called prematurely unless the user-configured I/O port base address and/or IRQ number are incorrect or the hardware is bad.
For safety, check the dev->attached flag in the interrupt handler to ensure the device has been fully set up, avoiding a possible null pointer dereference of dev->read_subdev.
--- drivers/staging/comedi/drivers/aio_iiro_16.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/staging/comedi/drivers/aio_iiro_16.c +3 -0
@@ -60,6 +60,9 @@ static irqreturn_t aio_iiro_16_cos(int irq, void *d)unsigned int status;unsigned int val; +if (!dev->attached) +return IRQ_NONE ; + status =inb (dev->iobase +AIO_IIRO_16_STATUS );if (!(status &AIO_IIRO_16_STATUS_IRQE ))return IRQ_NONE ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 53/1848 clk: sunxi-ng: fix ccu probe clock unregister on error
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jerome Brunet <[email protected]>
[ Upstream commit 81f4ddc9f7e0c11d3e9d24d0f30023845a02f7ee ]
When registering clocks with sunxi_ccu_probe(), the number of ccu_clocks and the number of hw clocks might be different, eventhough they usually are the same.
If they are different, it could lead to out-of-bound access or registered clock left behind on error.
Use a different variable when iterating on hw clocks so every registered clock, and only those, gets unregistered on error.
--- drivers/clk/sunxi-ng/ccu_common.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/clk/sunxi-ng/ccu_common.c +6 -6
@@ -83,7 +83,7 @@ int sunxi_ccu_probe(struct device_node *node, void __iomem *reg, const struct sunxi_ccu_desc *desc) {struct ccu_reset *reset; -int i, ret; +int i, j, ret;for (i =0 ; i < desc->num_ccu_clks; i++) {struct ccu_common *cclk = desc->ccu_clks[i];
@@ -95,8 +95,8 @@ int sunxi_ccu_probe(struct device_node *node, void __iomem *reg, 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)
@@ -105,7 +105,7 @@ int sunxi_ccu_probe(struct device_node *node, void __iomem *reg, name = hw->init->name; 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; } }
@@ -140,8 +140,8 @@ int sunxi_ccu_probe(struct device_node *node, void __iomem *reg, err_alloc_reset:of_clk_del_provider (node); err_clk_unreg: -while (--i >=0 ) { -struct clk_hw *hw = desc->hw_clks->hws[i]; +while (--j >=0 ) { +struct clk_hw *hw = desc->hw_clks->hws[j];if (!hw)continue ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 89/1848 comedi: pcmmio: Add sanity check to interrupt handler
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <[email protected]>
[ Upstream commit ea72e2fc9026f375314421ddfa4dbdc49432a899 ]
The driver requests an interrupt handler for the device, after setting device registers to disable interrupt generation. The interrupt handler should not be called prematurely unless the user-configured I/O port base address and/or IRQ number are incorrect or the hardware is bad.
For safety, check the dev->attached flag in the interrupt handler to ensure the device has been fully set up, avoiding a possible null pointer dereference of dev->read_subdev.
--- drivers/staging/comedi/drivers/pcmmio.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/staging/comedi/drivers/pcmmio.c +3 -0
@@ -363,6 +363,9 @@ static irqreturn_t interrupt_pcmmio(int irq, void *d)unsigned int triggered;unsigned char int_pend; +if (!dev->attached) +return IRQ_NONE ; +/* are there any interrupts pending */ int_pend =inb (dev->iobase +PCMMIO_INT_PENDING_REG ) &0x07 ;if (!int_pend)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 90/1848 comedi: pcm816: Fix sanity check in interrupt handler
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <[email protected]>
[ Upstream commit 4fdac5090ce3616283216d9a1d2b9664e8e20747 ]
The driver requests an interrupt handler for the device before it is fully set up.
For safety, the interrupt handler checks the dev->attached flag to ensure the device is fully set up, but it currently does that after dereferencing the devpriv->dma pointer which may be NULL if dev->attached is false. Move the dereference of the devpriv->dma pointer after dev->attached has been checked to avoid the possible null pointer dereference.
--- drivers/staging/comedi/drivers/pcl816.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/comedi/drivers/pcl816.c +2 -1
@@ -244,7 +244,7 @@ static irqreturn_t pcl816_interrupt(int irq, void *d)struct comedi_subdevice *s = dev->read_subdev;struct pcl816_private *devpriv = dev->private;struct comedi_isadma *dma = devpriv->dma; -struct comedi_isadma_desc *desc = &dma->desc[dma->cur_dma]; +struct comedi_isadma_desc *desc;unsigned int nsamples;unsigned int bufptr;
@@ -259,6 +259,7 @@ static irqreturn_t pcl816_interrupt(int irq, void *d)return IRQ_HANDLED ; } + desc = &dma->desc[dma->cur_dma]; nsamples =comedi_bytes_to_samples (s, desc->size) - devpriv->ai_poll_ptr; bufptr = devpriv->ai_poll_ptr;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 91/1848 comedi: pcmuio: Add sanity check to interrupt handler
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Abbott <[email protected]>
[ Upstream commit 6f6f6644e011fa910db744e9978127a443b94001 ]
The driver requests an interrupt handler for the device, after setting device registers to disable interrupt generation. The interrupt handler should not be called prematurely unless the user-configured I/O port base address and/or IRQ number are incorrect or the hardware is bad.
For safety, check the dev->attached flag in the interrupt handler pcmuio_interrupt() to ensure the device has been fully set up, avoiding a possible null pointer dereference of dev->subdevices by pcmuio_handle_asic_interrupt().
Also make use of the IRQ_HANDLED(x) macro for the normal return path of the interrupt handler.
--- drivers/staging/comedi/drivers/pcmuio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/staging/comedi/drivers/pcmuio.c +4 -1
@@ -363,12 +363,15 @@ static irqreturn_t pcmuio_interrupt(int irq, void *d)struct pcmuio_private *devpriv = dev->private;int handled =0 ; +if (!dev->attached) +return IRQ_NONE ; +if (irq == dev->irq) handled +=pcmuio_handle_asic_interrupt (dev,0 );if (irq == devpriv->irq2) handled +=pcmuio_handle_asic_interrupt (dev,1 ); -return handled ?IRQ_HANDLED :IRQ_NONE ; +return IRQ_RETVAL (handled); }/* chip->spinlock is already locked */
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 92/1848 misc: genwqe: handle a first DMA address of zero
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yousef Alhouseen <[email protected]>
[ Upstream commit d401772a9e18e837631450844f835229354528a4 ]
genwqe_setup_sgl() uses zero as the initial previous DMA address. DMA address zero is valid, so a first entry at that address enters the merge path before last_s has been assigned and dereferences NULL.
Only merge adjacent mappings after an SGL data entry has been created.
--- drivers/misc/genwqe/card_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/genwqe/card_utils.c +1 -1
@@ -413,7 +413,7 @@ int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, size -= size_to_map; map_offs =0 ; -if (prev_daddr == daddr) { +if (last_s && prev_daddr == daddr) {u32 prev_len =be32_to_cpu (last_s->len);/* pr_info("daddr combining: "
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 54/1848 nvme: zns: cap zone report nr_zones by DMA buffer size
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Xixin Liu <[email protected]>
[ Upstream commit 09c9062d4f62199a634a45e2bb9e6e8e572cc78c ]
With Partial Report (PR=1), the Number of Zones (NZ) field in the report header must equal the number of zone descriptors fully transferred in the DMA buffer (ZNS Command Set Specification Rev 1.2, section 3.4.2).
nvme_ns_report_zones() does not cap the parse loop by max_in_buf derived from buflen. Cap nz with min3() over the device-reported count, nr_zones - zone_idx, and max_in_buf.
--- drivers/nvme/host/zns.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/nvme/host/zns.c +6 -2
@@ -172,13 +172,16 @@ static 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; report =nvme_zns_alloc_report_buffer (ns, nr_zones, &buflen);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));
@@ -198,7 +201,8 @@ static int nvme_ns_report_zones(struct nvme_ns *ns, sector_t sector, goto out_free; } - nz =min ((unsigned int )le64_to_cpu (report->nr_zones), nr_zones); + nz =min3 ((unsigned int )le64_to_cpu (report->nr_zones), + nr_zones - zone_idx, max_in_buf);if (!nz)break ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 55/1848 PCI/ATS: Ensure pci_ats_supported() is PF-aware for VFs
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pranjal Shrivastava <[email protected]>
[ Upstream commit 4f2cd6091ac41566a7300f5a4590d20a99aaa8bc ]
Update pci_ats_supported() to additionally check the associated PF's status when called on a VF. This ensures that PF-level quirks and untrusted status are correctly propagated to VFs, providing a robust support check that aligns with the kernel's PF-centric ATS configuration model and is immune to the timing of VF-specific fixups.
--- drivers/pci/ats.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/pci/ats.c +5 -2
@@ -39,10 +39,13 @@ void pci_ats_init(struct pci_dev *dev)*/ bool pci_ats_supported (struct pci_dev *dev) { -if (!dev->ats_cap) +if (!dev->ats_cap || dev->untrusted)return false; -return (dev->untrusted ==0 ); +if (dev->is_virtfn) +return pci_ats_supported (pci_physfn (dev)); + +return true; }EXPORT_SYMBOL_GPL (pci_ats_supported);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 56/1848 media: cec: tegra: add missing MODULE_DEVICE_TABLE()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 8dcf23edaf4bdf22259f6a47cfddc8bb1467425c ]
The driver has an OF match table wired to .of_match_table, but does not export the table with MODULE_DEVICE_TABLE().
Add the missing MODULE_DEVICE_TABLE(of, ...) entry so module alias information is generated for OF based module autoloading.
This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the platform driver, and the missing module alias publication.
--- drivers/media/cec/platform/tegra/tegra_cec.c | 1 + 1 file changed, 1 insertion(+)
drivers/media/cec/platform/tegra/tegra_cec.c +1 -0
@@ -460,6 +460,7 @@ static const struct of_device_id tegra_cec_of_match[] = { { .compatible = "nvidia,tegra210-cec", }, {}, }; +MODULE_DEVICE_TABLE (of, tegra_cec_of_match);static struct platform_driver tegra_cec_driver = { .driver = {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 57/1848 media: v4l2-tpg: reduce stack usage for kasan builds
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Arnd Bergmann <[email protected]>
[ Upstream commit c49cdaafa443ccf861a72d3191121294742c28c7 ]
tpg_fill_plane_buffer() is a rather complex function. While there is nothing wrong with it per se, I have run into corner cases with clang-22 on s390 using KASAN that makes it run out of registers and blow the stack warning limit from excessive spills:
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2629:6: error: stack frame size (1560) exceeds limit (1536)
in 'tpg_fill_plane_buffer' [-Werror,-Wframe-larger-than]
2629 | void tpg_fill_plane_buffer(struct tpg_data *tpg, v4l2_std_id std,
Forcing the two largest callees out of line completely avoids the problem and prevents all the register spills, with the stack usage for each function going down to a few bytes for the local variables.
Arguably this is a problem caused by clang rather than the code, but a noinline_for_stack annotation is an easy workaround.
--- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c +8 -6
@@ -2340,9 +2340,11 @@ static void tpg_fill_params_extras(const struct tpg_data *tpg, (params->is_60hz ?V4L2_FIELD_TOP :V4L2_FIELD_BOTTOM ); } -static void tpg_fill_plane_extras (const struct tpg_data *tpg, -const struct tpg_draw_params *params, -unsigned p,unsigned h,u8 *vbuf) +/* noinline to work around clang KASAN issues */ +static noinline_for_stack void +tpg_fill_plane_extras (const struct tpg_data *tpg, +const struct tpg_draw_params *params, +unsigned p,unsigned h,u8 *vbuf) {unsigned twopixsize = params->twopixsize;unsigned img_width = params->img_width;
@@ -2439,9 +2441,9 @@ static void tpg_fill_plane_extras(const struct tpg_data *tpg, } } -static void tpg_fill_plane_pattern (const struct tpg_data *tpg, -const struct tpg_draw_params *params, -unsigned p,unsigned h,u8 *vbuf) +static noinline_for_stack void +tpg_fill_plane_pattern (const struct tpg_data *tpg,const struct tpg_draw_params *params, +unsigned p,unsigned h,u8 *vbuf) {unsigned twopixsize = params->twopixsize;unsigned img_width = params->img_width;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 58/1848 mmc: block: reject invalid perdev_minors before division
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Xu Rao <[email protected]>
[ Upstream commit 5253aee00a4383cb0482d5e99bde48b8054ae2c0 ]
The mmcblk.perdev_minors module parameter is parsed as a signed int and is used during mmc_blk_init() to compute the number of supported block devices.
Passing perdev_minors=0 makes the init path divide by zero when it computes max_devices. Negative values are invalid as well and would make max_devices negative before it is later used as an IDA limit.
Reject non-positive perdev_minors values before registering any mmcblk resources.
--- drivers/mmc/core/block.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/mmc/core/block.c +5 -0
@@ -3106,6 +3106,11 @@ static int __init mmc_blk_init(void) {int res; +if (perdev_minors <=0 ) { +pr_err ("mmcblk: invalid minors per device: %d\n" , perdev_minors); +return -EINVAL ; + } + res =bus_register (&mmc_rpmb_bus_type);if (res <0 ) {pr_err ("mmcblk: could not register RPMB bus type\n" );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 49/1848 wifi: rtlwifi: rtl8723be: Remove unnecessary irq save/restore in hw_init()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: William Hansen-Baird <[email protected]>
[ Upstream commit 1b4cd55626b6ffa93d18848412afb912a4add585 ]
rtl8723be hw_init() calls local_save_flags(flags) followed by local_irq_enable(). Later, local_irq_restore(flags) is called.
This causes warnings from Lockdep on boot and modprobe,
as local_irq_restore(flags) should only be called while irqs are disabled. The warning was introduced to detect this class of bug in [1].
With testing I found that all paths which call hw_init() have irqs already enabled for rtl8723be.
Furthermore, the calls were originally added for the rtl8192ce in commit f78bccd79ba3 ("rtlwifi: rtl8192ce: Fix too long disable of IRQs") before later being added to most other rtlwifi drivers.
Commit d3feae41a347 ("rtlwifi: Update power-save routines for 062814 driver") then replaces the call to spin_lock_irqsave() before hw_init(), and thus the codepath which caused irqs to be disabled in hw_init and prompted the original commit has been removed.
The same irq save/restore pattern is also present in the hw_init() of rtl8192ce, rtl8723ae, rtl8188ee, rtl8192se and rtl8192cu, however I don't have the hardware to test them,
so I did not include them in my changes.
Tested on a Razer Blade 14 2017.
Example of output from Lockdep prior to fix:
raw_local_irq_restore() called with IRQs enabled
...
Call Trace: <TASK> rtl8723be_hw_init+0x5992/0x7220 [rtl8723be] ? static_obj+0x61/0xa0 rtl_pci_start+0x222/0x5c0 [rtl_pci] rtl_op_start+0x128/0x1a0 [rtlwifi] ? __kasan_check_read+0x11/0x20 drv_start+0x16c/0x550 [mac80211]
...
irq event stamp: 887679 hardirqs last enabled at (887689): [<ffffffff96511170>] __up_console_sem+0x90/0xa0 hardirqs last disabled at (887698): [<ffffffff96511155>] __up_console_sem+0x75/0xa0 softirqs last enabled at (887670): [<ffffffff962f4675>] __irq_exit_rcu+0x175/0x2f0 softirqs last disabled at (887649): [<ffffffff962f4675>] __irq_exit_rcu+0x175/0x2f0 ---[ end trace 0000000000000000 ]---
[1] https://lore.kernel.org/all/[email protected]/
--- drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c +0 -6
@@ -1339,11 +1339,6 @@ int rtl8723be_hw_init(struct ieee80211_hw *hw)bool rtstatus = true;int err;u8 tmp_u1b; -unsigned long flags; - -/* reenable interrupts to not interfere with other devices */ -local_save_flags (flags); -local_irq_enable (); rtlhal->fw_ready = false; rtlpriv->rtlhal.being_init_adapter = true;
@@ -1449,7 +1444,6 @@ int rtl8723be_hw_init(struct ieee80211_hw *hw)rtl8723be_dm_init (hw); exit: -local_irq_restore (flags); rtlpriv->rtlhal.being_init_adapter = false;return err; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 94/1848 greybus: manifest: validate string descriptor header
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 18b6510f642dbcb856c3af8be974d1600f3ba2d3 ]
identify_descriptor() computes a string descriptor size from desc->string.length.
Require the descriptor to contain the fixed string descriptor header before reading the variable string length. The existing descriptor-size check then reports the short descriptor.
--- drivers/greybus/manifest.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/greybus/manifest.c +2 -0
@@ -122,6 +122,8 @@ static int identify_descriptor(struct gb_interface *intf,switch (desc_header->type) {case GREYBUS_TYPE_STRING : expected_size +=sizeof (struct greybus_descriptor_string ); +if (desc_size < expected_size) +break ; expected_size += desc->string.length;/* String descriptors are padded to 4 byte boundaries */
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 103/1848 wifi: mac80211: ibss: read deauth reason_code after frame length check
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Shahar Tzarfati <[email protected]>
[ 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.
--- net/mac80211/ibss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
net/mac80211/ibss.c +3 -1
@@ -942,11 +942,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);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 104/1848 riscv, bpf: Add support for BPF_SDIV and BPF_SMOD in RV32 JIT
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuan-Wei Chiu <[email protected]>
[ 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
--- arch/riscv/net/bpf_jit_comp32.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
arch/riscv/net/bpf_jit_comp32.c +10 -5
@@ -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 :
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 105/1848 power: reset: piix4-poweroff: add missing MODULE_DEVICE_TABLE()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ 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.
--- drivers/power/reset/piix4-poweroff.c | 1 + 1 file changed, 1 insertion(+)
drivers/power/reset/piix4-poweroff.c +1 -0
@@ -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",
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 106/1848 riscv, bpf: Add support for BPF_MOVSX in RV32 JIT
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuan-Wei Chiu <[email protected]>
[ 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
--- arch/riscv/net/bpf_jit_comp32.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
arch/riscv/net/bpf_jit_comp32.c +32 -0
@@ -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 :
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 107/1848 wifi: cfg80211: include cf1 offset when sending chandef
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lachlan Hodges <[email protected]>
[ Upstream commit 5a69b8dffd2a1b06e4cc4c9003c639eb78bac4cd ]
The cf1 offset is not included when sending the chandef leading to incorrect channel resolution in usermode. Include it.
--- net/wireless/nl80211.c | 4 ++++ 1 file changed, 4 insertions(+)
net/wireless/nl80211.c +4 -0
@@ -3429,6 +3429,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 ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 108/1848 drm/panel: simple: Add Kyocera tcg070wvlq panel
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Heiko Schocher <[email protected]>
[ 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.
--- drivers/gpu/drm/panel/panel-simple.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +3 -0
@@ -4162,6 +4162,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,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 109/1848 iommu/qcom: Check pm_runtime_resume_and_get() return in probe
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mukesh Ojha <[email protected]>
[ Upstream commit e910315ae08a23bc953daed10b1c518abac1df49 ]
The SMMU_INTR_SEL_NS register write in qcom_iommu_device_probe() uses pm_runtime_get_sync() without checking the return value. If runtime resume fails the subsequent writel_relaxed() would access hardware with clocks potentially disabled.
Switch to pm_runtime_resume_and_get() which handles the usage-count cleanup on failure, check the return value, and unwind the already registered iommu device on error.
--- drivers/iommu/arm/arm-smmu/qcom_iommu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/iommu/arm/arm-smmu/qcom_iommu.c +5 -1
@@ -875,13 +875,17 @@ static int qcom_iommu_device_probe(struct platform_device *pdev)bus_set_iommu (&platform_bus_type, &qcom_iommu_ops);if (qcom_iommu->local_base) { -pm_runtime_get_sync (dev); + ret =pm_runtime_resume_and_get (dev); +if (ret) + goto err_iommu_unregister;writel_relaxed (0xffffffff , qcom_iommu->local_base +SMMU_INTR_SEL_NS );pm_runtime_put_sync (dev); }return 0 ; +err_iommu_unregister: +iommu_device_unregister (&qcom_iommu->iommu); err_sysfs_remove:iommu_device_sysfs_remove (&qcom_iommu->iommu); err_pm_disable:
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 110/1848 iommu/qcom: Publish pgtbl_ops before releasing init_mutex
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mukesh Ojha <[email protected]>
[ Upstream commit a05b67cd45ad09a19f41b2d37255da714512e0ca ]
qcom_domain->pgtbl_ops was assigned after mutex_unlock(). Another thread calling qcom_iommu_init_domain() would see qcom_domain->iommu already set (domain fully initialized) and skip re-initialization under the mutex. If it then called qcom_iommu_map() before the first thread set pgtbl_ops, it would observe a NULL ops pointer and return -ENODEV for valid mappings.
Move the assignment to before mutex_unlock() so that once the mutex is released the domain is fully visible to concurrent operations.
--- drivers/iommu/arm/arm-smmu/qcom_iommu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/iommu/arm/arm-smmu/qcom_iommu.c +2 -3
@@ -322,13 +322,12 @@ static int qcom_iommu_init_domain(struct iommu_domain *domain, ctx->domain = domain; } -mutex_unlock (&qcom_domain->init_mutex); -/* Publish page table ops for map/unmap */ qcom_domain->pgtbl_ops = pgtbl_ops; -return 0 ; +mutex_unlock (&qcom_domain->init_mutex); +return 0 ; out_clear_iommu: qcom_domain->iommu =NULL ; out_unlock:
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 111/1848 wifi: ath11k: validate regulatory capability phy_id
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit f8729a40ebcc94d164be8f154483a21669f3ab52 ]
ath11k_wmi_tlv_ext_hal_reg_caps() copies firmware regulatory capability records into soc->hal_reg_cap[] using reg_cap.phy_id as the destination index. The loop count is bounded by num_phy, but the phy_id embedded in each record is not checked against the fixed MAX_RADIOS-sized destination array.
Reject firmware records whose phy_id does not fit soc->hal_reg_cap[] before copying the parsed capability.
--- drivers/net/wireless/ath/ath11k/wmi.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/net/wireless/ath/ath11k/wmi.c +6 -0
@@ -3703,6 +3703,12 @@ static int ath11k_wmi_tlv_ext_hal_reg_caps(struct ath11k_base *soc,return ret; } +if (reg_cap.phy_id >=ARRAY_SIZE (soc->hal_reg_cap)) { +ath11k_warn (soc,"invalid reg cap phy_id %u\n" , + reg_cap.phy_id); +return -EINVAL ; + } +memcpy (&soc->hal_reg_cap[reg_cap.phy_id], ®_cap,sizeof (reg_cap)); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 112/1848 wifi: ath10k: trigger hardware recovery upon rx failures
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Manikanta Pubbisetty <[email protected]>
[ Upstream commit f78210dd4bea09090b828adc2733cad4b9916306 ]
When an error occurs during RX packet processing (e.g., MSDU done failure), the driver sets rx_confused and drops all subsequent RX packets until a Wi-Fi ON/OFF cycle clears the flag. This can leave the device in a bad state where it cannot process RX data traffic.
Instead of leaving the device in such a state, trigger hardware recovery so that such an error state can be reset and the device can function again normally.
Tested-on: WCN3990 hw1.0 WLAN.HL.3.2.2.c10-00754-QCAHLSWMTPL-1
Tested-on: QCA6174 hw3.2 PCI WLAN.RM.4.4.1-00288-QCARMSWPZ-1
Tested-on: QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00189
--- drivers/net/wireless/ath/ath10k/htt_rx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/ath/ath10k/htt_rx.c +3 -3
@@ -2225,10 +2225,8 @@ static int ath10k_htt_rx_handle_amsdu(struct ath10k_htt *htt)if (ret <0 ) {ath10k_warn (ar,"rx ring became corrupted: %d\n" , ret);__skb_queue_purge (&amsdu); -/* FIXME: It's probably a good idea to reboot the -* device instead of leaving it inoperable. -*/ htt->rx_confused = true; +ath10k_core_start_recovery (ar);return ret; }
@@ -3185,6 +3183,7 @@ static int ath10k_htt_rx_in_ord_ind(struct ath10k *ar, struct sk_buff *skb)if (ret <0 ) {ath10k_warn (ar,"failed to pop paddr list: %d\n" , ret); htt->rx_confused = true; +ath10k_core_start_recovery (ar);return -EIO ; }
@@ -3218,6 +3217,7 @@ static int ath10k_htt_rx_in_ord_ind(struct ath10k *ar, struct sk_buff *skb)ath10k_warn (ar,"failed to extract amsdu: %d\n" , ret); htt->rx_confused = true;__skb_queue_purge (&list); +ath10k_core_start_recovery (ar);return -EIO ; } }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 95/1848 misc: ibmvmc: reject oversized inbound messages
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yousef Alhouseen <[email protected]>
[ Upstream commit 18189e5d84aa0b3bc89189cba13b9105634cb6fb ]
ibmvmc_recv_msg() trusts the message length from the CRQ.
It passes that length directly to h_copy_rdma().
The destination buffer is only max_mtu bytes.
A larger length can overrun it before userspace reads the message.
Validate the CRQ length before issuing the RDMA copy.
--- drivers/misc/ibmvmc.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/misc/ibmvmc.c +7 -0
@@ -1653,6 +1653,13 @@ static int ibmvmc_recv_msg(struct crq_server_adapter *adapter,return -1 ; } +if (msg_len > buffer->size) { +dev_err (adapter->dev,"Recv_msg: msg_len 0x%lx exceeds buffer size 0x%x\n" , + msg_len, buffer->size); +spin_unlock_irqrestore (&hmc->lock, flags); +return -1 ; + } +/* RDMA the data into the partition. */ rc = h_copy_rdma(msg_len, adapter->riobn,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 113/1848 ext4: check return value of ext4_get_block() in ext4_load_tail_bh()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zhang Yi <[email protected]>
[ Upstream commit 705a3fd3bac167f1dabe3d3bba46cd484c5528dd ]
ext4_load_tail_bh() ignores the return value of ext4_get_block(), so an I/O or allocation failure is silently discarded. buffer_mapped(bh) stays false and the function returns NULL, which callers such as ext4_block_do_zero_range() treat as "nothing to do" and return success. This can mask real failures during zero-range, truncate, or punch-hole operations, potentially exposing stale data if the block was not actually a hole and needed zeroing. So propagate the error to the callers.
--- fs/ext4/inode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
fs/ext4/inode.c +3 -1
@@ -3836,7 +3836,9 @@ static int __ext4_block_zero_page_range(handle_t *handle, }if (!buffer_mapped (bh)) {BUFFER_TRACE (bh,"unmapped" ); -ext4_get_block (inode, iblock, bh,0 ); + err =ext4_get_block (inode, iblock, bh,0 ); +if (err <0 ) + goto unlock;/* unmapped? It's a hole - nothing to do */ if (!buffer_mapped (bh)) {BUFFER_TRACE (bh,"still unmapped" );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 114/1848 bitops: make the *_bit_le functions use unsigned long
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Benjamin Marzinski <[email protected]>
[ Upstream commit 1c61b0a6e5c472737619f74f79c390363ee258df ]
The *_bit_le functions use a signed integer for the bit number. However, the *_bit functions can use an unsigned long. This causes problems if there is a large bitmap and a bit number > 0x80000000 is passed in. Since that is a negative int, it will get sign extended to a long when getting passed to the *_bit function, turning it into a huge bit number. This usually ends up with the memory address wrapping around and the function accessing memory before the start of the bitmap.
Avoid this by making the *_bit_le functions take an unsigned long.
This can be triggered by faking an almost 4TB dm-mirror device, which uses bitmaps to track the mirror regions:
$ dmsetup create bigzero --table '0 8589934590 zero' $ dmsetup create mymirror --table '0 8589934590 mirror core 2 2 nosync 2 /dev/mapper/bigzero 0 /dev/mapper/bigzero 0'
This will access memory before the start of the sync_bits bitmap, and likely hit the guard page of the previously allocated clean_bits bitmap, causing a kernel panic with the old code.
I looked and didn't see any crazy code using the signed int to intentionally try and access bits before some address within the bitmap.
--- include/asm-generic/bitops/le.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
include/asm-generic/bitops/le.h +9 -9
@@ -50,47 +50,47 @@ extern unsigned long find_next_bit_le(const void *addr,#error "Please fix <asm/byteorder.h>"#endif -static inline int test_bit_le (int nr,const void *addr) +static inline int test_bit_le (unsigned long nr,const void *addr) {return test_bit (nr ^BITOP_LE_SWIZZLE , addr); } -static inline void set_bit_le (int nr,void *addr) +static inline void set_bit_le (unsigned long nr,void *addr) {set_bit (nr ^BITOP_LE_SWIZZLE , addr); } -static inline void clear_bit_le (int nr,void *addr) +static inline void clear_bit_le (unsigned long nr,void *addr) {clear_bit (nr ^BITOP_LE_SWIZZLE , addr); } -static inline void __set_bit_le (int nr,void *addr) +static inline void __set_bit_le (unsigned long nr,void *addr) {__set_bit (nr ^BITOP_LE_SWIZZLE , addr); } -static inline void __clear_bit_le (int nr,void *addr) +static inline void __clear_bit_le (unsigned long nr,void *addr) {__clear_bit (nr ^BITOP_LE_SWIZZLE , addr); } -static inline int test_and_set_bit_le (int nr,void *addr) +static inline int test_and_set_bit_le (unsigned long nr,void *addr) {return test_and_set_bit (nr ^BITOP_LE_SWIZZLE , addr); } -static inline int test_and_clear_bit_le (int nr,void *addr) +static inline int test_and_clear_bit_le (unsigned long nr,void *addr) {return test_and_clear_bit (nr ^BITOP_LE_SWIZZLE , addr); } -static inline int __test_and_set_bit_le (int nr,void *addr) +static inline int __test_and_set_bit_le (unsigned long nr,void *addr) {return __test_and_set_bit (nr ^BITOP_LE_SWIZZLE , addr); } -static inline int __test_and_clear_bit_le (int nr,void *addr) +static inline int __test_and_clear_bit_le (unsigned long nr,void *addr) {return __test_and_clear_bit (nr ^BITOP_LE_SWIZZLE , addr); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 115/1848 soc: ixp4xx: qmgr: add missing MODULE_DEVICE_TABLE()
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 01479280fa5d4691013bcd64fdfd935117b69769 ]
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.
Message-ID: <[email protected]>
--- drivers/soc/ixp4xx/ixp4xx-qmgr.c | 1 + 1 file changed, 1 insertion(+)
drivers/soc/ixp4xx/ixp4xx-qmgr.c +1 -0
@@ -454,6 +454,7 @@ static const struct of_device_id ixp4xx_qmgr_of_match[] = { }, {}, }; +MODULE_DEVICE_TABLE (of, ixp4xx_qmgr_of_match);static struct platform_driver ixp4xx_qmgr_driver = { .driver = {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 116/1848 PCI/portdrv: Allow probing even without child services
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Brian Norris <[email protected]>
[ Upstream commit 834171efeefffb1a0f2136f32e76669bbc11db86 ]
The PCIe port driver fails to probe if it finds no child services, presumably under the assumption that the driver is not useful in that case. However, the driver *can* still be useful for power management support -- namely, it still configures the port for runtime PM / D3, which may be important for allowing a bridge to enter low power modes.
Thus, allow probe to succeed even if no IRQs and no child services are available. This also mirrors existing behavior for ports that don't support any portdrv services (PCIe hotplug, AER, DPC, PME, bwctrl), where we'd also probe successfully.
This change is a bit more important after commit f5cd8a929c82 ("PCI: dwc:
Remove MSI/MSIX capability for Root Port if iMSI-RX is used as MSI controller"), because it's common for some DWC-based systems to:
1. have only the "aer" and "pcie_pme" port services available and
2. not define legacy INTx interrupts properly in their device tree.
After commit f5cd8a929c82, such systems may fail pcie_init_service_irqs() and so exit with -ENODEV.
--- drivers/pci/pcie/portdrv_core.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-)
drivers/pci/pcie/portdrv_core.c +14 -14
@@ -322,8 +322,8 @@ static int pcie_device_init(struct pci_dev *pdev, int service, int irq)*/ int pcie_port_device_register (struct pci_dev *dev) { -int status, capabilities, i, nr_service;int irqs[PCIE_PORT_DEVICE_MAXSERVICES ]; +int status, capabilities, i;/* Enable PCI Express port device */ status =pci_enable_device (dev);
@@ -347,29 +347,29 @@ int pcie_port_device_register(struct pci_dev *dev)if (status) { capabilities &=PCIE_PORT_SERVICE_HP ;if (!capabilities) - goto error_disable; + goto out; }/* Allocate child services if any */ - status = -ENODEV ; - nr_service =0 ;for (i =0 ; i <PCIE_PORT_DEVICE_MAXSERVICES ; i++) {int service =1 << i;if (!(capabilities & service))continue ; -if (!pcie_device_init (dev, service, irqs[i])) - nr_service++; +if (pcie_device_init (dev, service, irqs[i])) + capabilities &= ~service; } -if (!nr_service) - goto error_cleanup_irqs; -return 0 ; +out: +/* +* With no child services, we shouldn't need bus mastering or any IRQ +* vectors we allocated. +*/ +if (!capabilities) { +pci_free_irq_vectors (dev); +pci_clear_master (dev); + } -error_cleanup_irqs: -pci_free_irq_vectors (dev); -error_disable: -pci_disable_device (dev); -return status; +return 0 ; }#ifdef CONFIG_PM
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 117/1848 firmware: imx: scu: manage mailbox channels and global handle
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 55c748d596f841a18cf659ce0999f64029a5c88c ]
imx_scu_probe() requests mailbox channels with the non-managed mbox_request_channel_byname() helper and then publishes sc_ipc through the global imx_sc_ipc_handle. Later probe failures, including child population failure, can leave the channels and global handle live after the probe has failed.
Register devres actions to free each mailbox channel and clear the global handle. Also depopulate partially created child devices when devm_of_platform_populate() reports an error.
--- drivers/firmware/imx/imx-scu.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-)
drivers/firmware/imx/imx-scu.c +24 -1
@@ -81,6 +81,17 @@ static int imx_sc_linux_errmap[IMX_SC_ERR_LAST] = {static struct imx_sc_ipc *imx_sc_ipc_handle; +static void imx_scu_free_mbox_chan (void *data) +{ +mbox_free_channel (data); +} + +static void imx_scu_clear_handle (void *data) +{ +if (imx_sc_ipc_handle == data) + imx_sc_ipc_handle =NULL ; +} +static inline int imx_sc_to_linux_errno (int errno) {if (errno >=IMX_SC_ERR_NONE && errno <IMX_SC_ERR_LAST )
@@ -321,6 +332,11 @@ static int imx_scu_probe(struct platform_device *pdev)dev_dbg (dev,"request mbox chan %s\n" , chan_name);/* chan_name is not used anymore by framework */ kfree (chan_name); + + ret =devm_add_action_or_reset (dev, imx_scu_free_mbox_chan, + sc_chan->ch); +if (ret) +return ret; } sc_ipc->dev = dev;
@@ -328,6 +344,9 @@ static int imx_scu_probe(struct platform_device *pdev)init_completion (&sc_ipc->done); imx_sc_ipc_handle = sc_ipc; + ret =devm_add_action_or_reset (dev, imx_scu_clear_handle, sc_ipc); +if (ret) +return ret; ret =imx_scu_soc_init (dev);if (ret)
@@ -340,7 +359,11 @@ static int imx_scu_probe(struct platform_device *pdev)dev_info (dev,"NXP i.MX SCU Initialized\n" ); -return devm_of_platform_populate (dev); + ret =devm_of_platform_populate (dev); +if (ret) +of_platform_depopulate (dev); + +return ret; }static const struct of_device_id imx_scu_match[] = {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 118/1848 hsi: omap_ssi: remove debugfs on port creation failure
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 760318e2e69857214314e94ac477219f0c89106b ]
ssi_probe() creates the controller debugfs tree before creating the SSI port child devices. If a port device cannot be created, the error path removes any children and tears down the controller, but leaves the debugfs tree behind.
Remove the controller debugfs tree on the port creation failure path, matching the normal remove path.
--- drivers/hsi/controllers/omap_ssi_core.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/hsi/controllers/omap_ssi_core.c +3 -0
@@ -542,6 +542,9 @@ static int ssi_probe(struct platform_device *pd)return err; out3:device_for_each_child (&pd->dev,NULL , ssi_remove_ports); +#ifdef CONFIG_DEBUG_FS +ssi_debug_remove_ctrl (ssi); +#endif out2:ssi_remove_controller (ssi);pm_runtime_disable (&pd->dev);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 119/1848 iommu/rockchip: Clear stale page faults before enabling stall
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jiaxing Hu <[email protected]>
[ Upstream commit b10d5920cafa292ee3cab9c20f813da4fe4f00b8 ]
Boot firmware can leave an IOMMU bank in PAGE_FAULT_ACTIVE before the driver has configured paging:
PAGE_FAULT_ACTIVE=1 STALL_ACTIVE=0 IDLE=1
Such a bank ignores CMD_ENABLE_STALL and never reaches STALL_ACTIVE, so rk_iommu_enable_stall()'s readx_poll_timeout() spins until it times out (seen on the RK3576 NPU, whose MMUs share this poll across banks).
Rather than special-casing these banks in the stall path, acknowledge the stale fault with CMD_PAGE_FAULT_DONE before enabling stall, so every bank starts from a clean state and the normal stall sequence applies to all of them. Banks without a pending fault are untouched.
--- drivers/iommu/rockchip-iommu.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
drivers/iommu/rockchip-iommu.c +13 -0
@@ -360,6 +360,19 @@ static int rk_iommu_enable_stall(struct rk_iommu *iommu)if (!rk_iommu_is_paging_enabled (iommu))return 0 ; +/* +* Boot firmware can leave a bank in PAGE_FAULT_ACTIVE with no handler +* (PAGE_FAULT_ACTIVE & !STALL_ACTIVE & IDLE). Such a bank ignores +* CMD_ENABLE_STALL and never reaches STALL_ACTIVE, timing out the poll +* below. Acknowledge any stale fault first so every bank starts clean. +*/ +for (i =0 ; i < iommu->num_mmu; i++) { +if (rk_iommu_read (iommu->bases[i],RK_MMU_STATUS ) & +RK_MMU_STATUS_PAGE_FAULT_ACTIVE ) +writel (RK_MMU_CMD_PAGE_FAULT_DONE , + iommu->bases[i] +RK_MMU_COMMAND ); + } +rk_iommu_command (iommu,RK_MMU_CMD_ENABLE_STALL ); ret = readx_poll_timeout(rk_iommu_is_stall_active, iommu, val,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 120/1848 scsi: ibmvfc: check for NULL evt in implicit LOGO and target delete path
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tyrel Datwyler <[email protected]>
[ Upstream commit 0122eab60b151d7815f420a91c7315944a037714 ]
Unlike ibmvfc_tgt_implicit_logout the ibmvfc_tgt_implicit_logout_and_del path fails to check for a NULL evt returned from ibmvfc_get_reserved_event and passes that directly to ibmvfc_send_event which will unconditionally derefence the evt.
Check for a NULL evt and perform same escalation as ibmvfc_implicit_logout.
--- drivers/scsi/ibmvscsi/ibmvfc.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/scsi/ibmvscsi/ibmvfc.c +8 -0
@@ -3713,6 +3713,14 @@ static void ibmvfc_tgt_implicit_logout_and_del(struct ibmvfc_target *tgt) evt =__ibmvfc_tgt_get_implicit_logout_evt (tgt, ibmvfc_tgt_implicit_logout_and_del_done); +if (!evt) { + vhost->discovery_threads--; +ibmvfc_set_tgt_action (tgt,IBMVFC_TGT_ACTION_NONE ); +kref_put (&tgt->kref, ibmvfc_release_tgt); +__ibmvfc_reset_host (vhost); +return ; + } +ibmvfc_set_tgt_action (tgt,IBMVFC_TGT_ACTION_LOGOUT_RPORT_WAIT );if (ibmvfc_send_event (evt, vhost, default_timeout)) { vhost->discovery_threads--;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 121/1848 scsi: ibmvfc: free ibmvfc_target allocations with mempool_free
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tyrel Datwyler <[email protected]>
[ Upstream commit 99143433f7f14139ac373c553ec8e1317d0ae58a ]
The ibmvfc_target *tgt structures for discovery are allocated using mempool_alloc but in turn free'd via kfree in ibmvfc_release_target breaking pool guarentees.
Fixup ibmvfc_release_target to call mempool_free instead so that memory is properly returned to the mempool instead of the general allocator.
--- drivers/scsi/ibmvscsi/ibmvfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/ibmvscsi/ibmvfc.c +1 -1
@@ -1097,7 +1097,7 @@ static void ibmvfc_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout)static void ibmvfc_release_tgt (struct kref *kref) { struct ibmvfc_target *tgt = container_of(kref, struct ibmvfc_target, kref); -kfree (tgt); +mempool_free (tgt, tgt->vhost->tgt_pool); }/**
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 122/1848 udf: Fix bh leak for unallocated space entries
In reply to Greg Kroah-Hartman5.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jan Kara <[email protected]>
[ Upstream commit d95094d4c0a62ea17b8a7c6399b42381b8a55bc0 ]
When processing unallocated space entries we didn't properly release the inode bh. Fix it.
--- fs/udf/inode.c | 1 + 1 file changed, 1 insertion(+)
fs/udf/inode.c +1 -0
@@ -1432,6 +1432,7 @@ static int udf_read_inode(struct inode *inode, bool hidden_inode)memcpy (iinfo->i_data, bh->b_data +sizeof (struct unallocSpaceEntry ), bs -sizeof (struct unallocSpaceEntry )); +brelse (bh);return 0 ; }
Signature · 1 line
2.53.0