6.6.163-rc1 review
Subsystems (6)
Greg Kroah-Hartman
maintainerPATCH 1/3318 x86/bugs: Mitigate TSA on AMD Zen5
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: "Borislav Petkov (AMD)" <[email protected]>
Commit cf27412f19c9cc5909b9107cd1b3f4ab7608e362 upstream.
Zen5 is affected by TSA too, along with a third variant called TSA_FILL. Detect the vuln there and mitigate it. For Zen5, a table of microcode revisions is not needed because appropriate microcode sets the VERW_CLEAR CPUID bit, which simplifies mitigation detection considerably.
--- arch/x86/include/asm/cpufeatures.h | 2 ++ arch/x86/kernel/cpu/amd.c | 9 +++++++-- arch/x86/kernel/cpu/common.c | 4 +++- arch/x86/kernel/cpu/scattered.c | 1 + arch/x86/kvm/cpuid.c | 3 ++- arch/x86/kvm/reverse_cpuid.h | 2 ++ 6 files changed, 17 insertions(+), 4 deletions(-)
arch/x86/include/asm/cpufeatures.h +2 -0
@@ -475,6 +475,8 @@#define X86_FEATURE_CLEAR_CPU_BUF_VM (21*32+13)/* "" Clear CPU buffers using VERW before VMRUN */ #define X86_FEATURE_IBPB_EXIT_TO_USER (21*32+14)/* Use IBPB on exit-to-userspace, see VMSCAPE bug */ +#define X86_FEATURE_TSA_FILL_NO (21*32+17)/* AMD CPU not vulnerable to TSA-FILL */ +/* * BUG word(s) */
arch/x86/kernel/cpu/amd.c +7 -2
@@ -594,9 +594,14 @@ static void tsa_init(struct cpuinfo_x86if (amd_check_tsa_microcode ())setup_force_cpu_cap (X86_FEATURE_VERW_CLEAR ); }else { -setup_force_cpu_cap (X86_FEATURE_TSA_SQ_NO ); -setup_force_cpu_cap (X86_FEATURE_TSA_L1_NO ); +if (!cpu_has (c,X86_FEATURE_ZEN5 )) { +setup_force_cpu_cap (X86_FEATURE_TSA_SQ_NO ); +setup_force_cpu_cap (X86_FEATURE_TSA_L1_NO ); + } } + +if (!cpu_has (c,X86_FEATURE_ZEN5 )) +setup_force_cpu_cap (X86_FEATURE_TSA_FILL_NO ); }static void bsp_init_amd (struct cpuinfo_x86 *c)
arch/x86/kernel/cpu/common.c +3 -1
@@ -1341,6 +1341,7 @@ static const struct x86_cpu_id cpu_vuln_VULNBL_AMD (0x17 ,RETBLEED |SMT_RSB |SRSO |VMSCAPE ),VULNBL_HYGON (0x18 ,RETBLEED |SMT_RSB |SRSO |VMSCAPE ),VULNBL_AMD (0x19 ,SRSO |TSA |VMSCAPE ), + VULNBL_AMD(0x1a, SRSO | TSA | VMSCAPE), {} };
@@ -1547,7 +1548,8 @@ static void __init cpu_set_bug_bits(struif (c->x86_vendor ==X86_VENDOR_AMD ) {if (!cpu_has (c,X86_FEATURE_TSA_SQ_NO ) || - !cpu_has (c,X86_FEATURE_TSA_L1_NO )) { + !cpu_has (c,X86_FEATURE_TSA_L1_NO ) || + !cpu_has (c,X86_FEATURE_TSA_FILL_NO )) {if (cpu_matches (cpu_vuln_blacklist,TSA ) ||/* Enable bug on Zen guests to allow for live migration. */ (cpu_has (c,X86_FEATURE_HYPERVISOR ) &&cpu_has (c,X86_FEATURE_ZEN )))
arch/x86/kernel/cpu/scattered.c +1 -0
@@ -51,6 +51,7 @@ static const struct cpuid_bit cpuid_bits { X86_FEATURE_BMEC, CPUID_EBX, 3, 0x80000020, 0 }, { X86_FEATURE_TSA_SQ_NO, CPUID_ECX, 1, 0x80000021, 0 }, { X86_FEATURE_TSA_L1_NO, CPUID_ECX, 2, 0x80000021, 0 }, + { X86_FEATURE_TSA_FILL_NO, CPUID_ECX, 7, 0x80000021, 0 }, { X86_FEATURE_PERFMON_V2, CPUID_EAX, 0, 0x80000022, 0 }, { X86_FEATURE_AMD_LBR_V2, CPUID_EAX, 1, 0x80000022, 0 }, { X86_FEATURE_AMD_LBR_PMC_FREEZE, CPUID_EAX, 2, 0x80000022, 0 },
arch/x86/kvm/cpuid.c +2 -1
@@ -794,11 +794,12 @@ void kvm_set_cpu_caps(void)kvm_cpu_cap_check_and_set (X86_FEATURE_VERW_CLEAR );kvm_cpu_cap_init_kvm_defined (CPUID_8000_0021_ECX , -F (TSA_SQ_NO ) |F (TSA_L1_NO ) +F (TSA_SQ_NO ) |F (TSA_L1_NO ) |F (TSA_FILL_NO ) );kvm_cpu_cap_check_and_set (X86_FEATURE_TSA_SQ_NO );kvm_cpu_cap_check_and_set (X86_FEATURE_TSA_L1_NO ); +kvm_cpu_cap_check_and_set (X86_FEATURE_TSA_FILL_NO );/* * Synthesize "LFENCE is serializing" into the AMD-defined entry in
arch/x86/kvm/reverse_cpuid.h +2 -0
@@ -65,6 +65,7 @@ enum kvm_only_cpuid_leafs {/* CPUID level 0x80000021 (ECX) */ #define KVM_X86_FEATURE_TSA_SQ_NO KVM_X86_FEATURE(CPUID_8000_0021_ECX, 1)#define KVM_X86_FEATURE_TSA_L1_NO KVM_X86_FEATURE(CPUID_8000_0021_ECX, 2) +#define KVM_X86_FEATURE_TSA_FILL_NO KVM_X86_FEATURE(CPUID_8000_0021_ECX, 7)struct cpuid_reg {u32 function;
@@ -137,6 +138,7 @@ static __always_inline u32 __feature_traKVM_X86_TRANSLATE_FEATURE (BHI_CTRL );KVM_X86_TRANSLATE_FEATURE (TSA_SQ_NO );KVM_X86_TRANSLATE_FEATURE (TSA_L1_NO ); +KVM_X86_TRANSLATE_FEATURE (TSA_FILL_NO );default :return x86_feature; }
Greg Kroah-Hartman
maintainercover 6.6.163-rc1 review
This is the start of the stable review cycle for the 6.6.163 release. There are 3318 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:42 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.6.163-rc1.gz
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.6.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <[email protected]>
Linux 6.6.163-rc1
Dmitry Torokhov <[email protected]>
Input: matrix_keypad - propagate error code from matrix_keypad_build_keymap()
Zhu Yanjun <[email protected]>
RDMA/rxe: Flush delayed SKBs while releasing RXE resources
Marek Szyprowski <[email protected]>
clk: samsung: Revert "clk: Use device_get_match_data()"
Masahiro Yamada <[email protected]>
kconfig: initialize sym->curr.tri to 'no' for all symbol types again
Jiri Olsa <[email protected]>
bpftool: Fix wrong free call in do_show_link
Arnd Bergmann <[email protected]>
wifi: mt76: mt7996: fix mt7996_mcu_all_sta_info_event struct packing
StanleyYP Wang <[email protected]>
wifi: mt76: mt7996: fix alignment of sta info event
Mario Limonciello <[email protected]>
cpufreq/amd-pstate-ut: Don't check for highest perf matching on prefcore
Yoann Congal <[email protected]>
printk: Fix LOG_CPU_MAX_BUF_SHIFT when BASE_SMALL is enabled
Hannes Reinecke <[email protected]>
nvmet: do not return 'reserved' for empty TSAS values
Li RongQing <[email protected]>
apparmor: avoid potential double free when remapping DFA tables
Justin Chen <[email protected]>
net: bcmgenet: if UMAC was suspended in SW_RESET, restore it to SW_RESET
Nicolai Buchwitz <[email protected]>
net: bcmgenet: stop Tx NAPI before disabling the queues
Shengjiu Wang <[email protected]>
remoteproc: imx_dsp_rproc: Only reset carveout memory at RPROC_OFFLINE state
Bharath SM <[email protected]>
smb: align durable reconnect v2 context to 8 byte boundary
Steven Price <[email protected]>
irqchip/gic-v3-its: Fix over allocation in itt_alloc_pool()
Jakub Sitnicki <[email protected]>
net: lwtunnel: Drop skb metadata before LWT encapsulation
Jérémy Jean <[email protected]>
nvmet-auth: reject incomplete DHCHAP messages
Shakeel Butt <[email protected]>
kernfs: avoid READ_ONCE() on a kgid_t in kernfs_new_node()
Krzysztof Wilczyński <[email protected]>
PCI/sysfs: Decouple acpi_index from the optional device name element
Linus Torvalds <[email protected]>
vdpa_sim: disable page faults around vringh_need_notify_iotlb()
Cheng Xu <[email protected]>
RDMA/erdma: Use IRQ-safe XArray helpers for QP and CQ tables
Dominique Martinet <[email protected]>
libbpf: fix cross-endian build with newer libbpf
Imre Kaloz <[email protected]>
rtc: ds1685: do not sleep in the power-off handler
Imre Kaloz <[email protected]>
rtc: ds1685: arm the wake-up alarm at power-off only if an alarm is set
Nickolai Zeldovich <[email protected]>
fs_pin: do not trust the pin after a spurious wakeup in pin_kill()
Muchun Song <[email protected]>
block: introduce init_wait_func()
Muchun Song <[email protected]>
block: remove redundant explicit memory barrier from rq_qos waiter and waker
Nickolai Zeldovich <[email protected]>
ucount: read the parent ucounts before dropping the rlimit count
Nickolai Zeldovich <[email protected]>
splice: retry tee() instead of returning 0 when it races
Zhiyu Zhang <[email protected]>
watch_queue: keep info_id separate from rcu_head
Xiao Liang <[email protected]>
tun: drop batched packets while the device is down
Jhonata Poma-Hansen <[email protected]>
netlink: check sk_rcvbuf before charging the dump skb
Eric Dumazet <[email protected]>
openvswitch: use eth_type_trans_careful() in internal_dev_recv()
Eric Dumazet <[email protected]>
net: use eth_type_trans_careful() in __dev_forward_skb2()
Sun Jian <[email protected]>
selftests/bpf: cover short IPv4/IPv6 inputs with adjust_room
Eric Dumazet <[email protected]>
loopback: use eth_type_trans_careful()
Eric Dumazet <[email protected]>
net: add eth_type_trans_careful()
Kyle Zeng <[email protected]>
tcp: avoid double destroy in tcp_abort() of an unaccepted child
Rosen Penev <[email protected]>
net: bgmac: fix TX DMA unmapping and slot cleanup
Kyle Zeng <[email protected]>
gro: do not GRO GSO packets with inconsistent payload
Jakub Kicinski <[email protected]>
eth: bnxt: hand XDP frags over to the copybreak skb
Somnath Kotur <[email protected]>
bnxt_en: Add XDP Metadata support
Jakub Kicinski <[email protected]>
eth: bnxt: free XDP frags when xdp_do_redirect() fails
Somnath Kotur <[email protected]>
bnxt_en: Change bnxt_rx_xdp function prototype
Wentao Liang <[email protected]>
apparmor: Fix namespace reference leak in __aa_find_or_create_ns()
Maxime Bélair <[email protected]>
apparmor: convert duplicated dfa transitions to match_char()
John Johansen <[email protected]>
apparmor: add support for 2^24 states to the dfa state machine.
John Johansen <[email protected]>
apparmor: allow restricting unprivileged change_profile
John Johansen <[email protected]>
apparmor: advertise availability of exended perms
Maxime Bélair <[email protected]>
apparmor: report a label allocation failure as -ENOMEM
Jamie Nguyen <[email protected]>
selftests: net: txtimestamp: fix out-of-bounds read in raw UDP checksum
Chris Mason <[email protected]>
rnbd-srv: publish the sess_dev at the end of OPEN
Chris Mason <[email protected]>
rnbd-srv: fix use-after-free on two CLOSE messages
Josef Bacik <[email protected]>
block/rnbd-srv: drop the sess_dev kobject unlocked
Josef Bacik <[email protected]>
block/rnbd-srv: don't free the device on a sysfs error
Josef Bacik <[email protected]>
drbd: take req_lock to skip the initial sync as peer
Josef Bacik <[email protected]>
drbd: stop the start_resync timer of a dying device
Josef Bacik <[email protected]>
block: partitions/mac: compute the sectors in 64 bits
Josef Bacik <[email protected]>
blk-mq: exit the hctxs of a queue under tag_list_lock
Josef Bacik <[email protected]>
blk-mq: quiesce a queue that joins a quiesced tag set
Josef Bacik <[email protected]>
blk-mq: don't forget a timer the driver has restarted
Josef Bacik <[email protected]>
blk-mq: don't bring back flags of a completed request
Damien Le Moal <[email protected]>
block: Allow using bio_attempt_back_merge() internally
Josef Bacik <[email protected]>
blk-mq: keep sharing tags fairly after a queue update
Josef Bacik <[email protected]>
block: don't lose the status of a failed flush request
Josef Bacik <[email protected]>
block: fix use-after-free of the disk in sync_bdevs()
Dominik Maier <[email protected]>
xattr: always invoke cap_convert_nscap() for security.capability writes
Josef Bacik <[email protected]>
fork: Let nobody keep a task that may not come to life
Markus Probst <[email protected]>
rtc: s35390a: Read 24-hour mode on access
Alexandre Belloni <[email protected]>
rtc: s35390a: fix typo in comment
Nick Huang <[email protected]>
rtc: s35390a: use u8 instead of char for register buffer
André Draszik <[email protected]>
rtc: s35390a: drop needless struct s35390a::rtc member
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: mctp: free reassembly head skb when key_add fails on SOM
Jeremy Kerr <[email protected]>
net: mctp: mctp_fraq_queue should take ownership of passed skb
Linkui Xiao <[email protected]>
net: bridge: netlink: do not clear the vlan info dump error
Eric Dumazet <[email protected]>
net: bridge: use atomic ops to read/change p->flags (III)
Eric Dumazet <[email protected]>
bridge: add bridge_flags_bit enum
Danielle Ratson <[email protected]>
bridge: Add internal flags for neigh_forward_grat
Eric Woudstra <[email protected]>
bridge: No DEV_PATH_BR_VLAN_UNTAG_HW for dsa foreign
Jacob Keller <[email protected]>
ice: set in_use only after preparing Tx timestamp index
Joas Antonio dos Santos <[email protected]>
net: dcb: initialize PFC value before calling getpfccfg
Nicolai Buchwitz <[email protected]>
net: bcmgenet: restore the Tx coalescing setting when the rings are rebuilt
Nicolai Buchwitz <[email protected]>
net: bcmgenet: recover from a failed resume
Doug Berger <[email protected]>
net: bcmgenet: revise suspend/resume
Doug Berger <[email protected]>
net: bcmgenet: introduce bcmgenet_[r|t]dma_disable
Doug Berger <[email protected]>
net: bcmgenet: consolidate dma initialization
Doug Berger <[email protected]>
net: bcmgenet: remove dma_ctrl argument
Josef Bacik <[email protected]>
blk-iolatency: flush enable_work after going offline
Josef Bacik <[email protected]>
blk-cgroup: don't free a blkg with its punt work queued
Josef Bacik <[email protected]>
blk-cgroup: fix root io.stat byte counts on 32-bit
Josef Bacik <[email protected]>
blk-throttle: don't truncate the cgroup v1 iops limits
Chris Mason <[email protected]>
nvmet: don't clear sq->ctrl for a Connect with sqsize 0
Chris Mason <[email protected]>
nvmet-rdma: fix double puts after a failed RDMA WRITE
Chris Mason <[email protected]>
nvmet-rdma: disable interrupts under rsp_wr_wait_lock
Chris Mason <[email protected]>
nvmet-rdma: flush nvmet-wq on module exit
Josef Bacik <[email protected]>
nvme-loop: don't BUG() if a scan runs beside a reset
Josef Bacik <[email protected]>
nvmet-tcp: don't read a removed port at Connect time
Josef Bacik <[email protected]>
nvmet-tcp: stop listening when a port is removed
Josef Bacik <[email protected]>
nvmet-auth: take only AUTH_Negotiate for a negotiation
Josef Bacik <[email protected]>
nvmet: don't truncate the length of big discards
Chaitanya Kulkarni <[email protected]>
nvmet: ignore discard return value
Naveen Kumar Chaudhary <[email protected]>
kdb: unify CMD_BUFLEN definition into kdb_private.h
Rongzheng Wang <[email protected]>
nvmet: use the enabled transport when disabling a port
Hannes Reinecke <[email protected]>
nvmet: make TCP sectype settable via configfs
Hannes Reinecke <[email protected]>
nvme: add TCP TSAS definitions
Qing Zhang <[email protected]>
nvmet: protect nvmet_ports_list with nvmet_config_sem
Avi Weiss <[email protected]>
nvmet: prevent double-free after metadata SGL allocation failure
Andrea Parri <[email protected]>
nvmet: zns: reject a NUMD whose byte count wraps
bui duc phuc <[email protected]>
ASoC: xilinx: formatter_pcm: Fix read-modify-write of AUD_CTRL in hw_params
Peter Morrow <[email protected]>
net/mlx4: always create the eth and ib auxiliary devices
Feng Yang <[email protected]>
bpf: Fix out-of-bounds btf->types write for split BTF
Ömer Mete Kaya <[email protected]>
usbnet: fix EVENT_RX_PAUSED race in usbnet_skb_return()
Florian Fainelli <[email protected]>
net: dsa: mv88e6xxx: fix 6351 family statistics snapshot
Fernando Fernandez Mancera <[email protected]>
devlink: region: fix snapshot id leak on kernel-allocated ids
Daniel Machon <[email protected]>
net: lan966x: release the in-flight slot of a stale TX skb
Paul Moses <[email protected]>
perf mmap: Preserve the consumed cursor in forward mode
Paul Moses <[email protected]>
perf mmap: Use the head selected by read_init
Len Brown <[email protected]>
x86_energy_perf_policy: Cleanup: Check fseek() in VM path
Len Brown <[email protected]>
x86_energy_perf_policy: Fix optarg keyword matching
Daniel Machon <[email protected]>
net: lan966x: do not warn on MAC entries that are not port destined
Daniel Machon <[email protected]>
net: lan966x: do not inject uninitialised bytes past skb->len
Dudu Lu <[email protected]>
net: xps: bound the cleanup loop by the old map's num_tc
Allison Henderson <[email protected]>
net/rds: do not initialize transports after rds_init() failed
Hongfu Li <[email protected]>
rds:Simplify the allocation of slab caches
Allison Henderson <[email protected]>
net/rds: do not fail init when CONFIG_SYSCTL=n
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
HyeongJun An <[email protected]>
ALSA: pcmtest: Honor the enable parameter
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
Paolo Abeni <[email protected]>
gtp: hold RCU in gtp_genl_send_echo_req()
Qingfang Deng <[email protected]>
pppoe: drop discovery frames with no MAC header
Tung Nguyen <[email protected]>
tipc: fix refcount panic in tipc_rcv() when receiving shared skb
Jerome Brunet <[email protected]>
clk: cdce925: Size the PLL child name buffer for any int
bui duc phuc <[email protected]>
clk: lmk04832: Handle reset GPIO lookup errors
Eric Dumazet <[email protected]>
ipmr: clear skb->cb[] in reg_vif_xmit()
alex todadze <[email protected]>
net: stmmac: fix rx checksum offload with extended descriptors
Dudu Lu <[email protected]>
net/sched: taprio: unwind the netdevice notifier if register_qdisc() fails
Alexandre Cassen <[email protected]>
net/sched: act_api: inherit filter offload flags only on new actions
Dudu Lu <[email protected]>
net/sched: gred: keep the qdisc lock while updating the table
Zhang Yi <[email protected]>
ASoC: codecs: es*: Modify the registers related to ALC RECOVERY
Srinivas Kandagatla <[email protected]>
ASoC: codecs: wsa883x: disable runtime PM on unbind
Srinivas Kandagatla <[email protected]>
ASoC: codecs: wsa884x: disable runtime PM on unbind
Hungyu Lin <[email protected]>
thermal: Fix CPU mask truncation in power limit trace event
TJ Adams <[email protected]>
block: advance iterator after copy-in for SG_DXFER_TO_FROM_DEV
Nguyen Ngoc Thang <[email protected]>
libceph: reject bad connect_seq in msgr1 READY reply
Yogesh Gaur <[email protected]>
ceph: don't keep a mon_addr string that failed to parse
Xiang Mei <[email protected]>
ceph: fix off-by-one NUL termination in decode_encrypted_symlink()
Alex Markuze <[email protected]>
ceph: fix page vector leak on encrypted netfs read EIO path
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
HyeongJun An <[email protected]>
ALSA: pcmtest: Reject invalid fill_mode values
Ren Tamura <[email protected]>
tools/cgroup: sum shrinker object counts across NUMA nodes
Lorenzo Stoakes (ARM) <[email protected]>
ALSA: us122l: mark hwdep mappings VM_MIXEDMAP
Ting-Han Hou <[email protected]>
scripts/gdb: fix radix tree lookup pointer handling
Ilya Leoshkevich <[email protected]>
scripts/gdb/radix-tree: add lx-radix-tree-command
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
Ayushman Rout <[email protected]>
bpf: Use memmove() to load bytes from an skb and an xdp_buff
Feng Yang <[email protected]>
bpf: Propagate btf_add_type() errors in btf_check_all_metas()
Haotian Zhang <[email protected]>
scsi: elx: libefc: Fix resource leak in efcport_init() error path
Dudu Lu <[email protected]>
net/sched: etf: initialise the sock_exterr_skb before filling it
Nandor Kracser <[email protected]>
tls: avoid field-spanning write when copying crypto info
Simon Horman <[email protected]>
net: tls: Pass union tls_crypto_context pointer to memzero_explicit
Greg Thelen <[email protected]>
selftests/net: tcp_mmap: remove unused -k option and keepflag
Allison Henderson <[email protected]>
net/rds: keep the connected peer's scope id apart from the bound one
Allison Henderson <[email protected]>
net/rds: include the scope id in the sendmsg connection cache check
Eric Dumazet <[email protected]>
net: fix frag_list leak in skb_segment_list() error path
Daniel Machon <[email protected]>
net: sparx5/lan969x: do not read past skb->len when injecting a frame
Florian Fuchs <[email protected]>
ALSA: sh: aica: Fix spu_memset() stride
Gregory Price (Meta) <[email protected]>
cgroup/cpuset: check effective mems for a movable-only configuration
Jiale Yao <[email protected]>
regulator: irq: freeze deferred hardware access during suspend
Marco Crivellari <[email protected]>
regulator: irq_helper: replace use of system_wq with system_dfl_wq
Steven Rostedt <[email protected]>
cpuidle: haltpoll: Only define guest_halt_poll_ns tracepoint when used
bui duc phuc <[email protected]>
ASoC: amd: raven: Fix memory leak in acp3x_dma_close()
Michail Andreas Michalopoulos <[email protected]>
ksmbd: select CRYPTO_AES
Ivan Hu <[email protected]>
ACPICA: Initialize parser_state.aml_end in acpi_install_method()
Nickolai Zeldovich <[email protected]>
nsproxy: Fix cred leak in the error path of prepare_nsset()
Avi Weiss <[email protected]>
signal: skip blocked signals in dequeue_synchronous_signal()
Tianyi Chen <[email protected]>
eventpoll: propagate wakeup source creation failure in ep_modify()
Nickolai Zeldovich <[email protected]>
proc/kcore: advance the vmalloc retry by the last copy, not the total
Marek Szyprowski <[email protected]>
ASoC: wm8994: follow AIF clock source changes in MCLK gating
Binbin Deng <[email protected]>
tipc: fix use-after-free of broadcast reception link at node release
Rand Deeb <[email protected]>
ata: libata-core: Ignore forced transfer modes the host does not support
Travis Howard <[email protected]>
tg3: Add Datto SIRIS 5 1U Server to restart AER quirk table
Eric Dumazet <[email protected]>
net: shrink the payload-only part of skb dataref to one bit
Tianyi Gao <[email protected]>
veth: schedule the peer's NAPI after XDP_TX when only GRO is enabled
Daniel Machon <[email protected]>
net: sparx5/lan969x: do not clobber the PSFP cycle timer update period
Willem de Bruijn <[email protected]>
virtio-net: fix frag overflow in big packets receive
Eric Joyner <[email protected]>
ionic: free port_info when probe fails after the port is set up
Nikhil P. Rao <[email protected]>
ionic: fix port_info use-after-free on firmware recovery
Daniel Wagner <[email protected]>
nvme-fabrics: clear the poll map if no poll queues are mapped
Daniel Wagner <[email protected]>
nvme-fabrics: limit each queue type to the number of online CPUs
Daniel Wagner <[email protected]>
nvme-fabrics: reset io_queues before computing the queue mapping
Namhyung Kim <[email protected]>
perf c2c: Fix memory leaks on output fields
Waldemar Brodkorb <[email protected]>
sh: Select BINFMT_FLAT_NO_DATA_START_OFFSET for !MMU
Paul E. McKenney <[email protected]>
sh: Emulate one-byte cmpxchg
Marek Szyprowski <[email protected]>
ASoC: samsung: midas_wm1811: run FLL1 at the AIF1 configured rate when idle
Krzysztof Kozlowski <[email protected]>
ASoC: samsung: Use snd_soc_substream_to_rtd() for accessing private_data
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
HyeongJun An <[email protected]>
selftests: ALSA: pcmtest: Compare all captured bytes in ni_capture
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
HyeongJun An <[email protected]>
selftests: ALSA: pcmtest: Make room for the longest fill pattern
HyeongJun An <[email protected]>
selftests: ALSA: pcmtest: Check the frame count of each transfer
Takashi Iwai <[email protected]>
platform/x86: ibm_rtl: Fix potential OOB read at signature search
Jiale Yao <[email protected]>
Drivers: hv: vmbus: Check ACPI companion before use
Cen Zhang <[email protected]>
ocfs2: initialize status waiters before publishing them
Joseph Qi <[email protected]>
ocfs2: reserve xattr value tree metadata only once
Carolina Jubran <[email protected]>
net: skbuff: don't copy alloc_cpu in skb header copies
Michail Andreas Michalopoulos <[email protected]>
ksmbd: reject FILE_ATTRIBUTE_TEMPORARY on directories
Mohammed Alquraini <[email protected]>
ksmbd: reject foreign RPC pipe handles on IPC$ read and write
ChenXiaoSong <[email protected]>
smb/server: fix trailing period in generated short names
Shen Lichuan <[email protected]>
ksmbd: Correct typos in multiple comments across various files
Henry Hu <[email protected]>
ksmbd: report IPv4 and IPv6 addresses independently in iface query
ZhangGuoDong <[email protected]>
smb: move some duplicate definitions to common/smb2pdu.h
ChenXiaoSong <[email protected]>
smb: move create_durable_rsp_v2 to common/smb2pdu.h
ChenXiaoSong <[email protected]>
smb: move create_durable_handle_reconnect_v2 to common/smb2pdu.h
ChenXiaoSong <[email protected]>
smb: move create_durable_req_v2 to common/smb2pdu.h
ZhangGuoDong <[email protected]>
smb: move smb_sockaddr_in and smb_sockaddr_in6 to common/smb2pdu.h
Pali Rohár <[email protected]>
cifs: Update description about ACL permissions
Henry Hu <[email protected]>
ksmbd: fix invalid Next offset in interface info replies
Henry Hu <[email protected]>
ksmbd: fix unlocked IPv6 addr_list walk in fsctl_query_iface_info_ioctl()
Henry Hu <[email protected]>
ksmbd: fix link speed query in fsctl_query_iface_info_ioctl()
Mingming Cao <[email protected]>
ibmveth: wait for the RX poll to return before freeing the RX queue
Mingming Cao <[email protected]>
ibmveth: wait for in-flight transmits in ibmveth_close()
Mingming Cao <[email protected]>
ibmveth: return the error when set_channels cannot add TX queues
Mingming Cao <[email protected]>
ibmveth: fix netpoll races with RX replenish
Jiale Yao <[email protected]>
team: reject CAN, IEEE 802.15.4 and 6LoWPAN devices in team_port_add
Ido Schimmel <[email protected]>
ipv6: Hold RCU when emitting route hardware flags notification
Myeonghun Pak <[email protected]>
platform/x86: gpd pocket fan: Cancel work before releasing GPIOs
Eric Dumazet <[email protected]>
ipv6: account route exceptions to the netns of their dst
Sagi Maimon <[email protected]>
net: axienet: release every RX buffer in axienet_dma_bd_release()
Ido Schimmel <[email protected]>
bridge: mcast: Delete empty MDB entry when port group creation fails
Florian Fainelli <[email protected]>
net: bcmasp: account for offload header in TX short packet padding
Florian Fainelli <[email protected]>
net: bcmasp: fix OF node reference leak for phy_dn
Florian Fainelli <[email protected]>
net: bcmasp: validate minimum RX packet size in bcmasp_rx_poll()
Florian Fainelli <[email protected]>
net: bcmasp: unmap previous DMA mappings on TX map failure
Myeonghun Pak <[email protected]>
net: hix5hd2: serialize timeout recovery with interface teardown
Binbin Deng <[email protected]>
octeontx2: Fix use-after-free of qos node in delete path
Rishikesh Jethwani <[email protected]>
tls: device: protect async RX resync state during device-down
Eric Dumazet <[email protected]>
tcp: tcp_metrics: use the socket netns, not the dst device netns
Fernando Fernandez Mancera <[email protected]>
net: openvswitch: drop IP fragments on SCTP set action
Fernando Fernandez Mancera <[email protected]>
net: openvswitch: skip IPv4 later fragments on TCP/UDP set actions
Linus Torvalds <[email protected]>
vhost: vringh: use get_user()/put_user() for IOTLB 16-bit accesses
Rob Herring (Arm) <[email protected]>
dt-bindings: clock: mediatek: Add MT8516 fallbacks
HyeongJun An <[email protected]>
ASoC: cs42l56: Remove the ADC Mute Switch control
Liang Hao <[email protected]>
timers: Clear pending_map on CPU hotplug
Karl Mehltretter <[email protected]>
rtc: class: Make the time32 hctosys limit configurable
Baek Kyu, Kim <[email protected]>
rtc: mpfs: Fix alarm register word order
James Hilliard <[email protected]>
net: stmmac: avoid duplicate XSK TX completions
Matthieu Baerts (NGI0) <[email protected]>
mptcp: options: dss: avoid printing uninit csum
Matthieu Baerts (NGI0) <[email protected]>
mptcp: options: mpc: avoid printing uninit data
Pengfei Zhang <[email protected]>
net: stmmac: xgmac: do not treat TBU as a TX event
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
Li RongQing <[email protected]>
block, bfq: initialize active lists for all actuators
Cen Zhang <[email protected]>
ALSA: aloop: Keep the timer source alive until card release
Tigran Mkrtchyan <[email protected]>
pNFS/flexfiles: make pg_init retry loops killable
Tigran Mkrtchyan <[email protected]>
nfsv4/pnfs: use the MDS authflavor for data server connections
Cen Zhang <[email protected]>
ALSA: pcm: Protect channel-map reads against runtime detach
Cen Zhang <[email protected]>
ALSA: pcm: Remove channel-map controls before freeing substreams
Cen Zhang <[email protected]>
ALSA: pcmtest: Pin the module while pattern files are open
Thomas Weißschuh <[email protected]>
nios2: ksyms: Declare __mulsi3 export
Sung Byeongchan <[email protected]>
netfilter: xt_dccp: handle reserved options as single-byte
Shuangfeng He <[email protected]>
netfilter: flowtable: use the vlan id, not the full tci, in the tuple key
Julian Anastasov <[email protected]>
ipvs: fix more races around the overload flag
Jérémy Jean <[email protected]>
netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset
Alok Tiwari <[email protected]>
octeontx2-af: Fix CQ enable state tracking after AQ writes
Cen Zhang <[email protected]>
ALSA: oss: Keep emulation modules loaded until object teardown
Cen Zhang <[email protected]>
ALSA: pcm: Protect the unregister notifier traversal
Qiliang Yuan <[email protected]>
selftests/bpf: Run the cpumask map insert tests only for the test task
Troy Mitchell <[email protected]>
dt-bindings: vendor-prefixes: Add Sensylink
Serhat Kumral <[email protected]>
RDMA/usnic: Bound buffer size to sizeof(buf) in flowinfo_read()
Zhiwei Zhang <[email protected]>
RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()
HyeongJun An <[email protected]>
ASoC: tlv320aic32x4: Fix definition of TAS2505 HP Driver Gain Volume control
Dmitry Torokhov <[email protected]>
ASoC: tlv320aic32x4: clean up driver code formatting and logging
Dmitry Torokhov <[email protected]>
ASoC: tlv320aic32x4: move regmap_config into i2c and spi drivers
Biju Das <[email protected]>
ASoC: tlv320aic32x4-spi: Simplify probe()
Biju Das <[email protected]>
ASoC: tlv320aic32x4-i2c: Simplify probe()
Biju Das <[email protected]>
ASoC: codec: tlv320aic32x4: Add enum aic32x4_type to aic32x4_probe()
HyeongJun An <[email protected]>
ASoC: codecs: sta350: Fix definition of limiter threshold controls
HyeongJun An <[email protected]>
ASoC: codecs: sta32x: Fix definition of limiter threshold controls
Serhat Kumral <[email protected]>
RDMA/srp: Avoid reading uninitialized has_port on srp_parse_in() failure
Leon Romanovsky <[email protected]>
RDMA/core: Reject LAG selection when source MAC lookup fails
Leon Romanovsky <[email protected]>
RDMA/core: Free unpublished port statistics after initial-read failure
Leon Romanovsky <[email protected]>
RDMA/core: Preserve the selected source GID on failed AH modification
Igor Velkov <[email protected]>
power: supply: gpio-charger: Report discharging without input power
Aleksandr Nogikh <[email protected]>
usb: gadget: dummy_hcd: prevent unbind via sysfs
Igor Skalkin <[email protected]>
usb: gadget: dummy_hcd: fix SuperSpeed ep0 maxpacket
Alexei Starovoitov <[email protected]>
bpf: Use memmove() to store bytes in an xdp_buff
Josef Bacik <[email protected]>
bpf: Use memmove() to store bytes in an skb
Josef Bacik <[email protected]>
bpf: Use the socket of a sk_lookup test run under RCU
Paul Chaignon <[email protected]>
bpf: Craft non-linear skbs in BPF_PROG_TEST_RUN
Paul Chaignon <[email protected]>
bpf: Reorder bpf_prog_test_run_skb initialization
Paul Chaignon <[email protected]>
bpf: Refactor cleanup of bpf_prog_test_run_skb
Mahe Tardy <[email protected]>
bpf: fix cgroup_skb prog test run direct packet access
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
Bjorn Andersson <[email protected]>
power: supply: qcom_battmgr: report full batteries
Alexei Starovoitov <[email protected]>
bpf: Don't take an extension for a writable raw tracepoint program
Josef Bacik <[email protected]>
bpf: Don't take an extension for an iterator program
Josef Bacik <[email protected]>
bpf: Don't bind a program to a netdev that goes away
Josef Bacik <[email protected]>
bpf: Fix stale offload->prog pointer after realloc
Josef Bacik <[email protected]>
bpf: Bound the nesting that the BTF show code follows
Alexei Starovoitov <[email protected]>
bpf: Clear sk_refcnt of a clone before its storage is linked
Josef Bacik <[email protected]>
bpf: Update the SRH state if End.B6 fails late
Josef Bacik <[email protected]>
bpf: Pull the inner header for End.DT6 in End.BPF
Josef Bacik <[email protected]>
bpf: Validate the SRH which End.DT6 uncovers in End.BPF
Josef Bacik <[email protected]>
bpf: Read the probe of a perf event under event_mutex
Tao Chen <[email protected]>
bpf: Add show_fdinfo for perf_event
Josef Bacik <[email protected]>
bpf: Don't let bpf_skb_adjust_room() use up the MSS
Jakub Sitnicki <[email protected]>
bpf: Make bpf_skb_adjust_room metadata-safe
Jakub Sitnicki <[email protected]>
net: Helper to move packet data and metadata after skb_push/pull
Joonhoe Kim <[email protected]>
power: supply: qcom_battmgr: report the USB type from USB_ADAP_TYPE
Jiayuan Chen <[email protected]>
bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields
Brad Fitzpatrick <[email protected]>
gre: keep the UDP tunnel GSO type when completing GRO
Joas Antonio dos Santos <[email protected]>
calipso: update payload_len when removing the CALIPSO option
HyeongJun An <[email protected]>
ASoC: codecs: sta350: Fix definition of Ch2 and Ch3 Volume Bypass controls
HyeongJun An <[email protected]>
ASoC: codecs: sta32x: Fix definition of Ch2 and Ch3 Volume Bypass controls
HyeongJun An <[email protected]>
ASoC: codecs: tlv320adc3xxx: Fix definition of AGC Target Level control
HyeongJun An <[email protected]>
ASoC: codecs: da732x: Fix definition of ADC2 EQ Overall Volume control
Sasha Levin <[email protected]>
ARC: Strip libgcc debug information when generating BTF
Piotr Gliźniewicz <[email protected]>
ALSA: 6fire: take stream_mutex in the Digital Thru control
Ömer Mete Kaya <[email protected]>
usbnet: fix smp_processor_id() use in preemptible context
Fabrice Derepas <[email protected]>
ima: reject a kexec buffer whose declared size exceeds the buffer
Tao Cui <[email protected]>
blk-iocost: account zone append completions in latency stats
Tao Cui <[email protected]>
blk-iocost: charge zone appends as writes
Yuan Chen <[email protected]>
bpftool: Fix inverted tracefs validation when scanning /proc/mounts
Matheus Alves de Almeida <[email protected]>
HID: wacom: fix wacom_intuos_irq NULL pen_input deref
Cen Zhang <[email protected]>
ALSA: vmaster: Protect follower lookup and setup
Qiliang Yuan <[email protected]>
selftests/bpf: Unmount the bpffs that cgroup_hierarchical_stats mounted
Qiliang Yuan <[email protected]>
selftests/bpf: Keep the bpffs of cgroup_hierarchical_stats private
Theodor Arsenij Larionov Trichkine <[email protected]>
net: use the full socket in sk_mc_loop()
George Melikov <[email protected]>
bnx2x: fix header length calculation for encapsulated TSO
Stefano Munari <[email protected]>
net: usb: lan78xx: reject invalid EEPROM write requests
Jérémy Jean <[email protected]>
macsec: prevent AES-GCM nonce reuse after packet number wrap
KaFai Wan <[email protected]>
selftests/bpf: Fix prog_tests framework subtest count checks
Donggeun Yoo <[email protected]>
tracing: Print a signed histogram key as signed
Atharva Vartak <[email protected]>
net/smc: hold a reference on net_device returned by pnet_find_base_ndev()
pengdonglin <[email protected]>
tracing: Avoid BTF lookup in atomic context
Donggeun Yoo <[email protected]>
tracing: Clamp the printed end of a histogram bucket at U64_MAX
Donggeun Yoo <[email protected]>
tracing: Only report the stacktrace modifier on a real field
Donggeun Yoo <[email protected]>
tracing: Print the bucket size as unsigned
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix ETDM probe error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix HDMI TX startup error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix ETDM startup error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix ETDM MCLK error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Propagate IRQ lookup errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix runtime resume error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Check paired MEMIF clock enable in FE trigger
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix FE startup error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix paired memif clock error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix main clock error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix timing system clock error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix register access clock error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8195: Fix tuner clock error handling
Amadeusz Sławiński <[email protected]>
ASoC: soc-component: Fix return type of snd_soc_pcm_component_pointer()
Amadeusz Sławiński <[email protected]>
ASoC: soc-ac97: Fix error handling in snd_soc_new_ac97_component()
Amadeusz Sławiński <[email protected]>
ASoC: ops: Fix return value in snd_soc_limit_volume()
Amadeusz Sławiński <[email protected]>
ASoC: soc-link: Correct stream stop operations in snd_soc_link_trigger
Hongbo Li <[email protected]>
ASoC: remove unused substream in macro soc_link_mark_pop
Abraham Zukor <[email protected]>
spi: tegra114: initialize native chip selects inactive
Sasha Levin <[email protected]>
selftests: keep the build status from wrapping to success
Michael Auer <[email protected]>
ASoC: qcom: sdm845: Disable the quaternary MI2S bit clock on shutdown
Robert Oscilowski <[email protected]>
ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format
Alexey Klimov <[email protected]>
ASoC: qcom: sdm845: add handling of secondary MI2S clock
Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Prevent module info underflow
Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Unprepare a stream when recovery occurs
Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Store pointer to link_stream in dma_data
Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Store pointer to adev in DAI dma_data
Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Remove redundancy around DAI shutdown
Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Relocate HDA BE DAI specific operations
Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Switch to new stream-format interface
Cezary Rojewski <[email protected]>
ALSA: hda: Upgrade stream-format infrastructure
Jaroslav Kysela <[email protected]>
ALSA: pcm: Introduce MSBITS subformat interface
Kuninori Morimoto <[email protected]>
ASoC: intel: avs: convert not to use asoc_xxx()
Jacob Moroni <[email protected]>
RDMA/irdma: Fix FRWR IRDMAQPSQ_PBLADDR field population
Serhat Kumral <[email protected]>
IB/rdmavt: Fix error unwind path for qp_priv_init() in rvt_create_qp()
Sasha Levin <[email protected]>
kselftest/arm64: signal: copy each test binary only once
Takashi Iwai <[email protected]>
ALSA: core: Serialize snd_refcount put and sync
Qiliang Yuan <[email protected]>
selftests/bpf: Create the vxlan devices of test_tunnel with their MAC
Jaewon Jung <[email protected]>
selftests/ftrace: Avoid unlink error on first run
Youngsung Ahn <[email protected]>
RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]
Honggang LI <[email protected]>
RDMA/rxe: Fix out-of-range unsigned-to-signed conversion for RDMA message in 2GiB size
xiongweimin <[email protected]>
RDMA/rxe: Hold netdev reference for transmit skbs
Bob Pearson <[email protected]>
RDMA/rxe: Let destroy qp succeed with stuck packet
Bob Pearson <[email protected]>
RDMA/rxe: Make rxe_loopback match rxe_send behavior
Youngsung Ahn <[email protected]>
RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]
Youngsung Ahn <[email protected]>
RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()
Youngsung Ahn <[email protected]>
RDMA/rxe: refuse to destroy a QP with type 2 MWs still bound
Sahaj Chaudhari <[email protected]>
spi: omap2-mcspi: handle DMA setup failures
Andy Shevchenko <[email protected]>
spi: omap2-mcspi: Use new spi_xfer_is_dma_mapped() helper
Andy Shevchenko <[email protected]>
spi: Introduce internal spi_xfer_is_dma_mapped() helper
Takashi Iwai <[email protected]>
ALSA: pcm: Add refcount for races between drain and unlink
Takashi Iwai <[email protected]>
ALSA: Add simple refcount helper functions
Zhu Ling <[email protected]>
irqchip/gic: Fix UBSAN shift-out-of-bounds in GIC helpers
Dawei Li <[email protected]>
irqchip/gic(v3): Replace gic_irq() with irqd_to_hwirq()
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
Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Clear vpt_page after freeing the pending table
David Howells <[email protected]>
rxrpc: Revert "rxrpc: rxperf: Fix missing decoding of terminal magic cookie"
Carolina Jubran <[email protected]>
IB/IPoIB: Cancel normal flush work on device stop
Sagi Maimon <[email protected]>
net: axienet: free outstanding TX buffers in axienet_dma_bd_release()
Kyrylo Biryuk <[email protected]>
ata: libahci: re-enable FBS after error handling on a port multiplier
Long Zhao <[email protected]>
dt-bindings: vendor-prefixes: add Ambarella
Xingui Yang <[email protected]>
scsi: hisi_sas: Fix incorrect delay values from magic-number cleanup
Xingui Yang <[email protected]>
scsi: libsas: Fix out-of-bounds memcpy() in sas_ssp_task_response()
Nicolai Buchwitz <[email protected]>
net/mlx5e: use skb_share_check() in the loopback selftest hook
Nicolai Buchwitz <[email protected]>
net: stmmac: selftests: use skb_share_check() in the loopback receive hook
Nicolai Buchwitz <[email protected]>
net: selftests: use skb_share_check() in the loopback receive hook
Cen Zhang <[email protected]>
Bluetooth: MSFT: Serialize handle map cleanup with event processing
Kiran K <[email protected]>
Bluetooth: btintel: Zero version data before parsing TLVs
Laxman Acharya Padhya <[email protected]>
Bluetooth: btintel: propagate version TLV parsing errors
Cen Zhang <[email protected]>
Bluetooth: hci_sync: Protect IRK identity reads with RCU
Cen Zhang <[email protected]>
Bluetooth: 6lowpan: Drain RCU readers on registration failure
Cen Zhang <[email protected]>
Bluetooth: msft: Lock failed probe cleanup against feature readers
Cen Zhang <[email protected]>
Bluetooth: MGMT: Reject quality report requests during unregister
Cen Zhang <[email protected]>
Bluetooth: ISO: Hold the listener during disconnect notification
Cen Zhang <[email protected]>
Bluetooth: hci_sync: Serialize devcoredump reset during device open
Cen Zhang <[email protected]>
Bluetooth: hci_core: Keep RCU protection through LTK filtering
Hitalo Souza <[email protected]>
Bluetooth: Add missing newline to bt_dev_{err,warn}_ratelimited()
Cen Zhang <[email protected]>
Bluetooth: 6LoWPAN: Use RCU-safe device list removal
Luiz Augusto von Dentz <[email protected]>
Bluetooth: MGMT: Fix leaking instance on Add Extended Advertising Parameters
Luiz Augusto von Dentz <[email protected]>
Bluetooth: MGMT: Fix pending state of instances added without HCI traffic
Kiran K <[email protected]>
Bluetooth: btusb: Preserve event and ACL packet ordering
Zijun Hu <[email protected]>
Bluetooth: btusb: Make btusb_recv_{event,acl}() take struct hci_dev *
Pauli Virtanen <[email protected]>
Bluetooth: L2CAP: hold chan in l2cap_ecred_conn_rsp()
Pauli Virtanen <[email protected]>
Bluetooth: L2CAP: hold l2cap_conn::lock in l2cap_connect_cfm()
Pauli Virtanen <[email protected]>
Bluetooth: L2CAP: take chan->lock for l2cap_chan_add/ready/del
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
Karl Mehltretter <[email protected]>
ARM: 9486/1: set !LPAE MAX_PHYSMEM_BITS to 32 and remove supersection mappings
Atul Akella <[email protected]>
rpmsg: virtio: fix error handling in TX buffer wait
Patrick Oppenlander <[email protected]>
rpmsg: virtio: EPOLLOUT support
Dr. David Alan Gilbert <[email protected]>
rpmsg: virtio: Remove uncallable offchannel functions
Avi Weiss <[email protected]>
rpmsg: mtk: release channel OF node on device teardown
HyeongJun An <[email protected]>
ASoC: codecs: wm8510: Fix definition of ADC Inversion Switch control
HyeongJun An <[email protected]>
ASoC: codecs: wm8750: Fix definition of ALC Capture NG Type control
HyeongJun An <[email protected]>
ASoC: codecs: wm5100: Fix definition of EQ3 Band 1 Volume control
HyeongJun An <[email protected]>
ASoC: codecs: wm8737: Fix definition of zero cross switches
HyeongJun An <[email protected]>
ASoC: codecs: wm_hubs: Fix definition of MIXINR to MIXOUTR volume control
HyeongJun An <[email protected]>
ASoC: codecs: wm8955: Fix definition of Treble Cutoff control
HyeongJun An <[email protected]>
ASoC: codecs: wm8994: Fix definition of WM8958 noise gate hold time controls
HyeongJun An <[email protected]>
ASoC: codecs: wm8985: Fix definition of ADC 128x Oversampling control
HyeongJun An <[email protected]>
ASoC: codecs: wm8983: Fix definition of ADC 128x Oversampling control
HyeongJun An <[email protected]>
ASoC: codecs: wm8991: Fix definition of LOMIX AINLMUX Bypass Volume control
HyeongJun An <[email protected]>
ASoC: codecs: wm8991: Fix definition of right input PGA controls
HyeongJun An <[email protected]>
ASoC: codecs: wm8990: Fix definition of LOMIX AINLMUX Bypass Volume control
HyeongJun An <[email protected]>
ASoC: codecs: wm8990: Fix definition of right input PGA controls
Tim Douglas <[email protected]>
serial: pmac_zilog: report received breaks
Karl Mehltretter <[email protected]>
serial: ma35d1: Do not force-enable an unselected console
Muhammad Bilal <[email protected]>
platform/x86: hp-bioscfg: fix oops on short integer attribute buffer
Muhammad Bilal <[email protected]>
platform/x86: hp-bioscfg: validate SPM state returned by firmware
Muhammad Bilal <[email protected]>
platform/x86: hp-bioscfg: fix off-by-one in password length check
Cen Zhang <[email protected]>
ALSA: pcm: Unlink substreams before releasing them
Johannes Berg <[email protected]>
wifi: cfg80211: track SSID regardless of country data
Julian Anastasov <[email protected]>
ipvs: fix buffer overflow when sending sync messages
Binbin Deng <[email protected]>
module: Fix uninitialized count read of unloaded taint tracking record
Karl Mehltretter <[email protected]>
thermal: ti-soc-thermal: Fix the return value in ti_bandgap_get_sensor_data() kernel-doc
Florian Fainelli <[email protected]>
tools/thermal/tmon: Fix string truncation warning in optarg copy
Weigang He <[email protected]>
thermal/drivers/sprd: validate the sensor id from the device tree
Takashi Iwai <[email protected]>
ALSA: usb-audio: Use fixed control index for us16x08 mixer elements
Cen Zhang <[email protected]>
ALSA: vmaster: Serialize hook registration with control callbacks
Takashi Iwai <[email protected]>
ALSA: line6: Use kzalloc() for PCM buffer allocation
Takashi Iwai <[email protected]>
ALSA: jack: Fix kctl free at error in snd_jack_kctl_new()
Amadeusz Sławiński <[email protected]>
ALSA: pcm: Fix driver_tstamp value reporting
Nguyen Ngoc Thang <[email protected]>
ocfs2: validate chunk and block counts of the local quota file
Joseph Qi <[email protected]>
ocfs2: fix possible deadlock between nfs_sync_rwlock and fs_reclaim
Joseph Qi <[email protected]>
ocfs2: retain all security xattrs during inode creation
Zhiling Zou <[email protected]>
lib: validate in-memory LZ4 chunk length
Karl Mehltretter <[email protected]>
sh: sh7785lcr: Register the PCA9564 controller as I2C bus 0
bui duc phuc <[email protected]>
ASoC: atmel-i2s: use optional API for gclk
bui duc phuc <[email protected]>
ASoC: atmel-i2s: use optional API for muxclk
bui duc phuc <[email protected]>
ASoC: atmel-i2s: fix MCK generator error handling
bui duc phuc <[email protected]>
ASoC: intel: atom: Fix .shutdown() being skipped on rollback
bui duc phuc <[email protected]>
ASoC: Intel: atom: Use scoped_guard() for scoped locking
bui duc phuc <[email protected]>
ASoC: intel: atom: Use __free(kfree) for stream pointer
bui duc phuc <[email protected]>
ASoC: imx-pcm-rpmsg: Fix imx_rpmsg_pcm_close() being skipped on rollback
bui duc phuc <[email protected]>
ASoC: atmel: atmel-pcm-pdc: Fix atmel_pcm_close() being skipped on rollback
bui duc phuc <[email protected]>
ASoC: amd: yc: Fix acp6x_pdm_dma_close() being skipped on rollback
bui duc phuc <[email protected]>
ASoC: amd: vangogh: Fix acp5x_dma_close() being skipped on rollback
bui duc phuc <[email protected]>
ASoC: amd: renoir: Fix acp_pdm_dma_close() being skipped on rollback
bui duc phuc <[email protected]>
ASoC: amd: raven: Fix acp3x_dma_close() being skipped on rollback
bui duc phuc <[email protected]>
ASoC: amd: ps: Fix acp63_sdw_dma_close() being skipped on rollback
bui duc phuc <[email protected]>
ASoC: amd: ps: Fix acp63_pdm_dma_close() being skipped on rollback
bui duc phuc <[email protected]>
ASoC: amd: acp: Fix .close() being skipped on rollback
Mingxuan Guo <[email protected]>
firmware: cs_dsp: clear dsp->running on the cs_dsp_run() error path
Yao Sang <[email protected]>
nvme: pass partition flags to passthrough checks
Sung Byeongchan <[email protected]>
nvmet-auth: reject undersized AUTH_SEND payloads
Palla Raghunath <[email protected]>
nvmet-fc: don't drop the last assoc reference in nvmet_fc_delete_ctrl()
Surabhi Gogte <[email protected]>
nvme-tcp: store and use the caller's network namespace
Peijie Shao <[email protected]>
nvme-tcp: fix selinux denied when calling sock_sendmsg
Keith Busch <[email protected]>
nvme: tcp: split controller bringup handling
Heiko Carstens <[email protected]>
s390/uprobes: Fix off-by-one bug in emulated PER handling
Konrad Dybcio <[email protected]>
clk: qcom: rcg2: Clear force enable after rate failure
Konrad Dybcio <[email protected]>
clk: qcom: rcg2: Propagate force-enable status errors
Konrad Dybcio <[email protected]>
clk: qcom: rcg2: Initialize shared floor clock state
Abel Vesa <[email protected]>
clk: qcom: mmcc-msm8960: Configure PLL15 only on APQ8064
Rob Herring <[email protected]>
clk: Use device_get_match_data()
Abel Vesa <[email protected]>
clk: qcom: mmcc-sdm660: Fix MDSS AHB clock HWCG register offset
Abel Vesa <[email protected]>
clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset
Yuho Choi <[email protected]>
bus: arm-cci: Drop cci-control-port node reference in __cci_ace_get_port()
Yuho Choi <[email protected]>
bus: arm-cci: Drop CPU node reference in cci_ace_init_ports()
Linkai Gong <[email protected]>
char: scx200_gpio: check cdev_add() return value
Weigang He <[email protected]>
thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove
Yogesh Gaur <[email protected]>
comedi: pcmuio: validate the IRQs supplied by userspace
Yogesh Gaur <[email protected]>
comedi: pcmmio: validate the IRQ supplied by userspace
Yogesh Gaur <[email protected]>
comedi: dmm32at: validate the IRQ supplied by userspace
Yogesh Gaur <[email protected]>
comedi: dt2814: validate the IRQ supplied by userspace
Yogesh Gaur <[email protected]>
comedi: ni_atmio16d: validate the IRQ supplied by userspace
Yogesh Gaur <[email protected]>
comedi: comedi_parport: validate the IRQ supplied by userspace
Thomas Fourier <[email protected]>
net: alacritech: fix dma_free_coherent() in error path
Tapio Reijonen <[email protected]>
serial: max310x: don't power down the port mid-transmission on close
Tapio Reijonen <[email protected]>
serial: max310x: fix RS485 delays being programmed as bit-times
Tapio Reijonen <[email protected]>
serial: max310x: centralize the RS485 transceiver programming
Tapio Reijonen <[email protected]>
serial: max310x: fix breaks not reaching the wire in RS485 mode
Hugo Villeneuve <[email protected]>
serial: max310x: use common power function for all variants
Hugo Villeneuve <[email protected]>
serial: max310x: use common detect function for all variants
Hugo Villeneuve <[email protected]>
serial: max310x: simplify probe() and remove() error handling
Hugo Villeneuve <[email protected]>
serial: max310x: remove holes in struct max310x_devtype
Hugo Villeneuve <[email protected]>
serial: max310x: remove trailing whitespaces
Tapio Reijonen <[email protected]>
serial: max310x: don't clobber the TX break bit in set_termios
Jiayuan Chen <[email protected]>
tcp_cubic: fix divide by zero and endless loop on bad module params
Jiayuan Chen <[email protected]>
tcp_hybla: fix divide by zero on rtt0 == 0
Jiayuan Chen <[email protected]>
tcp_bic: fix divide by zero on max_increment == 0
Jeff Chen <[email protected]>
wifi: mwifiex: append hotfix number to firmware version string
Chien Wong <[email protected]>
wifi: mac80211: reserve MME tailroom for protected beacons
Chien Wong <[email protected]>
wifi: mac80211: fix encryption tailroom
Yonatan Nachum <[email protected]>
RDMA/efa: Fix race between admin command timeout and completion
Haitam Lazaar <[email protected]>
RDMA/siw: Enforce IB_ACCESS_REMOTE_READ for read responses
Luca Leonardo Scorcia <[email protected]>
clocksource/drivers/timer-mediatek: Fix random crash at boot
Joas Antonio dos Santos <[email protected]>
calipso: hash the cache key, not the option start, in calipso_cache_add()
Manivannan Sadhasivam <[email protected]>
PCI: qcom: Honor IOMMU provider's #iommu-cells in qcom_pcie_config_sid_1_9_0()
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
Daasaradhi Mannava <[email protected]>
platform/x86: msi-ec: Report valid charge thresholds when unset
Ahmed Yaseen <[email protected]>
platform/x86: asus-wmi: validate custom fan curves on enable
Cen Zhang <[email protected]>
ALSA: jack: Remove debugfs before freeing unregistered jacks
Dan Carpenter <[email protected]>
mm/hmm/test: reject overflowing page counts
Jiale Yao <[email protected]>
wifi: ath12k: avoid IDR mutation during vif mgmt TX cleanup
Jiale Yao <[email protected]>
wifi: ath11k: avoid IDR mutation during vif mgmt TX cleanup
Jiale Yao <[email protected]>
wifi: ath11k: avoid IDR mutation during pending mgmt TX cleanup
Jiale Yao <[email protected]>
wifi: ath10k: avoid IDR mutation during TX cleanup
Kunwu Chan <[email protected]>
rcutorture: Fix divide-by-zero with fwd_progress_div=1
bui duc phuc <[email protected]>
ASoC: codecs: rt5659: propagate GPIO errors
Roberto Bergantinos Corpas <[email protected]>
nfs: set gencount on protocol-specific remove
Haotian Zhang <[email protected]>
mtd: rawnand: pl353: fix clk reference leak in pl35x_nfc_setup_interface()
bui duc phuc <[email protected]>
power: supply: generic-adc-battery: Propagate charged GPIO errors
Filipe Manana <[email protected]>
btrfs: defrag: fix check to see if next extent can be defragged too
Filipe Manana <[email protected]>
btrfs: qgroup: fix swapped blocks existence check when tracing after COW
Qu Wenruo <[email protected]>
btrfs: qgroup: do not treat "ret > 0" as error when deleting a qgroup
Filipe Manana <[email protected]>
btrfs: fix incomplete iteration over fs state when logging messages
Johannes Thumshirn <[email protected]>
btrfs: zoned: fix double list add in btrfs_load_block_group_zone_info
Filipe Manana <[email protected]>
btrfs: fix dangling nodes in tree-mod-log after error in btrfs_tree_mod_log_insert_root()
Filipe Manana <[email protected]>
btrfs: fix off by one super block end offset calculation when writing super blocks
Qu Wenruo <[email protected]>
btrfs: refactor read_key_bytes() to remove the dest_folio parameter
Li Zetao <[email protected]>
btrfs: convert read_key_bytes() to take a folio
Tal Zussman <[email protected]>
block: honor IOCB_NOWAIT in the block device buffered read path
Tal Zussman <[email protected]>
block: use iomap_dirty_folio for block devices
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
Mikulas Patocka <[email protected]>
dm-snapshot: make the chunk list sorted by the chunk number
Yuan Chen <[email protected]>
bpftool: Fix out-of-bounds read in kprobe_multi link info dump
Prathamesh Deshpande <[email protected]>
RDMA/mlx5: Cancel software CQ notifications before teardown
Mark Zhang <[email protected]>
RDMA/mlx5: Support driver APIs pre_destroy_cq and post_destroy_cq
Prathamesh Deshpande <[email protected]>
RDMA/mlx5: Cancel deferred page-fault EQ work before teardown
Anup Vishwakarma <[email protected]>
mailbox: qcom-ipcc: remove stray disable_irq_wake() call
Linkai Gong <[email protected]>
mailbox: arm_mhuv2: time out if the receiver never comes up
Beleswar Padhi <[email protected]>
mailbox: ti-msgmgr: Read exact number of trailing message bytes
Breno Leitao <[email protected]>
mailbox: pcc: Free the channel before unmapping the shared memory
Sang-Hoon Choi <[email protected]>
xhci: dbc: lock the minor IDR on registration failure
Kees Cook <[email protected]>
kbuild: Mark the initcall ordering recipe as recursive
Maxim Skokov <[email protected]>
bpf: test_run: Fix false -EBADMSG after skb leaves CHECKSUM_COMPLETE
Takashi Iwai <[email protected]>
ALSA: hda: Add NULL check for the driver pointer at unsol event work
Ting-Han Hou <[email protected]>
clang-tools: Import os for broken pipe handling
Leon Romanovsky <[email protected]>
PCI/P2PDMA: Gate the host bridge whitelist warning on verbose
Leon Romanovsky <[email protected]>
PCI/P2PDMA: Safely terminate ACS redirect lists
Antoni Pokusinski <[email protected]>
rtc: abx80x: properly handle shared IRQs
Antoni Pokusinski <[email protected]>
rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()
Leo Cheng <[email protected]>
nvmem: layouts: onie-tlv: fix device_node reference leak in error path
Leo Cheng <[email protected]>
nvmem: layouts: sl28vpd: fix device_node reference leak in error path
Felix Fietkau <[email protected]>
wifi: mac80211: use link address as TA for non-MLO 4-addr station on MLD AP
Johannes Berg <[email protected]>
wifi: cfg80211: reg: protect regdb pointer with RCU
Jamal Hadi Salim <[email protected]>
net: rtnl: introduce rcu_replace_pointer_rtnl
Randy Dunlap <[email protected]>
wifi: cfg80211: fix header kernel-doc typos
Johannes Berg <[email protected]>
wifi: mac80211: fix mbssid/rnr allocation in beacon data
Aloka Dixit <[email protected]>
wifi: mac80211: remove redundant null check in ieee80211_assign_beacon()
Johannes Berg <[email protected]>
wifi: mac80211: init radiotap iter after length checks
Johannes Berg <[email protected]>
wifi: mac80211: kill wake_txqs_tasklet on unregistration
Johannes Berg <[email protected]>
wifi: mac80211: mesh: use hlist_add_head_rcu()
Johannes Berg <[email protected]>
wifi: mac80211: clear fragment cache entry 'is_protected'
Johannes Berg <[email protected]>
wifi: ath6kl: don't take RTNL in del_virtual_intf
Takashi Iwai <[email protected]>
ALSA: hda: intel: Cancel delayed work at shutdown, too
Takashi Iwai <[email protected]>
ALSA: line6: Fix potential OOB write in line6_capture_copy()
Takashi Iwai <[email protected]>
ALSA: line6: Reject too small max packet sizes
Takashi Iwai <[email protected]>
ALSA: caiaq: Fix races at MIDI URB and trigger accesses
Jan Beulich <[email protected]>
x86/PVH: don't truncate initrd address/size
Gui-Dong Han <[email protected]>
xen/blkback: Prevent missed completion when draining I/O
Ruoyu Wang <[email protected]>
xen/pcifront: Fix PCI device reference leak in AER handling
Haotian Zhang <[email protected]>
cpufreq: qcom-cpufreq-hw: fix device node refcount leak in phandle parsing
Jake Labelle <[email protected]>
nilfs2: reject non-regular inodes in dsync recovery
Rosen Penev <[email protected]>
crypto: talitos - init tasklets before requesting IRQs
Rosen Penev <[email protected]>
crypto: talitos - Use platform_get_irq() to retrieve interrupt
Rosen Penev <[email protected]>
crypto: talitos - use devm_platform_ioremap_resource()
Rosen Penev <[email protected]>
crypto: talitos - allocate channels with main struct
Takashi Iwai <[email protected]>
ALSA: hda: Avoid non-operational GPU warning at regular device removal
Takashi Iwai <[email protected]>
ALSA: info: Fix memory leak at card removal
Takashi Iwai <[email protected]>
ALSA: info: Use guard() for locking
Takashi Iwai <[email protected]>
ALSA: seq: Fix missing direction and ump_group handling in 32bit compat ioctl
Takashi Iwai <[email protected]>
ALSA: seq: core: Use automatic cleanup of kfree()
Takashi Iwai <[email protected]>
ALSA: core: Add missing barriers for power_ref vs card->shutdown
Takashi Iwai <[email protected]>
ALSA: core: Remove superfluous CONFIG_PM
Takashi Iwai <[email protected]>
ALSA: usb-audio: Fix invalid UAC2/3 mixer unit matrix evaluation
Takashi Iwai <[email protected]>
ALSA: usb-audio: Check mixer matrix size for UAC2/3 at parsing
Takashi Iwai <[email protected]>
ALSA: hda: Fix potential UAF for gating jack
Krzysztof Wilczyński <[email protected]>
PCI/sysfs: Handle a malformed _DSM result in acpi_attr_is_visible()
Krzysztof Wilczyński <[email protected]>
PCI/sysfs: Stop reporting _DSM failures as -EPERM
bui duc phuc <[email protected]>
ASoC: mediatek: mt8188: Handle constraint return value in FE startup
bui duc phuc <[email protected]>
ASoC: mediatek: common: Handle constraint return value in FE startup
Melissa Wen <[email protected]>
drm/amd/display: use right type for amdgpu_dc_performance event entries
Melissa Wen <[email protected]>
drm/amd/display: fix vready offset assignment in dcn_optc_lock_unlock_state
Melissa Wen <[email protected]>
drm/amd/display: remove duplicated prev_p_state_change_support assignment
Melissa Wen <[email protected]>
drm/amd/display: assign missing trace entry in amdgpu_dm_dc_clocks_state
Ting-Han Hou <[email protected]>
checkkconfigsymbols.py: Parse Git status output line by line
Karl Mehltretter <[email protected]>
kobject: Fix the kobj_set_name reference in kset_register() kernel-doc
bui duc phuc <[email protected]>
ASoC: rockchip: rockchip_i2s: Handle runtime PM resume failures in set_fmt
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: fix PLE free page and AC queue register offsets
Cristian Papa <[email protected]>
wifi: mt76: feed the station RSSI average from the chain signals
Pengpeng Hou <[email protected]>
wifi: mt76: mt7615: validate MCU response lengths
Ahmed Naseef <[email protected]>
wifi: mt76: mt7615: read MT7663 temperature from the correct offset
Ryan Leung <[email protected]>
wifi: mt76: fix wcid->pktid corruption in mt76_wcid_cleanup()
Cristian Papa <[email protected]>
wifi: mt76: mt7603: don't drop short frames looped back on PS entry
Jiale Yao <[email protected]>
wifi: mt76: mt7615: usb: fix source overread in mt7663u_copy
Jiale Yao <[email protected]>
wifi: mt76: usb: fix source overread in mt76u_copy
Jiale Yao <[email protected]>
wifi: mt76: mt76x02: validate RX padding before use
Ryan Leung <[email protected]>
wifi: mt76: fix wcid teardown ordering in mt76_reset_device()
Ryan Leung <[email protected]>
wifi: mt76: fix unlocked wcid check in mt76_tx_status_skb_add()
Devin Wittmayer <[email protected]>
wifi: mt76: mt7921: fix the lock inversion in suspend and resume
Devin Wittmayer <[email protected]>
wifi: mt76: mt7921: check drv_pmctrl return in the PCIe reset path
Devin Wittmayer <[email protected]>
wifi: mt76: mt7921: fix lock inversion between dev->mutex and iflist_mtx
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: guard firmware memory dump write on disabled memdump
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: unregister thermal cooling device on hwmon failure
Jinjie Ruan <[email protected]>
wifi: mt76: Use PTR_ERR_OR_ZERO() to simplify code
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: validate firmware event lengths before parsing
Benjamin Lin <[email protected]>
wifi: mt76: mt7996: switch to mcu command for TX GI report
Yi-Chia Hsieh <[email protected]>
wifi: mt76: mt7996: Add mcu commands for getting sta tx statistic
Deren Wu <[email protected]>
wifi: mt76: connac: add more unified event IDs
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: check default EEPROM firmware size before copying
Jiale Yao <[email protected]>
pinctrl: sprd: free maps on DT map failure
Leizhen Zhang <[email protected]>
gen_init_cpio: stop parsing on lines with a missing argument list
Takashi Iwai <[email protected]>
ALSA: caiaq: Allow zero-length packet handling for EP1
Priyank Rathod <[email protected]>
PCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices()
Robert Richter <[email protected]>
PCI/AER: Forward RCH downstream port-detected errors to the CXL.mem dev handler
Joseph Qi <[email protected]>
ocfs2: reject inconsistent xattr bucket during defrag
Joseph Qi <[email protected]>
ocfs2: allow xattr bucket entries to span multiple blocks
Wilson Felipe Pereira <[email protected]>
init/main: fix false-positive kernel panic on environment variable overwrite
Wilson Felipe Pereira <[email protected]>
init/main: fix off-by-one in argv_init cleanup
Florian Schmaus <[email protected]>
selftests/epoll: fix race condition in multi-waiter wakeup tests
Joseph Qi <[email protected]>
ocfs2: fix deadlock in inline-data truncate transactions
Petr Vorel <[email protected]>
checkpatch: skip CamelCase cache for --no-tree without root
Ryusuke Konishi <[email protected]>
nilfs2: fix link count underflow when removing corrupted directory
Marc Kleine-Budde <[email protected]>
spi: spi-sun4i: sun4i_spi_handler(): fix race condition between transfer completion and RX FIFO interrupt
Marc Kleine-Budde <[email protected]>
spi: spi-sun4i: sun4i_spi_transfer_one(): fix setting of clock rate
Wolfram Sang <[email protected]>
spi: sun4i: use 'time_left' variable with wait_for_completion_timeout()
Marc Kleine-Budde <[email protected]>
spi: spi-sun4i: sun4i_spi_fill_fifo(): always apply A10 FIFO fill level workaround
Marc Kleine-Budde <[email protected]>
spi: spi-sun4i: sun4i_spi_transfer_one(): fix transfers for SUN4I_FIFO_DEPTH
Linus Walleij <[email protected]>
dt-bindings: dma: dma40: Restore disabled-channels
Jason Gunthorpe <[email protected]>
efi/riscv: libstub: Don't set image_size in handle_kernel_image()
Jason Gunthorpe <[email protected]>
efi/libstub: Fix error unwind freeing fdt in allocate_new_fdt_and_exit_boot()
Pengpeng Hou <[email protected]>
sh: defconfig: Enable the current M66592 UDC symbol
Florian Fuchs <[email protected]>
sh: uaccess: Require offsettable operands for 64-bit user access
Aurelien Jarno <[email protected]>
riscv: fix RVG_SYSTEM_CSR_MASK width mask
Eric Dumazet <[email protected]>
ipv4: reserve one IP ID per segment for UDP GSO packets
Eric Dumazet <[email protected]>
inet: implement lockless IP_MTU_DISCOVER
Eric Dumazet <[email protected]>
inet: implement lockless IP_MULTICAST_TTL
Eric Dumazet <[email protected]>
ipv4: fix IP ID reuse in ip_select_ident_segs()
Chen-Yu Tsai <[email protected]>
arm64: dts: allwinner: sun50i-h6: Add missing IOMMU for video engine
Chen-Yu Tsai <[email protected]>
arm64: dts: allwinner: sun50i-h6: Add missing SRAM region for video engine
Mike Snitzer <[email protected]>
pNFS/flexfiles: don't reset to MDS for v4 error when previous layout forbid it
Mike Snitzer <[email protected]>
pNFS/flexfiles: don't read through MDS when previous layout forbid it
Mike Snitzer <[email protected]>
pNFS/flexfiles: honor FF_FLAGS_NO_IO_THRU_MDS over the mdsthreshold hint
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate memcpy configuration
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate fixed physical channel indexes
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix V4B event group mapping
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix event group bounds
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix logical channel bounds check
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Reject direction changes after allocation
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate DMA specifier length
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Validate disabled channel indexes
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix memcpy channel parsing
Rosen Penev <[email protected]>
dmaengine: ste_dma40: turn d40_base phy_chans into a flexible array
Linus Walleij <[email protected]>
dmaengine: ste_dma40: 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: 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: Fix failed start cleanup
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix physical cyclic capability
Roman Demidov <[email protected]>
drm/msm/a6xx: fix use-after-free of OPP in a6xx_pm_resume
Guangshuo Li <[email protected]>
floppy: unregister platform device on add_disk failure
Yang Xiuwei <[email protected]>
floppy: avoid NULL deref in reset_interrupt when cont is cleared
Karl Mehltretter <[email protected]>
floppy: flush pending work before releasing resources on init failure
Jérémy Jean <[email protected]>
NFS: filelayout: calculate dense stripe width in 64 bits
Chuck Lever <[email protected]>
SUNRPC: treat every client-side TLS error alert as fatal
Chuck Lever <[email protected]>
SUNRPC: reject a client-side TLS alert record that is not two octets
Logan Gunthorpe <[email protected]>
dmaengine: plx_dma: fix NULL pointer deref in plx_dma_isr()
Logan Gunthorpe <[email protected]>
dmaengine: ioat: disable relaxed ordering before registering the device
Aloka Dixit <[email protected]>
Revert "wifi: mac80211: do not use old MBSSID elements"
Dan Carpenter <[email protected]>
wifi: carl9170: NUL terminate string in debugfs
Dan Carpenter <[email protected]>
wifi: b43legacy: debugfs: NUL terminate string in debugfs
Dan Carpenter <[email protected]>
wifi: b43: don't pass unterminated string to sscanf()
Dominic White <[email protected]>
wifi: cfg80211: allow zero HE OBSS PD offsets
Xueqin Luo <[email protected]>
cpufreq: sti: avoid NULL dereference in dev_err()
Xueqin Luo <[email protected]>
cpufreq: tegra194: fix double-pointer error in get_cpu_ndiv
Xueqin Luo <[email protected]>
cpufreq: sparc-us2e: fix frequency table index copy-paste error
hpp.iscas <[email protected]>
perf/marvell: cn10k_tad: Publish the OF module alias
Hongyan Xu <[email protected]>
ASoC: mt6359-accdet: manage private workqueues with devres
Yaozhong Li <[email protected]>
arm64: dts: rockchip: disable unused i2s0 on rk3399-firefly
Yaozhong Li <[email protected]>
arm64: dts: rockchip: fix analog headphone output on rk3399-firefly
Detlev Casanova <[email protected]>
arm64: dts: rockchip: Rename rk3566 and rk3568 HDMI audio cards
Dragan Simic <[email protected]>
arm64: dts: rockchip: Prepare RK356x SoC dtsi files for per-variant OPPs
Dragan Simic <[email protected]>
arm64: dts: rockchip: Update CPU OPP voltages in RK356x SoC dtsi
Dragan Simic <[email protected]>
arm64: dts: rockchip: Update GPU OPP voltages in RK356x SoC dtsi
Dragan Simic <[email protected]>
arm64: dts: rockchip: Add GPU OPP voltage ranges to RK356x SoC dtsi
Dragan Simic <[email protected]>
arm64: dts: rockchip: Add cache information to the SoC dtsi for RK356x
Linus Walleij <[email protected]>
ARM: dts: ux500: Use AB8505 charger compatible
Detlev Casanova <[email protected]>
arm64: dts: rockchip: Rename rk3328 HDMI audio card
Jiale Yao <[email protected]>
ASoC: rt722-sdca: always cancel jack work on remove
Jiale Yao <[email protected]>
ASoC: rt712-sdca: always cancel jack work on remove
Jiale Yao <[email protected]>
ASoC: rt711-sdca: always cancel jack work on remove
Jiale Yao <[email protected]>
ASoC: rt711-sdw: always cancel jack work on remove
Jiale Yao <[email protected]>
ASoC: rt5682-sdw: always cancel jack work on remove
Linus Walleij <[email protected]>
power: supply: ab8500_fg: Avoid reserved AB8505 CCConf bit
Linus Walleij <[email protected]>
power: supply: ab8500_fg: Finalize current measurements
Linus Walleij <[email protected]>
power: supply: ab8500_charger: Recover inactive AB8505 charger
Linus Walleij <[email protected]>
power: supply: ab8500_charger: Retry AB8505 USB detection
Linus Walleij <[email protected]>
power: supply: ab8500_charger: Skip absent AB8505 main charger
Linus Walleij <[email protected]>
power: supply: ab8500_charger: Handle detection errors
Linus Walleij <[email protected]>
power: supply: ab8500_charger: Respect AB8505 register layout
Linus Walleij <[email protected]>
power: supply: ab8500_charger: Decode AB8505 USB status
Linus Walleij <[email protected]>
power: supply: ab8500_charger: Fix AC charger re-enable
Linus Walleij <[email protected]>
power: supply: ab8500: Preserve battery termination current
Linus Walleij <[email protected]>
power: supply: ab8500_btemp: Fix event temperature reporting
HyeongJun An <[email protected]>
selftests/alsa: Do not take another control's event as our own
Guangshuo Li <[email protected]>
spi: bcm63xx-hsspi: Disable runtime PM on remove
Guangshuo Li <[email protected]>
spi: fsl: unmap immr_spi_cs on remove
Johan Hovold <[email protected]>
spi: fsl: switch to managed controller allocation
Dave Jiang <[email protected]>
perf/cxl: Clear stale overflow status before using a counter
Dave Jiang <[email protected]>
perf/cxl: Don't log through pmu.dev in the overflow interrupt handler
Dave Jiang <[email protected]>
perf/cxl: Validate the hardware-reported counter width
Dave Jiang <[email protected]>
perf/cxl: Unfreeze counters after handling an overflow interrupt
Dave Jiang <[email protected]>
perf/cxl: Don't share the overflow interrupt, and keep it pinned
Dave Jiang <[email protected]>
perf/cxl: Accept an overflow interrupt on MSI message number 0
Dave Jiang <[email protected]>
perf/cxl: Fix the counter overflow delta fixup
Dave Jiang <[email protected]>
perf/cxl: Clear stale event fields before reprogramming a counter
Luo Jie <[email protected]>
bitfield: Add FIELD_MODIFY() helper
Dave Jiang <[email protected]>
perf/cxl: Program the requested event group on configurable counters
Jan Stancek <[email protected]>
.gitignore: drop Module.markers
Linus Walleij <[email protected]>
dt-bindings: power: supply: ab8500: Add AB8505 charger
Chen-Yu Tsai <[email protected]>
dt-bindings: media: sun4i-a10-video-engine: Fix IOMMU count for H6
Linkai Gong <[email protected]>
clk: imx: composite-93: return timeout from gate enable
Li Youhong <[email protected]>
md/raid5: drain released_stripes before destroying the cache
Nguyen Ngoc Thang <[email protected]>
md: take reconfig_mutex when enabling PPL on an inactive array
Laurence Oberman <[email protected]>
scsi: st: Record the tape position after a successful MTLOAD
Laurence Oberman <[email protected]>
scsi: st: Restore changed drive settings after reset also for MTLOAD and MTRETEN
Niklas Cassel <[email protected]>
scsi: scsi_debug: Refuse a negative physblk_exp
Akash Sukhavasi <[email protected]>
phy: HiSilicon: Fix error handling in hi3670_pcie_allclk_ctrl()
Joonhoe Kim <[email protected]>
drm/msm/dpu: compute the CRTC bandwidth from the state being checked
Dmitry Baryshkov <[email protected]>
drm/msm/dpu: handle perf mode in _dpu_core_perf_crtc_update_bus()
Dmitry Baryshkov <[email protected]>
drm/msm/dpu: drop core_clk_rate overrides from _dpu_core_perf_calc_crtc
Dmitry Baryshkov <[email protected]>
drm/msm/dpu: make fix_core_ab_vote consistent with fix_core_ib_vote
Dmitry Baryshkov <[email protected]>
drm/msm/dpu: change ib values to u32
Dmitry Baryshkov <[email protected]>
drm/msm/dpu: extract bandwidth aggregation function
Joonhoe Kim <[email protected]>
drm/msm/dpu: disable the slave encoder before the master
Oleg Keri <[email protected]>
drm/msm/dp: don't report link training success after a reinit
Yuho Choi <[email protected]>
soc/tegra: flowctrl: Release OF node reference on error
Igor Velkov <[email protected]>
arm64: dts: amlogic: meson-sm1-odroid-hc4: run the SPI NOR at 40 MHz
Igor Velkov <[email protected]>
arm64: dts: amlogic: meson-sm1-odroid-hc4: mux the SPI NOR HOLD# and WP# pins
Yuri Zaporozhets <[email protected]>
ASoC: dwc: Use OF match data again for StarFive JH7110
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
Takashi Iwai <[email protected]>
ALSA: ump: Avoid dereference with max_src_size=0
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
Karl Mehltretter <[email protected]>
crypto: atmel - handle authenc requests without plaintext
Bartosz Szpila <[email protected]>
platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data
Hemanth Selam <[email protected]>
nvdimm/pmem: Release gendisk on probe failure
Mikko Perttunen <[email protected]>
drm/tegra: Drop reference on postfence
Mikko Perttunen <[email protected]>
drm/tegra: Don't pass an ERR_PTR to drm_syncobj_replace_fence()
Mikko Perttunen <[email protected]>
drm/tegra: Fix syncobj_in wait return value check
Chuanhong Guo <[email protected]>
pinctrl: mediatek: mt7629: fix the 2.4 GHz Wi-Fi pin mode array
Mario Limonciello <[email protected]>
cpufreq: amd-pstate: Propagate cppc_set_auto_sel() errors on mode change
Mario Limonciello <[email protected]>
cpufreq: amd-pstate: Restore previous mode when changing driver mode fails
Mario Limonciello <[email protected]>
cpufreq/amd-pstate: Export symbols for changing modes
Arnd Bergmann <[email protected]>
cpufreq: amd-pstate: remove global header file
Perry Yuan <[email protected]>
cpufreq: amd-pstate: Add quirk for the pstate CPPC capabilities missing
Perry Yuan <[email protected]>
cpufreq: amd-pstate: Unify computation of {max,min,nominal,lowest_nonlinear}_freq
Meng Li <[email protected]>
cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically
Yichong Chen <[email protected]>
debugfs: make debugfs_create_str() read-only
Linkai Gong <[email protected]>
misc: enclosure: fix UAF on device_register() failure
Omar Ramadan <[email protected]>
amt: pull the AMT header behind the transport header in amt_parse_type()
Yuya Kusakabe <[email protected]>
seg6: fix HMAC validation when an extension header precedes the SRH
Hangbin Liu <[email protected]>
ipv6: sr: restruct ifdefines
Weigang He <[email protected]>
ARM: vexpress: fix device_node refcount leak in vexpress_smp_dt_prepare_cpus()
Weigang He <[email protected]>
ARM: vexpress: fix device_node refcount leak in vexpress_flags_set()
Liu Dalin <[email protected]>
rtc: ftrtc010: fix clock resource leak on probe failure
André Draszik <[email protected]>
rtc: ftrtc010: drop needless struct ftrtc010_rtc::rtc_dev member
Ze Huang <[email protected]>
drm/imx/lcdc: avoid duplicate clk_per enable
Karl Mehltretter <[email protected]>
OPP: Fix the return value in dev_pm_opp_get_of_node() kernel-doc
Lucas Costa <[email protected]>
staging: sm750fb: free cmap on framebuffer release
Dmitry Baryshkov <[email protected]>
drm/msm/mdp5: drop cursor pipe for msm8x76
Krzysztof Kozlowski <[email protected]>
dt-bindings: display/msm: hdmi: Correct name of disallowed supplies
Krzysztof Kozlowski <[email protected]>
drm/msm: Properly handle msm_ioremap() without name
Przemek Kitszel <[email protected]>
ice: skip stats handling for channel VSIs on rebuild
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
Danish Khateeb <[email protected]>
tools/nolibc: check for overflow in malloc()
Danish Khateeb <[email protected]>
tools/nolibc: stop rounding malloc() sizes up to 4096 bytes
Andreas Kemnade <[email protected]>
rtc: bd70528: properly enable wakeup
Nguyễn Văn Cao Nguyên <[email protected]>
RDMA/irdma: Do not move a fresh RoCE QP to ERROR on RESET
Nicolas Schier <[email protected]>
kconfig: tests: Provide defconfig outfile for savedefconfig
Wentao Liang <[email protected]>
pinctrl: stm32: Fix clock reference leak in stm32_pctl_probe()
Hongyan Xu <[email protected]>
RDMA/hfi1: quiesce SDMA asynchronous cleanup on exit
Hongyan Xu <[email protected]>
RDMA/hfi1: shut down the trap timer before unregistering
Serhat Kumral <[email protected]>
RDMA/siw: Fix length of first chunk in siw_try_1seg()
Quanye Yang <[email protected]>
RDMA/rtrs-clt: Validate peer-supplied IO completion msg_id
Alireza Haghdoost <[email protected]>
perf symbols: Don't let a module's last symbol overlap the next module
Qingshuang Fu <[email protected]>
selftests/timers: clocksource-switch: Fix unchecked open()/read()
Abdifatah Suruur <[email protected]>
vfio/cdx: prevent read-only region mappings from becoming writable
Abdifatah Suruur <[email protected]>
vfio/fsl-mc: prevent read-only region mappings from becoming writable
Abdifatah Suruur <[email protected]>
vfio/platform: prevent read-only region mappings from becoming writable
Quanye Yang <[email protected]>
RDMA/rtrs-clt: Don't WARN on unexpected info-response opcode
Karl Mehltretter <[email protected]>
time: Prevent time64_to_tm() day truncation on 32-bit
Jiale Yao <[email protected]>
RDMA/cxgb4: Do not allow userspace to write the status page
Anumula Murali Mohan Reddy <[email protected]>
RDMA/cxgb4: use dma_mmap_coherent() for mapping non-contiguous memory
Jiale Yao <[email protected]>
RDMA/mlx4: Do not allow the user to write to the clock page
Jiale Yao <[email protected]>
RDMA/mad: Reject receive completions shorter than GRH
Quanye Yang <[email protected]>
RDMA/rtrs-clt: Reject invalid queue_depth from the peer
Yili Zhang <[email protected]>
RDMA/nldev: Fix NULL deref in dumps of objects abandoned by DRIVER_FAILURE
Pengpeng Hou <[email protected]>
clk: si5351: fail prepare when PLL reset times out
Myeonghun Pak <[email protected]>
clk: ti: adpll: unregister OF clock provider on remove
Dairui Zhang <[email protected]>
IB/mad: fix UAF and double-free in RMPP receive reassembly
Ruoyu Wang <[email protected]>
media: venus: Drop session events without an instance
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Fix the PD and DPI table size
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Initialize wqe.flags in bnxt_re_post_srq_recv()
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Validate SRQ max_sge at create time
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
Finn Thain <[email protected]>
swim: Return -EROFS when opened with BLK_OPEN_WRITE flag
Logan Odell <[email protected]>
PCI/IOV: Read VF config values that need not match PF
Peng Fan <[email protected]>
arm64: dts: imx8ulp-evk: fix reserved memory node names for remoteproc
Li RongQing <[email protected]>
IB/isert: Don't share drop_cmd_list across concurrent connection teardowns
Li RongQing <[email protected]>
RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment
Xiang Mei (Microsoft) <[email protected]>
fs/ntfs3: fix slab-out-of-bounds write in attr_insert_range()
Karl Mehltretter <[email protected]>
soc: ti: k3-ringacc: Fix DMA ring initialization kernel-doc
Karl Mehltretter <[email protected]>
soc: ti: k3-ringacc: Correct ring API kernel-doc
Ian Rogers <[email protected]>
perf vendor events intel: Fix snowridgex umask encoding.
Ian Rogers <[email protected]>
perf vendor events intel: Fix skylakex umask encoding.
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192-mt6359: Fix error handling in MTKAIF calibration
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: Propagate errors in I2S DAI DAPM event handlers
Krzysztof Kozlowski <[email protected]>
ASoC: mediatek: mt8192: Handle component name prefix
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: Propagate errors in TDM DAI DAPM event handlers
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: Propagate mt8192_afe_gpio_request() errors in ADDA DAI
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: Handle regcache_sync() failure in runtime resume
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: check return values in mt8192_afe_gpio_init()
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: Propagate errors in mt8192_afe_gpio_request()
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: mt8192-afe-gpio: Use guard() for mutex locks
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: switch to devm_clk_get_optional()
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: fix MCK clock error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: fix error handling in APLL enable functions
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: fix AFE clock error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8192: fix APLL mux error handling
Ovidiu Panait <[email protected]>
spi: rspi: Fix DMA mode when the DMA controller is built as a module
Andy Shevchenko <[email protected]>
spi: rspi: Get rid of unused struct rspi_plat_data
Niko Huuskonen <[email protected]>
ALSA: caiaq: Fix the Kore controller key map
Niko Huuskonen <[email protected]>
ALSA: caiaq: Serialize access to the EP1 command buffer
Arka Mondal <[email protected]>
iio: dac: ad5758: Fix the offset calculation
Arka Mondal <[email protected]>
iio: dac: ad5758: Reject out-of-range raw values
Arka Mondal <[email protected]>
iio: dac: ad5758: Fix alignment for DMA safety
Abdelnasser Hussein <[email protected]>
staging: iio: adc: ad7816: Protect sysfs attributes with mutex
Abdelnasser Hussein <[email protected]>
staging: iio: adc: ad7816: Serialize SPI operations
Abdelnasser Hussein <[email protected]>
staging: iio: adc: ad7816: Sort headers alphabetically
Chen-Yu Tsai <[email protected]>
drm/exynos/fimd: fix register offset type in fimd_trigger()
Runyu Xiao <[email protected]>
ALSA: via82xx: use helper to activate DXS controls
Runyu Xiao <[email protected]>
ALSA: oxygen: use helper to activate the SPDIF PCM control
Takashi Iwai <[email protected]>
ALSA: oxygen: Use guard() for mutex locks
Yibo Tan <[email protected]>
ASoC: amd: acp-es8336: Use an owned codec device reference
Yishai Hadas <[email protected]>
RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it
Yishai Hadas <[email protected]>
RDMA/mlx5: Set RQ event handler for raw-packet QP
Yishai Hadas <[email protected]>
RDMA/mlx5: Set SRQ event handler before xarray insertion
Yishai Hadas <[email protected]>
RDMA/mlx5: Set WQ event handler before firmware RQ insertion
Yishai Hadas <[email protected]>
RDMA/hns: Pin CQ buffer writable to match device DMA write access
Ginger Li <[email protected]>
wifi: mac80211: Fix a race when expiring a mesh path
Guanghui Feng <[email protected]>
iommu/vt-d: Fix IQE handling to cover all descriptors in submission range
Abel Vesa <[email protected]>
arm64: dts: qcom: sm8150: Use SM8150_CX for the SDHC power domain
Myeonghun Pak <[email protected]>
PCI: aardvark: Disable PHY on probe failures
Linus Walleij <[email protected]>
ARM: dts: gemini: Use a level-high interrupt for TVE200
Fernando Fernandez Mancera <[email protected]>
netfilter: synproxy: fix reset of ct seqadj when reopening a connection
Akhil P Oommen <[email protected]>
drm/msm/a6xx: Fix secondary rail vote in ARC votes
Daniel Palmer <[email protected]>
m68k: apollo: Fix interrupt setup
Shashank Mohan Jain <[email protected]>
bitmap: bitmap_parselist(): don't wrap around on a huge group size
Shashank Mohan Jain <[email protected]>
bitmap: bitmap_parselist(): reject trailing characters after group size
Shashank Mohan Jain <[email protected]>
bitmap: bitmap_parse(): reject non-hex character before 8 digits
Yury Norov <[email protected]>
lib/bitmap: split-out string-related operations to a separate files
Andy Shevchenko <[email protected]>
bitmap: Remove dead code, i.e. bitmap_copy_le()
WangYuli <[email protected]>
MIPS: Only check -msym32 when need-compiler
Orgad Shaneh <[email protected]>
MIPS: Octeon: size the swiotlb for a modular OHCI platform driver
Aaron Kling <[email protected]>
dt-bindings: vendor-prefixes: Add Retroid Pocket
Marek Vasut <[email protected]>
dt-bindings: vendor-prefixes: Add Retronix Technology Inc.
Adam Skladowski <[email protected]>
dt-bindings: vendor-prefixes: Add LeEco
Dmitry Baryshkov <[email protected]>
ARM: dts: qcom: msm8974: add MDSS reset
Luca Weiss <[email protected]>
ARM: dts: qcom: msm8974: Sort header includes alphabetically
Krzysztof Kozlowski <[email protected]>
ARM: dts: qcom: msm8974: Use the header with DSI phy clock IDs
Mohd Ayaan Anwar <[email protected]>
arm64: dts: qcom: lemans-ride-common: fix SerDes PHY regulator supplies
Bruno Produit <[email protected]>
hfs/hfsplus: serialize B-tree close against folio release
Paul Sajna <[email protected]>
arm64: dts: qcom: sdm845-lg: fix sdcard pinctrl nodes
Aaron Kling <[email protected]>
dt-bindings: vendor-prefixes: Add Chip Wealth Technology
bui duc phuc <[email protected]>
ASoC: mediatek: mt8183: Fix APLL enable error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8183: Fix clock handling in mux disable path
bui duc phuc <[email protected]>
ASoC: mediatek: mt8183: Fix wrong clock cleanup on clk_set_parent() failure
Sudeep Holla <[email protected]>
ACPI: PCC: Preserve shared memory signature in OpRegion handler
Sudeep Holla <[email protected]>
ACPI: PCC: Simplify PCC shared memory region handling
Sudeep Holla <[email protected]>
ACPICA: Fix PCC OperationRegion command offsets
Breno Leitao <[email protected]>
ACPICA: Fix memory leak in acpi_ds_create_field()
Xin Yin <[email protected]>
writeback: size foreign flushes by target wb dirty pages
Qingfang Deng <[email protected]>
mtd: block: prevent reclaim I/O during request processing
Jiebin Sun <[email protected]>
perf c2c: Fix documented default coalesce fields
Muzaffer Kadir <[email protected]>
dt-bindings: vendor-prefixes: Add General Mobile
Shrikanth Hegde <[email protected]>
powerpc/ftrace: Don't restore r13 during ftrace_regs_caller
Pengpeng Hou <[email protected]>
iio: accel: bma220: publish the SPI driver ACPI alias
bui duc phuc <[email protected]>
ASoC: mediatek: mt8188: mt8188-afe-pcm: Handle runtime resume errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8188: mt8188-afe-clk: Handle clock enable errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8188: mt8188-afe-clk: Propagate regmap update errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8188: mt8188-afe-clk: Handle tuner clock enable errors
Pengpeng Hou <[email protected]>
ASoC: rt5665: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt5660: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt5659: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt5616: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt1308: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt1305: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt1016: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: rt1011: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: nau8540: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: es8316: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: ak4642: return cache sync errors from resume
Pengpeng Hou <[email protected]>
ASoC: adau17x1: return cache sync errors from resume
Slavin Liu <[email protected]>
ASoC: fsl_asrc: check the second front-end DMA channel
Chuck Lever <[email protected]>
NFS: use TCP for MOUNT when xprtsec= selects TLS
Thomas Falcon <[email protected]>
perf mem: Fix size tracking for mem_lvl's in perf_script__meminfo_scnprintf()
Shengjiu Wang <[email protected]>
ASoC: fsl_asrc: use regmap_write_bits to update clock source registers
Dmitrii Tulnov <[email protected]>
kconfig: warn about malformed KCONFIG_PROBABILITY values
Myeonghun Pak <[email protected]>
mfd: da9150: Balance IRQ wake on teardown
Myeonghun Pak <[email protected]>
mfd: intel_quark_i2c_gpio: Manage the fixed-rate clock
Eric Anderson <[email protected]>
mfd: rk8xx: Register poweroff handler in atomic phase
Jiale Yao <[email protected]>
ext2: drain in-flight DIO before buffered write fallback
Hui Su <[email protected]>
bpftool: Fix CPU IDs in per-CPU map output
Jiayuan Chen <[email protected]>
bpftool: Using the right format specifiers
Kui-Feng Lee <[email protected]>
bpftool: Generated shadow variables for struct_ops maps.
Jiri Olsa <[email protected]>
bpftool: Add support to display uprobe_multi links
Danish Khateeb <[email protected]>
tools/nolibc: fix WIFSIGNALED() for status 0
Esteban Urrutia <[email protected]>
clk: qcom: dispcc-sm8450: Fix disp_cc_mdss_mdp_clk_src ops
Vincent Jardin <[email protected]>
dt-bindings: vendor-prefixes: add Free Mobile
Linus Walleij <[email protected]>
dt-bindings: Add vendor prefixes
Zongmin Zhou <[email protected]>
serial: sifive: fix off-by-one in console port bounds check
Ginger Li <[email protected]>
media: i2c: ov5648: Fix a data race on state->streaming
Finn Thain <[email protected]>
swim: Don't search beyond the first data mark
Finn Thain <[email protected]>
swim: Revisit delays
Finn Thain <[email protected]>
swim: Check drive ready bit
Finn Thain <[email protected]>
swim: Deduplicate polling loops
Finn Thain <[email protected]>
swim: Remove redundant RELAX actions
Finn Thain <[email protected]>
swim: Fix buffer overflow
Finn Thain <[email protected]>
swim: Don't use the mark register to read data
Finn Thain <[email protected]>
swim: Check error register during sector read
Finn Thain <[email protected]>
swim: Simplify return value initialization
Finn Thain <[email protected]>
swim: Check for CRC errors
Finn Thain <[email protected]>
swim: Handle FIFO timeout error
Finn Thain <[email protected]>
swim: Add track zero recalibration delay
Finn Thain <[email protected]>
swim: Recalibrate when drive is probed
Finn Thain <[email protected]>
swim: Don't start motor until medium is present
Finn Thain <[email protected]>
swim: Configure parameter memory
Finn Thain <[email protected]>
swim: Perform ISM/IWM mode switching according to specs
Finn Thain <[email protected]>
swim: Don't disable drive after every sector
Finn Thain <[email protected]>
swim: Enable the drive when probing
Finn Thain <[email protected]>
swim: Select appropriate drive once only
Finn Thain <[email protected]>
swim: Assert strobe with stable outputs
Li RongQing <[email protected]>
RDMA/mlx5: Guard steering anchor resource destruction on create error
Jiale Yao <[email protected]>
crypto: ccp - kill v5 IRQ tasklet during teardown
Jiale Yao <[email protected]>
crypto: ccp - kill v3 IRQ tasklet during teardown
Weili Qian <[email protected]>
crypto: hisilicon/hpre - remove dma_free_coherent on NULL req->dst in ECDH
Pengpeng Hou <[email protected]>
hwrng: starfive - propagate clock and reset errors
Wentao Liang <[email protected]>
RDMA/siw: Fix qp use-after-free in siw_get_base_qp()
Wentao Liang <[email protected]>
RDMA/mlx5: Fix RQ resource reference leak in mlx5_ib_wq_event()
Wentao Liang <[email protected]>
RDMA/cxgb4: Fix skb reference leak in rx_pkt()
Wentao Liang <[email protected]>
RDMA/cxgb4: Fix neigh reference leak in rx_pkt()
Kim Wooseok <[email protected]>
wifi: rtl8xxxu: free RX skb when URB submission fails
Rafael J. Wysocki <[email protected]>
ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()
Pei Xiao <[email protected]>
ata: pata_parport: fix parport attach idr_alloc for
Jeremy Bongio <[email protected]>
RDMA/irdma: Use kvzalloc for lvl2 leafmem allocation
Francesco Dolcini <[email protected]>
arm64: dts: ti: k3-am62-verdin: fix main_gpio0/main_gpio1 line names size
Andrejs Cainikovs <[email protected]>
arm64: dts: ti: verdin-am62: add support for Verdin USB1 interface
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()
Jacob Moroni <[email protected]>
RDMA/irdma: Fix erroneous -ENOMEM for large MR registration
Li RongQing <[email protected]>
RDMA/core: Fix partial copy of IPv6 flow_lbl in LAG hash skb
Cong Nguyen <[email protected]>
leds: lm3692x: Fix regulator/gpio leak and wrong enabled state on last write failure
Ian Rogers <[email protected]>
perf build: Check the version of the compiler that is used
Haibo Chen <[email protected]>
leds: pca9532: Check i2c_smbus_read_byte_data() return value
Miles Krause <[email protected]>
leds: lp8860: Fix device_node leak in lp8860_probe()
Arnd Bergmann <[email protected]>
KMSAN: fix memset() when using fortify-source, again
Andrea Parri <[email protected]>
pstore: reject persistent RAM zones too small for the buffer header
Andrea Parri <[email protected]>
pstore: don't leave an ERR_PTR in the ramoops zone pointer
Neil Armstrong <[email protected]>
dt-bindings: vendor-prefixes: add vendor prefix for Nexperia B.V.
Pengpeng Hou <[email protected]>
pmdomain: imx: Propagate SCU provider registration failures
Xiang Mei <[email protected]>
fs/ntfs3: validate $SDH entry size in ntfs_insert_security
Konstantin Komarov <[email protected]>
fs/ntfs3: validate EA entry layout against ef->size in ntfs_read_ea
Zhan Xusheng <[email protected]>
fs/ntfs3: fix valid_size not being updated in attr_allocate_frame()
Xiang Mei (Microsoft) <[email protected]>
fs/ntfs3: check INDEX_ROOT resident size before use in ntfs_read_mft()
Andrew Gaylard <[email protected]>
pinctrl: fix PINCTRL_SPPCTL=m
Daniel Borkmann <[email protected]>
bpf, lsm: Reject writes into the BPF LSM program context
Slavin Liu <[email protected]>
clk: starfive: jh7110: reject oscillator lookup errors
Wentao Liang <[email protected]>
clk: versatile: clk-icst: Fix node reference leak in of_syscon_icst_setup()
Triet Hoang <[email protected]>
clk: raspberrypi: Handle cpufreq device registration failure
Karl Asseily <[email protected]>
dt-bindings: vendor-prefixes: add ESS Technology
Alejandro Lucero <[email protected]>
ACPI: HMAT: preserve hmat_adist_nb notifier block
Felix Gu <[email protected]>
spi: mxic: fix ps_clk leak in runtime resume
Christian Loehle <[email protected]>
ACPI: CPPC: Validate the _CPC package header
Li RongQing <[email protected]>
RDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in GET_CONTEXT
Li RongQing <[email protected]>
RDMA/restrack: Don't set RESTRACK_DD mark after a failed xa_insert()
Konrad Dybcio <[email protected]>
interconnect: qcom: use 64-bit SMD RPM bus votes
Konrad Dybcio <[email protected]>
interconnect: qcom: icc-rpm: Handle icc_link_create() failures
Myeonghun Pak <[email protected]>
interconnect: exynos: Remove the PM QoS request on unbind
Slavin Liu <[email protected]>
crypto: atmel-sha - reject initialization without a device
Ahsan Atta <[email protected]>
crypto: qat - fix active_devs leak on crypto alg registration failure
Julian Braha <[email protected]>
kconfig: fix extra output from savedefconfig on out-of-range defaults
Masahiro Yamada <[email protected]>
kconfig: default to zero if int/hex symbol lacks default property
Masahiro Yamada <[email protected]>
kconfig: remove unneeded symbol_empty variable
Felix Gu <[email protected]>
PCI: dra7xx: Fix clock enable leak on probe failure
[email protected] <[email protected]>
PCI: dra7xx: Remove device links to PHY
Longlong Xia <[email protected]>
rcu: fix shrink budget underflow in lazy_rcu_shrink_scan
Joel Fernandes <[email protected]>
rcu/nocb: Remove unnecessary WakeOvfIsDeferred wake path
Frederic Weisbecker <[email protected]>
Revert "rcu/nocb: Fix rcuog wake-up from offline softirq"
Zqiang <[email protected]>
rcu/nocb: Check rdp_gp->nocb_timer in __call_rcu_nocb_wake()
Nikolay Borisov <[email protected]>
ata: sata_dwc_460ex: Don't enable interrupt if libATA core registration fails
Hari Mishal <[email protected]>
drm/amd/pm: bound SCLK FCW range entries to the table size
Pengpeng Hou <[email protected]>
clk: milbeaut: Return divider update timeouts
Pengpeng Hou <[email protected]>
clk: si521xx: correct the SI52147 OF output enable map
Zhihao Cheng <[email protected]>
md/raid5: setup_conf: Fix null-ptr-def in error handling path
Yogesh Gaur <[email protected]>
md/raid5: don't BUG() on an inconsistent reshape state from the superblock
Jérémy Jean <[email protected]>
md: reject v0.90 arrays with too many devices
Zizhi Wo <[email protected]>
md/raid10: fix missing wakeup in wait_barrier_nolock
Abdelnasser Hussein <[email protected]>
staging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers
Bart Van Assche <[email protected]>
scsi: pm8001: Fix SATA FIS offset in struct hw_event_resp
Karl Mehltretter <[email protected]>
pinctrl: stm32: Drop the nonexistent CONFIG_MACH_STM32MP25 from the STM32MP257 default
Stephane Danieau <[email protected]>
pinctrl: stm32: Allow compile as module for stm32mp257
Antonio Borneo <[email protected]>
pinctrl: stm32: Declare stm32_pmx_get_mode() as static
Alison Schofield <[email protected]>
cxl/hdm: Reject switch decoder interleave ways that overflow targets
Slavin Liu <[email protected]>
ACPI: tables: handle failed initrd override mappings
Chen-Yu Tsai <[email protected]>
arm64: dts: mediatek: mt8173: Fix MFG_ASYNC power domain clock
Sarthak Sharma <[email protected]>
mm/gup_test: report actual pinned bytes
Sarthak Sharma <[email protected]>
mm/gup_test: safely calculate GUP batch size
Samuel Moelius <[email protected]>
mm/gup_test: reject wrapped user ranges
Weiming Shi <[email protected]>
ntfs3: fix out-of-bounds read in ntfs_read_mft()
Luka Gejak <[email protected]>
wifi: rtw88: sdio: zero the padding added to a TX transfer
Karl Mehltretter <[email protected]>
loadpin: Fix stale KEXEC_VERIFY_SIG reference in documentation
Rosen Penev <[email protected]>
dmaengine: mv_xor: kill tasklet on channel add error path
Yonghao Zhang <[email protected]>
remoteproc: core: Set trace buffer name for diagnostics
Guangshuo Li <[email protected]>
media: i2c: ar0521: remove duplicate media entity cleanup
Li RongQing <[email protected]>
RDMA/uverbs: Make CQ handle mandatory for WQ creation
Nicolas Morey <[email protected]>
RDMA/rxe: Use validated num_sge in local buffer
Miles Krause <[email protected]>
memory: emif: fix device_node reference leak on np_ddr
Uwe Kleine-König <[email protected]>
memory: emif: Convert to platform remove callback returning void
Gregory CLEMENT <[email protected]>
phy: cadence: Sierra: Do not modify register when getting parent clock
Haotian Zhang <[email protected]>
phy: hisilicon: hi3670: Fix OF node and device reference leaks
Linkai Gong <[email protected]>
firmware: imx: dsp: fix mailbox channel leak on kasprintf failure
Jérôme Pouiller <[email protected]>
wifi: wfx: fix use-after-free of the cooling work on device removal
Julius Bairaktaris <[email protected]>
wifi: mac80211: don't reset the TXQ scheduling round number
Karl Mehltretter <[email protected]>
wifi: mac80211: Fix the return value in mesh_path_add() kernel-doc
Fuad Tabba <[email protected]>
arm64: pi: Run the source checker on the libfdt objects under C=2
Thomas Weißschuh <[email protected]>
microblaze: Pass -m{big,little}-endian through KBUILD_CPPFLAGS
Thomas Weißschuh <[email protected]>
microblaze: uaccess: Zero out destination on failed get_user()
Linkai Gong <[email protected]>
pinctrl: amd: add timeout to irq-enable readback
Mario Limonciello (AMD) <[email protected]>
pinctrl: amd: Don't access irq_data's hwirq member directly
Mario Limonciello (AMD) <[email protected]>
pinctrl: amd: Add PM debugging message for turning on/off wakes
Weiming Shi <[email protected]>
fs/ntfs3: zero frame pages on read error
Matthew Wilcox (Oracle) <[email protected]>
ntfs: Do not kmap page cache pages for compression
Matthew Wilcox (Oracle) <[email protected]>
ntfs3: Remove calls to set/clear the error flag
Baolin Liu <[email protected]>
fs/ntfs3: update ctime only on successful setxattr
Weiming Shi <[email protected]>
fs/ntfs3: take run_lock when freeing offs_folio in ni_decompress_file
Matthew Wilcox (Oracle) <[email protected]>
ntfs3: Convert attr_wof_frame_info() to use a folio
Karl Mehltretter <[email protected]>
regulator: qcom-rpmh: Fix the return value in rpmh_regulator_vrm_get_optimum_mode() kernel-doc
Chen-Yu Tsai <[email protected]>
regulator: Unify "negative error number" terminology in comments
Oleksij Rempel <[email protected]>
regulator: fixed: add support for under-voltage IRQ
Ian Rogers <[email protected]>
perf header: Fix potential memory corruption in cpu_cache_level__read
Rafael J. Wysocki <[email protected]>
ACPI: video: Fix backlight unregistration ordering
Karl Mehltretter <[email protected]>
ALSA: control: Fix virtual master creation reference in kernel-doc
Michael S. Tsirkin <[email protected]>
virtio: synchronize callbacks after device reset
Karl Mehltretter <[email protected]>
gfs2: Fix the return value in gfs2_get_link() kernel-doc
Karl Mehltretter <[email protected]>
ata: libata-scsi: Fix ata_scsi_hotplug() reference in kernel-doc
Karl Mehltretter <[email protected]>
spi: Fix the return value in spi_new_ancillary_device() kernel-doc
Pengpeng Hou <[email protected]>
clk: s2mps11: Propagate OF provider registration failures
Geert Uytterhoeven <[email protected]>
clk: rs9: Add clock index range check to rs9_of_clk_get()
Karl Mehltretter <[email protected]>
clk: mediatek: reset: Fix device registration kernel-doc
AngeloGioacchino Del Regno <[email protected]>
clk: mediatek: reset: Remove unused mtk_register_reset_controller()
Fei Shao <[email protected]>
clk: mediatek: reset: Return regmap's error code
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
Sanghyun Park <[email protected]>
bpf: Fix program BTF use-after-free in sleepable programs
Justin Yeh <[email protected]>
HID: i2c-hid: Unfollow the panel on shutdown
Marek Vasut <[email protected]>
ARM: dts: stm32: Drop bias-disable from STM32MP15xx DHCOM SoM sdmmc1_b4_pins_a
Xueqin Luo <[email protected]>
cpuidle: teo: Do not return a disabled idle state
Ahmad Fatoum <[email protected]>
ARM: dts: stm32: lxa-tac: change stdout-path baud rate from 9600 to 115200
Ahmad Fatoum <[email protected]>
ARM: dts: stm32: lxa-mc1: change stdout-path baud rate from 9600 to 115200
Xueqin Luo <[email protected]>
cpuidle: menu: Do not return a disabled idle state
Christian Loehle <[email protected]>
cpuidle: menu: Remove single state handling
Breno Leitao <[email protected]>
cpuidle: menu: Remove incorrect unlikely() annotation
Takashi Sakamoto <[email protected]>
firewire: core: remove unused link field in fw_packet structure
Karl Mehltretter <[email protected]>
firewire: cdev: Fix FW_CDEV_IOC_CREATE_ISO_CONTEXT references in kernel-doc
Rafael J. Wysocki <[email protected]>
ACPI: glue: Fix up and adjust acpi_unbind_one()
Jan Kara <[email protected]>
gfs2: Fix journaled truncate range end offset
Jiawen Liu <[email protected]>
memory: exynos5422-dmc: handle clock enable failures
Ahsan Atta <[email protected]>
crypto: qat - avoid OOB read when stripping RSA leading zeros
Mohamad Raizudeen <[email protected]>
crypto: amlogic - Fix DMA memory leak in cipher error path
Eric Dumazet <[email protected]>
ip_tunnel: use WRITE_ONCE in ip_tunnel_encap_setup
Eric Dumazet <[email protected]>
sit: fix UAF in ipip6_tunnel_del_prl()
Linus Walleij <[email protected]>
regulator: ab8500: Propagate mode enable read errors
Linus Walleij <[email protected]>
regulator: ab8500: Test dedicated enable bits only
Linus Walleij <[email protected]>
regulator: ab8500: Treat cut 1.0 VAUX3 as fixed
Linus Walleij <[email protected]>
regulator: ab8500: Handle AB8505 VINTCORE selector 7
Linus Walleij <[email protected]>
regulator: ab8500: Add AB8505 VAUX3 3.05 V setting
Babanpreet Singh <[email protected]>
regulator: ab8500: Remove stale expand_register kernel-doc entry
Linus Walleij <[email protected]>
regulator: ab8500: Fix AB8505 VANA voltage selectors
Koichiro Den <[email protected]>
PCI: endpoint: pci-epf-vntb: Serialize virtual PCI bus scan
Jia Wang <[email protected]>
dmaengine: dw-axi-dmac: Fix CH_CFG2 channel priority position
Jia Wang <[email protected]>
dmaengine: dw-axi-dmac: Fix LLI dump out-of-bounds access
Jia Wang <[email protected]>
dmaengine: dw-axi-dmac: Fix AXI burst length encoding
Rosen Penev <[email protected]>
dmaengine: fsl_raid: zero CF descriptor pool allocations
Keisuke Tsukuda <[email protected]>
usb: gadget: f_mass_storage: ignore class requests while inactive
Keisuke Tsukuda <[email protected]>
usb: gadget: composite: avoid warning on aborted delayed status
Roland Dreier <[email protected]>
firmware: arm_scmi: Don't reuse raw xfers with async_done still armed
Roland Dreier <[email protected]>
firmware: arm_scmi: Protect xfer->async_done with xfer->lock
Chaithanya Lagisetty <[email protected]>
dmaengine: sprd: use clk_bulk API to fix clock imbalance
Pengpeng Hou <[email protected]>
usb: musb: da8xx: depopulate OF children on probe failure
Pengpeng Hou <[email protected]>
usb: musb: da8xx: depopulate OF children on remove
Arka Mondal <[email protected]>
usb-storage: alauda: fix out-of-bounds zone index
Arka Mondal <[email protected]>
usb-storage: alauda: check the return value of alauda_read_map()
Arka Mondal <[email protected]>
usb-storage: alauda: do not do DMA from the stack
Yuho Choi <[email protected]>
USB: pci-quirks: Release EHCI device reference
Jiangong.Han <[email protected]>
USB: usbmon: fix null-ptr-deref in mon_bus_remove() when mon_bus_init() fails
Diego Fernando Mancera Gomez <[email protected]>
usb: image: microtek: stop SG processing after transfer errors
Junxian Huang <[email protected]>
RDMA/hns: Fix GID capacity loss in 64K system
Yuho Choi <[email protected]>
PCI: xgene: Use managed clock for PCIe controller
Shakeel Butt <[email protected]>
kernfs: fix up the unlocked attribute reads on the creation paths
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()
Matti Vaittinen <[email protected]>
iio: accel: kionix-kx022a: Fix IPOL macro name
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix use-after-free of the firmware event workqueue
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds read in PCIe topology change events
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix buffer overflow in the BSG target device map
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds phy array access on link change
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds read of event data
Ranjan Kumar <[email protected]>
scsi: mpi3mr: Rename log data save helper to reflect threaded/BH context
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix device loss during enclosure reboot due to zero link speed
Ranjan Kumar <[email protected]>
scsi: mpi3mr: Event processing debug improvement
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds read in SAS topology change events
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix target device reference leak in device removal handshake
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds bitmap access during device removal
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds sense buffer access
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds reply frame access
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix buffer overflow when caching log data
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix target device reference leak in BSG task management
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix I/O block counter leak on admin request post failure
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix out-of-bounds read when copying BSG MPI requests
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix buffer overflow in BSG passthrough request copy
Linmao Li <[email protected]>
power: supply: bq2515x: Propagate charge-enable read errors
Ryan Brue <[email protected]>
power: supply: bq24190_charger: use the wake irq API
Peng Fan <[email protected]>
PM: sleep: wakeirq: Introduce device-managed variant of dev_pm_set_wake_irq()
Joe Hattori <[email protected]>
PM: wakeup: implement devm_device_init_wakeup() helper
Karl Mehltretter <[email protected]>
power: supply: mp2629: Use the full batt_impedance_compensation name in the ABI document
Willem de Bruijn <[email protected]>
selftests: net: csum: filter packets by source address and port
Sean Anderson <[email protected]>
selftests: net: csum: Clean up recv_verify_packet_ipv6
Aaradhana Sahu <[email protected]>
wifi: ath12k: Free allocated external IRQs on request_irq() failure
Breno Leitao <[email protected]>
wifi: ath12k: allocate dummy net_device dynamically
Kang Yang <[email protected]>
wifi: ath12k: refactor multiple MSI vector implementation
Aaradhana Sahu <[email protected]>
wifi: ath12k: Free allocated CE IRQs on request_irq() failure
Nicolas Escande <[email protected]>
wifi: ath11k: fix locking problem in ath11k_dp_rx_tid_del_func()
Mikhail Lobanov <[email protected]>
wifi: ath11k: modify null check logic in ath11k_ce_rx_post_pipe()
Rafael J. Wysocki <[email protected]>
ACPI: utils: Adjust message printing macros for ACPI objects
Rafael J. Wysocki <[email protected]>
ACPI: scan: Stop calling acpi_bus_init_power() early
Rafael J. Wysocki <[email protected]>
ACPI: PCI: Introduce acpi_dev_get_pci_dev()
Rafael J. Wysocki <[email protected]>
ACPI: PM: Drop parent state update from acpi_device_get_power()
Ian Gallagher <[email protected]>
ACPI: button: Add lid_init_state quirk for Razer Blade Stealth 13 (Early 2020) RZ09-0310
Vinod Koul <[email protected]>
dmaengine: zynqmp_dma: drop redundant label
Srinivas Neeli <[email protected]>
dmaengine: xilinx_dma: Move descriptors to done list based on completion bit
Srinivas Neeli <[email protected]>
dmaengine: xilinx_dma: Fix MCDMA descriptor fields based on DMA direction
Chaithanya Lagisetty <[email protected]>
dmaengine: dw-axi-dmac: convert clock handling to clk_bulk API
Golla Nagendra <[email protected]>
dmaengine: zynqmp_dma: Fix chan probe/remove error handling
Abin Joseph <[email protected]>
dmaengine: zynqmp_dma: Add support for AMD Versal Gen 2 DMA IP
Ruoyu Wang <[email protected]>
dmaengine: img-mdc: Fix runtime PM usage counter leak
Myeonghun Pak <[email protected]>
dmaengine: mediatek: hsdma: fix runtime PM leak on init failure
Hongling Zeng <[email protected]>
dmaengine: at_hdmac: Fix use-after-free by proper tasklet cleanup
Hongling Zeng <[email protected]>
dmaengine: sun6i-dma: Fix use-after-free in error handling paths
Karl Mehltretter <[email protected]>
mtd: spinand: Fix spinand_manufacturer_ops kernel-doc
Qiuxu Zhuo <[email protected]>
EDAC/i10nm: Fix Granite Rapids ADXL MC mapping
Manush Prajwal <[email protected]>
pwm: lp3943: fix NULL pointer dereference for an unconfigured channel
Uwe Kleine-König <[email protected]>
pwm: lp3943: Drop usage of pwm_[gs]et_chip_data()
bui duc phuc <[email protected]>
ASoC: mediatek: mt6797: fix wrong unwind order and error code in enable_clock
bui duc phuc <[email protected]>
ASoC: mediatek: mt8186: Fix MCK error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8186: Fix APLL enable error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8186: Fix AFE clock error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8186: Fix clock handling in mux disable path
bui duc phuc <[email protected]>
ASoC: mediatek: mt8186: Fix APLL mux setting error handling
Bert Karwatzki <[email protected]>
mac80211: tx: Use info->flags in ieee80211_tx_h_select_key()
Chen-Yu Tsai <[email protected]>
pwm: mtk-disp: Fix period readback
Karl Mehltretter <[email protected]>
virtio_ccw: always take irq_lock in the classic interrupt handler
Karl Mehltretter <[email protected]>
virtio_ccw: fix synchronize_cbs() after interrupt fallback
Pengpeng Hou <[email protected]>
ASoC: es8326: report resume restore errors
Zhang Yi <[email protected]>
ASoC: codecs: ES8326: Minimize the pop noise
Zhang Yi <[email protected]>
ASoC: codecs: ES8326: Solve error interruption issue
Zhu Ning <[email protected]>
ASoC: codecs: ES8326: fix the capture noise issue
Zhu Ning <[email protected]>
ASoC: codecs: ES8326: Minimize the pop noise on headphone
Zhu Ning <[email protected]>
ASoC: codecs: ES8326: Improving the THD+N performance
Zhu Ning <[email protected]>
ASoC: codecs: ES8326: Changing initialisation and broadcasting
Karl Mehltretter <[email protected]>
irqchip/gic-v3-its: Don't WARN on LPI free allocation failure
Linkai Gong <[email protected]>
drivers/base/node: fix UAF on device_register() failure
Dmitry Torokhov <[email protected]>
gpio: crystalcove: add missing MODULE_ALIAS()
Leon Romanovsky <[email protected]>
RDMA/irdma: Preserve fast-registration IOVA on 32-bit
Mark Amirkan <[email protected]>
perf evsel: Validate RAW sample before byte swapping
Mark Amirkan <[email protected]>
perf evsel: Validate branch stack before byte swapping
Marcel Hofmann <[email protected]>
remoteproc: imx_rproc: Allow mappings ending at region boundary
Felix Gu <[email protected]>
spi: mtk-nor: fix runtime PM usage count leak in probe error path
Dave Jiang <[email protected]>
efi/cper: Read only validated fields in cper_mem_err_pack()
Dave Jiang <[email protected]>
ACPI: extlog: Validate elog record length before walking sections
Dave Jiang <[email protected]>
efi/cper: Reject an error status block length that wraps a u32
Dave Jiang <[email protected]>
efi/cper: Reject CPER records with an out-of-range error_data_length
Jisheng Zhang <[email protected]>
regulator: mp886x: fix vsel_mask
Pengpeng Hou <[email protected]>
memory: brcmstb_dpfe: validate firmware section sizes
Julius Bairaktaris <[email protected]>
wifi: mac80211: fix swapped fq_overlimit/fq_overmemory in aqm debugfs
Fabrice Derepas <[email protected]>
crypto: asymmetric_keys - fix OOB read in pefile_parse_binary
Ruoyu Wang <[email protected]>
hwrng: cctrng - Fix runtime PM usage counter leak
Jérôme Pouiller <[email protected]>
wifi: wfx: fix possible device hang during init
Johannes Berg <[email protected]>
wifi: mac80211: drop encap offload frames with a tainted key
Johannes Berg <[email protected]>
wifi: mac80211: don't send encap offload frames unencrypted
Johannes Berg <[email protected]>
wifi: mac80211: fix key selection for encap offload frames
Johannes Berg <[email protected]>
wifi: mac80211: fix unauthorised port check for encap offload
Paul Dolan <[email protected]>
selftests/clone3: tighten CLONE_CLEAR_SIGHAND conflict test
Miquel Raynal (Schneider Electric) <[email protected]>
clk: Use the generic OF phandle parsing in only one place
Rosen Penev <[email protected]>
dmaengine: fsl_raid: avoid free_q underflow in free_chan_resources
Rosen Penev <[email protected]>
dmaengine: fsl_raid: don't invoke client callback under desc_lock
Koichiro Den <[email protected]>
PCI: endpoint: pci-epf-vntb: Pass PF/VF number when BAR programming
Toke Høiland-Jørgensen <[email protected]>
bpftool: Set BPF_F_XDP_DEV_BOUND_ONLY flag non-destructively
Ionut Nechita <[email protected]>
x86/crash: Reserve elfcorehdr for CONFIG_NR_CPUS, not CONFIG_NR_CPUS_DEFAULT
Pengpeng Hou <[email protected]>
remoteproc: imx_dsp: Acquire runtime PM before adding carveouts
Peng Fan <[email protected]>
remoteproc: imx_dsp_rproc: Drop extra space
Shengjiu Wang <[email protected]>
remoteproc: imx_dsp_rproc: Add support of recovery and coredump process
Danila Chernetsov <[email protected]>
dlm: validate lock modes in recovery messages
Abdurrahman Karadag <[email protected]>
wifi: rtw88: debugfs: don't vzalloc(0) when rsvd_page is read unconfigured
Boris Faure <[email protected]>
soundwire: intel: initialise quirk_mask before reading it
Jérémy Jean <[email protected]>
microblaze: prevent ptrace writes to MSR and pt_mode
Alexander A. Klimov <[email protected]>
microblaze: CCF: fix refcount leak
Jerome Brunet <[email protected]>
clk: fix self-consuming provider module pinning
Orgad Shaneh <[email protected]>
staging: octeon: schedule the TX cleanup tasklet every 1024th packet
Myeonghun Pak <[email protected]>
staging: rtl8723bs: disable SDIO function on block size failure
Ethan Tidmore <[email protected]>
staging: rtl8723bs: remove unused private debug counters
Michael Straube <[email protected]>
staging: rtl8723bs: move rtw_recv_indicatepkt to rtw_recv.c
Michael Straube <[email protected]>
staging: rtl8723bs: remove wrapper rtw_init_recv_timer
Michael Straube <[email protected]>
staging: rtl8723bs: remove return from void function
Rodrigo Gobbi <[email protected]>
staging: rtl8723bs: change remaining printk to proper api
Rob Barnes <[email protected]>
platform/chrome: cros_ec_proto: Fix deferred response
Hongyan Xu <[email protected]>
soc: qcom: apr: clean up failed service registrations
Felix Gu <[email protected]>
spi: omap2-mcspi: Remove unbalanced pm_runtime_put_sync() calls
Ruoyu Wang <[email protected]>
pwm: renesas-tpu: Fix runtime PM reference leak
Uwe Kleine-König <[email protected]>
pwm: renesas: Drop usage of pwm_[gs]et_chip_data()
David Heidelberg <[email protected]>
ASoC: wcd-mbhc-v2: Fix incorrect properties names and typos
Cai Xinchen <[email protected]>
lsm: don't call security_backing_file_free() multiple times
Runyu Xiao <[email protected]>
remoteproc: xlnx: Initialize mailbox work before requesting channels
Shujath Mohd <[email protected]>
arm64: dts: qcom: sdm845-sony-xperia-tama: Fix Bluetooth UART pinctrl
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
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
Pei Xiao <[email protected]>
ata: pata_parport: Fix use-after-free in new_device_store
Salah Triki <[email protected]>
iio: temperature: tmp117: fix calibbias cache update on I2C write failure
Esben Haabendal <[email protected]>
dt-bindings: iio: light: ltr501: Add missing ltr303 compatible
Esben Haabendal <[email protected]>
dt-bindings: iio: light: ltr501: Sort compatible enum array
Adi Nata <[email protected]>
iio: humidity: hts221: report available values via read_avail()
Pengpeng Hou <[email protected]>
spi: sh-msiof: propagate setup runtime-PM errors
Geert Uytterhoeven <[email protected]>
spi: sh-msiof: SITMDR1/SIRMDR1 bitfield conversion
Chandradhar Kumar <[email protected]>
regulator: fixed: reject incompatible platform devices
Yuan Chen <[email protected]>
bpftool: Fix spurious batch file read error
Marek Vasut <[email protected]>
drm: of: Fix drm_of_get_data_lanes_count_ep() return value documentation
Andreas Kemnade <[email protected]>
drm/omap: dsi: avoid sending bta sync all the time in writes
Adrián Larumbe <[email protected]>
drm/panfrost: Prevent division by 0
Hao-Qun Huang <[email protected]>
accel/qaic: reject BO sizes that overflow page count
Raveendra Talabattula <[email protected]>
drm/komeda: Fix bits parsing of GLB_CORE_ID
Borislav Petkov (AMD) <[email protected]>
x86/microcode/AMD: Move the no-revision fixup to get_patch_level()
Daejun Park <[email protected]>
xfs: add a flag to convert unwritten extents without allocating blocks
Cen Zhang <[email protected]>
ocfs2: validate move extents against a stable EOF
Pei Xiao <[email protected]>
comedi: dt2811: fix shift-out-of-bounds in IRQ check
Yang Zi <[email protected]>
comedi: addi_apci_3xxx: fix subdevice count underallocation
Pablo Neira Ayuso <[email protected]>
netfilter: flowtable: ensure sufficient headroom in xmit path
Yafang Shao <[email protected]>
mm/migrate: snapshot the source nid before the misplaced migration
Amir Goldstein <[email protected]>
ovl: inherit FMODE_NONOTIFY when reading directory layers
Daehyeon Ko <[email protected]>
vhost/vsock: size receive SKBs from declared payload
Will Deacon <[email protected]>
vsock/virtio: Rename virtio_vsock_skb_rx_put()
Will Deacon <[email protected]>
vsock/virtio: Move length check to callers of virtio_vsock_skb_rx_put()
Qiliang Yuan <[email protected]>
nvme: wait for SRCU readers before splicing the namespace list
Qiliang Yuan <[email protected]>
srcu: Add list_splice_init_srcu()
Paul E. McKenney <[email protected]>
srcu: Add NUM_ACTIVE_SRCU_POLL_OLDSTATE
Mike Rapoport (Microsoft) <[email protected]>
mm/cma: accept memory of CMA areas reserved at a fixed address
David Hildenbrand (Arm) <[email protected]>
mm/shmem: fix accounting of swapin-error markers
Josef Bacik <[email protected]>
mm/mmu_notifier: finish non-blocking interval invalidation on error
Jann Horn <[email protected]>
mm: document mmu_notifier_invalidate_range_start_nonblock()
Wei Wang <[email protected]>
arm64: suspend: Save and restore TPIDR2_EL0 across CPU suspend
Yeoreum Yun <[email protected]>
arm64: Fix cleared E0POE bit after cpu_suspend()/resume()
Yingjie Wang <[email protected]>
nvmet: reject keep-alive timeouts that would overflow
Jouni Högander <[email protected]>
drm/i915/display: Add enabled pipe planes into state for selective fetch
David Hildenbrand (Arm) <[email protected]>
mm/shmem: make shmem_file() check the file's inode
David Hildenbrand (Arm) <[email protected]>
mm/filemap: finish fault cleanup before dropping the fault lock
Matthew Wilcox (Oracle) <[email protected]>
mm: make lock_folio_maybe_drop_mmap() VMA lock aware
Jesse Zhang <[email protected]>
drm/amdkfd: use the queue's process info for the WPTR BO eviction fence
Ajay Kumar Nandam <[email protected]>
ASoC: qcom: q6apm: clear g_apm on driver removal
Luis Gerardo Lopez Hernandez <[email protected]>
ALSA: hda/realtek: Fix internal speakers on Acer Aspire AL16-31P
David Hildenbrand (Arm) <[email protected]>
fork: take mmap_lock before copying mm_struct
David Hildenbrand (Arm) <[email protected]>
mm/rmap: handle device-exclusive entries in folio_referenced_one()
Thorsten Blum <[email protected]>
hwrng: virtio - prevent use-after-free after a failed restore
Christophe JAILLET <[email protected]>
hwrng: virtio - Remove usage of the deprecated ida_simple_xx() API
Josef Bacik <[email protected]>
mm/filemap: read mapping->a_ops->free_folio under i_lock
Misha Nasledov <[email protected]>
drm/amd/display: Drop clock requirements on DCN32 when no displays are active
Cong Zhang <[email protected]>
virtio_blk: use synchronous quiesce in virtblk_freeze_priv()
Jiale Yao <[email protected]>
hwmon: (aquacomputer_d5next) reject short status reports
Cen Zhang (Microsoft) <[email protected]>
apparmor: fix query_data() output overlapping the lookup key
Gregory Price <[email protected]>
mm/userfaultfd: compare exact registration modes before skipping
YouYou Yu <[email protected]>
quota: initialize dquot cache before mounting rootfs
Shubham Antil <[email protected]>
vhost-scsi: zero misaligned I/O bounce pages
Mike Christie <[email protected]>
vhost-scsi: Reduce mem use by moving upages to per queue
David Hildenbrand (Arm) <[email protected]>
mm/mremap: use pudp_huge_get_and_clear() when moving huge PUDs
Chris Mason <[email protected]>
mm/memory: reject remote COW faults on PFN mappings
Matthew Wilcox (Oracle) <[email protected]>
mm: call wp_page_copy() under the VMA lock
Gregory Price (Meta) <[email protected]>
mm/mempolicy: apply bind policies against the scoped allocation zone
David Hildenbrand (Arm) <[email protected]>
mm/madvise: preserve VMA_SOFTDIRTY_BIT when changing anonymous names
Jouni Högander <[email protected]>
drm/i915/psr: Clear selective fetch area when duplicating plane state
David Hildenbrand (Arm) <[email protected]>
mm/vma: don't leak the charge for stack growth
Daejun Park <[email protected]>
nvme: unregister when pr_register() is given a zero new key
Jesse Zhang <[email protected]>
drm/amdgpu: don't walk the CS chunks when allocating them failed
Guenter Roeck <[email protected]>
hwmon: (tmp108) Fix initial conversion delay and wait until ready
Guenter Roeck <[email protected]>
hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp()
Myeonghun Pak <[email protected]>
fbdev: kyro: Release WC setup on registration failure
Giovanni Di Santi <[email protected]>
fbdev: kyro: Use devm_ioremap_wc() for screen mem
Giovanni Di Santi <[email protected]>
fbdev: kyro: Use devm_ioremap() for mmio registers
Hao Qin <[email protected]>
Bluetooth: btmtk: Remove the resetting step before downloading the fw
Hao Qin <[email protected]>
Bluetooth: btmtk: Remove resetting mt7921 before downloading the fw
Chris Mason <[email protected]>
mm/huge_memory: fix truncate racing with PMD zapping
Li Zhe <[email protected]>
mm/hugetlb: fix mremap deadlock when PMD sharing is possible
Kyle Zeng <[email protected]>
mm/khugepaged: flush deferred unmaps before dropping a failed folio
Chengfeng Ye <[email protected]>
l2tp: snapshot sequencing state when building transmit headers
Fuad Tabba <[email protected]>
KVM: arm64: vgic-its: Don't map an LPI from more than one event
Mike Christie <[email protected]>
scsi: target: Fix LUN/device R/W and total command stats
Yu Zhang <[email protected]>
scsi: target: Fix demo-mode dynamic ACL dev-entry UAF vs LUN teardown
Mike Christie <[email protected]>
scsi: target: Move I/O path stats to per CPU
Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
Ian Bridges <[email protected]>
ksmbd: do not read past the DACL in the access denied debug message
Qu Wenruo <[email protected]>
btrfs: raid56: do not verify the content if there is no data checksum
Kevin Wang <[email protected]>
drm/amd/pm: populate unique ID for smu 13.0.7
Melissa Wen <[email protected]>
drm/amd/display: Signal PQ EOTF in FreeSync infopacket for DP HDR
Krunoslav Kovac <[email protected]>
drm/amd/display: Send PQ bit in AMD VSIF
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
Eva Kurchatova <[email protected]>
hugetlbfs: enforce F_SEAL_EXEC in setattr
Mikhail Gavrilov <[email protected]>
drm/amd/display: set allow_freesync before validating a new stream
Leo Liu <[email protected]>
drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg
Johannes Weiner <[email protected]>
mm: page_alloc: do not give all non-blocking requests reserve access
David Hildenbrand (Arm) <[email protected]>
mm/mremap: recheck PUDs under the page table lock
Josef Bacik <[email protected]>
mm/mremap: fix moving PUD leaves
Myeonghun Pak <[email protected]>
hwmon: (sht15) Stop deferred work before releasing its resources
Will Deacon <[email protected]>
tools: linux/types.h: Add 128-bit integer types for arm64 UAPI structures
Takashi Iwai <[email protected]>
ALSA: pcm: Prevent O_APPEND open on OSS streams
Takashi Iwai <[email protected]>
ALSA: pcm: Optimize cpu_latency_qos_*() calls
Cen Zhang <[email protected]>
ocfs2: cache the mount context for dentry lock callbacks
Christophe JAILLET <[email protected]>
ocfs2: constify struct ocfs2_lock_res_ops
Kyle Zeng <[email protected]>
mptcp: pm: kernel: use RCU to free endpoint listeners
Vincent Mailhol <[email protected]>
can: dev: can_dropped_invalid_skb: drop CAN XL frames on non-CAN XL devices
Matt Turner <[email protected]>
alpha: select SYSCTL_EXCEPTION_TRACE
Karl Mehltretter <[email protected]>
ocfs2/cluster: hold a reference on the heartbeat thread
Eric Dumazet <[email protected]>
inet: frags: bound the wmem charge of the socket completing a reassembly
Konstantin Khorenko <[email protected]>
selftests/core: fix unshare_test with large fs.nr_open
Al Viro <[email protected]>
selftests:core: test coverage for dup_fd() failure handling in unshare_fd()
Chengfeng Ye <[email protected]>
mm/ksm: mark migration stores with WRITE_ONCE()
Jesse Zhang <[email protected]>
drm/amdgpu: drop the gang leader reference when freeing gang jobs
Guenter Roeck <[email protected]>
hwmon: (pmbus) Check return value from pmbus_thermal_add_sensor()
Prike Liang <[email protected]>
drm/amdgpu: finish GPU recovery callbacks before restarting schedulers
Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: fix expansion of VMA_MIXEDMAP_BIT VMAs
Daejun Park <[email protected]>
xfs: don't skip free extents of the longest length in a whole-AG FITRIM
Chao Yu <[email protected]>
f2fs: fix to fetch ino via ino_of_node() under cache lock
David Hildenbrand (Arm) <[email protected]>
mm/memory-tiers: unregister empty tiers outside memory_tier_lock
Amir Goldstein <[email protected]>
ovl: inherit FMODE_NONOTIFY when opening directory realfiles
Darong Lu <[email protected]>
libceph: initialize CRUSH choose argument weights
Chao Yu <[email protected]>
f2fs: fix to update superblock crc in sanity_check_area_boundary()
David Hildenbrand (Arm) <[email protected]>
mm/userfaultfd: wake waiters when registration modes are removed
David Hildenbrand (Arm) <[email protected]>
mm/userfaultfd: write-lock the VMA before waking waiters when unregistering
Jake Labelle <[email protected]>
nilfs2: validate directory position after llseek in readdir
Linlin Yang <[email protected]>
wifi: mt76: mt7996: fix PCI device reference leak in mt7996_pci_init_hif2()
Christian Brauner <[email protected]>
proc: don't let an entry below /proc/<pid>/net be a mountpoint
Peter Ujfalusi <[email protected]>
ALSA: compress: fix buffer leak on failed SET_PARAMS
Eklavya Singh <[email protected]>
ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute
guolingxing <[email protected]>
btrfs: prevent deleting the wrong subvolume by ID
Rik van Riel <[email protected]>
mm/memcontrol: fix stuck FLUSHING_CACHED_CHARGE bit on isolated cpus
Yao Yiqi <[email protected]>
fbcon: Rebuild rotated font buffer on font change
Priyank Rathod <[email protected]>
PCI/AER: Fix memory leak in aer_recover_work_func() when pci_dev is missing
Vernon Yang <[email protected]>
selftests/mm: include kselftest.h in vm_util.h
Ian Bridges <[email protected]>
ksmbd: enforce the read-only share flag when creating a stream
David Hildenbrand (Arm) <[email protected]>
mm/ksm: fix use of a freed anon_vma at swap-in
Ian Bridges <[email protected]>
ksmbd: revert fsids on durable reconnect and replay failure
Yizhou Zhao <[email protected]>
9p/xen: drain response work after unbinding IRQ
Josef Bacik <[email protected]>
mm/hugetlb: fix endless write fault on a leftover uffd bit
Eric Dumazet <[email protected]>
inet: frags: limit the truesize of a reassembly queue
Sean Christopherson <[email protected]>
KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
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
Zeng Heng <[email protected]>
f2fs: Fix not used variable 'index'
Gianluca Balboni <[email protected]>
ASoC: amd: yc: Add DMI quirk for HP OmniBook 3 Laptop 16-by0xxx
Runyu Xiao <[email protected]>
media: sti: delta: use unaligned accessors for MJPEG SOF fields
Niklas Cassel <[email protected]>
ata: libata: Do not leave ata_host_stop() registered when activation fails
Armaan Sandhu <[email protected]>
lib/cmdline: fix get_options() count and overflow with large ranges
Shuvam Pandey <[email protected]>
lib/tests: extend cmdline KUnit with next_arg() tests
Olivier Kaloudoff <[email protected]>
drm/amdkfd: stop restore retries on device unplug
Brandon Williams <[email protected]>
power: supply: qcom_battmgr: Notify charger supplies of online changes
Mario Limonciello <[email protected]>
platform/x86/amd/pmf: Add AMDI0112 ACPI ID
Myeonghun Pak <[email protected]>
fbdev: nvidia: Release write-combining handle on probe failure
Maurizio Casciano <[email protected]>
power: supply: core: Honor supplied-from with CONFIG_OF=y
Sebastian Reichel <[email protected]>
power: supply: core: get rid of of_node
Thomas Weißschuh <[email protected]>
power: supply: core: use power_supply_for_each_psy()
Thomas Weißschuh <[email protected]>
power: supply: core: introduce power_supply_for_each_psy()
Sebastian Reichel <[email protected]>
power: supply: core: add power_supply_for_each_device()
Ricardo B. Marliere <[email protected]>
power: supply: core: make power_supply_class constant
Thomas Weißschuh <[email protected]>
power: supply: core: remove opencoded string_lower()
Francesco Orlando <[email protected]>
Input: xpad - add GameSir Nova Lite support
Myeonghun Pak <[email protected]>
wifi: mt76: mt7615: restore DBDC state after ext PHY failure
Niklas Cassel <[email protected]>
ata: libahci: Free the IRQs when activating a multi-IRQ host fails
Niklas Cassel <[email protected]>
ata: ahci: print the lpm policy on boot
Wentao Liang <[email protected]>
power: supply: ltc2941: Fix of_node reference leak in ltc294x_i2c_probe()
Olivier Kaloudoff <[email protected]>
ALSA: usb-audio: Add mic resolution quirk for Logitech Webcam C200
Pauli Virtanen <[email protected]>
ALSA: usb-audio: add volume quirks for MS LifeChat LX-3000
Cryolitia PukNgae <[email protected]>
ALSA: usb-audio: rename QUIRK_FLAG_MIXER_MIN_MUTE to QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE
Breno Leitao <[email protected]>
dcache: report a Tasks-RCU quiescent state in dentry_kill()
Guangshuo Li <[email protected]>
crypto: omap-sham - fix crypto engine cleanup
Fan Wu <[email protected]>
virtio_fs: read the vring size under virtio_fs_mutex in ->get_tree
Andrea Parri <[email protected]>
iommufd/iova_bitmap: Ensure that iova_bitmap_set() handles the full IOVA
Henrik Enquist <[email protected]>
ALSA: aloop: Update the PCM Slave controls for a matching playback
Henrik Enquist <[email protected]>
ALSA: aloop: Don't constrain playback params in notify mode
Takashi Iwai <[email protected]>
ALSA: aloop: Use guard() for mutex locks
Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: avoid broken uffd merge on mremap
Daeho Jeong <[email protected]>
f2fs: release a removed xattr node in roll-forward recovery
Miquel Raynal <[email protected]>
clk: nuvoton: ma35d1: Add missing WDT/WWDT parent clocks
Miquel Raynal <[email protected]>
dt-bindings: clock: ma35d1: Add missing WDT/WWDT parent clocks
Miquel Raynal <[email protected]>
dt-bindings: clock: ma35d1: Drop CLK_MAX_IDX define
Miquel Raynal <[email protected]>
clk: nuvoton: ma35d1: Keep the clock count in the driver
Sumit Kumar <[email protected]>
PCI: dwc: Set DMA_BYPASS bit in outbound IATU CTRL2 register
Lorenzo Stoakes (ARM) <[email protected]>
mm/mremap: correctly uncharge accountable VMAs in error path
Jianyun Gao <[email protected]>
dax: fix wrong error code returned from dax_dedupe_file_range_compare()
Hung-Jui Lin <[email protected]>
posix-timers: Report zero remaining time for disarmed SIGEV_NONE timers
Breno Leitao <[email protected]>
ACPI: APEI: accumulate the queued flag across error sections
Adrian Ambrozewicz <[email protected]>
gpiolib: cdev: don't set GPIOD_FLAG_IS_OUT
Sean Young <[email protected]>
media: serial_ir: Fix race condition where timer can be re-armed
Christian Brauner <[email protected]>
iomap: don't mark unwritten parts of a folio uptodate
Hitesh Patel <[email protected]>
media: qcom: camss: vfe-17x: Fix write master selection for RDI lines
Vladimir Oltean <[email protected]>
PCI: cadence: Preserve all error codes in cdns_plat_pcie_probe()
Linmao Li <[email protected]>
PCI: cadence: Store the core controller in platform drvdata
Oleg Nesterov <[email protected]>
signalfd: don't dequeue the forced fatal signals
Giorgi Kobakhia <[email protected]>
ocfs2: fix array out of bound access in __ocfs2_find_path()
Edward Adam Davis <[email protected]>
ocfs2: fix oob in __ocfs2_find_path
Zhan Xusheng <[email protected]>
f2fs: fix defragment writeback range truncation on 32-bit
Zhiguo Niu <[email protected]>
f2fs: fix to adjust appropirate defragment pg_end
sung byeongchan <[email protected]>
ceph: validate MDS reply fragtree split array length
Tiezhu Yang <[email protected]>
LoongArch: Fix one-shot limitation for perf hardware breakpoints
Nikolaos Karaolidis <[email protected]>
fs: don't lose inodes that another LRU walker is isolating
Qi Xi <[email protected]>
mm/page_isolation: fix UBSAN shift-out-of-bounds warning
Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Restore the codec device type on unbind
Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Allocate the private data at codec driver bind
Hitesh Patel <[email protected]>
media: qcom: camss: vfe: Fix VFE reset while another line is streaming
Bryan O'Donoghue <[email protected]>
media: qcom: camss: Propagate vfe_reset error up the callstack
Bryan O'Donoghue <[email protected]>
media: qcom: camss: Move vfe_disable into a common routine where applicable
Joanne Koong <[email protected]>
fuse: don't drop destination page cache on a zero byte copy reply
Daniel Phillips <[email protected]>
amdkfd: Fix memory availability double accounting of kfd pinned objects
Francesco Dolcini <[email protected]>
arm64: dts: freescale: imx8mp-verdin-yavia: fix external GPIOs
Nikolaos Karaolidis <[email protected]>
fs: rotate inodes whose page cache could not be dropped
Fan Wu <[email protected]>
power: supply: bq27xxx: Ensure poll work is cancelled on remove
Sahaj Chaudhari <[email protected]>
gpio: pca953x: Handle direction register read errors in IRQ paths
Andy Shevchenko <[email protected]>
gpio: pca953x: Utilise temporary variable for struct gpio_chip
Alexander Sverdlin <[email protected]>
tpm: tpm2_probe: propagate transport errors
Alexander Kochetkov <[email protected]>
Revert "Input: matrix_keypad - force switch rows to input mode"
Dmitry Torokhov <[email protected]>
Input: matrix_keypad - remove support for clustered interrupt
Dmitry Torokhov <[email protected]>
Input: matrix_keypad - switch to using managed resources
Dmitry Torokhov <[email protected]>
Input: matrix_keypad - consolidate handling of clustered interrupt
Dmitry Torokhov <[email protected]>
Input: matrix_keypad - avoid repeatedly converting GPIO to IRQ
Uwe Kleine-König <[email protected]>
Input: matrix_keypad - convert to platform remove callback returning void
Maciej Kucharek <[email protected]>
drm/amdgpu: reset SI ASIC on MacBookPros with VRAM at 0
Armin Wolf <[email protected]>
hwmon: (acpi_power_meter) Fix 18.45 TW bug
Alexey Charkov <[email protected]>
nvmem: rockchip-otp: Serialize reads
Rosen Penev <[email protected]>
nvmem: rockchip-otp: alloc clks with main struct
Takashi Iwai <[email protected]>
ALSA: emux: Stop voices before freeing zones in all cases
Oswald Buddenhagen <[email protected]>
ALSA: emux: simplify snd_sf_list.callback handling
Oswald Buddenhagen <[email protected]>
ALSA: emux: centralize & improve patch info validation
Oswald Buddenhagen <[email protected]>
ALSA: emu10k1: prune vestiges of SNDRV_SFNT_SAMPLE_{BIDIR,REVERSE}_LOOP support
Jesse Zhang <[email protected]>
drm/amdgpu: reject CS chunks too large for kvmalloc()
Tvrtko Ursulin <[email protected]>
drm/amdgpu: Use (v)memdup_array_user in amdgpu_cs_pass1
Nickolai Zeldovich <[email protected]>
mm/mlock: use a long for the page count in mlock_fixup()
Wentao Liang <[email protected]>
xen/gntdev: Fix gntdev_dmabuf ref leak in dmabuf_exp_wait_released()
Yao Yiqi <[email protected]>
fbcon: Retry rotated font allocation after failure
Bartu Alev <[email protected]>
platform/x86: asus-wmi: fix TUF keyboard power state shutdown naming
Lukas Wunner <[email protected]>
platform/x86: Use device_show_string() helper for sysfs attributes
Lukas Wunner <[email protected]>
driver core: Add device_show_string() helper for sysfs attributes
Marc Zyngier <[email protected]>
KVM: arm64: vgic: Stop the target vcpu when disabling LPIs
Peter Ujfalusi <[email protected]>
ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn
Takashi Iwai <[email protected]>
ALSA: emux: Fix UAF of soundfont zones at note-on
Takashi Iwai <[email protected]>
ALSA: synth: Use guard() for spin locks
Takashi Iwai <[email protected]>
ALSA: emux: Use standard print API
Oswald Buddenhagen <[email protected]>
ALSA: emux: fix validation of snd_emux.num_ports
Oswald Buddenhagen <[email protected]>
ALSA: emux: prune unused parameter from snd_soundfont_load_guspatch()
Myeonghun Pak <[email protected]>
leds: ktd2692: Pass context to regulator cleanup
Runyu Xiao <[email protected]>
block: amiflop: synchronize flush timer before track flush
Joanne Koong <[email protected]>
fuse: don't launder folios of a bad inode
Devin Wittmayer <[email protected]>
wifi: mt76: move the channel survey when the channel changes
Stanley Jhu <[email protected]>
scsi: ufs: core: Add a helper for clearing hba->outstanding_reqs
Chao Yu <[email protected]>
f2fs: fix to use bio_in_atomic() in f2fs_read_end_io()
Tal Zussman <[email protected]>
block: introduce bio_in_atomic()
Kaixuan Li <[email protected]>
f2fs: bound the SIT/NAT bitmaps by the checkpoint pack
Jiri Slaby (SUSE) <[email protected]>
serial: 8250_exar: store the GPIO platform device in struct exar8250
Parker Newman <[email protected]>
serial: exar: fix checkpach warnings
Parker Newman <[email protected]>
serial: exar: add optional board_init function
Andy Shevchenko <[email protected]>
serial: 8250_exar: Clear interrupts before registering handler
Paolo Abeni <[email protected]>
mptcp: fix subflow bitfield misuse
Janne Grunau <[email protected]>
wifi: brcmfmac: cfg80211: Report port_authorized for 4-way HS offload
Runyu Xiao <[email protected]>
IB/hfi1: Shutdown self-rearming timers before freeing
Jiaming Zhang <[email protected]>
nilfs2: force clear dirty state when restoring from the shadow map
Henry Martin <[email protected]>
drm/amdkfd: fix doorbell allocation race creating duplicate allocations
Vladyslav Tymoshchuk <[email protected]>
ASoC: qcom: q6apm-dai: wrap the position of a full ring to 0
Mikulas Patocka <[email protected]>
dm-bufio: fix non-working memory limit
Geraldo Nascimento <[email protected]>
PCI: rockchip: Drive at 2.5 GT/s, error other speeds
Martin Fuzzey <[email protected]>
serial: sc16is7xx: fix data corruption due to unexpected xon/xoff
Guangshuo Li <[email protected]>
irqchip/imx-intmux: Fix runtime PM teardown on remove
Uwe Kleine-König <[email protected]>
irqchip/imx-intmux: Convert to platform_driver::remove_new() callback
Karl Mehltretter <[email protected]>
irqchip/atmel-aic[5]: Disable interrupts in the irq_pm_shutdown() callbacks
Ruide Cao <[email protected]>
mptcp: fix MP_CAPABLE token migration when cloning reqsk
Luxiao Xu <[email protected]>
mm/memory: constrain generic_access_phys() to page boundary
Zhiling Zou <[email protected]>
mm/page_table_check: skip zero pages
Sung Byeongchan <[email protected]>
virtiofs: validate fixed-output response length
Yuto Ohnuki <[email protected]>
virtiofs: add FUSE protocol validation
Hugo Villeneuve <[email protected]>
serial: sc16is7xx: declare MCR and IER as volatile registers
Hugo Villeneuve <[email protected]>
serial: sc16is7xx: add comments for lock requirements
Hugo Villeneuve <[email protected]>
serial: sc16is7xx: declare SPR/TLR/XOFF2 register as volatile
Daeho Jeong <[email protected]>
f2fs: disallow mmap write and data-modifying fallocate on atomic files
Chao Yu <[email protected]>
f2fs: atomic: fix to forbid dio in atomic_file
Joe Damato <[email protected]>
mm: memcontrol: raise MEMCG_MAX for charges that fail without reclaiming
Nanzhe Zhao <[email protected]>
f2fs: remove mappedtodisk flag usage in mmap write path
Chao Yu <[email protected]>
f2fs: convert f2fs_read_single_page() to use folio
Chao Yu <[email protected]>
f2fs: convert f2fs_mpage_readpages() to use folio
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
Marc Zyngier <[email protected]>
KVM: arm64: Move IN_GUEST_MODE ahead of state being loaded
David Hildenbrand (Arm) <[email protected]>
mm: disallow ioremap'ing ordinary RAM in generic_access_phys()
Marco Scardovi <[email protected]>
platform/x86: asus-wmi: Serialize WMI method evaluations with a mutex
Runyu Xiao <[email protected]>
mailbox: altera: shut down RX polling timer on channel teardown
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
Kenneth Feng <[email protected]>
drm/amd/pm:restate all customized OD features on every table upload for smu 13.0.0/smu 14.0.2
Daeho Jeong <[email protected]>
f2fs: return -EIO for a lost inode block after cp_error
Ridong Chen <[email protected]>
mm/mglru: fix ineffective memory protection for non-kswapd reclaim
Takashi Iwai <[email protected]>
ALSA: line6: Handle period elapsed calls outside the locks
Takashi Iwai <[email protected]>
ALSA: line6: Use guard() for spin locks
Thorsten Blum <[email protected]>
init: fix early boot crash with bare hostname parameter
Azeem Shaikh <[email protected]>
init/version.c: Replace strlcpy with strscpy
Ethan Nelson-Moore <[email protected]>
ata: sata_inic162x: remove dangerous broken driver
Vincent Donnefort <[email protected]>
KVM: arm64: Fix MMFR0 TGRAN advertisement for pVMs
Wentao Liang <[email protected]>
drm/msm/dsi: Fix VM leak in dsi_tx_buf_alloc_6g()
Myeonghun Pak <[email protected]>
ASoC: stm: stm32_i2s: request IRQ after regmap initialization
bui duc phuc <[email protected]>
ASoC: stm: stm32_i2s: Drop redundant error messages
Ryusuke Konishi <[email protected]>
nilfs2: ignore non-fatal signals during synchronous log write wait
Ryusuke Konishi <[email protected]>
nilfs2: correct return value kernel-doc descriptions for the rest
Bartosz Golaszewski <[email protected]>
dmaengine: qcom: bam_dma: free interrupt before the clock in error path
Vishnu Santhosh <[email protected]>
dmaengine: qcom: bam_dma: Defer IRQ trigger type to device tree
Tom Verdonck <[email protected]>
hwmon: (tmp108) Fix jiffies wraparound in conversion-ready check
Yunpeng Tian <[email protected]>
udf: validate the device specification EA before using it
Hungyu Lin <[email protected]>
mm/page-writeback: avoid 32-bit overflow in dirty threshold shares
Marek Czernohous <[email protected]>
drm/nouveau: disable the fence uevent work instead of just cancelling it
Marek Czernohous <[email protected]>
drm/nouveau/pci: use config-space MSI rearm on MCP79/MCP7A (NVAC)
Mehmet Fide <[email protected]>
wifi: rtw88: widen the ATIM window while an AP interface is up
Mehmet Fide <[email protected]>
wifi: rtw88: usb: only let the frames a dozing station needs use the after-DTIM queue
Mehmet Fide <[email protected]>
wifi: rtw88: usb: bound what the driver feeds the after-DTIM queue
Mehmet Fide <[email protected]>
wifi: rtw88: usb: route bmc frames via the high queue only for DTIM delivery
Guanglei Zhu <[email protected]>
apparmor: check accept index + 1 is in bounds
Yeoreum Yun <[email protected]>
coresight/etm4: fix missing disable active config
Zhiling Zou <[email protected]>
ipmr: only copy pktinfo to cache reports
Eric Dumazet <[email protected]>
ipmr: prevent info-leak in pmr_cache_report()
David Hildenbrand (Arm) <[email protected]>
mm/madvise: fix data loss from MADV_FREE on a KSM page
Yehyeong Lee <[email protected]>
nvme-auth: fail when the controller does not authenticate itself
Mark O'Donovan <[email protected]>
nvme-auth: add flag for bi-directional auth
Weibin Liu <[email protected]>
spi: cadence-xspi: reject SDMA transfers larger than the requested length
Chris Mason <[email protected]>
mm/shmem: honour F_SEAL_EXEC when an ACL is set
Kyle Zeng <[email protected]>
mm/page_vma_mapped: continue past nonmatching huge PMDs
Jiangshan Yi <[email protected]>
ceph: fix longname buffer overflow in ceph_fname_to_usr()
Ido Schimmel <[email protected]>
ipmr, ip6mr: validate packets injected into the register vif on xmit
Kuniyuki Iwashima <[email protected]>
ipmr: Call ipmr_fib_lookup() under RCU.
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
Fuad Tabba <[email protected]>
KVM: arm64: Validate the host vCPU's VM before reading it under pKVM
Michal Pecio <[email protected]>
usb: xhci: Fix bounce buffer overflow
Yuejie Shi <[email protected]>
fs/ntfs3: validate the EA value length in ntfs_read_ea()
Peter Ujfalusi <[email protected]>
ALSA: compress: reject buffer geometry change on gapless next_track
Takashi Iwai <[email protected]>
ALSA: compress_offload: Use automatic cleanup of kfree()
Pedro Falcato <[email protected]>
mm/madvise: atomically clear the young bit on THP MADV_COLD
Vaibhav Nagare <[email protected]>
bnxt_en: don't leave an XDP program installed when the open fails
Martin Belanger <[email protected]>
nvme: make the DH-HMAC-CHAP secret attributes readable by root only
Jun Yang <[email protected]>
sctp: re-point retained control chunks on association migration
David Lee <[email protected]>
sctp: hold shkey across socket migration
Seungjin Bae <[email protected]>
usb: typec: ucsi: ccg: Validate altmode index in GET_CURRENT_CAM response
Jérémy Jean <[email protected]>
crypto: ecc - Handle exceptional points in Shamir multiplication
Yifei Gao <[email protected]>
misc: fastrpc: fix double-free in fastrpc_map_attach() error path
Kumari Pallavi <[email protected]>
misc: fastrpc: Rename phys to dma_addr for clarity
Sergey Senozhatsky <[email protected]>
ext4: fix ABBA deadlock in ext4_rmdir()
Gabriel Krisman Bertazi <[email protected]>
ext4: Move CONFIG_UNICODE defguards into the code flow
Lucas De Marchi <[email protected]>
drm/panel: Fix build error on !CONFIG_OF
Runyu Xiao <[email protected]>
hte: tegra194-test: shut down timer before GPIO release
Punnay Sharma <[email protected]>
staging: media: av7110: fix sp8870 initialization failure state
Guangshuo Li <[email protected]>
media: i2c: ov5647: fix power cleanup on remove
Sakari Ailus <[email protected]>
platform/x86: int3472: Fix uninitialised variable warning
Casey Connolly <[email protected]>
drm/panel: ebbg-ft8719: Set prepare_prev_first
Anusha Srivatsa <[email protected]>
panel/ebbg-ft8719: Use refcounted allocation in place of devm_kzalloc()
Anusha Srivatsa <[email protected]>
drm/panel: Add new helpers for refcounted panel allocatons
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
Chao Yu <[email protected]>
f2fs: fix to check continuousness in f2fs_sync_meta_pages() correctly
Sean Young <[email protected]>
media: ene_ir: Ensure teardown is done in the correct order
Gaurav Batra <[email protected]>
powerpc/pseries/iommu: Add TCEs for 16GB pages when RAM is pre-mapped
Christopher Lusk <[email protected]>
m68k: Fix seccomp filtering on ColdFire and 68000
Daniel Palmer <[email protected]>
m68k: Fix task info flags handling for 68000
Jiaming Zhang <[email protected]>
gfs2: reject invalid inode sizes
Tom Verdonck <[email protected]>
hwmon: (tmp102) Fix jiffies wraparound in conversion-ready check
Ali Resool Tuama <[email protected]>
USB: quirks: add USB_QUIRK_WINDOWS_CONFIG_REQ_SIZE for GameSir G7 SE
Nikhil Solanke <[email protected]>
usb: core: Add quirk for 255-bytes initial config read
Joseph Qi <[email protected]>
ocfs2: restrict OCFS2_INVALID_SLOT suballoc slot to system inodes
Runyu Xiao <[email protected]>
ALSA: usb-audio: Protect Roland control activation
Robin Snyders <[email protected]>
power: supply: qcom_smbx: validate battery float voltage
Fuad Tabba <[email protected]>
KVM: arm64: timers: Compute an offset-applied CVAL from the current count
Jiale Yao <[email protected]>
iio: adc: ad7192: reject devices without match data
Andy Shevchenko <[email protected]>
iio: adc: ad7192: Revert "properly check spi_get_device_match_data()"
Kathiravan Thirumoorthy <[email protected]>
arm64: dts: qcom: ipq9574: Wire up USB3 PHY PIPE clock to GCC
Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix SBGGR10 Bayer pattern
Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix ISC_PFG_CFG0_BPS macro name typo
Fabio Cesari <[email protected]>
iio: light: isl29028: fix runtime PM reference leak on error paths
Judith Mendez <[email protected]>
arm64: dts: ti: k3-am625-sk-common: Set eMMC clock pin as OUTPUT
Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix WB offset and gain register field masking
Balakrishnan Sambath <[email protected]>
media: microchip-isc: store the unshifted PFE_CFG0 BPS value
Koichiro Den <[email protected]>
PCI: endpoint: pci-epf-vntb: Manage virtual NTB and PCI bus lifetime
Abel Vesa <[email protected]>
soc: qcom: pmic_glink: Fix device access from worker during suspend
Stanislaw Gruszka <[email protected]>
wifi: mac80211: queue frames while off-channel
Kexin Sun <[email protected]>
wifi: mac80211: update outdated comment
Laxman Acharya Padhya <[email protected]>
wifi: rtw89: cap firmware section_num before parsing
Ping-Ke Shih <[email protected]>
wifi: rtw89: fw: consider checksum length of security data
Jakub Szczudlo <[email protected]>
iio: adc: ti-ads1100: Fix incorrect reading when datarate changed in single mode
Sean Young <[email protected]>
media: meson-ir-tx: Ensure rc_free_device() is called on unbind
Uwe Kleine-König <[email protected]>
media: meson-ir-tx: Simplify and improve using dev_err_probe()
Uwe Kleine-König <[email protected]>
media: meson-ir-tx: Convert to use devm_rc_register_device()
Valentin Kindschi <[email protected]>
Bluetooth: hci_sync: pause advertising for the scan address update
Magnus Lindholm <[email protected]>
alpha: load the MMU context when switch_mm() switches the current task
Josef Bacik <[email protected]>
blk-mq: end the request if getting a keyslot fails
Eric Biggers <[email protected]>
lib/crypto: mips: Disable Octeon SHA code on little-endian kernels
Sven Eckelmann <[email protected]>
batman-adv: tt: don't drop local events queued during TVLV update
Sven Eckelmann <[email protected]>
batman-adv: tt: only update flags for TT events
Sven Eckelmann <[email protected]>
batman-adv: tt: ignore ROAM flag of received ADD changes
Sven Eckelmann <[email protected]>
batman-adv: tt: send ROAM_ADV on each roamed back client
Sven Eckelmann <[email protected]>
batman-adv: tt: clear ROAM flag when re-adding a pending local client
Sven Eckelmann <[email protected]>
batman-adv: tt: only transmit local ROAM flag together with DEL
Sven Eckelmann <[email protected]>
batman-adv: stop originator purge worker before freeing TT
Sven Eckelmann <[email protected]>
batman-adv: tpmeter: fix u32 truncation of reported bytes
Chengfeng Ye <[email protected]>
batman-adv: Close OGM aggregation before transmission
Sven Eckelmann <[email protected]>
batman-adv: Limit number of aggregated packets directly
Daehyeon Ko <[email protected]>
crypto: algif_skcipher - rewind rounded output bytes
Abhishek Dubey <[email protected]>
powerpc/bpf: fix buffer overflow in JIT for large BPF programs
Jan Kara <[email protected]>
udf: Make sure there's enough space for LVID implementation use field
Jan Kara <[email protected]>
udf: Avoid invalid LVID used on mount
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
Igor Velkov <[email protected]>
genirq/kexec: Do not take the bus lock of an interrupt chip on the crash path
Valentin Caron <[email protected]>
perf cs-etm: fix a compilation issue in cs_etm_decoder__set_tid()
Zhao Gongyi <[email protected]>
ata: libata-scsi: reject data-in commands with a data-out buffer
Oliver Hartkopp <[email protected]>
can: raw, isotp: copy socket options outside of lock_sock()
SJ Park <[email protected]>
mm/damon/core: move static variable last_nr_regions to damon_ctx
Ido Schimmel <[email protected]>
vxlan: Stop rejecting dynamic FDB entries with a nexthop ID
Stephen Brennan <[email protected]>
powerpc/pseries/iommu: Restore CONFIG_IOMMU_API dependency
Ramin Moussavi <[email protected]>
microblaze: restore the ABI argument home area below pt_regs (PTO)
Kiryl Shutsemau (Meta) <[email protected]>
arm64: sdei: Preserve the interrupted context's exception registers
Kiryl Shutsemau (Meta) <[email protected]>
arm64: sdei: Run the event handler on the kernel vectors
Guanglei Zhu <[email protected]>
ceph: clamp the inline data length in ceph_fill_inline_data()
Oliver Hartkopp <[email protected]>
can: protect the receive lists with a per-device lock
Oliver Hartkopp <[email protected]>
can: replace ARPHRD_CAN type checks with can_get_ml_priv()
Marco Ziliani <[email protected]>
ata: libata-pmp: disable the SEMB port on Marvell 88SM9705
Thorsten Blum <[email protected]>
x86/boot: Fix off-by-one error in sme_clear_pgd()
Jinjie Ruan <[email protected]>
arm64: kexec_file: Fix elf_headers memory leak in retry loop
Akshay Jindal <[email protected]>
iommu/amd: Skip non-IVMD entries when parsing IVRS memory definitions
Breno Leitao <[email protected]>
x86/nmi: Ignore negative NMI handler durations
Danish Khateeb <[email protected]>
perf/core: Don't send SIGTRAP after exec removed the event
Shao Mingyin <[email protected]>
nvmet: bound the traddr and trsvcid configfs writes
Imre Kaloz <[email protected]>
MIPS: sgi-ip32: Leave MACE PCI control alone in config accesses
Imre Kaloz <[email protected]>
MIPS: sgi-ip32: Mask MACE PCI interrupts in CRIME only
Imre Kaloz <[email protected]>
MIPS: mm: Fix the cache error vector jump for XKPHYS kernels
Matthias Goergens <[email protected]>
udf: don't use eloc after the end of the unallocated space table
Matthias Goergens <[email protected]>
udf: fix preallocation discarding before an empty allocation extent
Matthias Goergens <[email protected]>
udf: check the unallocated space table when it is loaded
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
Hungyu Lin <[email protected]>
ext2: preserve IOMAP_F_DIRTY for extending direct writes
Sinan Turunc <[email protected]>
ALSA: usx2y: Guard the playback copy
Sinan Turunc <[email protected]>
ALSA: usx2y: Require a buffer of two URBs
Wentao Liang <[email protected]>
ALSA: caiaq: free the EP4 URB when input setup fails
Sinan Turunc <[email protected]>
ALSA: line6: Reject capture buffers smaller than two packets
YuanZhe Liu <[email protected]>
ALSA: usx2y: Refuse a retried DSP load after a failure
YuanZhe Liu <[email protected]>
ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close
Alex Kazinsky <[email protected]>
ALSA: cs46xx: Handle SCB creation failures before dereferencing
Chris Simpson <[email protected]>
ALSA: hda/realtek: Enable bass speakers on Alienware m17 R3
HyeongJun An <[email protected]>
ALSA: ump: Fix dropped data bytes at UMP System message conversion
Ilia Mirkin <[email protected]>
drm/nouveau/devinit/gf100-: try to avoid double-running vbios scripts
Rosen Penev <[email protected]>
drm/nouveau/nvkm: clear use.enabled when subdev init fails
Sasha Levin <[email protected]>
nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for KIOXIA XG10d
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
Jesse Zhang <[email protected]>
drm/amdgpu: don't drop the gang dependency fence twice
renpanpan <[email protected]>
drm/amdgpu: Only enable HDMI audio if display supports it
Erhan Bilgili <[email protected]>
drm/amdgpu: Fix duplicate dependency fence releases
Kylie C <[email protected]>
drm/amd/display: Don't select zero V_TOTAL_MIN/MAX on seamless boot
Alex Hung <[email protected]>
drm/amd/display: Avoid closing unowned DDC pins
Milan Milicevic <[email protected]>
drm/amdgpu: publish IH enabled before PSP programs IH_RB_CNTL
Milan Milicevic <[email protected]>
drm/amdgpu: clear RB_OVERFLOW bit when enabling interrupts for navi10_ih
Jesse Zhang <[email protected]>
drm/amdgpu: keep the CS user fence BO in GTT
Jesse Zhang <[email protected]>
drm/amdgpu: parse CS IBs at the BO offset their VA mapping starts at
Yilin Zhang <[email protected]>
mptcp: do not use Fast Open on MP_JOIN subflows
Alexei Starovoitov <[email protected]>
net: reject a negative TCP header offset in qdisc_pkt_len_segs_init()
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
David Hildenbrand (Arm) <[email protected]>
mm/gup: check for overflow when converting nr_pages to bytes in GUP-fast
Chris Mason <[email protected]>
mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast
Liu Changjie <[email protected]>
can: peak_usb: pcan_usb_fd_decode_buf(): accept short uCAN end-of-list records
ChunYuZhiQiang <[email protected]>
can: dev: can_fill_info(): don't wake up controller if interface is down
Oliver Hartkopp <[email protected]>
can: proc: skip stats calculation after reset in can_stat_update()
Runyu Xiao <[email protected]>
can: proc: reset pkg_stats atomics individually
Oliver Hartkopp <[email protected]>
can: isotp: check the return values of can_rx_register() in isotp_bind()
Cunhao Lu <[email protected]>
can: dev: can_put_echo_skb(): free skb on invalid echo index
Kaixuan Li <[email protected]>
can: isotp: check the frame type, not just the length
Christoph Hellwig <[email protected]>
xfs: fix recovery of partial attr removals
Daejun Park <[email protected]>
xfs: clamp the pNFS layout range to the maximum file size
Daejun Park <[email protected]>
xfs: cap the block count of xfs_iomap_write_direct() at one extent
Daejun Park <[email protected]>
xfs: clamp a pNFS LAYOUTCOMMIT extent before computing its end
Daejun Park <[email protected]>
xfs: mark the inode preallocated for pNFS write layouts past EOF
Zhe Liu <[email protected]>
blk-iocost: account flush sequence latency only once
Reid Downing <[email protected]>
xfs: fix wrong compat fields in xfs_ioctl32_bstat_copyin()
Hungyu Lin <[email protected]>
block: Return the soft block size for compat BLKBSZGET
Hungyu Lin <[email protected]>
inotify: do not coalesce rename events
chenglong.ma <[email protected]>
vduse: fix VA/PA confusion in the coherent page fault path
Esben Haabendal <[email protected]>
drm/bridge: nwl-dsi: Limit LCDIF specific sync override
Esben Haabendal <[email protected]>
drm/bridge: nwl-dsi: Cleanup endpoint mux control selection
Yuho Choi <[email protected]>
vdpa/snet: Don't discard the DPU error in snet_send_ctrl_msg()
Yuho Choi <[email protected]>
iommu/virtio: Reset device before deleting virtqueues on probe failure
Kyle Zeng <[email protected]>
net/sched: sch_qfq: prevent aggregate self-replacement
Jianyun Gao <[email protected]>
xfs: fix temporary cursor leak in btree shift corruption paths
Naman Jain <[email protected]>
x86/init: Initialize wall clock in get_rtc_noop()
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: do not read the entry array of an empty xattr 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
T.J. Mercier <[email protected]>
mm: memcontrol: fix NULL pointer deref and UAF from high_work_func() on dying memcg
Hungyu Lin <[email protected]>
mm/migrate: untag addresses when querying page nodes
Chris Down <[email protected]>
mm: make swapoff interruptible when unusing mms/shmem
Samarth Narang <[email protected]>
mm/ksm: keep soft-dirty when merging a page
Li Zhe <[email protected]>
mm/hugetlb: fix mremap move length truncation
Mohit Sharma <[email protected]>
ASoC: qcom: q6apm: Guard callbacks until probe data is ready
Valentin Kindschi <[email protected]>
Bluetooth: hci_sync: re-enable legacy advertising on resume
Sean Christopherson <[email protected]>
KVM: x86: Unconditionally reset MMU context when emulating INIT
Sean Christopherson <[email protected]>
KVM: x86/mmu: Cap number of parent PTEs per SP at 1000 (the arbitrary rmap limit)
Sean Christopherson <[email protected]>
KVM: nVMX: Process each host MSR entry at most once when unwinding failed VM-Entry
Sean Christopherson <[email protected]>
KVM: x86: Conditionally resched when restarting REP string emulation
Sean Christopherson <[email protected]>
KVM: x86/mmu: Conditionally resched when retrying gPTE walk on A/D update failure
Vas Zayarskiy <[email protected]>
hwmon: (aquacomputer_d5next) Avoid truncating scaled sensor readings
Guenter Roeck <[email protected]>
hwmon: (coretemp) Check for NULL platform device in hotplug callbacks
Guenter Roeck <[email protected]>
hwmon: (pmbus) Fix return value check from thermal zone registration
Guenter Roeck <[email protected]>
hwmon: (pmbus) Release devres allocated memory after devm_thermal_of_zone_register error
Guenter Roeck <[email protected]>
hwmon: (pmbus/q54sj108a2) Add missing NULL pointer check
Guenter Roeck <[email protected]>
hwmon: (peci/dimmtemp) Fix devres leak and UAF on concurrent unbind
Guenter Roeck <[email protected]>
hwmon: (nct6683) Fix incorrect struct cast in show_pwm() and store_pwm()
Guenter Roeck <[email protected]>
hwmon: (lm87) Fix drvdata type confusion in vrm_show() and vrm_store()
Guenter Roeck <[email protected]>
hwmon: (hp-wmi-sensors) Fix unbounded loops in scale_numeric_sensor()
Guenter Roeck <[email protected]>
hwmon: (hp-wmi-sensors) Avoid global struct mutation
Guenter Roeck <[email protected]>
hwmon: (asus_wmi_sensors) Avoid global struct mutation
Guenter Roeck <[email protected]>
hwmon: (aquacomputer_d5next) Check maxcollection when probing AQUAERO devices
Baek Kyu, Kim <[email protected]>
hwmon: (corsair-cpro) Cache fan target only after a successful command
Xia Yan <[email protected]>
veth: keep carrier off when resizing channels with a down peer
Fang Xieyan <[email protected]>
vringh: reject empty / undersized indirect descriptor tables
Fang Xieyan <[email protected]>
vringh: bound top-level re-entry into indirect tables
Tal Zussman <[email protected]>
vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path
Jose Maria Casanova Crespo <[email protected]>
drm/v3d: Initialize timedout_batches when running a CSD job
Hungyu Lin <[email protected]>
ext2: preserve completed DIO bytes when buffered fallback fails
Josef Bacik <[email protected]>
mm/filemap: don't lose a folio lock wakeup to a signal
Josef Bacik <[email protected]>
mm/memfd: make f_pos accesses atomic
Josef Bacik <[email protected]>
mm/mglru: don't use stack pointers when walking PUD and PMD tables
David Hildenbrand (Arm) <[email protected]>
mm/shmem: fix truncation of files containing only swapin-error markers
David Hildenbrand (Arm) <[email protected]>
mm/shmem: discard whole new large folios on fallocate rollback
Chris Mason <[email protected]>
mm/shmem: preserve data in clean folios when splitting fails
Chris Mason <[email protected]>
mm/shmem: stop retrying folios that cannot be split
Josef Bacik <[email protected]>
tmpfs: preserve explicitly disabled quota limits
Josef Bacik <[email protected]>
tmpfs: keep the quota soft limits of an unused id
Chris Mason <[email protected]>
mm/mempolicy: charge shared policy nodes
Ian Bridges <[email protected]>
ksmbd: grant a POSIX ACL group entry only to the group's members
Federico Musto <[email protected]>
net: atl1c: drop oversized RX frames instead of panicking
Lu Yao <[email protected]>
drm/i915/gem: Reset err for each fence entry
Ian Bridges <[email protected]>
ksmbd: require DELETE access for delete-on-close opens
Jamal Hadi Salim <[email protected]>
bpf: Fix skb_pull() BUG in __bpf_redirect_neigh()
YuanZhe Liu <[email protected]>
ALSA: hwdep: Serialize DSP load requests
YuanZhe Liu <[email protected]>
ALSA: usx2y: Initialize idle URBs before submitting streams
YuanZhe Liu <[email protected]>
ALSA: us122l: Fix NULL dereference at hwdep open and release
YuanZhe Liu <[email protected]>
ALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()
Evanshenf <[email protected]>
drm/loongson: Handle buffer mapping failures when clearing a BO
Evanshenf <[email protected]>
drm/loongson: Fix double free on BO initialization failure
Evanshenf <[email protected]>
drm/loongson: Fix framebuffer selection in async cursor updates
Shao Mingyin <[email protected]>
scsi: target: tcmu: Fix divide-by-zero in data_pages_per_blk store
Yuanhe Shu <[email protected]>
scsi: target: Verify the iSCSI ISID is null-terminated
Yingjie Wang <[email protected]>
scsi: bsg: Report synchronous data copyback failures
guolingxing <[email protected]>
btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()
Masafumi Suzuki <[email protected]>
sctp: account for chunk padding in sctp_init_cause()
Lucas Tanure <[email protected]>
drm/vc4: hdmi: enable scrambling before the TMDS clock starts
Lucas Tanure <[email protected]>
drm/vc4: hdmi: always cancel the scrambling work synchronously
Zhou Qiuyue <[email protected]>
ipv6: raw: fix use-after-free in rawv6_send_hdrinc()
Franck Baur <[email protected]>
net: jme: keep RX MAC clock enabled for WoL
Sven Eckelmann <[email protected]>
batman-adv: fix skb leak when hard_iface is being released
Sven Eckelmann <[email protected]>
batman-adv: dat: initialize orig_node of unfilled candidate slots
Yuanfu Xie <[email protected]>
9p: don't decrement a server-owned zero nlink
Yehyeong Lee <[email protected]>
9p/xen: validate the response size from the backend
Imre Kaloz <[email protected]>
scsi: aic7xxx: Use default settings on the SGI O2 onboard controllers
Toke Høiland-Jørgensen <[email protected]>
wifi: mac80211: reinstate IEEE80211_TX_CTL_AMPDU flag in ieee80211_tx_prep_agg()
Maíra Canal <[email protected]>
drm/vc4: Publish the output fence outside of job_lock
Zijing Yin <[email protected]>
wifi: cfg80211: fix out-of-bounds read in valid_rule()
Alex Kazinsky <[email protected]>
wifi: rsi: Skip TX aggregation setup for non-QoS frames
Weigang He <[email protected]>
wifi: mac80211: reload TDLS header pointer after skb_linearize()
André Draszik <[email protected]>
drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind
Sabrina Dubroca <[email protected]>
xfrm: espintcp: reorder operations within espintcp_init_sk
Qihang <[email protected]>
xfrm: interface: validate the IP header on xmit
Zhao Zhang <[email protected]>
9p: fix caches_show() out-of-bounds write
Yifei Gao <[email protected]>
9p/xen: fix refcount leak in p9_xen_response() on wrong tag
Michael Bommarito <[email protected]>
9p/trans_virtio: reject mount tags longer than NAME_MAX at probe
Chengfeng Ye <[email protected]>
xfrm: retry inexact policy lookup after node reinsertion
Noam D. Eliyahu <[email protected]>
tg3: Invert restart quirk logic to restrict SNP power-down bypass
Zhiling Zou <[email protected]>
ipmr: drop packets with unknown ingress VIF
Hungyu Lin <[email protected]>
posix-timers: Accept NULL clock_getres() output in stubs
Yingjie Wang <[email protected]>
scsi: handle out-of-range SG_SET_TIMEOUT values
Stanley Jhu <[email protected]>
scsi: ufs: bsg: Reject UIC commands with a non-zero result byte
Stanley Jhu <[email protected]>
scsi: ufs: bsg: Validate request_len before accessing request
Daeho Jeong <[email protected]>
f2fs: don't use truncate_inode_pages_final() on live inodes
Sahaj Chaudhari <[email protected]>
gpio: pca953x: Preserve wakeup accounting on parent IRQ failure
Henry Martin <[email protected]>
rds: fix out-of-bounds conn_path walks via handshake exthdrs
Donggeun Yoo <[email protected]>
tracing: Add the bucket size to expr_field_str()
Bui Viet Dung <[email protected]>
Bluetooth: selftest: Pin module for selftest debugfs file operations
Guangshuo Li <[email protected]>
mfd: ab8500: Fix child device leaks on probe failure
Diego Oliva <[email protected]>
smb: client: fix OOB read in the SMB_FIND_FILE_UNIX name scan
Jiayuan Chen <[email protected]>
mm/memcontrol: fix data-race on reading jiffies_64
Benjamin Coddington <[email protected]>
NFSv4/pnfs: Free the netid when draining a data-server address list
Kazuki Hanai <[email protected]>
media: mediatek: jpeg: Avoid context access after job finish
Rupesh Majhi <[email protected]>
iio: pressure: dps310: fix CFG_REG bit definitions
Ridham Khurana <[email protected]>
hwmon: (lm70) Fix rounding of negative temperatures
Ruoyu Wang <[email protected]>
media: adv748x: Fix endpoint reference leaks on probe failure
Pengpeng Hou <[email protected]>
media: require two-byte Cypress type 04 records
Ard Biesheuvel <[email protected]>
efi/libstub: arm64: Don't use the platform register x18
Ricardo Ribalda <[email protected]>
media: uvcvideo: Force UVC version for Avermedia GC515
Ricardo Ribalda <[email protected]>
media: uvcvideo: Add autosuspend quirk for AVerMedia Live Gamer HD 2
Alexander Sverdlin <[email protected]>
pwm: tiehrpwm: Clear period on disable to allow reconfiguration
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
Yi Cong <[email protected]>
wifi: mt76: mt792x: fix negative errno truncation in offload capability
Christian Borntraeger <[email protected]>
s390/vmcp: Initialize full session info to zero
Joseph Qi <[email protected]>
nfsd: fix NULL dereference in nfsd4_free_layout_stateid()
Rosen Penev <[email protected]>
net: bgmac: enable interrupts only after NAPI is ready
Rosen Penev <[email protected]>
mtd: rawnand: ndfc: use devm_platform_ioremap_resource()
Rosen Penev <[email protected]>
mtd: rawnand: ndfc: fix gcc uninitialized var
Arnd Bergmann <[email protected]>
mtd: rawnand: ndfc: add CONFIG_OF dependency
Rosen Penev <[email protected]>
mtd: rawnand: ndfc: use ioread32be/iowrite32be and allow COMPILE_TEST
Darrick J. Wong <[email protected]>
xfs: always report scrub errors in tracepoints
SJ Park <[email protected]>
mm/damon/core: remove unreachable damos charge_{target,addr}_from
SJ Park <[email protected]>
mm/damon/core: filter out damos address filter-split failed region
SJ Park <[email protected]>
mm/damon/core: skip applying scheme if region split for quota fails
Eric Biggers <[email protected]>
raid6: add missing vzeroupper to AVX2 code
Diego Oliva <[email protected]>
smb: client: reject FIND data areas that run past the received response
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: fix buffer overflow in corrupt inline attr structure
Darrick J. Wong <[email protected]>
xfs: allow softlimit with no hardlimit in quota scrub
Breno Leitao <[email protected]>
vxlan: Remove generic .ndo_get_stats64
Jeremy Kerr <[email protected]>
net: core: Implement dstats-type stats collections
Breno Leitao <[email protected]>
net: get stats64 if device if driver is configured
Qingfang Deng <[email protected]>
pppoe: delete session hash entries by pointer match
Liz Fong-Jones <[email protected]>
writeback: keep cleanup_offline_cgwb()'s scan out of syncs
Christian Loehle <[email protected]>
ACPI: CPPC: Accept requests to retain immutable autonomous selection
Christian Loehle <[email protected]>
ACPI: CPPC: Propagate errors from cross-CPU FFH calls
Christian Loehle <[email protected]>
ACPI: CPPC: Validate FFH register fields before hardware access
Ping-Ke Shih <[email protected]>
wifi: rtw88: TX report with long timeout for non-PCIE devices
Eric Biggers <[email protected]>
raid6: add missing vzeroupper to AVX-512 code
Eric Biggers <[email protected]>
xor: add missing vzeroupper to AVX code
Eric Biggers <[email protected]>
fsverity: Explicitly require FMODE_READ to retrieve hashes
Yuansheng Yang <[email protected]>
io_uring/rsrc: hold uring_lock across index-alloc put_user
Jens Axboe <[email protected]>
io_uring/poll: don't poll a writer for urgent data
Jens Axboe <[email protected]>
io_uring/poll: don't poll a writer for a read side hangup
Shang En Sim <[email protected]>
io_uring/poll: cancel all matching requests in one pass
Shuai Liu <[email protected]>
io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit
Jens Axboe <[email protected]>
io_uring/sqpoll: don't attach to a thread that is canceling
Chris Mason <[email protected]>
io_uring/cancel: drop sqd->lock while SQPOLL waits
Breno Leitao <[email protected]>
net: free_netdev: exit earlier if dummy
Til Kaiser <[email protected]>
mlxsw: Initialize register query payloads
Maciej W. Rozycki <[email protected]>
PCI: Skip Target Speed quirk on clamped ports with no link
Ximing Zhang <[email protected]>
hwmon: (coretemp) Fix handling of isolated SMT siblings
Nicolai Buchwitz <[email protected]>
serial: amba-pl011: keep transmitter enabled when disabling RS485
Gael Blivet <[email protected]>
ksmbd: look up stream size by exact xattr name
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]>
rxrpc: Fix return in rxrpc_recvmsg_data() for service calls
David Howells <[email protected]>
afs: Fix afs to abort the rxrpc call on send error
Chuck Lever <[email protected]>
NFSD: Map flex file layout IDs through the request's user namespace
Chuck Lever <[email protected]>
NFSD: Complete a cld upcall when copying its reply fails
Chuck Lever <[email protected]>
NFSD: Complete a cld upcall when the daemon closes the pipe
Chuck Lever <[email protected]>
NFSD: Move the cld upcall message out of the caller's stack frame
Jeff Layton <[email protected]>
nfsd: don't offer flexfiles layouts when NFSv3 isn't being served
Benjamin Coddington <[email protected]>
NFSv4/flexfiles: fail I/O to the data server once a lock is lost
Jeff Layton <[email protected]>
nfs: convert to using new filelock helpers
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
Diego Oliva <[email protected]>
smb: client: fix OOB read of the resume name sent in TRANS2_FIND_NEXT2
VeroFess <[email protected]>
smb: server: size directory name conversion buffer correctly
Darrick J. Wong <[email protected]>
xfs: fix buffer overruns in xfs_ioc_attr_list
Eduard Zateev <[email protected]>
smb: client: hold server info until cifsd exits
Jinwang Li <[email protected]>
Bluetooth: L2CAP: Ignore connection responses with wrong ident
Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Only accept connection responses to outstanding requests
Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Reject signalling responses in invalid states
Andrew Stellman <[email protected]>
nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()
Kamil Sawicki <[email protected]>
net: limit priority VLAN untag depth
Chris Mason <[email protected]>
backing-file: always end a queued write
Peter Ujfalusi <[email protected]>
ALSA: x86: hdmi: fix chmap array missing terminator entry
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()
John Johansen <[email protected]>
apparmor: on failed load ensure profile files are removed before parent
Joseph Qi <[email protected]>
ocfs2: read the xattr entry hash before defragmenting the bucket
Miquel Raynal (DAVE) <[email protected]>
mtd: rawnand: pl353: Fix debug prints
Jason Perlow <[email protected]>
wifi: brcmfmac: map msgbuf RX packet IDs bidirectional
Scott Gauche <[email protected]>
ALSA: hda/realtek: Fix audio after Windows reboot on ASUS Q423SA
Avi Weiss <[email protected]>
init/bootconfig: pass init arguments in documented order
Hungyu Lin <[email protected]>
fs: skip copy_file_range write limits when there is no data
Daehyeon Ko <[email protected]>
splice: avoid stale f_pos writeback on error
Chris Mason <[email protected]>
aio: fix NULL deref when a fault races ring truncation
Georgia Garcia <[email protected]>
apparmor: remove fs entries created by a failed policy load
Kyle Zeng <[email protected]>
tcp: fix reordering addition overflow in MTU probing
Kyle Zeng <[email protected]>
net/packet: check TX_RING fragments before memory accounting
John Johansen <[email protected]>
apparmor: fix refcount leak in aa_get_newest_profile()
Zhiling Zou <[email protected]>
tcp: check congestion control restriction first
Kunhai Dai <[email protected]>
blk-iocost: abort weight transfer on invalid donation weights
Josef Bacik <[email protected]>
mount: refuse setns() with a shared fs_struct again
Eric Biggers <[email protected]>
fsverity: Be more careful with return value of ->get_verity_descriptor()
Fang Xieyan <[email protected]>
kgdb: Fix buffer overflow in the qRcmd packet handler
Fang Xieyan <[email protected]>
kgdb: Fix buffer overflow in the 'M' and 'X' packet handlers
Fang Xieyan <[email protected]>
kgdb: Fix buffer overflow in the 'm' packet handler
Guixin Liu <[email protected]>
nvmet: Free the old negotiation state when restarting authentication
Guixin Liu <[email protected]>
nvmet: Finish the blk plug when integrity allocation fails
Guixin Liu <[email protected]>
nvmet-fc: Tear down the association when the admin queue allocation fails
Shao Mingyin <[email protected]>
nvmet-auth: fix error handling on CHALLENGE failure
Andrea Parri <[email protected]>
nvmet-fc: only send read data for successful commands
Weiming Shi <[email protected]>
nvmet-rdma: reject short connection requests
Tristan Madani <[email protected]>
ppp: fix stale pointer access after pskb_may_pull in ppp_ccp_peek
Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Keep runtime PM state in sync across codec remove/probe
Hongling Zeng <[email protected]>
ntfs3: fix mapping pairs bounds check for alignment
Hyeontae Lee <[email protected]>
fs/ntfs3: bound DeleteAttribute asize against rec->used in do_action
Hyeontae Lee <[email protected]>
fs/ntfs3: bound CreateAttribute asize against record_size in do_action
David Yang <[email protected]>
net: hisilicon: hisi_femac: Stop the receiver before releasing the RX ring
Xia Yan <[email protected]>
macvlan: fix passthru promiscuity accounting while down
Jesse Zhang <[email protected]>
drm/amdkfd: evict the queues only once for CRIU PROCESS_INFO
Jiale Yao <[email protected]>
drm/amdkfd: validate SRAT subtables before parsing
Luigi Lauro <[email protected]>
drm/amd/display: take a runtime PM reference only when a CRTC turns on
Zhongqiu Han <[email protected]>
cpufreq: stats: Fix potential out-of-bounds access in deferred reset
Tiezhu Yang <[email protected]>
LoongArch: Fix perf hardware breakpoint failure via installation
Tiezhu Yang <[email protected]>
LoongArch: Only send SIGTRAP signal if necessary in do_watch()
Tiezhu Yang <[email protected]>
LoongArch: Fix architectural naming typo for CSR_FWPS_SKIP
Tiezhu Yang <[email protected]>
LoongArch: Fix bitmask corruption in update_bp_registers()
Tiezhu Yang <[email protected]>
LoongArch: Remove redundant call in update_bp_registers()
Huacai Chen <[email protected]>
LoongArch: Use pa_to_nid()/nid_to_addrbase() rather than hard-code
Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Balance the runtime PM disable in codec remove
Eric Dumazet <[email protected]>
ixgbe: reserve TX timestamp after skb preparation
Peter Ujfalusi <[email protected]>
ALSA: hda: Reject codec reset on ASoC (ext_ops) buses
Dominik Maier <[email protected]>
loop: check for read-write open mode on LOOP_SET_STATUS in lo_compat_ioctl()
Paul Moses <[email protected]>
xsk: restore UMEM flags after failed pool assignment
Yingjie Wang <[email protected]>
tcp: limit tcp_tso_rtt_log to a valid shift count
Miquel Raynal <[email protected]>
dt-bindings: clock: ma35d1: Document the missing crystal inputs
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
sung byeongchan <[email protected]>
ceph: validate fscrypt auth blob length
Venky Shankar <[email protected]>
ceph: don't fail write_begin with -EAGAIN after flushing old snapc
Yuanfu Xie <[email protected]>
ceph: clamp MDS reply result code to the errno range
Jérémy Jean <[email protected]>
libceph: fix out-of-bounds reads from repeated CRUSH bucket entries
Jérémy Jean <[email protected]>
ceph: fix 32-bit overflow in readdir reply count check
Wentao Liang <[email protected]>
ceph: Fix mds session leak in __open_export_target_session()
Wentao Liang <[email protected]>
ceph: Fix xattr buffer leak in __send_cap()
Xiang Mei <[email protected]>
ceph: fix integer overflow in the snap trace bounds check
Yogesh Gaur <[email protected]>
libceph: reject an initial monmap with no monitors
Felix Hoffmann <[email protected]>
libceph: reject mismatched CRUSH weight-set sizes
Raphael Zimmer <[email protected]>
libceph: Fix multiple unsafe decodes in ceph_oloc_decode()
Raphael Zimmer <[email protected]>
libceph: Fix unsafe decode in ceph_redirect_decode()
Xiubo Li <[email protected]>
libceph: only set read_from_replica on read requests
Xiang Mei <[email protected]>
ceph: require the dentry lease record to cover struct ceph_mds_reply_lease
Xiang Mei <[email protected]>
ceph: reject mdsmaps that claim more than CEPH_MAX_MDS ranks
Guanglei Zhu <[email protected]>
ceph: fix out-of-bounds read in ceph_netfs_issue_op_inline()
Max Kellermann <[email protected]>
ceph: avoid pending truncate during nonblocking cap acquire
Hungyu Lin <[email protected]>
time/namespace: Fix overflow when converting absolute deadlines
Hungyu Lin <[email protected]>
timers/itimer: Keep a nonzero value at CPU timer expiry
Wang Haoran <[email protected]>
fbdev: atmel_lcdfb: fix list_first_entry() on possibly empty modelist in probe
Siddharth Chintamaneni <[email protected]>
mm: multi-gen LRU: fix NULL lruvec->pgdat deref with memcg disabled on cmdline
Yunhui Cui <[email protected]>
riscv: mm: exclude invalid THP PMDs from page table check
Wei Yang <[email protected]>
mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()
Cen Zhang <[email protected]>
ocfs2/cluster: remove zero-address nodes from IP tree on teardown
Cen Zhang <[email protected]>
ocfs2: snapshot the dentry name while tracing file release
Hungyu Lin <[email protected]>
compat: avoid double rounding in times()
Stanley Jhu <[email protected]>
scsi: ufs: core: Remove an always-false WARN_ONCE()
Ratnaker Gautam <[email protected]>
scsi: libiscsi_tcp: Prevent R2T range check overflow
Stanley Jhu <[email protected]>
scsi: ufs: core: Clear stale UIC result byte before peer DME retries
Stanley Jhu <[email protected]>
scsi: ufs: bsg: Clear the reply buffer before use
Stanley Jhu <[email protected]>
scsi: ufs: bsg: Complete the job on error
yanxia <[email protected]>
veth: fix stale peer max_mtu on XDP program replacement
Sasha Levin <[email protected]>
cgroup: don't kill migrated processes through their exiting threads
Thomas Weißschuh (Schneider Electric) <[email protected]>
timekeeping: Update offsets on sequence counter retry in ktime_get_update_offsets_now()
Cen Zhang (Microsoft) <[email protected]>
posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() signal path
Pufan Jin <[email protected]>
spi: zynq-qspi: fix address buffer corruption and support 4-byte address
Christian Marangi <[email protected]>
i2c: mt7621: fix copying uninitialized kernel stack with reduced page_len
Alex Kazinsky <[email protected]>
ASoC: tlv320aic32x4: Prevent division by zero in divider callbacks
Jean Delu <[email protected]>
parisc: eisa_enumerator: Fix out-of-bounds reads of the EEPROM buffer
Pei Xiao <[email protected]>
tpm: fix zero-length read discarding the pending response
Pei Xiao <[email protected]>
tpm: tpm_nsc: stop using the cleanup callback as dev.release
Pei Xiao <[email protected]>
tpm: tpm_nsc: fix NULL pointer dereference on init failure
Navon John Lukose <[email protected]>
i2c: designware: queue only one read command for block reads
Ma Ke <[email protected]>
i2c: acpi: Fix adapter reference leak in i2c_acpi_new_device_by_fwnode()
Nickolai Zeldovich <[email protected]>
ucount: take the rlimit reference before checking the limit
Chuck Lever <[email protected]>
exportfs: Release the get_name() directory file synchronously
Henry Martin <[email protected]>
tipc: fix broadcast sender hang on last acker departure
Liu Chao <[email protected]>
net: wwan: iosm: validate msg_head before indexing msg_ring
Yu Zhang <[email protected]>
nvmet: take subsys->lock while force-reconnecting in nvmet_subsys_attr_qid_max_store()
Runyu Xiao <[email protected]>
sh: maple: Use the matching IRQ cookie when invoking free_irq()
Julian Sun <[email protected]>
writeback: clear old wb dirty state after inode switches
Julian Sun <[email protected]>
writeback: reset dirtied_when when switching wbs
Michael Kelley <[email protected]>
Documentation: hyperv: Update documentation for sending VMBus packets
Cen Zhang <[email protected]>
ocfs2/cluster: initialize heartbeat regions before publishing them
Joseph Qi <[email protected]>
ocfs2: deal with legacy signed xattr name hash values
Joseph Qi <[email protected]>
ocfs2: use the stored hash when checking xattr bucket collision
Joseph Qi <[email protected]>
ocfs2: deal with legacy signed dir index name hash values
Joseph Qi <[email protected]>
ocfs2: reserve value tree metadata when moving an xattr into the inode
Joseph Qi <[email protected]>
ocfs2: reserve metadata for a new xattr block and its value tree
Matt Turner <[email protected]>
alpha: determine tininess after rounding in the FP emulation
Bryam Vargas <[email protected]>
net/smc: queue the copied chunk when smc_tx_sendmsg() faults
Yingjie Wang <[email protected]>
net: unix: reject negative max_dgram_qlen values
Nguyen Ngoc Thang <[email protected]>
net/rds: ib: don't enable IRQs in rds_ib_conn_free()
Tingjie Zhong <[email protected]>
fbdev: bitblit: Fix glyph clipping when fbcon pans
Daehyeon Ko <[email protected]>
ipv6: do not restart DAD for a dead ifaddr
Daehyeon Ko <[email protected]>
ipv6: initialize temporary ifaddr before publication
Daehyeon Ko <[email protected]>
ipv6: serialize address publication with device teardown
Daehyeon Ko <[email protected]>
ipv6: remove ifaddr from hash during ifdown list cleanup
Keita Morisaki <[email protected]>
drm/amd/display: Fix swap in median3() for DSC rate control
Jesse Zhang <[email protected]>
drm/amdgpu: reject ANONONLY userptrs that span multiple VMAs
Mario Limonciello <[email protected]>
drm/amd/display: don't WARN when removing an unallocated MST payload
Maciej Kucharek <[email protected]>
drm/amdgpu: reset VI ASIC on Apple boards with VRAM at 0
Maciej Kucharek <[email protected]>
drm/amdgpu: reset CIK ASIC on Apple boards with VRAM at 0
Luigi Lauro <[email protected]>
drm/amdgpu: require _PR3 for BOCO
Nirmoy Das <[email protected]>
blk-mq: clear stale inactive flag on hctx reuse
Sahaj Chaudhari <[email protected]>
gpio: davinci: Clear interrupt status in every bank on suspend
Peter Ujfalusi <[email protected]>
ALSA: compress: add missing OPEN-state gate to SET_METADATA
Sorah Fukumori <[email protected]>
net: gro: don't chain linear parts larger than gso_size into frag_list
Jamal Hadi Salim <[email protected]>
netdevsim: reject cls_bpf programs bound to another device
Kir Kolyshkin <[email protected]>
cgroup: fix cgroup.kill for exited thread group leader
Baek Kyu, Kim <[email protected]>
hwmon: (sht3x) Return the consumed count for heater writes
Ma Ke <[email protected]>
platform/x86/amd/pmc: Fix RTC reference leak in amd_pmc_verify_czn_rtc()
Gregory Price <[email protected]>
rtc: cmos: Disable ACPI RTC event before handling it
Seongjae Jeong <[email protected]>
f2fs: fix submit accounting for IPU writeback
Wenjie Qi <[email protected]>
f2fs: flush SIT journal during filesystem resize
Kyle Zeng <[email protected]>
netfilter: nf_reject: initialize IPCB at inet ingress
Sanan Hasanov <[email protected]>
hwmon: (corsair-cpro) Make wait_input_report_lock IRQ safe
Vasiliy Kovalev <[email protected]>
ALSA: hda/via: Apply runtime PM workaround for ASUS X55A
Magnus Lindholm <[email protected]>
alpha: do not skip TLB shootdown IPIs for kthread-borrowed mms
Magnus Lindholm <[email protected]>
alpha: do not clear remote MMU contexts in migrate_flush_tlb_page()
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()
Matt Turner <[email protected]>
alpha: handle VM_FAULT_HWPOISON in do_page_fault()
Tim Douglas <[email protected]>
power: supply: generic-adc-battery: fix status with no supplier
Takashi Iwai <[email protected]>
ALSA: seq: oss: Skip events until fully initialized
Quanye Yang <[email protected]>
mptcp: reset msk state on early connect failure
Shubham Antil <[email protected]>
RDS/IB: validate receive fragment completions
Seung Min Shin <[email protected]>
sctp: hold transport reference across connect wait
Zixuan Chai <[email protected]>
ipv6: defrag: orphan skb before queuing
Josef Bacik <[email protected]>
net: skbuff: don't BUG() on a bad csum_start in skb_copy_and_csum_dev()
Jianyun Gao <[email protected]>
dax: fix dax_range_compare_iter() to use correct size and address offset
Jianyun Gao <[email protected]>
dax: Return errors from dax_core_init()
Gyokhan Kochmarla <[email protected]>
erofs: use on-disk blkszbits for lz4 max pcluster bound
Weibin Liu <[email protected]>
spi: amd: validate FIFO usage before executing message
Weibin Liu <[email protected]>
spi: amd: fix len==0 underflow and FIFO overflow
Vladyslav Tymoshchuk <[email protected]>
ASoC: qcom: q6apm: reset the hw pointer with the fragment queue
Radiy Zhambakiev <[email protected]>
mfd: tps65217: Use devres for IRQ domain and wake teardown
Radiy Zhambakiev <[email protected]>
mfd: tps65217: Check return value when masking interrupt sources
Radiy Zhambakiev <[email protected]>
mfd: tps65217: Fix NULL pointer dereference on IRQ init failure
Weibin Liu <[email protected]>
spi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer
Marc Zyngier <[email protected]>
KVM: arm64: Turn vcpu->arch.pause into a counter
Marc Zyngier <[email protected]>
KVM: arm64: Move OUTSIDE_GUEST_MODE publication past context being saved
Ard Biesheuvel <[email protected]>
efi/libstub: Don't replace an existing LINUX_EFI_MEMRESERVE table
Weibin Liu <[email protected]>
spi: jcore: fix divide-by-zero when speed_hz is zero
Tal Zussman <[email protected]>
gfs2: fix the escaped block copy in gfs2_before_commit()
Takashi Iwai <[email protected]>
ALSA: ump: Correct return size of fill_rpn()
Wentao Liang <[email protected]>
irqchip/mchp-eic: Fix clock reference leak in mchp_eic_probe()
Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Don't clamp nvecs to zero when id_bits is 32
Ahsan Atta <[email protected]>
crypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()
Hui Su <[email protected]>
cpufreq: schedutil: Serialize sugov_start() against rate limit updates
Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Use default TxWindow for zero socket option
Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Reject invalid TxWindow in configuration requests
Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Reject mode changes on connected channels
Bui Viet Dung <[email protected]>
Bluetooth: hci_debugfs: Pin module for debugfs file operations
Bui Viet Dung <[email protected]>
Bluetooth: 6lowpan: Pin module for 6lowpan_control debugfs file
Nikolaj Klitlund Børty <[email protected]>
Bluetooth: btusb: Add device ID for Realtek RTL8761BUE (StarTech AV53C1)
Karl Mehltretter <[email protected]>
ARM: 9491/1: alignment: restore uaccess state on emulation fault
Karl Mehltretter <[email protected]>
ARM: 9488/1: smp: set current pointer in assembly before jumping into C
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()
Muhammad Bilal <[email protected]>
platform/x86: hp-bioscfg: NUL-terminate the SPM auth token
Muhammad Bilal <[email protected]>
platform/x86: hp-bioscfg: allow clearing current_password
Muhammad Bilal <[email protected]>
platform/x86: hp-bioscfg: return -E2BIG from validate_password_input()
Muhammad Bilal <[email protected]>
platform/x86: hp-bioscfg: fix non-ASCII truncation in hp_get_string_from_buffer()
Muhammad Bilal <[email protected]>
platform/x86: hp-bioscfg: fix OOB reads in hp_get_string_from_buffer()
Denis Arefev <[email protected]>
ALSA: cs46xx: fix unit mismatch in DSP code area bounds check
Aamir Ahmed <[email protected]>
lib: decompress_bunzip2: fix integer overflow in run-length decoding
Matt Turner <[email protected]>
lib/decompress_bunzip2: fix off-by-one in run-length bounds check
Ma Ke <[email protected]>
pinctrl: stm32: Fix fwnode reference leak in stm32_gpiolib_register_bank()
Kaixuan Li <[email protected]>
f2fs: check every cur_*_segno[] entry on readonly images
Nanzhe Zhao <[email protected]>
f2fs: read i_size once in f2fs_vm_page_mkwrite
Karl Mehltretter <[email protected]>
sh: intc: Sort the prio and sense lists after filling them
Geraldo Nascimento <[email protected]>
PCI: rockchip-host: Do not attempt 5.0 GT/s retraining
Andrea Parri <[email protected]>
nvmet: zns: don't leak stale memory in zone management receive
Jérémy Jean <[email protected]>
nvmet: free the bvec on file namespace range errors
Yehyeong Lee <[email protected]>
nvme-rdma: don't complete a request after a bogus remote invalidation
Andrea Parri <[email protected]>
iomap: don't lose a fiemap iteration error when emitting the last extent
Kathiravan Thirumoorthy <[email protected]>
clk: qcom: ipq5332: add 24MHz rate for USB UTMI clock
Kathiravan Thirumoorthy <[email protected]>
clk: qcom: ipq5018: add 24MHz rate for USB UTMI clock
Samuel Thibault <[email protected]>
speakup: Fix NULL pointer dereference on VT switch + selection
Mikulas Patocka <[email protected]>
dm-bufio: fix a race leading to an unsigned integer underflow
Lorenzo Stoakes (ARM) <[email protected]>
fbdev: sh_mobile_lcdc: check for fb_deferred_io_init() error
Lorenzo Stoakes (ARM) <[email protected]>
fbdev: smscufx: check for fb_deferred_io_init() error
Lorenzo Stoakes (ARM) <[email protected]>
fbdev: udlfb: check for fb_deferred_io_init() error
Lorenzo Stoakes (ARM) <[email protected]>
fbdev: xen-fbfront: check for fb_deferred_io_init() error
Lorenzo Stoakes (ARM) <[email protected]>
fbdev: ssd1307fb: check for fb_deferred_io_init() error
Guixiong Wei <[email protected]>
platform/x86/intel-uncore-freq: Continue restoring limits on resume
Guangshuo Li <[email protected]>
platform/x86: simatic-ipc: fix platform device leak on registration failure
Muhammad Bilal <[email protected]>
platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()
Muhammad Bilal <[email protected]>
platform/x86: hp-bioscfg: fix 16-byte heap overflow for empty auth token
Donggeun Yoo <[email protected]>
mm/damon/core: charge only the part of a region the filter left
Breno Leitao <[email protected]>
mm/shmem: report RCU-tasks quiescent states while undoing a range
Hongfu Li <[email protected]>
mm/hugetlb_cgroup: move per-node usage on cgroup reparenting
Hongfu Li <[email protected]>
mm/hugetlb_cgroup: move per-node usage on cross node migration
Yuanhe Shu <[email protected]>
mm/page_alloc: do not boost watermarks in kdump capture kernels
Gregory Price <[email protected]>
mm/madvise: use folio_trylock() in the cold/pageout PMD split
SJ Park <[email protected]>
mm/damon/sysfs-schemes: read sysfs_filter->addr_range only once
Yongjian Mu <[email protected]>
xprtrdma: trim head iovec when the payload arrives via a Write chunk
Tim Menninger <[email protected]>
xprtrdma: prevent disconnect feedback during endpoint teardown
Weigang He <[email protected]>
mtd: parsers: qcom: fix offset/size overflow on large partitions
Wentao Liang <[email protected]>
btrfs: zoned: fix block group reference leak in btrfs_repair_one_zone()
Ard Biesheuvel <[email protected]>
arm64/efi: Clear PTE_WRITE when applying EFI_MEMORY_RO
Mikulas Patocka <[email protected]>
dm-snapshot: fix crash if dm_io_client_create fails
Johan Hovold <[email protected]>
USB: serial: sierra: fix urb leak on write completion
Anup Vishwakarma <[email protected]>
mailbox: qcom-ipcc: Guard against NULL con_priv in send_data()
Wayne Chang <[email protected]>
usb: typec: ucsi_ccg: Add retry mechanism in ccg_read
Drobyshev Vladimir <[email protected]>
USB: cdc-acm: add VeriFone VX820 device ID
Seongjun Hong <[email protected]>
vfio/mlx5: Fix boundary check in set_report_output()
Xiaofeng Yuan <[email protected]>
RISC-V: KVM: Fix IPI delivery for out-of-order vcpu_id
Ross Lagerwall <[email protected]>
xen-blkfront: Fix IO race during unplug
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
Jesse Zhang <[email protected]>
drm/ttm: return an error when kmapping a BO without pages
Krzysztof Karas <[email protected]>
iommu/dma: Catch scatterlist length overflows
Yehyeong Lee <[email protected]>
xen/pcifront: check that an AER callback exists before calling it
Myeonghun Pak <[email protected]>
soc: fsl: dpio: Free the IRQ before releasing the I/O object
Myeonghun Pak <[email protected]>
soc: fsl: dpio: Fix cleanup on IRQ registration failure
Wentao Liang <[email protected]>
soc: fsl: cpm1: tsa: Fix clock leak in tsa_of_parse_tdms()
Abdifatah Suruur <[email protected]>
xen/gntdev: prevent private mappings from becoming writable
Wentao Liang <[email protected]>
clk: imx: Fix clock reference leak in imx_obtain_fixed_clock_hw()
Wentao Liang <[email protected]>
clk: imx: Fix clock reference leak in imx_get_clk_hw_by_name()
Anastasios Papagiannis <[email protected]>
mm/nommu: reject wrapping ranges in access_remote_vm()
Yogesh Gaur <[email protected]>
md: don't hand out the array before md_alloc() has added mddev->kobj
Jinjie Ruan <[email protected]>
ext4: fix out-of-bounds read in ext4_get_group_info()
Daejun Park <[email protected]>
ext4: don't report delalloc data as a hole on indirect-mapped inodes
Hemanth Selam <[email protected]>
ext4: skip extra isize expansion while unmounting
Hsiu-Hsien Lee <[email protected]>
ext4: fix fast commit replay failing on a read-only mount
Matthias Goergens <[email protected]>
fanotify: report names longer than NAME_MAX
Krzysztof Wilczyński <[email protected]>
PCI/sysfs: Pass the device name length in UTF-16 code units
Josef Bacik <[email protected]>
aoe: pull in the headers each received packet type reads
Wentao Liang <[email protected]>
clocksource/drivers/digicolor: Fix clk reference leak on request_irq failure
Wentao Liang <[email protected]>
clocksource/drivers/fttmr010: Fix clk reference leak in error paths
Wentao Liang <[email protected]>
wifi: mt76: Fix of_node reference leak in mt76_get_rate_power_limits()
Jiale Yao <[email protected]>
wifi: mt76: mt7615: cancel reset work during unregister
Eason Lai <[email protected]>
wifi: mt76: fix memory leak in USB TX path
Eason Lai <[email protected]>
wifi: mt76: mt792x: fix UAF in SDIO TX path when out of memory
Mark Anthony Agarro <[email protected]>
wifi: mt76: mt7615: do not tear down BSS/STA state for monitor vifs
Mark Anthony Agarro <[email protected]>
wifi: mt76: mt76x02: validate TX-status rate index before mac80211 handoff
Joseph Qi <[email protected]>
ocfs2: skip uninitialized lockres in ocfs2_mark_lockres_freeing()
Joseph Qi <[email protected]>
ocfs2: free replay slots in ocfs2_recovery_exit()
Joseph Qi <[email protected]>
ocfs2: exit recovery thread on mount error path
Zi Yan <[email protected]>
USB: gadgetfs: do not WARN about excessively large memory allocations
Michael Liang <[email protected]>
fault-inject: fix dentry leak
OGAWA Hirofumi <[email protected]>
fat: fix fat_ent_write() for reverting the value
DAI RENJIE <[email protected]>
resource: fix lost wakeup when waiting for a muxed region
Gregory Price <[email protected]>
mm/mempolicy: take a cpuset cookie for the interleave node count
Nathan Chancellor <[email protected]>
wifi: brcmsmac: Adjust txpwrindex value in nphy_ipa_rxcal_gaintbl_2GHz
Priyank Rathod <[email protected]>
PCI/AER: Fix memory leak in aer_recover_queue() on kfifo buffer overflow
Eric Dumazet <[email protected]>
dlm: fix send buffer backpressure handling
Denis Efremov (Oracle) <[email protected]>
floppy: return the drive state flags from the 32-bit FDGETDRVSTAT
Denis Efremov (Oracle) <[email protected]>
floppy: don't store a stack buffer in timeout_message
Chuck Lever <[email protected]>
svcrdma: Grant credits from the clamped sc_max_requests
Runyu Xiao <[email protected]>
perf: xgene: initialize lock before requesting IRQ
Linus Walleij <[email protected]>
power: supply: ab8500_fg: Report sub-percent charge changes
Linus Walleij <[email protected]>
power: supply: ab8500_fg: Accept status from supplied power
Andrey Albershteyn <[email protected]>
fsverity: hoist statx reporting of fs-verity flag
Tharit Tangkijwanichakul <[email protected]>
media: hantro: disable runtime PM before hardware teardown
Jiawen Liu <[email protected]>
media: amphion: fix runtime PM imbalance on probe failure
Tharit Tangkijwanichakul <[email protected]>
media: hantro: Harden MPEG-2 control access against NULL
Junrui Luo <[email protected]>
media: vicodec: fix NULL deref on oversized frame
Pengpeng Hou <[email protected]>
media: mediatek: jpeg: retry HW selection after successful wait
Michail Tatas <[email protected]>
media: verisilicon: rockchip: Fix leaks in init
Guangshuo Li <[email protected]>
media: mediatek: vpu: release reserved memory on remove
Guangshuo Li <[email protected]>
media: mediatek: vcodec: destroy core workqueue on remove
Wentao Liang <[email protected]>
media: mtk-jpeg: Fix runtime PM leak in mtk_jpegenc_worker()
Wentao Liang <[email protected]>
media: mtk-jpeg: Fix runtime PM leak in mtk_jpegdec_worker()
Wentao Liang <[email protected]>
media: platform: mtk-mdp3: Fix device reference leak in mdp_comp_init()
Fan Wu <[email protected]>
media: mediatek: vpu: free IRQ before destroying watchdog workqueue
Myeonghun Pak <[email protected]>
media: amphion: prevent unbind while video instances are open
Myeonghun Pak <[email protected]>
media: amphion: drain message work before releasing core state
Michael Freidkin <[email protected]>
media: meson: vdec: size capture planes from the aligned canvas
Nas Chung <[email protected]>
media: v4l2-common: Fix P010 format info
Karl Mehltretter <[email protected]>
KVM: arm64: vgic-v3: Roll back assignments from the new region
Karl Mehltretter <[email protected]>
KVM: arm64: vgic-v3: Undo assignment on iodev registration failure
Aldo Ariel Panzardo <[email protected]>
crypto: nx - validate 'ignore' before subtracting in decompress
Thorsten Blum <[email protected]>
hwrng: core - reject unknown RNG names
Thorsten Blum <[email protected]>
hwrng: ba431 - fix reported byte count
Thorsten Blum <[email protected]>
hwrng: amd - report partial reads in non-blocking mode
ZhaoJinming <[email protected]>
crypto: caam - fix double-free in caam_rsa_set_priv_key_form()
Wei Jie Law <[email protected]>
media: uvcvideo: Fix NULL deref on events for uninitialized controls
Imre Kaloz <[email protected]>
PCI: Disable MSI for ULi M1575 EHCI controller
Mikulas Patocka <[email protected]>
dm-writecache: fix REQ_FUA processing
Mikulas Patocka <[email protected]>
dm-writecache: fix uncommitted_blocks underflow
Mikulas Patocka <[email protected]>
dm-writecache: fix a crash if we attempt to use non-dax device
Mikulas Patocka <[email protected]>
dm-writecache: fix a quirk in statistics
Mikulas Patocka <[email protected]>
dm-writecache: report I/O error if flush failed
Mikulas Patocka <[email protected]>
dm: fix a bug in dm_accept_partial_bio
Kaho Jiang <[email protected]>
media: em28xx: fix double free in em28xx_alloc_urbs
Ginger Li <[email protected]>
media: exynos4-is: Fix a race between s_stream(0) and the interrupt handler
Guangshuo Li <[email protected]>
media: rtl28xxu: fix SDR platform device leak
Wentao Liang <[email protected]>
media: pvrusb2: Fix USB parent device leak in class_dev_create()
Guangshuo Li <[email protected]>
media: tw686x: fix V4L2 device lifetime on probe failure
Tianchu Chen <[email protected]>
staging: rtl8723bs: fix RX buffer OOB write from device-reported length
Johan Hovold <[email protected]>
staging: greybus: uart: fix racy TIOCMIWAIT implementation
Krzysztof Kozlowski <[email protected]>
drm/msm/hdmi_bridge: Correct poweroff/audio cleanup order in post_disable
Krzysztof Kozlowski <[email protected]>
drm/msm/hdmi_phy: Cleanup after msm_hdmi_phy_resource_enable() failure
Srish Srinivasan <[email protected]>
pseries/plpks: clear signed update authentication buffer
Srish Srinivasan <[email protected]>
pseries/plpks: clear sensitive PLPKS buffers
Srish Srinivasan <[email protected]>
pseries/plpks: validate input to plpks_signed_update_var()
Srish Srinivasan <[email protected]>
pseries/plpks: fix error handling in plpks_read_var()
Wentao Liang <[email protected]>
clk: starfive: jh7110-isp: fix refcount leak in jh7110_ispcrg_probe()
Takashi Iwai <[email protected]>
ALSA: core: Check shutdown flag at D0 power-state, too
Runyu Xiao <[email protected]>
m68k: dmasound: Keep the Q40 IRQ handler registered
Runyu Xiao <[email protected]>
ALSA: sgio2audio: Only free successfully requested IRQs
Hitesh Patel <[email protected]>
media: qcom: camss: vfe-17x: Fix write master buffer done being dropped
Jiale Yao <[email protected]>
cxl/acpi: Check ACPI companion before use
Ibrahim Hashimov <[email protected]>
fs/ntfs3: fix integer overflow in find_log_rec() causing OOB read
Cheick Traore <[email protected]>
iio: adc: stm32: fix minimum sampling time values
Jiale Yao <[email protected]>
iio: adc: ti-adc128s052: validate SPI match data
Jiale Yao <[email protected]>
iio: potentiometer: x9250: reject devices without match data
Wentao Liang <[email protected]>
ASoC: codecs: wcd9335: Fix SLIM interface device leak in wcd9335_slim_status()
David Heidelberg <[email protected]>
arm64: dts: qcom: sdm845-xiaomi-polaris: Extend the xbl_mem region
David Heidelberg <[email protected]>
arm64: dts: qcom: sdm845-xiaomi-beryllium: Extend the xbl_mem region
Piotr Kubik <[email protected]>
netfilter: ctnetlink: fix inverted IPv6 address match in dump filter
Orgad Shaneh <[email protected]>
MIPS: mm: do not write a huge TLB entry when the probe misses
Runyu Xiao <[email protected]>
peci: npcm: Initialize state before requesting IRQ
Runyu Xiao <[email protected]>
peci: aspeed: Initialize state before requesting IRQ
Ma Ke <[email protected]>
ASoC: wcd9335: Fix device reference leak in wcd9335_slim_status()
David Cemin <[email protected]>
ASoC: sdw_utils: clear stale RT711 device reference on exit
Ricardo Neri <[email protected]>
hwmon: (coretemp) Refresh the temperature on the first read
Richard Weinberger <[email protected]>
mtd: Call get_wunit() on the master partition
Wentao Liang <[email protected]>
mtd: mtdsuper: Fix MTD device reference leak in mtd_get_sb()
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
Aamir Ahmed <[email protected]>
clk: mvebu: ap-cpu-clk: Assign .num before accessing .hws
Junjie Cao <[email protected]>
ASoC: rt712-sdca-dmic: fix drvdata type in the gain controls
Guangshuo Li <[email protected]>
ASoC: Intel: atom: Fix platform device leak on probe failure
Jiacheng Xu <[email protected]>
kobject: fix out-of-bounds access in kobject_action_type()
Ryusuke Konishi <[email protected]>
nilfs2: fix deadlock between nilfs_evict_inode() and find_inode()
David Heidelberg <[email protected]>
mfd: wcd934x: Fix NULL pointer dereference on IRQ probe deferral
David Heidelberg <[email protected]>
mfd: wcd934x: set DMA mask on parent to silence "DMA mask not set"
Hongyan Xu <[email protected]>
mfd: da903x: Cancel IRQ work during teardown
Gabor Juhos <[email protected]>
clk: qcom: gcc-ipq5018: mark 'gpll0_main' clock as critical
Guangshuo Li <[email protected]>
media: atmel-isi: release unregistered video device on remove
Wentao Liang <[email protected]>
media: vpif_display: Fix i2c adapter reference leak in vpif_probe()
Wentao Liang <[email protected]>
media: vpif_capture: Fix i2c adapter reference leak in vpif_probe()
Wentao Liang <[email protected]>
media: au0828: Fix media device leak in au0828_usb_probe()
Runyu Xiao <[email protected]>
media: adv7180: Initialize mutex before ancillary clients
Myeonghun Pak <[email protected]>
media: tw68: balance PCI enable on cleanup
Myeonghun Pak <[email protected]>
media: cx18: Disable PCI device on probe failure
Myeonghun Pak <[email protected]>
media: go7007: unregister the I2C adapter on USB probe failure
Myeonghun Pak <[email protected]>
media: marvell: manage the MMP camera clock provider
Rohinthan P <[email protected]>
media: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functions
Weili Qian <[email protected]>
crypto: hisilicon/hpre - fix GFP flags for dma_alloc_coherent
Weili Qian <[email protected]>
crypto: hisilicon/hpre - fix ECDH destination DMA mapping
Weili Qian <[email protected]>
crypto: hisilicon/hpre - return -EOVERFLOW for small ECDH output buffer
Weili Qian <[email protected]>
crypto: hisilicon/hpre - fix pointer dereference before length check
Mohamad Raizudeen <[email protected]>
crypto: amlogic - Fix IRQ handler return value and fallthrough logic
Yuchao Zhang <[email protected]>
md: validate bblog_size when loading v1.x badblocks metadata
Wentao Liang <[email protected]>
EDAC/i10nm: Fix mdev reference leak in i10nm_get_ddr_munits()
Aldo Ariel Panzardo <[email protected]>
nilfs2: fix checkpoint root lifetime on sysfs errors
Wentao Liang <[email protected]>
drm/mali-dp: Fix runtime PM leak in malidp_crtc_atomic_enable()
Judith Mendez <[email protected]>
arm64: dts: ti: k3-am62-phycore-som: Set eMMC clock pin as OUTPUT
Judith Mendez <[email protected]>
arm64: dts: ti: k3-am62x-sk-common: Set SD clock pin as OUTPUT
Judith Mendez <[email protected]>
arm64: dts: ti: k3-am625-beagleplay: Set MMC clock pins as OUTPUT
Judith Mendez <[email protected]>
arm64: dts: ti: k3-am62a7-sk: Set SD clock pin as OUTPUT
Wentao Liang <[email protected]>
ASoC: ti: davinci-mcasp: Fix runtime PM imbalance in __davinci_mcasp_set_clkdiv()
Sean Young <[email protected]>
media: meson-ir-tx: Prevent divide by zero in meson_irtx_prepare_pulse()
Sean Young <[email protected]>
media: ir_toy: Validate the maximum tx carrier
Cong Nguyen <[email protected]>
staging: media: imx: csc-scaler: fix ipu_image_convert_run leak on queue error
Hui Peng <[email protected]>
seccomp: restore knotif->state when SECCOMP_ADDFD_FLAG_SEND is interrupted
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
Wentao Liang <[email protected]>
regulator: rt6190: Fix runtime PM imbalance in rt6190_out_enable()
Karl Mehltretter <[email protected]>
fpga: Fix of_fpga_mgr_get() reference in fpga_mgr_lock() docs
Wentao Liang <[email protected]>
ASoC: codecs: wm8994: Fix runtime PM leak in wm8994_mic_detect()
Wentao Liang <[email protected]>
regulator: core: Fix rdev reference leak in regulator_resolve_supply()
Wentao Liang <[email protected]>
regulator: core: Fix c_rdev reference leak in regulator_resolve_coupling()
Shengming Hu <[email protected]>
cpufreq: conservative: Restrict deferred downscaling to low load
Martin Wilck <[email protected]>
md/raid5: validate payload size before calculating payload_len
Cao Guanghui <[email protected]>
md/raid5: fix NULL pointer dereference in raid5_free_percpu
Cao Guanghui <[email protected]>
md/raid5: track disks array size to fix extra_page leak on error paths
Guangshuo Li <[email protected]>
iio: adc: at91-sama5d2: disable autosuspend on remove
Guangshuo Li <[email protected]>
iio: accel: mma9553: disable autosuspend on remove
Guangshuo Li <[email protected]>
iio: accel: mma9551: disable autosuspend on remove
Guangshuo Li <[email protected]>
iio: accel: kxcjk-1013: Disable autosuspend on remove
Wentao Liang <[email protected]>
ASoC: arizona-jack: Fix runtime PM imbalance in arizona_start_hpdet_acc_id()
Wentao Liang <[email protected]>
ASoC: wm8994: Fix runtime PM imbalance in wm8994_component_probe()
Liu Chao <[email protected]>
usb: fotg210: validate endpoint index in ep0 handlers
Karl Mehltretter <[email protected]>
crypto: atmel-tdes - sync output bounce buffer before DMA
Yousef Alhouseen <[email protected]>
ntfs3: bound index head insertions by buffer capacity
Muhammad Bilal <[email protected]>
platform/x86: hp-bioscfg: fix slab-out-of-bounds write in hp_convert_hexstr_to_str()
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()
Runyu Xiao <[email protected]>
crypto: ccp - Initialize DBC ioctl mutex before registering device
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
Robin Snyders <[email protected]>
power: supply: qcom_smbx: notify battery overvoltage recovery
Robin Snyders <[email protected]>
power: supply: qcom_smbx: fix float voltage selector
Robin Snyders <[email protected]>
power: supply: qcom_smbx: test battery health status bits
Robin Snyders <[email protected]>
power: supply: qcom_smbx: include base when petting watchdog
Karl Mehltretter <[email protected]>
ACPI: pfr_update: zero-initialize capability query result
Runyu Xiao <[email protected]>
dmaengine: altera-msgdma: initialize state before requesting IRQ
Damon Ding <[email protected]>
drm/bridge: analogix_dp: Restore mandatory samsung DP DT properties
Greg Kroah-Hartman <[email protected]>
media: stv0900: bound DiSEqC reply length to msg[] size
Greg Kroah-Hartman <[email protected]>
media: stv090x: bound DiSEqC reply length to msg[] size
Greg Kroah-Hartman <[email protected]>
media: adv7604: avoid negative array index in log_status when cp_read fails
James Hilliard <[email protected]>
mtd: rawnand: sunxi: reject ECC maximization on small pages
Balakrishnan Sambath <[email protected]>
media: microchip-isc: don't sleep in the clk .is_enabled callback
Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix PM runtime leak in AWB work handler
Balakrishnan Sambath <[email protected]>
media: microchip-isc: do not touch WB registers when not streaming
Balakrishnan Sambath <[email protected]>
media: microchip-isc: disable histogram and flush AWB work on teardown
Balakrishnan Sambath <[email protected]>
media: microchip-isc: synchronize the IRQ before disabling clocks on stop
Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix awb_mutex and lock lifecycle
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
Andrea Pesaresi <[email protected]>
arm64: dts: mediatek: mt7986: correct timer frequency
Baolin Liu <[email protected]>
isofs: fix Rock Ridge CE extent validation on multisession media
Thorsten Blum <[email protected]>
thermal: intel: int340x: Fix temperature selection around 0 C
Thorsten Blum <[email protected]>
thermal: intel: powerclamp: Reject invalid window_size values
Francesco Dolcini <[email protected]>
arm64: dts: ti: k3-am62-verdin: Set MMC clock pins as OUTPUT
Karl Mehltretter <[email protected]>
fs_pin: publish pins with RCU list helpers
Miquel Raynal <[email protected]>
mtd: spi-nor: Unprepare legacy controllers upon RWW wait interruption
HyeongJun An <[email protected]>
mtd: spi-nor: sfdp: check the length of the SCCR map
HyeongJun An <[email protected]>
mtd: spi-nor: sfdp: check the length of the xSPI Profile 1.0 table
Serin Yeh <[email protected]>
media: i2c: ov8856: fix debug message to report actual CSI-2 lane count
Abdun Nihaal <[email protected]>
wifi: ath11k: Fix possible memory leak in ath11k_dp_srng_setup()
Runyu Xiao <[email protected]>
hte: tegra194: Initialize slice locks before registering chip
Yuan Chen <[email protected]>
bpf: Fix queue/stack map u32 index overflow
hanzhijian <[email protected]>
clk: mstar: msc313-mpll: fix off-by-one in clock array allocation
Yi Cong <[email protected]>
wifi: rtw89: 8851b: fix swapped DPK channel/bandwidth backup fields
イムティヤズ <[email protected]>
wifi: rtw88: fix out-of-bounds CAM write when key table is full
Justin Chen <[email protected]>
memory: brcmstb_dpfe: Bounds check DCPU-supplied MSG_ARG_COUNT
Justin Chen <[email protected]>
memory: brcmstb_dpfe: Fix out-of-bounds access due to DCPU offset
Sam Price <[email protected]>
microblaze: preserve the MSR carry flags across signals
Ramin Moussavi <[email protected]>
microblaze: don't clobber r3/r4 restored by rt_sigreturn
Ramin Moussavi <[email protected]>
microblaze: reserve the ABI argument-home area in the signal frame
HyeongJun An <[email protected]>
remoteproc: elf_loader: Bound the section header table
Daehyeon Ko <[email protected]>
ipc/mqueue: release notification resources during inode eviction
Daehyeon Ko <[email protected]>
aio: prevent eventfd/epoll recursion on poll
Karl Mehltretter <[email protected]>
microblaze: Fix MB_MANAGER build with older binutils
Fan Wu <[email protected]>
media: imx-jpeg: finish the job on device_run() error paths
Sean Young <[email protected]>
media: ir-hix5hd2: Ensure rdev is setup before interrupts are enabled
Sean Young <[email protected]>
media: meson-ir-tx: Ensure probe error is propagated
Sean Young <[email protected]>
media: meson-ir-tx: Ensure clock is disabled on unbind
Sean Young <[email protected]>
media: sunxi-cir: Ensure no more interrupts can occur before free
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()
Harry Wentland <[email protected]>
drm/amd/display: Force GAMCOR for subsampled surfaces with PQ/Gamma22/HLG
YuBiao Wang <[email protected]>
drm/amdgpu: recompute the dw estimate after allocating a new VM update job
Marek Czernohous <[email protected]>
drm/nouveau: don't dereference outp before checking it in nouveau_dp_irq
Marek Czernohous <[email protected]>
drm/nouveau: cancel the DP IRQ work before freeing the connector
Zhenhao Wan <[email protected]>
drm/nouveau/svm: drain fault handler before freeing svmm
Zhenhao Wan <[email protected]>
drm/nouveau: reject zero-size notifier object allocation
Sean Young <[email protected]>
media: rc: Fix race between bpf(BPG_PROG_ATTACH) and device unregister
Fan Wu <[email protected]>
scsi: dc395x: sync the waiting_timer before freeing the host
Fan Wu <[email protected]>
media: s5p-mfc: use timer_shutdown_sync() for the self-rearming watchdog
Vernon Yang <[email protected]>
mm: khugepaged: fix folio is used after folio_put/unlock()
Vernon Yang <[email protected]>
mm: khugepaged: fix swap entry value to folio_pfn()
Balakrishnan Sambath <[email protected]>
media: microchip-isc: take a reference on the parsed endpoints
Kuninori Morimoto <[email protected]>
media: platform: microchip: use for_each_endpoint_of_node()
Yibo Tan <[email protected]>
media: ipu-bridge: Fix use-after-free in IVSC error path
Jérémy Jean <[email protected]>
nvmet-auth: serialize access to DH-HMAC-CHAP state to fix UAF
Marco Crivellari <[email protected]>
nvmet: replace use of system_wq with system_percpu_wq
Ruide Cao <[email protected]>
mptcp: hold MP_JOIN msk ref when cloning reqsk
Zhao Li <[email protected]>
wifi: mt76: mt7996: unlink TWT flow if the MCU rejects the agreement
Tianchu Chen <[email protected]>
staging: rtl8723bs: fix protected RX frame validation in decrypt path
Khasar Munkh-Erdene <[email protected]>
staging: rtl8723bs: fix spacing around operators in rtw_recv.c
Josef Bacik <[email protected]>
mm/hugetlb: fix use-after-free of a new anon folio
Stefan Metzmacher <[email protected]>
smb: smbdirect: fix buffer length underflow in RDMA transfers
Chris Mason <[email protected]>
ovl: do not copy up a dentry that was removed
Chris Mason <[email protected]>
ovl: hold a reference on the parent in readdir
Chris Mason <[email protected]>
ovl: check that the parents of volatile/dirty are dirs
Hyunwoo Kim <[email protected]>
inet: reject unhashed sockets during established lookups
DaeMyung Kang <[email protected]>
ksmbd: fix named stream write and EOF handling
DaeMyung Kang <[email protected]>
ksmbd: use the existing xattr name for a named stream
Henry Hu <[email protected]>
ksmbd: fix invalid pointer dereference when get_inode_acl() fails
Ian Bridges <[email protected]>
ksmbd: fix session reference leak on compounded SESSION_SETUP
Mario Peter <[email protected]>
driver core: take parent lock in async device attach
Vincent Liu <[email protected]>
driver core: Check drivers_autoprobe for all added devices
Xiaoyao Li <[email protected]>
KVM: VMX: Preserve negative return value in vmx_handle_exit() with bus lock detected
Ian Bridges <[email protected]>
ksmbd: fix use-after-free after a failed durable reconnect
Dairui Zhang <[email protected]>
ksmbd: verify transform SessionId matches the decrypted header
Ian Bridges <[email protected]>
ksmbd: fix out-of-bounds read when padding the final compound response
Namjae Jeon <[email protected]>
ksmbd: prevent share root removal through empty paths
Namjae Jeon <[email protected]>
ksmbd: prevent stale data from being written by SMB2 WRITE requests
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
Peter Griffin <[email protected]>
opp: fix use after free in _update_opp_table_clk()
Pablo Neira Ayuso <[email protected]>
netfilter: conntrack: always lower timeout for non-closing RST packets
Srinivasan Shanmugam <[email protected]>
drm/amdgpu/powerplay: Align get_tonga_state_array() header with prototype
Sean Young <[email protected]>
media: rc: Fix build failure with CONFIG_LIRC disabled
Cheng Yongkang <[email protected]>
io_uring/timeout: count cancelled timeouts in cq_timeouts
Chris Mason <[email protected]>
io_uring/sqpoll: don't wait for the thread to exit
Chris Mason <[email protected]>
io_uring: free XArray nodes left by a failed store
Chris Mason <[email protected]>
io_uring: charge tctx nodes and personalities
Chris Mason <[email protected]>
io_uring/rsrc: charge buffer arrays and nodes to memcg
Josef Bacik <[email protected]>
io_uring/io-wq: no new workers once the exit has begun
Daan De Meyer <[email protected]>
io_uring/net: don't retry a non-blocking connect() that fails with -EAGAIN
Yichong Chen <[email protected]>
io_uring/net: keep recvmsg buffer select length within MAX_RW_COUNT
Chris Mason <[email protected]>
ovl: set OVL_WHITEOUTS before publishing the upper dir
Chris Mason <[email protected]>
ovl: use the pinned upper dir in ovl_fix_origin()
Chris Mason <[email protected]>
ovl: take a snapshot of the name for copy up
Jiale Yao <[email protected]>
HID: roccat: savu: reject short special reports
Jiale Yao <[email protected]>
HID: roccat: ryos: reject short special reports
Jiale Yao <[email protected]>
HID: roccat: pyra: reject short button reports
Jiale Yao <[email protected]>
HID: roccat: kovaplus: reject short button reports
Jiale Yao <[email protected]>
HID: roccat: konepure: reject short button reports
Jiale Yao <[email protected]>
HID: roccat: koneplus: reject short button reports
Jiale Yao <[email protected]>
HID: roccat: isku: reject short button reports
Gabor Tanz <[email protected]>
HID: quirks: Always poll the Anne Pro 2 with product ID a292
Jiale Yao <[email protected]>
HID: pxrc: reject short input reports
Lorenzo Stoakes (ARM) <[email protected]>
HID: picoLCD: check for fb_deferred_io_init() error
Jiale Yao <[email protected]>
HID: mcp2221: validate response report length
Jiale Yao <[email protected]>
HID: mcp2200: validate READ_ALL response length
Jiale Yao <[email protected]>
HID: logitech-dj: validate unnumbered keyboard reports
Jiale Yao <[email protected]>
HID: elo: reject short touchscreen reports
Jiale Yao <[email protected]>
HID: cp2112: validate response report lengths
Jiale Yao <[email protected]>
HID: cougar: reject short special-key reports
Alan Stern <[email protected]>
HID: core: Fix out-of-bounds left shift by 32 in s32ton()
Basavaraj Natikar <[email protected]>
HID: amd_sfh: Use report type from request node
Basavaraj Natikar <[email protected]>
HID: amd_sfh: Remove unsupported motion-state field from accelerometer report
Jiale Yao <[email protected]>
HID: zydacron: validate key report length
Amit Machhiwal <[email protected]>
KVM: PPC: Fix get_d_signext() 12-bit displacement for paired-single D-form
Amit Machhiwal <[email protected]>
KVM: PPC: Book3S HV: Add preempt_disable() around virtual-mode HPTE bit-lock users
Sean Christopherson <[email protected]>
KVM: x86: Zero reserved synic flags when delivering message to avoid stack leak
Loc Nguyen <[email protected]>
KVM: x86: Request event processing for exception VM-Exits
Sean Christopherson <[email protected]>
KVM: x86: Preserve DR6.BLD (Bus Lock Detect) when delivering #DB payload
David Woodhouse <[email protected]>
KVM: x86/xen: Take kvm->srcu in __kvm_xen_has_interrupt()
Sean Christopherson <[email protected]>
KVM: x86/mmu: Bug the VM if KVM calcs a CPU role with EFER.LMA=1 && CR4.PAE=0
Sean Christopherson <[email protected]>
KVM: x86/mmu: Bug the VM if KVM attempts to walk more levels than the MMU has
Sean Christopherson <[email protected]>
KVM: Use goto to handle errors during memslot preparation
Sean Christopherson <[email protected]>
KVM: nSVM: Ignore EFER.LMA if EFER.LME=0 when preparing L2 state
Yosry Ahmed <[email protected]>
KVM: SVM: Trigger new ASID allocation in both VMCBs on pCPU switch
David Howells <[email protected]>
rxrpc: Fix double IRQ enablement
Chuck Lever <[email protected]>
SUNRPC: Treat every TLS error alert as fatal
Ameer Hamza <[email protected]>
sunrpc: treat empty auth.unix.gid replies as negative entries
Zhiling Zou <[email protected]>
SUNRPC: trace an accepted transport before publishing it
Chuck Lever <[email protected]>
SUNRPC: Resume receiving after a TLS control record
Chuck Lever <[email protected]>
SUNRPC: Reject a TLS alert record that is not two octets
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()
Jérémy Jean <[email protected]>
SUNRPC: fix oversized GSS proxy token copy
Chuck Lever <[email protected]>
SUNRPC: Do not credit control-record octets to the RPC stream
Chuck Lever <[email protected]>
SUNRPC: Copy the deferred RPC Call from the head buffer
Aldo Ariel Panzardo <[email protected]>
nfsd: zero NFSv4 COMPOUND tag padding
Chuck Lever <[email protected]>
NFSD: Resolve the recall-any mask names in the trace format
Chuck Lever <[email protected]>
NFSD: Reject an oversized principal hash from nfsdcld
Aldo Ariel Panzardo <[email protected]>
nfsd: propagate SETXATTR value decode errors
Jérémy Jean <[email protected]>
nfsd: preflight SEQUENCE replies before accepting a slot
NeilBrown <[email protected]>
nfsd: honour client-provided attributes for NFS4_CREATE_EXCLUSIVE4_1
Cen Zhang (Microsoft Security FORGE Labs) <[email protected]>
nfsd: hold cl_lock in client_has_openowners()
Wentao Liang <[email protected]>
nfsd: Fix id-to-name cache entry leak in idtoname_parse()
Chuck Lever <[email protected]>
NFSD: Fail a pool_threads read whose reply does not fit
Ameer Hamza <[email protected]>
nfsd: don't modify a session slot when replaying its cached reply
Chuck Lever <[email protected]>
NFSD: Don't complete a cld upcall the daemon has not read
Chuck Lever <[email protected]>
NFSD: Do not send CB_RECALL_ANY to NFSv4.0 clients
Aldo Ariel Panzardo <[email protected]>
NFSD: copy SETXATTR data from all XDR buffer segments
Aldo Ariel Panzardo <[email protected]>
nfsd: clear XDR padding in GETXATTR replies
Benjamin Coddington <[email protected]>
NFSv4/filelayout: Anchor page coalescing on pattern_offset
Benjamin Coddington <[email protected]>
NFSv4.1/pnfs: suspend pNFS on NFS4ERR_TOOSMALL from LAYOUTGET
Chuck Lever <[email protected]>
pnfs/blocklayout: Complete a device upcall when the pipe is closed
Chuck Lever <[email protected]>
pnfs/blocklayout: Complete a device upcall only on its own reply
Benjamin Coddington <[email protected]>
pNFS: Fix CB_NOTIFY_DEVICEID CHANGE to consume ndc_immediate
Dominik Maier <[email protected]>
smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl()
Abdifatah Suruur <[email protected]>
smb: client: fix fiemap wild read on empty truncated response
Luxiao Xu <[email protected]>
smb: client: fix buffer overflow in SMB2_tcon()
Paulo Alcantara <[email protected]>
smb: client: don't resurrect an exiting tcon from cached dir workers
Darrick J. Wong <[email protected]>
xfs: range-check bc_levels array access in scrub tracepoints
Darrick J. Wong <[email protected]>
xfs: propagate errors while checking null siblings
Darrick J. Wong <[email protected]>
xfs: opportunistically skip btree block checks
Darrick J. Wong <[email protected]>
xfs: only written file data blocks can be shared
Darrick J. Wong <[email protected]>
xfs: don't rescan ifree and icount when frozen
Darrick J. Wong <[email protected]>
xfs: check for fragments when full-extent sharing matches
Aldo Ariel Panzardo <[email protected]>
xfs: bound inode fork length against the fork size during log recovery
Aldo Ariel Panzardo <[email protected]>
xfs: reject remote xattr entries with an out-of-range value length
Aldo Ariel Panzardo <[email protected]>
xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value
Aleksandr Nogikh <[email protected]>
media: usbtv: fix null-pointer dereference on disconnect
Johan Hovold <[email protected]>
media: usbtv: drop redundant device reference
Al Viro <[email protected]>
ufs: fix ufs_read_cylinder() failure handling
Siddharth Chintamaneni <[email protected]>
smb: client: fix busy dentry warning on unmount after DIO
Jean Delvare <[email protected]>
EDAC/mc: Really fix error path ordering in edac_mc_alloc()
Joseph Qi <[email protected]>
ksmbd: fix breaking_cnt leak on early return in oplock_break()
Yongjun Gwon <[email protected]>
ksmbd: serialize directory emptiness checks with readdir
Darrick J. Wong <[email protected]>
xfs: fix xchk_stats_estimate_bufsize to allow for the trailing null
Darrick J. Wong <[email protected]>
xfs: jump out of xchk_bmap_check_rmap if fatal signals
Darrick J. Wong <[email protected]>
xfs: mark overfull dabtree node blocks as corrupt
Darrick J. Wong <[email protected]>
xfs: check fork type against dabtree block magic number
Darrick J. Wong <[email protected]>
xfs: assign an owner to scrub_stats_fops
Darrick J. Wong <[email protected]>
xfs: fix unnecessary dapos truncation in xchk_dir_walk
Amir Goldstein <[email protected]>
ovl: skip copy up of empty security.capability
Chris Mason <[email protected]>
ovl: set the revalidate flags after d_instantiate()
Chris Mason <[email protected]>
ovl: read the nlink xattr of every indexed non-dir
Amir Goldstein <[email protected]>
ovl: fortify ovl_copy_xattr() against underlying layer modifications
Chris Mason <[email protected]>
ovl: fix a torn path in ovl_get_redirect()
Chris Mason <[email protected]>
ovl: do not copy up an xattr value that was never read
Weiming Shi <[email protected]>
smb: client: stop processing a read response after a receive error
Diego Oliva <[email protected]>
smb: client: fix OOB last_entry pointer from unbounded LastNameOffset
Cen Zhang <[email protected]>
ocfs2: snapshot dentry names in file and setattr traces
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: Fix ABBA deadlock by making locks more fine grained
Sean Young <[email protected]>
media: rc: Fix use after free in bpf progs
Sean Young <[email protected]>
media: rc: After rc_unregister_device() timers can be re-armed
Sean Young <[email protected]>
media: rc: Use after free in ir_raw_event_handle()
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
Sean Young <[email protected]>
media: rc: Ensure registered is cleared in error path
Sean Young <[email protected]>
media: rc: Ensure that rc_unregister_device() does not free input device
Bryan O'Donoghue <[email protected]>
phy: core: Fix race-condition between _of_phy_get() and try_module_get()
Nickolai Zeldovich <[email protected]>
resource: report a devm_request_resource() conflict under the lock
YANXIN LI <[email protected]>
ufs: use u64 for directory size in ufs_last_byte
Nguyen Quang Le Kien <[email protected]>
usb: gadget: fix refcount underflow in gadgetfs_bind() error path
Rosen Penev <[email protected]>
wifi: ath9k: delete channel-context timers on deinit
Yuchao Zhang <[email protected]>
xen-blkfront: unbind irq before tearing down ring and shadow requests
Igor Putko <[email protected]>
serial: core: shut down initialized port on removal
Rik van Riel <[email protected]>
media: redrat3: fix UAF in probe error path leaving rc device registered
Cong Nguyen <[email protected]>
media: microchip-csi2dc: fix async notifier leak on probe error path
Fan Wu <[email protected]>
media: imx-jpeg: cancel timeout worker when streaming stops
Shuangpeng Bai <[email protected]>
media: gspca: use vb2_video_unregister_device() on disconnect
Myeonghun Pak <[email protected]>
media: cx23885: unregister DVB bus when SP2 CI setup fails
Amit Machhiwal <[email protected]>
KVM: PPC: Book3S HV: Add SRCU protection for virtual-mode HPT hcalls
Kyle Zeng <[email protected]>
io_uring/io-wq: save worker type before dropping its reference
Yousef Alhouseen <[email protected]>
HID: hiddev: keep state alive through disconnect unlock
Richard Patel <[email protected]>
genirq: Move interrupt thread exit_work object to irqaction
Richard Patel <[email protected]>
genirq: Defer kfree(irqaction) until irq_thread_dtor() finishes
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
Bui Viet Dung <[email protected]>
Bluetooth: hci_vhci: Pin module for debugfs file operations
Sung Byeongchan <[email protected]>
ALSA: pcmtest: handle multiple wraps in random capture fill
Takashi Iwai <[email protected]>
ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect
Karl Mehltretter <[email protected]>
klist: avoid accesses after waking klist_remove()
Ping Cheng <[email protected]>
HID: wacom: Write shared touch initial status only once
Ping Cheng <[email protected]>
HID: wacom: Setup SW_MUTE_DEVICE according to the order of input registration
Lee Jones <[email protected]>
HID: wacom: Redesign shared sibling data lifecycle
Lee Jones <[email protected]>
HID: wacom: Fix Use-After-Free in wacom_bamboo_pad
Lee Jones <[email protected]>
HID: wacom: Fix Use-After-Free in wacom_intuos_pad
Lee Jones <[email protected]>
HID: wacom: Advertise SW_MUTE_DEVICE capability prior to registration
Lee Jones <[email protected]>
HID: wacom: Use hdev->product in wacom_setup_touch_input_capabilities
Harald Freudenberger <[email protected]>
s390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility()
Heiko Carstens <[email protected]>
s390/signal: Fix incorrect return address in signal frame
Heiko Carstens <[email protected]>
s390/probes: Fix wrong opcode for cgrb fixup
Sumanth Korikkar <[email protected]>
s390/cpum_cf: Check session mask before cpu offline
Niklas Cassel <[email protected]>
ata: sata_fsl: Fix use-after-free of host_priv on probe() failure
Binbin Deng <[email protected]>
apparmor: fix a use-after-free in aa_lookupn_ns()
David Hildenbrand (Arm) <[email protected]>
mm/hugetlb: fix use-after-free in hugetlb_mfill_atomic_pte()
Deepanshu Kartikey <[email protected]>
media: imon: fix use-after-free in display_close via dev_dbg
Anuj Bolewar <[email protected]>
media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path
Pei Xiao <[email protected]>
media: cx23885: Fix use-after-free in cx23885_finidev due to race condition
Fan Wu <[email protected]>
media: au0828: fix use-after-free in bulk_timeout timer on disconnect
Chuck Lever <[email protected]>
lockd: Fix use-after-free in nlmsvc_retry_blocked
Günther Noack <[email protected]>
landlock: Fix superblock use-after-free in release_inode()
Yehyeong Lee <[email protected]>
nvmet-fc: fix use-after-free in nvmet_fc_ls_create_connection()
James Kim <[email protected]>
rapidio: mport_cdev: fix use-after-free in mport_mm_close()
Henry Martin <[email protected]>
smb: client: fix use-after-free in cifs_ses_add_channel()
Diego Oliva <[email protected]>
smb: client: fix use-after-free infoleak via the readdir resume name
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
Eric Dumazet <[email protected]>
vlan: restore HW VLAN tag insertion with reorder_hdr off
Kuniyuki Iwashima <[email protected]>
tcp: Fix potential UAF in reqsk_timer_handler().
Namjae Jeon <[email protected]>
ksmbd: validate security descriptor offsets before pointer arithmetic
Karl Mehltretter <[email protected]>
ksmbd: use u8 for SMB2 oplock level values
DaeMyung Kang <[email protected]>
ksmbd: return end of file for reads past a named stream's data
Abdifatah Suruur <[email protected]>
ksmbd: reserve space for the UTF-16 terminator in stream info
DaeMyung Kang <[email protected]>
ksmbd: preserve unreadable named streams on open
Jan Koester <[email protected]>
ksmbd: ignore network devices of other namespaces
Cen Zhang (Microsoft) <[email protected]>
ksmbd: fix parent dentry lifetime in directory enumeration
Giorgi Kobakhia <[email protected]>
ksmbd: fix overflow in dacloffset bounds check in build_sec_desc()
Dairui Zhang <[email protected]>
ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()
Namjae Jeon <[email protected]>
ksmbd: fix extended session security negotiation for raw NTLMSSP
DaeMyung Kang <[email protected]>
ksmbd: avoid restoring only in-memory EOF after allocation change
Michail Andreas Michalopoulos <[email protected]>
ksmbd: accept share config responses from ksmbd-tools before 3.5.3
David Heidelberg <[email protected]>
backlight: qcom-wled: Fix WLED3 brightness register stride
David Heidelberg <[email protected]>
backlight: qcom-wled: Fix unbalanced OVP IRQ enable at probe
David Heidelberg <[email protected]>
backlight: qcom-wled: Fix NULL pointer dereference in wled_remove()
Myeonghun Pak <[email protected]>
backlight: lm3630a: Cancel delayed work before destroying workqueue
Kameron Carr <[email protected]>
Drivers: hv: vmbus: Bounds check the shared ring buffer indices
Johan Hovold <[email protected]>
driver core: fix parent lock use-after-free on USB disconnect
Josef Bacik <[email protected]>
driver core: Limit the messages on a refused uevent
Johan Hovold <[email protected]>
driver core: take parent lock on deferred probe
Jamal Hadi Salim <[email protected]>
net/sched: act_ife: do not consume the inner header on egress
Antonio Quartulli <[email protected]>
net/sched: fix packet reordering on requeue
owen kwan <[email protected]>
net/sched: sch_teql: fix use-after-free on lower qdisc drop
Jamal Hadi Salim <[email protected]>
net/sched: sch_teql: fix slaves_lock IRQ deadlock
Yuhang Zheng <[email protected]>
net/sched: cls_flower: avoid stale mask references after delete
Leonardo Costa <[email protected]>
drm/bridge: tc358768: Enforce input bus flags via atomic_check
Sean Christopherson <[email protected]>
KVM: nVMX: Ensure KVM_REQ_GET_NESTED_STATE_PAGES is cleared on VM-Exit
Yao Zi <[email protected]>
x86/locking: Use sfence for wmb() if SSE is available
Ben Hutchings <[email protected]>
bootconfig: Fix negative seeks on 32-bit with LFS enabled
Takashi Iwai <[email protected]>
ALSA: rawmidi: Fix kvfree() call in spinlock
Timur Kristóf <[email protected]>
drm/amdgpu/uvd3.1: Fix checking whether UVD firmware keyselect was already set
Donggeun Yoo <[email protected]>
tracing: Fix NULL dereference when copying keys for a field variable
Pengpeng Hou <[email protected]>
tracing: Bound histogram expression strings with seq_buf
Pengpeng Hou <[email protected]>
tracing: Return ERR_PTR() from expr_str()
Pengpeng Hou <[email protected]>
tracing: Use __free() for expr_str() buffer
Tom Zanussi <[email protected]>
tracing: Fix fully-qualified variable reference printing in histograms
Christian Brauner <[email protected]>
ntfs3: free replaced mount options after a grace period
Christian Brauner <[email protected]>
ipc: drop the mqueue mount with kern_unmount() on setup failure
Vlad Kulikov <[email protected]>
ipc: create_ipc_ns: drop mqueue mount on sysctl setup failure
Dibin Moolakadan Subrahmanian <[email protected]>
drm/i915/dmc: Add sanity check for DMC load address
EJ Campbell <[email protected]>
x86/kvm: Don't consume async #PF flags on a kernel #PF in NMI context
Xiaoyao Li <[email protected]>
x86/kvm: Use separate percpu variable to track the enabling of asyncpf
Bihaan Sen <[email protected]>
Input: xpad - add support for 8BitDo Pro 2 Wired Controller for Xbox
Weiming Shi <[email protected]>
net: team: free skb when broadcast has no txable port
Alexey Charkov <[email protected]>
regulator: of: fill in supply names in of_regulator_bulk_get_all()
Christian Brauner <[email protected]>
namespace: never expire a locked mount
Hari Mishal <[email protected]>
drm/amd/display: guard dc_sink dereferences in MST mode validation
Theo Andersen Carton <[email protected]>
drm/amdgpu: skip the noirq suspend reset for a switcheroo-parked GPU
Timur Kristóf <[email protected]>
drm/amd/display: Fix fast updates on DCE 6.x
Christian Brauner <[email protected]>
namespace: check a recursive bind mount for mount namespace loops
Ian Rogers <[email protected]>
perf: Replace perf_event_header__init_id with full header init
Mikulas Patocka <[email protected]>
dm-integrity: validate the superblock on resume
Paul Mbewe <[email protected]>
serial: sc16is7xx: refill TX FIFO below trigger using fresh TXLVL
Paulo Alcantara <[email protected]>
smb: client: only require read lease for size-extending zero range
Paulo Alcantara <[email protected]>
smb: client: drain and invalidate before server-side copy/clone
Paulo Alcantara <[email protected]>
smb: client: flush dirty data before zeroing a range
Paulo Alcantara <[email protected]>
smb: client: flush and commit data before querying allocated ranges
Paulo Alcantara <[email protected]>
smb: client: discard post-EOF pagecache when extending a file via clone range
Yu-Hsiang Tseng <[email protected]>
ALSA: hda/realtek: Fix silent speaker on Higole F9B
Sean Christopherson <[email protected]>
KVM: nVMX: Force MSR bitmap refresh if runtime eVMCS controls are modified
Vitaly Kuznetsov <[email protected]>
KVM: x86: Make Hyper-V emulation optional
Vitaly Kuznetsov <[email protected]>
KVM: nVMX: Move guest_cpuid_has_evmcs() to hyperv.h
Vitaly Kuznetsov <[email protected]>
KVM: nVMX: Split off helper for emulating VMCLEAR on Hyper-V eVMCS
Vitaly Kuznetsov <[email protected]>
KVM: VMX: Split off hyperv_evmcs.{ch}Vitaly Kuznetsov <[email protected]>
KVM: x86/xen: Remove unneeded xen context from kvm_arch when !CONFIG_KVM_XEN
Peng Hao <[email protected]>
KVM: X86: Reduce size of kvm_vcpu_arch structure when CONFIG_KVM_XEN=n
Sean Christopherson <[email protected]>
KVM: SVM: Update control fields on #VMEXIT if and only if VMRUN succeeded
Sean Christopherson <[email protected]>
KVM: SVM: Preserve TLB control (i.e. pending TLB flush) on failed VMRUN
Ilya Maximets <[email protected]>
net/sched: act_ct: remove 'add_helper' dead code
Hui Peng <[email protected]>
mctp: route: iterate socket tag list in mctp_lookup_prealloc_tag()
Jeremy Kerr <[email protected]>
net: mctp: separate key correlation across nets
Jeremy Kerr <[email protected]>
net: mctp: Add some detail on the key allocation implementation
Jeremy Kerr <[email protected]>
net: mctp: avoid confusion over local/peer dest/source addresses
Ivan Lipski <[email protected]>
drm/amd/display: Bump frame warning limit for clang builds of dml
Masami Hiramatsu (Google) <[email protected]>
x86/mce: Fix hardware debug register corruption on task migration
Kendall Willis <[email protected]>
serial: 8250_omap: fix wake irq cleared during suspend
Willem de Bruijn <[email protected]>
packet: use ubuf_info completion for TX_RING packets
Willem de Bruijn <[email protected]>
virtio_net: copy zerocopy frags in start_xmit without NAPI
Sean Christopherson <[email protected]>
KVM: x86: Fill kvm_run exit fields in common get_nested_state_pages() error paths
Sean Christopherson <[email protected]>
KVM: x86: Re-pend GET_NESTED_STATE_PAGES if getting said pages fails
Zihan Xi <[email protected]>
smb: client: clean up failed cached directory opens
ChenXiaoSong <[email protected]>
smb: move SMB2 Status code to common header file
Liu Zhenlong <[email protected]>
i2c: qcom-cci: fix device_node refcount leak in cci_probe()/cci_remove()
Jiapeng Chong <[email protected]>
i2c: qcom-cci: Remove the unused variable cci_clk_rate
Bryan O'Donoghue <[email protected]>
i2c: qcom-cci: Stop complaining about DT set clock rate
Adarsh Das <[email protected]>
smb: client: delete compound mids on send failure before unlock
Longlong Xia <[email protected]>
mm/hugetlb: do not dissolve gigantic pages without runtime support
Chang S. Bae <[email protected]>
x86/microcode/intel: Reject problematic loading on Granite Rapids systems
Chengjun Yao <[email protected]>
drm/amdgpu: fix rmmio iounmap skipped on device removal
David Francis <[email protected]>
drm/amdkfd: Avoid integer underflow in EOP ring size calculation.
David Francis <[email protected]>
drm/amdkfd: Avoid integer underflow with ffs in EOP ring size calc
Xiaogang Chen <[email protected]>
drm/amdkfd: Guard m->cp_hqd_eop_control setting by q->eop_ring_buffer_size
Darrick J. Wong <[email protected]>
xfs: don't cross reference rmapbt with bitmaps if they're incomplete
Aldo Ariel Panzardo <[email protected]>
Bluetooth: ISO: release unused CIS holds after channel attach
Wentao Liang <[email protected]>
ata: libahci_platform: Fix device reference leak in ahci_platform_get_resources()
Zhang Zekun <[email protected]>
ata: libahci_platform: Simplify code with for_each_child_of_node_scoped()
Xie Bo <[email protected]>
RISC-V: KVM: Propagate interrupted G-stage faults
Ahmed Naseef <[email protected]>
net: phy: mediatek: do not report link and per-speed LED rules together
Paulo Alcantara <[email protected]>
smb: client: fix fattr leaking on wsl_to_fattr() failure
Paulo Alcantara <[email protected]>
smb: client: fix unaligned access in WSL reparse point parser
Devin Wittmayer <[email protected]>
wifi: mac80211: refuse to make a monitor active when it has no queue
Runyu Xiao <[email protected]>
Input: hp_sdc - shut down kicker timer on module exit
Claudiu Beznea <[email protected]>
phy: renesas: rcar-gen3-usb2: Avoid long delay in atomic context
Takashi Iwai <[email protected]>
ALSA: core: Fix potential UAF after asynchronous card release
Takashi Iwai <[email protected]>
ALSA: core: Use guard() for locking
Cen Zhang <[email protected]>
KEYS: encrypted: fix integer overflow of datablob_len
Masami Hiramatsu (Google) <[email protected]>
tools/bootconfig: Fix integer overflow and truncation in size checks
Masami Hiramatsu (Google) <[email protected]>
tools/bootconfig: Cleanup bootconfig footer size calculations
Mark Rutland <[email protected]>
arm64: percpu: Fix LSE operations on {8,16}-bit types
Catalin Marinas <[email protected]>
arm64: Use load LSE atomics for the non-return per-CPU atomic operations
Jonghyuk Kim(MalHyuk) <[email protected]>
drm/msm: RCU-free the scheduler-containing ring and VM objects
Prike Liang <[email protected]>
drm/amdgpu: skip gfx switch_power_profile during GPU reset
Alex Deucher <[email protected]>
drm/amdgpu/pm: add workload profile pause helper
Runyu Xiao <[email protected]>
net: macb: initialize PTP state before registering clock
Christian Brauner <[email protected]>
fs/ntfs3: use d_instantiate_new() in ntfs_create_inode() and murder syzbot's "WARNING in do_new_mount" saga
Donggeun Yoo <[email protected]>
swiotlb: use the adjusted address for the highmem page lookup
Paulo Alcantara <[email protected]>
smb: client: fix file type corruption in posix_reparse_to_fattr()
Pali Rohár <[email protected]>
cifs: Rename struct reparse_posix_data to reparse_nfs_data_buffer and move to common/smb2pdu.h
Pali Rohár <[email protected]>
cifs: Remove struct reparse_posix_data from struct cifs_open_info_data
Pali Rohár <[email protected]>
cifs: Remove duplicate struct reparse_symlink_data and SYMLINK_FLAG_RELATIVE
Paulo Alcantara <[email protected]>
smb: client: fix WSL reparse point uid/gid override
Paulo Alcantara <[email protected]>
smb: client: fix uid/gid override in getattr with posix extensions
Harald Freudenberger <[email protected]>
s390/crypto: Fix use of mutex in atomic context
Harald Freudenberger <[email protected]>
s390/crypto: Fix skcipher_walk return code handling in aes_s390
Dinh Nguyen <[email protected]>
EDAC/altera: Use parent device for devres in altr_portb_setup()
Rounak Das <[email protected]>
EDAC/altera: Use ECC manager compatible to select A10/S10 IRQ layout
Darrick J. Wong <[email protected]>
xfs: strengthen the "is cow staging" helpers in scrub
Darrick J. Wong <[email protected]>
xfs: fix backwards mergeability logic in refcount scrubber
Ju Nan <[email protected]>
irqchip/stm32mp-exti: Fix the unit of the hwspinlock timeout
Masami Hiramatsu (Google) <[email protected]>
tracing/probes: Fix BTF kflag check for anonymous struct member access
Kanala Ramalingeswara Reddy <[email protected]>
drm/amdgpu: Skip accessing psp rum time db for APUs
Anthony Krowiak <[email protected]>
s390/vfio-ap: fix KVM GISC and page leak when queue removed from host config
Jason J. Herne <[email protected]>
s390/vfio-ap: handle hardware checkstop state on queue reset operation
Mikulas Patocka <[email protected]>
dm-integrity: fix NULL pointer dereference when the 'R' flag is used
HyeongJun An <[email protected]>
ALSA: rawmidi: Return the error from snd_rawmidi_input_params()
Takashi Iwai <[email protected]>
ALSA: rawmidi: Use guard() for locking
Pawel Laszczak <[email protected]>
usb: cdnsp: fix wakeup from S3 after controller context loss
Zhiling Zou <[email protected]>
xfrm: save input state data before secpath resets
Ido Schimmel <[email protected]>
ipv6: udp: Create exceptions before socket matching
Ido Schimmel <[email protected]>
ipv6: Fix redirect exception creation for UDP/RAW sockets
Daehyeon Ko <[email protected]>
vsock/vmci: validate packet source for connected sockets
Yunpeng Tian <[email protected]>
smb: client: reject SetEA requests that do not fit the request buffer
Runyu Xiao <[email protected]>
iio: admv1013: initialize callback mutex before registering notifier
Guangshuo Li <[email protected]>
i2c: qcom-cci: fix autosuspend cleanup
Vladimir Zapolskiy <[email protected]>
i2c: qcom-cci: Remove overcautious disable_irq() calls
Vladimir Zapolskiy <[email protected]>
i2c: qcom-cci: Do not check return value of cci_init()
Breno Leitao <[email protected]>
mm, swap: ratelimit bad swap entry reports
Longlong Xia <[email protected]>
zsmalloc: account for handle size in class lookup
David Hildenbrand (Arm) <[email protected]>
mm/gup: fix always draining LRU caches in collect_longterm_unpinnable_folios()
Shakeel Butt <[email protected]>
memcg: bypass the reclaim and oom killer for dying tasks once oom_reaper is done
Breno Leitao <[email protected]>
mm/kmemleak: report RCU-tasks quiescent states during the scan
Johannes Weiner <[email protected]>
mm: mempolicy: fix automatic numa balancing for shmem
Eckhart Mohr <[email protected]>
ALSA: hda/realtek: Add quirk for TongFang XxAF5xxx
Eckhart Mohr <[email protected]>
ALSA: hda/realtek: Add quirk for TongFang X6SP45xU
Eckhart Mohr <[email protected]>
ALSA: hda/realtek: Add quirk for TongFang X6xx45xU
Vincent Donnefort <[email protected]>
tracing: Fix logged instance name on creation failure
Jesse Zhang <[email protected]>
drm/amdgpu: force complete the MES ring fences on reset
Yang Wang <[email protected]>
drm/amdgpu: Disable runtime PM for externally attached dGPUs
Glenn Judd <[email protected]>
net/mlx5e: do not HW-GRO coalesce small frames
Thorsten Blum <[email protected]>
platform/x86: think-lmi: Fix current password length check
Thorsten Blum <[email protected]>
platform/x86: think-lmi: Fix certificate thumbprint sysfs output
Srinivas Pandruvada <[email protected]>
platform/x86: ISST: Return error during profile addition
Srinivas Pandruvada <[email protected]>
platform/x86: ISST: Use PP level enable mask
Srinivas Pandruvada <[email protected]>
platform/x86: ISST: Validate parameter for frequency and priority
Srinivas Pandruvada <[email protected]>
platform/x86: ISST: Process read/write blocked feature status
Srinivas Pandruvada <[email protected]>
platform/x86/intel/tpmi: Move TPMI ID definition
Pei Xiao <[email protected]>
usb: dwc3: gadget: Fix use-after-free in dwc3_gadget_free_endpoints due to race condition
Xu Rao <[email protected]>
ALSA: hda/ext: preserve PPLCCTL bits when clearing reset
Denis Batishchev <[email protected]>
ALSA: hda/realtek: Enable micmute LED on HP EliteBook 6 G1a p/n: AD3Q9ET#UUG
Jeff Layton <[email protected]>
nfsd: use test_and_clear_bit for somebody_reclaimed to prevent lost update
Jeff Layton <[email protected]>
nfsd: dedup nfs4_client_to_reclaim inserts
Chuck Lever <[email protected]>
svcrdma: Clear sc_cm_id when ADDR_CHANGE replacement fails
Thomas Gleixner <[email protected]>
futex: Sanitize and document task_struct::futex::state transitions
Adrian Hunter <[email protected]>
i3c: master: Fix potential UAF in i3c_device_uevent()
Qu Wenruo <[email protected]>
btrfs: do not overwrite NODATASUM flag when removing NODATACOW flag
Nilesh Javali <[email protected]>
scsi: qla2xxx: Clamp max_npiv_vports to VP_CTRL bitmap capacity
Thiébaud Weksteen <[email protected]>
module: validate string table section types
Matthew Maurer <[email protected]>
module: Factor out elf_validity_cache_index_str
Matthew Maurer <[email protected]>
module: Factor out elf_validity_cache_index_sym
Matthew Maurer <[email protected]>
module: Factor out elf_validity_cache_index_mod
Matthew Maurer <[email protected]>
module: Factor out elf_validity_cache_index_info
Matthew Maurer <[email protected]>
module: Factor out elf_validity_cache_secstrings
Matthew Maurer <[email protected]>
module: Factor out elf_validity_cache_sechdrs
Matthew Maurer <[email protected]>
module: Factor out elf_validity_ehdr
Stanislaw Gruszka <[email protected]>
module/kallsyms: fix nextval for data symbol lookup
Sebastian Andrzej Siewior <[email protected]>
module: Use RCU in find_kallsyms_symbol().
Joanne Chang <[email protected]>
f2fs: dirty directory inodes on mtime/ctime update
Jose Villaseñor Montfort <[email protected]>
HID: input: read battery capacity from its actual report offset
Jiangshan Yi <[email protected]>
HID: nintendo: register input device after capabilities are set
Dev Jain <[email protected]>
mm/page_vma_mapped: use huge_ptep_get() for hugetlb
Dev Jain <[email protected]>
mm/migrate: use huge_ptep_get() in remove_migration_pte()
Dev Jain <[email protected]>
mm/rmap: use huge_ptep_get() in try_to_migrate_one()
Dev Jain <[email protected]>
mm/rmap: use huge_ptep_get() in try_to_unmap_one()
Li Xiasong <[email protected]>
mm/slub: fix missing debugfs entries for caches created before sysfs init
Lukas Wunner <[email protected]>
PCI/AER: Emit TLP Log only for unmasked errors
Lukas Wunner <[email protected]>
PCI/AER: Fix mapping of errors to agent & layer
Pankaj Gupta <[email protected]>
KVM: SEV: Drop FOLL_WRITE for encrypted region registration
Yosry Ahmed <[email protected]>
KVM: x86: Check EFER validity on KVM_SET_SREGS*
Yosry Ahmed <[email protected]>
KVM: x86: Always initialize EFER reserved bits on vendor initialization
Julian Haarmann <[email protected]>
platform/x86: lenovo/ymc: Only match lower byte in WMI lid switch query response
Sean Christopherson <[email protected]>
KVM: nVMX: Decouple INVVPID operand checks from flushing of vpid02
Thomas Zimmermann <[email protected]>
drm/sysfb: simpledrm: Improve framebuffer-size validation
Miquel Raynal (DAVE) <[email protected]>
mtd: rawnand: pl353: Make sure we use the monolithic helpers for raw accesses
Andrea Scian <[email protected]>
mtd: rawnand: pl353: Add message about ECC mode
Qing Luo <[email protected]>
sctp: auth: discard auth_chunk when skb_clone fails
Pablo Neira Ayuso <[email protected]>
netfilter: ctnetlink: do not expose expectation DEAD flag
Pablo Neira Ayuso <[email protected]>
netfilter: nf_conntrack_expect: add and use nf_ct_expect_related_pair()
Bui Viet Dung <[email protected]>
wwan: wwan_hwsim: Pin module for debugfs file operations
Giorgi Kobakhia <[email protected]>
udf: fix return value for non-recorded-allocated extents in udf_map_block()
Jonathan Gopel <[email protected]>
thunderbolt: Do not RPM complete unrelated subtrees on unplug
Cen Zhang <[email protected]>
ocfs2: publish the filecheck owner before adding sysfs attributes
Cen Zhang <[email protected]>
ocfs2: pin owning modules for open debugfs files
Cen Zhang <[email protected]>
ocfs2: drain quorum work before removing the cluster
Cen Zhang <[email protected]>
ocfs2/dlm: drain join handlers before releasing module text
Wei Jie Law <[email protected]>
net: usb: pegasus: do not advance rx_skb->data on dropped frames
Kaho Jiang <[email protected]>
net: ipv4: add zero check for snd_cwnd_clamp
Xiang Mei <[email protected]>
media: go7007: only set audio_enabled if go7007_snd_init() succeeded
Xiang Mei <[email protected]>
media: em28xx: reject audio endpoint with zero packet size
Myeonghun Pak <[email protected]>
media: cx88: Disable PCI device on MPEG initialization failure
Xiang Mei <[email protected]>
libceph: bound mon_command ack decode to front len
Andrea Parri <[email protected]>
kcsan: Avoid division by zero in kcsan_prandom_u32_max()
Fang Xieyan <[email protected]>
kcov: ignore an out-of-range comparison count in write_comp_data()
Yuanfu Xie <[email protected]>
ceph: fail readdir when the MDS reply carries no dirfrag
Baokun Li <[email protected]>
blk-crypto: fix NULL deref and UAF in __blk_crypto_evict_key()
Rohinthan P <[email protected]>
media: em28xx: use video_unregister_device for radio_dev
Matus Gajdos <[email protected]>
ALSA: usb-audio: Add native DSD support for Cambridge Audio streamers
Miquel Raynal <[email protected]>
spi: cadence-qspi: Fix status polling with octal DTR chips
Eckhart Mohr <[email protected]>
ALSA: hda/realtek: Add quirk for ASRock NUC BOX-358H
Reinhard Speyerer <[email protected]>
net: usb: qmi_wwan: add Rolling Wireless RN947R
Vladimir Murzin <[email protected]>
usb: mtu3: Fix double dereference in TP_printk
renpanpan <[email protected]>
ALSA: hda/realtek: Add mute LED quirk for HP Pavilion 14-dv1001TU
Muhtasham Nawr al-Mahmud <[email protected]>
ALSA: hda/realtek: Fix speakers on ASUS PM3406CHA
Zhang Heng <[email protected]>
ALSA: hda/realtek: Add quirk for Acer Nitro AN515-45
Tarun Noonemunthala <[email protected]>
ALSA: hda/realtek: Add quirk for HP ENVY 13-aq1xxx
Luis Banha <[email protected]>
ALSA: hda/realtek: Add mute LED quirk for HP Pavilion 15-ec1xxx
Tomasz Bojanowski <[email protected]>
ALSA: usb-audio: Add mixer mapping for MSI MAG B850M MORTAR WIFI
Hernan Ganzo <[email protected]>
ALSA: hda/realtek: Limit internal mic boost on HP Pavilion 15 (103c:2164)
Jasper Firth <[email protected]>
ASoC: Intel: bytcr_rt5651: Add quirk for Chuwi Hi8 with generic DMI strings
Daniel Ortiz <[email protected]>
ASoC: amd: yc: Add DMI quirk for Lenovo V15 G6 ARP
Rosen Penev <[email protected]>
gpio: mvebu: keep resume masks within the irqchip cache
Seiji Adachi <[email protected]>
ASoC: amd: yc: Add Lenovo ThinkPad E16 Gen 2 (21JN) to quirks
Dmitry Antipov <[email protected]>
HID: roccat: fix locking in roccat_connect() and roccat_disconnect()
Maurizio Lombardi <[email protected]>
nvme-fc: do not warn on controller removal race
Youth Cao <[email protected]>
HID: i2c-hid: Add i2c-hid-quirk-bad-input-size quirk for 0911:5288 device
Namjae Jeon <[email protected]>
ksmbd: handle allocated range queries on dense files
Fernando Fernandez Mancera <[email protected]>
netfilter: tproxy: use DEBUG_NET_WARN_ON_ONCE for protocol fallbacks
Xiubo Li <[email protected]>
ceph: fix use-after-dereference of NULL ci in __ceph_remove_cap()
Mehmet Aysel <[email protected]>
ASoC: amd: acp-config: Add HVY-WXX9/M1060 DMI quirk
Bob Song <[email protected]>
ALSA: hda/conexant: Always enable the headset-mic pin on plugin
Xiubo Li <[email protected]>
ceph: do not cache negative dentries for snapped directories
Federico Valentín Andrade <[email protected]>
ALSA: usb-audio: Skip mixer creation on M-Audio Venom
3,219 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Greg Kroah-Hartman
maintainerPATCH 2/3318 xen-netback: Fix XenBus connection failure cleanup
6.6-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 ; }
# Librecast Test Results
044/044 [ OK ] liblcrq
010/010 [ OK ] libmld
120/120 [ OK ] liblibrecast
CPU/kernel: Linux auntie 6.6.163-rc1-gc4e45e560351 #1 SMP PREEMPT_DYNAMIC Wed Nov 18 16:53:07 -00 2026 x86_64 AMD Ryzen 9 9950X 16-Core Processor AuthenticAMD GNU/Linux
Hi!
Quoted 4 lines
This is the start of the stable review cycle for the 6.6.163 release. There are 3318 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.
This failure looks similar to 6.12 failure.
https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/jobs/18149509459
https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/pipelines/3084771510
Best regards,
Pavel
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.6.163 release. There are 3318 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:42 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.6.163-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.6.y
and the diffstat can be found below.thanks,
greg k-h
Same perf build failure as with 5.15 and 6.1:
/local/users/fainelli/buildroot/output/arm/host/bin/arm-linux-ld: warning: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/arch/perf-in.o: requires executable stack (because the .note.GNU-stack section is executable)
LINK
/local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/perf
/local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/perf-in.o: in function `test_truncated_branch_stack':
sample-parsing.c:(.text+0xaa774): undefined reference to `__evsel__parse_sample'
/local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: sample-parsing.c:(.text+0xaa784): undefined reference to `perf_sample__exit' /local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: sample-parsing.c:(.text+0xaa78c): undefined reference to `evsel__put' /local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/perf-in.o: in function `test_truncated_swapped_raw':
sample-parsing.c:(.text+0xaa93c): undefined reference to `__evsel__parse_sample'
/local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: sample-parsing.c:(.text+0xaa94c): undefined reference to `perf_sample__exit' /local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: sample-parsing.c:(.text+0xaa954): undefined reference to `evsel__put' /local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/perf-in.o: in function `test__kallsyms_fixup_end':
symbols.c:(.text+0xc189c): undefined reference to `dso__symbols'
/local/stbopt_p/toolchains_303/stbgcc-12.4-2.0/bin/../lib/gcc/arm-unknown-linux-gnueabihf/12.4.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: symbols.c:(.text+0xc18b4): undefined reference to `dso__symbols'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile.perf:697: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/perf] Error 1
make[3]: *** [Makefile.perf:267: sub-make] Error 2
make[2]: *** [Makefile:70: all] Error 2
make[1]: *** [package/pkg-generic.mk:286: /local/users/fainelli/buildroot/output/arm/build/linux-tools/.stamp_built] Error 2
make: *** [Makefile:29: _all] Error 2
Signature · 1 line
Florian
Greg Kroah-Hartman
maintainerPATCH 4/3318 net: skbuff: propagate shared-frag marker in skb_zerocopy()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zizhen Liu <[email protected]>
commit 79dc34beb1fdb3da79753e51e15c68591a2561fe upstream.
skb_zerocopy() moves frag descriptors from @from into @to and takes a reference on each frag, but it does not copy skb_shinfo(from)->flags into skb_shinfo(to)->flags. A destination skb holding the same page-cache backed frags as the source therefore reports skb_has_shared_frag() as false.
That breaks the invariant relied on by later in-place writers. ESP input checks skb_has_shared_frag() before deciding whether an uncloned nonlinear skb can skip skb_cow_data(); with the marker lost, an skb that skb_zerocopy() built for nfnetlink_queue or for an openvswitch upcall is decrypted in place, letting an unprivileged user write into the page cache of a root-owned read-only file.
Propagate SKBFL_SHARED_FRAG when frag descriptors are copied, as done for the other frag-transfer helpers.
--- net/core/skbuff.c | 2 ++ 1 file changed, 2 insertions(+)
net/core/skbuff.c +2 -0
@@ -3649,6 +3649,8 @@ skb_zerocopy(struct sk_buff *to, struct }skb_shinfo (to)->nr_frags = j; +skb_shinfo (to)->flags |=skb_shinfo (from)->flags &SKBFL_SHARED_FRAG ; +return 0 ; }EXPORT_SYMBOL_GPL (skb_zerocopy);
Greg Kroah-Hartman
maintainerPATCH 13/3318 lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state
In reply to Greg Kroah-Hartman6.6-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 14/3318 mm/vmscan: wake up flushers conditionally to avoid cgroup OOM
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zeng Jingxiang <[email protected]>
commit 1bc542c6a0d1444559ab75823a89a94d244bf933 upstream.
Commit 14aa8b2d5c2e ("mm/mglru: don't sync disk for each aging cycle") removed the opportunity to wake up flushers during the MGLRU page reclamation process can lead to an increased likelihood of triggering OOM when encountering many dirty pages during reclamation on MGLRU.
This leads to premature OOM if there are too many dirty pages in cgroup:
Killed
dd invoked oom-killer: gfp_mask=0x101cca(GFP_HIGHUSER_MOVABLE|__GFP_WRITE), order=0, oom_score_adj=0
Call Trace: <TASK> dump_stack_lvl+0x5f/0x80 dump_stack+0x14/0x20 dump_header+0x46/0x1b0 oom_kill_process+0x104/0x220 out_of_memory+0x112/0x5a0 mem_cgroup_out_of_memory+0x13b/0x150 try_charge_memcg+0x44f/0x5c0 charge_memcg+0x34/0x50 __mem_cgroup_charge+0x31/0x90 filemap_add_folio+0x4b/0xf0 __filemap_get_folio+0x1a4/0x5b0 ? srso_return_thunk+0x5/0x5f ? __block_commit_write+0x82/0xb0 ext4_da_write_begin+0xe5/0x270 generic_perform_write+0x134/0x2b0 ext4_buffered_write_iter+0x57/0xd0 ext4_file_write_iter+0x76/0x7d0 ? selinux_file_permission+0x119/0x150 ? srso_return_thunk+0x5/0x5f ? srso_return_thunk+0x5/0x5f vfs_write+0x30c/0x440 ksys_write+0x65/0xe0 __x64_sys_write+0x1e/0x30 x64_sys_call+0x11c2/0x1d50 do_syscall_64+0x47/0x110 entry_SYSCALL_64_after_hwframe+0x76/0x7e
memory: usage 308224kB, limit 308224kB, failcnt 2589
swap: usage 0kB, limit 9007199254740988kB, failcnt 0
...
file_dirty 303247360
file_writeback 0
...
oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=test, mems_allowed=0,oom_memcg=/test,task_memcg=/test,task=dd,pid=4404,uid=0 Memory cgroup out of memory: Killed process 4404 (dd) total-vm:10512kB, anon-rss:1152kB, file-rss:1824kB, shmem-rss:0kB, UID:0 pgtables:76kB oom_score_adj:0
The flusher wake up was removed to decrease SSD wearing, but if we are seeing all dirty folios at the tail of an LRU, not waking up the flusher could lead to thrashing easily. So wake it up when a memcg is about to OOM due to dirty caches.
I did run the build kernel test[1] on V6, with -j16 1G memcg on my local branch:
Without the patch(10 times):
user 1449.394
system 368.78 372.58 363.03 362.31 360.84 372.70 368.72 364.94 373.51 366.58 (avg 367.399)
real 164.883
With the V6 patch(10 times):
user 1447.525
system 360.87 360.63 372.39 364.09 368.49 365.15 359.93 362.04 359.72 354.60 (avg 362.79)
real 164.514
Test results show that this patch has about 1% performance improvement, which should be caused by noise.
--- mm/vmscan.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-)
mm/vmscan.c +20 -2
@@ -4913,6 +4913,7 @@ static bool sort_folio(struct lruvec *lr int tier_idx) {bool success; +bool dirty, writeback;int gen =folio_lru_gen (folio);int type =folio_is_file_lru (folio);int zone =folio_zonenum (folio);
@@ -4961,9 +4962,17 @@ static bool sort_folio(struct lruvec *lrreturn true; } + dirty =folio_test_dirty (folio); + writeback =folio_test_writeback (folio); +if (type ==LRU_GEN_FILE && dirty) { + sc->nr.file_taken += delta; +if (!writeback) + sc->nr.unqueued_dirty += delta; + } +/* waiting for writeback */ -if (folio_test_locked (folio) ||folio_test_writeback (folio) || - (type ==LRU_GEN_FILE &&folio_test_dirty (folio))) { +if (folio_test_locked (folio) || writeback || + (type ==LRU_GEN_FILE && dirty)) { gen =folio_inc_gen (lruvec, folio, true);list_move (&folio->lru, &lrugen->folios[gen][type][zone]);return true;
@@ -5075,6 +5084,8 @@ static int scan_folios(struct lruvec *lr__count_memcg_events (memcg,PGREFILL , sorted);__count_vm_events (PGSCAN_ANON + type, isolated); +if (type ==LRU_GEN_FILE ) + sc->nr.file_taken += isolated;/* * There might not be eligible folios due to reclaim_idx. Check the * remaining to prevent livelock if it's not making progress.
@@ -5203,6 +5214,7 @@ static int evict_folios(struct lruvec *lreturn scanned; retry: reclaimed =shrink_folio_list (&list, pgdat, sc, &stat, false); + sc->nr.unqueued_dirty += stat.nr_unqueued_dirty; sc->nr_reclaimed += reclaimed;list_for_each_entry_safe_reverse (folio, next, &list, lru) {
@@ -5415,6 +5427,12 @@ static bool try_to_shrink_lruvec(structcond_resched (); } +/* +* If too many file cache in the coldest generation can't be evicted +* due to being dirty, wake up the flusher. +*/ +if (sc->nr.unqueued_dirty && sc->nr.unqueued_dirty == sc->nr.file_taken) +wakeup_flusher_threads (WB_REASON_VMSCAN );/* whether this lruvec should be rotated */ return nr_to_scan <0 ; }
Greg Kroah-Hartman
maintainerPATCH 15/3318 mm: vmscan: fix dirty folios throttling on cgroup v1 for MGLRU
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Baolin Wang <[email protected]>
commit 13b6b620910436c29dea398382e83c9499fd13e4 upstream.
The balance_dirty_pages() won't do the dirty folios throttling on cgroupv1. See commit 9badce000e2c ("cgroup, writeback: don't enable cgroup writeback on traditional hierarchies").
Moreover, after commit 6b0dfabb3555 ("fs: Remove aops->writepage"), we no longer attempt to write back filesystem folios through reclaim.
On large memory systems, the flusher may not be able to write back quickly enough. Consequently, MGLRU will encounter many folios that are already under writeback. Since we cannot reclaim these dirty folios, the system may run out of memory and trigger the OOM killer.
Hence, for cgroup v1, let's throttle reclaim after waking up the flusher, which is similar to commit 81a70c21d917 ("mm/cgroup/reclaim: fix dirty pages throttling on cgroup v1"), to avoid unnecessary OOM.
The following test program can easily reproduce the OOM issue. With this patch applied, the test passes successfully.
$mkdir /sys/fs/cgroup/memory/test
$echo 256M > /sys/fs/cgroup/memory/test/memory.limit_in_bytes $echo $$ > /sys/fs/cgroup/memory/test/cgroup.procs $dd if=/dev/zero of=/mnt/data.bin bs=1M count=800
--- mm/vmscan.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
mm/vmscan.c +15 -1
@@ -5431,8 +5431,22 @@ static bool try_to_shrink_lruvec(struct* If too many file cache in the coldest generation can't be evicted * due to being dirty, wake up the flusher. */ -if (sc->nr.unqueued_dirty && sc->nr.unqueued_dirty == sc->nr.file_taken) +if (sc->nr.unqueued_dirty && sc->nr.unqueued_dirty == sc->nr.file_taken) { +struct pglist_data *pgdat =lruvec_pgdat (lruvec); +wakeup_flusher_threads (WB_REASON_VMSCAN ); +/* +* For cgroupv1 dirty throttling is achieved by waking up +* the kernel flusher here and later waiting on folios +* which are in writeback to finish (see shrink_folio_list()). +* +* Flusher may not be able to issue writeback quickly +* enough for cgroupv1 writeback throttling to work +* on a large system. +*/ +if (!writeback_throttling_sane (sc)) +reclaim_throttle (pgdat,VMSCAN_THROTTLE_WRITEBACK ); + }/* whether this lruvec should be rotated */ return nr_to_scan <0 ; }
Greg Kroah-Hartman
maintainerPATCH 16/3318 net: gso: limit recursive IP-in-IP segmentation
In reply to Greg Kroah-Hartman6.6-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: ipv6_gso_segment() still calls ipv6_hopopt_jumbo_remove()
right after skb_reset_network_header() in this version; keep the new recursion check directly after skb_reset_network_header() as upstream does, before the jumbo removal. IP_TUNNEL_RECURSION_LIMIT is still 4 in this tree because 77facb35227c ("net: increase IP_TUNNEL_RECURSION_LIMIT to 5") is not here, so the fifth entry is the one that fails until that commit is applied ]
--- include/net/gso.h | 8 ++++++++ net/core/gso.c | 1 + net/ipv4/af_inet.c | 3 +++ net/ipv6/ip6_offload.c | 4 ++++ 4 files changed, 16 insertions(+)
include/net/gso.h +8 -0
@@ -19,10 +19,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) -
net/core/gso.c +1 -0
@@ -117,6 +117,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
@@ -1378,6 +1378,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
@@ -17,6 +17,7 @@#include <net/udp.h> #include <net/gro.h> #include <net/gso.h> +#include <net/ip_tunnels.h> #include "ip6_offload.h"
@@ -122,6 +123,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; err =ipv6_hopopt_jumbo_remove (skb);if (err)return ERR_PTR (err);
Greg Kroah-Hartman
maintainerPATCH 17/3318 ext4: validate readdir offset before accessing dirent
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yao Kai <[email protected]>
commit bc4b7b0414c33b2c8898eb04386df0d21a13dad8 upstream.
A corrupted directory can trigger the following KASAN report when ext4_readdir() resumes from an invalid position:
BUG: KASAN: use-after-free in __ext4_check_dir_entry+0x5ef/0x820 Read of size 2 at addr ffff88810a646000 by task repro_linear/509 Call Trace: <TASK> dump_stack_lvl+0x53/0x70 print_report+0xd0/0x630 kasan_report+0xce/0x100 __ext4_check_dir_entry+0x5ef/0x820 ext4_readdir+0xcde/0x2b70 iterate_dir+0x1a1/0x520 __x64_sys_getdents64+0x12b/0x220 do_syscall_64+0xf9/0x540 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK>
KASAN reports use-after-free because the out-of-bounds access lands in an adjacent freed page. The directory buffer itself is still referenced.
ext4_dir_llseek() invalidates the directory cookie so that ext4_readdir() rescans directory entries from the start of the block. The rescan checks only the lower bound of rec_len before advancing. A corrupted rec_len can therefore place the offset where the block has insufficient space for a complete directory entry. The rescan itself may dereference that truncated entry, or the main loop may pass it to __ext4_check_dir_entry(). The latter reads de->rec_len before validating the range. For example:
block offset 0 4092 4096
|---- de1.rec_len = 4092 -----|----|
de2.inode
| de2.rec_len
^ OOB, reported as UAFde2 starts at offset 4092 in this 4 KiB block. Its four-byte inode fits in the block, but its rec_len starts at offset 4096 and crosses the boundary.
The minimum safe length is inode-dependent. Encrypted and casefolded directory entries need eight additional hash bytes, while a valid metadata checksum tail is only 12 bytes.
Cache the metadata checksum feature state and derive the minimum directory entry length from the on-disk format. Use it to bound both the rescan and the offset passed to the main loop. Report an offset in a truncated block tail and skip the remainder of the block, while continuing to accept an offset exactly at the block boundary.
--- fs/ext4/dir.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-)
fs/ext4/dir.c +18 -2
@@ -136,6 +136,7 @@ static int ext4_readdir(struct file *filstruct super_block *sb = inode->i_sb;struct buffer_head *bh =NULL ;struct fscrypt_str fstr =FSTR_INIT (NULL ,0 ); +bool has_csum =ext4_has_metadata_csum (sb); err =fscrypt_prepare_readdir (inode);if (err)
@@ -147,7 +148,7 @@ static int ext4_readdir(struct file *filreturn err;/* Can we just clear INDEX flag to ignore htree information? */ -if (!ext4_has_metadata_csum (sb)) { +if (!has_csum) {/* * We don't set the inode dirty flag since it's not * critical that it gets flushed back to the disk.
@@ -233,7 +234,10 @@ static int ext4_readdir(struct file *fil* dirent right now. Scan from the start of the block * to make sure. */ if (!inode_eq_iversion (inode, file->f_version)) { -for (i =0 ; i < sb->s_blocksize && i < offset; ) { +for (i =0 ; + i <= sb->s_blocksize - +ext4_dir_rec_len (1 , has_csum ?NULL : inode) && + i < offset;) { de = (struct ext4_dir_entry_2 *) (bh->b_data + i);/* It's too expensive to do a full
@@ -255,6 +259,17 @@ static int ext4_readdir(struct file *fil file->f_version =inode_query_iversion (inode); } +if (unlikely (offset < sb->s_blocksize && + offset > sb->s_blocksize - +ext4_dir_rec_len (1 , has_csum ?NULL : inode))) { +EXT4_ERROR_FILE (file, bh->b_blocknr, +"bad entry in directory: %s - offset=%u, size=%lu" , +"directory entry too close to block end" , + offset, sb->s_blocksize); + ctx->pos =round_up (ctx->pos, sb->s_blocksize); + goto next_block; + } +while (ctx->pos < inode->i_size && offset < sb->s_blocksize) { de = (struct ext4_dir_entry_2 *) (bh->b_data + offset);
@@ -310,6 +325,7 @@ static int ext4_readdir(struct file *fil ctx->pos +=ext4_rec_len_from_disk (de->rec_len, sb->s_blocksize); } +next_block:if ((ctx->pos < inode->i_size) && !dir_relax_shared (inode)) goto done;brelse (bh);
Greg Kroah-Hartman
maintainerPATCH 18/3318 ALSA: line6: Clear prev_fbuf on capture buffer release
In reply to Greg Kroah-Hartman6.6-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 19/3318 drm/rockchip: dw_hdmi: Use resume_early pm ops for system suspend
In reply to Greg Kroah-Hartman6.6-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
@@ -690,17 +690,18 @@ static void dw_hdmi_rockchip_remove(struct platform_device *pdev)component_del (&pdev->dev, &dw_hdmi_rockchip_ops); } -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 20/3318 drm/amd/pm: Validate OD DPM triples before mutating tables
In reply to Greg Kroah-Hartman6.6-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
@@ -5654,23 +5654,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
@@ -5640,11 +5640,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);
@@ -5662,21 +5660,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 21/3318 drm/amdgpu: Gate debugfs MMIO access on kernel lockdown
In reply to Greg Kroah-Hartman6.6-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 "amdgpu.h"
@@ -1639,6 +1640,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 | 0400, root,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 22/3318 drm/radeon: avoid double free in r600 DPM cleanup
In reply to Greg Kroah-Hartman6.6-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 5/3318 ksmbd: wait for negotiation before receiving another PDU
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Namjae Jeon <[email protected]>
[ Upstream commit 68f410faedaf6ee74d81e574733c50ebcc1bd8ed ]
The receive thread queues a request and can read the next PDU before the negotiation worker finishes. While need_neg is set, the next PDU can cause ksmbd_init_smb_server() to replace conn->ops. A pipelined SMB2 request can therefore make the worker handle an earlier, shorter SMB1 request with SMB2 operations and read beyond its buffer.
An SMB1 multi-protocol negotiate may be followed by an SMB2 NEGOTIATE that changes conn->ops again. Wait for work queued while the connection is new or needs negotiation to complete before reading another PDU. This keeps the operations stable for both stages of negotiation without changing when need_neg is cleared.
--- fs/smb/server/server.c | 5 +++++ 1 file changed, 5 insertions(+)
fs/smb/server/server.c +5 -0
@@ -291,6 +291,7 @@ static void handle_ksmbd_work(struct work_struct *wk)static int queue_ksmbd_work (struct ksmbd_conn *conn) {struct ksmbd_work *work; +bool wait_for_neg =ksmbd_conn_new (conn) ||ksmbd_conn_need_negotiate (conn);int err; err =ksmbd_init_smb_server (conn);
@@ -313,6 +314,10 @@ static int queue_ksmbd_work(struct ksmbd_conn *conn) conn->last_active = jiffies;INIT_WORK (&work->work, handle_ksmbd_work);ksmbd_queue_work (work); +/* Negotiation can change conn->ops, finish it before reading another PDU. */ +if (wait_for_neg) +wait_event (conn->req_running_q, +atomic_read (&conn->req_running) ==0 );return 0 ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 23/3318 drm/amdgpu: add buf length check
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gangliang Xie <[email protected]>
[ Upstream commit 473f99e4a262776141366f7fb10f101d0f22b019 ]
add buf length check before using it to access data
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c +4 -1
@@ -166,7 +166,8 @@ static ssize_t ta_if_load_debugfs_write(struct file *fp, const char *buf, size_tif (ret)return -EFAULT ; -if (ta_bin_len >PSP_1_MEG ) +if (ta_bin_len <sizeof (struct common_firmware_header ) || + ta_bin_len >PSP_1_MEG )return -EINVAL ; copy_pos +=sizeof (uint32_t );
@@ -325,6 +326,8 @@ static ssize_t ta_if_invoke_debugfs_write(struct file *fp, const char *buf, size ret =copy_from_user ((void *)&shared_buf_len, &buf[copy_pos],sizeof (uint32_t ));if (ret)return -EFAULT ; +if (!shared_buf_len || shared_buf_len >PSP_1_MEG ) +return -EINVAL ; copy_pos +=sizeof (uint32_t ); shared_buf =kzalloc (shared_buf_len,GFP_KERNEL );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 6/3318 KVM: arm64: Transfer the hyp stack pages out of the host stage-2
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Fuad Tabba <[email protected]>
[ Upstream commit 3a8c562892b96f35bba1e00d5e455a15963bbb92 ]
fix_host_ownership() walks only the linear-map alias of each memblock region, and the per-CPU hyp stack, mapped in the private VA range for its guard page, has none.
Walk each stack's VA range with the same walker.
[ 38f9e4b905a0 ("arm64: kvm: Introduce nvhe stack size constants") is
not backported because it converts nvhe stack code in eight files to NVHE_STACK_SIZE, and the hyp stack here is one page, so PAGE_SIZE replaces it. ]
--- arch/arm64/kvm/hyp/nvhe/setup.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/kvm/hyp/nvhe/setup.c +10 -0
@@ -240,6 +240,16 @@ static int fix_host_ownership(void)return ret; } +/* The stacks sit in the private VA range, not the linear map. */ +for (i =0 ; i < hyp_nr_cpus; i++) { +struct kvm_nvhe_init_params *params =per_cpu_ptr (&kvm_init_params, i); +u64 start = params->stack_hyp_va -PAGE_SIZE ; + + ret =kvm_pgtable_walk (&pkvm_pgtable, start,PAGE_SIZE , &walker); +if (ret) +return ret; + } +return 0 ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 7/3318 mm/damon/sysfs: put target pids for damon_start() failure
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: SJ Park <[email protected]>
damon_sysfs_turn_damon_on() allocates and sets up damon_ctx to start. If it is for virtual address space monitoring, the setup increases the reference counts of the target pids. After the setup, the function invokes damon_start(). If damon_start() fails, it deallocates the damon_ctx object without decreasing the reference counts of target pids. As a result, pids can be leaked.
Fix the leak by putting pids using damon_sysfs_destroy_targets() before deallocating the damon_ctx object.
--- mm/damon/sysfs.c | 1 + 1 file changed, 1 insertion(+)
mm/damon/sysfs.c +1 -0
@@ -1465,6 +1465,7 @@ static int damon_sysfs_turn_damon_on(struct damon_sysfs_kdamond *kdamond)return PTR_ERR (ctx); err =damon_start (&ctx,1 , false);if (err) { +damon_sysfs_destroy_targets (ctx);damon_destroy_ctx (ctx);return err; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 8/3318 mm/damon/sysfs: put target pids for apply_inputs() failure
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: SJ Park <[email protected]>
damon_sysfs_build_ctx() invokes damon_sysfs_apply_inputs() for setting damon_ctx object with user inputs. If it is configured for virtual address spaces monitoring, the setup also increases reference counts of monitoring target pids. If the setup is failed, damon_sysfs_build_ctx() deallocates the damon_ctx object without decreasing the reference counts of the pids. If the failure happened after increasing reference counts of pids, the pids can be leaked.
Fix the leaks by decreasing the pid reference counts before deallocating the damon_ctx object.
The issue was discovered [1] by Sashiko.
[1] https://lore.kernel.org/[email protected]
--- mm/damon/sysfs.c | 1 + 1 file changed, 1 insertion(+)
mm/damon/sysfs.c +1 -0
@@ -1433,6 +1433,7 @@ static struct damon_ctx *damon_sysfs_build_ctx( err =damon_sysfs_apply_inputs (ctx, sys_ctx);if (err) { +damon_sysfs_destroy_targets (ctx);damon_destroy_ctx (ctx);return ERR_PTR (err); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 9/3318 kbuild: link-vmlinux.sh: improve detection of third pass requirement
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: André Draszik <[email protected]>
commit 14b8b4bf2d7bd5d58c17adbeed0edfda1dfc1a7f upstream.
It can happen that symbol sizes within .tmp_vmlinux1.kallsyms.o and .tmp_vmlinux2.kallsyms.o differ, without affecting file size on disk because of section alignment and/or padding emitted by the assembler.
link-vmlinux.sh doesn't detect this case currently and keeps using .tmp_vmlinux2.kallsyms.o to link the final vmlinux. Due to the different symbol sizes, other symbols are shifted within the final image compared to .tmp_vmlinux2, and the final comparison of System.map against "${kallsyms_sysmap}" fails with the message:
Inconsistent kallsyms data
Try "make KALLSYMS_EXTRA_PASS=1" as a workaround
This can happen in particular if the linker emits additional symbols that might have different names between our (re-)linking steps, e.g. because those names depend on the virtual address of the symbol. Linker stubs for ARM errata work-arounds are one such case.
These changed symbol names can cause the output of the token compression of kallsyms.c to change due to the changed symbol substring count, which in turn can change the size of the kallsyms_names symbol itself, causing the potential shift of subsequent symbol addresses in .tmp_vmlinux2.kallsyms.o and therefore the final image.
Update link-vmlinux.sh to not rely on file size of .tmp_vmlinux?.kallsyms.o alone but to also consider symbol offsets within to resolve this, and do a third pass if required.
[AD: kallsymso_prev is already tracked by kallsyms_step() here, so only
add kallsymso_changed() and use it]
--- scripts/link-vmlinux.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)
scripts/link-vmlinux.sh +18 -1
@@ -144,6 +144,18 @@ gen_btf() printf "${et_rel}" | dd of=${2} conv=notrunc bs=1 seek=16 status=none } +# Check if kallsymso_prev and kallsymso differ +# If symbol sizes within ${kallsymso} change, any symbols within vmlinux are +# likely to shift, invalidating ${kallsymso}. +# Since file size can remain unchanged even if symbol sizes change, compare the +# actual symbols instead of relying on file size only. +kallsymso_changed() +{ + ${NM} -n "${kallsymso_prev}" > "${kallsymso_prev}.sym" + ${NM} -n "${kallsymso}" > "${kallsymso}.sym" + ! cmp -s "${kallsymso_prev}.sym" "${kallsymso}.sym" +} + # Create ${2} .S file with all symbols from the ${1} object file kallsyms() {
@@ -271,7 +283,12 @@ if is_enabled CONFIG_KALLSYMS; then size1=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" ${kallsymso_prev}) size2=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" ${kallsymso}) - if [ $size1 -ne $size2 ] || [ -n "${KALLSYMS_EXTRA_PASS}" ]; then + # Due to alignment, file size of the kallsymso object file might remain + # unchanged even if individual symbols within change size. Changed + # symbol sizes can still shift other symbols, though. Therefore, don't + # rely on file size alone. + if [ $size1 -ne $size2 ] || kallsymso_changed || \ + [ -n "${KALLSYMS_EXTRA_PASS}" ]; then kallsyms_step 3 fi fi
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 10/3318 exec: cancel io_uring requests before de_thread()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Christian Brauner <[email protected]>
[ Upstream commit b42c85c20d84ff3e4f0f027d6596c3b3b4a20657 ]
begin_new_exec() cancels the exec'ing thread's io_uring requests after de_thread() made it the only thread in the thread-group. Now io_uring_task_cancel() runs task work after. If it runs a create_worker_cb() item then a io-wq queued on the thread before the exec creates a new io-wq worker thread.
Said thread joins the thread-group which de_thread() just took down. The io-iwq sticks around until it notices that its workqueue is dying. But code after de_thread() relies on being single-threaded.
Move io_uring_task_cancel() before de_thread() but behind the point of no return. Any worker created during task work run from io_uring_task_cancel() is just a sibling thread that de_thread() will take down and reap.
Once io_uring_task_cancel() returned the thread has neither a task context nor a workqueue left so nothing can add a thread behind de_thread()'s back anymore.
--- fs/exec.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
fs/exec.c +7 -4
@@ -1268,6 +1268,13 @@ int begin_new_exec(struct linux_binprm * bprm)*/ bprm->point_of_no_return = true; +/* +* Cancel any io_uring activity across execve. This runs task work +* that may still create an io-wq worker, so do it while de_thread() +* can still zap it. +*/ +io_uring_task_cancel (); +/* Make this the only thread in the thread group */ retval =de_thread (me);if (retval)
@@ -1284,10 +1291,6 @@ int begin_new_exec(struct linux_binprm * bprm)/* see the comment in check_unsafe_exec() */ current->fs->in_exec =0 ; -/* -* Cancel any io_uring activity across execve -*/ -io_uring_task_cancel ();/* Ensure the files table is not shared. */ retval =unshare_files ();
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 11/3318 fork: move the coredump and exec checks into create_io_thread()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Christian Brauner <[email protected]>
[ Upstream commit e760200370e4de054b6b5f568a7faa911e2956bb ]
Only a PF_USER_WORKER thread returns from get_signal() after a fatal signal and can go on to create a thread. get_signal() sets PF_SIGNALED before it dumps core and before it lets a PF_USER_WORKER thread return. That flags sticks.
The exec'ing thread itself is never signaled. But it doesn't need the check anyway as we moved cancellation of io_uring requests before de_thread(). create_io_thread() is the only way a signaled thread creates another one. vhost_task_create() is reached from ioctls alone.
io_should_retry_thread() doesn't retry -EINTR, so io-wq callers give up the same way they did when copy_process() refused.
Stable-dep-of: 1f978881ce6c ("fork: don't create io threads once PF_POSTCOREDUMP is set")
--- kernel/fork.c | 4 ++++ 1 file changed, 4 insertions(+)
kernel/fork.c +4 -0
@@ -2867,6 +2867,10 @@ struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node) .user_worker = 1, }; +/* A creator past its fatal signal gets no thread. */ +if (current->flags &PF_SIGNALED ) +return ERR_PTR (-EINTR ); +return copy_process (NULL ,0 , node, &args); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 12/3318 fork: dont create io threads once PF_POSTCOREDUMP is set
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Christian Brauner <[email protected]>
[ Upstream commit 1f978881ce6c9ac4f4d4a7b6a6e52339eadcd350 ]
zap_process() skips every thread that already has PF_POSTCOREDUMP set. Such a thread is past synchronize_group_exit(), so a coredump can't catch it anymore. It isn't counted in core_state->threads_remaining and it isn't sent SIGKILL.
do_exit() sets PF_POSTCOREDUMP in synchronize_group_exit() and calls io_uring_files_cancel() right after that. The cancellation runs task work and a create_worker_cb() that io-wq queued before the exit creates a new io-wq worker from there. If another thread started a coredump in the meantime that worker joins a thread-group which is already being dumped. zap_process() never saw it so it was never counted. But when it exits it sees signal->core_state in synchronize_group_exit() and decrements threads_remaining like any other thread.
So the count reaches zero one thread early and the dumper leaves coredump_wait_inactive() while a thread it counted is still running.
The task has no fatal signal pending because zap_process() deliberately didn't send it one, and it never went through get_signal() so it doesn't have PF_SIGNALED either.
Refuse to create an io thread when the creator has PF_POSTCOREDUMP. That costs nothing. io_uring_files_cancel() raises IO_WQ_BIT_EXIT before it runs any task work, so a worker created from there only ever gets to exit again, and io_should_retry_thread() doesn't retry -EINTR.
Clearing PF_POSTCOREDUMP for the new thread in copy_process() was the other option. It makes the worker a thread like any other, but it only helps while the dump hasn't started. A worker born after zap_process() has run is invisible to it whatever its flags say and still decrements threads_remaining on the way out. Refusing to create it covers both, and then no task is ever born with the flag, so there is nothing to clear.
Moving io_uring_files_cancel() ahead of synchronize_group_exit() closes the same window. It runs the cancellation, and whatever that can block on, before the thread announces itself to the dumper. A thread that blocks there never reaches coredump_task_exit() at all, so the dumper ends up waiting for a thread that never parks. Refusing the creation leaves the cancellation where it is. But it's very ugly to run io_uring work even before we did all the generic exit work.
--- kernel/fork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/fork.c +2 -2
@@ -2867,8 +2867,8 @@ struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node) .user_worker = 1, }; -/* A creator past its fatal signal gets no thread. */ -if (current->flags &PF_SIGNALED ) +/* A creator past its fatal signal or its coredump point gets no thread. */ +if (current->flags & (PF_SIGNALED |PF_POSTCOREDUMP ))return ERR_PTR (-EINTR );return copy_process (NULL ,0 , node, &args);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 3/3318 xen-netback: Zero out sring pointers on unmap
In reply to Greg Kroah-Hartman6.6-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
@@ -1523,12 +1523,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
maintainerPATCH 25/3318 gpio: pca9570: Use I2C match data
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 415c63896b76fd98883e190bc7518383cb01779c ]
The driver stores chip metadata in both the OF match table and the I2C id table, but probe currently reads it with device_get_match_data(). That helper only returns firmware-node match data, so an I2C-id/modalias match can leave chip_data NULL before the driver dereferences it to read ngpio.
Use i2c_get_match_data() so the I2C id table driver_data is consumed when firmware match data is not present.
--- drivers/gpio/gpio-pca9570.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-pca9570.c +1 -1
@@ -127,7 +127,7 @@ static int pca9570_probe(struct i2c_client *client) gpio->chip.get = pca9570_get; gpio->chip.set = pca9570_set; gpio->chip.base =-1 ; - gpio->chip_data =device_get_match_data (&client->dev); + gpio->chip_data =i2c_get_match_data (client); gpio->chip.ngpio = gpio->chip_data->ngpio; gpio->chip.can_sleep = true;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 34/3318 iio: accel: fxls8962af: clamp the device-reported FIFO sample count
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bryam Vargas <[email protected]>
[ Upstream commit 2f8225b91eb478ca2e9aec8aaef4d229765bcebe ]
fxls8962af_fifo_flush() transfers the sample count the device reports in BUF_STATUS into an on-stack buffer sized for FXLS8962AF_FIFO_LENGTH (32) samples, but the count is a 6-bit field (0..63) that is only checked for zero. A device, or an attacker on the I2C/SPI bus, reporting 33..63 overflows the buffer by up to 186 bytes: a stack out-of-bounds write.
Clamp the count to FXLS8962AF_FIFO_LENGTH before the transfer, mirroring the clamp already applied in fxls8962af_set_watermark(). Conforming hardware reports at most that many samples and is unaffected.
--- drivers/iio/accel/fxls8962af-core.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/iio/accel/fxls8962af-core.c +2 -0
@@ -959,6 +959,8 @@ static int fxls8962af_fifo_flush(struct iio_dev *indio_dev)if (!count)return 0 ; + count =min (count,FXLS8962AF_FIFO_LENGTH ); + data->old_timestamp = data->timestamp; data->timestamp =iio_get_time_ns (indio_dev);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 35/3318 perf/x86/intel: Fallback to sw branch type decoding if no hw decoding
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dapeng Mi <[email protected]>
[ Upstream commit 170cc6b02e3d5203ccaa49ffea1ee5a7ab08c885 ]
intel_pmu_lbr_filter() currently assumes arch-LBR provides hardware branch-type decoding and skips software decoding on that path.
However, arch-LBR may not always expose branch-type information. In that case, treating entries as hardware-decoded can misclassify sampled branches (for example, defaulting to JCC), which breaks branch-type filtering results.
Fix this by using software branch-type decoding when hardware branch-type decoding is unavailable (that is, when x86_lbr_type is not enabled). This keeps branch classification and filtering behavior correct across arch-LBR configurations.
Since x86_lbr_type is only set to true when arch-LBR is supported, it's unnecessary to check if the CPU has the arch-LBR feature.
--- arch/x86/events/intel/lbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/events/intel/lbr.c +1 -1
@@ -1144,7 +1144,7 @@ intel_pmu_lbr_filter(struct cpu_hw_events *cpuc)* Doesn't support OTHER_BRANCH decoding for now. * OTHER_BRANCH branch type still rely on software decoding. */ -if (static_cpu_has (X86_FEATURE_ARCH_LBR ) && +if (static_branch_likely (&x86_lbr_type) && type <=ARCH_LBR_BR_TYPE_KNOWN_MAX ) { to_plm =kernel_ip (to) ?X86_BR_KERNEL :X86_BR_USER ; type = arch_lbr_br_type_map[type] | to_plm;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 36/3318 fat: reject name longer than NAME_MAX in msdos_format_name()
In reply to Greg Kroah-Hartman6.6-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/3318 perf/x86/intel/uncore: Fix PCI PMU cleanup on setup failure
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zide Chen <[email protected]>
[ Upstream commit 003267cb94e21d762eb72d6977d84f44f1705bb7 ]
When uncore_pci_pmu_register() fails, pmu->boxes[die] is set to NULL before returning. In the uncore_pci_remove() path, this causes uncore_pci_pmu_unregister() to be skipped entirely, leaking pmu->activeboxes. In the uncore_bus_notify() path, uncore_pci_pmu_unregister() may still be called and must exit early when pmu->boxes[die] is NULL to avoid a NULL pointer dereference, and to ensure activeboxes is only decremented for a previously active box.
Additionally, since pci_get_drvdata() returns NULL on registration failure, uncore_pci_remove() can no longer treat NULL drvdata as an indicator of an auxiliary PCI device. Remove the associated WARN_ON_ONCE().
--- arch/x86/events/intel/uncore.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
arch/x86/events/intel/uncore.c +4 -1
@@ -1173,6 +1173,7 @@ static int uncore_pci_pmu_register(struct pci_dev *pdev,/* First active box registers the pmu */ ret =uncore_pmu_register (pmu);if (ret) { +atomic_dec (&pmu->activeboxes); pmu->boxes[die] =NULL ;uncore_box_exit (box);kfree (box);
@@ -1238,6 +1239,9 @@ static void uncore_pci_pmu_unregister(struct intel_uncore_pmu *pmu, int die) {struct intel_uncore_box *box = pmu->boxes[die]; +if (!box) +return ; + pmu->boxes[die] =NULL ;if (atomic_dec_return (&pmu->activeboxes) ==0 )uncore_pmu_unregister (pmu);
@@ -1262,7 +1266,6 @@ static void uncore_pci_remove(struct pci_dev *pdev)break ; } } -WARN_ON_ONCE (i >=UNCORE_EXTRA_PCI_DEV_MAX );return ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 38/3318 spi: bcm-qspi: return error from failed controller suspend
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jiawen Liu <[email protected]>
[ Upstream commit 44d09ef0ba690ac46d17eb05c12a47a5dd75e231 ]
spi_controller_suspend() can fail if the SPI core cannot stop the controller. bcm_qspi_suspend() ignored that error, disabled the controller clock, uninitialized the hardware, and returned success.
Return the suspend error before tearing down the clock and hardware state.
--- drivers/spi/spi-bcm-qspi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/spi/spi-bcm-qspi.c +5 -1
@@ -1694,13 +1694,17 @@ EXPORT_SYMBOL_GPL(bcm_qspi_remove);static int __maybe_unused bcm_qspi_suspend (struct device *dev) {struct bcm_qspi *qspi =dev_get_drvdata (dev); +int ret;/* store the override strap value */ if (!bcm_qspi_bspi_ver_three (qspi)) qspi->s3_strap_override_ctrl =bcm_qspi_read (qspi,BSPI ,BSPI_STRAP_OVERRIDE_CTRL ); -spi_controller_suspend (qspi->host); + ret =spi_controller_suspend (qspi->host); +if (ret) +return ret; +clk_disable_unprepare (qspi->clk);bcm_qspi_hw_uninit (qspi);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 39/3318 spi: bcm63xx: return error from failed controller suspend
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jiawen Liu <[email protected]>
[ Upstream commit bbbc1ef5b35341c5122418a14f8924688a4bb954 ]
spi_controller_suspend() can fail if the SPI core cannot stop the controller. bcm63xx_spi_suspend() ignored that error, disabled the controller clock, and returned success.
Return the suspend error before tearing down the clock.
--- drivers/spi/spi-bcm63xx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/spi/spi-bcm63xx.c +4 -1
@@ -643,8 +643,11 @@ static int bcm63xx_spi_suspend(struct device *dev) {struct spi_controller *host =dev_get_drvdata (dev);struct bcm63xx_spi *bs =spi_controller_get_devdata (host); +int ret; -spi_controller_suspend (host); + ret =spi_controller_suspend (host); +if (ret) +return ret;clk_disable_unprepare (bs->clk);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 40/3318 spi: bcm63xx-hsspi: return error from failed controller suspend
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jiawen Liu <[email protected]>
[ Upstream commit 3b5414d76a0381db77b9694537254af7acfa187a ]
spi_controller_suspend() can fail if the SPI core cannot stop the controller. bcm63xx_hsspi_suspend() ignored that error, disabled the PLL and core clocks, and returned success.
Return the suspend error before disabling the clocks.
--- drivers/spi/spi-bcm63xx-hsspi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/spi/spi-bcm63xx-hsspi.c +5 -1
@@ -895,8 +895,12 @@ static int bcm63xx_hsspi_suspend(struct device *dev) {struct spi_controller *host =dev_get_drvdata (dev);struct bcm63xx_hsspi *bs =spi_controller_get_devdata (host); +int ret; + + ret =spi_controller_suspend (host); +if (ret) +return ret; -spi_controller_suspend (host);clk_disable_unprepare (bs->pll_clk);clk_disable_unprepare (bs->clk);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 41/3318 drm/panel-edp: Add BOE NE160QDM-NY1 panel
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Damon Ding <[email protected]>
[ Upstream commit be4f10d44757211fd656fa57f37034657f26c883 ]
Add an entry for the BOE NE160QDM-NY1 eDP panel. The panel's AUX backlight functionality is verified and working on the RK3576 EVB1 board.
edid-decode (hex):
00 ff ff ff ff ff ff 00 09 e5 85 09 00 00 00 00 1c 1e 01 04 b5 22 15 78 03 7c e5 a4 55 4c 9f 26 0f 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 6b 6e 00 a0 a0 40 84 60 30 20 36 00 58 d7 10 00 00 1a 00 00 00 fd 0c 3c a5 1f 1f 4e 01 0a 20 20 20 20 20 20 00 00 00 fe 00 42 4f 45 20 43 51 0a 20 20 20 20 20 20 00 00 00 fe 00 4e 45 31 36 30 51 44 4d 2d 4e 59 31 0a 01 ed
02 03 1d 00 e3 05 80 00 e6 06 05 01 6a 6a 24 6d 1a 00 00 02 03 3c a5 00 04 6a 24 6a 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff
--- drivers/gpu/drm/panel/panel-edp.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-edp.c +1 -0
@@ -1906,6 +1906,7 @@ static const struct edp_panel_entry edp_panels[] = {EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x094b , &delay_200_500_e50,"NT116WHM-N21" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x095f , &delay_200_500_e50,"NE135FBM-N41 v8.1" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0979 , &delay_200_500_e50,"NV116WHM-N49 V8.0" ), +EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0985 , &delay_200_500_e50,"NE160QDM-NY1" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x098d , &boe_nv110wtm_n61.delay,"NV110WTM-N61" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x09dd , &delay_200_500_e50,"NT116WHM-N21" ), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0a5d, &delay_200_500_e50, "NV116WHM-N45"),
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 42/3318 spi: bcmbca-hsspi: return error from failed controller suspend
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jiawen Liu <[email protected]>
[ Upstream commit faa878d4805ca375738294bc52eae310eb287b16 ]
spi_controller_suspend() can fail if pending transfers cannot stop. bcmbca_hsspi_suspend() ignored the error and still disabled the PLL and core clocks.
Return the error before disabling the clocks.
--- drivers/spi/spi-bcmbca-hsspi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/spi/spi-bcmbca-hsspi.c +5 -1
@@ -595,8 +595,12 @@ static int bcmbca_hsspi_suspend(struct device *dev) {struct spi_controller *host =dev_get_drvdata (dev);struct bcmbca_hsspi *bs =spi_controller_get_devdata (host); +int ret; + + ret =spi_controller_suspend (host); +if (ret) +return ret; -spi_controller_suspend (host);clk_disable_unprepare (bs->pll_clk);clk_disable_unprepare (bs->clk);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 43/3318 i2c: acpi: Force ELAN1300 touchpads to 100 kHz
In reply to Greg Kroah-Hartman6.6-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
@@ -372,6 +372,7 @@ static const struct acpi_device_id i2c_acpi_force_100khz_device_ids[] = {*/ { "DLL0945", 0 }, { "ELAN06FA", 0 }, + { "ELAN1300", 0 }, {} };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 26/3318 w1: ds2482: add OF device match table
In reply to Greg Kroah-Hartman6.6-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
@@ -551,9 +551,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 44/3318 drm/amdgpu: Add checks to vbios fetch through ATRM
In reply to Greg Kroah-Hartman6.6-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
@@ -278,8 +278,14 @@ static int amdgpu_atrm_call(acpi_handle atrm_handle, uint8_t *bios, } obj = (union acpi_object *)buffer.pointer; -memcpy (bios+offset, obj->buffer.pointer, obj->buffer.length); - len = obj->buffer.length; +if (!obj || obj->type !=ACPI_TYPE_BUFFER ) { +DRM_ERROR ("ATRM returned an invalid object\n" ); +kfree (buffer.pointer); +return -EINVAL ; + } + + len =min_t (size_t, obj->buffer.length, len); +memcpy (bios+offset, obj->buffer.pointer, len);kfree (buffer.pointer);return len; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 45/3318 drm/amdgpu: Validate ATIF buffer length before use
In reply to Greg Kroah-Hartman6.6-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
@@ -138,13 +138,15 @@ static struct amdgpu_acpi_priv {* @atif: atif structure * @function: the ATIF function to execute * @params: ATIF function params +* @min_size: minimum size of the expected output buffer in bytes * * Executes the requested ATIF function (all asics). * Returns a pointer to the acpi output buffer. */ static union acpi_object *amdgpu_atif_call (struct amdgpu_atif *atif,int function, -struct acpi_buffer *params) +struct acpi_buffer *params, +size_t min_size) {acpi_status status;union acpi_object *obj;
@@ -187,6 +189,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; }
@@ -248,19 +272,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);
@@ -270,7 +289,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; }
@@ -295,20 +313,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",
@@ -371,20 +383,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;
@@ -416,24 +422,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 46/3318 drm/amd/pm: validate vega10 profile mode inputs
In reply to Greg Kroah-Hartman6.6-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
@@ -5401,6 +5401,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 ;
@@ -5416,6 +5421,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 47/3318 drm/amdgpu: Support some Barco AMD based graphics adapters
In reply to Greg Kroah-Hartman6.6-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
@@ -1752,6 +1752,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},
@@ -1821,6 +1822,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},
@@ -1849,6 +1851,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},
@@ -1862,6 +1865,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 48/3318 drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds
In reply to Greg Kroah-Hartman6.6-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
@@ -63,14 +63,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),
@@ -79,12 +82,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(
@@ -1249,15 +1274,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); }
@@ -1308,17 +1332,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 );
@@ -1360,4 +1378,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
@@ -64,6 +64,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
@@ -638,6 +638,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 49/3318 drm/amd/pm: Validate pp_table header before reading size
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <[email protected]>
[ Upstream commit a17e79d01f22182a9fcbe79fcbe2ad1477d43e0f ]
smu_sys_set_pp_table() reads usStructureSize from the uploaded pp_table buffer before validating that the buffer contains a complete ATOM_COMMON_TABLE_HEADER. A short write can therefore make the driver read past the supplied sysfs buffer.
Reject empty or header-short uploads before dereferencing the header pointer.
Keep the existing structure-size check for the full uploaded table.
--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +11 -8
@@ -506,25 +506,28 @@ static int smu_sys_set_pp_table(void *handle, {struct smu_context *smu = handle;struct smu_table_context *smu_table = &smu->smu_table; -ATOM_COMMON_TABLE_HEADER *header = (ATOM_COMMON_TABLE_HEADER *)buf; +ATOM_COMMON_TABLE_HEADER *header; +void *hardcode_pptable;int ret =0 ;if (!smu->pm_enabled || !smu->adev->pm.dpm_enabled)return -EOPNOTSUPP ; +if (!buf || size <sizeof (*header)) +return -EINVAL ; + + header = (ATOM_COMMON_TABLE_HEADER *)buf;if (header->usStructureSize != size) {dev_err (smu->adev->dev,"pp table size not matched !\n" );return -EIO ; } -if (!smu_table->hardcode_pptable || smu_table->power_play_table_size < size) { -kfree (smu_table->hardcode_pptable); - smu_table->hardcode_pptable =kzalloc (size,GFP_KERNEL ); -if (!smu_table->hardcode_pptable) -return -ENOMEM ; - } + hardcode_pptable =kmemdup (buf, size,GFP_KERNEL ); +if (!hardcode_pptable) +return -ENOMEM ; -memcpy (smu_table->hardcode_pptable, buf, size); +kfree (smu_table->hardcode_pptable); + smu_table->hardcode_pptable = hardcode_pptable; smu_table->power_play_table = smu_table->hardcode_pptable; smu_table->power_play_table_size = size;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 50/3318 drm/amd/pm: Use uploaded size for legacy custom PPTable
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <[email protected]>
[ Upstream commit 055a40c32f3a2dcd4d1a6f85ff4c231cf35f1b53 ]
The legacy powerplay path used to allocate hardcode_pp_table from the original VBIOS PPTable size, copy only the uploaded bytes into it, and keep soft_pp_table_size unchanged. If a custom PPTable is shorter than the original table, later code can still treat the stale tail as valid table data.
Treat the uploaded buffer as the complete custom PPTable: duplicate the uploaded buffer directly, replace hardcode_pp_table atomically, and set soft_pp_table_size to the uploaded size.
--- .../gpu/drm/amd/pm/powerplay/amd_powerplay.c | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c +8 -13
@@ -675,25 +675,20 @@ static int amd_powerplay_reset(void *handle)static int pp_dpm_set_pp_table (void *handle,const char *buf,size_t size) {struct pp_hwmgr *hwmgr = handle; +void *hardcode_pp_table;int ret = -ENOMEM ; -if (!hwmgr || !hwmgr->pm_en) -return -EINVAL ; - -if (size > hwmgr->soft_pp_table_size) +if (!hwmgr || !hwmgr->pm_en || !buf || !size || size >U32_MAX )return -EINVAL ; -if (!hwmgr->hardcode_pp_table) { - hwmgr->hardcode_pp_table =kmemdup (hwmgr->soft_pp_table, - hwmgr->soft_pp_table_size, -GFP_KERNEL ); -if (!hwmgr->hardcode_pp_table) -return ret; - } - -memcpy (hwmgr->hardcode_pp_table, buf, size); + hardcode_pp_table =kmemdup (buf, size,GFP_KERNEL ); +if (!hardcode_pp_table) +return ret; +kfree (hwmgr->hardcode_pp_table); + hwmgr->hardcode_pp_table = hardcode_pp_table; hwmgr->soft_pp_table = hwmgr->hardcode_pp_table; + hwmgr->soft_pp_table_size = size; ret =amd_powerplay_reset (handle);if (ret)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 51/3318 drm/amd/pm: Validate Tonga PowerPlay state array bounds
In reply to Greg Kroah-Hartman6.6-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
@@ -1115,15 +1115,17 @@ static int init_thermal_controller(* @powerplay_table: Pointer to the PowerPlay Table. * Exception: 2 if the powerplay table is incorrect. */ -static int check_powerplay_tables ( -struct pp_hwmgr *hwmgr, -const ATOM_Tonga_POWERPLAYTABLE *powerplay_table - ) +static int get_tonga_state_array (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const ATOM_Tonga_State_Array **state_array) {const ATOM_Tonga_State_Array *state_arrays; +u16 state_array_offset; +size_t state_array_size; +size_t table_size = hwmgr->soft_pp_table_size; - state_arrays = (ATOM_Tonga_State_Array *)(((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usStateArrayOffset)); +PP_ASSERT_WITH_CODE ((table_size >=sizeof (*powerplay_table)), +"Invalid PowerPlay Table!" , return -1 ); PP_ASSERT_WITH_CODE((ATOM_Tonga_TABLE_REVISION_TONGA <= powerplay_table->sHeader.ucTableFormatRevision),
@@ -1132,12 +1134,34 @@ static int check_powerplay_tables( "State table is not set!", return -1);PP_ASSERT_WITH_CODE ((0 < powerplay_table->sHeader.usStructureSize),"Invalid PowerPlay Table!" , return -1 ); + + state_array_offset =le16_to_cpu (powerplay_table->usStateArrayOffset); +PP_ASSERT_WITH_CODE ((state_array_offset <= + table_size -sizeof (*state_arrays)), +"Invalid PowerPlay Table!" , return -1 ); + + state_arrays = (ATOM_Tonga_State_Array *)(((unsigned long )powerplay_table) + + state_array_offset);PP_ASSERT_WITH_CODE ((0 < state_arrays->ucNumEntries),"Invalid PowerPlay Table!" , return -1 ); + state_array_size =struct_size (state_arrays, entries, state_arrays->ucNumEntries); +PP_ASSERT_WITH_CODE ((state_array_size <= table_size - state_array_offset), +"Invalid PowerPlay Table!" , return -1 ); + + *state_array = state_arrays; +return 0 ; } +static int check_powerplay_tables (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table) +{ +const ATOM_Tonga_State_Array *state_arrays; + +return get_tonga_state_array (hwmgr, powerplay_table, &state_arrays); +} +static int pp_tables_v1_0_initialize (struct pp_hwmgr *hwmgr) {int result =0 ;
@@ -1241,17 +1265,16 @@ const struct pp_table_func pptable_v1_0_funcs = {int get_number_of_powerplay_table_entries_v1_0 (struct pp_hwmgr *hwmgr) { -ATOM_Tonga_State_Array const *state_arrays; +const ATOM_Tonga_State_Array *state_arrays;const ATOM_Tonga_POWERPLAYTABLE *pp_table =get_powerplay_table (hwmgr); +int result;PP_ASSERT_WITH_CODE ((NULL != pp_table),"Missing PowerPlay Table!" , return -1 ); -PP_ASSERT_WITH_CODE ((pp_table->sHeader.ucTableFormatRevision >= - ATOM_Tonga_TABLE_REVISION_TONGA), -"Incorrect PowerPlay table revision!" , return -1 ); - state_arrays = (ATOM_Tonga_State_Array *)(((unsigned long )pp_table) + -le16_to_cpu (pp_table->usStateArrayOffset)); + result =get_tonga_state_array (hwmgr, pp_table, &state_arrays); +PP_ASSERT_WITH_CODE ((result ==0 ), + "Invalid PowerPlay Table State Array.", return result);return (uint32_t )(state_arrays->ucNumEntries); }
@@ -1382,15 +1405,11 @@ int get_powerplay_table_entry_v1_0(struct pp_hwmgr *hwmgr,if (pp_table->sHeader.ucTableFormatRevision >= ATOM_Tonga_TABLE_REVISION_TONGA) { - state_arrays = (ATOM_Tonga_State_Array *)(((unsigned long )pp_table) + -le16_to_cpu (pp_table->usStateArrayOffset)); - -PP_ASSERT_WITH_CODE ((0 < pp_table->usStateArrayOffset), -"Invalid PowerPlay Table State Array Offset." , return -1 ); -PP_ASSERT_WITH_CODE ((0 < state_arrays->ucNumEntries), -"Invalid PowerPlay Table State Array." , return -1 ); -PP_ASSERT_WITH_CODE ((entry_index <= state_arrays->ucNumEntries), -"Invalid PowerPlay Table State Array Entry." , return -1 ); + result =get_tonga_state_array (hwmgr, pp_table, &state_arrays); +PP_ASSERT_WITH_CODE ((result ==0 ), + "Invalid PowerPlay Table State Array.", return result); +PP_ASSERT_WITH_CODE ((entry_index < state_arrays->ucNumEntries), +"Invalid PowerPlay Table State Array Entry." , return -1 ); state_entry = GET_FLEXIBLE_ARRAY_MEMBER_ADDR( ATOM_Tonga_State, entries,
@@ -1416,4 +1435,3 @@ int get_powerplay_table_entry_v1_0(struct pp_hwmgr *hwmgr,return result; } -
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 52/3318 drm/amd/pm: Guard VBIOS AC timing table walk
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Xiang Liu <[email protected]>
[ Upstream commit 2bf6867e5953a140fc91c3159987656e44ed29fb ]
Reject AC timing blocks with a stride smaller than a dword before walking VBIOS data. A zero stride can otherwise keep reg_data pinned on a nonmatching MEM_ID forever.
Also bound the data-block and END marker reads by the returned VRAM_Info table size so malformed index/data sizes do not push the timing walk past the table.
--- .../drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c +22 -6
@@ -47,16 +47,22 @@ union voltage_object_info {static int atomctrl_retrieve_ac_timing (uint8_t index,ATOM_INIT_REG_BLOCK *reg_block, +u8 *table_end,pp_atomctrl_mc_reg_table *table) {uint32_t i, j; +u16 stride =le16_to_cpu (reg_block->usRegDataBlkSize);uint8_t tmem_id;ATOM_MEMORY_SETTING_DATA_BLOCK *reg_data = (ATOM_MEMORY_SETTING_DATA_BLOCK *) ((uint8_t *)reg_block + (2 *sizeof (uint16_t )) +le16_to_cpu (reg_block->usRegIndexTblSize));uint8_t num_ranges =0 ; -while (*(uint32_t *)reg_data !=END_OF_REG_DATA_BLOCK && +if (stride <sizeof (uint32_t )) +return -EINVAL ; + +while ((uint8_t *)reg_data +sizeof (uint32_t ) <= table_end && + *(uint32_t *)reg_data !=END_OF_REG_DATA_BLOCK && num_ranges <VBIOS_MAX_AC_TIMING_ENTRIES ) { tmem_id = (uint8_t )((*(uint32_t *)reg_data &MEM_ID_MASK ) >>MEM_ID_SHIFT );
@@ -68,6 +74,10 @@ static int atomctrl_retrieve_ac_timing(for (i =0 , j =1 ; i < table->last; i++) {if ((table->mc_reg_address[i].uc_pre_reg_data &LOW_NIBBLE_MASK ) ==DATA_FROM_TABLE ) { +if ((uint8_t *)reg_data + + (j +1 ) *sizeof (uint32_t ) > table_end) +return -EINVAL ; + table->mc_reg_table_entry[num_ranges].mc_data[i] = (uint32_t )*((uint32_t *)reg_data + j); j++;
@@ -82,11 +92,13 @@ static int atomctrl_retrieve_ac_timing( } reg_data = (ATOM_MEMORY_SETTING_DATA_BLOCK *) - ((uint8_t *)reg_data +le16_to_cpu (reg_block->usRegDataBlkSize)) ; + ((uint8_t *)reg_data + stride); } -PP_ASSERT_WITH_CODE ((*(uint32_t *)reg_data ==END_OF_REG_DATA_BLOCK ), -"Invalid VramInfo table." , return -1 ); +if ((uint8_t *)reg_data +sizeof (uint32_t ) > table_end || + *(uint32_t *)reg_data !=END_OF_REG_DATA_BLOCK ) +return -EINVAL ; + table->num_entries = num_ranges;return 0 ;
@@ -137,6 +149,7 @@ int atomctrl_initialize_mc_reg_table( {ATOM_VRAM_INFO_HEADER_V2_1 *vram_info;ATOM_INIT_REG_BLOCK *reg_block; +u8 *table_end;int result =0 ;u8 frev, crev;u16 size;
@@ -158,6 +171,7 @@ int atomctrl_initialize_mc_reg_table( }if (0 == result) { + table_end = (uint8_t *)vram_info + size; reg_block = (ATOM_INIT_REG_BLOCK *) ((uint8_t *)vram_info +le16_to_cpu (vram_info->usMemClkPatchTblOffset)); result =atomctrl_set_mc_reg_address_table (reg_block, table);
@@ -165,7 +179,7 @@ int atomctrl_initialize_mc_reg_table(if (0 == result) { result =atomctrl_retrieve_ac_timing (module_index, - reg_block, table); + reg_block, table_end, table); }return result;
@@ -178,6 +192,7 @@ int atomctrl_initialize_mc_reg_table_v2_2( {ATOM_VRAM_INFO_HEADER_V2_2 *vram_info;ATOM_INIT_REG_BLOCK *reg_block; +u8 *table_end;int result =0 ;u8 frev, crev;u16 size;
@@ -199,6 +214,7 @@ int atomctrl_initialize_mc_reg_table_v2_2( }if (0 == result) { + table_end = (uint8_t *)vram_info + size; reg_block = (ATOM_INIT_REG_BLOCK *) ((uint8_t *)vram_info +le16_to_cpu (vram_info->usMemClkPatchTblOffset)); result =atomctrl_set_mc_reg_address_table (reg_block, table);
@@ -206,7 +222,7 @@ int atomctrl_initialize_mc_reg_table_v2_2(if (0 == result) { result =atomctrl_retrieve_ac_timing (module_index, - reg_block, table); + reg_block, table_end, table); }return result;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 53/3318 drm/amd/pm: Validate Tonga PPTable subtable bounds
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <[email protected]>
[ Upstream commit 53ef33c084c5778cc2dcd1efff25e31b6e231141 ]
v1:
Tonga PPTable parsing also relies on VBIOS offsets, revision fields and entry counts for several subtables. Malformed data can cause out-of-bounds reads, while voltage lookup tables can overrun their fixed-size destination arrays.
Add common bounds helpers and validate fixed subtables, dynamic entry arrays and revision-specific layouts before consuming voltage lookup, dependency, PCIE, power-tune, hard-limit, thermal, fan, GPIO, PPM and VCE state data.
v2:
correct to handle get_tonga_ppm_table() return value.
--- .../powerplay/hwmgr/process_pptables_v1_0.c | 606 +++++++++++++++--- 1 file changed, 521 insertions(+), 85 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c +521 -85
@@ -150,6 +150,368 @@ static const void *get_powerplay_table(struct pp_hwmgr *hwmgr)return table_address; } +static bool tonga_pp_table_has_space (struct pp_hwmgr *hwmgr,size_t offset, +size_t size) +{ +size_t table_size = hwmgr->soft_pp_table_size; + +return offset <= table_size && size <= table_size - offset; +} + +static int get_tonga_subtable (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +u16 table_offset,size_t table_size,const void **table) +{ +PP_ASSERT_WITH_CODE ((table_offset !=0 ), +"Invalid PowerPlay Table!" , return -1 ); +PP_ASSERT_WITH_CODE ((tonga_pp_table_has_space (hwmgr, table_offset, + table_size)), +"Invalid PowerPlay Table!" , return -1 ); + + *table = (const void *)(((unsigned long )powerplay_table) + table_offset); + +return 0 ; +} + +static int validate_tonga_table_entries (struct pp_hwmgr *hwmgr, +u16 table_offset,size_t entries_offset, +u8 num_entries,size_t entry_size) +{ +size_t table_size; + +PP_ASSERT_WITH_CODE ((num_entries !=0 ), +"Invalid PowerPlay Table!" , return -1 ); + + table_size = entries_offset + num_entries * entry_size; +PP_ASSERT_WITH_CODE ((tonga_pp_table_has_space (hwmgr, table_offset, + table_size)), +"Invalid PowerPlay Table!" , return -1 ); + +return 0 ; +} + +static int get_tonga_voltage_lookup_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +u16 table_offset,uint32_t max_levels, +const ATOM_Tonga_Voltage_Lookup_Table **lookup_table) +{ +const ATOM_Tonga_Voltage_Lookup_Table *table; +size_t table_size; +int ret; + + ret =get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*table), (const void **)&table); +if (ret) +return ret; + +PP_ASSERT_WITH_CODE ((table->ucNumEntries !=0 && + table->ucNumEntries <= max_levels), +"Invalid PowerPlay Table!" , return -1 ); + + table_size = offsetof(ATOM_Tonga_Voltage_Lookup_Table , entries) + + table->ucNumEntries *sizeof (ATOM_Tonga_Voltage_Lookup_Record); +PP_ASSERT_WITH_CODE ((tonga_pp_table_has_space (hwmgr, table_offset, + table_size)), +"Invalid PowerPlay Table!" , return -1 ); + + *lookup_table = table; + +return 0 ; +} + +static int get_tonga_mclk_dependency_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const ATOM_Tonga_MCLK_Dependency_Table **mclk_dep_table) +{ +const ATOM_Tonga_MCLK_Dependency_Table *table; +u16 table_offset; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usMclkDependencyTableOffset); + ret =get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*table), (const void **)&table); +if (ret) +return ret; + + ret =validate_tonga_table_entries (hwmgr, table_offset, + offsetof(ATOM_Tonga_MCLK_Dependency_Table , + entries), + table->ucNumEntries, +sizeof (ATOM_Tonga_MCLK_Dependency_Record)); +if (ret) +return ret; + + *mclk_dep_table = table; + +return 0 ; +} + +static int get_tonga_mm_dependency_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const ATOM_Tonga_MM_Dependency_Table **mm_dep_table) +{ +const ATOM_Tonga_MM_Dependency_Table *table; +u16 table_offset; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usMMDependencyTableOffset); + ret =get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*table), (const void **)&table); +if (ret) +return ret; + + ret =validate_tonga_table_entries (hwmgr, table_offset, + offsetof(ATOM_Tonga_MM_Dependency_Table , + entries), + table->ucNumEntries, +sizeof (ATOM_Tonga_MM_Dependency_Record)); +if (ret) +return ret; + + *mm_dep_table = table; + +return 0 ; +} + +static int get_tonga_sclk_dependency_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const PPTable_Generic_SubTable_Header **sclk_dep_table) +{ +const PPTable_Generic_SubTable_Header *header; +u16 table_offset; +size_t entries_offset; +size_t entry_size; +u8 num_entries; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usSclkDependencyTableOffset); + ret =get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*header), (const void **)&header); +if (ret) +return ret; + +if (header->ucRevId <1 ) { +const ATOM_Tonga_SCLK_Dependency_Table *table = + (const ATOM_Tonga_SCLK_Dependency_Table *)header; + + entries_offset = offsetof(ATOM_Tonga_SCLK_Dependency_Table , entries); + entry_size =sizeof (ATOM_Tonga_SCLK_Dependency_Record); + num_entries = table->ucNumEntries; + }else { +const ATOM_Polaris_SCLK_Dependency_Table *table = + (const ATOM_Polaris_SCLK_Dependency_Table *)header; + + entries_offset = offsetof(ATOM_Polaris_SCLK_Dependency_Table , entries); + entry_size =sizeof (ATOM_Polaris_SCLK_Dependency_Record); + num_entries = table->ucNumEntries; + } + + ret =validate_tonga_table_entries (hwmgr, table_offset, entries_offset, + num_entries, entry_size); +if (ret) +return ret; + + *sclk_dep_table = header; + +return 0 ; +} + +static int get_tonga_pcie_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const PPTable_Generic_SubTable_Header **pcie_table) +{ +const PPTable_Generic_SubTable_Header *header; +u16 table_offset; +size_t entries_offset; +size_t entry_size; +u8 num_entries; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usPCIETableOffset); + ret =get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*header), (const void **)&header); +if (ret) +return ret; + +if (header->ucRevId <1 ) { +const ATOM_Tonga_PCIE_Table *table = + (const ATOM_Tonga_PCIE_Table *)header; + + entries_offset = offsetof(ATOM_Tonga_PCIE_Table , entries); + entry_size =sizeof (ATOM_Tonga_PCIE_Record); + num_entries = table->ucNumEntries; + }else { +const ATOM_Polaris10_PCIE_Table *table = + (const ATOM_Polaris10_PCIE_Table *)header; + + entries_offset = offsetof(ATOM_Polaris10_PCIE_Table , entries); + entry_size =sizeof (ATOM_Polaris10_PCIE_Record); + num_entries = table->ucNumEntries; + } + + ret =validate_tonga_table_entries (hwmgr, table_offset, entries_offset, + num_entries, entry_size); +if (ret) +return ret; + + *pcie_table = header; + +return 0 ; +} + +static int get_tonga_hard_limit_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const ATOM_Tonga_Hard_Limit_Table **hard_limit_table) +{ +const ATOM_Tonga_Hard_Limit_Table *table; +u16 table_offset; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usHardLimitTableOffset); + ret =get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*table), (const void **)&table); +if (ret) +return ret; + + ret =validate_tonga_table_entries (hwmgr, table_offset, + offsetof(ATOM_Tonga_Hard_Limit_Table , + entries), + table->ucNumEntries, +sizeof (ATOM_Tonga_Hard_Limit_Record)); +if (ret) +return ret; + + *hard_limit_table = table; + +return 0 ; +} + +static int get_tonga_thermal_controller_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const ATOM_Tonga_Thermal_Controller **thermal_controller) +{ +u16 table_offset; + + table_offset =le16_to_cpu (powerplay_table->usThermalControllerOffset); + +return get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (**thermal_controller), + (const void **)thermal_controller); +} + +static int get_tonga_fan_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const PPTable_Generic_SubTable_Header **fan_table) +{ +const PPTable_Generic_SubTable_Header *header; +u16 table_offset; +size_t table_size; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usFanTableOffset); + ret =get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*header), (const void **)&header); +if (ret) +return ret; + +if (header->ucRevId <8 ) + table_size =sizeof (ATOM_Tonga_Fan_Table); +else if (header->ucRevId ==8 ) + table_size =sizeof (ATOM_Fiji_Fan_Table); +else + table_size =sizeof (ATOM_Polaris_Fan_Table); + +PP_ASSERT_WITH_CODE ((tonga_pp_table_has_space (hwmgr, table_offset, + table_size)), +"Invalid PowerPlay Table!" , return -1 ); + + *fan_table = header; + +return 0 ; +} + +static int get_tonga_power_tune_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const PPTable_Generic_SubTable_Header **power_tune_table) +{ +const PPTable_Generic_SubTable_Header *header; +u16 table_offset; +size_t table_size; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usPowerTuneTableOffset); + ret =get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*header), (const void **)&header); +if (ret) +return ret; + +if (header->ucRevId <3 ) + table_size =sizeof (ATOM_Tonga_PowerTune_Table); +else if (header->ucRevId <4 ) + table_size =sizeof (ATOM_Fiji_PowerTune_Table); +else + table_size =sizeof (ATOM_Polaris_PowerTune_Table); + +PP_ASSERT_WITH_CODE ((tonga_pp_table_has_space (hwmgr, table_offset, + table_size)), +"Invalid PowerPlay Table!" , return -1 ); + + *power_tune_table = header; + +return 0 ; +} + +static int get_tonga_ppm_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const ATOM_Tonga_PPM_Table **ppm_table) +{ +u16 table_offset; + + table_offset =le16_to_cpu (powerplay_table->usPPMTableOffset); + +return get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (**ppm_table), (const void **)ppm_table); +} + +static int get_tonga_gpio_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const ATOM_Tonga_GPIO_Table **gpio_table) +{ +u16 table_offset; + + table_offset =le16_to_cpu (powerplay_table->usGPIOTableOffset); + +return get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (**gpio_table), (const void **)gpio_table); +} + +static int get_tonga_vce_state_table (struct pp_hwmgr *hwmgr, +const ATOM_Tonga_POWERPLAYTABLE *powerplay_table, +const ATOM_Tonga_VCE_State_Table **vce_state_table) +{ +const ATOM_Tonga_VCE_State_Table *table; +u16 table_offset; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usVCEStateTableOffset); + ret =get_tonga_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*table), (const void **)&table); +if (ret) +return ret; + + ret =validate_tonga_table_entries (hwmgr, table_offset, + offsetof(ATOM_Tonga_VCE_State_Table , + entries), + table->ucNumEntries, +sizeof (ATOM_Tonga_VCE_State_Record)); +if (ret) +return ret; + + *vce_state_table = table; + +return 0 ; +} + static int get_vddc_lookup_table( struct pp_hwmgr *hwmgr, phm_ppt_v1_voltage_lookup_table **lookup_table,
@@ -198,7 +560,7 @@ static int get_vddc_lookup_table(*/ static int get_platform_power_management_table (struct pp_hwmgr *hwmgr, -ATOM_Tonga_PPM_Table *atom_ppm_table) +const ATOM_Tonga_PPM_Table *atom_ppm_table) {struct phm_ppm_table *ptr =kzalloc (sizeof (*ptr),GFP_KERNEL ); struct phm_ppt_v1_information *pp_table_information =
@@ -246,7 +608,7 @@ static int init_dpm_2_parameters( {int result =0 ;struct phm_ppt_v1_information *pp_table_information = (struct phm_ppt_v1_information *)(hwmgr->pptable); -ATOM_Tonga_PPM_Table *atom_ppm_table; +const ATOM_Tonga_PPM_Table *atom_ppm_table;uint32_t disable_ppm =0 ;uint32_t disable_power_control =0 ;
@@ -275,30 +637,39 @@ static int init_dpm_2_parameters( }if (0 != powerplay_table->usVddcLookupTableOffset) { -const ATOM_Tonga_Voltage_Lookup_Table *pVddcCACTable = - (ATOM_Tonga_Voltage_Lookup_Table *)(((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usVddcLookupTableOffset)); - - result =get_vddc_lookup_table (hwmgr, - &pp_table_information->vddc_lookup_table, pVddcCACTable,16 ); +const ATOM_Tonga_Voltage_Lookup_Table *pVddcCACTable; + + result =get_tonga_voltage_lookup_table (hwmgr, powerplay_table, +le16_to_cpu (powerplay_table->usVddcLookupTableOffset), +16 , &pVddcCACTable); +if (!result) + result =get_vddc_lookup_table (hwmgr, + &pp_table_information->vddc_lookup_table, + pVddcCACTable,16 ); } -if (0 != powerplay_table->usVddgfxLookupTableOffset) { -const ATOM_Tonga_Voltage_Lookup_Table *pVddgfxCACTable = - (ATOM_Tonga_Voltage_Lookup_Table *)(((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usVddgfxLookupTableOffset)); +if (!result &&0 != powerplay_table->usVddgfxLookupTableOffset) { +const ATOM_Tonga_Voltage_Lookup_Table *pVddgfxCACTable; - result =get_vddc_lookup_table (hwmgr, - &pp_table_information->vddgfx_lookup_table, pVddgfxCACTable,16 ); + result =get_tonga_voltage_lookup_table (hwmgr, powerplay_table, +le16_to_cpu (powerplay_table->usVddgfxLookupTableOffset), +16 , &pVddgfxCACTable); +if (!result) + result =get_vddc_lookup_table (hwmgr, + &pp_table_information->vddgfx_lookup_table, + pVddgfxCACTable,16 ); } disable_ppm =0 ;if (0 == disable_ppm) { - atom_ppm_table = (ATOM_Tonga_PPM_Table *) - (((unsigned long )powerplay_table) +le16_to_cpu (powerplay_table->usPPMTableOffset)); -if (0 != powerplay_table->usPPMTableOffset) { -if (get_platform_power_management_table (hwmgr, atom_ppm_table) ==0 ) { +int ret; + + ret =get_tonga_ppm_table (hwmgr, powerplay_table, + &atom_ppm_table); +if (!ret && +get_platform_power_management_table (hwmgr, + atom_ppm_table) ==0 ) {phm_cap_set (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_EnablePlatformPowerManagement); }
@@ -792,28 +1163,13 @@ static int init_clock_voltage_dependency(int result =0 ;struct phm_ppt_v1_information *pp_table_information = (struct phm_ppt_v1_information *)(hwmgr->pptable); - -const ATOM_Tonga_MM_Dependency_Table *mm_dependency_table = - (const ATOM_Tonga_MM_Dependency_Table *)(((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usMMDependencyTableOffset)); -const PPTable_Generic_SubTable_Header *pPowerTuneTable = - (const PPTable_Generic_SubTable_Header *)(((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usPowerTuneTableOffset)); -const ATOM_Tonga_MCLK_Dependency_Table *mclk_dep_table = - (const ATOM_Tonga_MCLK_Dependency_Table *)(((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usMclkDependencyTableOffset)); -const PPTable_Generic_SubTable_Header *sclk_dep_table = - (const PPTable_Generic_SubTable_Header *)(((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usSclkDependencyTableOffset)); -const ATOM_Tonga_Hard_Limit_Table *pHardLimits = - (const ATOM_Tonga_Hard_Limit_Table *)(((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usHardLimitTableOffset)); -const PPTable_Generic_SubTable_Header *pcie_table = - (const PPTable_Generic_SubTable_Header *)(((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usPCIETableOffset)); -const ATOM_Tonga_GPIO_Table *gpio_table = - (const ATOM_Tonga_GPIO_Table *)(((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usGPIOTableOffset)); +const ATOM_Tonga_MM_Dependency_Table *mm_dependency_table; +const PPTable_Generic_SubTable_Header *pPowerTuneTable; +const ATOM_Tonga_MCLK_Dependency_Table *mclk_dep_table; +const PPTable_Generic_SubTable_Header *sclk_dep_table; +const ATOM_Tonga_Hard_Limit_Table *pHardLimits; +const PPTable_Generic_SubTable_Header *pcie_table; +const ATOM_Tonga_GPIO_Table *gpio_table; pp_table_information->vdd_dep_on_sclk =NULL ; pp_table_information->vdd_dep_on_mclk =NULL ;
@@ -821,29 +1177,58 @@ static int init_clock_voltage_dependency( pp_table_information->pcie_table =NULL ; pp_table_information->gpio_table =NULL ; -if (powerplay_table->usMMDependencyTableOffset !=0 ) - result =get_mm_clock_voltage_table (hwmgr, - &pp_table_information->mm_dep_table, mm_dependency_table); +if (powerplay_table->usMMDependencyTableOffset !=0 ) { + result =get_tonga_mm_dependency_table (hwmgr, powerplay_table, + &mm_dependency_table); +if (!result) + result =get_mm_clock_voltage_table (hwmgr, + &pp_table_information->mm_dep_table, + mm_dependency_table); + } -if (result ==0 && powerplay_table->usPowerTuneTableOffset !=0 ) - result =get_cac_tdp_table (hwmgr, - &pp_table_information->cac_dtp_table, pPowerTuneTable); +if (result ==0 && powerplay_table->usPowerTuneTableOffset !=0 ) { + result =get_tonga_power_tune_table (hwmgr, powerplay_table, + &pPowerTuneTable); +if (!result) + result =get_cac_tdp_table (hwmgr, + &pp_table_information->cac_dtp_table, + pPowerTuneTable); + } -if (result ==0 && powerplay_table->usSclkDependencyTableOffset !=0 ) - result =get_sclk_voltage_dependency_table (hwmgr, - &pp_table_information->vdd_dep_on_sclk, sclk_dep_table); +if (result ==0 && powerplay_table->usSclkDependencyTableOffset !=0 ) { + result =get_tonga_sclk_dependency_table (hwmgr, powerplay_table, + &sclk_dep_table); +if (!result) + result =get_sclk_voltage_dependency_table (hwmgr, + &pp_table_information->vdd_dep_on_sclk, + sclk_dep_table); + } -if (result ==0 && powerplay_table->usMclkDependencyTableOffset !=0 ) - result =get_mclk_voltage_dependency_table (hwmgr, - &pp_table_information->vdd_dep_on_mclk, mclk_dep_table); +if (result ==0 && powerplay_table->usMclkDependencyTableOffset !=0 ) { + result =get_tonga_mclk_dependency_table (hwmgr, powerplay_table, + &mclk_dep_table); +if (!result) + result =get_mclk_voltage_dependency_table (hwmgr, + &pp_table_information->vdd_dep_on_mclk, + mclk_dep_table); + } -if (result ==0 && powerplay_table->usPCIETableOffset !=0 ) - result =get_pcie_table (hwmgr, - &pp_table_information->pcie_table, pcie_table); +if (result ==0 && powerplay_table->usPCIETableOffset !=0 ) { + result =get_tonga_pcie_table (hwmgr, powerplay_table, + &pcie_table); +if (!result) + result =get_pcie_table (hwmgr, + &pp_table_information->pcie_table, pcie_table); + } -if (result ==0 && powerplay_table->usHardLimitTableOffset !=0 ) - result =get_hard_limits (hwmgr, - &pp_table_information->max_clock_voltage_on_dc, pHardLimits); +if (result ==0 && powerplay_table->usHardLimitTableOffset !=0 ) { + result =get_tonga_hard_limit_table (hwmgr, powerplay_table, + &pHardLimits); +if (!result) + result =get_hard_limits (hwmgr, + &pp_table_information->max_clock_voltage_on_dc, + pHardLimits); + } hwmgr->dyn_state.max_clock_voltage_on_dc.sclk = pp_table_information->max_clock_voltage_on_dc.sclk;
@@ -864,9 +1249,13 @@ static int init_clock_voltage_dependency( result =get_valid_clk (hwmgr, &pp_table_information->valid_sclk_values, pp_table_information->vdd_dep_on_sclk); -if (!result && gpio_table) - result =get_gpio_table (hwmgr, &pp_table_information->gpio_table, - gpio_table); +if (!result && powerplay_table->usGPIOTableOffset) { + result =get_tonga_gpio_table (hwmgr, powerplay_table, + &gpio_table); +if (!result) + result =get_gpio_table (hwmgr, + &pp_table_information->gpio_table, gpio_table); + }return result; }
@@ -911,14 +1300,17 @@ static int init_thermal_controller( ) {const PPTable_Generic_SubTable_Header *fan_table; -ATOM_Tonga_Thermal_Controller *thermal_controller; +const ATOM_Tonga_Thermal_Controller *thermal_controller; +int ret; - thermal_controller = (ATOM_Tonga_Thermal_Controller *) - (((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usThermalControllerOffset));PP_ASSERT_WITH_CODE ((0 != powerplay_table->usThermalControllerOffset),"Thermal controller table not set!" , return -1 ); + ret =get_tonga_thermal_controller_table (hwmgr, powerplay_table, + &thermal_controller); +if (ret) +return ret; + hwmgr->thermal_controller.ucType = thermal_controller->ucType; hwmgr->thermal_controller.ucI2cLine = thermal_controller->ucI2cLine; hwmgr->thermal_controller.ucI2cAddress = thermal_controller->ucI2cAddress;
@@ -946,12 +1338,13 @@ static int init_thermal_controller(return 0 ; } - fan_table = (const PPTable_Generic_SubTable_Header *) - (((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usFanTableOffset)); -PP_ASSERT_WITH_CODE ((0 != powerplay_table->usFanTableOffset),"Fan table not set!" , return -1 ); + + ret =get_tonga_fan_table (hwmgr, powerplay_table, &fan_table); +if (ret) +return ret; +PP_ASSERT_WITH_CODE ((0 < fan_table->ucRevId),"Unsupported fan table format!" , return -1 );
@@ -1315,13 +1708,15 @@ static int ppt_get_num_of_vce_state_table_entries_v1_0(struct pp_hwmgr *hwmgr) {const ATOM_Tonga_POWERPLAYTABLE *pp_table =get_powerplay_table (hwmgr);const ATOM_Tonga_VCE_State_Table *vce_state_table; +int ret;if (pp_table ==NULL )return 0 ; - vce_state_table = (void *)pp_table + -le16_to_cpu (pp_table->usVCEStateTableOffset); + ret =get_tonga_vce_state_table (hwmgr, pp_table, &vce_state_table); +if (ret) +return 0 ;return vce_state_table->ucNumEntries; }
@@ -1330,18 +1725,39 @@ static int ppt_get_vce_state_table_entry_v1_0(struct pp_hwmgr *hwmgr, uint32_t i struct amd_vce_state *vce_state, void **clock_info, uint32_t *flag) { const ATOM_Tonga_VCE_State_Record *vce_state_record; -ATOM_Tonga_SCLK_Dependency_Record *sclk_dep_record; +ATOM_Tonga_SCLK_Dependency_Record *sclk_dep_record =NULL ; +ATOM_Polaris_SCLK_Dependency_Record *polaris_sclk_dep_record =NULL ;ATOM_Tonga_MCLK_Dependency_Record *mclk_dep_record;ATOM_Tonga_MM_Dependency_Record *mm_dep_record;const ATOM_Tonga_POWERPLAYTABLE *pptable =get_powerplay_table (hwmgr); -const ATOM_Tonga_VCE_State_Table *vce_state_table = (ATOM_Tonga_VCE_State_Table *)(((unsigned long )pptable) - +le16_to_cpu (pptable->usVCEStateTableOffset)); -const ATOM_Tonga_SCLK_Dependency_Table *sclk_dep_table = (ATOM_Tonga_SCLK_Dependency_Table *)(((unsigned long )pptable) - +le16_to_cpu (pptable->usSclkDependencyTableOffset)); -const ATOM_Tonga_MCLK_Dependency_Table *mclk_dep_table = (ATOM_Tonga_MCLK_Dependency_Table *)(((unsigned long )pptable) - +le16_to_cpu (pptable->usMclkDependencyTableOffset)); -const ATOM_Tonga_MM_Dependency_Table *mm_dep_table = (ATOM_Tonga_MM_Dependency_Table *)(((unsigned long )pptable) - +le16_to_cpu (pptable->usMMDependencyTableOffset)); +const ATOM_Tonga_VCE_State_Table *vce_state_table; +const PPTable_Generic_SubTable_Header *sclk_dep_table_header; +const ATOM_Tonga_SCLK_Dependency_Table *sclk_dep_table; +const ATOM_Tonga_MCLK_Dependency_Table *mclk_dep_table; +const ATOM_Tonga_MM_Dependency_Table *mm_dep_table; +int ret; + +if (!pptable) +return -EINVAL ; + + ret =get_tonga_vce_state_table (hwmgr, pptable, &vce_state_table); +if (ret) +return ret; + + ret =get_tonga_sclk_dependency_table (hwmgr, pptable, + &sclk_dep_table_header); +if (ret) +return ret; + sclk_dep_table = (const ATOM_Tonga_SCLK_Dependency_Table *) + sclk_dep_table_header; + + ret =get_tonga_mclk_dependency_table (hwmgr, pptable, &mclk_dep_table); +if (ret) +return ret; + + ret =get_tonga_mm_dependency_table (hwmgr, pptable, &mm_dep_table); +if (ret) +return ret; PP_ASSERT_WITH_CODE((i < vce_state_table->ucNumEntries), "Requested state entry ID is out of range!",
@@ -1350,10 +1766,27 @@ static int ppt_get_vce_state_table_entry_v1_0(struct pp_hwmgr *hwmgr, uint32_t i vce_state_record =GET_FLEXIBLE_ARRAY_MEMBER_ADDR ( ATOM_Tonga_VCE_State_Record, entries, vce_state_table, i); - sclk_dep_record =GET_FLEXIBLE_ARRAY_MEMBER_ADDR ( - ATOM_Tonga_SCLK_Dependency_Record, - entries, sclk_dep_table, - vce_state_record->ucSCLKIndex); +PP_ASSERT_WITH_CODE ((vce_state_record->ucSCLKIndex < + sclk_dep_table->ucNumEntries), +"Invalid PowerPlay Table!" , return -EINVAL ); +PP_ASSERT_WITH_CODE ((vce_state_record->ucVCEClockIndex < + mm_dep_table->ucNumEntries), +"Invalid PowerPlay Table!" , return -EINVAL ); +PP_ASSERT_WITH_CODE ((mclk_dep_table->ucNumEntries !=0 ), +"Invalid PowerPlay Table!" , return -EINVAL ); + +if (sclk_dep_table_header->ucRevId <1 ) + sclk_dep_record =GET_FLEXIBLE_ARRAY_MEMBER_ADDR ( + ATOM_Tonga_SCLK_Dependency_Record, + entries, sclk_dep_table, + vce_state_record->ucSCLKIndex); +else + polaris_sclk_dep_record =GET_FLEXIBLE_ARRAY_MEMBER_ADDR ( + ATOM_Polaris_SCLK_Dependency_Record, + entries, + (ATOM_Polaris_SCLK_Dependency_Table *) + sclk_dep_table_header, + vce_state_record->ucSCLKIndex); mm_dep_record = GET_FLEXIBLE_ARRAY_MEMBER_ADDR( ATOM_Tonga_MM_Dependency_Record, entries, mm_dep_table,
@@ -1362,7 +1795,10 @@ static int ppt_get_vce_state_table_entry_v1_0(struct pp_hwmgr *hwmgr, uint32_t i vce_state->evclk =le32_to_cpu (mm_dep_record->ulEClk); vce_state->ecclk =le32_to_cpu (mm_dep_record->ulEClk); - vce_state->sclk =le32_to_cpu (sclk_dep_record->ulSclk); +if (sclk_dep_record) + vce_state->sclk =le32_to_cpu (sclk_dep_record->ulSclk); +else + vce_state->sclk =le32_to_cpu (polaris_sclk_dep_record->ulSclk);if (vce_state_record->ucMCLKIndex >= mclk_dep_table->ucNumEntries) mclk_dep_record = GET_FLEXIBLE_ARRAY_MEMBER_ADDR(
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 27/3318 media: cec: stm32: return an error when log-address wait times out
In reply to Greg Kroah-Hartman6.6-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
@@ -194,18 +194,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 54/3318 drm/amd/pm: Validate Vega10 PPTable subtable bounds
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <[email protected]>
[ Upstream commit 9914149f99fd2ddcfd2a8c1053a57d96ec43448e ]
v1:
Vega10 PPTable parsing uses VBIOS-provided offsets, revision fields and entry counts to locate subtables. Malformed data can otherwise drive out-of-bounds reads from soft_pp_table_size, and voltage lookup tables can overrun their fixed-size destination arrays.
Add shared bounds helpers and validate fixed-size subtables, dynamic entry arrays and revision-specific layouts before consuming thermal, fan, power-tune, clock dependency, PCIE, hard-limit and voltage lookup data.
v2:
if ucRevId is not matched, fallback to default table size instead of returning -EINVAL.
--- .../powerplay/hwmgr/vega10_processpptables.c | 564 ++++++++++++++---- 1 file changed, 459 insertions(+), 105 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c +459 -105
@@ -63,6 +63,46 @@ static const void *get_powerplay_table(struct pp_hwmgr *hwmgr)return table_address; } +static bool vega10_pp_table_has_space (struct pp_hwmgr *hwmgr,size_t offset, +size_t size) +{ +size_t table_size = hwmgr->soft_pp_table_size; + +return offset <= table_size && size <= table_size - offset; +} + +static int get_vega10_subtable (struct pp_hwmgr *hwmgr, +const ATOM_Vega10_POWERPLAYTABLE *powerplay_table, +u16 table_offset,size_t table_size,const void **table) +{ +PP_ASSERT_WITH_CODE ((table_offset !=0 ), +"Invalid PowerPlay Table!" , return -1 ); +PP_ASSERT_WITH_CODE ((vega10_pp_table_has_space (hwmgr, table_offset, + table_size)), +"Invalid PowerPlay Table!" , return -1 ); + + *table = (const void *)(((unsigned long )powerplay_table) + table_offset); + +return 0 ; +} + +static int validate_vega10_table_entries (struct pp_hwmgr *hwmgr, +u16 table_offset,size_t entries_offset, +u8 num_entries,size_t entry_size) +{ +size_t table_size; + +PP_ASSERT_WITH_CODE ((num_entries !=0 ), +"Invalid PowerPlay Table!" , return -1 ); + + table_size = entries_offset + num_entries * entry_size; +PP_ASSERT_WITH_CODE ((vega10_pp_table_has_space (hwmgr, table_offset, + table_size)), +"Invalid PowerPlay Table!" , return -1 ); + +return 0 ; +} +static int get_vega10_state_array (struct pp_hwmgr *hwmgr,const ATOM_Vega10_POWERPLAYTABLE *powerplay_table,const ATOM_Vega10_State_Array **state_array)
@@ -102,6 +142,293 @@ static int get_vega10_state_array(struct pp_hwmgr *hwmgr,return 0 ; } +static int get_vega10_gfxclk_dependency_table (struct pp_hwmgr *hwmgr, +const ATOM_Vega10_POWERPLAYTABLE *powerplay_table, +const ATOM_Vega10_GFXCLK_Dependency_Table **gfxclk_dep_table) +{ +const ATOM_Vega10_GFXCLK_Dependency_Table *table; +u16 table_offset; +size_t table_size; +size_t entry_size; + + table_offset =le16_to_cpu (powerplay_table->usGfxclkDependencyTableOffset); +if (!table_offset) +return -EINVAL ; + +PP_ASSERT_WITH_CODE ((vega10_pp_table_has_space (hwmgr, table_offset, +sizeof (*table))), +"Invalid PowerPlay Table!" , return -1 ); + + table = (const ATOM_Vega10_GFXCLK_Dependency_Table *) + (((unsigned long )powerplay_table) + table_offset); +PP_ASSERT_WITH_CODE ((table->ucNumEntries !=0 ), +"Invalid PowerPlay Table!" , return -1 ); + +if (table->ucRevId ==0 ) + entry_size =sizeof (ATOM_Vega10_GFXCLK_Dependency_Record); +else if (table->ucRevId ==1 ) + entry_size =sizeof (ATOM_Vega10_GFXCLK_Dependency_Record_V2); +else +PP_ASSERT_WITH_CODE (false, +"Unsupported GFXClockDependencyTable Revision!" , + return -EINVAL ); + + table_size = offsetof(ATOM_Vega10_GFXCLK_Dependency_Table , entries) + + table->ucNumEntries * entry_size; +PP_ASSERT_WITH_CODE ((vega10_pp_table_has_space (hwmgr, table_offset, + table_size)), +"Invalid PowerPlay Table!" , return -1 ); + + *gfxclk_dep_table = table; + +return 0 ; +} + +static int get_vega10_clk_dependency_table (struct pp_hwmgr *hwmgr, +const ATOM_Vega10_POWERPLAYTABLE *powerplay_table, +u16 table_offset, +const ATOM_Vega10_SOCCLK_Dependency_Table **clk_dep_table) +{ +const ATOM_Vega10_SOCCLK_Dependency_Table *table; +int ret; + + ret =get_vega10_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*table), (const void **)&table); +if (ret) +return ret; + + ret =validate_vega10_table_entries (hwmgr, table_offset, + offsetof(ATOM_Vega10_SOCCLK_Dependency_Table , + entries), + table->ucNumEntries, +sizeof (ATOM_Vega10_CLK_Dependency_Record)); +if (ret) +return ret; + + *clk_dep_table = table; + +return 0 ; +} + +static int get_vega10_mclk_dependency_table (struct pp_hwmgr *hwmgr, +const ATOM_Vega10_POWERPLAYTABLE *powerplay_table, +const ATOM_Vega10_MCLK_Dependency_Table **mclk_dep_table) +{ +const ATOM_Vega10_MCLK_Dependency_Table *table; +u16 table_offset; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usMclkDependencyTableOffset); + ret =get_vega10_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*table), (const void **)&table); +if (ret) +return ret; + + ret =validate_vega10_table_entries (hwmgr, table_offset, + offsetof(ATOM_Vega10_MCLK_Dependency_Table , + entries), + table->ucNumEntries, +sizeof (ATOM_Vega10_MCLK_Dependency_Record)); +if (ret) +return ret; + + *mclk_dep_table = table; + +return 0 ; +} + +static int get_vega10_mm_dependency_table (struct pp_hwmgr *hwmgr, +const ATOM_Vega10_POWERPLAYTABLE *powerplay_table, +const ATOM_Vega10_MM_Dependency_Table **mm_dep_table) +{ +const ATOM_Vega10_MM_Dependency_Table *table; +u16 table_offset; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usMMDependencyTableOffset); + ret =get_vega10_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*table), (const void **)&table); +if (ret) +return ret; + + ret =validate_vega10_table_entries (hwmgr, table_offset, + offsetof(ATOM_Vega10_MM_Dependency_Table , + entries), + table->ucNumEntries, +sizeof (ATOM_Vega10_MM_Dependency_Record)); +if (ret) +return ret; + + *mm_dep_table = table; + +return 0 ; +} + +static int get_vega10_pcie_table (struct pp_hwmgr *hwmgr, +const ATOM_Vega10_POWERPLAYTABLE *powerplay_table, +const Vega10_PPTable_Generic_SubTable_Header **pcie_table) +{ +const ATOM_Vega10_PCIE_Table *table; +u16 table_offset; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usPCIETableOffset); + ret =get_vega10_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*table), (const void **)&table); +if (ret) +return ret; + +if (!table->ucNumEntries) { + *pcie_table = (const Vega10_PPTable_Generic_SubTable_Header *)table; +return 0 ; + } + + ret =validate_vega10_table_entries (hwmgr, table_offset, + offsetof(ATOM_Vega10_PCIE_Table , + entries), + table->ucNumEntries, +sizeof (ATOM_Vega10_PCIE_Record)); +if (ret) +return ret; + + *pcie_table = (const Vega10_PPTable_Generic_SubTable_Header *)table; + +return 0 ; +} + +static int get_vega10_hard_limit_table (struct pp_hwmgr *hwmgr, +const ATOM_Vega10_POWERPLAYTABLE *powerplay_table, +const ATOM_Vega10_Hard_Limit_Table **hard_limit_table) +{ +const ATOM_Vega10_Hard_Limit_Table *table; +u16 table_offset; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usHardLimitTableOffset); + ret =get_vega10_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*table), (const void **)&table); +if (ret) +return ret; + + ret =validate_vega10_table_entries (hwmgr, table_offset, + offsetof(ATOM_Vega10_Hard_Limit_Table , + entries), + table->ucNumEntries, +sizeof (ATOM_Vega10_Hard_Limit_Record)); +if (ret) +return ret; + + *hard_limit_table = table; + +return 0 ; +} + +static int get_vega10_thermal_controller_table (struct pp_hwmgr *hwmgr, +const ATOM_Vega10_POWERPLAYTABLE *powerplay_table, +const ATOM_Vega10_Thermal_Controller **thermal_controller) +{ +u16 table_offset; + + table_offset =le16_to_cpu (powerplay_table->usThermalControllerOffset); + +return get_vega10_subtable (hwmgr, powerplay_table, table_offset, +sizeof (**thermal_controller), + (const void **)thermal_controller); +} + +static int get_vega10_fan_table (struct pp_hwmgr *hwmgr, +const ATOM_Vega10_POWERPLAYTABLE *powerplay_table, +const Vega10_PPTable_Generic_SubTable_Header **fan_table) +{ +const Vega10_PPTable_Generic_SubTable_Header *header; +u16 table_offset; +size_t table_size; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usFanTableOffset); + ret =get_vega10_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*header), (const void **)&header); +if (ret) +return ret; + +if (header->ucRevId ==10 ) + table_size =sizeof (ATOM_Vega10_Fan_Table); +else if (header->ucRevId ==0xb ) + table_size =sizeof (ATOM_Vega10_Fan_Table_V2); +else if (header->ucRevId >0xb ) + table_size =sizeof (ATOM_Vega10_Fan_Table_V3); +else + table_size =sizeof (*header); + +PP_ASSERT_WITH_CODE ((vega10_pp_table_has_space (hwmgr, table_offset, + table_size)), +"Invalid PowerPlay Table!" , return -1 ); + + *fan_table = header; + +return 0 ; +} + +static int get_vega10_power_tune_table (struct pp_hwmgr *hwmgr, +const ATOM_Vega10_POWERPLAYTABLE *powerplay_table, +const Vega10_PPTable_Generic_SubTable_Header **power_tune_table) +{ +const Vega10_PPTable_Generic_SubTable_Header *header; +u16 table_offset; +size_t table_size; +int ret; + + table_offset =le16_to_cpu (powerplay_table->usPowerTuneTableOffset); + ret =get_vega10_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*header), (const void **)&header); +if (ret) +return ret; + +if (header->ucRevId ==5 ) + table_size =sizeof (ATOM_Vega10_PowerTune_Table); +else if (header->ucRevId ==6 ) + table_size =sizeof (ATOM_Vega10_PowerTune_Table_V2); +else + table_size =sizeof (ATOM_Vega10_PowerTune_Table_V3); + +PP_ASSERT_WITH_CODE ((vega10_pp_table_has_space (hwmgr, table_offset, + table_size)), +"Invalid PowerPlay Table!" , return -1 ); + + *power_tune_table = header; + +return 0 ; +} + +static int get_vega10_voltage_lookup_table (struct pp_hwmgr *hwmgr, +const ATOM_Vega10_POWERPLAYTABLE *powerplay_table, +u16 table_offset,uint32_t max_levels, +const ATOM_Vega10_Voltage_Lookup_Table **lookup_table) +{ +const ATOM_Vega10_Voltage_Lookup_Table *table; +size_t table_size; +int ret; + + ret =get_vega10_subtable (hwmgr, powerplay_table, table_offset, +sizeof (*table), (const void **)&table); +if (ret) +return ret; + +PP_ASSERT_WITH_CODE ((table->ucNumEntries !=0 && + table->ucNumEntries <= max_levels), +"Invalid PowerPlay Table!" , return -1 ); + + table_size = offsetof(ATOM_Vega10_Voltage_Lookup_Table , entries) + + table->ucNumEntries *sizeof (ATOM_Vega10_Voltage_Lookup_Record); +PP_ASSERT_WITH_CODE ((vega10_pp_table_has_space (hwmgr, table_offset, + table_size)), +"Invalid PowerPlay Table!" , return -1 ); + + *lookup_table = table; + +return 0 ; +} +static int check_powerplay_tables (struct pp_hwmgr *hwmgr,const ATOM_Vega10_POWERPLAYTABLE *powerplay_table) {
@@ -149,14 +476,16 @@ static int init_thermal_controller(const ATOM_Vega10_Fan_Table *fan_table_v1;const ATOM_Vega10_Fan_Table_V2 *fan_table_v2;const ATOM_Vega10_Fan_Table_V3 *fan_table_v3; - - thermal_controller = (ATOM_Vega10_Thermal_Controller *) - (((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usThermalControllerOffset)); +int ret;PP_ASSERT_WITH_CODE ((powerplay_table->usThermalControllerOffset !=0 ),"Thermal controller table not set!" , return -EINVAL ); + ret =get_vega10_thermal_controller_table (hwmgr, powerplay_table, + &thermal_controller); +if (ret) +return ret; + hwmgr->thermal_controller.ucType = thermal_controller->ucType; hwmgr->thermal_controller.ucI2cLine = thermal_controller->ucI2cLine; hwmgr->thermal_controller.ucI2cAddress = thermal_controller->ucI2cAddress;
@@ -185,9 +514,9 @@ static int init_thermal_controller(if (!powerplay_table->usFanTableOffset)return 0 ; - header = (const Vega10_PPTable_Generic_SubTable_Header *) - (((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usFanTableOffset)); + ret =get_vega10_fan_table (hwmgr, powerplay_table, &header); +if (ret) +return ret;if (header->ucRevId ==10 ) { fan_table_v1 = (ATOM_Vega10_Fan_Table *)header;
@@ -332,12 +661,15 @@ static int init_over_drive_limits(struct pp_hwmgr *hwmgr, const ATOM_Vega10_POWERPLAYTABLE *powerplay_table) { - const ATOM_Vega10_GFXCLK_Dependency_Table *gfxclk_dep_table = - (const ATOM_Vega10_GFXCLK_Dependency_Table *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usGfxclkDependencyTableOffset)); + const ATOM_Vega10_GFXCLK_Dependency_Table *gfxclk_dep_table;bool is_acg_enabled = false;ATOM_Vega10_GFXCLK_Dependency_Record_V2 *patom_record_v2; +int ret; + + ret =get_vega10_gfxclk_dependency_table (hwmgr, powerplay_table, + &gfxclk_dep_table); +if (ret) +return ret;if (gfxclk_dep_table->ucRevId ==1 ) { patom_record_v2 =
@@ -900,51 +1232,13 @@ static int init_powerplay_extended_tables(int result =0 ;struct phm_ppt_v2_information *pp_table_info = (struct phm_ppt_v2_information *)(hwmgr->pptable); - -const ATOM_Vega10_MM_Dependency_Table *mm_dependency_table = - (const ATOM_Vega10_MM_Dependency_Table *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usMMDependencyTableOffset)); -const Vega10_PPTable_Generic_SubTable_Header *power_tune_table = - (const Vega10_PPTable_Generic_SubTable_Header *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usPowerTuneTableOffset)); -const ATOM_Vega10_SOCCLK_Dependency_Table *socclk_dep_table = - (const ATOM_Vega10_SOCCLK_Dependency_Table *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usSocclkDependencyTableOffset)); -const ATOM_Vega10_GFXCLK_Dependency_Table *gfxclk_dep_table = - (const ATOM_Vega10_GFXCLK_Dependency_Table *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usGfxclkDependencyTableOffset)); -const ATOM_Vega10_DCEFCLK_Dependency_Table *dcefclk_dep_table = - (const ATOM_Vega10_DCEFCLK_Dependency_Table *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usDcefclkDependencyTableOffset)); -const ATOM_Vega10_MCLK_Dependency_Table *mclk_dep_table = - (const ATOM_Vega10_MCLK_Dependency_Table *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usMclkDependencyTableOffset)); -const ATOM_Vega10_Hard_Limit_Table *hard_limits = - (const ATOM_Vega10_Hard_Limit_Table *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usHardLimitTableOffset)); -const Vega10_PPTable_Generic_SubTable_Header *pcie_table = - (const Vega10_PPTable_Generic_SubTable_Header *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usPCIETableOffset)); -const ATOM_Vega10_PIXCLK_Dependency_Table *pixclk_dep_table = - (const ATOM_Vega10_PIXCLK_Dependency_Table *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usPixclkDependencyTableOffset)); -const ATOM_Vega10_PHYCLK_Dependency_Table *phyclk_dep_table = - (const ATOM_Vega10_PHYCLK_Dependency_Table *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usPhyClkDependencyTableOffset)); -const ATOM_Vega10_DISPCLK_Dependency_Table *dispclk_dep_table = - (const ATOM_Vega10_DISPCLK_Dependency_Table *) - (((unsigned long ) powerplay_table) + -le16_to_cpu (powerplay_table->usDispClkDependencyTableOffset)); +const ATOM_Vega10_MM_Dependency_Table *mm_dependency_table; +const Vega10_PPTable_Generic_SubTable_Header *power_tune_table; +const ATOM_Vega10_GFXCLK_Dependency_Table *gfxclk_dep_table; +const ATOM_Vega10_MCLK_Dependency_Table *mclk_dep_table; +const ATOM_Vega10_Hard_Limit_Table *hard_limits; +const Vega10_PPTable_Generic_SubTable_Header *pcie_table; +const ATOM_Vega10_SOCCLK_Dependency_Table *clk_dep_table; pp_table_info->vdd_dep_on_socclk =NULL ; pp_table_info->vdd_dep_on_sclk =NULL ;
@@ -956,63 +1250,114 @@ static int init_powerplay_extended_tables( pp_table_info->vdd_dep_on_phyclk =NULL ; pp_table_info->vdd_dep_on_dispclk =NULL ; -if (powerplay_table->usMMDependencyTableOffset) - result =get_mm_clock_voltage_table (hwmgr, +if (powerplay_table->usMMDependencyTableOffset) { + result =get_vega10_mm_dependency_table (hwmgr, powerplay_table, + &mm_dependency_table); +if (!result) + result =get_mm_clock_voltage_table (hwmgr, &pp_table_info->mm_dep_table, mm_dependency_table); + } -if (!result && powerplay_table->usPowerTuneTableOffset) - result =get_tdp_table (hwmgr, +if (!result && powerplay_table->usPowerTuneTableOffset) { + result =get_vega10_power_tune_table (hwmgr, powerplay_table, + &power_tune_table); +if (!result) + result =get_tdp_table (hwmgr, &pp_table_info->tdp_table, power_tune_table); + } -if (!result && powerplay_table->usSocclkDependencyTableOffset) - result =get_socclk_voltage_dependency_table (hwmgr, +if (!result && powerplay_table->usSocclkDependencyTableOffset) { + result =get_vega10_clk_dependency_table (hwmgr, powerplay_table, +le16_to_cpu (powerplay_table->usSocclkDependencyTableOffset), + &clk_dep_table); +if (!result) + result =get_socclk_voltage_dependency_table (hwmgr, &pp_table_info->vdd_dep_on_socclk, - socclk_dep_table); + (const ATOM_Vega10_SOCCLK_Dependency_Table *) + clk_dep_table); + } -if (!result && powerplay_table->usGfxclkDependencyTableOffset) - result =get_gfxclk_voltage_dependency_table (hwmgr, - &pp_table_info->vdd_dep_on_sclk, - gfxclk_dep_table); +if (!result && powerplay_table->usGfxclkDependencyTableOffset) { + result =get_vega10_gfxclk_dependency_table (hwmgr, + powerplay_table, &gfxclk_dep_table); +if (!result) + result =get_gfxclk_voltage_dependency_table (hwmgr, + &pp_table_info->vdd_dep_on_sclk, + gfxclk_dep_table); + } -if (!result && powerplay_table->usPixclkDependencyTableOffset) - result =get_pix_clk_voltage_dependency_table (hwmgr, +if (!result && powerplay_table->usPixclkDependencyTableOffset) { + result =get_vega10_clk_dependency_table (hwmgr, powerplay_table, +le16_to_cpu (powerplay_table->usPixclkDependencyTableOffset), + &clk_dep_table); +if (!result) + result =get_pix_clk_voltage_dependency_table (hwmgr, &pp_table_info->vdd_dep_on_pixclk, (const ATOM_Vega10_PIXCLK_Dependency_Table *) - pixclk_dep_table); + clk_dep_table); + } -if (!result && powerplay_table->usPhyClkDependencyTableOffset) - result =get_pix_clk_voltage_dependency_table (hwmgr, +if (!result && powerplay_table->usPhyClkDependencyTableOffset) { + result =get_vega10_clk_dependency_table (hwmgr, powerplay_table, +le16_to_cpu (powerplay_table->usPhyClkDependencyTableOffset), + &clk_dep_table); +if (!result) + result =get_pix_clk_voltage_dependency_table (hwmgr, &pp_table_info->vdd_dep_on_phyclk, (const ATOM_Vega10_PIXCLK_Dependency_Table *) - phyclk_dep_table); + clk_dep_table); + } -if (!result && powerplay_table->usDispClkDependencyTableOffset) - result =get_pix_clk_voltage_dependency_table (hwmgr, +if (!result && powerplay_table->usDispClkDependencyTableOffset) { + result =get_vega10_clk_dependency_table (hwmgr, powerplay_table, +le16_to_cpu (powerplay_table->usDispClkDependencyTableOffset), + &clk_dep_table); +if (!result) + result =get_pix_clk_voltage_dependency_table (hwmgr, &pp_table_info->vdd_dep_on_dispclk, (const ATOM_Vega10_PIXCLK_Dependency_Table *) - dispclk_dep_table); + clk_dep_table); + } -if (!result && powerplay_table->usDcefclkDependencyTableOffset) - result =get_dcefclk_voltage_dependency_table (hwmgr, +if (!result && powerplay_table->usDcefclkDependencyTableOffset) { + result =get_vega10_clk_dependency_table (hwmgr, powerplay_table, +le16_to_cpu (powerplay_table->usDcefclkDependencyTableOffset), + &clk_dep_table); +if (!result) + result =get_dcefclk_voltage_dependency_table (hwmgr, &pp_table_info->vdd_dep_on_dcefclk, - dcefclk_dep_table); + (const ATOM_Vega10_DCEFCLK_Dependency_Table *) + clk_dep_table); + } -if (!result && powerplay_table->usMclkDependencyTableOffset) - result =get_mclk_voltage_dependency_table (hwmgr, +if (!result && powerplay_table->usMclkDependencyTableOffset) { + result =get_vega10_mclk_dependency_table (hwmgr, powerplay_table, + &mclk_dep_table); +if (!result) + result =get_mclk_voltage_dependency_table (hwmgr, &pp_table_info->vdd_dep_on_mclk, mclk_dep_table); + } -if (!result && powerplay_table->usPCIETableOffset) - result =get_pcie_table (hwmgr, +if (!result && powerplay_table->usPCIETableOffset) { + result =get_vega10_pcie_table (hwmgr, powerplay_table, + &pcie_table); +if (!result) + result =get_pcie_table (hwmgr, &pp_table_info->pcie_table, pcie_table); + } -if (!result && powerplay_table->usHardLimitTableOffset) - result =get_hard_limits (hwmgr, +if (!result && powerplay_table->usHardLimitTableOffset) { + result =get_vega10_hard_limit_table (hwmgr, powerplay_table, + &hard_limits); +if (!result) + result =get_hard_limits (hwmgr, &pp_table_info->max_clock_voltage_on_dc, hard_limits); + } hwmgr->dyn_state.max_clock_voltage_on_dc.sclk = pp_table_info->max_clock_voltage_on_dc.sclk;
@@ -1140,30 +1485,39 @@ static int init_dpm_2_parameters( }if (powerplay_table->usVddcLookupTableOffset) { -const ATOM_Vega10_Voltage_Lookup_Table *vddc_table = - (ATOM_Vega10_Voltage_Lookup_Table *) - (((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usVddcLookupTableOffset)); - result =get_vddc_lookup_table (hwmgr, - &pp_table_info->vddc_lookup_table, vddc_table,8 ); +const ATOM_Vega10_Voltage_Lookup_Table *vddc_table; + + result =get_vega10_voltage_lookup_table (hwmgr, powerplay_table, +le16_to_cpu (powerplay_table->usVddcLookupTableOffset), +8 , &vddc_table); +if (!result) + result =get_vddc_lookup_table (hwmgr, + &pp_table_info->vddc_lookup_table, + vddc_table,8 ); } -if (powerplay_table->usVddmemLookupTableOffset) { -const ATOM_Vega10_Voltage_Lookup_Table *vdd_mem_table = - (ATOM_Vega10_Voltage_Lookup_Table *) - (((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usVddmemLookupTableOffset)); - result =get_vddc_lookup_table (hwmgr, - &pp_table_info->vddmem_lookup_table, vdd_mem_table,4 ); +if (!result && powerplay_table->usVddmemLookupTableOffset) { +const ATOM_Vega10_Voltage_Lookup_Table *vdd_mem_table; + + result =get_vega10_voltage_lookup_table (hwmgr, powerplay_table, +le16_to_cpu (powerplay_table->usVddmemLookupTableOffset), +4 , &vdd_mem_table); +if (!result) + result =get_vddc_lookup_table (hwmgr, + &pp_table_info->vddmem_lookup_table, + vdd_mem_table,4 ); } -if (powerplay_table->usVddciLookupTableOffset) { -const ATOM_Vega10_Voltage_Lookup_Table *vddci_table = - (ATOM_Vega10_Voltage_Lookup_Table *) - (((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usVddciLookupTableOffset)); - result =get_vddc_lookup_table (hwmgr, - &pp_table_info->vddci_lookup_table, vddci_table,4 ); +if (!result && powerplay_table->usVddciLookupTableOffset) { +const ATOM_Vega10_Voltage_Lookup_Table *vddci_table; + + result =get_vega10_voltage_lookup_table (hwmgr, powerplay_table, +le16_to_cpu (powerplay_table->usVddciLookupTableOffset), +4 , &vddci_table); +if (!result) + result =get_vddc_lookup_table (hwmgr, + &pp_table_info->vddci_lookup_table, + vddci_table,4 ); }return result;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 55/3318 drm/amd/pm: Validate legacy hwmgr PP table offsets
In reply to Greg Kroah-Hartman6.6-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; }
@@ -772,20 +789,37 @@ static ULONG size_of_entry_v2(ULONG num_dpm_levels) }static const ATOM_PPLIB_STATE_V2 *get_state_entry_v2 ( +struct pp_hwmgr *hwmgr,const StateArray * pstate_arrays, +u16 state_array_offset,ULONG entry_index) {ULONG i;const ATOM_PPLIB_STATE_V2 *pstate; +size_t entry_offset; +size_t entry_size; + +if (entry_index >= pstate_arrays->ucNumEntries) +return NULL ; + entry_offset = state_array_offset +sizeof (pstate_arrays->ucNumEntries); pstate = pstate_arrays->states; -if (entry_index <= pstate_arrays->ucNumEntries) { -for (i =0 ; i < entry_index; i++) - pstate = (ATOM_PPLIB_STATE_V2 *)( - (unsigned long )pstate + -size_of_entry_v2 (pstate->ucNumDPMLevels)); +for (i =0 ; i <= entry_index; i++) { +if (!pp_table_has_space (hwmgr, entry_offset,sizeof (*pstate))) +return NULL ; + + entry_size =size_of_entry_v2 (pstate->ucNumDPMLevels); +if (!pp_table_has_space (hwmgr, entry_offset, entry_size)) +return NULL ; + +if (i == entry_index) +return pstate; + + entry_offset += entry_size; + pstate = (ATOM_PPLIB_STATE_V2 *)((unsigned long )pstate + entry_size); } -return pstate; + +return NULL ; }static const unsigned char soft_dummy_pp_table[] = {
@@ -853,6 +887,8 @@ int pp_tables_get_response_times(struct pp_hwmgr *hwmgr,PP_ASSERT_WITH_CODE (NULL != powerplay_tab,"Missing PowerPlay Table!" , return -EINVAL ); +PP_ASSERT_WITH_CODE (pp_table_has_space (hwmgr,0 ,sizeof (*powerplay_tab)), +"Invalid PowerPlay Table!" , return -EINVAL ); *vol_rep_time = (uint32_t )le16_to_cpu (powerplay_tab->usVoltageTime); *bb_rep_time = (uint32_t )le16_to_cpu (powerplay_tab->usBackbiasTime);
@@ -865,13 +901,21 @@ int pp_tables_get_num_of_entries(struct pp_hwmgr *hwmgr, {const StateArray *pstate_arrays;const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table =get_powerplay_table (hwmgr); +u16 state_array_offset;if (powerplay_table ==NULL )return -1 ; +if (!pp_table_has_space (hwmgr,0 ,sizeof (*powerplay_table))) +return -1 ;if (powerplay_table->sHeader.ucTableFormatRevision >=6 ) { + state_array_offset =le16_to_cpu (powerplay_table->usStateArrayOffset); +if (!pp_table_has_space (hwmgr, state_array_offset, +sizeof (pstate_arrays->ucNumEntries))) +return -1 ; + pstate_arrays = (StateArray *)(((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usStateArrayOffset)); + state_array_offset); *num_of_entries = (unsigned long )(pstate_arrays->ucNumEntries); }else
@@ -898,49 +942,128 @@ int pp_tables_get_entry(struct pp_hwmgr *hwmgr,const NonClockInfoArray *pnon_clock_arrays;const ATOM_PPLIB_STATE *pstate_entry; +u16 state_array_offset; +u16 clock_info_array_offset; +u16 non_clock_info_array_offset; +size_t clock_info_offset; +size_t non_clock_info_offset; +size_t state_entry_offset;if (powerplay_table ==NULL )return -1 ; +if (!pp_table_has_space (hwmgr,0 ,sizeof (*powerplay_table))) +return -1 ; ps->classification.bios_index = entry_index;if (powerplay_table->sHeader.ucTableFormatRevision >=6 ) { + state_array_offset =le16_to_cpu (powerplay_table->usStateArrayOffset); +if (!pp_table_has_space (hwmgr, state_array_offset, +sizeof (pstate_arrays->ucNumEntries))) +return -1 ; + pstate_arrays = (StateArray *)(((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usStateArrayOffset)); + state_array_offset); + +if (entry_index >= pstate_arrays->ucNumEntries) +return -1 ; -if (entry_index > pstate_arrays->ucNumEntries) + pstate_entry_v2 =get_state_entry_v2 (hwmgr, pstate_arrays, + state_array_offset, + entry_index); +if (!pstate_entry_v2) +return -1 ; + + clock_info_array_offset = +le16_to_cpu (powerplay_table->usClockInfoArrayOffset); +if (!pp_table_has_space (hwmgr, clock_info_array_offset, +sizeof (*pclock_arrays)))return -1 ; - pstate_entry_v2 =get_state_entry_v2 (pstate_arrays, entry_index); pclock_arrays = (ClockInfoArray *)(((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usClockInfoArrayOffset)); + clock_info_array_offset); +if (!pclock_arrays->ucEntrySize) +return -1 ; + + non_clock_info_array_offset = +le16_to_cpu (powerplay_table->usNonClockInfoArrayOffset); +if (!pp_table_has_space (hwmgr, non_clock_info_array_offset, +sizeof (*pnon_clock_arrays))) +return -1 ; pnon_clock_arrays = (NonClockInfoArray *)(((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usNonClockInfoArrayOffset)); + non_clock_info_array_offset); +if (!pnon_clock_arrays->ucEntrySize || + pnon_clock_arrays->ucEntrySize <ATOM_PPLIB_NONCLOCKINFO_VER1 || + (pnon_clock_arrays->ucEntrySize >ATOM_PPLIB_NONCLOCKINFO_VER1 && + pnon_clock_arrays->ucEntrySize <ATOM_PPLIB_NONCLOCKINFO_VER2 ) || + pstate_entry_v2->nonClockInfoIndex >= pnon_clock_arrays->ucNumEntries) +return -1 ; + non_clock_info_offset = non_clock_info_array_offset + + offsetof(NonClockInfoArray , nonClockInfo) + + pstate_entry_v2->nonClockInfoIndex * pnon_clock_arrays->ucEntrySize; +if (!pp_table_has_space (hwmgr, non_clock_info_offset, + pnon_clock_arrays->ucEntrySize)) +return -1 ; pnon_clock_info = (ATOM_PPLIB_NONCLOCK_INFO *)((unsigned long )(pnon_clock_arrays->nonClockInfo) + (pstate_entry_v2->nonClockInfoIndex * pnon_clock_arrays->ucEntrySize)); result =init_non_clock_fields (hwmgr, ps, pnon_clock_arrays->ucEntrySize, pnon_clock_info);for (i =0 ; i < pstate_entry_v2->ucNumDPMLevels; i++) { -const void *pclock_info = (const void *)( - (unsigned long )(pclock_arrays->clockInfo) + - (pstate_entry_v2->clockInfoIndex[i] * pclock_arrays->ucEntrySize)); +const void *pclock_info; + +if (pstate_entry_v2->clockInfoIndex[i] >= + pclock_arrays->ucNumEntries) +return -1 ; + + clock_info_offset = clock_info_array_offset + + offsetof(ClockInfoArray , clockInfo) + + pstate_entry_v2->clockInfoIndex[i] * pclock_arrays->ucEntrySize; +if (!pp_table_has_space (hwmgr, clock_info_offset, + pclock_arrays->ucEntrySize)) +return -1 ; + + pclock_info = (const void *) + ((unsigned long )(pclock_arrays->clockInfo) + + (pstate_entry_v2->clockInfoIndex[i] * + pclock_arrays->ucEntrySize)); res =func (hwmgr, &ps->hardware, i, pclock_info);if ((0 == result) && (0 != res)) result = res; } }else { -if (entry_index > powerplay_table->ucNumStates) +if (entry_index >= powerplay_table->ucNumStates || + !powerplay_table->ucStateEntrySize || + !powerplay_table->ucNonClockSize || + powerplay_table->ucNonClockSize <ATOM_PPLIB_NONCLOCKINFO_VER1 || + (powerplay_table->ucNonClockSize >ATOM_PPLIB_NONCLOCKINFO_VER1 && + powerplay_table->ucNonClockSize <ATOM_PPLIB_NONCLOCKINFO_VER2 ) || + !powerplay_table->ucClockInfoSize) +return -1 ; + + state_array_offset =le16_to_cpu (powerplay_table->usStateArrayOffset); + state_entry_offset = state_array_offset + + entry_index * powerplay_table->ucStateEntrySize; +if (!pp_table_has_space (hwmgr, state_entry_offset, + powerplay_table->ucStateEntrySize))return -1 ; pstate_entry = (ATOM_PPLIB_STATE *)((unsigned long )powerplay_table + -le16_to_cpu (powerplay_table->usStateArrayOffset) + + state_array_offset + entry_index * powerplay_table->ucStateEntrySize); + non_clock_info_array_offset = +le16_to_cpu (powerplay_table->usNonClockInfoArrayOffset); + non_clock_info_offset = non_clock_info_array_offset + + pstate_entry->ucNonClockStateIndex * powerplay_table->ucNonClockSize; +if (!pp_table_has_space (hwmgr, non_clock_info_offset, + powerplay_table->ucNonClockSize)) +return -1 ; + pnon_clock_info = (ATOM_PPLIB_NONCLOCK_INFO *)((unsigned long )powerplay_table + -le16_to_cpu (powerplay_table->usNonClockInfoArrayOffset) + + non_clock_info_array_offset + pstate_entry->ucNonClockStateIndex * powerplay_table->ucNonClockSize);
@@ -949,12 +1072,23 @@ int pp_tables_get_entry(struct pp_hwmgr *hwmgr, pnon_clock_info);for (i =0 ; i < powerplay_table->ucStateEntrySize-1 ; i++) { -const void *pclock_info = (const void *)((unsigned long )powerplay_table + -le16_to_cpu (powerplay_table->usClockInfoArrayOffset) + +const void *pclock_info; + + clock_info_array_offset = +le16_to_cpu (powerplay_table->usClockInfoArrayOffset); + clock_info_offset = clock_info_array_offset + + pstate_entry->ucClockStateIndices[i] * + powerplay_table->ucClockInfoSize; +if (!pp_table_has_space (hwmgr, clock_info_offset, + powerplay_table->ucClockInfoSize)) +return -1 ; + + pclock_info = (const void *)((unsigned long )powerplay_table + + clock_info_array_offset + pstate_entry->ucClockStateIndices[i] * powerplay_table->ucClockInfoSize); -int res =func (hwmgr, &ps->hardware, i, pclock_info); + res =func (hwmgr, &ps->hardware, i, pclock_info);if ((0 == result) && (0 != res)) result = res;
@@ -1669,21 +1803,70 @@ static int get_vce_state_table_entry(struct pp_hwmgr *hwmgr, unsigned long *flag) {const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table =get_powerplay_table (hwmgr); +const ATOM_PPLIB_VCE_State_Table *vce_state_table; +const ATOM_PPLIB_VCE_State_Record *record; +const VCEClockInfoArray *vce_clock_info_array; +const VCEClockInfo *vce_clock_info; +const ClockInfoArray *clock_arrays; +u16 vce_state_table_offset; +u16 vce_clock_info_array_offset; +u16 clock_info_array_offset; +unsigned long clockInfoIndex; +size_t record_offset; +size_t vce_clock_info_offset; +size_t clock_info_offset; + +if (!powerplay_table || !pp_table_has_space (hwmgr,0 ,sizeof (*powerplay_table))) +return -1 ; -const ATOM_PPLIB_VCE_State_Table *vce_state_table =get_vce_state_table (hwmgr, powerplay_table); + vce_state_table_offset =get_vce_state_table_offset (hwmgr, powerplay_table); + vce_state_table =get_vce_state_table (hwmgr, powerplay_table); +if (!vce_state_table || i >= vce_state_table->numEntries) +return -1 ; + + record_offset = vce_state_table_offset + + offsetof(ATOM_PPLIB_VCE_State_Table , entries) + + i *sizeof (*record); +if (!pp_table_has_space (hwmgr, record_offset,sizeof (*record))) +return -1 ; + + record = &vce_state_table->entries[i]; + + vce_clock_info_array_offset = +get_vce_clock_info_array_offset (hwmgr, powerplay_table); +if (!pp_table_has_space (hwmgr, vce_clock_info_array_offset, +sizeof (vce_clock_info_array->ucNumEntries))) +return -1 ; -unsigned short vce_clock_info_array_offset =get_vce_clock_info_array_offset (hwmgr, powerplay_table); + vce_clock_info_array = (const VCEClockInfoArray *) + (((unsigned long )powerplay_table) + vce_clock_info_array_offset); +if (record->ucVCEClockInfoIndex >= vce_clock_info_array->ucNumEntries) +return -1 ; -const VCEClockInfoArray *vce_clock_info_array = (const VCEClockInfoArray *)(((unsigned long ) powerplay_table) + vce_clock_info_array_offset); + vce_clock_info_offset = vce_clock_info_array_offset + + offsetof(VCEClockInfoArray , entries) + + record->ucVCEClockInfoIndex *sizeof (*vce_clock_info); +if (!pp_table_has_space (hwmgr, vce_clock_info_offset,sizeof (*vce_clock_info))) +return -1 ; -const ClockInfoArray *clock_arrays = (ClockInfoArray *)(((unsigned long )powerplay_table) + -le16_to_cpu (powerplay_table->usClockInfoArrayOffset)); + vce_clock_info = &vce_clock_info_array->entries[record->ucVCEClockInfoIndex]; -const ATOM_PPLIB_VCE_State_Record *record = &vce_state_table->entries[i]; + clock_info_array_offset =le16_to_cpu (powerplay_table->usClockInfoArrayOffset); +if (!pp_table_has_space (hwmgr, clock_info_array_offset, +sizeof (*clock_arrays))) +return -1 ; -const VCEClockInfo *vce_clock_info = &vce_clock_info_array->entries[record->ucVCEClockInfoIndex]; + clock_arrays = (ClockInfoArray *)(((unsigned long )powerplay_table) + + clock_info_array_offset); + clockInfoIndex = record->ucClockInfoIndex &0x3F ; +if (!clock_arrays->ucEntrySize || clockInfoIndex >= clock_arrays->ucNumEntries) +return -1 ; -unsigned long clockInfoIndex = record->ucClockInfoIndex &0x3F ; + clock_info_offset = clock_info_array_offset + + offsetof(ClockInfoArray , clockInfo) + + clockInfoIndex * clock_arrays->ucEntrySize; +if (!pp_table_has_space (hwmgr, clock_info_offset, clock_arrays->ucEntrySize)) +return -1 ; *flag = (record->ucClockInfoIndex >>NUM_BITS_CLOCK_INFO_ARRAY_INDEX );
@@ -1707,6 +1890,10 @@ static int pp_tables_initialize(struct pp_hwmgr *hwmgr) hwmgr->need_pp_table_upload = true; powerplay_table =get_powerplay_table (hwmgr); +PP_ASSERT_WITH_CODE ((powerplay_table), +"Missing PowerPlay Table!" , return -1 ); +PP_ASSERT_WITH_CODE (pp_table_has_space (hwmgr,0 ,sizeof (*powerplay_table)), +"Invalid PowerPlay Table!" , return -1 ); result =init_powerplay_tables (hwmgr, powerplay_table);
@@ -1809,4 +1996,3 @@ const struct pp_table_func pptable_funcs = { .pptable_get_vce_state_table_entry = get_vce_state_table_entry, }; -
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 56/3318 drm/amdkfd: add sanity check in svm_range_is_valid
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eric Huang <[email protected]>
[ Upstream commit aa7e29cf9a37092cf5057a612ee09f28df20258f ]
to prevent svm range to be overflow or underflow.
--- drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_svm.c +7 -1
@@ -3319,7 +3319,13 @@ svm_range_is_valid(struct kfd_process *p, uint64_t start, uint64_t size)unsigned long start_unchg = start; start <<=PAGE_SHIFT ; - end = start + (size <<PAGE_SHIFT ); + +if (size ==0 ) +return -EINVAL ; + +if (check_add_overflow (start, size <<PAGE_SHIFT , &end)) +return -EOVERFLOW ; + do { vma = vma_lookup(p->mm, start); if (!vma || (vma->vm_flags & device_vma))
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 57/3318 net: usb: rtl8150: handle link status read failures
In reply to Greg Kroah-Hartman6.6-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 58/3318 netfilter: ebtables: bound num_counters like nentries in do_replace()
In reply to Greg Kroah-Hartman6.6-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
@@ -39,6 +39,8 @@#define COUNTER_OFFSET (n) (SMP_ALIGN(n * sizeof(struct ebt_counter)))#define COUNTER_BASE (c, n, cpu) ((struct ebt_counter *)(((char *)c) + \ COUNTER_OFFSET(n) * cpu)) +#define MAX_EBT_ENTRIES (((INT_MAX - sizeof(struct ebt_table_info)) / \ + NR_CPUS - SMP_CACHE_BYTES) / sizeof(struct ebt_counter))struct ebt_pernet {struct list_head tables;
@@ -1126,10 +1128,9 @@ static int do_replace(struct net *net, sockptr_t arg, unsigned int len)return -EINVAL ;/* overflow check */ -if (tmp.nentries >= ((INT_MAX -sizeof (struct ebt_table_info )) / -NR_CPUS -SMP_CACHE_BYTES ) /sizeof (struct ebt_counter )) +if (tmp.nentries >=MAX_EBT_ENTRIES )return -ENOMEM ; -if (tmp.num_counters >=INT_MAX /sizeof (struct ebt_counter )) +if (tmp.num_counters >=MAX_EBT_ENTRIES )return -ENOMEM ; tmp.name[sizeof (tmp.name) -1 ] =0 ;
@@ -2269,10 +2270,9 @@ static int compat_copy_ebt_replace_from_user(struct ebt_replace *repl,if (tmp.entries_size ==0 )return -EINVAL ; -if (tmp.nentries >= ((INT_MAX -sizeof (struct ebt_table_info )) / -NR_CPUS -SMP_CACHE_BYTES ) /sizeof (struct ebt_counter )) +if (tmp.nentries >=MAX_EBT_ENTRIES )return -ENOMEM ; -if (tmp.num_counters >=INT_MAX /sizeof (struct ebt_counter )) +if (tmp.num_counters >=MAX_EBT_ENTRIES )return -ENOMEM ;memcpy (repl, &tmp, offsetof(struct ebt_replace , hook_entry));
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 59/3318 soundwire: dmi-quirks: Disable ghost Realtek on Asus Expertbook
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Charles Keepax <[email protected]>
[ Upstream commit 90af3209742db61a7f9d7d054a16165818cfc6d8 ]
The Asus Expertbook B9406CAA also has a Realtek device in the ACPI that doesn't exist in the physical hardware. This confuses the machine driver into attempting to create DAI links for the device. Add a quirk to remove this device.
--- drivers/soundwire/dmi-quirks.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/soundwire/dmi-quirks.c +7 -0
@@ -178,6 +178,13 @@ static const struct dmi_system_id adr_remap_quirk_table[] = { .driver_data = (void *)hp_omen_16, },/* PTL devices */ + { + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUS" ), + DMI_MATCH(DMI_BOARD_NAME, "B9406CAA"), + }, + .driver_data = (void *)ghost_realtek, + }, { .matches = { DMI_MATCH(DMI_SYS_VENDOR, "ASUS"),
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 60/3318 dmaengine: pl330: remove debugfs file on teardown
In reply to Greg Kroah-Hartman6.6-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; };
@@ -2957,14 +2958,24 @@ DEFINE_SHOW_ATTRIBUTE(pl330_debugfs);static inline void init_pl330_debugfs (struct pl330_dmac *pl330) { -debugfs_create_file (dev_name (pl330->ddma.dev), -S_IFREG |0444 ,NULL , pl330, - &pl330_debugfs_fops); + pl330->dbgfs =debugfs_create_file (dev_name (pl330->ddma.dev), +S_IFREG |0444 ,NULL , pl330, + &pl330_debugfs_fops); +} + +static inline void deinit_pl330_debugfs (struct pl330_dmac *pl330) +{ +debugfs_remove (pl330->dbgfs); + pl330->dbgfs =NULL ; }#else static inline void init_pl330_debugfs (struct pl330_dmac *pl330) { } + +static inline void deinit_pl330_debugfs (struct pl330_dmac *pl330) +{ +}#endif /*
@@ -3213,6 +3224,8 @@ static void pl330_remove(struct amba_device *adev)struct dma_pl330_chan *pch, *_p;int i, irq; +deinit_pl330_debugfs (pl330); +pm_runtime_get_noresume (pl330->ddma.dev);if (adev->dev.of_node)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 61/3318 net: mvneta_bm: add suspend/resume support to prevent crash after resume
In reply to Greg Kroah-Hartman6.6-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
@@ -5643,6 +5643,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 62/3318 dmaengine: dw-axi-dmac: fix __le32 on set of CH_CTL_H_LLI_VALID
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ben Dooks <[email protected]>
[ Upstream commit 89aba9c39bdda8a973a6ffed7c9e93321edcfc16 ]
When writing the lli->ctl_hi, this is an __le32 type so the value being orred should be convered to __le32 by cpu_to_le32.
Fixes 1deb96c0fa58a ("dmaegine: dw-axi-dmac: Support device_prep_dma_cyclic()") --
Note, the call to axi_chan_irq_clear() is passing lli->status_lo through which is also an __le32 but it does not seem to be set anywhere. Is this also a bug?
--- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +1 -1
@@ -1082,7 +1082,7 @@ static void axi_chan_block_xfer_complete(struct axi_dma_chan *chan) hw_desc = &desc->hw_desc[i];if (hw_desc->llp == llp) {axi_chan_irq_clear (chan, hw_desc->lli->status_lo); - hw_desc->lli->ctl_hi |=CH_CTL_H_LLI_VALID ; + hw_desc->lli->ctl_hi |=cpu_to_le32 (CH_CTL_H_LLI_VALID ); desc->completed_blocks = i;if (((hw_desc->len * (i +1 )) % desc->period_len) ==0 )
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 63/3318 wifi: rtlwifi: rtl8723be: Remove unnecessary irq save/restore in hw_init()
In reply to Greg Kroah-Hartman6.6-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 28/3318 irqdomain: Plug leak in irq_domain_alloc_irqs_locked() error path
In reply to Greg Kroah-Hartman6.6-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
@@ -1558,7 +1558,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++)
@@ -1566,6 +1566,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 64/3318 wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding
In reply to Greg Kroah-Hartman6.6-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 65/3318 block: reject block device inodes with i_rdev == 0 in lookup_bdev()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yun Zhou <[email protected]>
[ Upstream commit 83887ad02f30c1814bed5da3ca999f7b0f3f337c ]
lookup_bdev() blindly returns inode->i_rdev without validating it. When a FUSE filesystem exposes a root inode with S_IFBLK mode but i_rdev == 0 (via rootmode=060000), any subsequent mount attempt using that path as a block device source propagates dev_t 0 into the superblock machinery. After commit 9ee5f161a4db ("fs: maintain a global device-to-superblock table") this triggers a WARNING in super_dev_register().
Reject i_rdev == 0 early with -ENODEV since no real block device driver registers major 0.
--- block/bdev.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
block/bdev.c +12 -0
@@ -998,6 +998,18 @@ int lookup_bdev(const char *pathname, dev_t *dev)if (!may_open_dev (&path)) goto out_path_put; +/* +* Reject a block device inode with i_rdev == 0. A dev_t of 0 is +* never valid for a block device: no real block device driver +* registers major 0. Fake block device inodes (e.g. fuse with +* rootmode=S_IFBLK) can expose i_rdev == 0, and letting that +* propagate would confuse superblock lookup and trigger warnings +* in the device-to-superblock table (super_dev_register). +*/ + error = -ENODEV ; +if (!inode->i_rdev) + goto out_path_put; + *dev = inode->i_rdev; error =0 ; out_path_put:
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 66/3318 iio: adc: max1241: add missing MODULE_DEVICE_TABLE()
In reply to Greg Kroah-Hartman6.6-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
@@ -179,6 +179,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 67/3318 soc: qcom: socinfo: Add SoC ID for SDM850
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Heidelberg <[email protected]>
[ Upstream commit 743af1d6a8b4bfa62dd01b5c2d81b1c62ea597f7 ]
Recognize the SDM850 SoC.
--- drivers/soc/qcom/socinfo.c | 1 + 1 file changed, 1 insertion(+)
drivers/soc/qcom/socinfo.c +1 -0
@@ -339,6 +339,7 @@ static const struct soc_id soc_id[] = { { qcom_board_id(IPQ8078) }, { qcom_board_id(SDM636) }, { qcom_board_id(SDA636) }, + { qcom_board_id(SDM850) }, { qcom_board_id(SDM632) }, { qcom_board_id(SDA632) }, { qcom_board_id(SDA450) },
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 68/3318 RDMA/rxe: Check PDs for memory window binds
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zhiwei Zhang <[email protected]>
[ Upstream commit fbbe1d5cd7d400a98afcf337969cfdb808cb198f ]
The IBTA Software Transport Verbs specification requires the QP, Memory Window and Memory Region for a Bind Memory Window operation to belong to the same HCA and protection domain.
rxe only checked the QP and MW protection domain for type 2 MWs. Move the QP/MW PD check to the common bind path and also reject binding an MW to an MR from a different PD.
Invalid bind requests continue to fail with IB_WC_MW_BIND_ERR.
--- drivers/infiniband/sw/rxe/rxe_mw.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)
drivers/infiniband/sw/rxe/rxe_mw.c +12 -8
@@ -72,13 +72,6 @@ static int rxe_check_bind_mw(struct rxe_qp *qp, struct rxe_send_wqe *wqe,return -EINVAL ; } -/* C10-72 */ -if (unlikely (qp->pd !=to_rpd (mw->ibmw.pd))) { -rxe_dbg_mw (mw, -"attempt to bind type 2 MW with qp with different PD\n" ); -return -EINVAL ; - } -/* o10-37.2.40 */ if (unlikely (!mr || wqe->wr.wr.mw.length ==0 )) { rxe_dbg_mw(mw,
@@ -87,10 +80,21 @@ static int rxe_check_bind_mw(struct rxe_qp *qp, struct rxe_send_wqe *wqe, } } -/* remaining checks only apply to a nonzero MR */ +/* C10-72 */ +if (unlikely (qp->pd !=rxe_mw_pd (mw))) { +rxe_dbg_mw (mw,"attempt to bind MW with qp with different PD\n" ); +return -EINVAL ; + } +if (!mr)return 0 ; +/* remaining checks only apply to a nonzero MR */ +if (unlikely (qp->pd !=mr_pd (mr))) { +rxe_dbg_mw (mw,"attempt to bind MW/QP to MR with different PD\n" ); +return -EINVAL ; + } +if (unlikely (mr->access &IB_ZERO_BASED )) {rxe_dbg_mw (mw,"attempt to bind MW to zero based MR\n" );return -EINVAL ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 29/3318 ASoC: sma1303: remove fault-check sysfs group on remove
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit ce3733792d38ade8df8ce288a96ff0c6ad858bf3 ]
sma1303_i2c_probe() creates a sysfs group that exposes the fault-check controls. The check_fault_status store callback can queue check_fault_work.
sma1303_i2c_remove() only cancels the delayed work. It does not remove the sysfs group, so the controls can remain published after remove while their callbacks still use the driver data and can queue the work again.
Remove the sysfs group before cancelling the delayed work.
--- sound/soc/codecs/sma1303.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/codecs/sma1303.c +2 -0
@@ -1787,6 +1787,8 @@ static void sma1303_i2c_remove(struct i2c_client *client)struct sma1303_priv *sma1303 = (struct sma1303_priv *)i2c_get_clientdata (client); +if (sma1303->attr_grp) +sysfs_remove_group (sma1303->kobj, sma1303->attr_grp);cancel_delayed_work_sync (&sma1303->check_fault_work); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 30/3318 clk: zynq: handle kasprintf() failure in periph_clk registration
In reply to Greg Kroah-Hartman6.6-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
@@ -186,7 +186,11 @@ static void __init zynq_clk_register_periph_clk(enum zynq_clk clk0,spin_lock_init (lock); mux_name =kasprintf (GFP_KERNEL ,"%s_mux" , clk_name0); +if (!mux_name) + goto err_mux_name; div_name =kasprintf (GFP_KERNEL ,"%s_div" , clk_name0); +if (!div_name) + goto err_div_name;clk_register_mux (NULL , mux_name, parents,4 ,CLK_SET_RATE_NO_REPARENT , clk_ctrl,4 ,2 ,0 , lock);
@@ -205,6 +209,10 @@ static void __init zynq_clk_register_periph_clk(enum zynq_clk clk0,return ; +err_div_name: +kfree (mux_name); +err_mux_name: +kfree (lock); err: clks[clk0] =ERR_PTR (-ENOMEM );if (two_gates)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 31/3318 ASoC: tlv320aic26: remove keyclick sysfs file
In reply to Greg Kroah-Hartman6.6-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
@@ -320,8 +320,14 @@ static int aic26_probe(struct snd_soc_component *component)return 0 ; } +static void aic26_remove (struct snd_soc_component *component) +{ +device_remove_file (component->dev, &dev_attr_keyclick); +} +static const struct snd_soc_component_driver aic26_soc_component_dev = { .probe = aic26_probe, + .remove = aic26_remove, .controls = aic26_snd_controls, .num_controls =ARRAY_SIZE (aic26_snd_controls), .dapm_widgets = tlv320aic26_dapm_widgets,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 32/3318 ASoC: hdac_hdmi: Fix resource cleanup on probe failure
In reply to Greg Kroah-Hartman6.6-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
@@ -2162,8 +2162,10 @@ static int hdac_hdmi_dev_probe(struct hdac_device *hdev)snd_hdac_ext_bus_link_get (hdev->bus, hlink); hdmi_priv =devm_kzalloc (&hdev->dev,sizeof (*hdmi_priv),GFP_KERNEL ); -if (hdmi_priv ==NULL ) +if (hdmi_priv ==NULL ) { +snd_hdac_ext_bus_link_put (hdev->bus, hlink);return -ENOMEM ; + }snd_hdac_register_chmap_ops (hdev, &hdmi_priv->chmap); hdmi_priv->chmap.ops.get_chmap = hdac_hdmi_get_chmap;
@@ -2172,8 +2174,10 @@ static int hdac_hdmi_dev_probe(struct hdac_device *hdev) hdmi_priv->chmap.ops.get_spk_alloc = hdac_hdmi_get_spk_alloc; hdmi_priv->hdev = hdev; -if (!hdac_id) +if (!hdac_id) { +snd_hdac_ext_bus_link_put (hdev->bus, hlink);return -ENODEV ; + }if (hdac_id->driver_data) hdmi_priv->drv_data =
@@ -2198,6 +2202,8 @@ static int hdac_hdmi_dev_probe(struct hdac_device *hdev)if (ret <0 ) {dev_err (&hdev->dev,"Failed in parse and map nid with err: %d\n" , ret); +snd_hdac_ext_bus_link_put (hdev->bus, hlink); +snd_hdac_display_power (hdev->bus, hdev->addr, false);return ret; }snd_hdac_refresh_widgets (hdev);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 33/3318 regmap: maple: Workaround for another false-positive compiler warning
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Uwe Kleine-König (The Capable Hub) <[email protected]>
[ Upstream commit dffd32eb2b0e714a8ae23f98518ad7152cb06369 ]
Similar to the issue fixed in commit 542440fd7b30 ("regmap: maple: work around gcc-14.1 false-positive warning"), I see an uninitialized warning for upper_index and upper_last.
Happens with arc-linux-gnu-gcc (Debian 15.3.0-1) 15.3.0 on an allmodconfig for ARCH=arc.
--- drivers/base/regmap/regcache-maple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/regmap/regcache-maple.c +1 -1
@@ -113,7 +113,7 @@ static int regcache_maple_drop(struct regmap *map, unsigned int min,unsigned long *entry, *lower, *upper;/* initialized to work around false-positive -Wuninitialized warning */ unsigned long lower_index =0 , lower_last =0 ; -unsigned long upper_index, upper_last; +unsigned long upper_index =0 , upper_last =0 ;int ret =0 ; lower =NULL ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 24/3318 drm/amdgpu: add bounds check to prevent array overflow
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: YiPeng Chai <[email protected]>
[ Upstream commit db15c49a17b8fab9ada38f3a548e5353d7d6b1a8 ]
Add bounds check to prevent array overflow.
v2:
Add warning messages.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +7 -0
@@ -3134,6 +3134,13 @@ static void amdgpu_register_bad_pages_mca_notifier(struct amdgpu_device *adev)* Use this list instead of mgpu_info to find the amdgpu * device on which the UMC error was reported. */ +if (mce_adev_list.num_gpu >=MAX_GPU_INSTANCE ) { +dev_warn_ratelimited (adev->dev, +"mce_adev_list full, skip notifier registration (max=%d)\n" , +MAX_GPU_INSTANCE ); +return ; + } + mce_adev_list.devs[mce_adev_list.num_gpu++] = adev;/*
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 70/3318 gpio: sifive: add missing MODULE_DEVICE_TABLE()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 8fe6fa0f223f44b8b869319d1b9c383749aa147b ]
The driver has an OF match table wired to .of_match_table, but does not export the table with MODULE_DEVICE_TABLE().
Add the missing MODULE_DEVICE_TABLE(of, ...) entry so module alias information is generated for OF based module autoloading.
This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the platform driver, and the missing module alias publication.
--- drivers/gpio/gpio-sifive.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/gpio-sifive.c +1 -0
@@ -259,6 +259,7 @@ static const struct of_device_id sifive_gpio_match[] = { { .compatible = "sifive,fu540-c000-gpio" }, { }, }; +MODULE_DEVICE_TABLE (of, sifive_gpio_match);static struct platform_driver sifive_gpio_driver = { .probe = sifive_gpio_probe,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 79/3318 udf: avoid recursive s_alloc_mutex deadlock when freeing AED blocks
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Deepanshu Kartikey <[email protected]>
[ Upstream commit 31e5e0c8c8e2617eb9f7a20c1cf5df23f592ade2 ]
udf_table_prealloc_blocks() and udf_table_new_block() call udf_delete_aext() on the unallocated-space-table inode while holding sbi->s_alloc_mutex. When the deleted allocation descriptor empties an allocation-extent (AED) block, udf_delete_aext() returns that block to free space via udf_free_blocks(). For a table-managed partition that path is udf_free_blocks() -> udf_table_free_blocks() -> mutex_lock(&sbi->s_alloc_mutex), i.e. the task tries to acquire a mutex it already holds.
On a PREEMPT_RT kernel the rtmutex deadlock detector reports this as -EDEADLK:
rtmutex deadlock detected
WARNING: kernel/locking/rtmutex.c:1698 at rt_mutex_handle_deadlock udf_table_free_blocks fs/udf/balloc.c:376 [inline] udf_free_blocks+0xa8c/0x1900 fs/udf/balloc.c:678 udf_delete_aext+0x4f5/0xc00 fs/udf/inode.c:2381 udf_table_prealloc_blocks fs/udf/balloc.c:544 [inline] udf_prealloc_blocks+0xbd4/0x10e0 fs/udf/balloc.c:702
On a non-RT kernel the same path is a hard self-deadlock (or a lockdep recursive-locking splat). It is reachable from a crafted UDF image via the write/sendfile path.
The allocator already refuses to recurse on the add side: see the comment in udf_table_free_blocks() explaining why it must not call udf_add_aext() while holding s_alloc_mutex. Apply the same rule to the delete side. Let udf_delete_aext() report the AED block it would otherwise free through a new out-parameter, and have the two callers that hold s_alloc_mutex free it after dropping the lock. The block is already unlinked from the inode's descriptor chain by then, so nothing can reference it in the meantime. All other callers pass NULL and keep freeing the block inline, exactly as before.
The out-parameter is pre-initialised with the reserved partition number 0xFFFF, which can never name a real block, so the caller can tell whether a block was handed back.
--- fs/udf/balloc.c | 12 ++++++++++-- fs/udf/inode.c | 19 ++++++++++++++++--- fs/udf/truncate.c | 2 +- fs/udf/udfdecl.h | 3 ++- 4 files changed, 29 insertions(+), 7 deletions(-)
fs/udf/balloc.c +10 -2
@@ -519,6 +519,8 @@ static int udf_table_prealloc_blocks(struct super_block *sb,int8_t etype =-1 ;struct udf_inode_info *iinfo;int ret =0 ; +/* AED block freed by udf_delete_aext(), released after unlock */ +struct kernel_lb_addr freed = { .partitionReferenceNum =0xFFFF };if (first_block >= sbi->s_partmaps[partition].s_partition_len)return 0 ;
@@ -558,7 +560,7 @@ static int udf_table_prealloc_blocks(struct super_block *sb,udf_write_aext (table, &epos, &eloc, (etype <<30 ) | elen,1 ); }else -udf_delete_aext (table, epos); +udf_delete_aext (table, epos, &freed); }else { alloc_count =0 ; }
@@ -569,6 +571,8 @@ static int udf_table_prealloc_blocks(struct super_block *sb,if (alloc_count)udf_add_free_space (sb, partition, -alloc_count);mutex_unlock (&sbi->s_alloc_mutex); +if (freed.partitionReferenceNum !=0xFFFF ) +udf_free_blocks (sb, table, &freed,0 ,1 );return alloc_count; }
@@ -577,6 +581,8 @@ static udf_pblk_t udf_table_new_block(struct super_block *sb, uint32_t goal, int *err) { struct udf_sb_info *sbi = UDF_SB(sb); +/* AED block freed by udf_delete_aext(), released after unlock */ +struct kernel_lb_addr freed = { .partitionReferenceNum =0xFFFF };uint32_t spread =0xFFFFFFFF , nspread =0xFFFFFFFF ;udf_pblk_t newblock =0 ;uint32_t adsize;
@@ -660,12 +666,14 @@ static udf_pblk_t udf_table_new_block(struct super_block *sb,if (goal_elen)udf_write_aext (table, &goal_epos, &goal_eloc, goal_elen,1 );else -udf_delete_aext (table, goal_epos); +udf_delete_aext (table, goal_epos, &freed);brelse (goal_epos.bh);udf_add_free_space (sb, partition,-1 );mutex_unlock (&sbi->s_alloc_mutex); +if (freed.partitionReferenceNum !=0xFFFF ) +udf_free_blocks (sb, table, &freed,0 ,1 ); *err =0 ;return newblock; }
fs/udf/inode.c +16 -3
@@ -1213,7 +1213,7 @@ static int udf_update_extents(struct inode *inode, struct kernel_long_ad *laarr,if (startnum > endnum) {for (i =0 ; i < (startnum - endnum); i++) -udf_delete_aext (inode, *epos); +udf_delete_aext (inode, *epos,NULL ); }else if (startnum < endnum) {for (i =0 ; i < (endnum - startnum); i++) { err = udf_insert_aext(inode, *epos,
@@ -2340,7 +2340,8 @@ static int udf_insert_aext(struct inode *inode, struct extent_position epos,return ret; } -int8_t udf_delete_aext (struct inode *inode,struct extent_position epos) +int8_t udf_delete_aext (struct inode *inode,struct extent_position epos, +struct kernel_lb_addr *freed) {struct extent_position oepos;int adsize;
@@ -2390,7 +2391,19 @@ int8_t udf_delete_aext(struct inode *inode, struct extent_position epos) elen =0 ;if (epos.bh != oepos.bh) { -udf_free_blocks (inode->i_sb, inode, &epos.block,0 ,1 ); +/* +* The block that held the now-empty allocation extent must be +* returned to free space. When the caller already holds +* s_alloc_mutex (the space-table allocator in balloc.c), +* freeing it inline would recurse through udf_free_blocks() +* into udf_table_free_blocks() and deadlock re-acquiring +* s_alloc_mutex. In that case report the block to the caller, +* which frees it after dropping the lock. +*/ +if (freed) + *freed = epos.block; +else +udf_free_blocks (inode->i_sb, inode, &epos.block,0 ,1 );udf_write_aext (inode, &oepos, &eloc, elen,1 );udf_write_aext (inode, &oepos, &eloc, elen,1 );if (!oepos.bh) {
fs/udf/truncate.c +1 -1
@@ -159,7 +159,7 @@ void udf_discard_prealloc(struct inode *inode)if (etype == (EXT_NOT_RECORDED_ALLOCATED >>30 )) { lbcount -= elen; -udf_delete_aext (inode, prev_epos); +udf_delete_aext (inode, prev_epos,NULL );udf_free_blocks (inode->i_sb, inode, &eloc,0 ,DIV_ROUND_UP (elen, bsize)); }
fs/udf/udfdecl.h +2 -1
@@ -169,7 +169,8 @@ extern int udf_add_aext(struct inode *, struct extent_position *, struct kernel_lb_addr *, uint32_t, int);extern void udf_write_aext (struct inode *,struct extent_position *,struct kernel_lb_addr *,uint32_t ,int ); -extern int8_t udf_delete_aext (struct inode *,struct extent_position ); +extern int8_t udf_delete_aext (struct inode *,struct extent_position , +struct kernel_lb_addr *);extern int udf_next_aext (struct inode *inode,struct extent_position *epos,struct kernel_lb_addr *eloc,uint32_t *elen,int8_t *etype,int inc);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 80/3318 drm/amdgpu/atomfirmware: WARN() rather than BUG()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alex Deucher <[email protected]>
[ Upstream commit d7c595044965c826e6f3ce30590d3ec4399cd633 ]
There's no need to crash the kernel for this case. Just return an error.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +0 -2
@@ -763,8 +763,6 @@ int amdgpu_atomfirmware_get_clock_info(struct amdgpu_device *adev) (crev != 6)) { spll->reference_freq =le32_to_cpu (gfx_info->v22.rlc_gpu_timer_refclk); ret =0 ; - } else { -BUG (); } } }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 81/3318 drm/amdgpu/gfx11: WARN() rather than BUG() for invalid SDMA engine
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alex Deucher <[email protected]>
[ Upstream commit c24edbd5ae0e4f24e0179e8c9f22a867016177bb ]
There's no need to crash the kernel for these cases.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c +2 -1
@@ -139,7 +139,8 @@ static uint32_t get_sdma_rlc_reg_offset(struct amdgpu_device *adev, regSDMA1_QUEUE0_RB_CNTL) - regSDMA0_QUEUE0_RB_CNTL;break ;default : -BUG (); +WARN (1 ,"Invalid SDMA engine id %d\n" , engine_id); +break ; } sdma_rlc_reg_offset = sdma_engine_reg_base
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 82/3318 nvme: dont reference NS after unlocking in nvme_ns_head_ctrl_ioctl()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: John Garry <[email protected]>
[ Upstream commit 77c57daf98a2ad95ec9ac1371caeff8939cc1f58 ]
In nvme_ns_head_ctrl_ioctl(), once we drop the SRCU read lock we should not reference the NS to lookup the controller, so use the available controller pointer directly.
--- drivers/nvme/host/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/ioctl.c +1 -1
@@ -849,7 +849,7 @@ static int nvme_ns_head_ctrl_ioctl(struct nvme_ns *ns, unsigned int cmd,nvme_get_ctrl (ns->ctrl);srcu_read_unlock (&head->srcu, srcu_idx); - ret =nvme_ctrl_ioctl (ns->ctrl, cmd, argp, open_for_write); + ret =nvme_ctrl_ioctl (ctrl, cmd, argp, open_for_write);nvme_put_ctrl (ctrl);return ret;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 83/3318 ASoC: codecs: max98396: Unwind supplies on resume failure
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit d20de7409dfa8e3341af7f157cd42130bd4ba3a7 ]
max98396_resume() enables the core, pvdd, and vbat supplies before leaving cache-only mode, resetting the device, and replaying cached register state. The function currently ignores regcache_sync() failures, and the optional pvdd/vbat enable failures return without unwinding supplies that were already enabled in this resume attempt.
Rework the function to use common error labels. This propagates sync failures, restores cache-only/dirty state on failed cache replay, and disables each supply acquired by this resume path before returning the error.
--- sound/soc/codecs/max98396.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-)
sound/soc/codecs/max98396.c +21 -3
@@ -1603,19 +1603,37 @@ static int max98396_resume(struct device *dev)if (max98396->pvdd) { ret =regulator_enable (max98396->pvdd);if (ret <0 ) -return ret; + goto err_core_supplies; }if (max98396->vbat) { ret =regulator_enable (max98396->vbat);if (ret <0 ) -return ret; + goto err_pvdd; }regcache_cache_only (max98396->regmap, false);max98396_reset (max98396, dev); -regcache_sync (max98396->regmap); + ret =regcache_sync (max98396->regmap); +if (ret <0 ) { +regcache_cache_only (max98396->regmap, true); +regcache_mark_dirty (max98396->regmap); + goto err_vbat; + } +return 0 ; + +err_vbat: +if (max98396->vbat) +regulator_disable (max98396->vbat); +err_pvdd: +if (max98396->pvdd) +regulator_disable (max98396->pvdd); +err_core_supplies: +regulator_bulk_disable (MAX98396_NUM_CORE_SUPPLIES , + max98396->core_supplies); + + return ret; }#endif
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 84/3318 PCI/ATS: Ensure pci_ats_supported() is PF-aware for VFs
In reply to Greg Kroah-Hartman6.6-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 85/3318 rpmsg: char: Check for ongoing chrdev destroy
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chris Lew <[email protected]>
[ Upstream commit 1f9c2897afb0fe86c1fdf4f5e23c5fb8f7442f6d ]
A null pointer panic is observed when stopping a remoteproc and closing a character device using the RPMSG_DESTROY_EPT_IOCTL. There is a race where each context calls rpmsg_chrdev_eptdev_destroy(). The thread that runs second will call cdev_device_del() for a second time, which fails because the first call already removed the device from sysfs. Add a check at the beginning of destroy and exit early if the destroy call has already been done.
[ 26.654130] Call trace [ 26.656658] kernfs_find_and_get_ns+0x28/0x8 [ 26.661140] sysfs_unmerge_group+0x2c/0x7 [ 26.665357] dpm_sysfs_remove+0x38/0x8 [ 26.669305] device_del+0xa4/0x3e [ 26.672811] cdev_device_del+0x28/0x7 [ 26.676675] rpmsg_chrdev_eptdev_destroy+0x68/0x98 [ 26.682765] rpmsg_eptdev_ioctl+0x130/0x11c8 [ 26.688318] __arm64_sys_ioctl+0xb4/0x10 [ 26.692448] invoke_syscall+0x50/0x12 [ 26.696312] el0_svc_common.constprop.0+0xc8/0xf [ 26.701151] do_el0_svc+0x24/0x3 [ 26.704570] el0_svc+0x40/0x17 [ 26.707810] el0t_64_sync_handler+0x120/0x13 [ 26.712288] el0t_64_sync+0x1a0/0x1a
--- drivers/rpmsg/rpmsg_char.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/rpmsg/rpmsg_char.c +5 -0
@@ -79,6 +79,11 @@ int rpmsg_chrdev_eptdev_destroy(struct device *dev, void *data)struct rpmsg_eptdev *eptdev =dev_to_eptdev (dev);mutex_lock (&eptdev->ept_lock); +if (!eptdev->rpdev) { +mutex_unlock (&eptdev->ept_lock); +return 0 ; + } + eptdev->rpdev =NULL ;if (eptdev->ept) {/* The default endpoint is released by the rpmsg core */
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 86/3318 media: cec: tegra: add missing MODULE_DEVICE_TABLE()
In reply to Greg Kroah-Hartman6.6-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
@@ -458,6 +458,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 87/3318 media: v4l2-tpg: reduce stack usage for kasan builds
In reply to Greg Kroah-Hartman6.6-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
@@ -2346,9 +2346,11 @@ static void tpg_fill_params_extras(const struct tpg_data *tpg, (params->is_60hz ?V4L2_FIELD_TOP :V4L2_FIELD_BOTTOM ); } -static void tpg_fill_plane_extras (const struct tpg_data *tpg, -const struct tpg_draw_params *params, -unsigned p,unsigned h,u8 *vbuf) +/* noinline to work around clang KASAN issues */ +static noinline_for_stack void +tpg_fill_plane_extras (const struct tpg_data *tpg, +const struct tpg_draw_params *params, +unsigned p,unsigned h,u8 *vbuf) {unsigned twopixsize = params->twopixsize;unsigned img_width = params->img_width;
@@ -2483,9 +2485,9 @@ static void tpg_fill_plane_extras(const struct tpg_data *tpg, } } -static void tpg_fill_plane_pattern (const struct tpg_data *tpg, -const struct tpg_draw_params *params, -unsigned p,unsigned h,u8 *vbuf) +static noinline_for_stack void +tpg_fill_plane_pattern (const struct tpg_data *tpg,const struct tpg_draw_params *params, +unsigned p,unsigned h,u8 *vbuf) {unsigned twopixsize = params->twopixsize;unsigned img_width = params->img_width;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 88/3318 mmc: block: reject invalid perdev_minors before division
In reply to Greg Kroah-Hartman6.6-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
@@ -3149,6 +3149,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 71/3318 mmc: cqhci: fix to missed endian conversions
In reply to Greg Kroah-Hartman6.6-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-core.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/mmc/host/cqhci-core.c +7 -7
@@ -479,11 +479,11 @@ static void cqhci_set_tran_desc(u8 *desc, dma_addr_t addr, int len, bool end, {__le32 *attr = (__le32 __force *)desc; - *attr = (CQHCI_VALID (1 ) | -CQHCI_END (end ?1 :0 ) | -CQHCI_INT (0 ) | -CQHCI_ACT (0x4 ) | -CQHCI_DAT_LENGTH (len)); + *attr =cpu_to_le32 ((CQHCI_VALID (1 ) | +CQHCI_END (end ?1 :0 ) | +CQHCI_INT (0 ) | +CQHCI_ACT (0x4 ) | +CQHCI_DAT_LENGTH (len)));if (dma64) {__le64 *dataddr = (__le64 __force *)(desc +4 );
@@ -532,7 +532,7 @@ static int cqhci_prep_tran_desc(struct mmc_request *mrq,static void cqhci_prep_dcmd_desc (struct mmc_host *mmc,struct mmc_request *mrq) { -u64 *task_desc =NULL ; +__le64 *task_desc =NULL ;u64 data =0 ;u8 resp_type;u8 *desc;
@@ -564,7 +564,7 @@ static void cqhci_prep_dcmd_desc(struct mmc_host *mmc, CQHCI_CMD_TIMING(timing) | CQHCI_RESP_TYPE(resp_type));if (cq_host->ops->update_dcmd_desc) cq_host->ops->update_dcmd_desc (mmc, mrq, &data); - *task_desc |= data; + *task_desc |=cpu_to_le64 (data); desc = (u8 *)task_desc;pr_debug ("%s: cqhci: dcmd: cmd: %d timing: %d resp: %d\n" ,mmc_hostname (mmc), mrq->cmd->opcode, timing, resp_type);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 89/3318 tty: serial: pch_uart: add check for pci_get_slot()
In reply to Greg Kroah-Hartman6.6-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
@@ -683,6 +683,11 @@ static void pch_request_dma(struct uart_port *port)/* Get DMA's dev information */ dma_dev =pci_get_slot (priv->pdev->bus,PCI_DEVFN (PCI_SLOT (priv->pdev->devfn),0 )); +if (!dma_dev) { +dev_err (priv->port.dev,"%s: failed to get DMA device\n" , + __func__); +return ; + }/* Set Tx DMA */ param = &priv->param_tx;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 90/3318 serial: qcom_geni: Disable closing_wait for console to prevent shutdown timeout
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Aniket Randive <[email protected]>
[ Upstream commit acba38e675dd66f52925cb9edf9ed8db16335875 ]
During system power-off, systemd closes the console UART and blocks in tty_wait_until_sent() waiting for pending TX completion before uart_shutdown() can cancel pending TX operations. With the default closing_wait of 30s, this causes a watchdog reset when systemd is responsible for watchdog feeding.
Set closing_wait to ASYNC_CLOSING_WAIT_NONE in startup() for console ports to bypass tty_wait_until_sent() on close, allowing uart_shutdown() to cancel TX commands cleanly. This change doesn't impact regular ports functionality.
--- drivers/tty/serial/qcom_geni_serial.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/tty/serial/qcom_geni_serial.c +8 -0
@@ -1177,6 +1177,7 @@ static int qcom_geni_serial_startup(struct uart_port *uport) {int ret;struct qcom_geni_serial_port *port =to_dev_port (uport); +struct tty_port *tport = &uport->state->port;if (!port->setup) { ret =qcom_geni_serial_port_setup (uport);
@@ -1184,6 +1185,13 @@ static int qcom_geni_serial_startup(struct uart_port *uport)return ret; } +/* +* Skip the close-time transmit drain for console ports so that +* shutdown can proceed without waiting for pending TX completion. +*/ +if (uart_console (uport)) + tport->closing_wait =ASYNC_CLOSING_WAIT_NONE ; +uart_port_lock_irq (uport);qcom_geni_serial_start_rx (uport);uart_port_unlock_irq (uport);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 91/3318 usb: fsl_qe_udc: check qe_alloc_request() failure in ch9getstatus()
In reply to Greg Kroah-Hartman6.6-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
@@ -1944,6 +1944,7 @@ static void ch9getstatus(struct qe_udc *udc, u8 request_type, u16 value, u16 index, u16 length) {u16 usb_status =0 ; +struct usb_request *usb_req;struct qe_req *req;struct qe_ep *ep;int status =0 ;
@@ -1982,8 +1983,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 92/3318 usb: gadget: u_audio: clean up capture endpoint on feedback failure
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Xu Rao <[email protected]>
[ Upstream commit 7a0d4f60da261f61dcb50c8e05fa53cc7d4d4427 ]
u_audio_start_capture() enables the capture OUT endpoint, queues capture requests and marks the stream active before setting up the optional feedback endpoint.
If feedback endpoint configuration or enablement fails, the function returns an error while the capture endpoint remains enabled and its requests may remain queued. The current code even leaves TODO comments at these return paths.
Unwind the already started capture endpoint on these failures. Also set fb_ep_enabled only after usb_ep_enable() succeeds, so the software state matches the endpoint state.
--- drivers/usb/gadget/function/u_audio.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
drivers/usb/gadget/function/u_audio.c +9 -3
@@ -641,15 +641,15 @@ int u_audio_start_capture(struct g_audio *audio_dev) ret =config_ep_by_speed (gadget, &audio_dev->func, ep_fback);if (ret <0 ) {dev_err (dev,"config_ep_by_speed in_ep_fback failed (%d)\n" , ret); -return ret;// TODO: Clean up out_ep + goto err_out_ep; } - prm->fb_ep_enabled = true; ret =usb_ep_enable (ep_fback);if (ret <0 ) {dev_err (dev,"usb_ep_enable failed for in_ep_fback (%d)\n" , ret); -return ret;// TODO: Clean up out_ep + goto err_out_ep; } + prm->fb_ep_enabled = true; req_len = ep_fback->maxpacket; req_fback =usb_ep_alloc_request (ep_fback,GFP_ATOMIC );
@@ -680,6 +680,12 @@ int u_audio_start_capture(struct g_audio *audio_dev)dev_err (dev,"%s:%d Error!\n" , __func__, __LINE__);return 0 ; + +err_out_ep: +set_active (prm, false); +free_ep (prm, ep); + +return ret; }EXPORT_SYMBOL_GPL (u_audio_start_capture);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 93/3318 usb_string_copy: Use kzalloc() to avoid leaking old data
In reply to Greg Kroah-Hartman6.6-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
@@ -125,11 +125,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 94/3318 USB: gadget: inode: fix mm lifetime handling
In reply to Greg Kroah-Hartman6.6-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);
@@ -496,6 +502,7 @@ static void ep_aio_complete(struct usb_ep *ep, struct usb_request *req)* complete the aio request immediately. */ if (priv->to_free ==NULL ||unlikely (req->actual ==0 )) { +mmdrop (priv->mm);kfree (req->buf);kfree (priv->to_free);kfree (priv);
@@ -536,6 +543,7 @@ static ssize_t ep_aio(struct kiocb *iocb, priv->epdata = epdata; priv->actual =0 ; priv->mm = current->mm;/* mm teardown waits for iocbs in exit_aio() */ +mmgrab (priv->mm);/* each kiocb is coupled to one usb_request, but we can't * allocate or submit those if the host disconnected.
@@ -565,6 +573,7 @@ static ssize_t ep_aio(struct kiocb *iocb, fail:spin_unlock_irq (&epdata->dev->lock); +mmdrop (priv->mm);kfree (priv->to_free);kfree (priv);put_ep (epdata);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 95/3318 pinctrl: sx150x: add missing MODULE_DEVICE_TABLE()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 5fe4b12c087db3e565f53b87f1dafdf2f0d1ee0f ]
The driver has a match table for the i2c bus wired into its driver structure, but the table is not exported with MODULE_DEVICE_TABLE().
Add the missing MODULE_DEVICE_TABLE() entry so module alias information is generated for automatic module loading.
This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the driver registration structure, and the missing module alias publication.
--- drivers/pinctrl/pinctrl-sx150x.c | 1 + 1 file changed, 1 insertion(+)
drivers/pinctrl/pinctrl-sx150x.c +1 -0
@@ -849,6 +849,7 @@ static const struct i2c_device_id sx150x_id[] = { {"sx1509q", (kernel_ulong_t) &sx1509q_device_data }, {} }; +MODULE_DEVICE_TABLE (i2c, sx150x_id);static const struct of_device_id sx150x_of_match[] = { { .compatible = "semtech,sx1501q", .data = &sx1501q_device_data },
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 96/3318 crypto: keembay - add missing MODULE_DEVICE_TABLE()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit b73b71df4cb4ca241165ad31218c82dfe489147c ]
The driver has an OF match table wired to .of_match_table, but does not export the table with MODULE_DEVICE_TABLE().
Add the missing MODULE_DEVICE_TABLE(of, ...) entry so module alias information is generated for OF based module autoloading.
This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the platform driver, and the missing module alias publication.
--- drivers/crypto/intel/keembay/keembay-ocs-ecc.c | 1 + 1 file changed, 1 insertion(+)
drivers/crypto/intel/keembay/keembay-ocs-ecc.c +1 -0
@@ -989,6 +989,7 @@ static const struct of_device_id kmb_ocs_ecc_of_match[] = { }, {} }; +MODULE_DEVICE_TABLE (of, kmb_ocs_ecc_of_match);/* The OCS driver is a platform device. */ static struct platform_driver kmb_ocs_ecc_driver = {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 97/3318 pmdomain: qcom: rpmhpd: Skip retention by default
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mike Tipton <[email protected]>
[ Upstream commit 7178817f190496f2bfdec181fb4aa72832448468 ]
Retention is very rarely an operational corner. In the majority of cases, HW cannot operate properly at Retention levels and so the minimum operational level when enabling a rail is the first corner above Retention. A small subset of always-on use cases can operate at Retention, but those aren't controlled from HLOS.
Currently, we allow Retention by default and only disallow it special cases. But this leaves us open to various failures when the PD is enabled without first being voted to an OPP above Retention. Such as when a child GDSC PD requests to enable its parent RPMh PD. In this case, the GDSC would get stuck powering on.
Newer chips have started supporting Retention on rails that didn't previously (such as for MMCX). Instead of adding more special cases to skip Retention on MMCX, start skipping Retention by default since it's almost never desired from an HLOS perspective.
--- drivers/pmdomain/qcom/rpmhpd.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
drivers/pmdomain/qcom/rpmhpd.c +9 -5
@@ -40,7 +40,6 @@* @addr: Resource address as looped up using resource name from * cmd-db * @state_synced: Indicator that sync_state has been invoked for the rpmhpd resource -* @skip_retention_level: Indicate that retention level should not be used for the power domain */ struct rpmhpd {struct device *dev;
@@ -57,7 +56,6 @@ struct rpmhpd {const char *res_name;u32 addr;bool state_synced; -bool skip_retention_level; };struct rpmhpd_desc {
@@ -175,7 +173,6 @@ static struct rpmhpd mxc = { .pd = { .name = "mxc", }, .peer = &mxc_ao, .res_name = "mxc.lvl", - .skip_retention_level = true, };static struct rpmhpd mxc_ao = {
@@ -183,7 +180,6 @@ static struct rpmhpd mxc_ao = { .active_only = true, .peer = &mxc, .res_name = "mxc.lvl", - .skip_retention_level = true, };static struct rpmhpd nsp = {
@@ -757,7 +753,15 @@ static int rpmhpd_update_level_mapping(struct rpmhpd *rpmhpd)return -EINVAL ;for (i =0 ; i < rpmhpd->level_count; i++) { -if (rpmhpd->skip_retention_level && buf[i] ==RPMH_REGULATOR_LEVEL_RETENTION ) +/* +* Most HW won't function properly at Retention. The minimum +* operational level is the first level above Retention. The +* small subset of HW that can operate at Retention isn't +* controlled by HLOS. Skip the Retention level to avoid HW +* failures when the PD is enabled without first having an +* explicit OPP level set. +*/ +if (buf[i] ==RPMH_REGULATOR_LEVEL_RETENTION )continue ; rpmhpd->level[i] = buf[i];
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 98/3318 media: em28xx: dev_info->pr_info since dev has been freed
In reply to Greg Kroah-Hartman6.6-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
@@ -3504,7 +3504,7 @@ void em28xx_free_device(struct kref *ref) {struct em28xx *dev =kref_to_dev (ref); -dev_info (&dev->intf->dev,"Freeing device\n" ); +pr_info ("%s: Freeing device\n" , dev->name);if (!dev->disconnected)em28xx_release_resources (dev);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 72/3318 mmc: dw_mmc: stop and complete DMA also in STATE_DATA_BUSY state
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Marek Szyprowski <[email protected]>
[ Upstream commit cb3fcb8d118b874178251d1f02613f60d25e4ddc ]
When transfer was stopped in STATE_DATA_BUSY state, there was no call to dma_ops->cleanup function, so the DMA mapped buffer was never properly unmapped. Fix this by calling dw_mci_stop_dma() function also in that state to ensure proper cleanup call when DMA transfer was used.
--- drivers/mmc/host/dw_mmc.c | 1 + 1 file changed, 1 insertion(+)
drivers/mmc/host/dw_mmc.c +1 -0
@@ -2209,6 +2209,7 @@ static void dw_mci_tasklet_func(struct tasklet_struct *t) }dw_mci_stop_fault_timer (host); +dw_mci_stop_dma (host); host->data =NULL ;set_bit (EVENT_DATA_COMPLETE , &host->completed_events); err =dw_mci_data_complete (host, data);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 99/3318 media: em28xx: requeue buffers if start_streaming fails
In reply to Greg Kroah-Hartman6.6-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
@@ -1070,6 +1070,9 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count) {struct em28xx *dev =vb2_get_drv_priv (vq);struct em28xx_v4l2 *v4l2 = dev->v4l2; +struct em28xx_dmaqueue *dmaq = vq->type ==V4L2_BUF_TYPE_VBI_CAPTURE ? + &dev->vbiq : &dev->vidq; +unsigned long flags =0 ;struct v4l2_frequency f;struct v4l2_fh *owner;int rc =0 ;
@@ -1084,7 +1087,7 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count)*/ rc =res_get (dev, vq->type);if (rc) -return rc; + goto exit;if (v4l2->streaming_users ==0 ) {/* First active streaming user, so allocate all the URBs */
@@ -1107,7 +1110,7 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count) em28xx_urb_data_copy);if (rc <0 ) {res_free (dev, vq->type); -return rc; + goto exit; }/*
@@ -1132,7 +1135,18 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count) } v4l2->streaming_users++; +return 0 ; +exit: +spin_lock_irqsave (&dev->slock, flags); +while (!list_empty (&dmaq->active)) { +struct em28xx_buffer *buf; + + buf = list_entry(dmaq->active.next, struct em28xx_buffer, list); +list_del (&buf->list); +vb2_buffer_done (&buf->vb.vb2_buf,VB2_BUF_STATE_QUEUED ); + } +spin_unlock_irqrestore (&dev->slock, flags);return rc; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 100/3318 media: em28xx: use vb2_video_unregister_device
In reply to Greg Kroah-Hartman6.6-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
@@ -2243,17 +2243,17 @@ static int em28xx_v4l2_fini(struct em28xx *dev)if (video_is_registered (&v4l2->radio_dev)) {dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->radio_dev)); -video_unregister_device (&v4l2->radio_dev); +vb2_video_unregister_device (&v4l2->radio_dev); }if (video_is_registered (&v4l2->vbi_dev)) {dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->vbi_dev)); -video_unregister_device (&v4l2->vbi_dev); +vb2_video_unregister_device (&v4l2->vbi_dev); }if (video_is_registered (&v4l2->vdev)) {dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->vdev)); -video_unregister_device (&v4l2->vdev); +vb2_video_unregister_device (&v4l2->vdev); }v4l2_ctrl_handler_free (&v4l2->ctrl_handler);
@@ -2901,19 +2901,19 @@ static int em28xx_v4l2_init(struct em28xx *dev)dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->radio_dev)); -video_unregister_device (&v4l2->radio_dev); +vb2_video_unregister_device (&v4l2->radio_dev); }if (video_is_registered (&v4l2->vbi_dev)) {dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->vbi_dev)); -video_unregister_device (&v4l2->vbi_dev); +vb2_video_unregister_device (&v4l2->vbi_dev); }if (video_is_registered (&v4l2->vdev)) {dev_info (&dev->intf->dev,"V4L2 device %s deregistered\n" ,video_device_node_name (&v4l2->vdev)); -video_unregister_device (&v4l2->vdev); +vb2_video_unregister_device (&v4l2->vdev); }v4l2_ctrl_handler_free (&v4l2->ctrl_handler);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 101/3318 soundwire: dmi-quirks: add a global ghost list
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bard Liao <[email protected]>
[ Upstream commit b7a5d101d7d267922e828c40135bcaccf8cfb3bf ]
Not like other ghost devices, the 0x000000D010010500 ADR doesn't belong to any codec. We should disable it in all devices.
--- drivers/soundwire/dmi-quirks.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-)
drivers/soundwire/dmi-quirks.c +20 -1
@@ -15,6 +15,14 @@ struct adr_remap {u64 remapped_adr; }; +static const struct adr_remap global_ghost_adr[] = { + { +0x000000D010010500ull , +0x0000000000000000ull + }, + {} +}; +/* * Some TigerLake devices based on an initial Intel BIOS do not expose * the correct _ADR in the DSDT.
@@ -212,6 +220,7 @@ static const struct dmi_system_id adr_remap_quirk_table[] = {u64 sdw_dmi_override_adr (struct sdw_bus *bus,u64 addr) {const struct dmi_system_id *dmi_id; +int i;/* check if any address remap quirk applies */ dmi_id =dmi_first_match (adr_remap_quirk_table);
@@ -223,10 +232,20 @@ u64 sdw_dmi_override_adr(struct sdw_bus *bus, u64 addr)dev_dbg (bus->dev,"remapped _ADR 0x%llx as 0x%llx\n" , addr, map->remapped_adr); addr = map->remapped_adr; -break ; + goto out; } } } +/* remap the ghost ADRs */ +for (i =0 ; i <ARRAY_SIZE (global_ghost_adr); i++) { +if (global_ghost_adr[i].adr == addr) { +dev_dbg (bus->dev,"remapped _ADR 0x%llx as 0x%llx\n" , + addr, global_ghost_adr[i].remapped_adr); + addr = global_ghost_adr[i].remapped_adr; +break ; + } + } +out:return addr; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 102/3318 nvme: bound ns descriptor header and body to identify buffer
In reply to Greg Kroah-Hartman6.6-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
@@ -1400,8 +1400,12 @@ static int nvme_identify_ns_descs(struct nvme_ctrl *ctrl,for (pos =0 ; pos <NVME_IDENTIFY_DATA_SIZE ; pos += len) {struct nvme_ns_id_desc *cur = data + pos; +if (pos +sizeof (*cur) >NVME_IDENTIFY_DATA_SIZE ) +break ;if (cur->nidl ==0 )break ; +if (pos +sizeof (*cur) + cur->nidl >NVME_IDENTIFY_DATA_SIZE ) +break ; len =nvme_process_ns_desc (ctrl, &info->ids, cur, &csi_seen);if (len <0 )
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 103/3318 iwlwifi: dvm: add missing cleaup for on error path
In reply to Greg Kroah-Hartman6.6-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
@@ -602,8 +602,10 @@ int iwlagn_tx_agg_start(struct iwl_priv *priv, struct ieee80211_vif *vif, } ret =iwl_sta_tx_modify_enable_tid (priv, sta_id, tid); -if (ret) +if (ret) { +iwlagn_dealloc_agg_txq (priv, txq_id);return ret; + }spin_lock_bh (&priv->sta_lock); tid_data = &priv->tid_data[sta_id][tid];
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 104/3318 media: i2c: ov8865: Drop the runtime PM usage count on stream failure
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jurison Murati <[email protected]>
[ Upstream commit 3fe797a12bfa9a49aa998ee722e5f25c957b9b15 ]
ov8865_s_stream() takes a runtime PM reference when enabling the stream, but returns without releasing it if ov8865_sw_standby() fails, leaving the reference unbalanced and the sensor powered indefinitely. The same applies to a failure while disabling the stream, in which case the reference acquired at stream start is never dropped.
Drop the reference in a single place, both when disabling the stream and on failure, and only update the streaming state on success.
--- drivers/media/i2c/ov8865.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
drivers/media/i2c/ov8865.c +5 -7
@@ -2629,15 +2629,13 @@ static int ov8865_s_stream(struct v4l2_subdev *subdev, int enable) ret =ov8865_sw_standby (sensor, !enable);mutex_unlock (&sensor->mutex); -if (ret) -return ret; - - state->streaming = !!enable; - -if (!enable) +if (ret || !enable)pm_runtime_put (sensor->dev); -return 0 ; +if (!ret) + state->streaming = enable; + +return ret; } static int ov8865_g_frame_interval(struct v4l2_subdev *subdev,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 105/3318 drm/etnaviv: check all modules for idle after reset
In reply to Greg Kroah-Hartman6.6-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
@@ -545,9 +545,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