6.18.65-rc1 review
Greg Kroah-Hartman
maintainercover 6.18.65-rc1 review
This is the start of the stable review cycle for the 6.18.65 release. There are 2151 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:45 +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.18.65-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.18.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <[email protected]>
Linux 6.18.65-rc1
Giuseppe Piscitelli <[email protected]>
scsi: core: Balance the pseudo target reap reference
Dave Jiang <[email protected]>
ACPI: extlog: Fix CONFIG_ACPI_APEI_PCIEAER guard typo
Dave Jiang <[email protected]>
ACPI: extlog: Validate PCIe error section length before payload access
Dave Jiang <[email protected]>
ACPI: extlog: Avoid populating software AER metadata from raw hardware buffer
Hemanth Selam <[email protected]>
selftests/cgroup: set the test plan after the setup checks
Hugo Villeneuve <[email protected]>
serial: 8250_hub6: add missing include for hub6_match_port()
Jakub Sitnicki <[email protected]>
net: lwtunnel: Drop skb metadata before LWT encapsulation
Ewan D. Milne <[email protected]>
scsi: scsi_debug: Add missing newline in scsi_debug_device_reset()
Qu Wenruo <[email protected]>
btrfs: do not reject a valid running dev-replace
Leon Romanovsky <[email protected]>
PCI/P2PDMA: Add missing struct p2pdma_provider documentation
Szymon Wilczek <[email protected]>
fs/ntfs3: fix deadlock in ni_read_folio_cmpr
Arnaldo Carvalho de Melo <[email protected]>
perf auxtrace: Include sys/types.h for pid_t
Anubhav Shelat <[email protected]>
perf pmu: fix duplicate conditional statement
Bala-Vignesh-Reddy <[email protected]>
selftests/x86: Add selftests include path for kselftest.h after centralization
Brian Norris <[email protected]>
PM: runtime: Only queue an idle check for RPM-linked suppliers (part 2)
Jérémy Jean <[email protected]>
nvmet-auth: reject incomplete DHCHAP messages
Christoph Hellwig <[email protected]>
zloop: fix block size query
Shakeel Butt <[email protected]>
kernfs: avoid READ_ONCE() on a kgid_t in kernfs_new_node()
Damien Le Moal <[email protected]>
scsi: core: Fix additional sense code definition
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()
Mathieu Desnoyers <[email protected]>
mm: fix OOM killer inaccuracy on large many-core systems
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
Nguyen Ngoc Thang <[email protected]>
minix: reject rmdir of a directory with a corrupted link count
Jori Koolstra <[email protected]>
Fix a drop_nlink warning in minix_rmdir
Jori Koolstra <[email protected]>
Add error handling to minix filesystem for inode corruption detection
Nickolai Zeldovich <[email protected]>
fs_pin: do not trust the pin after a spurious wakeup in pin_kill()
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
John Johansen <[email protected]>
apparmor: advertise that sctp is being mediated
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: initialize mapped children before route lookup
John Johansen <[email protected]>
apparmor: fix check SCTP bind, and connect permission checks
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
Jakub Kicinski <[email protected]>
eth: bnxt: free XDP frags when xdp_do_redirect() fails
Jakub Kicinski <[email protected]>
eth: bnxt: don't leak buffers when XDP agg buffer allocation fails
Jakub Kicinski <[email protected]>
eth: bnxt: resize Rx head buffers when rx-copybreak changes
Jakub Kicinski <[email protected]>
eth: bnxt: recycle agg buffers when Rx head buffer allocation fails
Chris J Arges <[email protected]>
bnxt_en: use bnxt_xdp_buff for xdp context
Naman Gulati <[email protected]>
netdev-genl: ignore NETDEV_UNREGISTER rebroadcasts
Jérémy Jean <[email protected]>
apparmor: check connect permission for SCTP
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()
Maxime Bélair <[email protected]>
apparmor: fix table_size() integer overflow on 32 bit
Christoph Hellwig <[email protected]>
zloop: check that the zone backing file support ->{read,write}_iterChristoph Hellwig <[email protected]>
zloop: fput file after failed zone init
Christoph Hellwig <[email protected]>
zloop: share more code for opening a zone backing file
Christoph Hellwig <[email protected]>
zloop: remove a duplicate call to zloop_get_block_size
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
Kunhai Dai <[email protected]>
blk-iocost: publish hweights as one atomic value
Bart Van Assche <[email protected]>
block/blk-iocost: Inline iocg_lock() and iocg_unlock()
Bart Van Assche <[email protected]>
block/blk-iocost: Split ioc_rqos_throttle()
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]>
blk-mq: free the bitmaps of tags in the SRCU callback
Josef Bacik <[email protected]>
block: partitions/mac: compute the sectors in 64 bits
Josef Bacik <[email protected]>
blk-mq: set up a queue under tag_list_lock
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
Josef Bacik <[email protected]>
blk-mq: keep sharing tags fairly after a queue update
Josef Bacik <[email protected]>
blk-mq: don't trust the cookie in blk_mq_poll()
Fengnan Chang <[email protected]>
blk-mq: use array manage hctx map instead of xarray
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()
Amir Goldstein <[email protected]>
selftests/ovl: fix detached layer mountinfo expectations
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
Nicolai Buchwitz <[email protected]>
octeontx2-pf: pass the skb to otx2_dma_unmap_skb_frags()
Nicolai Buchwitz <[email protected]>
octeontx2-pf: fix skb use-after-free on ipsec transmit drop
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
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
Cosmin Ratiu <[email protected]>
net/mlx5: Only set num_doorbells on a fully initialized SF
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
Karol Kolacinski <[email protected]>
ice: E822: keep Tx timestamps disabled during offset calibration
Jacob Keller <[email protected]>
ice: set in_use only after preparing Tx timestamp index
Dharmender Garg <[email protected]>
bnge: fix RSS table sizing for large RX ring counts
Dharmender Garg <[email protected]>
bnge: cap RSS contexts and RX rings to the RSS table size
Eric Dumazet <[email protected]>
ppp: linearize and segment bridged packets when required
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
Josef Bacik <[email protected]>
blk-throttle: make blkio.reset_stats reset I/O counts
Josef Bacik <[email protected]>
blk-throttle: pass the I/O counts of a dead group on
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: fix NULL dereference in debugfs host_traddr
Josef Bacik <[email protected]>
nvmet-tcp: stop listening when a port is removed
Josef Bacik <[email protected]>
nvmet: fix NULL dereference of PCI endpoint targets
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
Naveen Kumar Chaudhary <[email protected]>
kdb: fix memory leak in kdb_setenv() when environment is full
Rongzheng Wang <[email protected]>
nvmet: use the enabled transport when disabling a port
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
Sicong Huang <[email protected]>
nfp: flower: fix use-after-free in neighbour update work
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 88E6171 statistics type
Florian Fainelli <[email protected]>
net: dsa: mv88e6xxx: fix 6351 family statistics snapshot
Daniel Machon <[email protected]>
net: lan966x: don't disable hardirqs in fdma tx clear path
Zhewei Yuan <[email protected]>
tcp: Fix fastreuse cache initialization on first bind
Fernando Fernandez Mancera <[email protected]>
devlink: region: fix snapshot id leak on kernel-allocated ids
Daniel Machon <[email protected]>
net: microchip: fdma: fix DCB corruption under sustained load
Daniel Machon <[email protected]>
net: microchip: fdma: use little-endian types for descriptor fields
Daniel Machon <[email protected]>
net: lan966x: release the in-flight slot of a stale TX skb
Daniel Machon <[email protected]>
net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit
Harkirat Gill <[email protected]>
drm/amdgpu: re-enable GFXOFF for compute on GFX12
Florian Fainelli <[email protected]>
perf parse-events: Include errno.h before kernel headers
Florian Fainelli <[email protected]>
perf print_insn: Include sys/types.h for ssize_t
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
Zhenxian Ma <[email protected]>
block: fix recursive i_rwsem locking in blkdev_write_iter()
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
Qingfang Deng <[email protected]>
pppoe: wait for RCU readers before reusing a socket
Hannes Laimer <[email protected]>
vxlan: keep reserved_bits across changelink
Allison Henderson <[email protected]>
net/rds: do not initialize transports after rds_init() failed
Allison Henderson <[email protected]>
net/rds: do not fail init when CONFIG_SYSCTL=n
Tao Gong <[email protected]>
net: dsa: mt7530: trap frames to conduit in MFC on EN7581 and AN7583
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
Gabriel Fernandez <[email protected]>
clk: stm32: fix clock array size for STM32MP21
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
Prashant Sengar <[email protected]>
net: usb: lan78xx: avoid NULL PHY dereference in WoL setup
Dudu Lu <[email protected]>
net/sched: gred: keep the qdisc lock while updating the table
Zhang Yi <[email protected]>
ASoC: codecs: es*: Modify the maximum value of DMIC_GAIN
Zhang Yi <[email protected]>
ASoC: codecs: es*: Modify the registers related to ALC RECOVERY
Ravi Hothi <[email protected]>
ASoC: codecs: wsa883x: Fix VI sense port channel count
Ravi Hothi <[email protected]>
ASoC: codecs: wsa884x: Fix VI sense port channel count
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
Sasha Levin <[email protected]>
selftests/thermal: allow cross builds of the Intel tests
Aleksei Oladko <[email protected]>
selftests: fix ARCH normalization to handle command-line argument
Jérémie Rodon <[email protected]>
spi: cs42l43: Add speaker ID quirk for Dell XPS 13 DX13260 SKU 0E54
TJ Adams <[email protected]>
block: advance iterator after copy-in for SG_DXFER_TO_FROM_DEV
Waiman Long <[email protected]>
cgroup/cpuset: Make sure compute_partition_effective_cpumask() is only called for valid partition
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()
Tal Zussman <[email protected]>
ceph: don't clear write_congested when collecting folios
Tal Zussman <[email protected]>
ceph: fix writeback_count leak when a bounce page allocation fails
Tal Zussman <[email protected]>
ceph: wait for pending fscache write in write_folio_nounlock()
Tal Zussman <[email protected]>
ceph: fix error handling when the OSD client is stopping in ceph_submit_write()
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
Thomas Weißschuh <[email protected]>
vdso/gettimeofday: Correct the read of tz_minuteswest and tz_dsttime
Cen Zhang <[email protected]>
ALSA: ump: Drain sequencer callbacks before freeing their client
Dimitris Charisis <[email protected]>
maple_tree: fix maple_range_64 crashes in RCU mode
Liam R. Howlett (Google) <[email protected]>
tools/testing/shared: catch a failed posix_memalign()
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 stack depot out-of-bounds diagnostic
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
Aditya Sharma <[email protected]>
bpf: Remove nmi_uaccess_okay() check in bpf_send_signal_common()
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
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
Gal Pressman <[email protected]>
net/mlx5e: IPsec, Fix out-of-bounds comparison of neighbour keys
Cosmin Ratiu <[email protected]>
net/mlx5e: SHAMPO: Do not merge PSP packets
Eric Dumazet <[email protected]>
net: fix frag_list leak in skb_segment_list() error path
Daniel Machon <[email protected]>
net: sparx5: fix tx DCB index drift in fdma xmit
Daniel Machon <[email protected]>
net: sparx5/lan969x: do not read past skb->len when injecting a frame
Piotr Kubik <[email protected]>
net: pse-pd: si3474: validate the channels of a PI
Piotr Kubik <[email protected]>
net: pse-pd: si3474: keep detection enabled on the other PIs
Dimitri Daskalakis <[email protected]>
eth: fbnic: Correct packet header prefetch
James Clark <[email protected]>
net: ethernet: ti: am65-cpts: fix support for PTP_EXTTS_REQUEST2 ioctl
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
Kaifeng Wang <[email protected]>
tcp: reject devmem tx with fastopen and repair
Xingyuan Mo <[email protected]>
sctp: reject forged cookie peer_addr with unknown address family
Jiale Yao <[email protected]>
regulator: irq: freeze deferred hardware access during suspend
Marco Crivellari <[email protected]>
regulator: irq_helper: replace use of system_wq with system_dfl_wq
Steven Rostedt <[email protected]>
cpuidle: haltpoll: Only define guest_halt_poll_ns tracepoint when used
bui duc phuc <[email protected]>
ASoC: amd: raven: Fix memory leak in acp3x_dma_close()
Lee Jia Jie <[email protected]>
perf: Fix UAF in attach_task_ctx_data()
Michail Andreas Michalopoulos <[email protected]>
ksmbd: select CRYPTO_AES
Ivan Hu <[email protected]>
ACPICA: Initialize parser_state.aml_end in acpi_install_method()
Daniel Lezcano <[email protected]>
ACPI: platform_profile: Separate handler locking from sysfs lifetime
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()
Karl Mehltretter <[email protected]>
netfs: Restore selective debug mask handling
Nickolai Zeldovich <[email protected]>
nsfs: check the trailing bytes of a file handle in bytes, not words
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
Baek Kyu, Kim <[email protected]>
gpiolib: Propagate emulated drive errors when setting arrays
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
Cosmin Ratiu <[email protected]>
net/mlx5e: Stop asserting for RTNL when closing channels
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: lan969x: don't disable hardirqs in fdma tx clear
Daniel Machon <[email protected]>
net: sparx5/lan969x: do not clobber the PSFP cycle timer update period
Daniel Machon <[email protected]>
net: lan969x: fix DSM calendar for empty taxis
Willem de Bruijn <[email protected]>
virtio-net: fix frag overflow in big packets receive
Jijie Shao <[email protected]>
net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference
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
Sivansh Gupta <[email protected]>
mailbox: qcom-cpucp: read mbox hardware register using readq()
Deepti Jaggi <[email protected]>
mailbox: qcom-cpucp: Add support for Nord CPUCP mailbox controller
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
James Clark <[email protected]>
perf cs-etm: Don't add global v0 HW_IDs to unformatted queues
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
Marek Szyprowski <[email protected]>
ASoC: samsung: midas_wm1811: run FLL1 at the AIF1 configured rate when idle
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
Alexandre Cassen <[email protected]>
net/mlx5: HWS, fix modify header pool match for copy actions
Alexandre Cassen <[email protected]>
net/mlx5: HWS, fix modify header pattern compare on big-endian
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
Shradha Gupta <[email protected]>
Drivers: hv: Run VMBus kexec cleanup from syscore shutdown
Shradha Gupta <[email protected]>
kexec: Add helper to report an active kexec reboot
Jork Loeser <[email protected]>
x86/hyperv: move stimer cleanup to hv_machine_shutdown()
Jiale Yao <[email protected]>
Drivers: hv: vmbus: Check ACPI companion before use
Sasha Levin <[email protected]>
selftests/proc: proc-pid-vm: fix unused variable warning on non-x86
Bala-Vignesh-Reddy <[email protected]>
selftests: complete kselftest include centralization
Cen Zhang <[email protected]>
ocfs2: initialize status waiters before publishing them
Joseph Qi <[email protected]>
ocfs2: reserve xattr value tree metadata only once
Dmitry Antipov <[email protected]>
tcp_bpf: propagate error code in tcp_bpf_sendmsg()
Carolina Jubran <[email protected]>
net: skbuff: don't copy alloc_cpu in skb header copies
Carlo Szelinsky <[email protected]>
net: pse-pd: si3474: fix use-after-free in ancillary client error path
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
Namjae Jeon <[email protected]>
ksmbd: fix fd_limit accounting across durable reconnects
DaeMyung Kang <[email protected]>
ksmbd: round SetAllocation to the advertised allocation unit
Namjae Jeon <[email protected]>
ksmbd: stabilize allocation size after buffered writes
Namjae Jeon <[email protected]>
ksmbd: return requested create allocation size
Namjae Jeon <[email protected]>
ksmbd: preserve open change time across rename
ChenXiaoSong <[email protected]>
smb/server: fix trailing period in generated short names
Henry Hu <[email protected]>
ksmbd: report IPv4 and IPv6 addresses independently in iface query
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()
Henry Hu <[email protected]>
ksmbd: fix iface_list use-after-free during server reset
Namjae Jeon <[email protected]>
ksmbd: fix listener task lifetime on netdev events
Qingfang Deng <[email protected]>
ksmbd: server: avoid busy polling in accept loop
Mingming Cao <[email protected]>
ibmveth: check headers in the RX large send and checksum helpers
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: release the pool kobjects when probe fails
Mingming Cao <[email protected]>
ibmveth: step past bad RX correlators instead of spinning or oopsing
Mingming Cao <[email protected]>
ibmveth: disable the reset work before unregister in remove
Mingming Cao <[email protected]>
ibmveth: do not close twice after a failed reopen
Mingming Cao <[email protected]>
ibmveth: fix netpoll races with RX replenish
Ovidiu Panait <[email protected]>
net: stmmac: Track the TX DMA threshold per queue
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
Dimitri Daskalakis <[email protected]>
net/mlx5e: Update netdev features only after a successful ringparam set
Rosen Penev <[email protected]>
net: phy: marvell: keep WOL_EIE across interrupt reconfiguration
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: fix network filter lookup and wake filter pair allocation
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
Florian Fainelli <[email protected]>
net: bcmasp: fix mib counters struct alignment with ethtool stats
Myeonghun Pak <[email protected]>
net: hix5hd2: serialize timeout recovery with interface teardown
Karl Mehltretter <[email protected]>
net: phy: realtek: restore RTL8211F RGMII delays on resume
Anirudh Virdi <[email protected]>
net: qede: initialize extack in qede_flow_spec_to_rule()
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
Alexandre Cassen <[email protected]>
net/mlx5: HWS, fix modify header pool creation race
Alexandre Cassen <[email protected]>
net/mlx5: HWS, fix reformat pool creation race
Sunny Tiwari <[email protected]>
RDMA/irdma: Bound in-flight CQP ops across deferred completions
Yongzhao Chen <[email protected]>
net: phy: qca83xx: read resolved QCA8337 link status
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
Fan Wu <[email protected]>
ipe: fix enforcement audit
Manuel Ebner <[email protected]>
ipe: fix invalid sgid value in audit event documentation
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
Cen Zhang <[email protected]>
ALSA: aloop: Keep shared timer callbacks alive through close
Takashi Iwai <[email protected]>
ALSA: aloop: Use the new helper for stop-count refcount
Marek Vasut <[email protected]>
PCI: rcar-gen4: Add missing PM ops
Jinpyo Lee <[email protected]>
nfs/localio: pin UUIDs during global invalidation
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: jack: Pin the module while debugfs files are open
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
Len Brown <[email protected]>
tools/power turbostat: pmt: Improve sscanf() hygiene
Sung Byeongchan <[email protected]>
netfilter: xt_dccp: handle reserved options as single-byte
Pablo Neira Ayuso <[email protected]>
netfilter: nft_set_rbtree: narrow down range completion to anonymous sets
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
Adrian Ambrozewicz <[email protected]>
gpiolib: clear the event clock flags when a line is released
Kent Gibson <[email protected]>
gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path
Qiliang Yuan <[email protected]>
selftests/bpf: Run the cpumask map insert tests only for the test task
KaFai Wan <[email protected]>
selftests/bpf: Use _exit() in uprobe_multi_test clone-ed child
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
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: Follow the head if an skb is written from a slice
Jakub Sitnicki <[email protected]>
bpf: Unclone skb head on bpf_dynptr_write to skb metadata
Josef Bacik <[email protected]>
bpf, cpumap: Hold the device of frames in the queue
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
Josef Bacik <[email protected]>
bpf: Keep the symbols of a program until it has ended
Alexei Starovoitov <[email protected]>
bpf: Don't let an extension reach further into the context than its target
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]>
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
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
Josef Bacik <[email protected]>
bpf: Look at all 64 bits of a BPF_JSET mask on 32-bit
Josef Bacik <[email protected]>
bpf: Reject sleepable programs for task_vma iterator
Josef Bacik <[email protected]>
bpf: Use the frame mem type in devmap egress XDP
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
Arnaldo Carvalho de Melo <[email protected]>
perf evsel: Mark the event as supported when retrying an open
Cen Zhang <[email protected]>
ALSA: jack: Protect the index scan against control removal
Daniel Borkmann <[email protected]>
bpf: Don't echo user-supplied map info fields back to userspace
Brad Fitzpatrick <[email protected]>
gre: keep the UDP tunnel GSO type when completing GRO
Vincent Jardin <[email protected]>
ptp: qoriq: fix support for PTP_EXTTS_REQUEST2 ioctl
Vincent Jardin <[email protected]>
net: enetc: fix support for PTP_EXTTS_REQUEST2 ioctl
Vincent Jardin <[email protected]>
dpaa2-ptp: fix support for PTP_EXTTS_REQUEST2 ioctl
Ivan Vecera <[email protected]>
dpll: zl3073x: reject output frequencies with too small divisor
Ivan Vecera <[email protected]>
dpll: zl3073x: reject inexact frequencies for N-divided outputs
Ivan Vecera <[email protected]>
dpll: zl3073x: clean up esync get/set and use zl3073x_out_is_ndiv()
Ivan Vecera <[email protected]>
dpll: zl3073x: do not offer 0 Hz as a supported pin frequency
Ivan Vecera <[email protected]>
dpll: zl3073x: Include current frequency in supported frequencies list
Ivan Vecera <[email protected]>
dpll: zl3073x: Add output pin frequency helper
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
Yuan Chen <[email protected]>
bpf: Claim the per-CPU send_signal irq_work before filling it
Sasha Levin <[email protected]>
ARC: Strip libgcc debug information when generating BTF
Tal Zussman <[email protected]>
btrfs: update the inode item when removing a free space inode
Tal Zussman <[email protected]>
btrfs: drop the extent maps of the written part of a failed ordered extent
Piotr Gliźniewicz <[email protected]>
ALSA: 6fire: take stream_mutex in the Digital Thru control
Myeonghun Pak <[email protected]>
platform: cznic: turris-omnia-mcu: stop button emulation producers
Ömer Mete Kaya <[email protected]>
usbnet: fix smp_processor_id() use in preemptible context
Yongzhao Chen <[email protected]>
net: phy: qcom: at803x: Apply IPQ5018 analog settings at probe
Fabrice Derepas <[email protected]>
ima: reject a kexec buffer whose declared size exceeds the buffer
Qiliang Yuan <[email protected]>
blk-mq: share one tags_srcu instance across all tag sets
Tao Cui <[email protected]>
blk-iocost: account zone append completions in latency stats
Tao Cui <[email protected]>
blk-iocost: charge zone appends as writes
Viktor Menshin <[email protected]>
ALSA: hda/realtek: Fix hiss/crackle on Lenovo Xiaoxin 14 GT (17aa:3912)
Jackie Dong <[email protected]>
ALSA: hda/realtek: ALC269 fixup for Yoga/Legion Mic noise
Jackie Dong <[email protected]>
ALSA: hda/realtek:ALC269 fixup for Yoga Pro 7 15ASH11 mic mute LED
Jackie Dong <[email protected]>
ALSA: hda/realtek: ALC269 fixup for Lenovo Yoga Pro 7 15ASH111 audio
Colin Ian King <[email protected]>
selftests/bpf: Fix spelling mistakes in descr literal strings
Yuan Chen <[email protected]>
bpftool: Fix inverted tracefs validation when scanning /proc/mounts
Qiliang Yuan <[email protected]>
selftests/bpf: Expect at least one kprobe miss in missed/perf_kprobe
Adam Azuddin <[email protected]>
drm/appletbdrm: Fix incorrect error message on encoder attach failure
Hui Peng <[email protected]>
fuse: validate folio state before pipe_buf_try_steal() in fuse_try_move_folio()
Matheus Alves de Almeida <[email protected]>
HID: wacom: fix wacom_intuos_irq NULL pen_input deref
Dmitriy Geels <[email protected]>
HID: logitech-hidpp: cancel reset_hi_res_work on probe failure
Nehuen Lian Bova <[email protected]>
HID: magicmouse: fix null pointer dereference in magicmouse_event()
Qiliang Yuan <[email protected]>
selftests/bpf: Record only the test ICMP echo in tc8 of tc_netkit_scrub
Cen Zhang <[email protected]>
ALSA: vmaster: Protect follower lookup and setup
Vasilij Markin <[email protected]>
drm/appletbdrm: Add suspend and resume support
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
Eric Dumazet <[email protected]>
tcp: use the echoed source route in cookie_v4_check()
Theodor Arsenij Larionov Trichkine <[email protected]>
net: use the full socket in sk_mc_loop()
Eric Dumazet <[email protected]>
ipv4: use RCU protection in inet_netconf_get_devconf()
George Melikov <[email protected]>
bnx2x: fix header length calculation for encapsulated TSO
Muchun Song <[email protected]>
dax/bus: Return errors for invalid mapping targets
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
Yun Lu <[email protected]>
bpf: Prevent task work context reuse while irq_work is busy
Yun Lu <[email protected]>
bpf: Fix NULL task dereference in task work cancellation
Mykyta Yatsenko <[email protected]>
bpf: Migrate bpf_task_work to kmalloc_nolock
KaFai Wan <[email protected]>
selftests/bpf: Skip expected_msgs subtests when stdout is not saved
KaFai Wan <[email protected]>
selftests/bpf: Fix prog_tests framework subtest count checks
Li RongQing <[email protected]>
ublk: use global index for reported zones
Damien Le Moal <[email protected]>
block: introduce disk_report_zone()
Damien Le Moal <[email protected]>
block: cleanup blkdev_report_zones()
Ming Lei <[email protected]>
ublk: allow a NULL io->cmd in the cancel callback
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()
Jianan Huang <[email protected]>
f2fs: quota: fix quota flush failure during filesystem freeze
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: soc-card-test: Check return value of kunit_device_register()
Amadeusz Sławiński <[email protected]>
ASoC: soc-topology-test: Check return value of kunit_device_register()
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
Abraham Zukor <[email protected]>
spi: tegra114: initialize native chip selects inactive
Haotian Zhang <[email protected]>
ASoC: rockchip: fix device node reference leak in rk3288_hdmi_analog
bui duc phuc <[email protected]>
ASoC: rockchip: rk3288_hdmi_analog: Use dev_err_probe() for error handling
bui duc phuc <[email protected]>
ASoC: rockchip: rk3288_hdmi_analog: Drop redundant probe error messages
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
Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Prevent module info underflow
Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Unprepare a stream when recovery occurs
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
Qiliang Yuan <[email protected]>
selftests/bpf: Accept unnamed dma-bufs in the dmabuf_iter default test
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
Zhan Xusheng <[email protected]>
vdso/vsyscall: Keep the CLOCK_AUX base scaled
Zhan Xusheng <[email protected]>
vdso/math64: Add and use __iter_div64_u64_rem()
Jaewon Jung <[email protected]>
selftests/ftrace: Avoid unlink error on first run
Myeonghun Pak <[email protected]>
ASoC: rt5645: Shut down the button timer on removal
Zhang Yi <[email protected]>
ext4: fix orig_mlen initialization in ext4_map_blocks()
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
Youngsung Ahn <[email protected]>
RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]
Youngsung Ahn <[email protected]>
RDMA/rxe: bound the ODP page index against the umem in rxe_check_pagefault()
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
Julian Sun <[email protected]>
block: take the inode lock for buffered write fallback
Julian Sun <[email protected]>
block: reject NOWAIT buffered write fallback
zhoumin <[email protected]>
ata: ahci: preserve preset port masks
Takashi Iwai <[email protected]>
ALSA: pcm: Add refcount for races between drain and unlink
Takashi Iwai <[email protected]>
ALSA: Add simple refcount helper functions
Benoît Monin <[email protected]>
irqchip/mips-gic: Transfer interrupt mask state across clusters
Benoît Monin <[email protected]>
irqchip/mips-gic: Fix recursive acquisition of gic_lock in gic_set_affinity()
Benoît Monin <[email protected]>
irqchip/mips-gic: Fix unbalanced cm_core_lock in for_each_online_cpu_gic()
Zhu Ling <[email protected]>
irqchip/gic: Fix UBSAN shift-out-of-bounds in GIC helpers
Fuad Tabba <[email protected]>
irqchip/gic-v3: Don't register a redistributor that was never counted
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
Pengpeng Hou <[email protected]>
irqchip/riscv-imsic: Reject overlapping group index fields
Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Clear vpt_page after freeing the pending table
David Howells <[email protected]>
rxrpc: Fix sendmsg length
David Howells <[email protected]>
rxrpc: Fix aborting in rxperf test server
David Howells <[email protected]>
rxrpc: Fix rxperf test rxgk key kvno to be 0
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
Jiayuan Chen <[email protected]>
veth: clear rx queue hint in veth_xmit
Qiliang Yuan <[email protected]>
selftests/bpf: Expect at least one tp_recursion miss in missed
Qiliang Yuan <[email protected]>
selftests/bpf: Report a failure to register the session key in test_progs
Qiliang Yuan <[email protected]>
selftests/bpf: Use its own netns in flow_dissector_skb_less_direct_attach
Niklas Cassel <[email protected]>
ata: libata-core: Fix NO_FUA quirks shadowed by earlier quirk entries
Niklas Cassel <[email protected]>
ata: libata-core: Quirk INTEL SSDSC2KG480G8 max_sectors
Niklas Cassel <[email protected]>
ata: libata: Add ATA_QUIRK_MAX_SEC and convert all device quirks
Niklas Cassel <[email protected]>
ata: libata-core: Quirk DELLBOSS VD max_sectors
Niklas Cassel <[email protected]>
ata: libata: Move quirk flags to their own enum
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
Fenglin Wu <[email protected]>
spmi: pmic-arb: return 0 in spmi_pmic_arb_register_buses() on success
Xingui Yang <[email protected]>
scsi: hisi_sas: Fix spinup failure for SAS SSP devices in Active_Wait state
Damien Le Moal <[email protected]>
scsi: core: Prepare for using combined sense codes
Damien Le Moal <[email protected]>
scsi: core: Rename sense field of struct scsi_failure
Damien Le Moal <[email protected]>
scsi: core: Define all additional sense codes and their qualifiers
Damien Le Moal <[email protected]>
scsi: scsi_debug: move ASC and ASCQ definitions to scsi_proto.h
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()
Donggeun Yoo <[email protected]>
iommufd: Keep reserved IOVA ranges when a replace within one IOAS fails
Sasha Levin <[email protected]>
selftests/nolibc: use the configured kernel header directory
Thomas Weißschuh <[email protected]>
selftests/nolibc: scope custom flags to the nolibc-test target
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
Jiale Yao <[email protected]>
clocksource/drivers/timer-ti-dm: Handle runtime resume failure
Kyle Pepper <[email protected]>
Bluetooth: hci_sync: scan unfiltered for host-resolved RPAs
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
Eric Dumazet <[email protected]>
Bluetooth: btmtk: fix skb double free on ISO padding failure
Cen Zhang <[email protected]>
Bluetooth: 6lowpan: Drain RCU readers on registration failure
Cen Zhang <[email protected]>
Bluetooth: msft: Lock failed probe cleanup against feature readers
Cen Zhang <[email protected]>
Bluetooth: MGMT: Reject quality report requests during unregister
Cen Zhang <[email protected]>
Bluetooth: ISO: Hold the listener during disconnect notification
Cen Zhang <[email protected]>
Bluetooth: hci_sync: Serialize devcoredump reset during device open
Cen Zhang <[email protected]>
Bluetooth: hci_core: Keep RCU protection through LTK filtering
Hitalo Souza <[email protected]>
Bluetooth: Add missing newline to bt_dev_{err,warn}_ratelimited()
Cen Zhang <[email protected]>
Bluetooth: 6LoWPAN: Use RCU-safe device list removal
Luiz Augusto von Dentz <[email protected]>
Bluetooth: MGMT: Fix leaking instance on Add Extended Advertising Parameters
Luiz Augusto von Dentz <[email protected]>
Bluetooth: MGMT: Fix pending state of instances added without HCI traffic
Luiz Augusto von Dentz <[email protected]>
Bluetooth: HCI: Fix tracking of instances sharing handle 0x00
Luiz Augusto von Dentz <[email protected]>
Bluetooth: MGMT: Fix advertising instances with Global Advertising
Pauli Virtanen <[email protected]>
Bluetooth: hci_sync: fix mesh adv timeout units
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 *
Chris Lu <[email protected]>
Bluetooth: btmtk: Improve BT firmware logging
Chris Lu <[email protected]>
Bluetooth: btmtk: Validate the firmware layout before parsing it
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
Chris Lu <[email protected]>
Bluetooth: btmtksdio: Pass the hardware device id to mt79xx_setup()
Chris Lu <[email protected]>
Bluetooth: btmtksdio: Remove redundant firmware filename override
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
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
Kohei Enju <[email protected]>
arm64: rsi: Correct type of realm_config::hash_algo
Johannes Berg <[email protected]>
wifi: cfg80211: track SSID regardless of country data
Julian Anastasov <[email protected]>
ipvs: fix buffer overflow when sending sync messages
Endrik Einberg <[email protected]>
wifi: iwlwifi: mld: include VI packets in low latency detection
Emmanuel Grumbach <[email protected]>
wifi: iwlwifi: mvm: fix the VHT MCS sent to a v1 firmware
Johannes Berg <[email protected]>
wifi: iwlwifi: mvm: move rate conversions to utils.c
Binbin Deng <[email protected]>
module: Fix uninitialized count read of unloaded taint tracking record
Kees Cook <[email protected]>
mm/slab: Mark the kmem_buckets_create() context as a Context: section
Pengpeng Hou <[email protected]>
thermal/drivers/rzg3e: Propagate reset assertion failure from suspend
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: pcm: Protect delay DMA sync in forward and rewind, too
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
Bradley Morgan <[email protected]>
watchdog/perf: one digit too short in the raw event config copy
Karl Mehltretter <[email protected]>
kcov: report spurious PCs in the interrupt selftest
Karl Mehltretter <[email protected]>
resource, kunit: stop selecting GET_FREE_REGION
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
Bart Van Assche <[email protected]>
scsi: scsi_debug: Fix a locking bug in resp_write_same()
Hongjian Dai <[email protected]>
spi: meson-spicc: fix invalid DMA unmap on mapping failure
Runyu Xiao <[email protected]>
ASoC: codecs: wcd937x: request watchdog IRQs without devm
Priyanka Mani <[email protected]>
ASoC: mediatek: mt8365: Fix out-of-bounds read in get_iir_coef()
Jonathan Santos <[email protected]>
spi: axi-spi-engine: fix stale SYNC IRQ pending in trigger_enable
Jonathan Santos <[email protected]>
spi: axi-spi-engine: fix stale SYNC IRQ pending
Namhyung Kim <[email protected]>
perf symbol: Add missing symsrc__destroy() for libbfd
Namhyung Kim <[email protected]>
perf symbol: Fix symbol loading from libbfd
Gabor Juhos <[email protected]>
spi: spi-qpic-snand: skip BBM copy on regular raw reads
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: renesas: msiof: Fix msiof_close() being skipped on rollback
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()
Longfang Liu <[email protected]>
hisi_acc_vfio_pci: fix NULL dereference in reset_prepare on PF passthrough
Surabhi Gogte <[email protected]>
nvme-tcp: store and use the caller's network namespace
Heiko Carstens <[email protected]>
s390/uprobes: Fix off-by-one bug in emulated PER handling
Heiko Carstens <[email protected]>
s390/ptrace: Preserve ILC when updating system call number
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
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
Abel Vesa <[email protected]>
clk: qcom: gcc-ipq5424: Fix TME reset register offsets
Konrad Dybcio <[email protected]>
clk: qcom: gcc-x1e80100: Don't poll the status bit of GCC_USB4_n_SYS_CLK
Jagadeesh Kona <[email protected]>
clk: qcom: gcc-glymur: Use clk_regmap_phy_mux_ops for GCC UFS muxes
Jagadeesh Kona <[email protected]>
clk: qcom: rpmhcc: Add LNBB clocks support for Glymur
Taniya Das <[email protected]>
clk: qcom: rpmh: Update the clock suffix for Glymur
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
Sasha Levin <[email protected]>
tools: hv: remove unused rte_smp_mb()
Weigang He <[email protected]>
thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove
Georgi Djakov <[email protected]>
thermal/drivers/qcom-spmi-temp-alarm: Fix temp_map indexing
Arnaldo Carvalho de Melo <[email protected]>
perf test attr: Source setup_python.sh instead of calling python
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
Weiming Shi <[email protected]>
fs/ntfs3: do not mark frame pages uptodate on read error
Konstantin Komarov <[email protected]>
fs/ntfs3: remove ntfs_bio_pages and use page cache for compressed I/O
Matthew Wilcox (Oracle) <[email protected]>
ntfs: Do not kmap pages used for reading from disk
Tapio Reijonen <[email protected]>
serial: max310x: don't transmit while an RS485 reconfigure is pending
Tapio Reijonen <[email protected]>
serial: max310x: drive RTS in software when hardware delays are too short
Tapio Reijonen <[email protected]>
serial: max310x: support active-low RTS on the hardware path
Tapio Reijonen <[email protected]>
serial: max310x: register GPIO controller before adding UART ports
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
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: pcm: Protect delay DMA sync against concurrent HW_FREE
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
Shyam Sundar S K <[email protected]>
platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse
Jiale Yao <[email protected]>
platform/olpc: Reserve space for a string terminator
Aleksandrova Alyona <[email protected]>
platform/x86: intel_telemetry: initialize default trace verbosity
Kristen Carlson Accardi <[email protected]>
platform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id()
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
Ali Ahmet Memiş <[email protected]>
ALSA: hda: intel: Don't free card in the probe work
Cen Zhang <[email protected]>
ALSA: jack: Remove debugfs before freeing unregistered jacks
Dan Carpenter <[email protected]>
mm/hmm/test: reject overflowing page counts
Harry Yoo (Meta) <[email protected]>
selftests/cgroup: ignore memory.reclaim -EAGAIN for zswap writeback test
Zenghui Yu (Huawei) <[email protected]>
selftests/damon: stop kdamond on error exits of no-op commit test
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
Joonhoe Kim <[email protected]>
ASoC: codecs: wcd939x: read the SoundWire port switches per channel
bui duc phuc <[email protected]>
ASoC: codecs: rt5659: propagate GPIO errors
Sidong Yang <[email protected]>
accel/rocket: Don't tear down the scheduler when drm_sched_init() fails
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: fix lost error return value in btrfs_alloc_logged_file_extent()
Filipe Manana <[email protected]>
btrfs: qgroup: fix swapped blocks existence check when tracing after COW
Qu Wenruo <[email protected]>
btrfs: qgroup: do not treat "ret > 0" as error when deleting a qgroup
Filipe Manana <[email protected]>
btrfs: fix off-by-one end offset check in report_setget_bounds()
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
Guanghui Yang <[email protected]>
btrfs: roll back sprout setup after device add failure
Qu Wenruo <[email protected]>
btrfs: update per-profile available estimation
Qu Wenruo <[email protected]>
btrfs: introduce the device layout aware per-profile available space
Qu Wenruo <[email protected]>
btrfs: add extra device item checks at mount
Tal Zussman <[email protected]>
block: don't fall back to buffered I/O for atomic writes
Tal Zussman <[email protected]>
block: honor IOCB_NOWAIT in the block device buffered read path
Tal Zussman <[email protected]>
block: take i_rwsem for the splice read path
Tal Zussman <[email protected]>
block: take i_rwsem for the direct I/O write fallback
Zhenxian Ma <[email protected]>
block: only use REQ_FUA for direct writes if the device supports it
Zhenxian Ma <[email protected]>
block: skip redundant flush for O_DSYNC direct writes
Tal Zussman <[email protected]>
block: use iomap_dirty_folio for block devices
Cristian Ciocaltea <[email protected]>
drm/rockchip: dw_hdmi_qp: Cancel pending HPD work on suspend
Cristian Ciocaltea <[email protected]>
drm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops
Luca Ceresoli <[email protected]>
drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder()
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
Ali Ahmet Memiş <[email protected]>
ALSA: control_led: Fix deadlock between sysfs writes and card disconnect
Takashi Iwai <[email protected]>
ALSA: control: Relax __free() variable declarations
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
Prathamesh Deshpande <[email protected]>
RDMA/mlx5: Cancel deferred page-fault EQ work before teardown
Ting-Han Hou <[email protected]>
ALSA: virtio: reset I/O message fill level on prepare
Cen Zhang <[email protected]>
ALSA: timer: Pin the module for userspace timer controllers
Kees Cook <[email protected]>
seq_buf: Do not print an empty line from an overflowed seq_buf_do_printk()
Shuvam Pandey <[email protected]>
seq_buf: Export seq_buf_putmem_hex() and add KUnit tests
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
Anup Vishwakarma <[email protected]>
mailbox: arm_mhu_db: Remove redundant mbox_controller_unregister() on probe failure
Anup Vishwakarma <[email protected]>
mailbox: qcom-ipcc: Remove redundant mbox_controller_unregister() on probe failure
Pan Chuang <[email protected]>
mailbox: Remove redundant dev_err()/dev_err_probe()
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
Kumar Kartikeya Dwivedi <[email protected]>
bpf, riscv: Fix stack-passed arguments for indirect trampolines
Kees Cook <[email protected]>
kbuild: Mark the initcall ordering recipe as recursive
Binglei Wang <[email protected]>
erofs: fix xattrs handling when metadata compression is used
Matthew Wood <[email protected]>
bpf, arm64: Fix racy plt target update in bpf_arch_text_poke()
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
Takashi Iwai <[email protected]>
ALSA: hda: Stop unsol event and jack polling at hda-ext device removal, too
Takashi Iwai <[email protected]>
ALSA: hda: Disable unsol event handling at error and shutdown paths
Takashi Iwai <[email protected]>
ALSA: hda: Stop unsol events and jack polling before codec unbind
Tony Luck <[email protected]>
fs/resctrl: Ensure default group reports tasks on monitor-only systems
Guixin Liu <[email protected]>
cxl/pci: Update only the Port GPF timeout fields
Ting-Han Hou <[email protected]>
scripts/make_fit: Ignore schema checks when decomposing DTBs
Ting-Han Hou <[email protected]>
clang-tools: Import os for broken pipe handling
Leizhen Zhang <[email protected]>
kconfig: fix infinite loop in conf_choice() when no choice value is visible
Jiale Yao <[email protected]>
vfio/pci: Drain eventfd RCU callbacks on module exit
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
Leon Romanovsky <[email protected]>
PCI/P2PDMA: Do not tear down the allocate attribute on registration failure
Leon Romanovsky <[email protected]>
PCI/P2PDMA: Separate the mmap() support from the core logic
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
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: limit injected HT/VHT MCSes
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]>
ASoC: fsl_asrc_m2m: Fix bogus compress task pointer assignments
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: usb: us16x08: Fix racy accesses of mixer elements
Takashi Iwai <[email protected]>
ALSA: usb-audio: Fix data race at mixer_ctl_feature_info()
Takashi Iwai <[email protected]>
ALSA: caiaq: Fix races at MIDI URB and trigger accesses
Karl Mehltretter <[email protected]>
gpu: buddy: Drop the stale @p line from the gpu_buddy_print() kernel-doc
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
Michał Kopeć <[email protected]>
ASoC: mediatek: mt8188: Constrain UL8 FE to its back end's capabilities
Michał Kopeć <[email protected]>
ASoC: mediatek: common: Keep codec references until the card is bound
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
George Abraham P <[email protected]>
crypto: qat - force an edge when re-enabling all VF2PF interrupts
Takashi Iwai <[email protected]>
ALSA: hda: Don't free card at probe error in vga_switcheroo handler
Takashi Iwai <[email protected]>
ALSA: hda/intel: Move firmware loading into the probe work
Takashi Iwai <[email protected]>
ALSA: hda: Avoid non-operational GPU warning at regular device removal
Takashi Iwai <[email protected]>
ALSA: hda: Use linked list for jack table
Takashi Iwai <[email protected]>
ALSA: info: Fix memory leak at card removal
Takashi Iwai <[email protected]>
ALSA: seq: Fix missing direction and ump_group handling in 32bit compat ioctl
Takashi Iwai <[email protected]>
ALSA: core: Add missing barriers for power_ref vs card->shutdown
Takashi Iwai <[email protected]>
ALSA: pcmtest: Fix a bogus pointer read in snd_pcmtst_pcm_pointer()
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
Marek Maslanka <[email protected]>
platform/chrome: cros_ec_typec: Poll for role swap completion
Chen-Yu Yeh <[email protected]>
riscv: dts: sophgo: cv180x: Fix internal ephy node name
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: mt8365: Handle constraint return value in FE startup
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: copy function name into dcn_optc_lock_unlock_state trace event
Melissa Wen <[email protected]>
drm/amd/display: copy function name into dcn_fpu trace event
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
Shenghao Ding <[email protected]>
ASoC: tas2781: Fix TAS2781/TAS5825 PPC version logic conflict
Wentao Liang <[email protected]>
clocksource/drivers/timer-econet-en751221: Fix clock reference leak
Ting-Han Hou <[email protected]>
checkkconfigsymbols.py: Parse Git status output line by line
Felix Fietkau <[email protected]>
wifi: mt76: mt792x: compute the assoc RSSI from the chain signals
Felix Fietkau <[email protected]>
wifi: mt76: report an aborted scan or ROC to mac80211 during a reset
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: refuse scan and ROC until the hardware restart is done
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
bui duc phuc <[email protected]>
ASoC: rockchip: rockchip_sai: Handle runtime PM resume failures in set_fmt
John Crispin <[email protected]>
wifi: mt76: mt7996: disable the RX NAPIs before the DMA cleanup
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: fix the hw-queues debugfs queue requests
Lorenzo Bianconi <[email protected]>
wifi: mt76: mt7996: Remove unnecessary phy filed in mt7996_vif_link struct
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: fix PLE free page and AC queue register offsets
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: clear all link wcid entries in sta_pre_rcu_remove
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: report station statistics from the primary link
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: upload only the keys of the link being set up
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: set sniffer mode on a radio that is already running
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: enable the SKU power limit table
Felix Fietkau <[email protected]>
wifi: mt76: abort a scan only for a link change on the scanning radio
Cristian Papa <[email protected]>
wifi: mt76: feed the station RSSI average from the chain signals
Slavin Liu <[email protected]>
wifi: mt76: mt7996: guard station-only MLO TX handling
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()
Aamir Ahmed <[email protected]>
wifi: mt76: mt7996: validate TLV length in mt7996_mcu_ie_countdown()
Shayne Chen <[email protected]>
wifi: mt76: mt7996: extend CSA and CCA support for MLO
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
Mark Anthony Agarro <[email protected]>
wifi: mt76: mt7925: keep the join ROC until the station is authorized
Mark Anthony Agarro <[email protected]>
wifi: mt76: mt7921: keep the join ROC until the station is authorized
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()
Ryan Leung <[email protected]>
wifi: mt76: mt7915: publish wcid before MCU add commands
Devin Wittmayer <[email protected]>
wifi: mt76: mt7921: honour FIF_FCSFAIL instead of hardcoding drop_err
Mark Anthony Agarro <[email protected]>
wifi: mt76: mt7925: honour mac80211's FIF_FCSFAIL instead of hardcoding drop_err
Devin Wittmayer <[email protected]>
wifi: mt76: mt7925: fix the lock inversion in suspend and resume
Devin Wittmayer <[email protected]>
wifi: mt76: mt7921: fix the lock inversion in suspend and resume
Felix Fietkau <[email protected]>
wifi: mt76: mt7925: restore the reset state when fw_pmctrl fails
Devin Wittmayer <[email protected]>
wifi: mt76: mt7925: check drv_pmctrl return in the PCIe reset path
Devin Wittmayer <[email protected]>
wifi: mt76: mt7921: check drv_pmctrl return in the PCIe reset path
Devin Wittmayer <[email protected]>
wifi: mt76: mt7925: fix lock inversion between dev->mutex and iflist_mtx
Devin Wittmayer <[email protected]>
wifi: mt76: mt7921: fix lock inversion between dev->mutex and iflist_mtx
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: bound RRO session id before indexing addr_elem[]
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
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: validate firmware event lengths before parsing
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: check default EEPROM firmware size before copying
Felix Fietkau <[email protected]>
wifi: mt76: clear offchannel state if a scan has no channel to restore
Felix Fietkau <[email protected]>
wifi: mt76: set MT76_SCANNING when starting a hw scan
Felix Fietkau <[email protected]>
wifi: mt76: send nullfunc PS frames on offchannel transitions
Felix Fietkau <[email protected]>
wifi: mt76: optimize ROC for same-channel case
Felix Fietkau <[email protected]>
wifi: mt76: check chanctx before restoring channel after ROC
Felix Fietkau <[email protected]>
wifi: mt76: add offchannel check to mt76_roc_complete
Felix Fietkau <[email protected]>
wifi: mt76: check the owner of a remain-on-channel request
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
Michael Petlan <[email protected]>
perf test attr: Propagate the return value from the test to the wrapper
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()
Joseph Qi <[email protected]>
ocfs2: reject inconsistent xattr bucket during defrag
Andrei Vagin <[email protected]>
proc: report SIGEV_NONE in /proc/pid/timers if target task has died
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
Wilson Felipe Pereira <[email protected]>
selftests/cgroup: test_zswap: fix implicit unsigned promotion bug in test_no_kmem_bypass
Li Wang <[email protected]>
selftests/cgroup: replace hardcoded page size values in test_zswap
Li Wang <[email protected]>
selftests/cgroup: use runtime page size for zswpin check
Li Wang <[email protected]>
selftests/cgroup: avoid OOM in test_swapin_nozswap
Li Wang <[email protected]>
selftests/cgroup: skip test_zswap if zswap is globally disabled
Jiayuan Chen <[email protected]>
selftests/cgroup: add test for zswap incompressible pages
Guopeng Zhang <[email protected]>
selftests/cgroup: conform test to KTAP format output
Karl Mehltretter <[email protected]>
rcuref: Fix the rcuread_is_dead reference in rcuref_read() kernel-doc
Ryusuke Konishi <[email protected]>
nilfs2: fix link count underflow when removing corrupted directory
Georgios Androutsopoulos <[email protected]>
rust: bitmap: document panics in next_bit and next_zero_bit
Georgios Androutsopoulos <[email protected]>
rust: id_pool: document panics in find_unused_id and release_id
Roberto Bergantinos Corpas <[email protected]>
NFS: return DENIED in decode_lock_denied if we cannot decode owner
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
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
Daniel Drake <[email protected]>
drm/vc4: Set DRM DMA device directly from HVS and V3D
Maíra Canal <[email protected]>
drm/vc4: Drop the undocumented brcm,vc4-v3d compatible
Linus Walleij <[email protected]>
dt-bindings: dma: dma40: Restore disabled-channels
Jason Gunthorpe <[email protected]>
efi/libstub: Free cmdline_ptr in efi_pe_entry
Vincent Mailhol <[email protected]>
efi/libstub: make local GUID variables static
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
Florian Fuchs <[email protected]>
sh: Fix built-in DTB build with generic rule
Aurelien Jarno <[email protected]>
riscv: fix RVG_SYSTEM_CSR_MASK width mask
Daniel Zahka <[email protected]>
selftests: drv-net: psp: test that rx-assoc fails on closed and listen socks
Daniel Zahka <[email protected]>
net: psp: drop psp assoc clear in sk_clone()
Daniel Zahka <[email protected]>
net: psp: require an established connection for association setup
Eric Dumazet <[email protected]>
tcp: populate inet->cork.fl.u.ip6 in tcp_v6_connect()
Eric Dumazet <[email protected]>
ipv6: add daddr/final storage in struct ipv6_pinfo
Daniel Zahka <[email protected]>
selftests: drv-net: psp: swap closed for connected sockets in assoc tests
Eric Dumazet <[email protected]>
ipv4: reserve one IP ID per segment for UDP GSO packets
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 DMA registration unwind
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix probe IRQ leak
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Init hardware before registration
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: check pm_runtime_resume_and_get during resume
Jie Zhang <[email protected]>
drm/msm/a6xx: Add support for Adreno 612
Roman Demidov <[email protected]>
drm/msm/a6xx: fix use-after-free of OPP in a6xx_pm_resume
Jiale Yao <[email protected]>
wifi: ath12k: Reserve space for a string terminator
Baochen Qiang <[email protected]>
wifi: ath11k: fix unbalanced IRQ enable/disable during suspend/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
Karl Mehltretter <[email protected]>
ASoC: codecs: es8375: use devm_clk_get_optional() for mclk
Yibo Tan <[email protected]>
soc: qcom: pmic_pdcharger_ulog: prevent work requeue during remove
Neil Armstrong <[email protected]>
soc: qcom: geni-se: provide PROG_RAM_DEPTH for I2C HUB Serial Engines
Konrad Dybcio <[email protected]>
soc: qcom: pmic_glink: Avoid losing early rpmsg probe
Mukesh Ojha <[email protected]>
firmware: qcom: tzmem: Use DO_ONCE_SLEEPABLE() in qcom_tzmem_enable()
Joonhoe Kim <[email protected]>
drm/msm/dpu: round up the compressed INTF width
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
Karl Mehltretter <[email protected]>
svcrdma: Fix svc_rdma_recv_cid_init() kernel-doc
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
Joachim Eastwood <[email protected]>
arm64: dts: rockchip: fix missing pcie rst pinctrl on rk3588s-nanopi-r6
Joachim Eastwood <[email protected]>
arm64: dts: rockchip: fix missing sdmmc cd pinctrl on rk3588s-nanopi-r6
Detlev Casanova <[email protected]>
arm64: dts: rockchip: Rename rk3588 HDMI audio cards
Detlev Casanova <[email protected]>
arm64: dts: rockchip: Rename rk3576 HDMI audio card
Detlev Casanova <[email protected]>
arm64: dts: rockchip: Rename rk3566 and rk3568 HDMI audio cards
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: rt721-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
Marco Giunta <[email protected]>
ASoC: aw88399: skip BSTS check when boost converter is bypassed
Marco Giunta <[email protected]>
ASoC: aw88399: add per-instance BSTS status bypass flag
Marco Giunta <[email protected]>
ASoC: aw88399: extract shared device library
Weidong Wang <[email protected]>
ASoC: codecs: Modify awinic amplifier dsp read and write functions
Marco Crivellari <[email protected]>
ASoC: replace use of system_wq with system_dfl_wq
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
Ruoyu Wang <[email protected]>
perf/dwc_pcie: Fix PCI device reference leak in probe
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
Dave Jiang <[email protected]>
perf/cxl: Program the requested event group on configurable counters
Alexey Charkov <[email protected]>
power: supply: bq257xx: Use psy directly instead of driver data
Jan Stancek <[email protected]>
.gitignore: drop Module.markers
Liviu Nicoara <[email protected]>
power: supply: qcom_battmgr: Report capacity on X1E80100
Linus Walleij <[email protected]>
dt-bindings: power: supply: ab8500: Add AB8505 charger
Zhihao Cheng <[email protected]>
md: Fix the null-ptr-deref of 'mddev->private' while submitting IO
Ryan Brue <[email protected]>
power: supply: bq24190_charger: don't reset registers across system suspend
Chen-Yu Tsai <[email protected]>
dt-bindings: media: sun4i-a10-video-engine: Fix IOMMU count for H6
Sang-Hoon Choi <[email protected]>
md/raid5: protect big_stripe_tree lookup with RCU
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
Aristo Chen <[email protected]>
phy: freescale: fsl-samsung-hdmi: initialize default rate
Shawn Lin <[email protected]>
phy: rockchip: naneng-combphy: Fix TX detect RX termination errata
Jason Yang <[email protected]>
phy: rockchip-samsung-dcphy: Enable runtime PM at PHY core level
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: Validate the access parameters of WRITE ATOMIC (16)
Niklas Cassel <[email protected]>
scsi: scsi_debug: Map the region written by WRITE ATOMIC (16)
Niklas Cassel <[email protected]>
scsi: scsi_debug: Refuse a short WRITE ATOMIC (16) before writing it
Niklas Cassel <[email protected]>
scsi: scsi_debug: Advance the write pointer over the data written
Niklas Cassel <[email protected]>
scsi: scsi_debug: Avoid 32-bit overflow in WRITE SCATTERED offsets
John Garry <[email protected]>
scsi: scsi_debug: Stop printing extra function name in debug logs
Bart Van Assche <[email protected]>
scsi: scsi_debug: Abort SCSI commands via an internal command
Hannes Reinecke <[email protected]>
scsi: core: Add scsi_{get,put}_internal_cmd() helpers
John Garry <[email protected]>
scsi: core: Introduce .queue_reserved_command()
Hannes Reinecke <[email protected]>
scsi: core: Support allocating a pseudo SCSI device
Bart Van Assche <[email protected]>
scsi: core: Move two statements
Hannes Reinecke <[email protected]>
scsi: core: Support allocating reserved commands
Niklas Cassel <[email protected]>
scsi: scsi_debug: Take the zone metadata lock before the data lock
Niklas Cassel <[email protected]>
scsi: scsi_debug: Refuse a negative physblk_exp
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Only enable USB3 when not in high-speed mode
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Handle rk_udphy_reset_deassert errors
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Avoid xHCI SErrors
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Rename mode_change to phy_needs_reinit
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Hold mutex in DP PHY configure
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Properly handle TYPEC_STATE_SAFE and TYPEC_STATE_USB
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Drop DP HPD handling
Zhang Yubing <[email protected]>
phy: rockchip: usbdp: Support single-lane DP
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Add missing mode_change update
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Limit DP lane count to muxed lanes
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Drop seamless DP takeover
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Handle missing clock-names DT property gracefully
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Fix devm_clk_bulk_get_all check
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Do not lose USB3 PHY status
Sebastian Reichel <[email protected]>
phy: rockchip: usbdp: Update mode_change after error handling
Akash Sukhavasi <[email protected]>
phy: HiSilicon: Fix error handling in hi3670_pcie_allclk_ctrl()
Yeoreum Yun <[email protected]>
coresight: etm3x: fix inconsistencies with sysfs configuration
Yeoreum Yun <[email protected]>
coresight: etm3x: Prohibit modifying cntr_val while session is enabled
Leo Yan <[email protected]>
coresight: etm3x: Set active path on target CPU
Leo Yan <[email protected]>
coresight: Take hotplug lock in enable_source_store() for Sysfs mode
Joonhoe Kim <[email protected]>
drm/msm/dpu: compute the CRTC bandwidth from the state being checked
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
Hal Feng <[email protected]>
riscv: dts: starfive: Correct pwm nodes
Hal Feng <[email protected]>
riscv: dts: starfive: Add common board dtsi for VisionFive 2 Lite variants
James Clark <[email protected]>
perf python: Track linked libraries as extension dependencies
Ian Rogers <[email protected]>
perf python: Clean up and restructure setup.py
Ian Rogers <[email protected]>
perf python: Add perf.pyi stubs file
Jens Remus <[email protected]>
perf build: Do not duplicate CFLAGS in Python extension builds
Jens Remus <[email protected]>
perf build: Respect V=1 for Python extension builds
Ian Rogers <[email protected]>
perf build python: Don't leave a.out file when building with clang
Mostafa Saleh <[email protected]>
iommu/arm-smmu-v3-test: Fix arm_smmu_v3_test_debug_print_used_bits()
Mostafa Saleh <[email protected]>
iommu/arm-smmu-v3: Ensure L2 tables are visible before L1 ptrs
Yuri Zaporozhets <[email protected]>
ASoC: dwc: Use OF match data again for StarFive JH7110
Matthias Goergens <[email protected]>
isofs: return long Joliet names whole
Jennifer Berringer <[email protected]>
riscv: dts: spacemit: set console baud rate on OrangePi RV2
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
Alexander Duyck <[email protected]>
fbnic: Rework the BMC state pulled from the capabilities message
Daniel Zahka <[email protected]>
eth: fbnic: take netif_addr_lock_bh() around rx mode address programming
Stanislav Fomichev <[email protected]>
fbnic: convert to ndo_set_rx_mode_async
Stanislav Fomichev <[email protected]>
net: introduce ndo_set_rx_mode_async and netdev_rx_mode_work
Stanislav Fomichev <[email protected]>
net: add address list snapshot and reconciliation infrastructure
Kris Pan <[email protected]>
net: iterate online nodes in skb_defer_free_flush()
Markus Schneider-Pargmann (TI) <[email protected]>
arm64: dts: ti: var-som-am62p: Fix wkup R5F memory region size
Markus Schneider-Pargmann (TI) <[email protected]>
arm64: dts: ti: k3-am62p5-sk: Fix wkup R5F memory region size
Markus Schneider-Pargmann (TI) <[email protected]>
arm64: dts: ti: k3-am62p-verdin: Fix wkup R5F memory region size
Markus Schneider-Pargmann (TI) <[email protected]>
arm64: dts: ti: k3-am62a7-sk: Fix wkup R5F memory region size
Markus Schneider-Pargmann (TI) <[email protected]>
arm64: dts: ti: k3-am62d2-evm: Fix wkup R5F memory region size
Markus Schneider-Pargmann (TI) <[email protected]>
arm64: dts: ti: k3-am62a-phycore-som: Fix wkup R5F memory region size
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
Jesse Zhang <[email protected]>
drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset
Sunil Khatri <[email protected]>
drm/amdgpu/userq: use drm_exec in amdgpu_userq_fence_read_wptr
David (Ming Qiang) Wu <[email protected]>
drm/amdgpu/userq: need to unref bo
Ian Rogers <[email protected]>
perf thread_map: Add thread_map__tgid()
Ian Rogers <[email protected]>
perf trace: Copy sockaddr arguments by their length
Danish Khateeb <[email protected]>
pps: generators: wake up PPS_GEN_FETCHEVENT readers on unregister
Shuming Fan <[email protected]>
ASoC: rt712: avoid duplicate reset in io_init
Yichong Chen <[email protected]>
debugfs: make debugfs_create_str() read-only
Runyu Xiao <[email protected]>
mei: vsc-tp: initialize IRQ state before requesting interrupt
Ruoyu Wang <[email protected]>
misc: nsm: fix CBOR short-length decoding
Jasper Wise <[email protected]>
misc: nsm: mark device ready before registering the hwrng and misc device
Linkai Gong <[email protected]>
misc: enclosure: fix UAF on device_register() failure
Sechang Lim <[email protected]>
sched: Set TIF_NEED_RESCHED before calling __trace_set_need_resched()
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
Mateusz Nowicki <[email protected]>
arm64: dts: st: fix sai3b unit address on stm32mp231
Mateusz Nowicki <[email protected]>
arm64: dts: st: fix sai3b unit address on stm32mp251
Danish Khateeb <[email protected]>
serial: 8250: Fix section mismatch with CONFIG_MODULES=n
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: use devm clock APIs to fix use-after-disable in remove
Liu Dalin <[email protected]>
rtc: ftrtc010: fix clock resource leak on probe failure
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
Xilin Wu <[email protected]>
drm/msm/dp: Initialize the debugfs connector pointer
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
Alexandra Winter <[email protected]>
s390/ism: Zerorize dmb at allocation
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
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
Leo Yan <[email protected]>
perf build: Build the Python extension before pylint consumers
Michal Pluta <[email protected]>
perf symbol: Don't return an unterminated Rust demangle buffer
Michal Pluta <[email protected]>
perf test demangle: Fail when demangling fails
Arnd Bergmann <[email protected]>
f2fs: quota: fix unused-label warning
Gabor Juhos <[email protected]>
spi: spi-qpic-snand: set 'qpic_version2' flag
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()
Wentao Liang <[email protected]>
pinctrl: nuvoton: Fix clock reference leak in ma35_get_bank_data()
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
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
Ian Rogers <[email protected]>
perf pmu: Fix race with concurrent tracepoint creation and removal in perf list
Ian Rogers <[email protected]>
perf python: Initialize debug output on module load
Abhijit Gangurde <[email protected]>
RDMA/ionic: Fix double removal of CMB mmap entries in create QP error path
Abhijit Gangurde <[email protected]>
RDMA/ionic: Fix XArray initialization to use XArray flags
Norbert Szetei <[email protected]>
RDMA/rxe: Reject prefetch of a non-ODP MR
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
Danish Khateeb <[email protected]>
pwm: Allow 32-bit tasks to use the character device
Dairui Zhang <[email protected]>
IB/mad: fix UAF and double-free in RMPP receive reassembly
Sachin Kumar Garg <[email protected]>
media: iris: cache work mode after computing it in iris_set_stage
Dmitry Baryshkov <[email protected]>
media: iris: reference count video instances
Dmitry Baryshkov <[email protected]>
media: iris: reject open() when the session limit is reached
Dmitry Baryshkov <[email protected]>
media: iris: take core lock when scanning the instance list
Dmitry Baryshkov <[email protected]>
media: iris: fail firmware boot on invalid uc_region
Malte Wechter <[email protected]>
rnull: configfs: add power to configfs features
Hungyu Lin <[email protected]>
media: iris: cancel sys error work on driver removal
Ruoyu Wang <[email protected]>
media: venus: Drop session events without an instance
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Use bnxt_ext_stats_supported for counter count selection
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: imx93-9x9-qsb: fix reserved memory node names for remoteproc
Peng Fan <[email protected]>
arm64: dts: imx93-14x14-evk: fix reserved memory node names for remoteproc
Peng Fan <[email protected]>
arm64: dts: imx8ulp-evk: fix reserved memory node names for remoteproc
Peng Fan <[email protected]>
arm64: dts: imx8qxp-mek: fix dsp reserved memory node names for remoteproc
Peng Fan <[email protected]>
arm64: dts: imx8qxp-mek: fix reserved memory node names for remoteproc
Peng Fan <[email protected]>
arm64: dts: imx8qm-mek: fix dsp reserved memory node names for remoteproc
Peng Fan <[email protected]>
arm64: dts: imx8qm-mek: fix reserved memory node names for remoteproc
Peng Fan <[email protected]>
arm64: dts: imx8dxl-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
Gabor Juhos <[email protected]>
spi: spi-qpic-snand: fix read location register usage in qcom_spi_config_cw_read()
Waiman Long <[email protected]>
cgroup/cpuset: Run SCHED_DEADLINE shrink test on valid partition root only
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.
Ian Rogers <[email protected]>
perf vendor events intel: Fix sierraforest umask encoding.
Francesco Dolcini <[email protected]>
arm64: dts: ti: k3-am62-verdin-ivy: Fix main_gpio0/main_gpio1 line names size
Ian Rogers <[email protected]>
perf build: Clean libperf-gtk.so in 'make clean'
Ian Rogers <[email protected]>
perf test code-reading: Fix duplicate kernel maps and machine leak
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
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
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
Yilin Chen <[email protected]>
rust: configfs: require thread-safe callback data
Fuad Tabba <[email protected]>
of/irq: Fix device node refcount leak in of_check_msi_parent()
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
Yibo Tan <[email protected]>
ASoC: amd: acp3x-es83xx: Keep an owned codec device reference
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/mlx5: Fix mlx5_ib_dev_res_init() failure when XRC cap is absent
Yishai Hadas <[email protected]>
RDMA/hns: Pin CQ buffer writable to match device DMA write access
Serhat Kumral <[email protected]>
RDMA/irdma: Free IRQ when CEQ vector mapping fails
Ginger Li <[email protected]>
wifi: mac80211: Fix a race when expiring a mesh path
Mateusz Nowicki <[email protected]>
arm64: dts: st: fix arm,smc-id of the SMC watchdog on stm32mp2
Guanghui Feng <[email protected]>
iommu/vt-d: Fix IQE handling to cover all descriptors in submission range
Lu Baolu <[email protected]>
iommu/vt-d: Drop old iopf ref only after attach succeeds
Lu Baolu <[email protected]>
iommu/vt-d: Fix iopf refcount leak in nested attach
Lu Baolu <[email protected]>
iommu/vt-d: Reserve scalable-mode DIDs from PASID entries during copy
Lu Baolu <[email protected]>
iommu/vt-d: Handle DID reservation errors when copying context tables
Lu Baolu <[email protected]>
iommu/vt-d: Cache max domain ID to avoid redundant calculation
Lu Baolu <[email protected]>
iommu/vt-d: Do not ignore context table copy failures
ZhaoJinming <[email protected]>
iommu/vt-d: Fix copied_tables bitmap leak on error in copy_translation_tables
Johannes Berg <[email protected]>
um: time-travel: fix sched_yield() behaviour
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
Xin Liu <[email protected]>
arm64: dts: qcom: hamoa-iot-evk: use on-board crystal for PS8830 retimers
Viken Dadhaniya <[email protected]>
arm64: dts: qcom: hamoa-iot-evk: add MCP2518FD CAN on spi18
Khalid Faisal Ansari <[email protected]>
arm64: dts: qcom: hamoa-iot-evk: Enable TPM (ST33) on SPI11
Yongxing Mou <[email protected]>
arm64: dts: qcom: hamoa-iot-evk: Add backlight support for eDP panel
Phil Sutter <[email protected]>
netfilter: nfnetlink: Fix for interrupted hook dumps
Phil Sutter <[email protected]>
netfilter: nfnetlink_hook: Dump nat type chains
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
Sasha Levin <[email protected]>
kbuild: keep .modinfo when vmlinux is linked with --gc-sections
Lorenzo Stoakes (ARM) <[email protected]>
kbuild: do not allocate .modinfo in vmlinux
Nathan Chancellor <[email protected]>
kbuild: Remove alignment on .modinfo section
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
Alexandra Lu <[email protected]>
bus: mhi: host: pci_generic: Fix runtime PM imbalance for no_m3 devices
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
Danish Khateeb <[email protected]>
tools/nolibc: fix FD_SET(), FD_CLR() and FD_ISSET() on 64-bit
Willy Tarreau <[email protected]>
tools/nolibc: provide the portable sys/select.h
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Skip zero-length stream writes
Aaron Kling <[email protected]>
dt-bindings: vendor-prefixes: Add Retroid Pocket
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
Mohd Ayaan Anwar <[email protected]>
arm64: dts: qcom: qcs8300-ride: fix SerDes PHY regulator supplies
Mohd Ayaan Anwar <[email protected]>
arm64: dts: qcom: monaco-evk: fix SerDes PHY regulator supplies
Mohd Ayaan Anwar <[email protected]>
arm64: dts: qcom: lemans-ride-common: fix SerDes PHY regulator supplies
Andrei Vagin <[email protected]>
x86/fpu: Fix potential underflow in xstate_calculate_size()
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
Arnaldo Carvalho de Melo <[email protected]>
perf annotate-data: Resolve type DIEs in the debug file they came from
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
Jeff Johnson <[email protected]>
wifi: ath11k: fix reg_info_store leak in ath11k_service_ready_ext_event()
Kang Yang <[email protected]>
wifi: ath12k: avoid double DMA unmap of held monitor RX buffers
Abel Vesa <[email protected]>
clk: qcom: gcc-qcs615: Fix GCC_CPUSS_GNOC_CBCR offset
Qingfang Deng <[email protected]>
mtd: block: prevent reclaim I/O during request processing
Nia Su <[email protected]>
perf evlist: Don't restrict uncore events to PMU CPUs
Ian Rogers <[email protected]>
perf evlist: Special map propagation for tool events that read on 1 CPU
Ian Rogers <[email protected]>
perf pmu: Add PMU kind to simplify differentiating
Jiebin Sun <[email protected]>
perf c2c: Fix documented default coalesce fields
Muzaffer Kadir <[email protected]>
dt-bindings: vendor-prefixes: Add General Mobile
Abel Vesa <[email protected]>
arm64: dts: qcom: x1p42100-thinkbook-16: Mark the EC reset gpio as reserved
Abel Vesa <[email protected]>
arm64: dts: qcom: x1-hp-omnibook-x14: Mark the EC reset gpio as reserved
Abel Vesa <[email protected]>
arm64: dts: qcom: x1-dell-thena: Mark the EC reset gpio as reserved
Abel Vesa <[email protected]>
arm64: dts: qcom: x1-asus-zenbook-a14: Mark the EC reset gpio as reserved
Abel Vesa <[email protected]>
arm64: dts: qcom: x1e80100-qcp: Mark the EC reset gpio as reserved
Abel Vesa <[email protected]>
arm64: dts: qcom: x1e80100-yoga-slim7x: Mark the EC reset gpio as reserved
Abel Vesa <[email protected]>
arm64: dts: qcom: x1e80100-dell-xps13-9345: Mark the EC reset gpio as reserved
Abel Vesa <[email protected]>
arm64: dts: qcom: x1e78100-t14s: Mark the EC reset gpio as reserved
Abel Vesa <[email protected]>
arm64: dts: qcom: x1e001de-devkit: Mark the EC reset gpio as reserved
Abel Vesa <[email protected]>
arm64: dts: qcom: x1-crd: Mark the EC reset gpio as reserved
Charlie Garner <[email protected]>
arm64: dts: qcom: x1e80100-dell-inspiron-14-plus-7441: fix touchscreen i2c address
Alex Williamson <[email protected]>
vfio: Reject a second cdev open before mutating shared device state
Yibo Tan <[email protected]>
sysctl: unregister tables before freeing bitmap
Tengda Wu <[email protected]>
perf llvm: Fix memory leak of args->fileloc in symbol__disassemble_llvm()
Shrikanth Hegde <[email protected]>
powerpc/ftrace: Don't restore r13 during ftrace_regs_caller
Rob Herring (Arm) <[email protected]>
dt-bindings: arm: mediatek: Fix MT6779 audsys compatible
Pengpeng Hou <[email protected]>
iio: accel: bma220: publish the SPI driver ACPI alias
Myeonghun Pak <[email protected]>
spi: rockchip-sfc: skip DMA cleanup in PIO mode
Jiawen Liu <[email protected]>
spi: rockchip-sfc: disable runtime PM in remove
bui duc phuc <[email protected]>
ASoC: fsl_asrc_m2m: fix pm_runtime usage counter leak on error
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: rt1318: 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: es8323: 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
Pu Lehui <[email protected]>
bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscv
Wei Huang <[email protected]>
PCI/TPH: Validate the firmware Steering Tag response
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
Matteo Kloiber <[email protected]>
rust: scatterlist: honor the device's maximum segment size
Beata Michalska <[email protected]>
rust: dma: allow drivers to tune max segment size
Florian Fainelli <[email protected]>
um: Add definition of __NR_close_range for older host OSs
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
Karl Mehltretter <[email protected]>
iommufd: Fix iommufd_hw_capabilities reference in kernel-doc
Hui Su <[email protected]>
bpftool: Fix sparse CPU IDs in prog profile
Mykyta Yatsenko <[email protected]>
bpftool: Scale counters and report cycles per run
Mykyta Yatsenko <[email protected]>
bpftool: Group profile events by CPU
Mykyta Yatsenko <[email protected]>
bpftool: Accept zero perf counter snapshots
Hui Su <[email protected]>
bpftool: Fix CPU IDs in per-CPU map output
Danish Khateeb <[email protected]>
tools/nolibc: fix WIFSIGNALED() for status 0
Srinivas Kandagatla <[email protected]>
clk: qcom: fix SM6115 lpasscc register offset
Esteban Urrutia <[email protected]>
clk: qcom: alpha-pll: Check Lucid Ole PLL status before configuring
Esteban Urrutia <[email protected]>
clk: qcom: dispcc-sm8450: Fix disp_cc_mdss_mdp_clk_src ops
Oualid Derouiche <[email protected]>
arm64: dts: imx8mp-kontron: Fix LVDS clock frequency for DL device
Vincent Jardin <[email protected]>
dt-bindings: vendor-prefixes: add Free Mobile
Georgios Androutsopoulos <[email protected]>
rust: clk: document overflow panics in Hertz constructors
Linus Walleij <[email protected]>
ARM: dts: ux500: Convert HREF audio to audio-graph-card2
Even Xu <[email protected]>
HID: Intel-thc-hid: Intel-quickspi: Use hid_safe_input_report()
Even Xu <[email protected]>
HID: Intel-thc-hid: Intel-quicki2c: Use hid_safe_input_report()
Zongmin Zhou <[email protected]>
serial: sifive: fix off-by-one in console port bounds check
Malathi A <[email protected]>
serial: 8250_uniphier: Use devm_clk_get_enabled()
Myeonghun Pak <[email protected]>
serial: sh-sci: Unregister UART on sysfs setup failure
Biju Das <[email protected]>
serial: sh-sci: Drop checking port type for device file{create, remove}Li RongQing <[email protected]>
RDMA/mlx5: Use DEFINE_RAW_FLEX for leftovers flow attributes
Uwe Kleine-König (The Capable Hub) <[email protected]>
serial: 8250: hub6: Add cleanup code
Uwe Kleine-König (The Capable Hub) <[email protected]>
serial: 8250: Fix corner case for port matching
Hugo Villeneuve <[email protected]>
serial: 8250: fix compile error with hub6_match_port() when compiled as a module
Hugo Villeneuve <[email protected]>
serial: 8250_hub6: add hub6_match_port()
Uwe Kleine-König (The Capable Hub) <[email protected]>
serial: txx9: Drop noop probe function and dangerous remove callback
Dmitry Sinyavin <[email protected]>
serial: msm: select PM_OPP
Guangshuo Li <[email protected]>
media: staging/ipu7: release ISYS firmware resources on remove
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: Convert to blocking queue
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: Enable clock divider only where appropriate
Finn Thain <[email protected]>
swim: Refactor SWIM setup
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
Muhammad Bilal <[email protected]>
crypto: ccp - fix SFS ioctl race against device teardown
Weili Qian <[email protected]>
crypto: hisilicon/hpre - remove dma_free_coherent on NULL req->dst in ECDH
Herbert Xu <[email protected]>
crypto: api - Fix DUP_FIRST crash on unregister
Pengpeng Hou <[email protected]>
crypto: starfive - propagate clock and reset errors
Jiawen Liu <[email protected]>
crypto: starfive - handle clock enable failures
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()
Slavin Liu <[email protected]>
RDMA/irdma: check vport device allocation
Kim Wooseok <[email protected]>
wifi: rtl8xxxu: free RX skb when URB submission fails
Mauricio Faria de Oliveira <[email protected]>
x86/pvh: Really inline memcmp() and memset() to fix unbootable VMs
Mauricio Faria de Oliveira <[email protected]>
x86/asm: Group inline string functions
Mauricio Faria de Oliveira <[email protected]>
x86/asm, x86/boot: Carve out inline memcmp() into a separate header
Peter Zijlstra (Intel) <[email protected]>
x86/asm: Introduce inline memcpy and memset
Mauricio Faria de Oliveira <[email protected]>
x86/boot: Remove redundant "cc" clobber in memcmp() and document it
Rafael J. Wysocki <[email protected]>
ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device()
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
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()
Manuel Fombuena <[email protected]>
leds: st1202: Cap the channel current in st1202_led_set()
Manuel Fombuena <[email protected]>
leds: st1202: Honour max_brightness when blinking
Manuel Fombuena <[email protected]>
leds: st1202: Clear unused pattern slots in blink_set()
Manuel Fombuena <[email protected]>
leds: st1202: Do not set brightness from atomic context
Manuel Fombuena <[email protected]>
leds: st1202: Take a reference on the LED firmware node
Manuel Fombuena <[email protected]>
leds: st1202: Program the channel current for hardware patterns
Manuel Fombuena <[email protected]>
leds: st1202: Spell out the phase-shift configuration bit
Manuel Fombuena <[email protected]>
leds: st1202: Add hardware-accelerated blink support
Manuel Fombuena <[email protected]>
leds: st1202: Scale pattern brightness to the 12-bit PWM range
Manuel Fombuena <[email protected]>
leds: st1202: Name pattern index variables consistently
Manuel Fombuena <[email protected]>
leds: st1202: Clear unused pattern slots in pattern_set()
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
Arnaldo Carvalho de Melo <[email protected]>
perf annotate-data: Show the sample count in the data-type browser
Cong Nguyen <[email protected]>
leds: lm3692x: Fix regulator/gpio leak and wrong enabled state on last write failure
Ian Rogers <[email protected]>
perf build: Remove leftovers of removed build options
Michael Jeanson <[email protected]>
perf data ctf: replace libbabeltrace with babeltrace2-ctf-writer
Ian Rogers <[email protected]>
tools build: Deduplicate test-libunwind for different architectures
Ian Rogers <[email protected]>
perf test: perf data --to-ctf testing
Ian Rogers <[email protected]>
perf check: Add libbabeltrace to the listed features
Ian Rogers <[email protected]>
perf build: Check the version of the compiler that is used
Ian Rogers <[email protected]>
perf build: Use the given CC rather than clang in clang builds
Ian Rogers <[email protected]>
perf build: Only pass clang flags to CXX when CXX is clang
Ian Rogers <[email protected]>
perf symbol: Fix the build when demangling with libbfd
Ian Rogers <[email protected]>
perf libbfd: Fix the clang -Wthread-safety build failure
Chen Pei <[email protected]>
perf test: Fix a leaked map reference in the arch dwarf unwind tests
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()
Greg Kroah-Hartman <[email protected]>
mm/gup: honour FOLL_PIN in NOMMU __get_user_pages_locked()
Yogesh Gaur <[email protected]>
md/raid5: give the io_unit slab caches per-array names
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
Adrian Hunter <[email protected]>
i3c: mipi-i3c-hci: Fix runtime PM violation in i3c_hci_free_ibi()
Adrian Hunter <[email protected]>
i3c: mipi-i3c-hci: Restore controller state if i3c_hci_enable_ibi() returns an error
Yun Lu <[email protected]>
selftests/bpf: Clean up child when task_work__open() fails
Leon Hwang <[email protected]>
bpftool: Compute map size of light skeletons at runtime
Leon Hwang <[email protected]>
bpftool: Generate skeleton for global percpu data
WanLi Niu <[email protected]>
bpftool: Make skeleton C++ compatible with explicit casts
Ovidiu Panait <[email protected]>
thermal/drivers/renesas/rzg3e: Fix race between set_trips() and get_temp()
Ovidiu Panait <[email protected]>
thermal/drivers/renesas/rzg3e: Fix runtime PM handling of compare irq
John Madieu <[email protected]>
thermal: renesas: rzg3e: Remove stale @trim_offset kernel-doc entry
Cosmin Tanislav <[email protected]>
thermal: renesas: rzg3e: make calibration value retrieval per-chip
Ovidiu Panait <[email protected]>
drivers/thermal/renesas/rzg3e: Fix signed integer overflow in temp_to_code()
Cosmin Tanislav <[email protected]>
thermal: renesas: rzg3e: make min and max temperature per-chip
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
Zide Chen <[email protected]>
perf topdown: Don't require config1==0 for a slots event
Ian Rogers <[email protected]>
perf arch x86 tests: Add test for topdown event sorting
Ian Rogers <[email protected]>
perf auxtrace: Remove errno.h from auxtrace.h and fix transitive dependencies
Ian Rogers <[email protected]>
perf build: Remove NO_AUXTRACE build option
Ian Rogers <[email protected]>
perf build: Don't add NO_AUXTRACE if missing feature-get_cpuid
Ian Rogers <[email protected]>
perf tool: Add the perf_tool argument to all callbacks
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
Linus Walleij <[email protected]>
ASoC: ab8500: Skip digital microphone support on AB8505
Linus Walleij <[email protected]>
ASoC: ab8500: Remove the nonfunctional sidetone apply control
bui duc phuc <[email protected]>
ASoC: codecs: ab8500: Use guard() for mutex locks
Uwe Kleine-König (The Capable Hub) <[email protected]>
ASoC: codecs: ab8500: Remove suspicious code
Kuninori Morimoto <[email protected]>
ASoC: codecs: ab8500: convert to snd_soc_dapm_xxx()
Kuninori Morimoto <[email protected]>
ASoC: codecs: ab8500: use snd_kcontrol_chip() instead of snd_soc_kcontrol_component()
Christian Loehle <[email protected]>
ACPI: CPPC: Validate the _CPC package header
Guixin Liu <[email protected]>
cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails
Guixin Liu <[email protected]>
cxl/region: Create node access attributes for CFMWS-only NUMA nodes
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()
Li RongQing <[email protected]>
RDMA/core: Fix swapped list_add_tail() arguments in ib_add_sub_device()
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
Guixin Liu <[email protected]>
cxl/core: Fix dport use-after-free via the einj_inject debugfs file
Dan Williams <[email protected]>
cxl/port: Move dport RAS setup to dport add time
Dan Williams <[email protected]>
cxl/port: Move dport probe operations to a driver event
Dan Williams <[email protected]>
cxl/port: Move decoder setup before dport creation
Dan Williams <[email protected]>
cxl/port: Cleanup dport removal with a devres group
Dan Williams <[email protected]>
cxl/port: Reduce number of @dport variables in cxl_port_add_dport()
Dave Jiang <[email protected]>
cxl/test: Add support for acpi extended linear cache
Guixin Liu <[email protected]>
cxl/port: Fix uninitialized coordinates reported for RCDs
Guixin Liu <[email protected]>
cxl/pci: Skip reset detection for DVSEC emulated decoders
Julian Braha <[email protected]>
kconfig: fix extra output from savedefconfig on out-of-range defaults
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
Mingpei CAO <[email protected]>
libbpf: Reject local struct_ops bitfields before data access
Geert Uytterhoeven <[email protected]>
dt-bindings: interrupt-controller: chrp,open-pic: Fix dangling reference
Geert Uytterhoeven <[email protected]>
dt-bindings: interrupt-controller: chrp,open-pic: Typo s/pci/pic/
Lizhi Hou <[email protected]>
accel/amdxdna: Set HMM_PFN_REQ_WRITE for writable BO faults
Lizhi Hou <[email protected]>
accel/amdxdna: Fully initialize map structure before registering notifier
Nikolay Borisov <[email protected]>
ata: sata_dwc_460ex: Don't enable interrupt if libATA core registration fails
Hari Mishal <[email protected]>
drm/amdgpu/atom: bound the VBIOS date, part number, version and build getters
Lijo Lazar <[email protected]>
drm/amdgpu: bounds check ATOM IIO table parsing
Lijo Lazar <[email protected]>
drm/amdgpu: Print full vbios info
Mario Limonciello (AMD) <[email protected]>
drm/amd: Add correct prefix for VBIOS message
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
Francesco Valla <[email protected]>
spi: virtio: fix max frequency setting
Vijendar Mukunda <[email protected]>
ASoC: SOF: amd: fix amd_sof_acp_probe() error unwind ordering
Vijendar Mukunda <[email protected]>
ASoC: SOF: amd: fix amd_sof_acp_remove() teardown ordering
Shakeel Butt <[email protected]>
kernfs: don't hold kernfs_rwsem across dir_emit()
Shakeel Butt <[email protected]>
kernfs: don't repeat or skip an entry when readdir resumes
Christian Brauner <[email protected]>
kernfs: make directory seek namespace-aware
Christian Brauner <[email protected]>
kernfs: pass struct ns_common instead of const void * for namespace tags
Shakeel Butt <[email protected]>
kernfs: don't hold kernfs_rwsem across notification delivery
Zizhi Wo <[email protected]>
md/raid5: reject a per-device size smaller than one chunk
Zhihao Cheng <[email protected]>
md/raid5: setup_conf: Fix null-ptr-def in error handling path
Chen Cheng <[email protected]>
md/raid5: reject raid4/5 arrays with too few disks
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
Alexei Starovoitov <[email protected]>
selftests/bpf: Wait for links to come up in lwt_ip_encap
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
Ștefan Ghețu <[email protected]>
ASoC: SOF: imx: Prevent stack OOB read in DSP panic dump
Pengpeng Hou <[email protected]>
ASoC: rt1015: make control calibration failures observable
Kuninori Morimoto <[email protected]>
ASoC: codecs: rt1015: convert to snd_soc_dapm_xxx()
Karl Mehltretter <[email protected]>
pinctrl: stm32: Drop the nonexistent CONFIG_MACH_STM32MP25 from the STM32MP257 default
Alison Schofield <[email protected]>
cxl/port: Bound switch decoder target array access by nr_targets
Alison Schofield <[email protected]>
cxl/hdm: Restore commit_end when decoder enumeration fails
Alison Schofield <[email protected]>
cxl/hdm: Make switch decoder target parsing endian-safe
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
Aleksander Jan Bajkowski <[email protected]>
crypto: eip93 - fix ssl mac bit field definition
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
Baolin Liu <[email protected]>
fs/ntfs3: reject FS_IOC_SETFSLABEL on readonly mounts
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
Guangshuo Li <[email protected]>
platform/x86/intel/vsec: reset state before re-enumerating
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
Karl Mehltretter <[email protected]>
block: Fix the thaw_bdev reference in bdev_freeze() kernel-doc
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
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
Sang-Heon Jeon <[email protected]>
memblock: reject non-page-aligned reserve_mem regions
Linkai Gong <[email protected]>
firmware: imx: dsp: fix mailbox channel leak on kasprintf failure
Jianan Huang <[email protected]>
f2fs: quota: fix stale lock holder on remount failure
Jérôme Pouiller <[email protected]>
wifi: wfx: fix use-after-free of the cooling work on device removal
Takahiro Kuwano <[email protected]>
mtd: spi-nor: spansion: Remove s25fs256s0
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
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
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
Mahe Tardy <[email protected]>
libbpf: fix log level propagation for light skeleton loaders
Karl Mehltretter <[email protected]>
regulator: qcom-rpmh: Fix the return value in rpmh_regulator_vrm_get_optimum_mode() kernel-doc
Ian Rogers <[email protected]>
perf header: Fix potential memory corruption in cpu_cache_level__read
Junhui Liu <[email protected]>
clk: sunxi-ng: sun55i-a523-r-ccu: Use P-only clocks for timers
Junhui Liu <[email protected]>
clk: sunxi-ng: sun55i-a523-ccu: Use P-only clocks for high-speed timers
Junhui Liu <[email protected]>
clk: sunxi-ng: sun55i-a523-ccu: Use M-only clocks for MBUS, IOMMU and DRAM
Junhui Liu <[email protected]>
clk: sunxi-ng: div: Add feature support to M clock macro
Karl Mehltretter <[email protected]>
cgroup/dmem: Fix eviction helper reference in dmem_cgroup_try_charge()
Rafael J. Wysocki <[email protected]>
ACPI: video: Fix backlight unregistration ordering
Rafael J. Wysocki <[email protected]>
ACPI: fan: Fix memory leak due to leftover devm_kcalloc() argument
Karl Mehltretter <[email protected]>
ALSA: control: Fix virtual master creation reference in kernel-doc
Michael S. Tsirkin <[email protected]>
virtio_pci_modern: move avq cleanup from reset to del_vqs
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
Chaithanya Lagisetty <[email protected]>
x86/svm: Avoid sign extension of SVM_EVTINJ_VALID in 64-bit expressions
Jared McArthur <[email protected]>
arm64: dts: ti: k3-j784s4-j742s2-evm-common: Set ACSPCIe refclk to MAIN_PLL2_HSDIV4 for pcie1
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
Fabrice Gasnier <[email protected]>
ARM: dts: stm32: fix vdda supply for onboard hub on stm32mp135f-dk
Fabrice Gasnier <[email protected]>
ARM: dts: stm32: fix vdda supply for onboard hub on stm32mp157c-ev1
Fabrice Gasnier <[email protected]>
ARM: dts: stm32: fix vdda supply for onboard hub on stm32mp15 DK boards
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
Brian Norris <[email protected]>
PM: runtime: Only queue an idle check for RPM-linked suppliers
Xueqin Luo <[email protected]>
cpuidle: teo: Do not return a disabled idle state
Alain Volmat <[email protected]>
ARM: dts: stm32: add LTDC / DCMIPP access controller for STM32MP135
Ahmad Fatoum <[email protected]>
ARM: dts: stm32: fairytux2: change stdout-path baud rate from 9600 to 115200
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
Sumeet Pawnikar <[email protected]>
thermal: gov_power_allocator: Fix NULL pointer dereference in update_tz()
Rafael J. Wysocki <[email protected]>
ACPI: glue: Fix up and adjust acpi_unbind_one()
Rafael J. Wysocki <[email protected]>
ACPI: glue: Carry out companion lookup under bus_type_sem
Jan Kara <[email protected]>
gfs2: Fix journaled truncate range end offset
Jiawen Liu <[email protected]>
memory: exynos5422-dmc: handle clock enable failures
Karl Mehltretter <[email protected]>
crypto: lskcipher - preserve state across unaligned chunks
Linmao Li <[email protected]>
crypto: mxs-dcp - handle zero-length skcipher requests
Jérémy Jean <[email protected]>
crypto: rsassa-pkcs1 - reject undersized keys when verifying
Jérémy Jean <[email protected]>
crypto: rsassa-pkcs1 - reject undersized keys when signing
Ahsan Atta <[email protected]>
crypto: qat - release instance on DH fallback allocation failure
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()
Luca Weiss <[email protected]>
arm64: dts: qcom: sm7225-fairphone-fp4: Disable PMK8350 PON
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: Fix error path leak in scmi_raw_message_send()
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
Junxian Huang <[email protected]>
RDMA/hns: Limit gmv_entry_num to avoid memory waste
Yuho Choi <[email protected]>
PCI: xgene: Use managed clock for PCIe controller
Justin Yeh <[email protected]>
arm64: dts: mediatek: mt8188-geralt: Enlarge SCP core0 memory region
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 NULL pointer dereference on PCI error recovery
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: Fix use-after-free of the firmware event workqueue
Chandrakanth Patil <[email protected]>
scsi: mpi3mr: zero out diagnostic buffer status memory
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 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
Henrik Grimler <[email protected]>
dt-bindings: power: bq27xxx: bq27z561: allow interrupts property
Ryan Brue <[email protected]>
power: supply: bq24190_charger: use the wake irq API
hpp.iscas <[email protected]>
power: supply: mm8013: Publish the OF module alias
Karl Mehltretter <[email protected]>
power: supply: mp2629: Use the full batt_impedance_compensation name in the ABI document
K Prateek Nayak <[email protected]>
cpufreq/amd-pstate-ut: Fix amd_pstate_ut_check_freq failure with 'Requested CPU Min frequency' BIOS option
Willem de Bruijn <[email protected]>
selftests: net: csum: filter packets by source address and port
Aaradhana Sahu <[email protected]>
wifi: ath12k: Free allocated external IRQs on request_irq() failure
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: glue: Rework the success message in acpi_device_notify()
Rafael J. Wysocki <[email protected]>
ACPI: glue: Reduce debug noise from acpi_device_notify()
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
Pengpeng Hou <[email protected]>
ASoC: nau8822: keep regcache offline while supplies are off
Alexey Charkov <[email protected]>
ASoC: codecs: nau8822: add support for supply regulators
Kuninori Morimoto <[email protected]>
ASoC: codecs: nau8822: convert to snd_soc_dapm_xxx()
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
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
Li Youhong <[email protected]>
spi: amlogic-spisg: check clk_prepare_enable() return value
Pengpeng Hou <[email protected]>
ASoC: sta32x: make power restoration transactional
Kuninori Morimoto <[email protected]>
ASoC: codecs: sta32x: convert to snd_soc_dapm_xxx()
Pengpeng Hou <[email protected]>
ASoC: codecs: sma1307: validate setting firmware layout
Karl Mehltretter <[email protected]>
mtd: spinand: Fix spinand_manufacturer_ops kernel-doc
Mingpei CAO <[email protected]>
libbpf: Fix array comparison in BTF dedup
Aaron Tomlin <[email protected]>
perf trace: Add upper bound checks for augmented BTF struct printing
Aaron Tomlin <[email protected]>
perf trace: Enhance BTF type formatting to symbolise kernel function pointers
Mark Brown <[email protected]>
perf bpf: Fix up build failure due to change of btf_vlen() return type
Qiuxu Zhuo <[email protected]>
EDAC/i10nm: Fix Granite Rapids ADXL MC mapping
Tianyi Chen <[email protected]>
selftests/sched_ext: Handle CPU hotplug write failures
Manush Prajwal <[email protected]>
pwm: lp3943: fix NULL pointer dereference for an unconfigured channel
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
Igor Belwon <[email protected]>
arm64: dts: mediatek: mt6893-pinfunc: Fix pinctrl header path
Brian Norris <[email protected]>
arm64: dts: mediatek: Add #{address,size}-cells to Chromium-based /firmware
Pengpeng Hou <[email protected]>
ASoC: fs210x: report register restore errors
Pengpeng Hou <[email protected]>
ASoC: es8389: report resume restore errors
Zhang Yi <[email protected]>
ASoC: codecs: ES8389: Modify volatile_register
Pengpeng Hou <[email protected]>
ASoC: es8375: report resume restore errors
Pengpeng Hou <[email protected]>
ASoC: es8326: report resume restore errors
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
Keguang Zhang <[email protected]>
pwm: loongson: Reload PWM configuration through counter reset
Karl Mehltretter <[email protected]>
ABI: sysfs-class-infiniband: Drop the entries of the removed qib driver
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
Aaron Tomlin <[email protected]>
perf trace: Fix error checking in btf_struct_scnprintf()
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]>
ACPI: APEI: GHES: Bound AER info copy and sanitize software metadata
Dave Jiang <[email protected]>
efi/cper: Read only validated fields in cper_mem_err_pack()
Dave Jiang <[email protected]>
ACPI: APEI: GHES: Validate CXL protocol error section length before RAS cap copy
Dave Jiang <[email protected]>
ACPI: extlog: Defer CXL protocol error handling to avoid lock inversion
Fabio M. De Francesco <[email protected]>
ACPI: extlog: Trace CPER CXL Protocol Error Section
Fabio M. De Francesco <[email protected]>
ACPI: APEI: GHES: Add helper to copy CPER CXL protocol error info to work struct
Fabio M. De Francesco <[email protected]>
ACPI: extlog: Trace CPER PCI Express Error Section
Fabio M. De Francesco <[email protected]>
ACPI: extlog: Trace CPER Non-standard Section Body
Dave Jiang <[email protected]>
ACPI: APEI: GHES: Bound CXL event record copy to the firmware section length
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
Sunny Luo <[email protected]>
spi: amlogic: spisg: Fix the incorrect keep_ss of the last descriptor
Xianwei Zhao <[email protected]>
spi: amlogic: spisg: Fix transfer size limit and timeout handling
Alexis Lothoré (eBPF Foundation) <[email protected]>
selftests/bpf: make cmdline_contains stricter
Richard Cheng <[email protected]>
cxl/fwctl: Propagate feature RPC delivery errors
Richard Cheng <[email protected]>
cxl/features: Reject feature offset that overflows 16-bit field
Jared McArthur <[email protected]>
arm64: dts: ti: k3-j722s-evm: Switch audio codec clock from audio_refclk1 to external clock
Maulik Shah <[email protected]>
arm64: dts: qcom: purwa: Drop the Hamoa workaround for PDC
Pengpeng Hou <[email protected]>
memory: brcmstb_dpfe: validate firmware section sizes
Pengpeng Hou <[email protected]>
irqchip/riscv-imsic: Use GENMASK for base address masks
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: fix IEEE80211_TX_CTL_REQ_TX_STATUS mixup
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
Lachlan Hodges <[email protected]>
wifi: mac80211: don't seed an S1G sta's last_rate
Paul Dolan <[email protected]>
selftests/pidfd: fix PPID values in error message
Paul Dolan <[email protected]>
selftests/clone3: tighten CLONE_CLEAR_SIGHAND conflict test
Gregor Herburger <[email protected]>
arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible
Peter Robinson <[email protected]>
arm64: dts: broadcom: bcm2712: adjust display status
Rob Herring (Arm) <[email protected]>
arm64: dts: broadcom: bcm2712: Move non simple-bus nodes to root level
Maíra Canal <[email protected]>
arm64: dts: broadcom: bcm2712: Add V3D device node
Miaoqing Pan <[email protected]>
wifi: ath11k: unregister PM notifier on QMI init failure path
Miaoqing Pan <[email protected]>
wifi: ath11k: fix NULL dereference in ahb remove when QMI init incomplete
Miaoqing Pan <[email protected]>
wifi: ath11k: fix sporadic WLAN initialization failures
Julius Bairaktaris <[email protected]>
wifi: ath11k: disable interrupts during firmware crash recovery
Baochen Qiang <[email protected]>
wifi: ath12k: signal regd update completion when reg event is dropped
Miquel Raynal (Schneider Electric) <[email protected]>
clk: Use the generic OF phandle parsing in only one place
Chengchang Tang <[email protected]>
RDMA/hns: Fix missing CQE when UD QP use different SL
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
Richard Zhu <[email protected]>
arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap
Pengpeng Hou <[email protected]>
remoteproc: imx_dsp: Acquire runtime PM before adding carveouts
Peng Fan <[email protected]>
remoteproc: imx_dsp_rproc: Drop extra space
Alexander Aring <[email protected]>
dlm: fix variable key length lookup
Joseph Qi <[email protected]>
dlm: fix buffer overflow from negative len in dlm_search_rsb_tree
Danila Chernetsov <[email protected]>
dlm: fix NULL pointer dereference in dlm_dump_rsb_name()
Danila Chernetsov <[email protected]>
dlm: validate lock modes in recovery messages
Vasily Gorbik <[email protected]>
sched/core: Don't steal a proxy-exec donor
Miklos Szeredi <[email protected]>
fuse: fall back to copy_splice_read() on FOPEN_DIRECT_IO
Tao Cui <[email protected]>
sched_ext/scx_flatcg: Make cgv_node_less() wraparound-safe
Abdurrahman Karadag <[email protected]>
wifi: rtw88: debugfs: don't vzalloc(0) when rsvd_page is read unconfigured
Dave Jiang <[email protected]>
cxl/ras: Pass the PCI device's struct device to match_memdev_by_parent()
Chris Morgan <[email protected]>
arm64: dts: rockchip: Correct Device Orientation on Gameforce Ace
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
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
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
Taniya Das <[email protected]>
dt-bindings: clock: qcom,milos-videocc: Add missing power-domains support
Taniya Das <[email protected]>
dt-bindings: clock: qcom,milos-camcc: Add missing power-domains support
Luca Weiss <[email protected]>
dt-bindings: clock: qcom,milos-camcc: Document interconnect path
Runyu Xiao <[email protected]>
remoteproc: xlnx: Initialize mailbox work before requesting channels
Shaikh Kamaluddin <[email protected]>
cxl/mce: Avoid alias page retirement for corrected errors
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()
Konrad Dybcio <[email protected]>
dt-bindings: display: panel: samsung,s6e8aa5x01: Allow common properties
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: Free event in jit_repipe_code_move()
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
Matti Vaittinen <[email protected]>
iio: pressure: rohm-bm1390: Fix AVE_NUM initialization
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
Chandradhar Kumar <[email protected]>
regulator: fixed: reject incompatible platform devices
Yuan Chen <[email protected]>
bpftool: Fix spurious batch file read error
Harry Wentland <[email protected]>
drm/vkms: Fix limited-range YCbCr to RGB conversion scaling
Tapio Reijonen <[email protected]>
gpio: pcf857x: implement get_direction()
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Reject oversized stream read buffers
Nicolas Frattaroli <[email protected]>
drm/panthor: Take reqs_lock in soft_reset for clearing pending_reqs
Jianlin Shi <[email protected]>
bpf: Reject oversized bpf_stream_vprintk output with -E2BIG
Jianlin Shi <[email protected]>
bpf: Return partial progress from bpf_stream_read on fault
Jianlin Shi <[email protected]>
bpf: Fix stream capacity leak in staging path
Jianlin Shi <[email protected]>
bpf: Roll back stream capacity when allocation fails
Alexis Lothoré (eBPF Foundation) <[email protected]>
selftests/bpf: Allocate a larger timeout for connection
Darren Carreras <[email protected]>
libbpf: Avoid overflow in BTF.ext bounds check
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
Tejun Heo <[email protected]>
bpf: sched_ext: Mark ops argument container pointer fields as trusted
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/cpufeatures: Make X86_FEATURE leaf 17 Linux-specific
Tapio Reijonen <[email protected]>
serial: max310x: schedule tx_work directly from the IRQ handler
Alexandr <[email protected]>
ALSA: hda/realtek: Enable mute and mic-mute LEDs on HP ENVY 17-cr0xxx
Rafael J. Wysocki <[email protected]>
ACPI: button: Enable wakeup GPEs for ACPI buttons at probe time
Pei Xiao <[email protected]>
comedi: dt2811: fix shift-out-of-bounds in IRQ check
Yang Zi <[email protected]>
comedi: addi_apci_3xxx: fix subdevice count underallocation
Amir Goldstein <[email protected]>
ovl: inherit FMODE_NONOTIFY when reading directory layers
David Hildenbrand (Arm) <[email protected]>
mm/shmem: fix accounting of swapin-error markers
Roman Li <[email protected]>
drm/amd/display: Reset DET of HUBPs without a plane before outstanding updates
David Hildenbrand (Arm) <[email protected]>
mm/shmem: make shmem_file() check the file's inode
Bernard Pidoux <[email protected]>
hdlcdrv: close the hardware driver once, and only if it was opened
Bernard Pidoux <[email protected]>
rose: disconnect sockets under their lock when a neighbour goes away
Bernard Pidoux <[email protected]>
rose: clear the other half of a through route a new call takes over
Bernard Pidoux <[email protected]>
rose: give loopback answers LCIs that calls cannot be given
Bernard Pidoux <[email protected]>
rose: refuse an empty message when the Q bit is included
Bernard Pidoux <[email protected]>
rose: keep a socket unbound when connect() fails to autobind it
Bernard Pidoux <[email protected]>
rose: check the length of Restart Request and Diagnostic frames
Bernard Pidoux <[email protected]>
rose: change the loopback nodes under the neighbour list lock too
Bernard Pidoux <[email protected]>
rose: hold RTNL while a route is added or deleted
Bernard Pidoux <[email protected]>
rose: walk the neighbour list under its lock when a device goes down
Chris Mason <[email protected]>
mm: fix deadlock of mremap() against UFFDIO_MOVE
Ajay Kumar Nandam <[email protected]>
ASoC: qcom: q6apm: clear g_apm on driver removal
Alexei Solcanu <[email protected]>
hwmon: (gpd-fan) Reset both fans to automatic on duo boards
David Hildenbrand (Arm) <[email protected]>
fork: take mmap_lock before copying mm_struct
David Hildenbrand (Arm) <[email protected]>
mm/huge_memory: properly handle refcounted PUD mappings on fork
Lorenzo Stoakes (ARM) <[email protected]>
fs/proc/task_mmu: fix missed VMAs when reading /proc/PID/maps and friends
David Hildenbrand (Arm) <[email protected]>
mm/rmap: handle device-exclusive entries in folio_referenced_one()
Josef Bacik <[email protected]>
mm/filemap: read mapping->a_ops->free_folio under i_lock
David Hildenbrand (Arm) <[email protected]>
mm/shmem: preserve allocation errors when swapping in large entries
Cen Zhang (Microsoft) <[email protected]>
apparmor: fix query_data() output overlapping the lookup key
John Johansen <[email protected]>
apparmor: optimize current_label_crit_section() with needput
Gregory Price <[email protected]>
mm/userfaultfd: compare exact registration modes before skipping
Ian Bridges <[email protected]>
ksmbd: let the owner read and change the DACL when no ACE names it
YouYou Yu <[email protected]>
quota: initialize dquot cache before mounting rootfs
David Hildenbrand (Arm) <[email protected]>
mm/madvise: preserve VMA_SOFTDIRTY_BIT when changing anonymous names
Kuba Piecuch <[email protected]>
sched_ext: Skip ops.set_weight() for disabled tasks
Daehyeon Ko <[email protected]>
sched/fair: Clear throttle state when leaving the fair class
Peter Zijlstra <[email protected]>
sched: Fold sched_class::switch{ing,ed}_{to,from}() into the change pattern
Peter Zijlstra <[email protected]>
sched: Re-arrange the {EN,DE}QUEUE flags
David Hildenbrand (Arm) <[email protected]>
mm/vma: don't leak the charge for stack growth
Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: avoid losing atomic VMA flags when setting sticky VMA flags
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()
Ricardo Neri <[email protected]>
hwmon: (coretemp) Read TjMax only when refreshing the temperature
Chris Mason <[email protected]>
mm/huge_memory: fix truncate racing with PMD zapping
David Hildenbrand (Arm) <[email protected]>
mm: fix address wraparound when scanning large folio PTEs
Aditya Sharma <[email protected]>
mm/memory: update stale locking comments for fault handlers
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
Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
Jann Horn <[email protected]>
cipso: stop modifying live ip_options_rcu
Ian Bridges <[email protected]>
ksmbd: do not read past the DACL in the access denied debug message
Cen Zhang <[email protected]>
ocfs2: validate move extents against a stable EOF
Dmitry Antipov <[email protected]>
ocfs2: add extra flags check in ocfs2_ioctl_move_extents()
Qu Wenruo <[email protected]>
btrfs: raid56: do not verify the content if there is no data checksum
Daejun Park <[email protected]>
xfs: refuse a pNFS LAYOUTCOMMIT of a range without blocks
Prike Liang <[email protected]>
drm/amdgpu/userq: wait for GPU reset before mapping or unmapping queues
Kevin Wang <[email protected]>
drm/amd/pm: populate unique ID for smu 13.0.7
Guenter Roeck <[email protected]>
hwmon: (coretemp) Set nr_cores only after core_data allocation succeeds
Melissa Wen <[email protected]>
drm/amd/display: Signal PQ EOTF in FreeSync infopacket for DP HDR
Yuqiang Sun <[email protected]>
ALSA: usb-audio: qcom: Check the return value of qmi_handle_init()
Xu Rao <[email protected]>
ALSA: usb-audio: qcom: Free QMI handle
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
Gregory Price (Meta) <[email protected]>
mm/page_alloc: let the highest memory node recover from hopeless state
Johannes Weiner <[email protected]>
mm: page_alloc: do not give all non-blocking requests reserve access
Myeonghun Pak <[email protected]>
hwmon: (sht15) Stop deferred work before releasing its resources
Pan Chuang <[email protected]>
hwmon: (sht15) Remove redundant dev_err()
Maxime Chevallier <[email protected]>
net: Use a dedicated flag to track disabled napi instances
Lance Yang <[email protected]>
khugepaged: fix readahead lock inversion in collapse_file()
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
Junjie Cao <[email protected]>
Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728
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
Yufan Chen <[email protected]>
io_uring/eventfd: reset deferred signal state
Eric Dumazet <[email protected]>
inet: frags: bound the wmem charge of the socket completing a reassembly
Ciro Pedrini <[email protected]>
platform/x86: hp-wmi: Add OMEN board 8A17 thermal profile support
Ilpo Järvinen <[email protected]>
platform/x86: hp-wmi: Order DMI board name arrays
Javier Carrasco <[email protected]>
hwmon: chipcap2: synchronize ready IRQ state
Javier Carrasco <[email protected]>
hwmon: chipcap2: serialize access to the alarm indicators
Guenter Roeck <[email protected]>
hwmon: (chipcap2) Drop unnecessary include files
Georgia Garcia <[email protected]>
apparmor: fix profile leak when a policy load fails
John Johansen <[email protected]>
apparmor: constify aa_profile parameters on read-only compute paths
John Johansen <[email protected]>
apparmor: constify aa_perms parameters that are read-only
John Johansen <[email protected]>
apparmor: refactor xattr attachment, to take the file path
Jesse Zhang <[email protected]>
drm/amdgpu: drop the gang leader reference when freeing gang jobs
Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: fix expansion of VMA_MIXEDMAP_BIT VMAs
Jesse Zhang <[email protected]>
drm/amdgpu: sign extend the addresses GEM_OP(GET_MAPPING_INFO) returns
Chao Yu <[email protected]>
f2fs: fix to fetch ino via ino_of_node() under cache lock
Amir Goldstein <[email protected]>
ovl: inherit FMODE_NONOTIFY when opening directory realfiles
Christian Brauner <[email protected]>
ovl: port ovl_dir_llseek() to cred guard
Darong Lu <[email protected]>
libceph: initialize CRUSH choose argument weights
Javier Carrasco <[email protected]>
hwmon: chipcap2: disable device after hwmon teardown
Javier Carrasco <[email protected]>
hwmon: chipcap2: fix IRQ teardown ordering
HOYOUNG SEO <[email protected]>
scsi: ufs: core: Change the error check sequence for auto hibern8
Guixin Liu <[email protected]>
cxl/pci: Use the Device GPF DVSEC for restricted endpoints
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
Ali Ahmet Memiş <[email protected]>
platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively
Ali Ahmet Memiş <[email protected]>
ACPI: utils: Add exclusive AML evaluation helpers
Ravi Hothi <[email protected]>
ASoC: qcom: audioreach: fix module cfg blob size handling
Eklavya Singh <[email protected]>
ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute
Karl Mehltretter <[email protected]>
ocfs2/cluster: hold a reference on the heartbeat thread
Alexey Charkov <[email protected]>
PCI/pwrctrl: generic: Fix leaking array from of_regulator_bulk_get_all()
Bjorn Helgaas <[email protected]>
PCI/pwrctrl: slot: Rename private struct and pointers for consistency
guolingxing <[email protected]>
btrfs: prevent deleting the wrong subvolume by ID
Josef Bacik <[email protected]>
pidfs: don't let PIDFD_GET_INFO miss a reaped task
Christian Brauner <[email protected]>
pidfs: prepare to drop exit_info pointer
William Palacek <[email protected]>
drm/amdkfd: Validate the control stack of a restored queue
Lee Jones <[email protected]>
ASoC: SOF: Intel: hda-sdw-bpt: Stop active DMA before closing BPT streams
Bard Liao <[email protected]>
ASoC/soundwire: Intel: reset the PCMSyCM registers in hda_sdw_bpt_close
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
Josef Bacik <[email protected]>
mm/shmem: hold off eviction in shmem_writeout()
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
Marc Zyngier <[email protected]>
KVM: arm64: Sanitise ID_AA64MMFR3_EL1.S1P[IO]E
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
-------------
Diffstat:
.gitignore | 1 - Documentation/ABI/stable/sysfs-class-infiniband | 118 -- Documentation/ABI/testing/sysfs-bus-pci | 14 +- Documentation/ABI/testing/sysfs-class-power-mp2629 | 2 +- Documentation/admin-guide/LSM/LoadPin.rst | 10 +- Documentation/admin-guide/LSM/ipe.rst | 4 +- Documentation/admin-guide/kernel-parameters.txt | 3 + .../bindings/arm/mediatek/mediatek,audsys.yaml | 2 +- .../bindings/clock/mediatek,apmixedsys.yaml | 2 +- .../bindings/clock/mediatek,topckgen.yaml | 2 +- .../bindings/clock/qcom,milos-camcc.yaml | 27 + .../bindings/clock/qcom,milos-videocc.yaml | 19 + .../devicetree/bindings/display/msm/hdmi.yaml | 4 +- .../panel/samsung,s6e8aa5x01-ams561ra01.yaml | 2 +- .../devicetree/bindings/dma/stericsson,dma40.yaml | 14 + .../bindings/iio/light/liteon,ltr501.yaml | 3 +- .../interrupt-controller/chrp,open-pic.yaml | 7 +- .../media/allwinner,sun4i-a10-video-engine.yaml | 21 +- .../devicetree/bindings/power/supply/bq27xxx.yaml | 1 - .../power/supply/stericsson,ab8500-charger.yaml | 76 +- .../devicetree/bindings/vendor-prefixes.yaml | 20 + Documentation/leds/leds-st1202.rst | 5 + Documentation/mm/process_addrs.rst | 14 +- Documentation/networking/netdevices.rst | 9 + Documentation/networking/psp.rst | 8 + Documentation/trace/histogram.rst | 3 + Documentation/virt/hyperv/overview.rst | 12 +- Makefile | 4 +- arch/alpha/Kconfig | 1 + arch/alpha/mm/fault.c | 29 + arch/arc/Makefile | 9 +- arch/arc/lib/Makefile | 8 + arch/arm/boot/dts/gemini/gemini.dtsi | 2 +- .../boot/dts/marvell/armada-385-clearfog-gtr.dtsi | 2 +- arch/arm/boot/dts/marvell/armada-388-helios4.dts | 23 +- arch/arm/boot/dts/marvell/armada-395-gp.dts | 1 - arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi | 40 +- arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 9 +- arch/arm/boot/dts/st/ste-ab8500.dtsi | 6 - arch/arm/boot/dts/st/ste-ab8505.dtsi | 23 +- arch/arm/boot/dts/st/ste-dbx5x0.dtsi | 5 - arch/arm/boot/dts/st/ste-href-ab8500.dtsi | 104 ++ arch/arm/boot/dts/st/ste-href-ab8505.dtsi | 118 +- arch/arm/boot/dts/st/stm32mp135.dtsi | 44 +- arch/arm/boot/dts/st/stm32mp135f-dk.dts | 1 + .../arm/boot/dts/st/stm32mp153c-lxa-fairytux2.dtsi | 2 +- arch/arm/boot/dts/st/stm32mp157c-ev1.dts | 1 + arch/arm/boot/dts/st/stm32mp157c-lxa-mc1.dts | 2 +- arch/arm/boot/dts/st/stm32mp157f-dk2-scmi.dtsi | 1 + arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi | 2 +- arch/arm/boot/dts/st/stm32mp15xx-dhcom-som.dtsi | 2 + arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi | 1 + arch/arm/include/asm/domain.h | 17 - arch/arm/include/asm/memory.h | 4 +- arch/arm/include/asm/pgtable-2level-hwdef.h | 1 - arch/arm/include/asm/pgtable-2level.h | 7 - arch/arm/include/asm/sparsemem.h | 4 + arch/arm/kernel/efi.c | 13 + arch/arm/mach-mvebu/Kconfig | 4 +- arch/arm/mach-versatile/platsmp-vexpress.c | 4 +- arch/arm/mach-versatile/v2m.c | 4 +- arch/arm/mm/Kconfig | 7 - arch/arm/mm/alignment.c | 10 +- arch/arm/mm/dma-mapping.c | 5 +- arch/arm/mm/ioremap.c | 53 +- arch/arm/mm/mmu.c | 76 +- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 4 +- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 9 + .../boot/dts/amlogic/meson-sm1-odroid-hc4.dts | 4 +- arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts | 5 + .../boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts | 90 +- arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 33 +- arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 14 +- .../boot/dts/freescale/imx8mp-kontron-dl.dtso | 11 + arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 32 +- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 20 +- arch/arm64/boot/dts/freescale/imx8ulp-evk.dts | 4 +- arch/arm64/boot/dts/freescale/imx93-14x14-evk.dts | 4 +- arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts | 4 +- arch/arm64/boot/dts/freescale/imx95.dtsi | 4 +- arch/arm64/boot/dts/mediatek/mt6893-pinfunc.h | 2 +- arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 5 + arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 +- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 5 + arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi | 5 + arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi | 7 +- arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 5 + arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi | 5 + arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts | 101 +- arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi | 8 +- arch/arm64/boot/dts/qcom/monaco-evk.dts | 3 +- arch/arm64/boot/dts/qcom/purwa.dtsi | 5 + arch/arm64/boot/dts/qcom/qcs8300-ride.dts | 4 +- arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 13 +- .../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 2 + arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 4 + arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +- arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi | 1 + arch/arm64/boot/dts/qcom/x1-crd.dtsi | 1 + arch/arm64/boot/dts/qcom/x1-dell-thena.dtsi | 1 + arch/arm64/boot/dts/qcom/x1-hp-omnibook-x14.dtsi | 1 + arch/arm64/boot/dts/qcom/x1e001de-devkit.dts | 3 +- .../dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 1 + .../qcom/x1e80100-dell-inspiron-14-plus-7441.dts | 4 +- .../boot/dts/qcom/x1e80100-dell-xps13-9345.dts | 1 + .../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 1 + arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 1 + .../boot/dts/qcom/x1p42100-lenovo-thinkbook-16.dts | 1 + arch/arm64/boot/dts/rockchip/rk3328.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-firefly.dts | 32 +- arch/arm64/boot/dts/rockchip/rk3566-base.dtsi | 4 + arch/arm64/boot/dts/rockchip/rk3568.dtsi | 4 + arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 1 - arch/arm64/boot/dts/rockchip/rk3576.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi | 2 +- .../boot/dts/rockchip/rk3588s-gameforce-ace.dts | 7 +- .../arm64/boot/dts/rockchip/rk3588s-nanopi-r6.dtsi | 20 + arch/arm64/boot/dts/st/stm32mp231.dtsi | 4 +- arch/arm64/boot/dts/st/stm32mp251.dtsi | 4 +- arch/arm64/boot/dts/ti/k3-am62-verdin-ivy.dtsi | 41 +- arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi | 41 +- arch/arm64/boot/dts/ti/k3-am62a-phycore-som.dtsi | 2 +- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 2 +- arch/arm64/boot/dts/ti/k3-am62d2-evm.dts | 2 +- arch/arm64/boot/dts/ti/k3-am62p-verdin.dtsi | 2 +- arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 2 +- arch/arm64/boot/dts/ti/k3-am62p5-var-som.dtsi | 2 +- arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 20 +- .../boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi | 2 + arch/arm64/include/asm/kvm_host.h | 1 + arch/arm64/include/asm/rsi_smc.h | 2 +- arch/arm64/kernel/pi/Makefile | 1 + arch/arm64/kvm/config.c | 77 + arch/arm64/kvm/sys_regs.c | 3 + arch/arm64/kvm/vgic/vgic-its.c | 26 +- arch/arm64/net/bpf_jit_comp.c | 32 +- arch/m68k/apollo/dn_ints.c | 6 + arch/m68k/mac/config.c | 31 +- arch/microblaze/Makefile | 6 +- arch/microblaze/include/asm/uaccess.h | 3 +- arch/microblaze/kernel/cpu/cpuinfo.c | 1 + arch/microblaze/kernel/ptrace.c | 3 + arch/mips/Makefile | 22 +- arch/mips/cavium-octeon/dma-octeon.c | 2 +- arch/nios2/kernel/nios2_ksyms.c | 1 + arch/powerpc/kernel/trace/ftrace_entry.S | 6 + arch/riscv/boot/dts/sophgo/cv180x.dtsi | 2 +- arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 2 +- arch/riscv/boot/dts/starfive/jh7100-common.dtsi | 28 +- arch/riscv/boot/dts/starfive/jh7100.dtsi | 67 +- arch/riscv/boot/dts/starfive/jh7110-common.dtsi | 27 +- arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts | 6 +- .../boot/dts/starfive/jh7110-milkv-marscm.dtsi | 6 +- .../boot/dts/starfive/jh7110-pine64-star64.dts | 6 +- .../jh7110-starfive-visionfive-2-lite.dtsi | 165 +++ .../dts/starfive/jh7110-starfive-visionfive-2.dtsi | 6 +- arch/riscv/boot/dts/starfive/jh7110.dtsi | 67 +- arch/riscv/include/asm/insn.h | 2 +- arch/riscv/net/bpf_jit_comp64.c | 14 +- arch/riscv/net/bpf_jit_core.c | 1 + arch/s390/kernel/ptrace.c | 9 +- arch/s390/kernel/uprobes.c | 2 +- arch/sh/Kconfig | 1 + arch/sh/boards/board-sh7785lcr.c | 2 +- arch/sh/boot/dts/Makefile | 2 +- arch/sh/configs/migor_defconfig | 2 +- arch/sh/configs/sdk7786_defconfig | 2 +- arch/sh/configs/shx3_defconfig | 2 +- arch/sh/include/asm/uaccess_32.h | 8 +- arch/um/include/shared/skas/stub-data.h | 9 + arch/um/kernel/skas/syscall.c | 5 +- arch/x86/boot/string.c | 13 +- arch/x86/include/asm/cpufeature.h | 2 +- arch/x86/include/asm/cpufeatures.h | 5 +- arch/x86/include/asm/cpuid/api.h | 2 +- arch/x86/include/asm/shared/string.h | 52 + arch/x86/include/asm/string.h | 7 + arch/x86/include/asm/svm.h | 4 +- arch/x86/kernel/cpu/common.c | 8 +- arch/x86/kernel/cpu/mshyperv.c | 27 +- arch/x86/kernel/cpu/scattered.c | 3 + arch/x86/kernel/crash.c | 6 +- arch/x86/kernel/fpu/xstate.c | 7 +- arch/x86/kvm/reverse_cpuid.h | 1 - arch/x86/kvm/svm/nested.c | 23 +- arch/x86/kvm/svm/svm.c | 2 + arch/x86/kvm/svm/svm.h | 2 + arch/x86/platform/pvh/enlighten.c | 5 +- arch/x86/power/hibernate.c | 51 +- block/bdev.c | 12 +- block/bfq-iosched.c | 4 +- block/blk-cgroup.c | 19 +- block/blk-cgroup.h | 6 +- block/blk-flush.c | 8 +- block/blk-iocost.c | 310 ++-- block/blk-iolatency.c | 3 +- block/blk-map.c | 1 + block/blk-mq-tag.c | 27 +- block/blk-mq.c | 147 +- block/blk-mq.h | 4 +- block/blk-throttle.c | 25 +- block/blk-timeout.c | 3 +- block/blk-zoned.c | 82 +- block/blk.h | 14 + block/fops.c | 117 +- block/partitions/mac.c | 4 +- crypto/algapi.c | 23 +- crypto/asymmetric_keys/verify_pefile.c | 5 + crypto/lskcipher.c | 6 +- crypto/rsassa-pkcs1.c | 4 +- crypto/tcrypt.c | 182 ++- drivers/accel/amdxdna/amdxdna_gem.c | 26 +- drivers/accel/qaic/qaic_data.c | 8 +- drivers/accel/rocket/rocket_job.c | 2 - drivers/acpi/Kconfig | 2 + drivers/acpi/acpi_extlog.c | 78 + drivers/acpi/acpi_pcc.c | 20 +- drivers/acpi/acpi_video.c | 12 +- drivers/acpi/acpica/dsfield.c | 3 +- drivers/acpi/acpica/evxfgpe.c | 50 +- drivers/acpi/acpica/exfield.c | 11 +- drivers/acpi/acpica/nsxfname.c | 1 + drivers/acpi/apei/ghes.c | 73 +- drivers/acpi/apei/ghes_helpers.c | 51 +- drivers/acpi/button.c | 34 + drivers/acpi/cppc_acpi.c | 22 +- drivers/acpi/device_pm.c | 77 +- drivers/acpi/fan_core.c | 9 +- drivers/acpi/glue.c | 84 +- drivers/acpi/numa/hmat.c | 2 +- drivers/acpi/pci_link.c | 1 + drivers/acpi/pci_root.c | 22 +- drivers/acpi/platform_profile.c | 82 +- drivers/acpi/scan.c | 40 +- drivers/acpi/tables.c | 3 + drivers/acpi/utils.c | 41 + drivers/ata/ahci.c | 31 +- drivers/ata/libahci.c | 15 + drivers/ata/libata-core.c | 93 +- drivers/ata/libata-scsi.c | 2 +- drivers/ata/pata_parport/pata_parport.c | 9 +- drivers/ata/sata_dwc_460ex.c | 5 +- drivers/base/class.c | 4 +- drivers/base/core.c | 7 +- drivers/base/node.c | 17 +- drivers/base/power/runtime.c | 6 +- drivers/block/drbd/drbd_main.c | 1 + drivers/block/drbd/drbd_receiver.c | 2 + drivers/block/floppy.c | 10 +- drivers/block/null_blk/null_blk.h | 3 +- drivers/block/null_blk/zoned.c | 4 +- drivers/block/rnbd/rnbd-srv-sysfs.c | 28 +- drivers/block/rnbd/rnbd-srv.c | 36 +- drivers/block/rnull/configfs.rs | 2 +- drivers/block/swim.c | 287 ++-- drivers/block/swim3.c | 8 +- drivers/block/swim_asm.S | 136 +- drivers/block/ublk_drv.c | 9 +- drivers/block/virtio_blk.c | 11 +- drivers/block/xen-blkback/blkback.c | 7 + drivers/block/zloop.c | 84 +- drivers/bluetooth/btintel.c | 6 +- drivers/bluetooth/btmtk.c | 88 +- drivers/bluetooth/btmtksdio.c | 13 +- drivers/bluetooth/btusb.c | 27 +- drivers/bluetooth/virtio_bt.c | 4 +- drivers/bus/arm-cci.c | 6 +- drivers/bus/mhi/host/pci_generic.c | 5 +- drivers/char/hw_random/cctrng.c | 7 +- drivers/char/hw_random/intel-rng.c | 5 +- drivers/char/hw_random/jh7110-trng.c | 39 +- drivers/char/scx200_gpio.c | 8 +- drivers/clk/bcm/clk-raspberrypi.c | 2 + drivers/clk/clk-cdce925.c | 9 +- drivers/clk/clk-lmk04832.c | 3 + drivers/clk/clk-milbeaut.c | 10 +- drivers/clk/clk-renesas-pcie.c | 5 + drivers/clk/clk-s2mps11.c | 12 +- drivers/clk/clk-si521xx.c | 2 +- drivers/clk/clk-si5351.c | 20 +- drivers/clk/clk.c | 51 +- drivers/clk/clk.h | 5 +- drivers/clk/clkdev.c | 4 +- drivers/clk/imx/clk-composite-93.c | 11 +- drivers/clk/mediatek/reset.h | 6 +- drivers/clk/qcom/clk-alpha-pll.c | 9 + drivers/clk/qcom/clk-rcg2.c | 35 +- drivers/clk/qcom/clk-rpmh.c | 25 +- drivers/clk/qcom/dispcc-sm8450.c | 2 +- drivers/clk/qcom/gcc-glymur.c | 69 +- drivers/clk/qcom/gcc-ipq5424.c | 4 +- drivers/clk/qcom/gcc-qcs615.c | 2 +- drivers/clk/qcom/gcc-x1e80100.c | 6 +- drivers/clk/qcom/lpasscc-sm6115.c | 4 +- drivers/clk/qcom/mmcc-msm8960.c | 3 +- drivers/clk/qcom/mmcc-msm8996.c | 4 +- drivers/clk/qcom/mmcc-sdm660.c | 2 +- drivers/clk/starfive/clk-starfive-jh7110-sys.c | 3 + drivers/clk/stm32/clk-stm32mp21.c | 4 +- drivers/clk/sunxi-ng/ccu-sun55i-a523-r.c | 37 +- drivers/clk/sunxi-ng/ccu-sun55i-a523.c | 128 +- drivers/clk/sunxi-ng/ccu_div.h | 18 +- drivers/clk/ti/adpll.c | 1 + drivers/clk/versatile/clk-icst.c | 4 + drivers/clocksource/clksrc-dbx500-prcmu.c | 2 + drivers/clocksource/timer-econet-en751221.c | 1 + drivers/clocksource/timer-mediatek.c | 4 +- drivers/clocksource/timer-ti-dm.c | 6 +- drivers/comedi/drivers/addi_apci_3xxx.c | 2 +- drivers/comedi/drivers/comedi_parport.c | 3 +- drivers/comedi/drivers/dmm32at.c | 3 +- drivers/comedi/drivers/dt2811.c | 2 +- drivers/comedi/drivers/dt2814.c | 3 +- drivers/comedi/drivers/ni_atmio16d.c | 4 +- drivers/comedi/drivers/pcmmio.c | 3 +- drivers/comedi/drivers/pcmuio.c | 5 +- drivers/cpufreq/amd-pstate-ut.c | 23 +- drivers/cpufreq/amd-pstate.c | 31 +- drivers/cpufreq/amd-pstate.h | 14 + drivers/cpufreq/qcom-cpufreq-hw.c | 3 + drivers/cpufreq/sparc-us2e-cpufreq.c | 11 +- drivers/cpufreq/sti-cpufreq.c | 4 +- drivers/cpufreq/tegra194-cpufreq.c | 2 +- drivers/cpuidle/governors/menu.c | 8 +- drivers/cpuidle/governors/teo.c | 11 + drivers/crypto/amlogic/amlogic-gxl-cipher.c | 25 +- drivers/crypto/atmel-aes.c | 2 + drivers/crypto/atmel-sha.c | 17 + drivers/crypto/ccp/ccp-dev-v3.c | 4 + drivers/crypto/ccp/ccp-dev-v5.c | 4 + drivers/crypto/ccp/sfs.c | 9 +- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 2 - drivers/crypto/inside-secure/eip93/eip93-regs.h | 2 +- drivers/crypto/intel/qat/qat_common/adf_init.c | 24 +- drivers/crypto/intel/qat/qat_common/adf_isr.c | 15 +- drivers/crypto/intel/qat/qat_common/qat_algs.c | 15 +- .../crypto/intel/qat/qat_common/qat_asym_algs.c | 38 +- drivers/crypto/mxs-dcp.c | 3 + drivers/crypto/starfive/jh7110-cryp.c | 20 +- drivers/crypto/talitos.c | 93 +- drivers/crypto/talitos.h | 5 +- drivers/cxl/core/core.h | 18 +- drivers/cxl/core/edac.c | 30 +- drivers/cxl/core/features.c | 56 +- drivers/cxl/core/hdm.c | 68 +- drivers/cxl/core/mce.c | 8 +- drivers/cxl/core/pci.c | 24 +- drivers/cxl/core/port.c | 183 ++- drivers/cxl/core/ras.c | 45 +- drivers/cxl/core/region.c | 15 +- drivers/cxl/cxl.h | 33 +- drivers/cxl/cxlpci.h | 7 +- drivers/cxl/mem.c | 2 - drivers/cxl/port.c | 62 + drivers/dax/bus.c | 8 +- drivers/dma/at_hdmac.c | 28 +- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 37 +- drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 5 +- drivers/dma/fsl_raid.c | 32 +- drivers/dma/img-mdc-dma.c | 2 +- drivers/dma/ioat/init.c | 18 +- drivers/dma/mediatek/mtk-hsdma.c | 26 +- drivers/dma/mv_xor.c | 1 + drivers/dma/plx_dma.c | 10 +- drivers/dma/sprd-dma.c | 45 +- drivers/dma/ste_dma40.c | 434 ++++-- drivers/dma/ste_dma40_ll.h | 2 - drivers/dma/sun6i-dma.c | 31 +- drivers/dma/xilinx/xilinx_dma.c | 37 +- drivers/dma/xilinx/zynqmp_dma.c | 29 +- drivers/dpll/zl3073x/core.h | 30 + drivers/dpll/zl3073x/dpll.c | 149 +- drivers/dpll/zl3073x/out.h | 17 + drivers/dpll/zl3073x/prop.c | 82 +- drivers/edac/i10nm_base.c | 1 + drivers/firmware/arm_scmi/common.h | 22 + drivers/firmware/arm_scmi/driver.c | 38 +- drivers/firmware/arm_scmi/protocols.h | 9 +- drivers/firmware/arm_scmi/raw_mode.c | 30 +- drivers/firmware/cirrus/cs_dsp.c | 2 + drivers/firmware/efi/cper.c | 51 +- drivers/firmware/efi/libstub/efi-stub-entry.c | 4 +- drivers/firmware/efi/libstub/efi-stub-helper.c | 10 +- drivers/firmware/efi/libstub/efi-stub.c | 2 +- drivers/firmware/efi/libstub/efistub.h | 4 +- drivers/firmware/efi/libstub/fdt.c | 6 +- drivers/firmware/efi/libstub/file.c | 8 +- drivers/firmware/efi/libstub/kaslr.c | 2 +- drivers/firmware/efi/libstub/mem.c | 2 +- drivers/firmware/efi/libstub/pci.c | 2 +- drivers/firmware/efi/libstub/random.c | 8 +- drivers/firmware/efi/libstub/riscv-stub.c | 7 +- drivers/firmware/efi/libstub/riscv.c | 2 +- drivers/firmware/efi/libstub/tpm.c | 8 +- drivers/firmware/efi/libstub/unaccepted_memory.c | 2 +- drivers/firmware/efi/libstub/x86-stub.c | 10 +- drivers/firmware/imx/imx-dsp.c | 6 +- drivers/firmware/qcom/qcom_tzmem.c | 2 +- drivers/gpio/gpio-crystalcove.c | 1 + drivers/gpio/gpio-pcf857x.c | 16 +- drivers/gpio/gpiolib.c | 20 +- drivers/gpu/buddy.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 5 +- drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 5 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 19 +- drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 5 + drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c | 63 +- drivers/gpu/drm/amd/amdgpu/atom.c | 82 +- drivers/gpu/drm/amd/amdgpu/atom.h | 3 +- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 6 +- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 6 +- drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 6 +- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 6 +- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 6 +- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | 6 +- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c | 6 +- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c | 6 +- drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c | 4 +- drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 4 +- drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 4 +- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 4 +- drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 4 +- drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 6 +- drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 6 +- drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 6 +- drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 11 +- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 8 +- drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 12 +- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 12 +- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 10 +- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 10 +- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c | 10 +- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c | 10 +- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c | 10 +- drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c | 3 + drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c | 3 + drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c | 3 + drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c | 3 + .../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 30 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 20 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h | 38 +- drivers/gpu/drm/amd/display/dc/core/dc.c | 6 +- .../gpu/drm/amd/display/dc/core/dc_hw_sequencer.c | 32 + drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h | 3 + .../gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 3 + .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 20 + .../gpu/drm/arm/display/include/malidp_product.h | 10 +- drivers/gpu/drm/drm_of.c | 8 +- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- drivers/gpu/drm/imx/lcdc/imx-lcdc.c | 3 +- drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 16 + drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 29 +- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 77 +- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 3 +- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 1 + drivers/gpu/drm/msm/adreno/adreno_gpu.h | 16 +- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 17 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 10 +- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 9 - drivers/gpu/drm/msm/dp/dp_ctrl.c | 3 + drivers/gpu/drm/msm/dp/dp_debug.c | 1 + drivers/gpu/drm/msm/msm_io_utils.c | 6 +- drivers/gpu/drm/omapdrm/dss/dsi.c | 63 +- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 2 +- drivers/gpu/drm/panfrost/panfrost_mmu.c | 11 +- drivers/gpu/drm/panthor/panthor_gpu.c | 5 +- drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 16 +- drivers/gpu/drm/tegra/submit.c | 12 +- drivers/gpu/drm/tiny/appletbdrm.c | 48 +- drivers/gpu/drm/vc4/vc4_bo.c | 3 +- drivers/gpu/drm/vc4/vc4_drv.c | 29 - drivers/gpu/drm/vc4/vc4_hvs.c | 10 + drivers/gpu/drm/vc4/vc4_v3d.c | 8 +- drivers/gpu/drm/vkms/tests/gen_yuv_conversion.py | 87 ++ drivers/gpu/drm/vkms/tests/vkms_format_test.c | 38 +- drivers/gpu/drm/vkms/vkms_formats.c | 55 +- drivers/hid/hid-logitech-hidpp.c | 1 + drivers/hid/hid-magicmouse.c | 4 + drivers/hid/i2c-hid/i2c-hid-core.c | 11 +- .../intel-thc-hid/intel-quicki2c/pci-quicki2c.c | 4 +- .../intel-thc-hid/intel-quicki2c/quicki2c-dev.h | 2 + .../intel-thc-hid/intel-quicki2c/quicki2c-hid.c | 6 +- .../intel-thc-hid/intel-quicki2c/quicki2c-hid.h | 2 +- .../intel-thc-hid/intel-quickspi/pci-quickspi.c | 2 + .../intel-thc-hid/intel-quickspi/quickspi-dev.h | 2 + .../intel-thc-hid/intel-quickspi/quickspi-hid.c | 6 +- .../intel-thc-hid/intel-quickspi/quickspi-hid.h | 2 +- .../intel-quickspi/quickspi-protocol.c | 2 +- drivers/hid/wacom_wac.c | 14 +- drivers/hv/hv_common.c | 10 - drivers/hv/vmbus_drv.c | 31 +- drivers/hwmon/chipcap2.c | 177 ++- drivers/hwmon/coretemp.c | 29 +- drivers/hwmon/gpd-fan.c | 1 + drivers/hwmon/sht15.c | 26 +- drivers/hwmon/tmp108.c | 26 +- drivers/hwtracing/coresight/coresight-etm.h | 4 +- drivers/hwtracing/coresight/coresight-etm3x-core.c | 87 +- .../hwtracing/coresight/coresight-etm3x-sysfs.c | 83 +- drivers/hwtracing/coresight/coresight-etm4x-core.c | 9 - drivers/hwtracing/coresight/coresight-sysfs.c | 7 + drivers/i3c/master/mipi-i3c-hci/core.c | 12 +- drivers/iio/accel/bma220_spi.c | 3 +- drivers/iio/accel/kionix-kx022a.h | 2 +- drivers/iio/dac/ad5758.c | 8 +- drivers/iio/humidity/hts221_core.c | 106 +- drivers/iio/imu/adis16400.c | 5 +- drivers/iio/pressure/rohm-bm1390.c | 4 +- drivers/iio/temperature/tmp117.c | 9 +- drivers/infiniband/core/device.c | 7 +- drivers/infiniband/core/lag.c | 14 +- drivers/infiniband/core/mad.c | 2 + drivers/infiniband/core/mad_rmpp.c | 7 +- drivers/infiniband/core/nldev.c | 5 +- drivers/infiniband/core/restrack.c | 3 +- drivers/infiniband/core/sysfs.c | 9 +- drivers/infiniband/core/uverbs_std_types_device.c | 1 + drivers/infiniband/core/uverbs_std_types_wq.c | 2 +- drivers/infiniband/core/verbs.c | 3 +- drivers/infiniband/hw/bnxt_re/hw_counters.c | 6 +- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 58 +- drivers/infiniband/hw/bnxt_re/qplib_res.c | 9 +- drivers/infiniband/hw/bnxt_re/qplib_sp.c | 2 +- drivers/infiniband/hw/cxgb4/cm.c | 5 +- drivers/infiniband/hw/cxgb4/provider.c | 5 + drivers/infiniband/hw/efa/efa_com.c | 28 +- drivers/infiniband/hw/hfi1/sdma.c | 3 + drivers/infiniband/hw/hfi1/verbs.c | 4 + drivers/infiniband/hw/hns/hns_roce_cq.c | 1 + drivers/infiniband/hw/hns/hns_roce_device.h | 1 + drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 55 +- drivers/infiniband/hw/ionic/ionic_controlpath.c | 16 +- drivers/infiniband/hw/ionic/ionic_ibdev.c | 4 +- drivers/infiniband/hw/irdma/ctrl.c | 14 +- drivers/infiniband/hw/irdma/hw.c | 14 +- drivers/infiniband/hw/irdma/main.c | 2 + drivers/infiniband/hw/irdma/pble.c | 8 +- drivers/infiniband/hw/irdma/type.h | 4 +- drivers/infiniband/hw/irdma/verbs.c | 13 +- drivers/infiniband/hw/mlx4/main.c | 4 + drivers/infiniband/hw/mlx5/cq.c | 5 +- drivers/infiniband/hw/mlx5/fs.c | 45 +- drivers/infiniband/hw/mlx5/main.c | 54 +- drivers/infiniband/hw/mlx5/odp.c | 2 +- drivers/infiniband/hw/mlx5/qp.c | 8 +- drivers/infiniband/hw/mlx5/qpc.c | 8 +- drivers/infiniband/hw/mlx5/srq.c | 3 +- drivers/infiniband/hw/mlx5/wr.c | 1 + drivers/infiniband/hw/usnic/usnic_debugfs.c | 2 +- drivers/infiniband/sw/rdmavt/qp.c | 2 +- drivers/infiniband/sw/rxe/rxe_loc.h | 8 +- drivers/infiniband/sw/rxe/rxe_mr.c | 12 +- drivers/infiniband/sw/rxe/rxe_mw.c | 3 + drivers/infiniband/sw/rxe/rxe_net.c | 70 +- drivers/infiniband/sw/rxe/rxe_odp.c | 9 +- drivers/infiniband/sw/rxe/rxe_qp.c | 10 + drivers/infiniband/sw/rxe/rxe_recv.c | 9 +- drivers/infiniband/sw/rxe/rxe_req.c | 11 +- drivers/infiniband/sw/rxe/rxe_resp.c | 23 +- drivers/infiniband/sw/rxe/rxe_verbs.h | 1 + drivers/infiniband/sw/siw/siw_main.c | 5 +- drivers/infiniband/sw/siw/siw_qp_tx.c | 20 +- drivers/infiniband/ulp/ipoib/ipoib_main.c | 7 + drivers/infiniband/ulp/isert/ib_isert.c | 2 +- drivers/infiniband/ulp/rtrs/rtrs-clt.c | 32 +- drivers/infiniband/ulp/srp/ib_srp.c | 9 +- drivers/interconnect/qcom/icc-rpm.c | 11 +- drivers/interconnect/qcom/icc-rpm.h | 4 +- drivers/interconnect/qcom/smd-rpm.c | 8 +- drivers/interconnect/samsung/exynos.c | 1 + drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c | 4 +- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 6 + drivers/iommu/intel/dmar.c | 71 +- drivers/iommu/intel/iommu.c | 173 ++- drivers/iommu/intel/iommu.h | 1 + drivers/iommu/intel/nested.c | 2 + drivers/iommu/iommufd/device.c | 8 +- drivers/irqchip/irq-gic-common.c | 2 +- drivers/irqchip/irq-gic-v3-its.c | 20 +- drivers/irqchip/irq-gic-v3.c | 15 +- drivers/irqchip/irq-gic.c | 4 +- drivers/irqchip/irq-mips-gic.c | 59 +- drivers/irqchip/irq-riscv-imsic-state.c | 21 +- drivers/leds/led-class-flash.c | 2 +- drivers/leds/leds-lm3692x.c | 4 +- drivers/leds/leds-lp8860.c | 5 +- drivers/leds/leds-pca9532.c | 9 +- drivers/leds/leds-st1202.c | 225 ++- drivers/mailbox/arm_mhu_db.c | 5 +- drivers/mailbox/arm_mhuv2.c | 18 +- drivers/mailbox/arm_mhuv3.c | 5 +- drivers/mailbox/armada-37xx-rwtm-mailbox.c | 4 +- drivers/mailbox/bcm-pdc-mailbox.c | 5 +- drivers/mailbox/bcm2835-mailbox.c | 5 +- drivers/mailbox/bcm74110-mailbox.c | 2 +- drivers/mailbox/cv1800-mailbox.c | 2 +- drivers/mailbox/hi6220-mailbox.c | 5 +- drivers/mailbox/mailbox-mpfs.c | 2 - drivers/mailbox/mailbox-sti.c | 4 +- drivers/mailbox/pcc.c | 5 +- drivers/mailbox/qcom-cpucp-mbox.c | 39 +- drivers/mailbox/qcom-ipcc.c | 10 +- drivers/mailbox/sprd-mailbox.c | 12 +- drivers/mailbox/stm32-ipcc.c | 4 +- drivers/mailbox/sun6i-msgbox.c | 4 +- drivers/mailbox/tegra-hsp.c | 11 +- drivers/mailbox/ti-msgmgr.c | 12 +- drivers/md/dm-snap.c | 18 +- drivers/md/dm-zone.c | 54 +- drivers/md/dm.h | 3 +- drivers/md/md.c | 30 +- drivers/md/raid10.c | 3 +- drivers/md/raid5-cache.c | 14 +- drivers/md/raid5-ppl.c | 12 +- drivers/md/raid5.c | 65 +- drivers/media/i2c/ar0521.c | 1 - drivers/media/i2c/ov5648.c | 4 +- drivers/media/platform/qcom/iris/iris_ctrls.c | 2 + .../platform/qcom/iris/iris_hfi_gen1_response.c | 2 + .../platform/qcom/iris/iris_hfi_gen2_response.c | 1 + drivers/media/platform/qcom/iris/iris_instance.h | 4 + drivers/media/platform/qcom/iris/iris_probe.c | 2 + drivers/media/platform/qcom/iris/iris_utils.c | 6 + drivers/media/platform/qcom/iris/iris_utils.h | 1 + drivers/media/platform/qcom/iris/iris_vb2.c | 6 +- drivers/media/platform/qcom/iris/iris_vidc.c | 42 +- drivers/media/platform/qcom/iris/iris_vpu_common.c | 2 +- drivers/media/platform/qcom/venus/hfi_msgs.c | 3 + drivers/memory/brcmstb_dpfe.c | 17 +- drivers/memory/emif.c | 3 + drivers/memory/samsung/exynos5422-dmc.c | 11 +- drivers/mfd/da9150-core.c | 8 +- drivers/mfd/intel_quark_i2c_gpio.c | 52 +- drivers/mfd/rk8xx-core.c | 2 +- drivers/misc/enclosure.c | 3 +- drivers/misc/mei/vsc-tp.c | 17 +- drivers/misc/nsm.c | 7 +- drivers/mtd/mtd_blkdevs.c | 5 + drivers/mtd/nand/raw/pl35x-nand-controller.c | 1 + drivers/mtd/spi-nor/spansion.c | 7 - drivers/net/amt.c | 8 +- drivers/net/bonding/bond_sysfs.c | 4 +- drivers/net/can/dev/skb.c | 2 +- drivers/net/dsa/mt7530.c | 7 +- drivers/net/dsa/mv88e6xxx/chip.c | 10 +- drivers/net/ethernet/alacritech/slicoss.c | 2 +- .../net/ethernet/aquantia/atlantic/aq_pci_func.c | 2 +- drivers/net/ethernet/broadcom/asp2/bcmasp.c | 121 +- drivers/net/ethernet/broadcom/asp2/bcmasp.h | 4 - drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 32 +- drivers/net/ethernet/broadcom/bgmac.c | 51 +- drivers/net/ethernet/broadcom/bnge/bnge_resc.c | 6 +- drivers/net/ethernet/broadcom/bnge/bnge_resc.h | 9 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 3 +- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 83 +- drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 1 + drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 1 + drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h | 7 + drivers/net/ethernet/broadcom/genet/bcmgenet.c | 102 +- drivers/net/ethernet/broadcom/genet/bcmgenet.h | 1 + drivers/net/ethernet/broadcom/tg3.c | 6 + drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c | 1 + drivers/net/ethernet/freescale/enetc/enetc_ptp.c | 1 + drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c | 2 +- drivers/net/ethernet/hisilicon/hix5hd2_gmac.c | 12 +- drivers/net/ethernet/ibm/ibmveth.c | 670 +++++++-- drivers/net/ethernet/ibm/ibmveth.h | 5 + drivers/net/ethernet/intel/ice/ice_lib.c | 4 + drivers/net/ethernet/intel/ice/ice_ptp.c | 49 +- drivers/net/ethernet/intel/ice/ice_ptp.h | 6 +- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 4 +- .../ethernet/marvell/octeontx2/nic/cn10k_ipsec.c | 5 +- .../ethernet/marvell/octeontx2/nic/otx2_common.c | 5 +- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 3 +- .../net/ethernet/marvell/octeontx2/nic/otx2_txrx.c | 10 +- drivers/net/ethernet/marvell/octeontx2/nic/qos.c | 2 + drivers/net/ethernet/mellanox/mlx4/intf.c | 15 +- drivers/net/ethernet/mellanox/mlx5/core/devlink.c | 6 + .../mellanox/mlx5/core/en_accel/en_accel.h | 6 + .../ethernet/mellanox/mlx5/core/en_accel/ipsec.c | 3 + .../mellanox/mlx5/core/en_accel/psp_rxtx.h | 13 + .../net/ethernet/mellanox/mlx5/core/en_ethtool.c | 17 +- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 1 - drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 6 +- .../net/ethernet/mellanox/mlx5/core/en_selftest.c | 4 + .../mellanox/mlx5/core/steering/hws/fs_hws.c | 66 +- .../mellanox/mlx5/core/steering/hws/fs_hws.h | 1 + .../mellanox/mlx5/core/steering/hws/fs_hws_pools.c | 11 +- .../mellanox/mlx5/core/steering/hws/pat_arg.c | 12 +- .../mellanox/mlx5/core/steering/hws/pat_arg.h | 5 + drivers/net/ethernet/meta/fbnic/fbnic.h | 7 +- drivers/net/ethernet/meta/fbnic/fbnic_fw.c | 78 +- drivers/net/ethernet/meta/fbnic/fbnic_fw.h | 15 +- drivers/net/ethernet/meta/fbnic/fbnic_netdev.c | 25 +- drivers/net/ethernet/meta/fbnic/fbnic_netdev.h | 4 +- drivers/net/ethernet/meta/fbnic/fbnic_pci.c | 8 +- drivers/net/ethernet/meta/fbnic/fbnic_rpc.c | 28 +- drivers/net/ethernet/meta/fbnic/fbnic_txrx.c | 2 +- drivers/net/ethernet/microchip/fdma/fdma_api.c | 45 +- drivers/net/ethernet/microchip/fdma/fdma_api.h | 20 +- .../net/ethernet/microchip/lan966x/lan966x_fdma.c | 17 +- .../net/ethernet/microchip/lan966x/lan966x_mac.c | 4 +- .../net/ethernet/microchip/lan966x/lan966x_main.c | 19 +- .../net/ethernet/microchip/lan966x/lan966x_ptp.c | 10 +- .../microchip/sparx5/lan969x/lan969x_calendar.c | 8 +- .../microchip/sparx5/lan969x/lan969x_fdma.c | 5 +- .../net/ethernet/microchip/sparx5/sparx5_fdma.c | 3 +- .../net/ethernet/microchip/sparx5/sparx5_packet.c | 15 +- .../net/ethernet/microchip/sparx5/sparx5_psfp.c | 10 +- drivers/net/ethernet/netronome/nfp/flower/main.h | 2 + .../ethernet/netronome/nfp/flower/tunnel_conf.c | 24 +- .../net/ethernet/pensando/ionic/ionic_bus_pci.c | 1 + drivers/net/ethernet/pensando/ionic/ionic_main.c | 13 +- drivers/net/ethernet/qlogic/qede/qede_filter.c | 2 +- drivers/net/ethernet/stmicro/stmmac/descs.h | 6 +- drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | 2 +- drivers/net/ethernet/stmicro/stmmac/enh_desc.c | 25 +- drivers/net/ethernet/stmicro/stmmac/hwif.h | 6 +- drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 + drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 61 +- .../net/ethernet/stmicro/stmmac/stmmac_selftests.c | 2 +- drivers/net/ethernet/ti/am65-cpts.c | 1 + drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 86 +- drivers/net/gtp.c | 51 +- drivers/net/hamradio/hdlcdrv.c | 5 +- drivers/net/ipvlan/ipvtap.c | 5 +- drivers/net/loopback.c | 8 +- drivers/net/macsec.c | 5 + drivers/net/macvtap.c | 5 +- drivers/net/phy/marvell.c | 97 +- drivers/net/phy/qcom/at803x.c | 96 +- drivers/net/phy/qcom/qca83xx.c | 58 + drivers/net/phy/realtek/realtek_main.c | 2 +- drivers/net/ppp/ppp_generic.c | 95 +- drivers/net/ppp/pppoe.c | 8 + drivers/net/pse-pd/si3474.c | 27 +- drivers/net/team/team_core.c | 11 + drivers/net/tun.c | 10 + drivers/net/usb/cdc_mbim.c | 5 +- drivers/net/usb/cdc_ncm.c | 7 +- drivers/net/usb/lan78xx.c | 18 +- drivers/net/usb/usbnet.c | 32 +- drivers/net/veth.c | 7 +- drivers/net/virtio_net.c | 12 +- drivers/net/vxlan/vxlan_core.c | 2 +- drivers/net/wireless/ath/ath10k/htt_tx.c | 12 +- drivers/net/wireless/ath/ath11k/Kconfig | 3 + drivers/net/wireless/ath/ath11k/ahb.c | 7 +- drivers/net/wireless/ath/ath11k/ce.c | 2 +- drivers/net/wireless/ath/ath11k/core.c | 11 +- drivers/net/wireless/ath/ath11k/dp_rx.c | 19 +- drivers/net/wireless/ath/ath11k/mac.c | 33 +- drivers/net/wireless/ath/ath11k/mac.h | 2 +- drivers/net/wireless/ath/ath11k/wmi.c | 9 + .../net/wireless/ath/ath12k/debugfs_htt_stats.c | 2 +- drivers/net/wireless/ath/ath12k/dp.c | 9 +- drivers/net/wireless/ath/ath12k/mac.c | 21 +- drivers/net/wireless/ath/ath12k/pci.c | 55 +- drivers/net/wireless/ath/ath12k/wmi.c | 11 +- drivers/net/wireless/ath/ath6kl/cfg80211.c | 2 - drivers/net/wireless/ath/carl9170/debug.c | 5 +- drivers/net/wireless/broadcom/b43/debugfs.c | 2 +- drivers/net/wireless/broadcom/b43legacy/debugfs.c | 2 +- .../net/wireless/intel/iwlwifi/mld/low_latency.c | 3 +- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 5 + drivers/net/wireless/intel/iwlwifi/mvm/rs.c | 164 --- drivers/net/wireless/intel/iwlwifi/mvm/rs.h | 3 - drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 164 +++ drivers/net/wireless/marvell/mwifiex/cmdevt.c | 10 +- drivers/net/wireless/marvell/mwifiex/fw.h | 6 + drivers/net/wireless/marvell/mwifiex/init.c | 1 + drivers/net/wireless/marvell/mwifiex/main.h | 1 + drivers/net/wireless/marvell/mwifiex/sta_ioctl.c | 3 +- drivers/net/wireless/mediatek/mt76/channel.c | 27 +- drivers/net/wireless/mediatek/mt76/mac80211.c | 112 +- drivers/net/wireless/mediatek/mt76/mt76.h | 13 + drivers/net/wireless/mediatek/mt76/mt7603/dma.c | 18 +- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 13 + drivers/net/wireless/mediatek/mt76/mt7615/usb.c | 17 +- drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 11 +- .../net/wireless/mediatek/mt76/mt7915/coredump.c | 7 +- drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c | 6 + drivers/net/wireless/mediatek/mt76/mt7915/init.c | 7 +- drivers/net/wireless/mediatek/mt76/mt7915/main.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7921/main.c | 47 +- drivers/net/wireless/mediatek/mt76/mt7921/mcu.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h | 5 + .../net/wireless/mediatek/mt76/mt7921/pci_mac.c | 4 +- drivers/net/wireless/mediatek/mt76/mt7925/main.c | 50 +- drivers/net/wireless/mediatek/mt76/mt7925/mcu.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h | 5 + .../net/wireless/mediatek/mt76/mt7925/pci_mac.c | 6 +- drivers/net/wireless/mediatek/mt76/mt792x.h | 2 + drivers/net/wireless/mediatek/mt76/mt792x_mac.c | 6 +- .../net/wireless/mediatek/mt76/mt7996/coredump.c | 7 +- .../net/wireless/mediatek/mt76/mt7996/debugfs.c | 321 ++-- drivers/net/wireless/mediatek/mt76/mt7996/init.c | 6 + drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 15 +- drivers/net/wireless/mediatek/mt76/mt7996/main.c | 127 +- drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 321 +++- drivers/net/wireless/mediatek/mt76/mt7996/mcu.h | 31 +- drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h | 3 +- drivers/net/wireless/mediatek/mt76/mt7996/regs.h | 38 +- drivers/net/wireless/mediatek/mt76/scan.c | 36 +- drivers/net/wireless/mediatek/mt76/tx.c | 7 +- drivers/net/wireless/mediatek/mt76/usb.c | 16 +- drivers/net/wireless/realtek/rtl8xxxu/core.c | 16 +- drivers/net/wireless/realtek/rtw88/debug.c | 5 + drivers/net/wireless/realtek/rtw88/sdio.c | 12 + drivers/net/wireless/silabs/wfx/bh.c | 6 +- drivers/net/wireless/silabs/wfx/bus_sdio.c | 1 + drivers/net/wireless/silabs/wfx/main.c | 36 +- drivers/nvdimm/pmem.c | 6 +- drivers/nvme/host/core.c | 5 +- drivers/nvme/host/fabrics.c | 30 +- drivers/nvme/host/ioctl.c | 2 +- drivers/nvme/host/multipath.c | 4 +- drivers/nvme/host/nvme.h | 2 +- drivers/nvme/host/tcp.c | 7 +- drivers/nvme/host/zns.c | 10 +- drivers/nvme/target/configfs.c | 24 +- drivers/nvme/target/core.c | 16 +- drivers/nvme/target/fabrics-cmd-auth.c | 9 +- drivers/nvme/target/fabrics-cmd.c | 3 +- drivers/nvme/target/fc.c | 15 +- drivers/nvme/target/io-cmd-bdev.c | 29 +- drivers/nvme/target/loop.c | 2 - drivers/nvme/target/nvmet.h | 3 +- drivers/nvme/target/rdma.c | 26 +- drivers/nvme/target/tcp.c | 7 +- drivers/nvme/target/zns.c | 12 +- drivers/nvmem/layouts/onie-tlv.c | 1 + drivers/nvmem/layouts/sl28vpd.c | 1 + drivers/of/irq.c | 2 +- drivers/opp/of.c | 2 +- drivers/pci/controller/dwc/pci-dra7xx.c | 22 +- drivers/pci/controller/dwc/pcie-qcom.c | 90 +- drivers/pci/controller/dwc/pcie-rcar-gen4.c | 27 + drivers/pci/controller/pci-aardvark.c | 31 +- drivers/pci/controller/pci-xgene.c | 11 +- drivers/pci/endpoint/functions/pci-epf-vntb.c | 8 +- drivers/pci/iov.c | 25 - drivers/pci/p2pdma.c | 59 +- drivers/pci/pci-label.c | 92 +- drivers/pci/pci.h | 4 - drivers/pci/pcie/aer.c | 4 +- drivers/pci/probe.c | 15 +- drivers/pci/pwrctrl/slot.c | 31 +- drivers/pci/quirks.c | 2 +- drivers/pci/tph.c | 6 +- drivers/pci/xen-pcifront.c | 5 +- drivers/perf/cxl_pmu.c | 100 +- drivers/perf/dwc_pcie_pmu.c | 11 +- drivers/perf/marvell_cn10k_tad_pmu.c | 1 + drivers/phy/cadence/phy-cadence-sierra.c | 11 +- drivers/phy/freescale/phy-fsl-samsung-hdmi.c | 59 +- drivers/phy/hisilicon/phy-hi3670-pcie.c | 4 +- drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 19 + drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c | 8 +- drivers/phy/rockchip/phy-rockchip-usbdp.c | 248 ++-- drivers/pinctrl/mediatek/pinctrl-mt7629.c | 2 +- drivers/pinctrl/nuvoton/pinctrl-ma35.c | 8 +- drivers/pinctrl/pinctrl-amd.c | 8 +- drivers/pinctrl/sprd/pinctrl-sprd.c | 3 + drivers/pinctrl/stm32/Kconfig | 2 +- drivers/pinctrl/stm32/pinctrl-stm32.c | 3 + drivers/pinctrl/sunplus/Kconfig | 8 +- drivers/platform/chrome/cros_ec_proto.c | 32 +- drivers/platform/chrome/cros_ec_proto_test.c | 158 +- drivers/platform/chrome/cros_ec_typec.c | 104 +- drivers/platform/cznic/turris-omnia-mcu-gpio.c | 31 +- drivers/platform/olpc/olpc-ec.c | 2 +- drivers/platform/x86/amd/pmc/pmc.c | 4 + drivers/platform/x86/asus-wmi.c | 32 + drivers/platform/x86/gpd-pocket-fan.c | 9 +- .../platform/x86/hp/hp-bioscfg/int-attributes.c | 7 +- .../x86/hp/hp-bioscfg/passwdobj-attributes.c | 2 +- .../platform/x86/hp/hp-bioscfg/spmobj-attributes.c | 7 + drivers/platform/x86/hp/hp-wmi.c | 24 +- drivers/platform/x86/ibm_rtl.c | 8 +- drivers/platform/x86/intel/telemetry/core.c | 4 + drivers/platform/x86/intel/tpmi_power_domains.c | 9 + drivers/platform/x86/intel/vsec.c | 15 + drivers/platform/x86/lenovo/ideapad-laptop.c | 12 +- drivers/platform/x86/msi-ec.c | 9 + drivers/pmdomain/imx/scu-pd.c | 10 +- drivers/power/supply/ab8500_bmdata.c | 2 +- drivers/power/supply/ab8500_btemp.c | 28 +- drivers/power/supply/ab8500_chargalg.c | 9 +- drivers/power/supply/ab8500_charger.c | 402 ++++- drivers/power/supply/ab8500_fg.c | 27 +- drivers/power/supply/bq24190_charger.c | 39 +- drivers/power/supply/bq2515x_charger.c | 15 +- drivers/power/supply/bq257xx_charger.c | 2 +- drivers/power/supply/generic-adc-battery.c | 3 + drivers/power/supply/gpio-charger.c | 5 +- drivers/power/supply/mm8013.c | 1 + drivers/power/supply/qcom_battmgr.c | 27 +- drivers/pps/generators/pps_gen.c | 10 +- drivers/ptp/ptp_qoriq.c | 1 + drivers/pwm/core.c | 1 + drivers/pwm/pwm-loongson.c | 2 + drivers/pwm/pwm-lp3943.c | 3 + drivers/pwm/pwm-mtk-disp.c | 4 +- drivers/pwm/pwm-renesas-tpu.c | 23 +- drivers/regulator/ab8500.c | 159 +- drivers/regulator/fixed.c | 4 + drivers/regulator/irq_helpers.c | 38 +- drivers/regulator/mp886x.c | 13 +- drivers/regulator/qcom-rpmh-regulator.c | 2 +- drivers/remoteproc/imx_dsp_rproc.c | 11 +- drivers/remoteproc/imx_rproc.c | 18 +- drivers/remoteproc/qcom_q6v5_adsp.c | 2 +- drivers/remoteproc/remoteproc_core.c | 3 + drivers/remoteproc/xlnx_r5_remoteproc.c | 8 +- drivers/rpmsg/mtk_rpmsg.c | 1 + drivers/rpmsg/virtio_rpmsg_bus.c | 104 +- drivers/rtc/Kconfig | 21 + drivers/rtc/class.c | 8 +- drivers/rtc/rtc-abx80x.c | 58 +- drivers/rtc/rtc-bd70528.c | 5 + drivers/rtc/rtc-ds1685.c | 20 +- drivers/rtc/rtc-ftrtc010.c | 74 +- drivers/rtc/rtc-mpfs.c | 4 +- drivers/rtc/rtc-s35390a.c | 125 +- drivers/s390/net/ism_drv.c | 3 +- drivers/s390/virtio/virtio_ccw.c | 6 +- drivers/scsi/ch.c | 2 +- drivers/scsi/device_handler/scsi_dh_hp_sw.c | 4 +- drivers/scsi/device_handler/scsi_dh_rdac.c | 10 +- drivers/scsi/elx/libefc/efclib.c | 2 + drivers/scsi/hisi_sas/hisi_sas.h | 3 + drivers/scsi/hisi_sas/hisi_sas_main.c | 43 + drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 4 + drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 4 + drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 13 +- drivers/scsi/hosts.c | 15 + drivers/scsi/libsas/sas_task.c | 2 +- drivers/scsi/mpi3mr/mpi3mr.h | 2 +- drivers/scsi/mpi3mr/mpi3mr_app.c | 47 +- drivers/scsi/mpi3mr/mpi3mr_fw.c | 17 +- drivers/scsi/mpi3mr/mpi3mr_os.c | 100 +- drivers/scsi/mpi3mr/mpi3mr_transport.c | 7 + drivers/scsi/pm8001/pm8001_defs.h | 98 ++ drivers/scsi/pm8001/pm8001_hwi.c | 2 +- drivers/scsi/pm8001/pm8001_hwi.h | 4 +- drivers/scsi/pm8001/pm80xx_hwi.c | 2 +- drivers/scsi/pm8001/pm80xx_hwi.h | 100 +- drivers/scsi/scsi.c | 7 +- drivers/scsi/scsi_debug.c | 314 ++-- drivers/scsi/scsi_lib.c | 101 +- drivers/scsi/scsi_lib_test.c | 25 +- drivers/scsi/scsi_priv.h | 1 + drivers/scsi/scsi_scan.c | 81 +- drivers/scsi/scsi_sysfs.c | 5 +- drivers/scsi/scsi_transport_spi.c | 2 +- drivers/scsi/sd.c | 20 +- drivers/scsi/sd.h | 2 +- drivers/scsi/sd_zbc.c | 20 +- drivers/scsi/ses.c | 8 +- drivers/scsi/st.c | 75 + drivers/soc/qcom/apr.c | 50 +- drivers/soc/qcom/pmic_glink.c | 3 +- drivers/soc/qcom/pmic_pdcharger_ulog.c | 2 +- drivers/soc/qcom/qcom-geni-se.c | 14 +- drivers/soc/tegra/flowctrl.c | 7 +- drivers/soundwire/intel_ace2x.c | 4 +- drivers/soundwire/intel_auxdevice.c | 2 +- drivers/spi/spi-amlogic-spisg.c | 43 +- drivers/spi/spi-axi-spi-engine.c | 20 +- drivers/spi/spi-bcm63xx-hsspi.c | 1 + drivers/spi/spi-cs42l43.c | 8 + drivers/spi/spi-fsl-spi.c | 22 +- drivers/spi/spi-meson-spicc.c | 11 +- drivers/spi/spi-mtk-nor.c | 1 + drivers/spi/spi-mxic.c | 8 +- drivers/spi/spi-omap2-mcspi.c | 242 ++- drivers/spi/spi-qpic-snand.c | 30 +- drivers/spi/spi-rockchip-sfc.c | 21 +- drivers/spi/spi-rspi.c | 49 +- drivers/spi/spi-sh-msiof.c | 5 +- drivers/spi/spi-sun4i.c | 56 +- drivers/spi/spi-tegra114.c | 49 + drivers/spi/spi-virtio.c | 4 +- drivers/spi/spi.c | 2 +- drivers/spmi/spmi-pmic-arb.c | 2 +- drivers/staging/iio/adc/ad7816.c | 33 +- drivers/staging/media/ipu7/ipu7-isys.c | 1 + drivers/staging/octeon/ethernet-tx.c | 2 +- drivers/staging/rtl8723bs/core/rtw_mlme.c | 13 - drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 3 - drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 6 +- drivers/staging/rtl8723bs/core/rtw_recv.c | 24 +- drivers/staging/rtl8723bs/hal/hal_com.c | 13 - drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 4 - drivers/staging/rtl8723bs/hal/sdio_halinit.c | 8 +- drivers/staging/rtl8723bs/include/drv_types.h | 41 - drivers/staging/rtl8723bs/os_dep/os_intfs.c | 15 +- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 43 +- drivers/staging/sm750fb/sm750.c | 10 +- drivers/thermal/gov_power_allocator.c | 7 +- drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 8 +- drivers/thermal/renesas/rzg3e_thermal.c | 151 +- drivers/thermal/sprd_thermal.c | 6 + drivers/thermal/thermal_trace.h | 4 +- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 10 +- drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 4 + drivers/tty/serial/8250/8250.h | 16 + drivers/tty/serial/8250/8250_hub6.c | 19 +- drivers/tty/serial/8250/8250_platform.c | 9 +- drivers/tty/serial/8250/8250_uniphier.c | 10 +- drivers/tty/serial/8250/Kconfig | 4 +- drivers/tty/serial/8250/Makefile | 2 +- drivers/tty/serial/Kconfig | 1 + drivers/tty/serial/ma35d1_serial.c | 2 +- drivers/tty/serial/max310x.c | 686 ++++++++- drivers/tty/serial/pmac_zilog.c | 1 + drivers/tty/serial/serial_core.c | 4 +- drivers/tty/serial/serial_txx9.c | 55 +- drivers/tty/serial/sh-sci.c | 23 +- drivers/tty/serial/sifive.c | 2 +- drivers/ufs/core/ufshcd.c | 13 +- drivers/usb/gadget/composite.c | 2 +- drivers/usb/gadget/function/f_mass_storage.c | 7 +- drivers/usb/gadget/udc/dummy_hcd.c | 4 +- drivers/usb/host/pci-quirks.c | 1 + drivers/usb/host/xhci-dbgtty.c | 2 + drivers/usb/image/microtek.c | 1 + drivers/usb/mon/mon_main.c | 3 + drivers/usb/musb/da8xx.c | 8 +- drivers/usb/storage/alauda.c | 95 +- drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 9 +- drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 9 +- drivers/vfio/cdx/main.c | 10 +- drivers/vfio/device_cdev.c | 12 + drivers/vfio/fsl-mc/vfio_fsl_mc.c | 10 +- drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 14 +- drivers/vfio/pci/vfio_pci_core.c | 1 + drivers/vfio/platform/vfio_platform_common.c | 10 +- drivers/vfio/vfio_main.c | 7 - drivers/vhost/vringh.c | 4 +- drivers/video/fbdev/core/fbcon.c | 57 + drivers/video/fbdev/gxt4500.c | 1 + drivers/virtio/virtio.c | 2 + drivers/virtio/virtio_pci_modern.c | 12 +- fs/btrfs/accessors.c | 2 +- fs/btrfs/block-group.c | 6 +- fs/btrfs/ctree.h | 2 +- fs/btrfs/defrag.c | 2 +- fs/btrfs/disk-io.c | 10 +- fs/btrfs/extent-tree.c | 3 +- fs/btrfs/free-space-cache.c | 10 + fs/btrfs/inode.c | 4 +- fs/btrfs/ioctl.c | 11 + fs/btrfs/messages.c | 5 +- fs/btrfs/qgroup.c | 4 +- fs/btrfs/raid56.c | 11 +- fs/btrfs/tree-mod-log.c | 13 +- fs/btrfs/verity.c | 31 +- fs/btrfs/volumes.c | 266 +++- fs/btrfs/volumes.h | 38 + fs/btrfs/zoned.c | 8 +- fs/ceph/addr.c | 67 +- fs/ceph/inode.c | 2 +- fs/ceph/super.c | 18 +- fs/ceph/super.h | 1 - fs/dcache.c | 2 + fs/debugfs/file.c | 81 +- fs/dlm/config.c | 30 +- fs/dlm/dlm_internal.h | 5 + fs/dlm/lock.c | 18 +- fs/dlm/lock.h | 4 +- fs/erofs/data.c | 5 +- fs/eventpoll.c | 18 +- fs/ext2/file.c | 7 + fs/ext4/inode.c | 3 +- fs/f2fs/node.c | 4 +- fs/f2fs/super.c | 27 +- fs/fs-writeback.c | 17 +- fs/fs_pin.c | 15 +- fs/fuse/dev.c | 26 +- fs/fuse/file.c | 5 +- fs/gfs2/bmap.c | 2 +- fs/gfs2/inode.c | 2 +- fs/hfs/btree.c | 7 +- fs/hfsplus/btree.c | 7 +- fs/hugetlbfs/inode.c | 6 + fs/isofs/dir.c | 4 +- fs/isofs/isofs.h | 11 +- fs/isofs/joliet.c | 27 +- fs/isofs/namei.c | 3 +- fs/kernfs/dir.c | 92 +- fs/kernfs/file.c | 27 +- fs/kernfs/kernfs-internal.h | 2 +- fs/kernfs/mount.c | 2 +- fs/kernfs/symlink.c | 17 +- fs/minix/inode.c | 16 + fs/minix/minix.h | 9 + fs/minix/namei.c | 27 +- fs/netfs/internal.h | 32 +- fs/nfs/client.c | 2 +- fs/nfs/dir.c | 13 +- fs/nfs/filelayout/filelayout.c | 5 +- fs/nfs/flexfilelayout/flexfilelayout.c | 81 +- fs/nfs/fs_context.c | 1 + fs/nfs/internal.h | 31 + fs/nfs/nfs3proc.c | 8 + fs/nfs/nfs4client.c | 7 +- fs/nfs/nfs4proc.c | 5 + fs/nfs/nfs4xdr.c | 3 +- fs/nfs/pnfs.c | 12 +- fs/nfs/proc.c | 8 + fs/nfs/sysfs.c | 16 +- fs/nfs_common/nfslocalio.c | 101 +- fs/nilfs2/namei.c | 8 +- fs/nilfs2/recovery.c | 17 + fs/nsfs.c | 4 +- fs/ntfs3/attrib.c | 10 +- fs/ntfs3/file.c | 9 +- fs/ntfs3/frecord.c | 180 +-- fs/ntfs3/fsntfs.c | 130 +- fs/ntfs3/inode.c | 13 +- fs/ntfs3/ntfs_fs.h | 20 +- fs/ntfs3/xattr.c | 8 +- fs/ocfs2/cluster/heartbeat.c | 52 +- fs/ocfs2/cluster/tcp.c | 8 +- fs/ocfs2/dlmglue.c | 29 +- fs/ocfs2/dlmglue.h | 5 +- fs/ocfs2/export.c | 10 +- fs/ocfs2/inode.c | 5 +- fs/ocfs2/move_extents.c | 72 +- fs/ocfs2/namei.c | 6 +- fs/ocfs2/quota_local.c | 24 + fs/ocfs2/xattr.c | 245 +++- fs/ocfs2/xattr.h | 12 +- fs/open.c | 1 + fs/overlayfs/overlayfs.h | 9 +- fs/overlayfs/readdir.c | 39 +- fs/overlayfs/util.c | 11 +- fs/pidfs.c | 53 +- fs/proc/base.c | 8 +- fs/proc/internal.h | 1 + fs/proc/kcore.c | 8 +- fs/proc/task_mmu.c | 9 +- fs/pstore/ram.c | 1 + fs/pstore/ram_core.c | 6 + fs/quota/dquot.c | 10 +- fs/resctrl/rdtgroup.c | 2 +- fs/smb/server/Kconfig | 1 + fs/smb/server/smb2pdu.c | 292 ++-- fs/smb/server/smb_common.c | 4 +- fs/smb/server/smbacl.c | 41 +- fs/smb/server/transport_tcp.c | 80 +- fs/smb/server/vfs_cache.c | 15 +- fs/smb/server/vfs_cache.h | 3 + fs/splice.c | 43 +- fs/sysfs/dir.c | 6 +- fs/sysfs/file.c | 8 +- fs/sysfs/mount.c | 10 +- fs/sysfs/symlink.c | 7 +- fs/sysfs/sysfs.h | 4 +- fs/userfaultfd.c | 12 +- fs/xattr.c | 2 +- fs/xfs/xfs_aops.c | 2 +- fs/xfs/xfs_file.c | 2 +- fs/xfs/xfs_iomap.c | 20 +- fs/xfs/xfs_iomap.h | 3 +- fs/xfs/xfs_pnfs.c | 9 +- include/acpi/acpi_bus.h | 9 +- include/acpi/acpi_drivers.h | 9 +- include/acpi/acpixf.h | 5 + include/acpi/ghes.h | 4 + include/asm-generic/mshyperv.h | 2 - include/asm-generic/vmlinux.lds.h | 2 +- include/cxl/event.h | 16 +- include/kvm/arm_vgic.h | 1 + include/linux/acpi.h | 24 +- include/linux/blk-mq.h | 12 +- include/linux/blkdev.h | 9 +- include/linux/bpf.h | 11 +- include/linux/clk-provider.h | 22 +- include/linux/device-mapper.h | 10 +- include/linux/device/class.h | 6 +- include/linux/dibs.h | 6 +- include/linux/etherdevice.h | 28 + include/linux/filter.h | 9 + include/linux/firewire.h | 1 - include/linux/fortify-string.h | 2 - include/linux/huge_mm.h | 5 +- include/linux/if_bridge.h | 77 +- include/linux/ipv6.h | 4 + include/linux/kernfs.h | 40 +- include/linux/kexec.h | 2 + include/linux/kobject.h | 4 +- include/linux/kobject_ns.h | 13 +- include/linux/libata.h | 76 +- include/linux/mfd/da9150/core.h | 1 + include/linux/mm.h | 7 + include/linux/mm_types.h | 12 +- include/linux/mmap_lock.h | 54 +- include/linux/mtd/spinand.h | 2 +- include/linux/netdevice.h | 31 +- include/linux/netfilter.h | 7 + include/linux/nfslocalio.h | 12 + include/linux/pci-p2pdma.h | 21 +- include/linux/ppp_channel.h | 1 + include/linux/quotaops.h | 5 + include/linux/rcuref.h | 2 +- include/linux/sched.h | 5 +- include/linux/shmem_fs.h | 15 +- include/linux/skbuff.h | 87 +- include/linux/soc/ti/k3-ringacc.h | 31 +- include/linux/sunrpc/svc_rdma.h | 2 +- include/linux/sysfs.h | 24 +- include/linux/userfaultfd_k.h | 10 +- include/linux/watch_queue.h | 6 +- include/net/bluetooth/bluetooth.h | 4 +- include/net/bluetooth/hci_sync.h | 1 + include/net/bluetooth/l2cap.h | 3 +- include/net/cfg80211.h | 12 +- include/net/cipso_ipv4.h | 11 +- include/net/inet_frag.h | 9 + include/net/ip.h | 2 +- include/net/ip_vs.h | 50 +- include/net/net_namespace.h | 8 +- include/net/netfilter/nf_conntrack_seqadj.h | 1 + include/net/netlabel.h | 11 +- include/net/netns/netfilter.h | 2 + include/net/seg6_hmac.h | 3 +- include/net/switchdev.h | 1 + include/scsi/scsi_cmnd.h | 7 + include/scsi/scsi_common.h | 31 +- include/scsi/scsi_device.h | 57 +- include/scsi/scsi_host.h | 33 +- include/scsi/scsi_proto.h | 65 +- include/scsi/scsi_sense.h | 950 ++++++++++++ include/sound/aw88399.h | 624 ++++++++ include/sound/control.h | 4 +- include/sound/core.h | 25 +- include/sound/hda-sdw-bpt.h | 5 +- include/sound/hda_codec.h | 6 +- include/sound/hdaudio.h | 2 + include/sound/pcm.h | 2 + include/sound/pcm_oss.h | 1 + include/sound/soc-component.h | 2 +- include/sound/ump.h | 5 + include/trace/events/iocost.h | 7 +- include/trace/events/power.h | 3 + include/trace/events/rxrpc.h | 2 +- include/uapi/linux/firewire-cdev.h | 4 +- include/uapi/linux/iommufd.h | 2 +- include/vdso/math64.h | 20 + init/main.c | 8 +- io_uring/eventfd.c | 1 + kernel/bpf/bpf_iter.c | 24 +- kernel/bpf/bpf_lsm.c | 4 +- kernel/bpf/btf.c | 27 +- kernel/bpf/core.c | 54 +- kernel/bpf/cpumap.c | 35 +- kernel/bpf/devmap.c | 1 + kernel/bpf/helpers.c | 108 +- kernel/bpf/offload.c | 25 +- kernel/bpf/stream.c | 64 +- kernel/bpf/syscall.c | 43 +- kernel/bpf/task_iter.c | 6 +- kernel/bpf/verifier.c | 37 +- kernel/cgroup/cpuset.c | 31 +- kernel/cgroup/dmem.c | 4 +- kernel/debug/kdb/kdb_io.c | 1 - kernel/debug/kdb/kdb_main.c | 7 +- kernel/debug/kdb/kdb_private.h | 3 +- kernel/events/core.c | 3 + kernel/fork.c | 32 +- kernel/kcov.c | 35 +- kernel/kexec_core.c | 7 + kernel/kexec_file.c | 4 +- kernel/module/tracking.c | 2 +- kernel/nsproxy.c | 2 +- kernel/profile.c | 2 +- kernel/rcu/rcutorture.c | 2 +- kernel/rcu/tree.c | 2 +- kernel/rcu/tree.h | 3 +- kernel/rcu/tree_nocb.h | 52 +- kernel/reboot.c | 4 +- kernel/resource_kunit.c | 3 + kernel/sched/core.c | 60 +- kernel/sched/ext.c | 33 +- kernel/sched/fair.c | 4 +- kernel/sched/idle.c | 4 +- kernel/sched/rt.c | 2 +- kernel/sched/sched.h | 63 +- kernel/sched/stop_task.c | 4 +- kernel/sched/syscalls.c | 7 +- kernel/signal.c | 5 +- kernel/time/timeconv.c | 6 +- kernel/time/timer.c | 2 + kernel/time/vsyscall.c | 26 +- kernel/trace/bpf_trace.c | 29 +- kernel/trace/trace_btf.c | 3 + kernel/trace/trace_events_hist.c | 25 +- kernel/ucount.c | 7 +- kernel/watch_queue.c | 2 +- kernel/watchdog_perf.c | 4 +- lib/Kconfig.debug | 1 - lib/bitmap-str.c | 24 +- lib/decompress_unlz4.c | 4 + lib/kobject.c | 10 +- lib/kobject_uevent.c | 13 +- lib/maple_tree.c | 43 +- lib/seq_buf.c | 3 +- lib/test_hmm.c | 2 + lib/test_sysctl.c | 2 +- lib/tests/seq_buf_kunit.c | 166 +++ lib/vdso/gettimeofday.c | 4 +- mm/filemap.c | 29 +- mm/gup.c | 17 +- mm/gup_test.c | 17 +- mm/huge_memory.c | 57 +- mm/hugetlb.c | 22 +- mm/internal.h | 31 + mm/khugepaged.c | 51 +- mm/ksm.c | 35 +- mm/madvise.c | 6 +- mm/memblock.c | 9 +- mm/memcontrol.c | 6 + mm/memory.c | 109 +- mm/mmap.c | 8 +- mm/mmap_lock.c | 150 +- mm/mremap.c | 87 +- mm/nommu.c | 2 +- mm/oom_kill.c | 22 +- mm/page_alloc.c | 6 +- mm/rmap.c | 20 +- mm/shmem.c | 62 +- mm/slab_common.c | 4 +- mm/userfaultfd.c | 41 +- mm/util.c | 13 + mm/vma.c | 58 +- net/9p/trans_xen.c | 4 +- net/bluetooth/6lowpan.c | 3 +- net/bluetooth/hci_core.c | 4 +- net/bluetooth/hci_event.c | 58 +- net/bluetooth/hci_sync.c | 66 +- net/bluetooth/iso.c | 3 + net/bluetooth/l2cap_core.c | 24 + net/bluetooth/mgmt.c | 115 +- net/bluetooth/msft.c | 6 + net/bpf/test_run.c | 170 ++- net/bridge/br_mdb.c | 16 +- net/bridge/br_multicast.c | 14 +- net/bridge/br_netlink.c | 2 +- net/bridge/br_private.h | 12 + net/bridge/br_stp.c | 4 +- net/bridge/br_stp_bpdu.c | 2 +- net/bridge/br_switchdev.c | 23 +- net/bridge/br_vlan.c | 7 +- net/bridge/br_vlan_options.c | 2 +- net/ceph/messenger_v1.c | 8 +- net/ceph/osdmap.c | 2 +- net/core/bpf_sk_storage.c | 7 + net/core/dev.c | 79 +- net/core/dev.h | 4 + net/core/dev_addr_lists.c | 318 +++- net/core/dev_addr_lists_test.c | 363 ++++- net/core/dev_api.c | 3 + net/core/dev_ioctl.c | 6 +- net/core/filter.c | 96 +- net/core/gro.c | 5 +- net/core/lwtunnel.c | 6 + net/core/net-sysfs.c | 50 +- net/core/net_namespace.c | 8 +- net/core/netdev-genl.c | 6 + net/core/rtnetlink.c | 1 + net/core/selftests.c | 2 +- net/core/skbuff.c | 11 +- net/core/sock.c | 3 +- net/dcb/dcbnl.c | 2 + net/devlink/region.c | 5 + net/ipv4/cipso_ipv4.c | 16 +- net/ipv4/devinet.c | 35 +- net/ipv4/gre_offload.c | 2 +- net/ipv4/inet_connection_sock.c | 3 +- net/ipv4/inet_fragment.c | 66 +- net/ipv4/ip_fragment.c | 13 +- net/ipv4/ip_output.c | 15 +- net/ipv4/ip_tunnel.c | 14 +- net/ipv4/ipmr.c | 5 + net/ipv4/syncookies.c | 12 +- net/ipv4/tcp.c | 26 +- net/ipv4/tcp_bic.c | 14 +- net/ipv4/tcp_bpf.c | 1 + net/ipv4/tcp_cubic.c | 14 +- net/ipv4/tcp_hybla.c | 16 +- net/ipv4/tcp_ipv4.c | 17 +- net/ipv4/tcp_metrics.c | 20 +- net/ipv4/tcp_offload.c | 12 +- net/ipv6/calipso.c | 6 +- net/ipv6/exthdrs.c | 2 +- net/ipv6/netfilter/nf_conntrack_reasm.c | 15 +- net/ipv6/reassembly.c | 13 +- net/ipv6/route.c | 20 +- net/ipv6/seg6_hmac.c | 5 +- net/ipv6/seg6_local.c | 6 +- net/ipv6/sit.c | 4 +- net/ipv6/tcp_ipv6.c | 56 +- net/l2tp/l2tp_core.c | 51 +- net/l2tp/l2tp_core.h | 6 +- net/l2tp/l2tp_debugfs.c | 4 +- net/l2tp/l2tp_netlink.c | 11 +- net/l2tp/l2tp_ppp.c | 8 +- net/mac80211/cfg.c | 49 +- net/mac80211/debugfs.c | 2 +- net/mac80211/ieee80211_i.h | 4 +- net/mac80211/main.c | 2 + net/mac80211/mesh_pathtbl.c | 17 +- net/mac80211/mlme.c | 14 +- net/mac80211/rate.c | 1 - net/mac80211/rx.c | 1 + net/mac80211/s1g.c | 8 - net/mac80211/tx.c | 216 ++- net/mctp/route.c | 10 +- net/mptcp/options.c | 9 +- net/netfilter/core.c | 18 +- net/netfilter/ipvs/ip_vs_conn.c | 8 +- net/netfilter/ipvs/ip_vs_ctl.c | 38 +- net/netfilter/ipvs/ip_vs_dh.c | 16 +- net/netfilter/ipvs/ip_vs_fo.c | 2 +- net/netfilter/ipvs/ip_vs_lblc.c | 4 +- net/netfilter/ipvs/ip_vs_lblcr.c | 8 +- net/netfilter/ipvs/ip_vs_lc.c | 2 +- net/netfilter/ipvs/ip_vs_mh.c | 2 +- net/netfilter/ipvs/ip_vs_nq.c | 2 +- net/netfilter/ipvs/ip_vs_ovf.c | 2 +- net/netfilter/ipvs/ip_vs_rr.c | 2 +- net/netfilter/ipvs/ip_vs_sed.c | 4 +- net/netfilter/ipvs/ip_vs_sh.c | 2 +- net/netfilter/ipvs/ip_vs_sync.c | 23 +- net/netfilter/ipvs/ip_vs_twos.c | 4 +- net/netfilter/ipvs/ip_vs_wlc.c | 4 +- net/netfilter/ipvs/ip_vs_wrr.c | 2 +- net/netfilter/nf_conntrack_core.c | 5 + net/netfilter/nf_conntrack_seqadj.c | 17 + net/netfilter/nf_flow_table_ip.c | 4 +- net/netfilter/nf_nat_core.c | 17 +- net/netfilter/nf_nat_proto.c | 8 + net/netfilter/nf_synproxy_core.c | 4 +- net/netfilter/nfnetlink_hook.c | 77 +- net/netfilter/nft_compat.c | 15 + net/netfilter/nft_set_rbtree.c | 3 +- net/netfilter/xt_dccp.c | 2 +- net/netlabel/netlabel_kapi.c | 24 +- net/netlink/af_netlink.c | 12 +- net/openvswitch/actions.c | 9 + net/openvswitch/vport-internal_dev.c | 8 +- net/psp/psp_sock.c | 12 + net/rds/af_rds.c | 29 +- net/rds/bind.c | 4 +- net/rds/ib_sysctl.c | 2 +- net/rds/rdma_transport.c | 3 + net/rds/rds.h | 3 + net/rds/recv.c | 11 +- net/rds/send.c | 9 +- net/rds/sysctl.c | 2 +- net/rds/tcp.c | 5 +- net/rose/af_rose.c | 56 +- net/rose/rose_link.c | 7 +- net/rose/rose_loopback.c | 7 +- net/rose/rose_route.c | 65 +- net/rxrpc/rxperf.c | 25 +- net/rxrpc/sendmsg.c | 17 +- net/sched/act_api.c | 24 +- net/sched/sch_etf.c | 1 + net/sched/sch_gred.c | 16 +- net/sched/sch_taprio.c | 6 +- net/sctp/ipv6.c | 6 +- net/sctp/sm_make_chunk.c | 24 +- net/sctp/sm_statefuns.c | 2 +- net/smc/smc_pnet.c | 29 +- net/sunrpc/sysfs.c | 17 +- net/sunrpc/xprtsock.c | 34 +- net/switchdev/switchdev.c | 2 +- net/tipc/bearer.c | 4 + net/tipc/node.c | 2 +- net/tls/tls_device.c | 21 +- net/tls/tls_main.c | 4 +- net/wireless/nl80211.c | 6 +- net/wireless/reg.c | 41 +- net/wireless/sme.c | 38 +- net/wireless/sysfs.c | 4 +- rust/helpers/dma.c | 11 + rust/kernel/bitmap.rs | 17 +- rust/kernel/clk.rs | 15 + rust/kernel/configfs.rs | 63 +- rust/kernel/dma.rs | 17 + rust/kernel/id_pool.rs | 15 +- rust/kernel/scatterlist.rs | 12 +- samples/vfs/Makefile | 1 + scripts/Makefile.vmlinux | 20 +- scripts/Makefile.vmlinux_o | 2 +- scripts/checkkconfigsymbols.py | 2 +- scripts/checkpatch.pl | 2 + scripts/clang-tools/run-clang-tools.py | 1 + scripts/gdb/linux/radixtree.py | 203 ++- scripts/gdb/linux/stackdepot.py | 2 +- scripts/kconfig/conf.c | 19 +- scripts/kconfig/symbol.c | 39 +- scripts/kconfig/tests/conftest.py | 9 +- .../kconfig/tests/randconfig_probability/Kconfig | 12 + .../tests/randconfig_probability/__init__.py | 130 ++ scripts/kconfig/tests/savedefconfig_range/Kconfig | 60 + .../kconfig/tests/savedefconfig_range/__init__.py | 8 + scripts/kconfig/tests/savedefconfig_range/config | 7 + .../tests/savedefconfig_range/expected_defconfig | 0 scripts/make_fit.py | 3 +- security/apparmor/af_unix.c | 27 +- security/apparmor/apparmorfs.c | 69 +- security/apparmor/capability.c | 2 +- security/apparmor/domain.c | 50 +- security/apparmor/include/capability.h | 2 +- security/apparmor/include/cred.h | 16 +- security/apparmor/include/label.h | 2 +- security/apparmor/include/match.h | 11 +- security/apparmor/include/net.h | 2 +- security/apparmor/include/perms.h | 15 +- security/apparmor/include/policy.h | 22 +- security/apparmor/label.c | 24 +- security/apparmor/lib.c | 7 +- security/apparmor/lsm.c | 64 +- security/apparmor/match.c | 58 +- security/apparmor/mount.c | 2 +- security/apparmor/net.c | 8 +- security/apparmor/policy.c | 3 + security/apparmor/policy_ns.c | 6 +- security/apparmor/policy_unpack.c | 11 +- security/integrity/ima/ima_template.c | 5 + security/ipe/audit.c | 8 - security/security.c | 3 +- security/selinux/netlabel.c | 5 +- security/smack/smack_lsm.c | 14 +- sound/core/control.c | 12 +- sound/core/control_compat.c | 21 +- sound/core/control_led.c | 74 +- sound/core/ctljack.c | 1 + sound/core/info.c | 3 +- sound/core/init.c | 33 +- sound/core/jack.c | 11 +- sound/core/misc.c | 27 + sound/core/oss/mixer_oss.c | 36 +- sound/core/oss/pcm_oss.c | 12 + sound/core/pcm.c | 13 +- sound/core/pcm_compat.c | 4 +- sound/core/pcm_lib.c | 16 +- sound/core/pcm_local.h | 6 + sound/core/pcm_native.c | 122 +- sound/core/rawmidi.c | 3 + sound/core/seq/seq_compat.c | 15 +- sound/core/seq/seq_ump_client.c | 5 +- sound/core/timer.c | 1 + sound/core/ump.c | 61 +- sound/core/vmaster.c | 10 +- sound/drivers/aloop.c | 41 +- sound/drivers/pcmtest.c | 28 +- sound/hda/codecs/realtek/alc269.c | 51 +- sound/hda/common/bind.c | 15 +- sound/hda/common/codec.c | 4 +- sound/hda/common/hda_controller.h | 4 - sound/hda/common/hda_jack.h | 1 + sound/hda/common/jack.c | 88 +- sound/hda/controllers/intel.c | 91 +- sound/hda/core/bus.c | 30 +- sound/pci/oxygen/oxygen_pcm.c | 37 +- sound/pci/via82xx.c | 11 +- sound/sh/aica.c | 2 +- sound/soc/amd/acp-es8336.c | 5 +- sound/soc/amd/acp/acp-platform.c | 2 +- sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c | 14 +- sound/soc/amd/ps/ps-pdm-dma.c | 2 +- sound/soc/amd/ps/ps-sdw-dma.c | 2 +- sound/soc/amd/raven/acp3x-pcm-dma.c | 4 +- sound/soc/amd/renoir/acp3x-pdm-dma.c | 2 +- sound/soc/amd/vangogh/acp5x-pcm-dma.c | 2 +- sound/soc/amd/yc/acp6x-pdm-dma.c | 2 +- sound/soc/atmel/atmel-i2s.c | 43 +- sound/soc/atmel/atmel-pcm-pdc.c | 2 + sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 6 +- sound/soc/codecs/ab8500-codec.c | 560 ++----- sound/soc/codecs/adau17x1.c | 4 +- sound/soc/codecs/ak4642.c | 3 +- sound/soc/codecs/aw88081.c | 2 +- sound/soc/codecs/aw88166.c | 133 +- sound/soc/codecs/aw88166.h | 5 - sound/soc/codecs/aw88261.c | 2 +- sound/soc/codecs/aw88395/aw88395.c | 2 +- sound/soc/codecs/aw88395/aw88395_device.c | 39 +- sound/soc/codecs/aw88395/aw88395_device.h | 8 +- sound/soc/codecs/aw88399-lib.c | 1403 ++++++++++++++++++ sound/soc/codecs/aw88399.c | 1550 +------------------- sound/soc/codecs/aw88399.h | 587 +------- sound/soc/codecs/cs42l43-jack.c | 2 +- sound/soc/codecs/cs42l43.c | 4 +- sound/soc/codecs/cs42l56.c | 1 - sound/soc/codecs/da732x.c | 2 +- sound/soc/codecs/es8316.c | 4 +- sound/soc/codecs/es8323.c | 4 +- sound/soc/codecs/es8326.c | 38 +- sound/soc/codecs/es8375.c | 20 +- sound/soc/codecs/es8375.h | 2 +- sound/soc/codecs/es8389.c | 47 +- sound/soc/codecs/fs210x.c | 5 +- sound/soc/codecs/mt6359-accdet.c | 50 +- sound/soc/codecs/nau8540.c | 4 +- sound/soc/codecs/nau8822.c | 71 +- sound/soc/codecs/nau8822.h | 3 + sound/soc/codecs/rt1011.c | 4 +- sound/soc/codecs/rt1015.c | 86 +- sound/soc/codecs/rt1016.c | 4 +- sound/soc/codecs/rt1305.c | 4 +- sound/soc/codecs/rt1308.c | 4 +- sound/soc/codecs/rt1318.c | 3 +- sound/soc/codecs/rt5616.c | 3 +- sound/soc/codecs/rt5645.c | 7 +- sound/soc/codecs/rt5659.c | 10 +- sound/soc/codecs/rt5660.c | 4 +- sound/soc/codecs/rt5663.c | 6 +- sound/soc/codecs/rt5665.c | 4 +- sound/soc/codecs/rt5682-sdw.c | 3 +- sound/soc/codecs/rt711-sdca-sdw.c | 6 +- sound/soc/codecs/rt711-sdw.c | 8 +- sound/soc/codecs/rt712-sdca-sdw.c | 6 +- sound/soc/codecs/rt712-sdca.c | 5 +- sound/soc/codecs/rt721-sdca-sdw.c | 6 +- sound/soc/codecs/rt722-sdca-sdw.c | 6 +- sound/soc/codecs/sma1307.c | 14 +- sound/soc/codecs/sta32x.c | 127 +- sound/soc/codecs/sta350.c | 20 +- sound/soc/codecs/tas2781-fmwlib.c | 6 +- sound/soc/codecs/tlv320adc3xxx.c | 2 +- sound/soc/codecs/tlv320aic32x4-clk.c | 68 +- sound/soc/codecs/tlv320aic32x4-i2c.c | 21 +- sound/soc/codecs/tlv320aic32x4-spi.c | 25 +- sound/soc/codecs/tlv320aic32x4.c | 273 ++-- sound/soc/codecs/tlv320aic32x4.h | 6 +- sound/soc/codecs/wcd-mbhc-v2.c | 8 +- sound/soc/codecs/wcd937x.c | 44 +- sound/soc/codecs/wcd939x.c | 10 +- sound/soc/codecs/wcd939x.h | 1 - sound/soc/codecs/wm5100.c | 2 +- sound/soc/codecs/wm8510.c | 2 +- sound/soc/codecs/wm8737.c | 8 +- sound/soc/codecs/wm8750.c | 2 +- sound/soc/codecs/wm8955.c | 2 +- sound/soc/codecs/wm8983.c | 2 +- sound/soc/codecs/wm8985.c | 2 +- sound/soc/codecs/wm8990.c | 10 +- sound/soc/codecs/wm8991.c | 10 +- sound/soc/codecs/wm8994.c | 159 +- sound/soc/codecs/wm8994.h | 2 + sound/soc/codecs/wm_hubs.c | 2 +- sound/soc/codecs/wsa883x.c | 8 +- sound/soc/codecs/wsa884x.c | 8 +- sound/soc/dwc/dwc-i2s.c | 6 +- sound/soc/fsl/fsl_asrc.c | 8 +- sound/soc/fsl/fsl_asrc_dma.c | 5 + sound/soc/fsl/fsl_asrc_m2m.c | 4 +- sound/soc/fsl/imx-pcm-rpmsg.c | 2 +- sound/soc/intel/atom/sst-atom-controls.c | 38 +- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 36 +- sound/soc/intel/avs/pcm.c | 2 + sound/soc/intel/avs/utils.c | 6 +- sound/soc/intel/boards/sof_es8336.c | 2 +- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 8 +- sound/soc/mediatek/common/mtk-soundcard-driver.c | 23 +- sound/soc/mediatek/mt6797/mt6797-afe-clk.c | 14 +- sound/soc/mediatek/mt8183/mt8183-afe-clk.c | 22 +-
566 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Greg Kroah-Hartman
maintainerPATCH 1/2151 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sean Christopherson <[email protected]>
[ Upstream commit 053621535f014085c935879582dd3b65964a0dce ]
When doing RSM to L2, validate L1's state after copying it back into vmcb01 from SMRAM, as SMRAM is carved out of guest memory, i.e. is writable by the guest. Failure to validate L1's state is especially problematic for inputs to MMU context, as KVM can end up with impossible CR4 vs. EFER state. E.g. without the recent hardening FNAME(walk_addr_generic), a guest can trigger:
------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in arch/x86/kvm/mmu/paging_tmpl.h:435:15 index 3 is out of range for type 'u32 [2]' CPU: 3 UID: 0 PID: 92 Comm: CPU 1/KVM Not tainted 7.3.0-rc1 #2 PREEMPT(lazy) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 04/01/2014 Call Trace: <TASK> dump_stack_lvl+0x5f/0x90 dump_stack+0x10/0x18 ubsan_epilogue+0x9/0x39 __ubsan_handle_out_of_bounds.cold+0x50/0x55 paging32_walk_addr_generic+0x889/0x970 paging32_page_fault+0x79/0xa60 kvm_mmu_do_page_fault+0x125/0x270 kvm_mmu_page_fault+0x88/0x7b0 npf_interception+0xc8/0x220 [kvm_amd] svm_invoke_exit_handler+0x16d/0x1d0 [kvm_amd] svm_handle_exit+0xb7/0x160 [kvm_amd] vcpu_enter_guest+0x428/0x16a0 kvm_arch_vcpu_ioctl_run+0x479/0x920 kvm_vcpu_ioctl+0x316/0xb00 __x64_sys_ioctl+0xa3/0x100 x64_sys_call+0x281/0x23d0 do_syscall_64+0xba/0x550 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x79bb30deb04b </TASK> ---[ end trace ]---
Message-ID: <[email protected]>
--- arch/x86/kvm/svm/nested.c | 23 ++++++++++++++++------- arch/x86/kvm/svm/svm.c | 2 ++ arch/x86/kvm/svm/svm.h | 2 ++ 3 files changed, 20 insertions(+), 7 deletions(-)
arch/x86/kvm/svm/nested.c +16 -7
@@ -1732,6 +1732,21 @@ static void nested_copy_vmcb_cache_to_control(struct vmcb_control_area *dst,/* 'clean' and 'hv_enlightenments' are not changed by KVM */ } +bool nested_svm_check_vmcb01_save (struct kvm_vcpu *vcpu, +struct vmcb_save_area *save) +{ +struct vmcb_save_area_cached save_cached; + +if (!(save->cr0 &X86_CR0_PG ) || + !(save->cr0 &X86_CR0_PE ) || + (save->rflags &X86_EFLAGS_VM ) || + ((save->efer &EFER_LMA ) && !(save->efer &EFER_LME ))) +return false; + +__nested_copy_vmcb_save_to_cache (&save_cached, save); +return __nested_vmcb_check_save (vcpu, &save_cached); +} +static int svm_get_nested_state (struct kvm_vcpu *vcpu,struct kvm_nested_state __user *user_kvm_nested_state,u32 user_data_size)
@@ -1808,7 +1823,6 @@ static int svm_set_nested_state(struct kvm_vcpu *vcpu, &user_kvm_nested_state->data.svm[0 ];struct vmcb_control_area *ctl;struct vmcb_save_area *save; -struct vmcb_save_area_cached save_cached;struct vmcb_ctrl_area_cached ctl_cached;unsigned long cr0;int ret;
@@ -1876,12 +1890,7 @@ static int svm_set_nested_state(struct kvm_vcpu *vcpu,* Validate host state saved from before VMRUN (see * nested_svm_check_permissions). */ -__nested_copy_vmcb_save_to_cache (&save_cached, save); -if (!(save->cr0 &X86_CR0_PG ) || - !(save->cr0 &X86_CR0_PE ) || - (save->rflags &X86_EFLAGS_VM ) || - ((save->efer &EFER_LMA ) && !(save->efer &EFER_LME )) || - !__nested_vmcb_check_save (vcpu, &save_cached)) +if (!nested_svm_check_vmcb01_save (vcpu, save)) goto out_free;
arch/x86/kvm/svm/svm.c +2 -0
@@ -4891,6 +4891,8 @@ static int svm_leave_smm(struct kvm_vcpu *vcpu, const union kvm_smram *smram)*/ svm_copy_vmrun_state (&svm->vmcb01.ptr->save, map_save.hva +0x400 ); +if (!nested_svm_check_vmcb01_save (vcpu, &svm->vmcb01.ptr->save)) + goto unmap_save;/* * Enter the nested guest now
arch/x86/kvm/svm/svm.h +2 -0
@@ -797,6 +797,8 @@ void nested_copy_vmcb_save_to_cache(struct vcpu_svm *svm, struct vmcb_save_area *save);void nested_sync_control_from_vmcb02 (struct vcpu_svm *svm);void nested_vmcb02_compute_g_pat (struct vcpu_svm *svm); +bool nested_svm_check_vmcb01_save (struct kvm_vcpu *vcpu, +struct vmcb_save_area *save);void svm_switch_vmcb (struct vcpu_svm *svm,struct kvm_vmcb_info *target_vmcb);extern struct kvm_x86_nested_ops svm_nested_ops;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 2/2151 inet: frags: limit the truesize of a reassembly queue
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eric Dumazet <[email protected]>
[ Upstream commit 3ae20e4697eb969104fe4b1e98a675f0100382b6 ]
The truesize of fragments in a reassembly queue is only bounded by the per netns ipfrag_high_thresh sysctl, which has no upper limit.
inet_frag_reasm_finish() sums the truesize of all fragments in an int. If this sum reaches 2^32, it wraps, and the final sk_wmem_alloc adjustment of the socket owning the reassembled skb can cancel its own reference, leading to a use-after-free of this socket.
This can be triggered from an unprivileged user/network namespace, raising ipfrag_high_thresh and using padded TUN packets, which keep a large truesize after being trimmed by ip_rcv_core().
Track the sum of the truesize of fragments in each queue, and refuse a fragment that would make it bigger than INT_MAX / 2. Callers kill the queue on this error. This bound is far above the needs of legitimate traffic.
--- include/net/inet_frag.h | 9 +++++++++ net/ipv4/inet_fragment.c | 5 +++++ 2 files changed, 14 insertions(+)
include/net/inet_frag.h +9 -0
@@ -79,6 +79,7 @@ struct frag_v6_compare_key {* @tstamp_type: stamp has a mono delivery time (EDT) * @flags: fragment queue flags * @max_size: maximum received fragment size +* @truesize: sum of the truesize of queued fragments * @fqdir: pointer to struct fqdir * @rcu: rcu head for freeing deferall */
@@ -100,6 +101,7 @@ struct inet_frag_queue {u8 tstamp_type;__u8 flags;u16 max_size; +unsigned int truesize;struct fqdir *fqdir;struct rcu_head rcu; };
@@ -171,6 +173,13 @@ extern const u8 ip_frag_ecn_table[16];#define IPFRAG_OK 0#define IPFRAG_DUP 1#define IPFRAG_OVERLAP 2 +#define IPFRAG_TOOBIG 4 + +/* Max sum of the truesize of fragments in a queue. This keeps the sums +* done in inet_frag_reasm_prepare() and inet_frag_reasm_finish() well +* below INT_MAX. Legitimate traffic stays far below this limit. +*/ +#define INET_FRAG_MAX_TRUESIZE (INT_MAX / 2)int inet_frag_queue_insert (struct inet_frag_queue *q,struct sk_buff *skb,int offset,int end); void *inet_frag_reasm_prepare(struct inet_frag_queue *q, struct sk_buff *skb,
net/ipv4/inet_fragment.c +5 -0
@@ -337,6 +337,7 @@ void inet_frag_queue_flush(struct inet_frag_queue *q, q->rb_fragments =RB_ROOT ; q->fragments_tail =NULL ; q->last_run_head =NULL ; + q->truesize =0 ; }EXPORT_SYMBOL (inet_frag_queue_flush);
@@ -443,6 +444,9 @@ int inet_frag_queue_insert(struct inet_frag_queue *q, struct sk_buff *skb, {struct sk_buff *last = q->fragments_tail; +if (skb->truesize >INET_FRAG_MAX_TRUESIZE - q->truesize) +return IPFRAG_TOOBIG ; +/* An IP fragment is never a GSO packet, but an untrusted source * (virtio_net_hdr) may have attached GSO metadata to it. Do not let * that reach the reassembled skb, whose head keeps the first
@@ -507,6 +511,7 @@ int inet_frag_queue_insert(struct inet_frag_queue *q, struct sk_buff *skb,if (offset)nf_reset_ct (skb); + q->truesize += skb->truesize;return IPFRAG_OK ; }EXPORT_SYMBOL (inet_frag_queue_insert);
Signature · 1 line
2.53.0
# Librecast Test Results
044/044 [ OK ] liblcrq
010/010 [ OK ] libmld
120/120 [ OK ] liblibrecast
CPU/kernel: Linux auntie 6.18.65-rc1-gb8cc618d685d #1 SMP PREEMPT_DYNAMIC Wed Nov 18 16:50:11 -00 2026 x86_64 AMD Ryzen 9 9950X 16-Core Processor AuthenticAMD GNU/Linux
Greg Kroah-Hartman
maintainerPATCH 3/2151 KVM: arm64: Sanitise ID_AA64MMFR3_EL1.S1P[IO]E
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Marc Zyngier <[email protected]>
[ Upstream commit 68c11eed4f8097ef1b71c30679e96eb654df29e0 ]
KVM uses the VM's ID registers as the source of truth for what the guest has, but userspace can expose S1PIE or S1POE without the features they imply. As per the architecture, both imply TCR2 and ATS1A, and S1POE also implies HPDS. With TCR2 hidden, the world switch skips PIR_EL1, PIRE0_EL1 and POR_EL1 while KVM doesn't trap them, so the guest accesses registers that are neither trapped nor switched. Under VHE, that leaks values between guests. On nVHE and hVHE, pKVM included, the host kernel resumes with the guest's PIR_EL1 and PIRE0_EL1.
On first run, clear S1PIE and S1POE from the VM's ID registers when the features they imply are missing, before anything derives state from them. The guest and userspace then see neither feature, and the guest's accesses to their registers UNDEF.
--- arch/arm64/include/asm/kvm_host.h | 1 + arch/arm64/kvm/config.c | 77 +++++++++++++++++++++++++++++++ arch/arm64/kvm/sys_regs.c | 3 ++ 3 files changed, 81 insertions(+)
arch/arm64/include/asm/kvm_host.h +1 -0
@@ -1598,6 +1598,7 @@ static inline bool kvm_arch_has_irq_bypass(void)return true; } +void kvm_idregs_enforce_dependencies (struct kvm *kvm);void compute_fgu (struct kvm *kvm,enum fgt_group_id fgt);void get_reg_fixed_bits (struct kvm *kvm,enum vcpu_sysreg reg,u64 *res0,u64 *res1);void check_feature_map (void );
arch/arm64/kvm/config.c +77 -0
113 lines not on this page · raw message
arch/arm64/kvm/sys_regs.c +3 -0
@@ -5619,6 +5619,9 @@ int kvm_finalize_sys_regs(struct kvm_vcpu *vcpu)guard (mutex)(&kvm->arch.config_lock); +if (!kvm_vm_has_ran_once (kvm)) +kvm_idregs_enforce_dependencies (kvm); +/* * This hacks into the ID registers, so only perform it when the * first vcpu runs, or the kvm_set_vm_id_reg() helper will scream.
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 4/2151 mm/hugetlb: fix endless write fault on a leftover uffd bit
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Josef Bacik <[email protected]>
[ Upstream commit f61e1cf15fb44f9cf89d43d8ef01f926322bb1c4 ]
hugetlb_fault() resolves the uffd bit on a write fault only if the VMA is registered for userfaultfd write protection, and hugetlb_wp() bails out for any entry with the uffd bit set assuming hugetlb_fault() has already resolved it.
When a read-only hugetlb entry with the uffd bit set is mapped in a VMA that is not registered for uffd-wp, a write fault to it never makes progress. If the access comes from the kernel, e.g. read(2) from /dev/zero into such page, the task spins in the page fault handler, ignores SIGKILL and keeps holding the locks taken by the system call.
Such entries should not exist, but an unprivileged user can create them, for example with MADV_DONTNEED of a page protected with UFFDIO_RWPROTECT or with UFFDIO_COPY in MODE_WP racing with UFFDIO_UNREGISTER.
Clear the uffd bit when the VMA is not registered for uffd-wp and let the fault proceed to hugetlb_wp(), like do_wp_page() does for regular pages.
Note that a FOLL_FORCE write to a page protected with UFFDIO_RWPROTECT in a private VMA that was made PROT_NONE now drops the RWP protection of that page.
Original fix generated by an LLM and sent in private by Josef.
--- mm/hugetlb.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
mm/hugetlb.c +6 -2
@@ -6860,15 +6860,19 @@ vm_fault_t hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma, goto out_ptl;/* Handle userfault-wp first, before trying to lock more pages */ -if (userfaultfd_wp (vma) &&huge_pte_uffd_wp (huge_ptep_get (mm, vmf.address, vmf.pte)) && +if (huge_pte_uffd_wp (huge_ptep_get (mm, vmf.address, vmf.pte)) && (flags &FAULT_FLAG_WRITE ) && !huge_pte_write (vmf.orig_pte)) { -if (!userfaultfd_wp_async (vma)) { +if (userfaultfd_wp (vma) && !userfaultfd_wp_async (vma)) {spin_unlock (vmf.ptl);hugetlb_vma_unlock_read (vma);mutex_unlock (&hugetlb_fault_mutex_table[hash]);return handle_userfault (&vmf,VM_UFFD_WP ); } +/* +* TODO: fix all cases where uffd PTE bits remain in VMAs that +* are no longer registered with uffd. +*/ vmf.orig_pte =huge_pte_clear_uffd_wp (vmf.orig_pte);set_huge_pte_at (mm, vmf.address, vmf.pte, vmf.orig_pte,huge_page_size (hstate_vma (vma)));
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 5/2151 9p/xen: drain response work after unbinding IRQ
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yizhou Zhao <[email protected]>
[ Upstream commit 7b6f2e3c29fb4d76f1e4973280792eabbd526602 ]
commit ea4f1009408e ("9p/xen : Fix use after free bug in xen_9pfs_front_remove due to race condition") added cancel_work_sync() to keep xen_9pfs_front_free() from freeing a ring while p9_xen_response() is still running.
The work is currently drained before the event channel IRQ is unbound. That leaves a race window where xen_9pfs_front_event_handler() can run after cancel_work_sync() returns and queue p9_xen_response() again. The following unbind_from_irqhandler() synchronizes with the IRQ handler, but it does not cancel work that the handler already queued. The teardown can then free the ring and private data while the response work remains pending, and the worker later dereferences ring->priv and priv->client.
Unbind the event channel IRQ before draining the work. Once the IRQ is unbound, no new response work can be queued by the backend event channel, and cancel_work_sync() waits for any work that was queued before or during the unbind. It is then safe to release the ring resources.
Message-ID: <[email protected]>
--- net/9p/trans_xen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/9p/trans_xen.c +2 -2
@@ -288,12 +288,12 @@ static void xen_9pfs_front_free(struct xen_9pfs_front_priv *priv)for (i =0 ; i <XEN_9PFS_NUM_RINGS ; i++) {struct xen_9pfs_dataring *ring = &priv->rings[i]; -cancel_work_sync (&ring->work); -if (!priv->rings[i].intf)break ;if (priv->rings[i].irq >0 )unbind_from_irqhandler (priv->rings[i].irq, ring); +cancel_work_sync (&ring->work); +if (priv->rings[i].data.in) { for (j = 0; j < (1 << priv->rings[i].intf->ring_order);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 6/2151 ksmbd: revert fsids on durable reconnect and replay failure
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Bridges <[email protected]>
[ Upstream commit 539223f18026448f67d33d09719c355b91db7fd0 ]
On a durable handle reconnect or a request replay, smb2_open() switches to the SMB user's fsids before calling ksmbd_vfs_getattr(). If that call fails, the code jumps to err_out2 and skips ksmbd_revert_fsids() at err_out1. The user's credentials then stay installed on the shared ksmbd worker. Later work on that worker, including other users' requests, runs with the first user's fsuid, fsgid and supplementary groups. ksmbd_free_work_struct() also warns, because work->saved_cred is still set.
Jump to err_out1 instead. No path is held at this point, so skipping the path_put() at err_out is correct.
--- fs/smb/server/smb2pdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/smb/server/smb2pdu.c +1 -1
@@ -3125,7 +3125,7 @@ int smb2_open(struct ksmbd_work *work) rc =ksmbd_vfs_getattr (&fp->filp->f_path, &stat);if (rc) - goto err_out2; + goto err_out1; goto reconnected_fp; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 7/2151 mm/ksm: fix use of a freed anon_vma at swap-in
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Hildenbrand (Arm) <[email protected]>
[ Upstream commit 4c2dec1dce368ad9e9b1814307cb5ef3832fa07e ]
A folio read from a swap slot previously shared by KSM can remain in the swap cache after the process that first mapped it exits. Its anon_vma can then be freed, so ksm_might_need_to_copy() must not dereference it to compare roots.
Doing so can result in some false-positives, resulting in the reverse mapping missing the new folio mapping, preventing migration and reclaim.
SLAB_TYPESAFE_BY_RCU allows individual anon_vma objects to be reused immediately after freeing. A stale pointer can then refer to another anon_vma whose root matches, even though the target VMA is not linked to that anon_vma.
Move the anonymous rmap compatibility checks into folio_anon_rmap_compatible(). Keep the page-index check and compare the folio's anon_vma pointer against the VMA's own anon_vma and root first.
If neither matches, bite the bullet and walk the VMA's anon_vma_chain. The VMA keeps these anon_vmas alive, and finding a match guarantees that reverse mapping can find the new mapping.
Lorenzo Stoakes says in a private discussion:
"This isn't quite equivalent to the existing check.
Every anon_vma in an anon_vma_chain shares the same root, but if you split a VMA then fork both of them like this:
VMA A
/ \ <split>
VMA B VMA C
\ /
root <- anon_vma 1
----^ ^---- <fork>
/ parent \
anon_vma 2 anon_vma 3
| |
VMA D VMA E
VMA's D and E both get their own new
anon_vma's such that:
VMA D: anon_vma 2 -> anon_vma 1 -> root
VMA E: anon_vma 3 -> anon_vma 1 -> root
And if you found a folio referencing anon_vma 2, the existing check:
anon_vma->root == vma->anon-vma->root
Would be true for VMA's B, C, D & E.
However after your change it'd be true for VMA D only, as it's the only one with anon_vma 2 in its anon_vma_chain.
Whether or not that could actually happen in practice... 🙂 I don't know.
[...] after your change it'd be true for VMA D only, as it's the only one with anon_vma 2 in its anon_vma_chain. [...] I would [...] say that you are making the test stricter but more correct.
"
If this affects performance when KSM was never even involved, we could just track whether KSM ever merged anything and just skip these checks.
There isn't really a lot we can do otherwise: for mapped folios we might be able to use folio_get_anon_vma(), but for unmapped folios there really is no easy way to see if the anon_vma is still valid.
Document the (confusing) lifetime requirements of folio_anon_vma().
--- mm/ksm.c | 35 ++++++++++++++++++++++++++++++----- mm/util.c | 13 +++++++++++++ 2 files changed, 43 insertions(+), 5 deletions(-)
mm/ksm.c +30 -5
@@ -3080,11 +3080,39 @@ void __ksm_exit(struct mm_struct *mm)trace_ksm_exit (mm); } +static bool folio_anon_rmap_compatible (const struct folio *folio, +struct vm_area_struct *vma,unsigned long addr) +{ +const struct anon_vma *anon_vma =folio_anon_vma (folio); +struct anon_vma_chain *avc; + +VM_WARN_ON_ONCE_FOLIO (!folio_test_locked (folio), folio); +VM_WARN_ON_ONCE_FOLIO (folio_test_large (folio), folio); +VM_WARN_ON_ONCE_FOLIO (folio_test_ksm (folio), folio); + +if (!anon_vma) +return true; +if (folio->index !=linear_page_index (vma, addr)) +return false; + +/* +* Careful: anon_vma might have been freed, so we cannot safely +* dereference it. Add a fast path before we walk the anon_vma chain. +*/ +if (anon_vma == vma->anon_vma || anon_vma == vma->anon_vma->root) +return true; + +list_for_each_entry (avc, &vma->anon_vma_chain, same_vma) { +if (avc->anon_vma == anon_vma) +return true; + } +return false; +} +struct folio *ksm_might_need_to_copy (struct folio *folio,struct vm_area_struct *vma,unsigned long addr) {struct page *page =folio_page (folio,0 ); -struct anon_vma *anon_vma =folio_anon_vma (folio);struct folio *new_folio;if (folio_test_large (folio))
@@ -3094,10 +3122,7 @@ struct folio *ksm_might_need_to_copy(struct folio *folio,if (folio_stable_node (folio) && !(ksm_run &KSM_RUN_UNMERGE ))return folio;/* no need to copy it */ - }else if (!anon_vma) { -return folio;/* no need to copy it */ - }else if (folio->index ==linear_page_index (vma, addr) && - anon_vma->root == vma->anon_vma->root) { + }else if (folio_anon_rmap_compatible (folio, vma, addr)) {return folio;/* still no need to copy it */ }if (PageHWPoison (page))
mm/util.c +13 -0
@@ -668,6 +668,19 @@ void *vcalloc_noprof(size_t n, size_t size) }EXPORT_SYMBOL (vcalloc_noprof); +/** +* folio_anon_vma - Get a folio's raw anon_vma pointer. +* @folio: The folio. +* +* The returned pointer may be stale for an unmapped folio. The caller +* must ensure the anon_vma stays alive before dereferencing it. A folio +* reference or lock alone is insufficient; use folio_get_anon_vma() when +* the anon_vma's lifetime is not otherwise protected. Note that +* folio_get_anon_vma() is only useful for folios that are still mapped. +* +* Return: The raw anon_vma pointer for an anonymous, non-KSM folio, or +* %NULL otherwise. +*/ struct anon_vma *folio_anon_vma (const struct folio *folio) {unsigned long mapping = (unsigned long )folio->mapping;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 8/2151 ksmbd: enforce the read-only share flag when creating a stream
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Bridges <[email protected]>
[ Upstream commit 09139429fab3a5114c18d7c15fb161511d4d66c9 ]
When a share is read-only, smb2_open() rejects opens that would create or truncate a file. Creating a named stream on an existing file with streams_xattr sets neither O_CREAT nor O_TRUNC, so it passes this check, and smb2_set_stream_name_xattr() then creates the stream. On a Time Machine share, opening a missing AFP_AfpInfo stream also writes one. A user who can write a file at the filesystem level can therefore add streams to it through a read-only share.
Do not create a stream or synthesize AFP_AfpInfo when the share is not writable. Existing streams still open normally, and a missing stream opened with FILE_OPEN still returns STATUS_OBJECT_NAME_NOT_FOUND.
--- fs/smb/server/smb2pdu.c | 3 +++ 1 file changed, 3 insertions(+)
fs/smb/server/smb2pdu.c +3 -0
@@ -2567,6 +2567,9 @@ static noinline int smb2_set_stream_name_xattr(const struct path *path,return -EBADF ; } +if (!test_tree_conn_flag (fp->tcon,KSMBD_TREE_CONN_FLAG_WRITABLE )) +return -EACCES ; + rc =ksmbd_vfs_setxattr (idmap, path, xattr_stream_name,NULL ,0 ,0 , false);if (rc <0 )pr_err ("Failed to store XATTR stream name :%d\n" , rc);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 9/2151 mm/shmem: hold off eviction in shmem_writeout()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Josef Bacik <[email protected]>
[ Upstream commit 8f59173b5ca358bf4d1017b44da3cbe6faa80daf ]
Once shmem_writeout() has moved the folio from the page cache to the swap cache, the folio lock no longer keeps the inode alive: truncation and eviction find a swap entry, free it and do not wait for anybody. That did not matter as long as swap_writeout() was the last thing the function did. But since it puts the folio back when swap_writeout() returns AOP_WRITEPAGE_ACTIVATE, it uses the mapping and the inode afterwards:
reclaim last close of an unlinked file
shmem_writeout()
shmem_delete_from_page_cache()
swap_writeout()
zswap_store() fails shmem_evict_inode()
writeback is disabled shmem_truncate_range()
return AOP_WRITEPAGE_ACTIVATE shmem_free_swap()
destroy_inode() ... RCU grace period, freed
shmem_add_to_page_cache(mapping)
xas_lock_irq() <- use after free
swap_writeout() behaves that way if zswap is enabled, cannot take the folio and the memcg or one of its ancestors has memory.zswap.writeback set to 0.
shmem_unuse() already added infrastructure to deal with that. Reuse info->stop_eviction to protect the inode during writeout. Increment it before removing the folio from the page cache, and decrement it after swap_writeout() and any attempted reinsertion and inode accounting. In shmem_evict_inode(), wait for the counter to reach zero even if swapoff has already removed the inode from the swap list. Add some helpers to make the code easier to digest.
There is a known remaining issue with two swapoffs racing, and the empty list check not being able to detect that race. That will be addressed separately later.
Fix generated by an LLM and sent by Josef Bacik in private.
--- mm/shmem.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-)
mm/shmem.c +19 -3
@@ -1411,16 +1411,21 @@ static void shmem_evict_inode(struct inode *inode) }spin_unlock (&sbinfo->shrinklist_lock); } -while (!list_empty (&info->swaplist)) { -/* Wait while shmem_unuse() is scanning this inode... */ +/* +* Writeout may still use the inode after swapoff has removed it +* from the swaplist, so always wait at least once. +*/ +do {wait_var_event (&info->stop_eviction, !atomic_read (&info->stop_eviction)); +if (list_empty (&info->swaplist)) +break ;spin_lock (&shmem_swaplist_lock);/* ...but beware of the race if we peeked too early */ if (!atomic_read (&info->stop_eviction))list_del_init (&info->swaplist);spin_unlock (&shmem_swaplist_lock); - } + }while (!list_empty (&info->swaplist)); }simple_xattrs_free (&info->xattrs, sbinfo->max_inodes ? &freed :NULL );
@@ -1685,6 +1690,13 @@ int shmem_writeout(struct folio *folio, struct swap_iocb **plug,spin_unlock (&shmem_swaplist_lock); } +/* +* Once the folio has left the page cache, its lock no longer +* keeps the inode from being evicted and freed: hold eviction +* off, in case the folio has to be put back below. +*/ +atomic_inc (&info->stop_eviction); +swap_shmem_alloc (folio->swap, nr_pages);shmem_delete_from_page_cache (folio,swp_to_radix_entry (folio->swap));
@@ -1692,6 +1704,8 @@ int shmem_writeout(struct folio *folio, struct swap_iocb **plug, error =swap_writeout (folio, plug);if (error !=AOP_WRITEPAGE_ACTIVATE ) {/* folio has been unlocked */ +if (atomic_dec_and_test (&info->stop_eviction)) +wake_up_var (&info->stop_eviction);return error; }
@@ -1708,6 +1722,8 @@ int shmem_writeout(struct folio *folio, struct swap_iocb **plug,shmem_recalc_inode (inode,0 , -nr_pages);swap_free_nr (folio->swap, nr_pages); } +if (atomic_dec_and_test (&info->stop_eviction)) +wake_up_var (&info->stop_eviction);/* * The swap_cache_del_folio() below could be left for
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 10/2151 fbcon: Rebuild rotated font buffer on font change
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yao Yiqi <[email protected]>
[ Upstream commit e4b6b865d45d8dafb6c6f28c8a993a5b4431d25a ]
fbcon_rotate_font() caches a rotated copy of the console font in par->rotated.buf. The buffer is sized from the font's width, height and charcount, and is rebuilt in fbcon_init(), fbcon_switch() and fbcon_modechanged(), but not in fbcon_do_set_font().
When the font is changed through KDFONTOP, the new geometry is installed and vc_resize() redraws before the buffer is rebuilt. The rotated putcs/cursor ops then index the old buffer with the new cell size; KASAN reports a slab-out-of-bounds read in soft_cursor().
Rebuild the buffer for the visible console before the redraw, as the other callers do: select the console's blitting state with set_blitting_type() (which also uploads the new font's map on tile-blitting hardware), then rebuild. Background consoles keep their rebuild at fbcon_switch() time, as the buffer is shared per framebuffer and must not be updated for a console that is not being displayed.
To ensure a correct rollback when the rebuild or the following vc_resize() fails, save the rotated font state, clear it before rebuilding, and restore it in the error path of fbcon_do_set_font().
--- drivers/video/fbdev/core/fbcon.c | 57 ++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+)
drivers/video/fbdev/core/fbcon.c +57 -0
@@ -2430,6 +2430,12 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h, int charcount,int resize, ret, old_userfont, old_width, old_height, old_charcount;u8 *old_data = vc->vc_font.data;unsigned short old_hi_font_mask = vc->vc_hi_font_mask; +#ifdef CONFIG_FRAMEBUFFER_CONSOLE_ROTATION +u8 *saved_fontdata =NULL , *saved_fontbuffer =NULL ; +u32 saved_fd_size =0 ; +int saved_cur_rotate =0 ; +bool rotated_saved = false; +#endif resize = (w != vc->vc_font.width) || (h != vc->vc_font.height); vc->vc_font.data = (void *)(p->fontdata = data);
@@ -2449,6 +2455,33 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h, int charcount,else if (!vc->vc_hi_font_mask && charcount ==512 )set_vc_hi_font (vc, true); +/* +* Select the console's blitting state and update the rotated font buffer +* to match the new font, so that the rendering below does not use a +* cache that was built for the old font. Clear the cached state so +* the rebuild allocates a fresh buffer; the old state is kept until +* the font change can no longer fail. +*/ +if (con_is_visible (vc)) { +set_blitting_type (vc, info); +if (par->rotate_font) { +#ifdef CONFIG_FRAMEBUFFER_CONSOLE_ROTATION + saved_fontdata = par->fontdata; + saved_fontbuffer = par->fontbuffer; + saved_fd_size = par->fd_size; + saved_cur_rotate = par->cur_rotate; + par->fontdata =NULL ; + par->fontbuffer =NULL ; + par->fd_size =0 ; + par->cur_rotate =0 ; + rotated_saved = true; +#endif + ret = par->rotate_font (info, vc); +if (ret) + goto err_out; + } + } +if (resize) {int cols, rows;
@@ -2465,11 +2498,28 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h, int charcount,update_screen (vc); } +#ifdef CONFIG_FRAMEBUFFER_CONSOLE_ROTATION +if (rotated_saved) +kfree (saved_fontbuffer); +#endif if (old_userfont && (--REFCOUNT (old_data) ==0 ))kfree (old_data -FONT_EXTRA_WORDS *sizeof (int ));return 0 ; err_out: +#ifdef CONFIG_FRAMEBUFFER_CONSOLE_ROTATION +/* +* Drop the buffer built for the new font and restore the saved +* state. +*/ +if (rotated_saved) { +kfree (par->fontbuffer); + par->fontdata = saved_fontdata; + par->fontbuffer = saved_fontbuffer; + par->fd_size = saved_fd_size; + par->cur_rotate = saved_cur_rotate; + } +#endif p->fontdata = old_data; vc->vc_font.data = old_data;
@@ -2489,6 +2539,13 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h, int charcount,else if (!old_hi_font_mask && vc->vc_hi_font_mask)set_vc_hi_font (vc, false); +/* +* Re-select the blitting type, which re-uploads the font map on +* tile-blitting hardware. +*/ +if (con_is_visible (vc)) +set_blitting_type (vc, info); +return ret; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 11/2151 mm/memcontrol: fix stuck FLUSHING_CACHED_CHARGE bit on isolated cpus
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Rik van Riel <[email protected]>
[ Upstream commit d2f28a1a652e0a43f6f63de9b4e4d8d5f2716803 ]
When drain_all_stock() sets FLUSHING_CACHED_CHARGE before checking isolation, schedule_drain_work() can drop the work in a separate RCU critical section, and housekeeping_update()'s synchronize_rcu() can race that second check, leaving the flag set.
drain_local_stock() only clears the bit for work that ran, so the flag remains set and the stock is never drained again.
Have schedule_drain_work() return whether the work was queued, and clear FLUSHING_CACHED_CHARGE in drain_all_stock() when the remote CPU is isolated, so future drains can retry.
--- mm/memcontrol.c | 6 ++++++ 1 file changed, 6 insertions(+)
mm/memcontrol.c +6 -0
@@ -2016,6 +2016,9 @@ void drain_all_stock(struct mem_cgroup *root_memcg)drain_local_memcg_stock (&memcg_st->work); else if (!cpu_is_isolated(cpu)) schedule_work_on(cpu, &memcg_st->work); + else + clear_bit(FLUSHING_CACHED_CHARGE, + &memcg_st->flags); } if (!test_bit(FLUSHING_CACHED_CHARGE, &obj_st->flags) &&
@@ -2026,6 +2029,9 @@ void drain_all_stock(struct mem_cgroup *root_memcg)drain_local_obj_stock (&obj_st->work); else if (!cpu_is_isolated(cpu)) schedule_work_on(cpu, &obj_st->work); + else + clear_bit(FLUSHING_CACHED_CHARGE, + &obj_st->flags); } }migrate_enable ();
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 12/2151 ASoC/soundwire: Intel: reset the PCMSyCM registers in hda_sdw_bpt_close
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bard Liao <[email protected]>
[ Upstream commit 992eb0dfbc4f594d60ae57974efa835bfac34d1e ]
Resetting the PCMSyCM registers is required for Intel SoundWire stream. The same procedure is done in sdw_hda_dai_hw_params() for the normal SoundWire stream, too.
Stable-dep-of: 348bc756d912 ("ASoC: SOF: Intel: hda-sdw-bpt: Stop active DMA before closing BPT streams")
--- drivers/soundwire/intel_ace2x.c | 4 +++- include/sound/hda-sdw-bpt.h | 5 +++-- sound/soc/sof/intel/hda-sdw-bpt.c | 31 ++++++++++++++++++++++++++++--- 3 files changed, 34 insertions(+), 6 deletions(-)
drivers/soundwire/intel_ace2x.c +3 -1
@@ -192,6 +192,7 @@ static int intel_ace2x_bpt_open_stream(struct sdw_intel *sdw, struct sdw_slave * __func__, str_read_write(command), ret); ret1 =hda_sdw_bpt_close (cdns->dev->parent,/* PCI device */ + sdw->instance, sdw->bpt_ctx.bpt_tx_stream, &sdw->bpt_ctx.dmab_tx_bdl, sdw->bpt_ctx.bpt_rx_stream, &sdw->bpt_ctx.dmab_rx_bdl);if (ret1 <0 )
@@ -226,7 +227,8 @@ static void intel_ace2x_bpt_close_stream(struct sdw_intel *sdw, struct sdw_slavestruct sdw_cdns *cdns = &sdw->cdns;int ret; - ret =hda_sdw_bpt_close (cdns->dev->parent/* PCI device */ , sdw->bpt_ctx.bpt_tx_stream, + ret =hda_sdw_bpt_close (cdns->dev->parent/* PCI device */ , sdw->instance, + sdw->bpt_ctx.bpt_tx_stream, &sdw->bpt_ctx.dmab_tx_bdl, sdw->bpt_ctx.bpt_rx_stream, &sdw->bpt_ctx.dmab_rx_bdl);if (ret <0 )
include/sound/hda-sdw-bpt.h +3 -2
@@ -27,7 +27,7 @@ int hda_sdw_bpt_send_async(struct device *dev, struct hdac_ext_stream *bpt_tx_stint hda_sdw_bpt_wait (struct device *dev,struct hdac_ext_stream *bpt_tx_stream,struct hdac_ext_stream *bpt_rx_stream); -int hda_sdw_bpt_close (struct device *dev,struct hdac_ext_stream *bpt_tx_stream, +int hda_sdw_bpt_close (struct device *dev,int link_id,struct hdac_ext_stream *bpt_tx_stream,struct snd_dma_buffer *dmab_tx_bdl,struct hdac_ext_stream *bpt_rx_stream,struct snd_dma_buffer *dmab_rx_bdl);#else
@@ -56,7 +56,8 @@ static inline int hda_sdw_bpt_wait(struct device *dev, struct hdac_ext_stream *breturn -EOPNOTSUPP ; } -static inline int hda_sdw_bpt_close (struct device *dev,struct hdac_ext_stream *bpt_tx_stream, +static inline int hda_sdw_bpt_close (struct device *dev,int link_id, +struct hdac_ext_stream *bpt_tx_stream,struct snd_dma_buffer *dmab_tx_bdl,struct hdac_ext_stream *bpt_rx_stream,struct snd_dma_buffer *dmab_rx_bdl)
sound/soc/sof/intel/hda-sdw-bpt.c +28 -3
@@ -297,7 +297,8 @@ int hda_sdw_bpt_open(struct device *dev, int link_id, struct hdac_ext_stream **b __func__, ret); close: - ret1 =hda_sdw_bpt_close (dev, *bpt_tx_stream, dmab_tx_bdl, *bpt_rx_stream, dmab_rx_bdl); + ret1 =hda_sdw_bpt_close (dev, link_id, *bpt_tx_stream, dmab_tx_bdl, + *bpt_rx_stream, dmab_rx_bdl);if (ret1 <0 )dev_err (dev,"%s: hda_sdw_bpt_close failed: %d\n" , __func__, ret1);
@@ -422,14 +423,38 @@ int hda_sdw_bpt_wait(struct device *dev, struct hdac_ext_stream *bpt_tx_stream, }EXPORT_SYMBOL_NS (hda_sdw_bpt_wait,"SND_SOC_SOF_INTEL_HDA_SDW_BPT" ); -int hda_sdw_bpt_close (struct device *dev,struct hdac_ext_stream *bpt_tx_stream, +int hda_sdw_bpt_close (struct device *dev,int link_id,struct hdac_ext_stream *bpt_tx_stream,struct snd_dma_buffer *dmab_tx_bdl,struct hdac_ext_stream *bpt_rx_stream,struct snd_dma_buffer *dmab_rx_bdl) { +struct snd_sof_dev *sdev =dev_get_drvdata (dev);int ret;int ret1; - ret =hda_sdw_bpt_dma_deprepare (dev, bpt_rx_stream, dmab_rx_bdl); +/* +* In the case of SoundWire we need to reset the PCMSyCM registers. +* Need to continue depreparing the DMA buffers even if this fails. +*/ + ret =hdac_bus_eml_sdw_map_stream_ch (sof_to_bus (sdev), link_id, +0 ,/* PDI0 */ +0 ,0 ,SNDRV_PCM_STREAM_PLAYBACK ); +if (ret <0 ) +dev_err (dev,"%s: hdac_bus_eml_sdw_map_stream_ch failed %d for PDI0\n" , + __func__, ret); + + ret1 =hdac_bus_eml_sdw_map_stream_ch (sof_to_bus (sdev), link_id, +1 ,/* PDI1 */ +0 ,0 ,SNDRV_PCM_STREAM_CAPTURE ); +if (ret1 <0 ) { +dev_err (dev,"%s: hdac_bus_eml_sdw_map_stream_ch failed %d for PDI1\n" , + __func__, ret1); +if (!ret) + ret = ret1; + } + + ret1 =hda_sdw_bpt_dma_deprepare (dev, bpt_rx_stream, dmab_rx_bdl); +if (!ret) + ret = ret1; ret1 =hda_sdw_bpt_dma_deprepare (dev, bpt_tx_stream, dmab_tx_bdl);if (!ret)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 13/2151 ASoC: SOF: Intel: hda-sdw-bpt: Stop active DMA before closing BPT streams
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lee Jones <[email protected]>
[ Upstream commit 348bc756d912dd8f47fd36c167075717951a515e ]
When sdw_enable_stream() fails in intel_ace2x_bpt_send_async() after hda_sdw_bpt_send_async() has already started the TX and RX DMA streams, intel_ace2x_bpt_close_stream() invokes hda_sdw_bpt_close() directly without calling hda_sdw_bpt_wait(). As a result, hda_sdw_bpt_dma_deprepare() tears down the DMA buffers and BDL while the DMA hardware is still running.
Disable any running TX or RX BPT DMA stream at the start of hda_sdw_bpt_close() before unmapping channels and depreparing DMA resources.
--- sound/soc/sof/intel/hda-sdw-bpt.c | 6 ++++++ 1 file changed, 6 insertions(+)
sound/soc/sof/intel/hda-sdw-bpt.c +6 -0
@@ -431,6 +431,12 @@ int hda_sdw_bpt_close(struct device *dev, int link_id, struct hdac_ext_stream *bint ret;int ret1; +if (bpt_rx_stream &&hdac_stream (bpt_rx_stream)->running) +hda_sdw_bpt_dma_disable (dev, bpt_rx_stream); + +if (bpt_tx_stream &&hdac_stream (bpt_tx_stream)->running) +hda_sdw_bpt_dma_disable (dev, bpt_tx_stream); +/* * In the case of SoundWire we need to reset the PCMSyCM registers. * Need to continue depreparing the DMA buffers even if this fails.
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 14/2151 drm/amdkfd: Validate the control stack of a restored queue
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: William Palacek <[email protected]>
[ Upstream commit 90d91a192751cd9a7d9d2286299bc72ec1c28179 ]
kfd_criu_restore_queue() takes the control stack size from the checkpoint image without the topology check create-queue does in kfd_queue_acquire_buffers(), which restore stopped calling in commit 1cafa8b29e02 ("drm/amdkfd: Don't acquire buffers during CRIU queue restore."). An image size of 0x300000 is accepted and sizes the MQD allocation, and 0xFFFFFFFF trips a page allocator warning in kmalloc().
restore_mqd() also keeps the image's cp_hqd_cntl_stack_size, cp_hqd_cntl_stack_offset and cp_hqd_wg_state_offset. With offset > size or wave state offset < size, get_wave_state() returns wrapped sizes.
Take the per-XCC size from topology, 0 for queues without a control stack, and reject larger images. In restore_mqd(), set the size to it and bound both offsets as init_mqd() does.
--- .../gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c | 3 ++ .../gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c | 3 ++ .../gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c | 3 ++ .../gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c | 3 ++ .../amd/amdkfd/kfd_process_queue_manager.c | 30 +++++++++++++------ 5 files changed, 33 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c +3 -0
@@ -293,6 +293,9 @@ static void restore_mqd(struct mqd_manager *mm, void **mqd, addr = mqd_mem_obj->gpu_addr;memcpy (m, mqd_src,sizeof (*m)); + m->cp_hqd_cntl_stack_size = qp->ctl_stack_size; + m->cp_hqd_cntl_stack_offset =min (m->cp_hqd_cntl_stack_offset, qp->ctl_stack_size); + m->cp_hqd_wg_state_offset =max (m->cp_hqd_wg_state_offset, qp->ctl_stack_size); *mqd = m;if (gart_addr)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c +3 -0
@@ -344,6 +344,9 @@ static void restore_mqd(struct mqd_manager *mm, void **mqd, addr = mqd_mem_obj->gpu_addr;memcpy (m, mqd_src,sizeof (*m)); + m->cp_hqd_cntl_stack_size = qp->ctl_stack_size; + m->cp_hqd_cntl_stack_offset =min (m->cp_hqd_cntl_stack_offset, qp->ctl_stack_size); + m->cp_hqd_wg_state_offset =max (m->cp_hqd_wg_state_offset, qp->ctl_stack_size); *mqd = m;if (gart_addr)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c +3 -0
@@ -429,6 +429,9 @@ static void restore_mqd(struct mqd_manager *mm, void **mqd, addr = mqd_mem_obj->gpu_addr;memcpy (m, mqd_src,sizeof (*m)); + m->cp_hqd_cntl_stack_size = qp->ctl_stack_size; + m->cp_hqd_cntl_stack_offset =min (m->cp_hqd_cntl_stack_offset, qp->ctl_stack_size); + m->cp_hqd_wg_state_offset =max (m->cp_hqd_wg_state_offset, qp->ctl_stack_size); *mqd = m;if (gart_addr)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c +3 -0
@@ -305,6 +305,9 @@ static void restore_mqd(struct mqd_manager *mm, void **mqd, addr = mqd_mem_obj->gpu_addr;memcpy (m, mqd_src,sizeof (*m)); + m->cp_hqd_cntl_stack_size = qp->ctl_stack_size; + m->cp_hqd_cntl_stack_offset =min (m->cp_hqd_cntl_stack_offset, qp->ctl_stack_size); + m->cp_hqd_wg_state_offset =max (m->cp_hqd_wg_state_offset, qp->ctl_stack_size); *mqd = m;if (gart_addr)
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c +21 -9
@@ -26,6 +26,7 @@#include <linux/list.h> #include "kfd_device_queue_manager.h" #include "kfd_priv.h" +#include "kfd_topology.h" #include "kfd_kernel_queue.h" #include "amdgpu_amdkfd.h" #include "amdgpu_reset.h"
@@ -968,7 +969,7 @@ int kfd_criu_checkpoint_queues(struct kfd_process *p, }static void set_queue_properties_from_criu (struct queue_properties *qp, -struct kfd_criu_queue_priv_data *q_data,uint32_t num_xcc) +struct kfd_criu_queue_priv_data *q_data) { qp->is_interop = false; qp->queue_percent = q_data->q_percent;
@@ -981,11 +982,6 @@ static void set_queue_properties_from_criu(struct queue_properties *qp, qp->eop_ring_buffer_size = q_data->eop_ring_buffer_size; qp->ctx_save_restore_area_address = q_data->ctx_save_restore_area_address; qp->ctx_save_restore_area_size = q_data->ctx_save_restore_area_size; -if (q_data->type ==KFD_QUEUE_TYPE_COMPUTE ) - qp->ctl_stack_size = q_data->ctl_stack_size / num_xcc; -else - qp->ctl_stack_size = q_data->ctl_stack_size; - qp->type = q_data->type; qp->format = q_data->format; }
@@ -997,6 +993,7 @@ int kfd_criu_restore_queue(struct kfd_process *p, {uint8_t *mqd, *ctl_stack, *q_extra_data =NULL ;struct kfd_criu_queue_priv_data *q_data; +struct kfd_topology_device *topo_dev;struct kfd_process_device *pdd;uint64_t q_extra_data_size;struct queue_properties qp;
@@ -1033,6 +1030,24 @@ int kfd_criu_restore_queue(struct kfd_process *p, goto exit; } +memset (&qp,0 ,sizeof (qp)); +set_queue_properties_from_criu (&qp, q_data); + +/* Per-XCC control stack size from topology, as create-queue requires */ +if (qp.type ==KFD_QUEUE_TYPE_COMPUTE && pdd->dev->kfd->cwsr_enabled) { + topo_dev =kfd_topology_device_by_id (pdd->dev->id); +if (!topo_dev) { + ret = -EINVAL ; + goto exit; + } + qp.ctl_stack_size = topo_dev->node_props.ctl_stack_size; + } + +if (q_data->ctl_stack_size > (u64 )qp.ctl_stack_size *NUM_XCC (pdd->dev->xcc_mask)) { + ret = -EINVAL ; + goto exit; + } + *priv_data_offset +=sizeof (*q_data); q_extra_data_size = (uint64_t )q_data->ctl_stack_size + q_data->mqd_size;
@@ -1062,9 +1077,6 @@ int kfd_criu_restore_queue(struct kfd_process *p, mqd = q_extra_data; ctl_stack = mqd + q_data->mqd_size; -memset (&qp,0 ,sizeof (qp)); -set_queue_properties_from_criu (&qp, q_data,NUM_XCC (pdd->dev->xcc_mask)); - ret =kfd_queue_acquire_buffers (pdd, &qp);if (ret) {pr_debug ("failed to acquire user queue buffers for CRIU\n" );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 15/2151 pidfs: prepare to drop exit_info pointer
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Christian Brauner <[email protected]>
[ Upstream commit ad6e3ea683ef4086cdf3d2ec40cb3f6e62edb945 ]
There will likely be more info that we need to store in struct pidfs_attr. We need to make sure that some of the information such as exit info or coredump info that consists of multiple bits is either available completely or not at all, but never partially. Currently we use a pointer that we assign to. That doesn't scale. We can't waste a pointer for each mulit-part information struct we want to expose. Use a bitmask instead.
Stable-dep-of: 172658cf6009 ("pidfs: don't let PIDFD_GET_INFO miss a reaped task")
--- fs/pidfs.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
fs/pidfs.c +9 -3
@@ -49,7 +49,12 @@ struct pidfs_exit_info {__u32 coredump_mask; }; +enum pidfs_attr_mask_bits { +PIDFS_ATTR_BIT_EXIT =0 , +}; +struct pidfs_attr { +unsigned long attr_mask;struct simple_xattrs *xattrs;struct pidfs_exit_info __pei;struct pidfs_exit_info *exit_info;
@@ -325,8 +330,8 @@ static long pidfd_info(struct file *file, unsigned int cmd, unsigned long arg) attr =READ_ONCE (pid->attr);if (mask &PIDFD_INFO_EXIT ) { - exit_info =READ_ONCE (attr->exit_info); -if (exit_info) { +if (test_bit (PIDFS_ATTR_BIT_EXIT , &attr->attr_mask)) { +smp_rmb (); kinfo.mask |=PIDFD_INFO_EXIT ;#ifdef CONFIG_CGROUPS kinfo.cgroupid = exit_info->cgroupid;
@@ -681,7 +686,8 @@ void pidfs_exit(struct task_struct *tsk) exit_info->exit_code = tsk->exit_code;/* Ensure that PIDFD_GET_INFO sees either all or nothing. */ -smp_store_release (&attr->exit_info, &attr->__pei); +smp_wmb (); +set_bit (PIDFS_ATTR_BIT_EXIT , &attr->attr_mask); }#ifdef CONFIG_COREDUMP
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 16/2151 pidfs: dont let PIDFD_GET_INFO miss a reaped task
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Josef Bacik <[email protected]>
[ Upstream commit 172658cf600904ff6121e240f69a0ccb36e65d6b ]
PIDFD_GET_INFO describes the task while there is one, and with PIDFD_INFO_EXIT its exit status once it has been reaped. pidfd_info() looks at the two in the wrong order and can miss both:
pidfd_info() release_task()
PIDFS_ATTR_BIT_EXIT is not set
pidfs_exit()
__unhash_process()
get_pid_task() == NULL
goto copy_outThe ioctl succeeds with neither PIDFD_INFO_PID nor PIDFD_INFO_EXIT in the mask. If the task is unhashed a little later, after get_pid_task(), its pid reads as 0 and the ioctl fails with -ESRCH, although the caller asked for the exit information and it is available by now.
The second case does not even need an exit. When a sub-thread execs, de_thread() hands the leader's pid over to it and releases the old leader. A caller that got hold of the old leader reports the tid of the sub-thread as the pid, or -ESRCH for a process that is alive.
Look up the task first. pidfs_exit() runs before the task is unhashed, so a caller that finds no task finds the exit information; this needs a barrier on both sides because taking tasklist_lock does not order the store in pidfs_exit() against the one in detach_pid(). And start over if the task no longer owns the pid when all the fields have been read: then there is either exit information or another task.
Go by the pid for that check and for the pid we report, not by ->thread_pid of the task. exchange_tids() moves the pid to the exec'ing thread before it updates ->thread_pid of either task. A caller that finds the new leader in between would read the old tid of the sub-thread from ->thread_pid, and a check of ->thread_pid would restart until the exec'ing thread gets to its store. On PREEMPT_RT that thread can be preempted with tasklist_lock held and can't move to another CPU. If the RT task that preempted it calls PIDFD_GET_INFO, the ioctl spins until the exec'ing thread gets the CPU back, and that never happens if the exec'ing thread is an RT task of lower priority.
Christian Brauner <[email protected]> says:
Go by @pid instead of ->thread_pid of the task for the reported pid and for the restart check.
--- fs/pidfs.c | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-)
fs/pidfs.c +35 -6
@@ -309,6 +309,7 @@ static long pidfd_info(struct file *file, unsigned int cmd, unsigned long arg)struct user_namespace *user_ns;struct pidfs_attr *attr;const struct cred *c; +bool task_owns_pid;__u64 mask;BUILD_BUG_ON (sizeof (struct pidfd_info ) !=PIDFD_INFO_SIZE_VER1 );
@@ -329,6 +330,17 @@ static long pidfd_info(struct file *file, unsigned int cmd, unsigned long arg)return -EREMOTE ; attr =READ_ONCE (pid->attr); + exit_info = &attr->__pei; +again: +/* +* Look for the task first. pidfs_exit() records the exit information +* before the task is unhashed, so if the task is gone the information +* is there. +*/ + task =get_pid_task (pid,PIDTYPE_PID ); +if (!task) +smp_rmb ();/* pairs with smp_mb__after_atomic() in pidfs_exit() */ +if (mask &PIDFD_INFO_EXIT ) {if (test_bit (PIDFS_ATTR_BIT_EXIT , &attr->attr_mask)) {smp_rmb ();
@@ -346,7 +358,6 @@ static long pidfd_info(struct file *file, unsigned int cmd, unsigned long arg) kinfo.coredump_mask =READ_ONCE (attr->__pei.coredump_mask); } - task =get_pid_task (pid,PIDTYPE_PID );if (!task) {/* * If the task has already been reaped, only exit
@@ -404,16 +415,29 @@ static long pidfd_info(struct file *file, unsigned int cmd, unsigned long arg)* task might return as soon as the copy_to_user finishes, but that's ok * and userspace expects that might happen and can act accordingly, so * this is just best-effort. What we can do however is checking that all -* the fields are set correctly, or return ESRCH to avoid providing -* incomplete information. */ +* the fields are set correctly, to avoid providing incomplete +* information. +*/ kinfo.ppid =task_ppid_nr_ns (task,NULL ); kinfo.tgid =task_tgid_vnr (task); - kinfo.pid =task_pid_vnr (task); + kinfo.pid =pid_vnr (pid); kinfo.mask |=PIDFD_INFO_PID ; -if (kinfo.pid ==0 || kinfo.tgid ==0 ) -return -ESRCH ; +/* +* The task was reaped, or lost @pid to a sub-thread that called exec, +* while we were looking at it. Start over: there is exit information +* now, or a new task. Don't go by ->thread_pid, exchange_tids() +* updates it only after it has moved @pid. +*/ +scoped_guard (rcu) + task_owns_pid =pid_task (pid,PIDTYPE_PID ) == task; +if (!task_owns_pid || kinfo.tgid ==0 ) { +put_task_struct (task); + task =NULL ; +memset (&kinfo,0 ,sizeof (kinfo)); + goto again; + } copy_out:/*
@@ -688,6 +712,11 @@ void pidfs_exit(struct task_struct *tsk)/* Ensure that PIDFD_GET_INFO sees either all or nothing. */ smp_wmb ();set_bit (PIDFS_ATTR_BIT_EXIT , &attr->attr_mask); +/* +* Whoever sees that the task is unhashed must see the bit, see +* pidfd_info(). Taking tasklist_lock does not order the two stores. +*/ +smp_mb__after_atomic (); }#ifdef CONFIG_COREDUMP
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 17/2151 btrfs: prevent deleting the wrong subvolume by ID
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: guolingxing <[email protected]>
[ Upstream commit 1960146913b31b288ed2cd607d103ee3b41681d4 ]
When deleting a subvolume by ID, btrfs_ioctl_snap_destroy() first resolves the requested ID to a name, then looks up that name again under the parent directory lock.
A concurrent rename can change which subvolume is associated with the name between these operations. Since the deletion path does not verify the ID of the resolved subvolume, it can delete a different subvolume while leaving the requested one intact.
This was reproduced by repeatedly exchanging the names of two subvolumes using renameat2(RENAME_EXCHANGE) while deleting one of them by ID. The wrong subvolume was deleted in 9 out of 14 independent tests.
Fix this by checking that the resolved subvolume ID matches the requested ID while holding the parent directory lock. Return -EAGAIN on a mismatch so that userspace can retry the operation instead of being told that the requested subvolume does not exist.
--- fs/btrfs/ioctl.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
fs/btrfs/ioctl.c +11 -0
@@ -2413,6 +2413,17 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file, inode =d_inode (dentry); dest =BTRFS_I (inode)->root; + +/* +* A concurrent rename may have changed which subvolume the name +* refers to. Verify that the resolved ID still matches the requested ID. +*/ +if (destroy_v2 && (vol_args2->flags &BTRFS_SUBVOL_SPEC_BY_ID ) && +btrfs_root_id (dest) != vol_args2->subvolid) { + ret = -EAGAIN ; + goto out_dput; + } +if (!capable (CAP_SYS_ADMIN )) {/* * Regular user. Only allow this with a special mount
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 18/2151 PCI/pwrctrl: slot: Rename private struct and pointers for consistency
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bjorn Helgaas <[email protected]>
[ Upstream commit e40d16e6c23994b28894179b87f9747edd63062a ]
Previously the pwrseq, tc9563, and slot pwrctrl drivers used different naming conventions for their private data structs and pointers to them, which makes patches hard to read.
Rename structs, variables, and functions to reduce boiler-plate and start with "slot":
struct pci_pwrctrl_slot_data -> struct slot_pwrctrl struct pci_pwrctrl ctx -> struct pci_pwrctrl pwrctrl pci_pwrctrl_slot_probe() -> slot_pwrctrl_probe() pci_pwrctrl_slot_of_match[] -> slot_pwrctrl_of_match[] pci_pwrctrl_slot_driver -> slot_pwrctrl_driver
devm_pci_pwrctrl_slot_power_off() -> devm_slot_pwrctrl_power_off()
No functional change intended.
Stable-dep-of: ee450e3a2d33 ("PCI/pwrctrl: generic: Fix leaking array from of_regulator_bulk_get_all()")
--- drivers/pci/pwrctrl/slot.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)
drivers/pci/pwrctrl/slot.c +15 -15
@@ -13,23 +13,23 @@#include <linux/regulator/consumer.h> #include <linux/slab.h> -struct pci_pwrctrl_slot_data { -struct pci_pwrctrl ctx; +struct slot_pwrctrl { +struct pci_pwrctrl pwrctrl;struct regulator_bulk_data *supplies;int num_supplies; }; -static void devm_pci_pwrctrl_slot_power_off (void *data) +static void devm_slot_pwrctrl_power_off (void *data) { -struct pci_pwrctrl_slot_data *slot = data; +struct slot_pwrctrl *slot = data;regulator_bulk_disable (slot->num_supplies, slot->supplies);regulator_bulk_free (slot->num_supplies, slot->supplies); } -static int pci_pwrctrl_slot_probe (struct platform_device *pdev) +static int slot_pwrctrl_probe (struct platform_device *pdev) { -struct pci_pwrctrl_slot_data *slot; +struct slot_pwrctrl *slot;struct device *dev = &pdev->dev;struct clk *clk;int ret;
@@ -53,7 +53,7 @@ static int pci_pwrctrl_slot_probe(struct platform_device *pdev)return ret; } - ret =devm_add_action_or_reset (dev, devm_pci_pwrctrl_slot_power_off, + ret =devm_add_action_or_reset (dev, devm_slot_pwrctrl_power_off, slot);if (ret)return ret;
@@ -64,31 +64,31 @@ static int pci_pwrctrl_slot_probe(struct platform_device *pdev) "Failed to enable slot clock\n"); } -pci_pwrctrl_init (&slot->ctx, dev); +pci_pwrctrl_init (&slot->pwrctrl, dev); - ret =devm_pci_pwrctrl_device_set_ready (dev, &slot->ctx); + ret =devm_pci_pwrctrl_device_set_ready (dev, &slot->pwrctrl);if (ret)return dev_err_probe (dev, ret,"Failed to register pwrctrl driver\n" );return 0 ; } -static const struct of_device_id pci_pwrctrl_slot_of_match[] = { +static const struct of_device_id slot_pwrctrl_of_match[] = { { .compatible ="pciclass,0604" , }, { } }; -MODULE_DEVICE_TABLE (of, pci_pwrctrl_slot_of_match); +MODULE_DEVICE_TABLE (of, slot_pwrctrl_of_match); -static struct platform_driver pci_pwrctrl_slot_driver = { +static struct platform_driver slot_pwrctrl_driver = { .driver = { .name ="pci-pwrctrl-slot" , - .of_match_table = pci_pwrctrl_slot_of_match, + .of_match_table = slot_pwrctrl_of_match, }, - .probe = pci_pwrctrl_slot_probe, + .probe = slot_pwrctrl_probe, }; -module_platform_driver (pci_pwrctrl_slot_driver); +module_platform_driver (slot_pwrctrl_driver);MODULE_AUTHOR ("Manivannan Sadhasivam <[email protected]>" );MODULE_DESCRIPTION ("Generic PCI Power Control driver for PCI Slots" );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 19/2151 PCI/pwrctrl: generic: Fix leaking array from of_regulator_bulk_get_all()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alexey Charkov <[email protected]>
[ Upstream commit ee450e3a2d334c7e6383d8a55ad2d53b3822bacc ]
of_regulator_bulk_get_all() allocates the consumers array and returns it to the caller, who is expected to free it at an appropriate time. PCI pwrctrl never did, leading to a memory leak.
Add an explicit kfree() for the consumers array.
--- drivers/pci/pwrctrl/slot.c | 1 + 1 file changed, 1 insertion(+)
drivers/pci/pwrctrl/slot.c +1 -0
@@ -25,6 +25,7 @@ static void devm_slot_pwrctrl_power_off(void *data)regulator_bulk_disable (slot->num_supplies, slot->supplies);regulator_bulk_free (slot->num_supplies, slot->supplies); +kfree (slot->supplies); }static int slot_pwrctrl_probe (struct platform_device *pdev)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 20/2151 ocfs2/cluster: hold a reference on the heartbeat thread
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Karl Mehltretter <[email protected]>
[ Upstream commit aa2e38aabaae87236290e486a2b77cfa3adfbebe ]
Since commit 688bc88e2046 ("ocfs2/cluster: keep heartbeat local node stable"), o2hb_thread() leaves its loop and returns when the local node changes, for example after "echo 0 > node/<name>/local". The thread was started with kthread_run() and nothing holds a reference to its task_struct, so the task is freed once it exits, while reg->hr_task still points to it.
Reading the region's pid attribute then reads the freed task, and removing the region calls kthread_stop() on it:
BUG: KASAN: slab-use-after-free in o2hb_region_pid_show+0xb3/0xc0 refcount_t: addition on 0; use-after-free. Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: 0010:kthread_stop+0xb1/0x390
The thread could already return by itself before, when heartbeat start was aborted or on an unclean stop, but the local node change makes it reachable from userspace at any time.
Create the thread, take a reference on it and only then wake it, so the reference cannot race with the thread exiting. Drop it with kthread_stop_put().
Stable-dep-of: 0a8f258c0f01 ("ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute")
--- fs/ocfs2/cluster/heartbeat.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
fs/ocfs2/cluster/heartbeat.c +8 -4
@@ -1958,18 +1958,22 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,atomic_set (®->hr_unsteady_iterations, (live_threshold *3 ));o2hb_set_region_stopping (reg, false); - hb_task =kthread_run (o2hb_thread, reg,"o2hb-%s" , - reg->hr_item.ci_name); + hb_task =kthread_create (o2hb_thread, reg,"o2hb-%s" , + reg->hr_item.ci_name);if (IS_ERR (hb_task)) { ret =PTR_ERR (hb_task);mlog_errno (ret); goto out; } +/* The thread may exit on its own, so pin it before it can run. */ +get_task_struct (hb_task);spin_lock (&o2hb_live_lock); reg->hr_task = hb_task;spin_unlock (&o2hb_live_lock); +wake_up_process (hb_task); + ret =wait_event_interruptible (o2hb_steady_queue,atomic_read (®->hr_steady_iterations) ==0 || reg->hr_node_deleted);
@@ -2014,7 +2018,7 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,spin_unlock (&o2hb_live_lock);if (hb_task) -kthread_stop (hb_task); +kthread_stop_put (hb_task);o2hb_unmap_slot_data (reg);
@@ -2208,7 +2212,7 @@ static void o2hb_heartbeat_group_drop_item(struct config_group *group,spin_unlock (&o2hb_live_lock);if (hb_task) -kthread_stop (hb_task); +kthread_stop_put (hb_task);if (o2hb_global_heartbeat_active ()) {spin_lock (&o2hb_live_lock);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 21/2151 ocfs2/heartbeat: serialize concurrent writes to a regions dev attribute
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eklavya Singh <[email protected]>
[ Upstream commit 0a8f258c0f012314c36b9e4818cdc0178c68f891 ]
o2hb_region_dev_store() checks reg->hr_bdev_file to see if the region is already started, but nothing stops two writers from doing that at the same time. configfs only serializes writes through the same open file, so two processes that each open the dev attribute can both get past the check:
A: hr_bdev_file is NULL, opens file A, sets hr_bdev_file = A
B: hr_bdev_file is NULL, opens file B, sets hr_bdev_file = B
A: start fails, fput(hr_bdev_file) drops B, sets it to NULL
B: start fails, fput(NULL)
Both calls also use the same hr_slots, hr_slot_data and hr_tmp_block, so the error paths can free the slot data twice.
syzbot hit the fput(NULL) with an unbound loop device, where every start fails with -EIO. With four threads doing the same thing on a KASAN kernel I get both crashes within a second:
BUG: KASAN: double-free in o2hb_unmap_slot_data+0x14d/0x2f0 BUG: kernel NULL pointer dereference, address: 0000000000000158
Add a mutex to the region and hold it in dev_store(), in the block_bytes, start_block and blocks stores, and in dev_show(), since they all look at hr_bdev_file. dev_store() cleans up with goto, so it takes the mutex in a small wrapper rather than with guard(). The mutex is dropped while dev_store() waits for the heartbeat to become steady, which takes seconds, so a read of dev doesn't stall behind a start. hr_bdev_file is already set at that point, so other writers still get -EINVAL, and the cleanup after the wait retakes the mutex.
With the patch the same test ran for 10 minutes with lockdep on and nothing was reported. So did a second one, with a working loop device, that interrupts starts during the wait while other threads read and write the attributes.
--- fs/ocfs2/cluster/heartbeat.c | 40 ++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-)
fs/ocfs2/cluster/heartbeat.c +34 -6
@@ -269,6 +269,8 @@ struct o2hb_region {struct list_head hr_handler_list;/* Serializes timeout arming against failed-start and teardown. */ struct mutex hr_arming_mutex; +/* Serializes the dev, block_bytes, start_block and blocks attributes. */ +struct mutex hr_dev_mutex;bool hr_stopping;/* last hb status, 0 for success, other value for error. */
@@ -1666,6 +1668,7 @@ static ssize_t o2hb_region_block_bytes_store(struct config_item *item,unsigned long block_bytes;unsigned int block_bits; +guard (mutex)(®->hr_dev_mutex);if (reg->hr_bdev_file)return -EINVAL ;
@@ -1695,6 +1698,7 @@ static ssize_t o2hb_region_start_block_store(struct config_item *item,char *p = (char *)page;ssize_t ret; +guard (mutex)(®->hr_dev_mutex);if (reg->hr_bdev_file)return -EINVAL ;
@@ -1721,6 +1725,7 @@ static ssize_t o2hb_region_blocks_store(struct config_item *item,char *p = (char *)page;int ret; +guard (mutex)(®->hr_dev_mutex);if (reg->hr_bdev_file)return -EINVAL ;
@@ -1738,10 +1743,12 @@ static ssize_t o2hb_region_blocks_store(struct config_item *item,static ssize_t o2hb_region_dev_show (struct config_item *item,char *page) { +struct o2hb_region *reg =to_o2hb_region (item);unsigned int ret =0 ; -if (to_o2hb_region (item)->hr_bdev_file) - ret =sprintf (page,"%pg\n" ,reg_bdev (to_o2hb_region (item))); +guard (mutex)(®->hr_dev_mutex); +if (reg->hr_bdev_file) + ret =sprintf (page,"%pg\n" ,reg_bdev (reg));return ret; }
@@ -1859,11 +1866,9 @@ static int o2hb_populate_slot_data(struct o2hb_region *reg)* this is acting as commit; we set up all of hr_bdev_file and hr_task or * nothing */ -static ssize_t o2hb_region_dev_store (struct config_item *item, -const char *page, -size_t count) +static ssize_t __o2hb_region_dev_store (struct o2hb_region *reg, +const char *page,size_t count) { -struct o2hb_region *reg =to_o2hb_region (item);struct task_struct *hb_task;long fd;int sectsize;
@@ -1871,6 +1876,8 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,ssize_t ret = -EINVAL ;int live_threshold; +lockdep_assert_held (®->hr_dev_mutex); +if (reg->hr_bdev_file)return -EINVAL ;
@@ -1974,9 +1981,15 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,wake_up_process (hb_task); +/* +* Don't hold hr_dev_mutex across the wait, which can take seconds. +* hr_bdev_file is already set, so other writers still get -EINVAL. +*/ +mutex_unlock (®->hr_dev_mutex); ret =wait_event_interruptible (o2hb_steady_queue,atomic_read (®->hr_steady_iterations) ==0 || reg->hr_node_deleted); +mutex_lock (®->hr_dev_mutex);if (ret) {atomic_set (®->hr_steady_iterations,0 ); reg->hr_aborted_start =1 ;
@@ -2028,6 +2041,20 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,return ret; } +static ssize_t o2hb_region_dev_store (struct config_item *item, +const char *page, +size_t count) +{ +struct o2hb_region *reg =to_o2hb_region (item); +ssize_t ret; + +mutex_lock (®->hr_dev_mutex); + ret =__o2hb_region_dev_store (reg, page, count); +mutex_unlock (®->hr_dev_mutex); + +return ret; +} +static ssize_t o2hb_region_pid_show (struct config_item *item,char *page) {struct o2hb_region *reg =to_o2hb_region (item);
@@ -2130,6 +2157,7 @@ static struct config_item *o2hb_heartbeat_group_make_item(struct config_group *gINIT_LIST_HEAD (®->hr_all_item);mutex_init (®->hr_arming_mutex); +mutex_init (®->hr_dev_mutex); reg->hr_stopping = true;INIT_DELAYED_WORK (®->hr_write_timeout_work, o2hb_write_timeout);INIT_DELAYED_WORK (®->hr_nego_timeout_work, o2hb_nego_timeout);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 22/2151 ASoC: qcom: audioreach: fix module cfg blob size handling
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ravi Hothi <[email protected]>
[ Upstream commit e21fb64a8c4aecae31ec63f994423ac944705c3e ]
audioreach_get_module_priv_data() passes mod_array->size, a byte count, as the element count of the __le32 data[] flex array. The allocation and the copy are four times too large, and the memcpy() can read past the end of the topology firmware buffer. The size is also never checked against the private data it must lie within, and a zero size makes the loop spin forever.
Convert the size to a word count, bound the blob by the remaining private data and reject a zero size. Also check the returned pointer before storing it in mod->data, as an error pointer there is dereferenced when the graph is opened.
--- sound/soc/qcom/qdsp6/topology.c | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-)
sound/soc/qcom/qdsp6/topology.c +26 -5
@@ -312,22 +312,37 @@ static struct audioreach_module_priv_data *audioreach_get_module_priv_data(for (sz =0 ; sz <le32_to_cpu (private->size); ) {struct snd_soc_tplg_vendor_array *mod_array; +u32 array_size; mod_array = (struct snd_soc_tplg_vendor_array *)((u8 *)private->array + sz); + array_size =le32_to_cpu (mod_array->size); +if (le32_to_cpu (mod_array->type) ==SND_SOC_AR_TPLG_MODULE_CFG_TYPE ) {struct audioreach_module_priv_data *pdata; +u32 nwords; + +/* size is the byte count of the __le32 data[] */ + nwords = array_size /sizeof (__le32); + +/* the blob must lie within the private data */ +if (sizeof (*pdata) + (u64 )array_size > +le32_to_cpu (private->size) - sz) +return ERR_PTR (-EINVAL ); - pdata =kzalloc (struct_size (pdata, data,le32_to_cpu (mod_array->size)), -GFP_KERNEL ); + pdata =kzalloc_flex (*pdata, data, nwords);if (!pdata)return ERR_PTR (-ENOMEM ); -memcpy (pdata, ((u8 *)private->data + sz),struct_size (pdata, data, -le32_to_cpu (mod_array->size))); +memcpy (pdata, ((u8 *)private->data + sz), +struct_size (pdata, data, nwords));return pdata; } - sz = sz +le32_to_cpu (mod_array->size); +/* a zero size would never advance the walk */ +if (!array_size) +return ERR_PTR (-EINVAL ); + + sz = sz + array_size; }return NULL ;
@@ -611,6 +626,12 @@ static int audioreach_widget_load_module_common(struct snd_soc_component *componreturn mod ?PTR_ERR (mod) : -ENODEV ; mod->data =audioreach_get_module_priv_data (&tplg_w->priv); +if (IS_ERR (mod->data)) { +int rc =PTR_ERR (mod->data); + + mod->data =NULL ; +return rc; + } dobj = &w->dobj; dobj->private = mod;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 23/2151 ACPI: utils: Add exclusive AML evaluation helpers
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ali Ahmet Memiş <[email protected]>
[ Upstream commit 80892972ff23bf0b9049230ef0931b34163aaed3 ]
ACPICA drops the interpreter lock while AML waits, for example around EC accesses, so two methods can run interleaved.
Some firmware relies on methods not interleaving, for instance by switching an EC page selector without taking the AML mutex that the other users of that page hold.
Add acpi_evaluate_object_exclusive(), acpi_evaluate_integer_exclusive() and acpi_execute_simple_method_exclusive() which serialize the evaluation under a global mutex, for callers that are known to be affected.
Stable-dep-of: f91c2cd6dbce ("platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively")
--- drivers/acpi/utils.c | 41 +++++++++++++++++++++++++++++++++++++++++ include/acpi/acpi_bus.h | 7 +++++++ 2 files changed, 48 insertions(+)
drivers/acpi/utils.c +41 -0
@@ -10,6 +10,7 @@#include <linux/kernel.h> #include <linux/module.h> +#include <linux/mutex.h> #include <linux/slab.h> #include <linux/init.h> #include <linux/types.h>
@@ -243,6 +244,28 @@ acpi_extract_package(union acpi_object *package,EXPORT_SYMBOL (acpi_extract_package); +static DEFINE_MUTEX (acpi_exclusive_eval_lock); + +/** +* acpi_evaluate_object_exclusive - Evaluate an object without interleaving +* @handle: ACPI handle of the object or its scope. +* @pathname: Path of the object relative to @handle. +* @arguments: Arguments to pass, or NULL. +* @buffer: Buffer for the return value, or NULL. +* +* Same as acpi_evaluate_object(), but serialized with other exclusive +* evaluations. Use it only for methods known to break when interleaved. +*/ +acpi_status acpi_evaluate_object_exclusive (acpi_handle handle,acpi_string pathname, +struct acpi_object_list *arguments, +struct acpi_buffer *buffer) +{ +guard (mutex)(&acpi_exclusive_eval_lock); + +return acpi_evaluate_object (handle, pathname, arguments, buffer); +} +EXPORT_SYMBOL_GPL (acpi_evaluate_object_exclusive); + acpi_status acpi_evaluate_integer(acpi_handle handle, acpi_string pathname,
@@ -277,6 +300,16 @@ acpi_evaluate_integer(acpi_handle handle,EXPORT_SYMBOL (acpi_evaluate_integer); +acpi_status acpi_evaluate_integer_exclusive (acpi_handle handle,acpi_string pathname, +struct acpi_object_list *arguments, +unsigned long long *data) +{ +guard (mutex)(&acpi_exclusive_eval_lock); + +return acpi_evaluate_integer (handle, pathname, arguments, data); +} +EXPORT_SYMBOL_GPL (acpi_evaluate_integer_exclusive); +int acpi_get_local_u64_address (acpi_handle handle,u64 *addr) {acpi_status status;
@@ -685,6 +718,14 @@ acpi_status acpi_execute_simple_method(acpi_handle handle, char *method, }EXPORT_SYMBOL (acpi_execute_simple_method); +acpi_status acpi_execute_simple_method_exclusive (acpi_handle handle,char *method,u64 arg) +{ +guard (mutex)(&acpi_exclusive_eval_lock); + +return acpi_execute_simple_method (handle, method, arg); +} +EXPORT_SYMBOL_GPL (acpi_execute_simple_method_exclusive); +/** * acpi_evaluate_ej0: Evaluate _EJ0 method for hotplug operations * @handle: ACPI device handle
include/acpi/acpi_bus.h +7 -0
@@ -30,6 +30,12 @@ acpi_status acpi_evaluate_integer(acpi_handle handle, acpi_string pathname, struct acpi_object_list *arguments, unsigned long long *data); +acpi_status acpi_evaluate_object_exclusive (acpi_handle handle,acpi_string pathname, +struct acpi_object_list *arguments, +struct acpi_buffer *buffer); +acpi_status acpi_evaluate_integer_exclusive (acpi_handle handle,acpi_string pathname, +struct acpi_object_list *arguments, +unsigned long long *data);bool acpi_evaluate_reference (acpi_handle handle,acpi_string pathname,struct acpi_object_list *arguments,struct acpi_handle_list *list);
@@ -46,6 +52,7 @@ acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code,bool acpi_has_method (acpi_handle handle,char *name);acpi_status acpi_execute_simple_method (acpi_handle handle,char *method,u64 arg); +acpi_status acpi_execute_simple_method_exclusive (acpi_handle handle,char *method,u64 arg);acpi_status acpi_evaluate_ej0 (acpi_handle handle);acpi_status acpi_evaluate_lck (acpi_handle handle,int lock);acpi_status acpi_evaluate_reg (acpi_handle handle,u8 space_id,u32 function);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 24/2151 platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ali Ahmet Memiş <[email protected]>
[ Upstream commit f91c2cd6dbcedf52e227b2eea8d7b99ecbac7552 ]
On some Lenovo IdeaPad and Yoga models, the battery _BIX takes the EC AML mutex and then calls the serialized RDER through RDIF, while GBMD calls RDER first and then takes the EC mutex. When the two run interleaved they deadlock until the mutex acquisition in RDER times out, and GBMD returns garbage that is reported as both charge types being enabled.
Evaluate all methods with the exclusive helpers, so that GBMD never runs interleaved with the battery methods.
--- drivers/platform/x86/lenovo/ideapad-laptop.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
drivers/platform/x86/lenovo/ideapad-laptop.c +8 -4
@@ -285,12 +285,16 @@ static void ideapad_shared_exit(struct ideapad_private *priv)#define IDEAPAD_EC_POLL_MIN_US 150#define IDEAPAD_EC_POLL_MAX_US 300 +/* +* On some models GBMD and the battery _BIX take the EC mutex and a +* serialized method in opposite order, so evaluate all methods exclusively. +*/ static int eval_int (acpi_handle handle,const char *name,unsigned long *res) {unsigned long long result;acpi_status status; - status =acpi_evaluate_integer (handle, (char *)name,NULL , &result); + status =acpi_evaluate_integer_exclusive (handle, (char *)name,NULL , &result);if (ACPI_FAILURE (status))return -EIO ;
@@ -312,7 +316,7 @@ static int eval_int_with_arg(acpi_handle handle, const char *name, unsigned long in_obj.type =ACPI_TYPE_INTEGER ; in_obj.integer.value = arg; - status =acpi_evaluate_integer (handle, (char *)name, ¶ms, &result); + status =acpi_evaluate_integer_exclusive (handle, (char *)name, ¶ms, &result);if (ACPI_FAILURE (status))return -EIO ;
@@ -324,7 +328,7 @@ static int eval_int_with_arg(acpi_handle handle, const char *name, unsigned longstatic int exec_simple_method (acpi_handle handle,const char *name,unsigned long arg) { -acpi_status status =acpi_execute_simple_method (handle, (char *)name, arg); +acpi_status status =acpi_execute_simple_method_exclusive (handle, (char *)name, arg);return ACPI_FAILURE (status) ? -EIO :0 ; }
@@ -382,7 +386,7 @@ static int eval_vpcw(acpi_handle handle, unsigned long cmd, unsigned long data) in_obj[1 ].type =ACPI_TYPE_INTEGER ; in_obj[1 ].integer.value = data; - status =acpi_evaluate_object (handle,"VPCW" , ¶ms,NULL ); + status =acpi_evaluate_object_exclusive (handle,"VPCW" , ¶ms,NULL );if (ACPI_FAILURE (status))return -EIO ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 25/2151 mm/userfaultfd: write-lock the VMA before waking waiters when unregistering
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Hildenbrand (Arm) <[email protected]>
[ Upstream commit 35f7ecd55ce7e51cb6d5ef49e6dd51f3c80f61e4 ]
userfaultfd_unregister() wakes pending missing faults before clearing the VMA's userfaultfd registration. With per-VMA fault locking, holding mmap_lock for write does not prevent another fault from queuing after the wakeup but before userfaultfd_clear_vma() write-locks the VMA. That waiter can then remain asleep indefinitely.
Call vma_start_write() before waking waiters. Existing fault handlers queue themselves before dropping the VMA read lock, and new readers are excluded until mmap_write_unlock().
--- fs/userfaultfd.c | 3 +++ 1 file changed, 3 insertions(+)
fs/userfaultfd.c +3 -0
@@ -1524,6 +1524,9 @@ static int userfaultfd_unregister(struct userfaultfd_ctx *ctx, start = vma->vm_start; vma_end =min (end, vma->vm_end); +/* Prevent new userfaults from being queued after the wakeup. */ +vma_start_write (vma); +if (userfaultfd_missing (vma)) {/* * Wake any concurrent pending userfault while
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 26/2151 mm/userfaultfd: wake waiters when registration modes are removed
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Hildenbrand (Arm) <[email protected]>
[ Upstream commit 4eee9c389b072e161549d46dcb1ae10b0222717e ]
UFFDIO_REGISTER can replace MISSING or MINOR tracking without waking faults that are already queued. For example, switching an anonymous range from MISSING to WP leaves a missing-fault waiter asleep until userspace explicitly wakes it.
When a registration change removes a UFFD mode, wake waiters in the affected interval after updating the VMA. The VMA is write-locked at this point, so no new faults can queue under the old modes and woken threads cannot retry until mmap_write_unlock(). Waiters for retained modes in the same interval may also wake and refault.
The hang reproduces for MISSING-to-WP and MINOR-to-MISSING transitions, with both read and unread fault events.
--- fs/userfaultfd.c | 9 ++------- include/linux/userfaultfd_k.h | 8 ++++++++ mm/userfaultfd.c | 12 ++++++++++++ 3 files changed, 22 insertions(+), 7 deletions(-)
fs/userfaultfd.c +2 -7
@@ -71,11 +71,6 @@ struct userfaultfd_wait_queue {bool waken; }; -struct userfaultfd_wake_range { -unsigned long start; -unsigned long len; -}; -/* internal indication that UFFD_API ioctl was successfully executed */ #define UFFD_FEATURE_INITIALIZED (1u << 31)
@@ -1191,8 +1186,8 @@ static void __wake_userfault(struct userfaultfd_ctx *ctx,spin_unlock_irq (&ctx->fault_pending_wqh.lock); } -static __always_inline void wake_userfault(struct userfaultfd_ctx *ctx, -struct userfaultfd_wake_range *range) +void wake_userfault (struct userfaultfd_ctx *ctx, +struct userfaultfd_wake_range *range) {unsigned seq;bool need_wakeup;
include/linux/userfaultfd_k.h +8 -0
@@ -78,6 +78,14 @@ struct userfaultfd_ctx {struct mm_struct *mm; }; +struct userfaultfd_wake_range { +unsigned long start; +unsigned long len; +}; + +void wake_userfault (struct userfaultfd_ctx *ctx, +struct userfaultfd_wake_range *range); +extern vm_fault_t handle_userfault (struct vm_fault *vmf,unsigned long reason);/* A combined operation mode + behavior flags. */
mm/userfaultfd.c +12 -0
@@ -2063,6 +2063,8 @@ int userfaultfd_register_range(struct userfaultfd_ctx *ctx, prev = vma;for_each_vma_range (vmi, vma, end) { +const bool any_mode_removed = vma->vm_flags & __VM_UFFD_FLAGS & ~vm_flags; +cond_resched ();VM_WARN_ON_ONCE (!vma_can_userfault (vma, vm_flags, wp_async));
@@ -2097,6 +2099,16 @@ int userfaultfd_register_range(struct userfaultfd_ctx *ctx,*/ userfaultfd_set_ctx (vma, ctx, vm_flags); +/* Retry faults for removed modes while the VMA is write-locked. */ +if (any_mode_removed) { +struct userfaultfd_wake_range range = { + .start = start, + .len = vma_end - start, + }; + +wake_userfault (ctx, &range); + } +if (is_vm_hugetlb_page (vma) &&uffd_disable_huge_pmd_share (vma))hugetlb_unshare_all_pmds (vma);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 27/2151 cxl/pci: Use the Device GPF DVSEC for restricted endpoints
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Guixin Liu <[email protected]>
[ Upstream commit d2654fa0d841fa36ffa76577f83a2810d643ae19 ]
cxl_gpf_get_dvsec() picks between the Port and the Device GPF DVSEC from the PCIe type of the given device, and only a plain endpoint counts as a device. A restricted CXL device is an endpoint too, but it falls into the port case and is probed for the Port GPF DVSEC instead of the Device GPF DVSEC.
On an RCD, dirty shutdown tracking therefore never arms: the DVSEC lookup in cxl_nvdimm_arm_dirty_shutdown_tracking() fails, the dirty shutdown count stays invalid, and the warning complains about a missing Port GPF DVSEC on a device.
Treat restricted endpoints as devices.
--- drivers/cxl/core/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/cxl/core/pci.c +2 -1
@@ -819,7 +819,8 @@ u16 cxl_gpf_get_dvsec(struct device *dev)return 0 ; pdev =to_pci_dev (dev); -if (pci_pcie_type (pdev) ==PCI_EXP_TYPE_ENDPOINT ) +if (pci_pcie_type (pdev) ==PCI_EXP_TYPE_ENDPOINT || +pci_pcie_type (pdev) ==PCI_EXP_TYPE_RC_END ) is_port = false; dvsec = pci_find_dvsec_capability(pdev, PCI_VENDOR_ID_CXL,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 28/2151 scsi: ufs: core: Change the error check sequence for auto hibern8
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: HOYOUNG SEO <[email protected]>
[ Upstream commit 6b2ff2b3eafa381db9b4c8a6ed98b353b2a09f39 ]
Auto-hibern8 enter and exit are performed by the host controller without a UIC command, and the auto-hibern8 idle timer only runs while no UIC command is outstanding. An auto-hibern8 error (IS.UHES or IS.UHXS) is therefore usually reported while hba->active_uic_cmd is NULL.
Since commit fcd8b0450a9a ("scsi: ufs: core: Make ufshcd_uic_cmd_compl() easier to analyze"), ufshcd_uic_cmd_compl() returns early when hba->active_uic_cmd is NULL, before ufshcd_is_auto_hibern8_error() is called. Such auto-hibern8 errors are no longer recorded in hba->errors, so ufshcd_check_errors() is not called for them and the error handler is not scheduled.
Check for auto-hibern8 errors before checking for an active UIC command, as was done before that commit, but keep returning early when there is no active UIC command so that a NULL cmd is never dereferenced. Only report the missing UIC command if no auto-hibern8 error was found.
--- drivers/ufs/core/ufshcd.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
drivers/ufs/core/ufshcd.c +10 -3
@@ -5581,15 +5581,22 @@ static irqreturn_t ufshcd_uic_cmd_compl(struct ufs_hba *hba, u32 intr_status) {irqreturn_t retval =IRQ_NONE ;struct uic_command *cmd; +bool ah8_err;guard (spinlock_irqsave)(hba->host->host_lock); + +/* +* Auto-hibern8 is performed without a UIC command, so check for +* auto-hibern8 errors before checking for an active UIC command. +*/ + ah8_err =ufshcd_is_auto_hibern8_error (hba, intr_status); +if (ah8_err) + hba->errors |= (UFSHCD_UIC_HIBERN8_MASK & intr_status); + cmd = hba->active_uic_cmd;if (!cmd) goto unlock; -if (ufshcd_is_auto_hibern8_error (hba, intr_status)) - hba->errors |= (UFSHCD_UIC_HIBERN8_MASK & intr_status); -if (intr_status &UIC_COMMAND_COMPL ) { cmd->argument2 |=ufshcd_get_uic_cmd_result (hba); cmd->argument3 =ufshcd_get_dme_attr_val (hba);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 29/2151 hwmon: chipcap2: fix IRQ teardown ordering
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Javier Carrasco <[email protected]>
[ Upstream commit d2a66c515d7730fd453485ffb306c412f1f46d72 ]
The threaded IRQs are currently requested before the hwmon device is registered. Since devres releases resources in reverse order, the hwmon device is unregistered before the IRQs are freed during driver teardown. An IRQ may therefore still run after the hwmon device has been released and access the stale data->hwmon pointer.
Separate IRQ discovery from IRQ registration so that the IRQ numbers and alarm visibility flags are initialized before registering the hwmon device while the IRQs are released before the hwmon device during devres cleanup.
Reuse the existing IRQ helpers for discovery and ready IRQ registration, and request alarm IRQs directly from probe after hwmon registration. This keeps the number of helper functions unchanged. Omit the unrelated label property read because label support is absent.
Stable-dep-of: 4724ac5556ce ("hwmon: chipcap2: disable device after hwmon teardown")
--- drivers/hwmon/chipcap2.c | 69 ++++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 34 deletions(-)
drivers/hwmon/chipcap2.c +35 -34
@@ -636,60 +636,41 @@ static int cc2_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, } } -static int cc2_request_ready_irq (struct cc2_data *data,struct device *dev) +static int cc2_request_data_ready (struct cc2_data *data,struct device *dev) {int ret =0 ; - data->irq_ready =fwnode_irq_get_byname (dev_fwnode (dev),"ready" ); -if (data->irq_ready == -EPROBE_DEFER ) -return data->irq_ready; -if (data->irq_ready >0 ) { -init_completion (&data->complete); +if (data->irq_ready >0 ) ret =devm_request_threaded_irq (dev, data->irq_ready,NULL , cc2_ready_interrupt,IRQF_ONESHOT |IRQF_TRIGGER_RISING ,dev_name (dev), data); - }return ret; } -static int cc2_request_alarm_irqs (struct cc2_data *data,struct device *dev) +static int cc2_get_irqs (struct cc2_data *data,struct device *dev) { -int ret =0 ; + data->irq_ready =fwnode_irq_get_byname (dev_fwnode (dev),"ready" ); +if (data->irq_ready == -EPROBE_DEFER ) +return data->irq_ready; +if (data->irq_ready >0 ) +init_completion (&data->complete); data->irq_low =fwnode_irq_get_byname (dev_fwnode (dev),"low" );if (data->irq_low == -EPROBE_DEFER )return data->irq_low; -if (data->irq_low >0 ) { - ret =devm_request_threaded_irq (dev, data->irq_low,NULL , - cc2_low_interrupt, -IRQF_ONESHOT | -IRQF_TRIGGER_RISING , -dev_name (dev), data); -if (ret) -return ret; - +if (data->irq_low >0 ) data->rh_alarm.low_alarm_visible = true; - } data->irq_high =fwnode_irq_get_byname (dev_fwnode (dev),"high" );if (data->irq_high == -EPROBE_DEFER )return data->irq_high; -if (data->irq_high >0 ) { - ret =devm_request_threaded_irq (dev, data->irq_high,NULL , - cc2_high_interrupt, -IRQF_ONESHOT | -IRQF_TRIGGER_RISING , -dev_name (dev), data); -if (ret) -return ret; - +if (data->irq_high >0 ) data->rh_alarm.high_alarm_visible = true; - } -return ret; +return 0 ; }static const struct hwmon_channel_info *cc2_info[] = {
@@ -735,13 +716,13 @@ static int cc2_probe(struct i2c_client *client)return dev_err_probe (dev,PTR_ERR (data->regulator),"Failed to get regulator\n" ); - ret =cc2_request_ready_irq (data, dev); + ret =cc2_get_irqs (data, dev);if (ret) -return dev_err_probe (dev, ret,"Failed to request ready irq\n" ); +return dev_err_probe (dev, ret,"Failed to get IRQs\n" ); - ret =cc2_request_alarm_irqs (data, dev); + ret =cc2_request_data_ready (data, dev);if (ret) -return dev_err_probe (dev, ret,"Failed to request alarm irqs\n" ); +return dev_err_probe (dev, ret,"Failed to request ready irq\n" ); data->hwmon = devm_hwmon_device_register_with_info(dev, client->name, data, &cc2_chip_info,
@@ -750,6 +731,26 @@ static int cc2_probe(struct i2c_client *client)return dev_err_probe (dev,PTR_ERR (data->hwmon),"Failed to register hwmon device\n" ); +if (data->irq_low >0 ) { + ret =devm_request_threaded_irq (dev, data->irq_low,NULL , + cc2_low_interrupt, +IRQF_ONESHOT | +IRQF_TRIGGER_RISING , +dev_name (dev), data); +if (ret) +return dev_err_probe (dev, ret,"Failed to request alarm irqs\n" ); + } + +if (data->irq_high >0 ) { + ret =devm_request_threaded_irq (dev, data->irq_high,NULL , + cc2_high_interrupt, +IRQF_ONESHOT | +IRQF_TRIGGER_RISING , +dev_name (dev), data); +if (ret) +return dev_err_probe (dev, ret,"Failed to request alarm irqs\n" ); + } +return 0 ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 30/2151 hwmon: chipcap2: disable device after hwmon teardown
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Javier Carrasco <[email protected]>
[ Upstream commit 4724ac5556ce63f01a3f5d61fc7fcc20f4ddef3f ]
cc2_remove() disables the device while the device-managed hwmon device is still registered. A concurrent sysfs callback can then enable the device after it has been disabled during removal.
Register a device-managed disable action before registering the hwmon device, so devres unregisters the hwmon device before disabling the physical device.
--- drivers/hwmon/chipcap2.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
drivers/hwmon/chipcap2.c +9 -8
@@ -167,6 +167,11 @@ static void cc2_disable(struct cc2_data *data) data->regulator_enabled = false; } +static void cc2_disable_action (void *data) +{ +cc2_disable (data); +} +static int cc2_cmd_response_diagnostic (struct device *dev,u8 status) {int resp;
@@ -720,6 +725,10 @@ static int cc2_probe(struct i2c_client *client)if (ret)return dev_err_probe (dev, ret,"Failed to get IRQs\n" ); + ret =devm_add_action_or_reset (dev, cc2_disable_action, data); +if (ret) +return ret; + ret =cc2_request_data_ready (data, dev);if (ret)return dev_err_probe (dev, ret,"Failed to request ready irq\n" );
@@ -754,13 +763,6 @@ static int cc2_probe(struct i2c_client *client)return 0 ; } -static void cc2_remove (struct i2c_client *client) -{ -struct cc2_data *data =i2c_get_clientdata (client); - -cc2_disable (data); -} -static const struct i2c_device_id cc2_id[] = { {"cc2d23" }, {"cc2d23s" },
@@ -793,7 +795,6 @@ static struct i2c_driver cc2_driver = { .of_match_table = cc2_of_match, }, .probe = cc2_probe, - .remove = cc2_remove, .id_table = cc2_id, };module_i2c_driver (cc2_driver);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 31/2151 libceph: initialize CRUSH choose argument weights
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Darong Lu <[email protected]>
[ Upstream commit c3a995ff0782587789333c621e1f6bd5e574371e ]
Initialize the CRUSH choose argument weight-set array before decoding so entries start in a defined state while the decoder fills them.
--- net/ceph/osdmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ceph/osdmap.c +1 -1
@@ -320,7 +320,7 @@ static int decode_choose_arg(void **p, void *end, struct crush_choose_arg *arg)if (arg->weight_set_size) {u32 i; - arg->weight_set =kmalloc_array (arg->weight_set_size, + arg->weight_set =kcalloc (arg->weight_set_size,sizeof (*arg->weight_set),GFP_NOIO );if (!arg->weight_set)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 32/2151 ovl: port ovl_dir_llseek() to cred guard
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Christian Brauner <[email protected]>
[ Upstream commit 5517646e14d18768ee72ae2f4320826f2169329a ]
Use the scoped ovl cred guard.
Stable-dep-of: 323899b4ed23 ("ovl: inherit FMODE_NONOTIFY when opening directory realfiles")
--- fs/overlayfs/readdir.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
fs/overlayfs/readdir.c +2 -8
@@ -959,14 +959,8 @@ static loff_t ovl_dir_llseek(struct file *file, loff_t offset, int origin)static struct file *ovl_dir_open_realfile (const struct file *file,const struct path *realpath) { -struct file *res; -const struct cred *old_cred; - - old_cred =ovl_override_creds (file_inode (file)->i_sb); - res =ovl_path_open (realpath,O_RDONLY | (file->f_flags &O_LARGEFILE )); -ovl_revert_creds (old_cred); - -return res; + with_ovl_creds(file_inode(file)->i_sb) +return ovl_path_open (realpath,O_RDONLY | (file->f_flags &O_LARGEFILE )); }/*
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 33/2151 ovl: inherit FMODE_NONOTIFY when opening directory realfiles
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Amir Goldstein <[email protected]>
[ Upstream commit 323899b4ed233d5b6e2fc160c16fbf39cf0317da ]
When fanotify hands a listener an fd for a permission event on an overlay directory, ovl_dir_open_realfile() opens the real directory via dentry_open(), not backing_file_open(), so the lower open could still raise FS_OPEN_PERM and deadlock a listener that also marks the backing filesystem.
Export dentry_open_nonotify() and call it from ovl_path_open_realfile() when the overlay user file must not generate events. Ordinary ovl_path_open() callers are unchanged.
--- fs/open.c | 1 + fs/overlayfs/overlayfs.h | 9 ++++++++- fs/overlayfs/readdir.c | 3 ++- fs/overlayfs/util.c | 11 ++++++++++- 4 files changed, 21 insertions(+), 3 deletions(-)
fs/open.c +1 -0
@@ -1143,6 +1143,7 @@ struct file *dentry_open_nonotify(const struct path *path, int flags, }return f; } +EXPORT_SYMBOL_GPL (dentry_open_nonotify);/** * dentry_create - Create and open a file
fs/overlayfs/overlayfs.h +8 -1
@@ -524,7 +524,14 @@ void ovl_dir_modified(struct dentry *dentry, bool impurity);u64 ovl_inode_version_get (struct inode *inode);bool ovl_is_whiteout (struct dentry *dentry);bool ovl_path_is_whiteout (struct ovl_fs *ofs,const struct path *path); -struct file *ovl_path_open (const struct path *path,int flags); +struct file *ovl_path_open_realfile (const struct file *user_file, +const struct path *path,int flags); + +static inline struct file *ovl_path_open (const struct path *path,int flags) +{ +return ovl_path_open_realfile (NULL , path, flags); +} +int ovl_copy_up_start (struct dentry *dentry,int flags);void ovl_copy_up_end (struct dentry *dentry);bool ovl_already_copied_up (struct dentry *dentry,int flags);
fs/overlayfs/readdir.c +2 -1
@@ -960,7 +960,8 @@ static struct file *ovl_dir_open_realfile(const struct file *file, const struct path *realpath) { with_ovl_creds(file_inode(file)->i_sb) -return ovl_path_open (realpath,O_RDONLY | (file->f_flags &O_LARGEFILE )); +return ovl_path_open_realfile (file, realpath, +O_RDONLY | (file->f_flags &O_LARGEFILE )); }/*
fs/overlayfs/util.c +10 -1
@@ -659,7 +659,8 @@ bool ovl_path_is_whiteout(struct ovl_fs *ofs, const struct path *path)ovl_path_check_xwhiteout_xattr (ofs, path); } -struct file *ovl_path_open (const struct path *path,int flags) +struct file *ovl_path_open_realfile (const struct file *user_file, +const struct path *path,int flags) {struct inode *inode =d_inode (path->dentry);struct mnt_idmap *real_idmap =mnt_idmap (path->mnt);
@@ -687,6 +688,14 @@ struct file *ovl_path_open(const struct path *path, int flags)if (inode_owner_or_capable (real_idmap, inode)) flags |=O_NOATIME ; +/* +* Directory opens use dentry_open() here, not backing_file_open(). +* Inherit FMODE_NONOTIFY from a fanotify permission fd so a listener +* that also watches the real filesystem does not deadlock. +*/ +if (user_file &&FMODE_FSNOTIFY_NONE (user_file->f_mode)) +return dentry_open_nonotify (path, flags,current_cred ()); +return dentry_open (path, flags,current_cred ()); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 34/2151 f2fs: fix to fetch ino via ino_of_node() under cache lock
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chao Yu <[email protected]>
[ Upstream commit cd6d8b1891395b681f2060916a4b83880b765698 ]
In f2fs_writeback_node_caches(), it's better to fetch ino via ino_of_node() under cache lock, otherwise, node cache content may become stale after cache is unlocked due to racing w/ truncation.
Commit 493b9dc8b52c ("f2fs: cache: use node cache") fixes similar issue in f2fs_flush_inline_data() introduced in commit 34c061ad85a2 ("f2fs: Avoid double lock for cp_rwsem during checkpoint").
--- fs/f2fs/node.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
fs/f2fs/node.c +3 -1
@@ -2167,9 +2167,11 @@ int f2fs_sync_node_pages(struct f2fs_sb_info *sbi,/* flush inline_data */ if (folio_test_f2fs_inline (folio)) { +nid_t ino =ino_of_node (folio); +folio_clear_f2fs_inline (folio);folio_unlock (folio); -flush_inline_data (sbi,ino_of_node (folio)); +flush_inline_data (sbi, ino); goto lock_node; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 35/2151 drm/amdgpu: sign extend the addresses GEM_OP(GET_MAPPING_INFO) returns
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jesse Zhang <[email protected]>
[ Upstream commit 37cfaaa6b5e9448ef786342d470d0e0b8eb89fa6 ]
GEM_VA takes the GPU virtual addresses above the VA hole sign extended, like the rest of the UAPI, but GET_MAPPING_INFO reports them without the upper bits, so they land in the hole. Mappings in the upper half of the address space can't be recreated or removed with what it returns. On navi31:
MAP at 0xffff800100000000 -> 0 GET_MAPPING_INFO -> addr 0x800100000000 UNMAP at 0x800100000000 -> -EINVAL
Sign extend the addresses before handing them out.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +4 -2
@@ -1118,7 +1118,8 @@ int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data,amdgpu_vm_bo_va_for_each_valid_mapping (bo_va, mapping) {if (num_mappings < args->num_entries) { - vm_entries[num_mappings].addr = mapping->start *AMDGPU_GPU_PAGE_SIZE ; + vm_entries[num_mappings].addr = +amdgpu_gmc_sign_extend (mapping->start *AMDGPU_GPU_PAGE_SIZE ); vm_entries[num_mappings].size = (mapping->last - mapping->start +1 ) *AMDGPU_GPU_PAGE_SIZE ; vm_entries[num_mappings].offset = mapping->offset; vm_entries[num_mappings].flags = mapping->flags;
@@ -1128,7 +1129,8 @@ int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data,amdgpu_vm_bo_va_for_each_invalid_mapping (bo_va, mapping) {if (num_mappings < args->num_entries) { - vm_entries[num_mappings].addr = mapping->start *AMDGPU_GPU_PAGE_SIZE ; + vm_entries[num_mappings].addr = +amdgpu_gmc_sign_extend (mapping->start *AMDGPU_GPU_PAGE_SIZE ); vm_entries[num_mappings].size = (mapping->last - mapping->start +1 ) *AMDGPU_GPU_PAGE_SIZE ; vm_entries[num_mappings].offset = mapping->offset; vm_entries[num_mappings].flags = mapping->flags;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 36/2151 mm/vma: fix expansion of VMA_MIXEDMAP_BIT VMAs
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lorenzo Stoakes (ARM) <[email protected]>
[ Upstream commit 8146c6478224d8f6395c6b08a19c344a56d79867 ]
Commit ca3d76b0aa80 ("mm: add merging after mremap resize") combined merging with expansion of mremap()'d VMAs, however it also unintentionally disallowed the expansion of unmergeable VMAs.
Previously it was possible to expand a mixed mapping which mremap() had already ensured was a legal expansion.
This is clearly seen in the mremap() logic, as it checks vma_is_fixed_mapping() to determine legality of an expansion rather than vma_can_merge().
Additionally, copy_vma() allows for a failed merge to result in a new VMA being instantiated if MREMAP_MAYMOVE is specified.
However, this is not attempted, as a failure in vma_merge_extend() is assumed to be an -ENOMEM failure.
Since vma_merge_extend() is used exclusively by mremap() to perform a merge and/or expansion, resolve the issue by invoking vma_expand() for unmergeable VMAs there.
Explicitly assert that the VMA is both non-fixed and a mixed mapping. This provides double insurance against broken changes in future.
Note that khugepaged_enter_vma() (which vma_merge_new_range() runs) is redundant in this case, as a mixed mapping is not subject to khugepaged.
Also update the VMA userland tests to add a required predicate.
--- mm/vma.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-)
mm/vma.c +19 -3
@@ -1775,12 +1775,28 @@ struct vm_area_struct *vma_merge_extend(struct vma_iterator *vmi, struct vm_area_struct *vma, unsigned long delta) { - VMG_VMA_STATE(vmg, vmi, vma, vma, vma->vm_end, vma->vm_end + delta); +const bool can_merge = !(vma->vm_flags & (VM_PFNMAP |VM_DONTEXPAND | +VM_MIXEDMAP )) && + !is_vm_hugetlb_page (vma); +const unsigned long start = + can_merge ? vma->vm_end : vma->vm_start; +VMG_VMA_STATE (vmg, vmi, vma, vma, start, vma->vm_end + delta); - vmg.next =vma_iter_next_rewind (vmi,NULL ); vmg.middle =NULL ;/* We use the VMA to populate VMG fields only. */ -return vma_merge_new_range (&vmg); +if (can_merge) { + vmg.next =vma_iter_next_rewind (vmi,NULL ); +return vma_merge_new_range (&vmg); + } + +/* Mixed mappings are permitted to be expanded, not merged. */ +VM_WARN_ON_ONCE (vma->vm_flags & (VM_PFNMAP |VM_DONTEXPAND )); +VM_WARN_ON_ONCE (!(vma->vm_flags &VM_MIXEDMAP )); +vma_prev (vmi);/* Reposition to start of VMA. */ + vmg.target = vma; +if (vma_expand (&vmg)) +return NULL ; +return vma; }void unlink_file_vma_batch_init (struct unlink_vma_file_batch *vb)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 37/2151 drm/amdgpu: drop the gang leader reference when freeing gang jobs
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jesse Zhang <[email protected]>
[ Upstream commit c1584e10a7deb655438f21867b2b7a356a9aaf9f ]
Every job of a gang except the leader holds a reference to the scheduled fence of the leader in job->gang_submit. Only amdgpu_job_free(), used for jobs which never ran, drops it, so for every gang submission which completes the scheduler fence of the leader, and with it its hardware fence, is leaked. amdgpu_job_free() in turn checks for the leader only after drm_sched_job_cleanup() cleared the scheduler fence, so a leader freed there drops a reference it never took.
On navi31, 100 submissions of a GFX + COMPUTE gang grow the slab cache drm_sched_fence is merged into by 60 to 180 objects each time, while 100 GFX only submissions don't.
Use amdgpu_job_free() for the jobs the scheduler frees too, and check for the gang leader there before drm_sched_job_cleanup() clears the scheduler fence. As the scheduler clears the entity of the jobs it picked up, check for the scheduler fence instead to tell whether the job needs cleaning up.
Keep freeing the remaining IBs with amdgpu_job_free_resources() after drm_sched_job_cleanup(), so that it frees them with the hardware fence or right away and not with the scheduler fence, which nobody signals for jobs aborted after drm_sched_job_arm(), like a CS returning -EAGAIN.
v2: unify amdgpu_job_free() and amdgpu_job_free_cb() (Christian), don't
free the remaining IBs with the scheduler fence
v3: drop the comments (Christian)
v4: free the IBs with amdgpu_job_free_resources() again (Christian)
--- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +5 -14
@@ -264,17 +264,7 @@ void amdgpu_job_free_resources(struct amdgpu_job *job)static void amdgpu_job_free_cb (struct drm_sched_job *s_job) { -struct amdgpu_job *job =to_amdgpu_job (s_job); - -drm_sched_job_cleanup (s_job); - -amdgpu_sync_free (&job->explicit_sync); - -/* only put the hw fence if has embedded fence */ -if (!job->hw_fence.base.ops) -kfree (job); -else -dma_fence_put (&job->hw_fence.base); +amdgpu_job_free (to_amdgpu_job (s_job)); } void amdgpu_job_set_gang_leader(struct amdgpu_job *job,
@@ -295,13 +285,14 @@ void amdgpu_job_set_gang_leader(struct amdgpu_job *job,void amdgpu_job_free (struct amdgpu_job *job) { -if (job->base.entity) +if (job->gang_submit != &job->base.s_fence->scheduled) +dma_fence_put (job->gang_submit); + +if (job->base.s_fence)drm_sched_job_cleanup (&job->base);amdgpu_job_free_resources (job);amdgpu_sync_free (&job->explicit_sync); -if (job->gang_submit != &job->base.s_fence->scheduled) -dma_fence_put (job->gang_submit);if (!job->hw_fence.base.ops)kfree (job);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 38/2151 apparmor: refactor xattr attachment, to take the file path
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: John Johansen <[email protected]>
[ Upstream commit 812aa0aa67d50c251d9788f1d225438e747507f0 ]
The full bprm does not need to be passed into xattrs_match, so only pass in the path, and propagate the change backup the call stack until bprm is actually needed.
Stable-dep-of: ce94927fa417 ("apparmor: fix profile leak when a policy load fails")
--- security/apparmor/domain.c | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-)
security/apparmor/domain.c +19 -15
@@ -303,28 +303,31 @@ static int change_profile_perms(struct aa_profile *profile,/** * aa_xattrs_match - check whether a file matches the xattrs defined in profile -* @bprm: binprm struct for the process to validate +* @path: path for file being matched (NOT NULL) * @profile: profile to match against (NOT NULL) * @state: state to start match in * * Returns: number of extended attributes that matched, or < 0 on error */ -static int aa_xattrs_match (const struct linux_binprm *bprm, +static int aa_xattrs_match (const struct path *path,struct aa_profile *profile,aa_state_t state) { +AA_BUG (!path); +AA_BUG (!profile); +int i;struct dentry *d;char *value =NULL ;struct aa_attachment *attach = &profile->attach;int size, value_size =0 , ret = attach->xattr_count; -if (!bprm || !attach->xattr_count) +if (!attach->xattr_count)return 0 ;might_sleep ();/* transition from exec match to xattr set */ state =aa_dfa_outofband_transition (attach->xmatch->dfa, state); - d = bprm->file->f_path.dentry; + d = path->dentry;for (i =0 ; i < attach->xattr_count; i++) { size = vfs_getxattr_alloc(&nop_mnt_idmap, d, attach->xattrs[i],
@@ -372,7 +375,7 @@ static int aa_xattrs_match(const struct linux_binprm *bprm,/** * find_attach - do attachment search for unconfined processes -* @bprm: binprm structure of transitioning task +* @path: path of file in question (NOT NULL) * @ns: the current namespace (NOT NULL) * @head: profile list to walk (NOT NULL) * @name: to match against (NOT NULL)
@@ -387,7 +390,7 @@ static int aa_xattrs_match(const struct linux_binprm *bprm,* * Returns: label or NULL if no match found */ -static struct aa_label *find_attach (const struct linux_binprm *bprm, +static struct aa_label *find_attach (const struct path *path,struct aa_ns *ns,struct list_head *head,const char *name,const char **info) {
@@ -395,6 +398,7 @@ static struct aa_label *find_attach(const struct linux_binprm *bprm,bool conflict = false;struct aa_profile *profile, *candidate =NULL ; +AA_BUG (!path);AA_BUG (!name);AA_BUG (!head);
@@ -434,13 +438,13 @@ static struct aa_label *find_attach(const struct linux_binprm *bprm,if (count < candidate_len)continue ; -if (bprm && attach->xattr_count) { +if (attach->xattr_count) {long rev =READ_ONCE (ns->revision);if (!aa_get_profile_not0 (profile)) goto restart;rcu_read_unlock (); - ret =aa_xattrs_match (bprm, profile, + ret =aa_xattrs_match (path, profile, state);rcu_read_lock ();aa_put_profile (profile);
@@ -556,7 +560,7 @@ struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,/** * x_to_label - get target label for a given xindex * @profile: current profile (NOT NULL) -* @bprm: binprm structure of transitioning task +* @path: path of file in question * @name: name to lookup (NOT NULL) * @xindex: index into x transition table * @lookupname: returns: name used in lookup if one was specified (NOT NULL)
@@ -567,7 +571,7 @@ struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,* Returns: refcounted label or NULL if not found available */ static struct aa_label *x_to_label (struct aa_profile *profile, -const struct linux_binprm *bprm, +const struct path *path,const char *name,u32 xindex,const char **lookupname,const char **info)
@@ -598,11 +602,11 @@ static struct aa_label *x_to_label(struct aa_profile *profile,case AA_X_NAME :if (xindex &AA_X_CHILD )/* released by caller */ - new =find_attach (bprm, ns, &profile->base.profiles, + new =find_attach (path, ns, &profile->base.profiles, name, info);else /* released by caller */ - new =find_attach (bprm, ns, &ns->base.profiles, + new =find_attach (path, ns, &ns->base.profiles, name, info); *lookupname = name;break ;
@@ -690,7 +694,7 @@ static struct aa_label *profile_transition(const struct cred *subj_cred, }if (profile_unconfined (profile)) { - new =find_attach (bprm, profile->ns, + new =find_attach (&bprm->file->f_path, profile->ns, &profile->ns->base.profiles, name, &info);/* info set -> something unusual that we should report * Currently this is only conflicting attachments, but other
@@ -720,8 +724,8 @@ static struct aa_label *profile_transition(const struct cred *subj_cred, state =aa_str_perms (rules->file, state, name, cond, &perms);if (perms.allow &MAY_EXEC ) {/* exec permission determine how to transition */ - new =x_to_label (profile, bprm, name, perms.xindex, &target, - &info); + new =x_to_label (profile, &bprm->file->f_path, name, + perms.xindex, &target, &info);if (new && new->proxy == profile->label.proxy && info) {/* Force audit on conflicting attachment fallback * Because perms is never used again after this audit
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 39/2151 apparmor: constify aa_perms parameters that are read-only
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: John Johansen <[email protected]>
[ Upstream commit e3bc982007fe5e704c6a7f5a189502ece056f68d ]
Several functions take a struct aa_perms * argument that is only ever read from and never modified through the pointer. Mark those parameters const struct aa_perms * to document intent and let the compiler enforce that the permission set is not mutated.
The converted functions are:
- aa_check_perms()
- aa_do_perms()
- do_perms() (af_inet)
- match_label() (af_unix)
- verify_perm()
- aa_perms_accum() / aa_perms_accum_raw() (@addend only)
No functional change.
Stable-dep-of: ce94927fa417 ("apparmor: fix profile leak when a policy load fails")
--- security/apparmor/af_unix.c | 2 +- security/apparmor/include/net.h | 2 +- security/apparmor/include/perms.h | 11 ++++++----- security/apparmor/lib.c | 2 +- security/apparmor/net.c | 2 +- security/apparmor/policy_unpack.c | 2 +- 6 files changed, 11 insertions(+), 10 deletions(-)
security/apparmor/af_unix.c +1 -1
@@ -172,7 +172,7 @@ static aa_state_t match_to_peer(struct aa_policydb *policy, aa_state_t state,static aa_state_t match_label (struct aa_profile *profile,struct aa_ruleset *rule,aa_state_t state,u32 request,struct aa_profile *peer, -struct aa_perms *p, +const struct aa_perms *p,struct apparmor_audit_data *ad) {AA_BUG (!profile);
security/apparmor/include/net.h +1 -1
@@ -86,7 +86,7 @@ extern struct aa_sfs_entry aa_sfs_entry_network[];extern struct aa_sfs_entry aa_sfs_entry_networkv9[];int aa_do_perms (struct aa_profile *profile,struct aa_policydb *policy, -aa_state_t state,u32 request,struct aa_perms *p, +aa_state_t state,u32 request,const struct aa_perms *p,struct apparmor_audit_data *ad);/* passing in state returned by XXX_mediates_AF() */ aa_state_t aa_match_to_prot(struct aa_policydb *policy, aa_state_t state,
security/apparmor/include/perms.h +6 -5
@@ -105,7 +105,7 @@ extern struct aa_perms allperms;* @addend: perms struct to add to @accum */ static inline void aa_perms_accum_raw (struct aa_perms *accum, -struct aa_perms *addend) +const struct aa_perms *addend) { accum->deny |= addend->deny; accum->allow &= addend->allow & ~addend->deny;
@@ -132,7 +132,7 @@ static inline void aa_perms_accum_raw(struct aa_perms *accum,* @addend: perms struct to add to @accum */ static inline void aa_perms_accum (struct aa_perms *accum, -struct aa_perms *addend) +const struct aa_perms *addend) { accum->deny |= addend->deny; accum->allow &= addend->allow & ~accum->deny;
@@ -208,12 +208,13 @@ void aa_audit_perm_mask(struct audit_buffer *ab, u32 mask, const char *chrs, u32 chrsmask, const char * const *names, u32 namesmask);void aa_apply_modes_to_perms (struct aa_profile *profile,struct aa_perms *perms); -void aa_perms_accum (struct aa_perms *accum,struct aa_perms *addend); -void aa_perms_accum_raw (struct aa_perms *accum,struct aa_perms *addend); +void aa_perms_accum (struct aa_perms *accum,const struct aa_perms *addend); +void aa_perms_accum_raw (struct aa_perms *accum,const struct aa_perms *addend);void aa_profile_match_label (struct aa_profile *profile,struct aa_ruleset *rules,struct aa_label *label,int type,u32 request,struct aa_perms *perms); -int aa_check_perms (struct aa_profile *profile,struct aa_perms *perms, +int aa_check_perms (struct aa_profile *profile,const struct aa_perms *perms,u32 request,struct apparmor_audit_data *ad,void (*cb)(struct audit_buffer *,void *));#endif /* __AA_PERM_H */ +
security/apparmor/lib.c +1 -1
@@ -415,7 +415,7 @@ void aa_profile_match_label(struct aa_profile *profile,* error code will indicate whether there was an explicit deny * with a positive value. */ -int aa_check_perms (struct aa_profile *profile,struct aa_perms *perms, +int aa_check_perms (struct aa_profile *profile,const struct aa_perms *perms,u32 request,struct apparmor_audit_data *ad,void (*cb)(struct audit_buffer *,void *)) {
security/apparmor/net.c +1 -1
@@ -166,7 +166,7 @@ void audit_net_cb(struct audit_buffer *ab, void *va)/* standard permission lookup pattern - supports early bailout */ int aa_do_perms (struct aa_profile *profile,struct aa_policydb *policy,aa_state_t state,u32 request, -struct aa_perms *p,struct apparmor_audit_data *ad) +const struct aa_perms *p,struct apparmor_audit_data *ad) {struct aa_perms perms;
security/apparmor/policy_unpack.c +1 -1
@@ -1257,7 +1257,7 @@ static bool verify_dfa_accept_index(struct aa_dfa *dfa, int table_size)return true; } -static bool verify_perm (struct aa_perms *perm) +static bool verify_perm (const struct aa_perms *perm) {/* TODO: allow option to just force the perms into a valid state */ if (perm->allow & perm->deny)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 40/2151 apparmor: constify aa_profile parameters on read-only compute paths
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: John Johansen <[email protected]>
[ Upstream commit 08066bcdeed037a99c47f7c8456cf30ee3055048 ]
A number of functions take a struct aa_profile * argument that is only ever read from: they compute DFA matches or apply the profile's mode flags without modifying the profile, taking a reference on it, or touching its embedded label. Mark those parameters const struct aa_profile * to document intent and let the compiler enforce it.
The converted functions are the permission "compute" path plus a few pure readers:
- aa_apply_modes_to_perms(), aa_profile_match_label()
- AUDIT_MODE()
- aa_label_match() and its match_component()/label_compound_match()/ label_components_match() helpers (label.c)
- match_component()/label_compound_match()/label_components_match()/ label_match()/change_profile_perms()/aa_xattrs_match() (domain.c)
- match_iface()/match_addr_iface()/match_addr_iface_label()/
skb_match_to_sk()/skb_match_to_cmd() (af_inet.c)
- aa_profile_capget(), path_flags(), profile_query_cb()
The remaining aa_profile * parameters cannot be made const: the audit path stores &profile->label into the owned, refcounted apparmor_audit_data.subj_label/peer fields, and the domain/lifecycle paths take references on the profile's embedded label (aa_get_label()/aa_get_newest_label()/aa_get_profile()) or write profile fields.
No functional change.
Stable-dep-of: ce94927fa417 ("apparmor: fix profile leak when a policy load fails")
--- security/apparmor/apparmorfs.c | 3 ++- security/apparmor/capability.c | 2 +- security/apparmor/domain.c | 16 ++++++++-------- security/apparmor/include/capability.h | 2 +- security/apparmor/include/label.h | 2 +- security/apparmor/include/perms.h | 4 ++-- security/apparmor/include/policy.h | 2 +- security/apparmor/label.c | 10 +++++----- security/apparmor/lib.c | 5 +++-- security/apparmor/mount.c | 2 +- 10 files changed, 25 insertions(+), 23 deletions(-)
security/apparmor/apparmorfs.c +2 -1
@@ -690,7 +690,8 @@ static const struct file_operations aa_fs_ns_revision_fops = { .release = ns_revision_release, }; -static void profile_query_cb (struct aa_profile *profile,struct aa_perms *perms, +static void profile_query_cb (const struct aa_profile *profile, +struct aa_perms *perms,const char *match_str,size_t match_len) {struct aa_ruleset *rules = profile->label.rules[0 ];
security/apparmor/capability.c +1 -1
@@ -191,7 +191,7 @@ int aa_capable(const struct cred *subj_cred, struct aa_label *label,return error; } -kernel_cap_t aa_profile_capget (struct aa_profile *profile) +kernel_cap_t aa_profile_capget (const struct aa_profile *profile) {struct aa_ruleset *rules = profile->label.rules[0 ];aa_state_t state;
security/apparmor/domain.c +8 -8
@@ -90,8 +90,8 @@ static int may_change_ptraced_domain(const struct cred *to_cred,* If a subns profile is not to be matched should be prescreened with * visibility test. */ -static inline aa_state_t match_component (struct aa_profile *profile, -struct aa_profile *tp, +static inline aa_state_t match_component (const struct aa_profile *profile, +const struct aa_profile *tp,bool stack,aa_state_t state) {struct aa_ruleset *rules = profile->label.rules[0 ];
@@ -126,7 +126,7 @@ static inline aa_state_t match_component(struct aa_profile *profile,* @perms should be preinitialized with allperms OR a previous permission * check to be stacked. */ -static int label_compound_match (struct aa_profile *profile, +static int label_compound_match (const struct aa_profile *profile,struct aa_label *label,bool stack,aa_state_t state,bool inview,u32 request,struct aa_perms *perms)
@@ -188,7 +188,7 @@ static int label_compound_match(struct aa_profile *profile,* @perms should be preinitialized with allperms OR a previous permission * check to be stacked. */ -static int label_components_match (struct aa_profile *profile, +static int label_components_match (const struct aa_profile *profile,struct aa_label *label,bool stack,aa_state_t start,bool inview,u32 request,struct aa_perms *perms)
@@ -252,7 +252,7 @@ static int label_components_match(struct aa_profile *profile,* * Returns: the state the match finished in, may be the none matching state */ -static int label_match (struct aa_profile *profile,struct aa_label *label, +static int label_match (const struct aa_profile *profile,struct aa_label *label,bool stack,aa_state_t state,bool inview,u32 request,struct aa_perms *perms) {
@@ -286,7 +286,7 @@ static int label_match(struct aa_profile *profile, struct aa_label *label,* currently only matches full label A//&B//&C or individual components A, B, C * not arbitrary combinations. Eg. A//&B, C */ -static int change_profile_perms (struct aa_profile *profile, +static int change_profile_perms (const struct aa_profile *profile,struct aa_label *target,bool stack,u32 request,aa_state_t start,struct aa_perms *perms)
@@ -310,7 +310,7 @@ static int change_profile_perms(struct aa_profile *profile,* Returns: number of extended attributes that matched, or < 0 on error */ static int aa_xattrs_match (const struct path *path, -struct aa_profile *profile,aa_state_t state) +const struct aa_profile *profile,aa_state_t state) {AA_BUG (!path);AA_BUG (!profile);
@@ -318,7 +318,7 @@ static int aa_xattrs_match(const struct path *path,int i;struct dentry *d;char *value =NULL ; -struct aa_attachment *attach = &profile->attach; +const struct aa_attachment *attach = &profile->attach;int size, value_size =0 , ret = attach->xattr_count;if (!attach->xattr_count)
security/apparmor/include/capability.h +1 -1
@@ -36,7 +36,7 @@ struct aa_caps {extern struct aa_sfs_entry aa_sfs_entry_caps[]; -kernel_cap_t aa_profile_capget (struct aa_profile *profile); +kernel_cap_t aa_profile_capget (const struct aa_profile *profile);int aa_capable (const struct cred *subj_cred,struct aa_label *label,int cap,unsigned int opts);
security/apparmor/include/label.h +1 -1
@@ -346,7 +346,7 @@ static inline const char *aa_label_str_split(const char *str)struct aa_perms ;struct aa_ruleset ; -int aa_label_match (struct aa_profile *profile,struct aa_ruleset *rules, +int aa_label_match (const struct aa_profile *profile,struct aa_ruleset *rules,struct aa_label *label,aa_state_t state,bool subns,u32 request,struct aa_perms *perms);
security/apparmor/include/perms.h +2 -2
@@ -206,11 +206,11 @@ void aa_audit_perm_names(struct audit_buffer *ab, const char * const *names, u32 mask);void aa_audit_perm_mask (struct audit_buffer *ab,u32 mask,const char *chrs,u32 chrsmask,const char *const *names,u32 namesmask); -void aa_apply_modes_to_perms (struct aa_profile *profile, +void aa_apply_modes_to_perms (const struct aa_profile *profile,struct aa_perms *perms);void aa_perms_accum (struct aa_perms *accum,const struct aa_perms *addend);void aa_perms_accum_raw (struct aa_perms *accum,const struct aa_perms *addend); -void aa_profile_match_label (struct aa_profile *profile, +void aa_profile_match_label (const struct aa_profile *profile,struct aa_ruleset *rules,struct aa_label *label,int type,u32 request,struct aa_perms *perms); int aa_check_perms(struct aa_profile *profile, const struct aa_perms *perms,
security/apparmor/include/policy.h +1 -1
@@ -408,7 +408,7 @@ static inline void aa_put_profile(struct aa_profile *p)kref_put (&p->label.count.count, aa_label_kref); } -static inline int AUDIT_MODE (struct aa_profile *profile) +static inline int AUDIT_MODE (const struct aa_profile *profile) {if (aa_g_audit !=AUDIT_NORMAL )return aa_g_audit;
security/apparmor/label.c +5 -5
@@ -1253,9 +1253,9 @@ struct aa_label *aa_label_merge(struct aa_label *a, struct aa_label *b,* If a subns profile is not to be matched should be prescreened with * visibility test. */ -static inline aa_state_t match_component (struct aa_profile *profile, +static inline aa_state_t match_component (const struct aa_profile *profile,struct aa_ruleset *rules, -struct aa_profile *tp, +const struct aa_profile *tp,aa_state_t state) {const char *ns_name;
@@ -1287,7 +1287,7 @@ static inline aa_state_t match_component(struct aa_profile *profile,* @perms should be preinitialized with allperms OR a previous permission * check to be stacked. */ -static int label_compound_match(struct aa_profile *profile, +static int label_compound_match(const struct aa_profile *profile, struct aa_ruleset *rules, struct aa_label *label, aa_state_t state, bool inview, u32 request,
@@ -1343,7 +1343,7 @@ static int label_compound_match(struct aa_profile *profile,* @perms should be preinitialized with allperms OR a previous permission * check to be stacked. */ -static int label_components_match(struct aa_profile *profile, +static int label_components_match(const struct aa_profile *profile, struct aa_ruleset *rules, struct aa_label *label, aa_state_t start, bool inview, u32 request,
@@ -1402,7 +1402,7 @@ static int label_components_match(struct aa_profile *profile,* * Returns: the state the match finished in, may be the none matching state */ -int aa_label_match (struct aa_profile *profile,struct aa_ruleset *rules, +int aa_label_match (const struct aa_profile *profile,struct aa_ruleset *rules,struct aa_label *label,aa_state_t state,bool inview,u32 request,struct aa_perms *perms) {
security/apparmor/lib.c +3 -2
@@ -358,7 +358,8 @@ void aa_audit_perm_mask(struct audit_buffer *ab, u32 mask, const char *chrs,* * TODO: split into profile and ns based flags for when accumulating perms */ -void aa_apply_modes_to_perms (struct aa_profile *profile,struct aa_perms *perms) +void aa_apply_modes_to_perms (const struct aa_profile *profile, +struct aa_perms *perms) {switch (AUDIT_MODE (profile)) {case AUDIT_ALL :
@@ -383,7 +384,7 @@ void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) perms->prompt =ALL_PERMS_MASK ; } -void aa_profile_match_label (struct aa_profile *profile, +void aa_profile_match_label (const struct aa_profile *profile,struct aa_ruleset *rules,struct aa_label *label,int type,u32 request,struct aa_perms *perms)
security/apparmor/mount.c +1 -1
@@ -278,7 +278,7 @@ static int do_match_mnt(struct aa_policydb *policy, aa_state_t start, } -static int path_flags (struct aa_profile *profile,const struct path *path) +static int path_flags (const struct aa_profile *profile,const struct path *path) {AA_BUG (!profile);AA_BUG (!path);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 41/2151 apparmor: fix profile leak when a policy load fails
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Georgia Garcia <[email protected]>
[ Upstream commit ce94927fa4173fcc1eca27bdc65a140064c8f1e6 ]
The error paths of aa_replace_profiles() and aa_unpack() do not break the refcount cycle between label and proxy. They just aa_put_profile() the new profiles, which drops the label refcount from 2 to 1, and the proxy keeps the profile alive. Every failed atomic policy load (e.g. "profile can not be replaced", or a later profile in the blob failing to unpack) leaks every new profile in the set, along with its proxy, rules and its loaddata reference.
The leak is usually not visible from userspace, because the raw_data directory for a failed load is not created, but it becomes visible when the blob is deduplicated onto an existing loaddata, which then keeps its policy/raw_data/<rev> directory forever.
Add aa_put_unpublished_profile(), which drops the profile's own proxy before putting the profile, and use it on those error paths. The proxy of an unpacked profile is always freshly allocated and not referenced by anything else before the profile is published, so putting it is safe.
--- security/apparmor/include/policy.h | 20 ++++++++++++++++++++ security/apparmor/policy.c | 3 +++ security/apparmor/policy_unpack.c | 4 +++- 3 files changed, 26 insertions(+), 1 deletion(-)
security/apparmor/include/policy.h +20 -0
@@ -408,6 +408,26 @@ static inline void aa_put_profile(struct aa_profile *p)kref_put (&p->label.count.count, aa_label_kref); } +/** +* aa_put_unpublished_profile - put a profile that was never made visible +* @p: profile (MAYBE NULL) +* +* A newly allocated profile and its proxy reference each other +* (proxy->label holds a label refcount). That cycle is normally broken +* when the profile is replaced or removed, which redirects the proxy. +* A profile that is discarded before being added to the policy tree +* never goes through either path, so break the cycle here, otherwise +* the profile, its proxy and its rawdata are leaked. +*/ +static inline void aa_put_unpublished_profile (struct aa_profile *p) +{ +if (p && p->label.proxy) { +aa_put_proxy (p->label.proxy); + p->label.proxy =NULL ; + } +aa_put_profile (p); +} +static inline int AUDIT_MODE (const struct aa_profile *profile) {if (aa_g_audit !=AUDIT_NORMAL )
security/apparmor/policy.c +3 -0
@@ -1434,6 +1434,9 @@ ssize_t aa_replace_profiles(struct aa_ns *policy_ns, struct aa_label *label, }list_for_each_entry_safe (ent, tmp, &lh, list) {list_del_init (&ent->list); +/* new was never added to the policy tree */ +aa_put_unpublished_profile (ent->new); + ent->new =NULL ;aa_load_ent_free (ent); }
security/apparmor/policy_unpack.c +3 -1
@@ -1556,11 +1556,13 @@ int aa_unpack(struct aa_loaddata *udata, struct list_head *lh, fail_profile:kfree (ns_name); -aa_put_profile (profile); +aa_put_unpublished_profile (profile); fail:list_for_each_entry_safe (ent, tmp, lh, list) {list_del_init (&ent->list); +aa_put_unpublished_profile (ent->new); + ent->new =NULL ;aa_load_ent_free (ent); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 42/2151 hwmon: (chipcap2) Drop unnecessary include files
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Guenter Roeck <[email protected]>
[ Upstream commit 4c8d758d4ebff3780d09599f2c8db5d6af3ca2af ]
The driver does not perform any locking, does not execute or use any sleep related functionality, and does not allocate memory. Drop the unnecessary include files.
Stable-dep-of: 8c02722be2ca ("hwmon: chipcap2: synchronize ready IRQ state")
--- drivers/hwmon/chipcap2.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/hwmon/chipcap2.c +0 -7
@@ -82,7 +82,6 @@ struct cc2_data {struct completion complete;struct device *hwmon;struct i2c_client *client; -struct mutex dev_access_lock;/* device access lock */ struct regulator *regulator;const char *name;int irq_ready;
@@ -575,8 +574,6 @@ static int cc2_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, {struct cc2_data *data =dev_get_drvdata (dev); -guard (mutex)(&data->dev_access_lock); -switch (type) {case hwmon_temp:return cc2_measurement (data, type, val);
@@ -617,8 +614,6 @@ static int cc2_write(struct device *dev, enum hwmon_sensor_types type, u32 attr,if (val <0 || val >CC2_RH_MAX )return -EINVAL ; -guard (mutex)(&data->dev_access_lock); -switch (attr) {case hwmon_humidity_min: cmd =CC2_W_ALARM_L_ON ;
@@ -712,8 +707,6 @@ static int cc2_probe(struct i2c_client *client)i2c_set_clientdata (client, data); -mutex_init (&data->dev_access_lock); - data->client = client; data->regulator =devm_regulator_get_exclusive (dev,"vdd" );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 43/2151 hwmon: chipcap2: serialize access to the alarm indicators
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Javier Carrasco <[email protected]>
[ Upstream commit bed5f0c075eb99442fca6a61c009a32752eceda2 ]
low_alarm and high_alarm are accessed from the threaded interrupt handlers and from sysfs without any locking, which can lead to lost alarms.
Add a mutex to serialize the access to the alarm indicators and to process_irqs, which the handlers use to decide whether an interrupt belongs to an ongoing operation.
Stable-dep-of: 8c02722be2ca ("hwmon: chipcap2: synchronize ready IRQ state")
--- drivers/hwmon/chipcap2.c | 58 +++++++++++++++++++++++++--------------- 1 file changed, 37 insertions(+), 21 deletions(-)
drivers/hwmon/chipcap2.c +37 -21
@@ -20,6 +20,7 @@#include <linux/i2c.h> #include <linux/interrupt.h> #include <linux/irq.h> +#include <linux/mutex.h> #include <linux/module.h> #include <linux/unaligned.h> #include <linux/regulator/consumer.h>
@@ -88,6 +89,8 @@ struct cc2_data {int irq_low;int irq_high;bool process_irqs; +/* protects process_irqs and the alarm indicators */ +struct mutex irq_lock;bool regulator_enabled; };
@@ -119,7 +122,8 @@ static int cc2_enable(struct cc2_data *data)/* exclusive regulator, check in case a disable failed */ if (data->regulator_enabled) { - data->process_irqs = true; +scoped_guard (mutex, &data->irq_lock) + data->process_irqs = true;return 0 ; }
@@ -134,7 +138,8 @@ static int cc2_enable(struct cc2_data *data)usleep_range (CC2_STARTUP_TIME_US ,CC2_STARTUP_TIME_US +125 ); - data->process_irqs = true; +scoped_guard (mutex, &data->irq_lock) + data->process_irqs = true;return 0 ; }
@@ -151,7 +156,8 @@ static void cc2_disable(struct cc2_data *data)synchronize_irq (data->irq_high);/* ignore alarms triggered by voltage toggling when powering up */ - data->process_irqs = false; +scoped_guard (mutex, &data->irq_lock) + data->process_irqs = false;/* exclusive regulator, check in case an enable failed */ if (!data->regulator_enabled)
@@ -507,10 +513,12 @@ static irqreturn_t cc2_low_interrupt(int irq, void *data) {struct cc2_data *cc2 = data; -if (cc2->process_irqs) { -hwmon_notify_event (cc2->hwmon, hwmon_humidity, - hwmon_humidity_min_alarm,0 ); - cc2->rh_alarm.low_alarm = true; + scoped_guard(mutex, &cc2->irq_lock) { +if (cc2->process_irqs) { +hwmon_notify_event (cc2->hwmon, hwmon_humidity, + hwmon_humidity_min_alarm,0 ); + cc2->rh_alarm.low_alarm = true; + } }return IRQ_HANDLED ;
@@ -520,10 +528,12 @@ static irqreturn_t cc2_high_interrupt(int irq, void *data) {struct cc2_data *cc2 = data; -if (cc2->process_irqs) { -hwmon_notify_event (cc2->hwmon, hwmon_humidity, - hwmon_humidity_max_alarm,0 ); - cc2->rh_alarm.high_alarm = true; + scoped_guard(mutex, &cc2->irq_lock) { +if (cc2->process_irqs) { +hwmon_notify_event (cc2->hwmon, hwmon_humidity, + hwmon_humidity_max_alarm,0 ); + cc2->rh_alarm.high_alarm = true; + } }return IRQ_HANDLED ;
@@ -539,11 +549,13 @@ static int cc2_humidity_min_alarm_status(struct cc2_data *data, long *val)if (ret <0 )return ret; -if (data->rh_alarm.low_alarm) { - *val = (measurement < min_hyst) ?1 :0 ; - data->rh_alarm.low_alarm = *val; - }else { - *val =0 ; + scoped_guard(mutex, &data->irq_lock) { +if (data->rh_alarm.low_alarm) { + *val = (measurement < min_hyst) ?1 :0 ; + data->rh_alarm.low_alarm = *val; + }else { + *val =0 ; + } }return 0 ;
@@ -559,11 +571,13 @@ static int cc2_humidity_max_alarm_status(struct cc2_data *data, long *val)if (ret <0 )return ret; -if (data->rh_alarm.high_alarm) { - *val = (measurement > max_hyst) ?1 :0 ; - data->rh_alarm.high_alarm = *val; - }else { - *val =0 ; + scoped_guard(mutex, &data->irq_lock) { +if (data->rh_alarm.high_alarm) { + *val = (measurement > max_hyst) ?1 :0 ; + data->rh_alarm.high_alarm = *val; + }else { + *val =0 ; + } }return 0 ;
@@ -707,6 +721,8 @@ static int cc2_probe(struct i2c_client *client)i2c_set_clientdata (client, data); +mutex_init (&data->irq_lock); + data->client = client; data->regulator =devm_regulator_get_exclusive (dev,"vdd" );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 44/2151 hwmon: chipcap2: synchronize ready IRQ state
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Javier Carrasco <[email protected]>
[ Upstream commit 8c02722be2caa6604a837b81faeaba78250eda4a ]
The ready IRQ handler can race with reinit_completion() in the enable path. In particular, a handler from an earlier operation can complete the completion after it is reset for a new operation.
Use irq_lock to serialize access to the completion and process_irqs. Disable IRQ processing and synchronize any running handler before resetting the completion for a new operation.
--- drivers/hwmon/chipcap2.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-)
drivers/hwmon/chipcap2.c +17 -5
@@ -120,6 +120,16 @@ static int cc2_enable(struct cc2_data *data) {int ret; +if (data->irq_ready >0 ) { +scoped_guard (mutex, &data->irq_lock) + data->process_irqs = false; + +synchronize_irq (data->irq_ready); + + scoped_guard(mutex, &data->irq_lock) +reinit_completion (&data->complete); + } +/* exclusive regulator, check in case a disable failed */ if (data->regulator_enabled) {scoped_guard (mutex, &data->irq_lock)
@@ -127,9 +137,6 @@ static int cc2_enable(struct cc2_data *data)return 0 ; } -/* clear any pending completion */ -try_wait_for_completion (&data->complete); - ret =regulator_enable (data->regulator);if (ret <0 )return ret;
@@ -159,6 +166,9 @@ static void cc2_disable(struct cc2_data *data)scoped_guard (mutex, &data->irq_lock) data->process_irqs = false; +if (data->irq_ready >0 ) +synchronize_irq (data->irq_ready); +/* exclusive regulator, check in case an enable failed */ if (!data->regulator_enabled)return ;
@@ -503,8 +513,10 @@ static irqreturn_t cc2_ready_interrupt(int irq, void *data) {struct cc2_data *cc2 = data; -if (cc2->process_irqs) -complete (&cc2->complete); + scoped_guard(mutex, &cc2->irq_lock) { +if (cc2->process_irqs) +complete (&cc2->complete); + }return IRQ_HANDLED ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 45/2151 platform/x86: hp-wmi: Order DMI board name arrays
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ilpo Järvinen <[email protected]>
[ Upstream commit 68779adbabdbb1891ba4d9b8c7d3be99ed5e0b3d ]
The hp-wmi driver has a number of arrays that are getting new entries and all/most entries have been added to the end of the array. As a result, the numerical order is mixed up in a few entries.
Reorder the array entries. Split lines for each two leading chars to make the arrays easier to read.
Add also trailing commas.
Stable-dep-of: d35a1ea827a2 ("platform/x86: hp-wmi: Add OMEN board 8A17 thermal profile support")
--- drivers/platform/x86/hp/hp-wmi.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-)
drivers/platform/x86/hp/hp-wmi.c +15 -9
@@ -123,12 +123,16 @@ static struct thermal_profile_params *active_thermal_profile_params;* contains "PerformanceControl". */ static const char *const omen_thermal_profile_boards[] = { -"84DA" ,"84DB" ,"84DC" ,"8574" ,"8575" ,"860A" ,"87B5" ,"8572" ,"8573" , -"8600" ,"8601" ,"8602" ,"8605" ,"8606" ,"8607" ,"8746" ,"8747" ,"8749" , -"874A" ,"8603" ,"8604" ,"8748" ,"886B" ,"886C" ,"878A" ,"878B" ,"878C" , -"88C8" ,"88CB" ,"8786" ,"8787" ,"8788" ,"88D1" ,"88D2" ,"88F4" ,"88FD" , -"88F5" ,"88F6" ,"88F7" ,"88FE" ,"88FF" ,"8900" ,"8901" ,"8902" ,"8912" , -"8917" ,"8918" ,"8949" ,"894A" ,"89EB" ,"8BAD" ,"8A42" ,"8A15" +"84DA" ,"84DB" ,"84DC" , +"8572" ,"8573" ,"8574" ,"8575" , +"8600" ,"8601" ,"8602" ,"8603" ,"8604" ,"8605" ,"8606" ,"8607" ,"860A" , +"8746" ,"8747" ,"8748" ,"8749" ,"874A" ,"8786" ,"8787" ,"8788" ,"878A" , +"878B" ,"878C" ,"87B5" , +"886B" ,"886C" ,"88C8" ,"88CB" ,"88D1" ,"88D2" ,"88F4" ,"88F5" ,"88F6" , +"88F7" ,"88FD" ,"88FE" ,"88FF" , +"8900" ,"8901" ,"8902" ,"8912" ,"8917" ,"8918" ,"8949" ,"894A" ,"89EB" , +"8A15" ,"8A42" , +"8BAD" , };/* DMI Board names of Omen laptops that are specifically set to be thermal
@@ -136,7 +140,8 @@ static const char * const omen_thermal_profile_boards[] = {* the get system design information WMI call returns */ static const char *const omen_thermal_profile_force_v0_boards[] = { -"8607" ,"8746" ,"8747" ,"8749" ,"874A" ,"8748" +"8607" , +"8746" ,"8747" ,"8748" ,"8749" ,"874A" , };/* DMI board names of Omen laptops that have a thermal profile timer which will
@@ -144,12 +149,13 @@ static const char * const omen_thermal_profile_force_v0_boards[] = {* "balanced" when reaching zero. */ static const char *const omen_timed_thermal_profile_boards[] = { -"8BAD" ,"8A42" ,"8A15" +"8A15" ,"8A42" , +"8BAD" , };/* DMI Board names of Victus 16-d1xxx laptops */ static const char *const victus_thermal_profile_boards[] = { -"8A25" +"8A25" , };/* DMI Board names of Victus 16-r and Victus 16-s laptops */
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 46/2151 platform/x86: hp-wmi: Add OMEN board 8A17 thermal profile support
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ciro Pedrini <[email protected]>
[ Upstream commit d35a1ea827a2efaea7fb059ffafefae7c13b9556 ]
The HP OMEN 17-ck1xxx (board 8A17) isn't in omen_thermal_profile_boards, so hp-wmi uses the generic thermal profile query. The firmware only stores that value and never acts on it, so the EC stays in its default mode and the CPU is held at 45 W whatever profile is selected.
The board uses the OMEN interface (mode byte at EC 0x95, thermal policy v1) and also needs the timed profile quirk: without it, the EC drops back to the default mode about two minutes after each profile change.
Add 8A17 to omen_thermal_profile_boards andomen_timed_thermal_profile_boards.
With this, all three profiles work and sustained package power under load goes from 45 W to 56-79 W.
--- drivers/platform/x86/hp/hp-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/platform/x86/hp/hp-wmi.c +2 -2
@@ -131,7 +131,7 @@ static const char * const omen_thermal_profile_boards[] = {"886B" ,"886C" ,"88C8" ,"88CB" ,"88D1" ,"88D2" ,"88F4" ,"88F5" ,"88F6" ,"88F7" ,"88FD" ,"88FE" ,"88FF" ,"8900" ,"8901" ,"8902" ,"8912" ,"8917" ,"8918" ,"8949" ,"894A" ,"89EB" , -"8A15" ,"8A42" , +"8A15" ,"8A17" ,"8A42" , "8BAD", };
@@ -149,7 +149,7 @@ static const char * const omen_thermal_profile_force_v0_boards[] = {* "balanced" when reaching zero. */ static const char *const omen_timed_thermal_profile_boards[] = { -"8A15" ,"8A42" , +"8A15" ,"8A17" ,"8A42" ,"8BAD" , };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 47/2151 inet: frags: bound the wmem charge of the socket completing a reassembly
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eric Dumazet <[email protected]>
[ Upstream commit b71c101bbb9814d163c00234d43c41f0a17907d4 ]
When a socket owned fragment completes a reassembly queue, inet_frag_reasm_prepare() and inet_frag_reasm_finish() charge the truesize of all other fragments to its sk_wmem_alloc. These fragments were orphaned when queued, and might have been sent by someone else, for instance padded TUN packets.
Commit 3ae20e4697eb ("inet: frags: limit the truesize of a reassembly queue") bounds this charge to INT_MAX / 2 per queue, but a socket can complete several queues while the reassembled skbs are still alive, for instance held in a qdisc. sk_wmem_alloc can then go past INT_MAX, refcount_add() saturates it with a WARN, and the socket is leaked.
This is reachable from an unprivileged user/network namespace, by raising ipfrag_high_thresh.
Refuse the reassembly if the charge would push sk_wmem_alloc above 2 * sk_sndbuf, the bound ip_append_data() uses, plus 4MB of slack for fragments inflated by a refragmentation with a small MTU, and never above INT_MAX / 2. The cap matters for tun sockets, which use sk_sndbuf = INT_MAX, and whose skbs are still owned when act_ct or openvswitch reassemble them at ingress.
Several queues can complete at the same time on different cpus for the same socket, so the charge is reserved with a cmpxchg() loop in inet_frag_reasm_prepare(), before it modifies the queue, and settled in inet_frag_reasm_finish(). Move the size checks of ip_frag_reasm(), ip6_frag_reasm() and nf_ct_frag6_reasm() before inet_frag_reasm_prepare(), using the first fragment which becomes the head, so that a successful inet_frag_reasm_prepare() is always followed by inet_frag_reasm_finish(). All callers already kill the queue when inet_frag_reasm_prepare() returns NULL.
Found by code inspection (AI review), not reproduced.
--- net/ipv4/inet_fragment.c | 61 ++++++++++++++++++++++--- net/ipv4/ip_fragment.c | 13 ++++-- net/ipv6/netfilter/nf_conntrack_reasm.c | 13 ++++-- net/ipv6/reassembly.c | 13 ++++-- 4 files changed, 78 insertions(+), 22 deletions(-)
net/ipv4/inet_fragment.c +54 -7
@@ -17,6 +17,7 @@#include <linux/rtnetlink.h> #include <linux/slab.h> #include <linux/rhashtable.h> +#include <linux/sizes.h> #include <net/sock.h> #include <net/inet_frag.h>
@@ -516,6 +517,43 @@ int inet_frag_queue_insert(struct inet_frag_queue *q, struct sk_buff *skb, }EXPORT_SYMBOL (inet_frag_queue_insert); +/* When a socket owned fragment completes a queue, the truesize of all +* other fragments is charged to its sk_wmem_alloc, although they were +* orphaned when queued and possibly sent by someone else. +* Bound this like ip_append_data() bounds the memory a socket can +* allocate (2 * sk_sndbuf), plus slack for fragments inflated by a +* refragmentation using a small MTU. Otherwise, several reassembled skbs +* alive at the same time can saturate sk_wmem_alloc, and leak the socket. +* +* Several queues can complete at the same time for the same socket, +* and some sockets (tun) use sk_sndbuf = INT_MAX. The charge is reserved +* with a cmpxchg() loop, a refcount_t has no helper for this. +*/ +#define INET_FRAG_WMEM_SLACK SZ_4M + +static bool inet_frag_wmem_reserve (struct sock *sk,unsigned int charge) +{ +u64 limit =2ULL *READ_ONCE (sk->sk_sndbuf) +INET_FRAG_WMEM_SLACK ; +int old =refcount_read (&sk->sk_wmem_alloc); + + limit =min_t (u64, limit,INET_FRAG_MAX_TRUESIZE ); +do { +if (old <=0 || (u64 )old + charge > limit) +return false; + }while (!atomic_try_cmpxchg (&sk->sk_wmem_alloc.refs, &old, + old + charge)); + +return true; +} + +static void inet_frag_wmem_adjust (struct sock *sk,int delta) +{ +if (delta >=0 ) +refcount_add (delta, &sk->sk_wmem_alloc); +else +WARN_ON_ONCE (refcount_sub_and_test (-delta, &sk->sk_wmem_alloc)); +} +void *inet_frag_reasm_prepare (struct inet_frag_queue *q,struct sk_buff *skb,struct sk_buff *parent) {
@@ -527,6 +565,11 @@ void *inet_frag_reasm_prepare(struct inet_frag_queue *q, struct sk_buff *skb,int delta;if (sk &&is_skb_wmem (skb)) { +/* skb->truesize is already charged to sk, and is part of +* q->truesize. inet_frag_reasm_finish() settles the charge. +*/ +if (!inet_frag_wmem_reserve (sk, q->truesize - skb->truesize)) +return NULL ;/* TX: skb->sk might have been passed as argument to * dst->output and must remain valid until tx completes. *
@@ -604,17 +647,18 @@ void *inet_frag_reasm_prepare(struct inet_frag_queue *q, struct sk_buff *skb, out_restore_sk:if (orig_truesize) { -int ts_delta = head->truesize - orig_truesize; -/* if this reassembled skb is fragmented later, * fraglist skbs will get skb->sk assigned from head->sk, * and each frag skb will be released via sock_wfree. -* -* Update sk_wmem_alloc. */ head->sk = sk; head->destructor = destructor; -refcount_add (ts_delta, &sk->sk_wmem_alloc); +/* On failure, head stays in the queue and will be freed +* with the queue: only charge its truesize. +*/ +if (!nextp) +inet_frag_wmem_adjust (sk, (int )head->truesize - + (int )q->truesize); }return nextp;
@@ -625,7 +669,6 @@ void inet_frag_reasm_finish(struct inet_frag_queue *q, struct sk_buff *head, void *reasm_data, bool try_coalesce) {struct sock *sk =is_skb_wmem (head) ? head->sk :NULL ; -const unsigned int head_truesize = head->truesize;struct sk_buff **nextp = reasm_data;struct rb_node *rbn;struct sk_buff *fp;
@@ -690,8 +733,12 @@ void inet_frag_reasm_finish(struct inet_frag_queue *q, struct sk_buff *head, head->tstamp = q->stamp; head->tstamp_type = q->tstamp_type; +/* After inet_frag_reasm_prepare(), q->truesize is charged to sk. +* sum_truesize also includes what it added (skb_unclone() and +* frag_list clone). +*/ if (sk) -refcount_add (sum_truesize - head_truesize, &sk->sk_wmem_alloc); +inet_frag_wmem_adjust (sk, sum_truesize - (int )q->truesize); }EXPORT_SYMBOL (inet_frag_reasm_finish);
net/ipv4/ip_fragment.c +8 -5
@@ -412,16 +412,19 @@ static int ip_frag_reasm(struct ipq *qp, struct sk_buff *skb, goto out_fail; } +/* Check the size on the first fragment, which will become the head: +* inet_frag_reasm_finish() must follow inet_frag_reasm_prepare(). +*/ + len =ip_hdrlen (skb_rb_first (&qp->q.rb_fragments)) + qp->q.len; + err = -E2BIG ; +if (len >65535 ) + goto out_oversize; +/* Make the one we just received the head. */ reasm_data =inet_frag_reasm_prepare (&qp->q, skb, prev_tail);if (!reasm_data) goto out_nomem; - len =ip_hdrlen (skb) + qp->q.len; - err = -E2BIG ; -if (len >65535 ) - goto out_oversize; -inet_frag_reasm_finish (&qp->q, skb, reasm_data,ip_frag_coalesce_ok (qp));
net/ipv6/netfilter/nf_conntrack_reasm.c +8 -5
@@ -330,11 +330,10 @@ static int nf_ct_frag6_reasm(struct frag_queue *fq, struct sk_buff *skb,if (unlikely (ecn ==0xff )) goto err; - reasm_data =inet_frag_reasm_prepare (&fq->q, skb, prev_tail); -if (!reasm_data) - goto err; - - payload_len = -skb_network_offset (skb) - +/* Check the size on the first fragment, which will become the head: +* inet_frag_reasm_finish() must follow inet_frag_reasm_prepare(). +*/ + payload_len = -skb_network_offset (skb_rb_first (&fq->q.rb_fragments)) -sizeof (struct ipv6hdr ) + fq->q.len -sizeof (struct frag_hdr );if (payload_len >IPV6_MAXPLEN ) {
@@ -343,6 +342,10 @@ static int nf_ct_frag6_reasm(struct frag_queue *fq, struct sk_buff *skb, goto err; } + reasm_data =inet_frag_reasm_prepare (&fq->q, skb, prev_tail); +if (!reasm_data) + goto err; +/* We have to remove fragment header from datagram and to relocate * header in order to calculate ICV correctly. */ skb_network_header (skb)[fq->nhoffset] =skb_transport_header (skb)[0 ];
net/ipv6/reassembly.c +8 -5
@@ -271,16 +271,19 @@ static int ip6_frag_reasm(struct frag_queue *fq, struct sk_buff *skb,if (unlikely (ecn ==0xff )) goto out_fail; - reasm_data =inet_frag_reasm_prepare (&fq->q, skb, prev_tail); -if (!reasm_data) - goto out_oom; - - payload_len = -skb_network_offset (skb) - +/* Check the size on the first fragment, which will become the head: +* inet_frag_reasm_finish() must follow inet_frag_reasm_prepare(). +*/ + payload_len = -skb_network_offset (skb_rb_first (&fq->q.rb_fragments)) -sizeof (struct ipv6hdr ) + fq->q.len -sizeof (struct frag_hdr );if (payload_len >IPV6_MAXPLEN ) goto out_oversize; + reasm_data =inet_frag_reasm_prepare (&fq->q, skb, prev_tail); +if (!reasm_data) + goto out_oom; +/* We have to remove fragment header from datagram and to relocate * header in order to calculate ICV correctly. */ nhoff = fq->nhoffset;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 48/2151 io_uring/eventfd: reset deferred signal state
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yufan Chen <[email protected]>
[ Upstream commit 04fe9aeb4f3c0999e6715385664c677469dfd8f4 ]
Recursive eventfd wakeups must defer io_uring eventfd signaling because eventfd_signal_mask() rejects reentry from eventfd wakeup handlers. The io_ev_fd ops bit tracks an outstanding deferred signal so that the same rcu_head is not queued twice.
That bit is only set today. Once the first deferred callback runs, later recursive notifications still see the bit set and skip queueing another deferred signal. This can leave new completions without a matching eventfd wake after the first recursive deferral.
Clear the pending bit before issuing the deferred signal. If the wakeup path recurses while the callback runs, a new signal can be queued for the next RCU grace period while the current callback keeps its reference until it returns.
--- io_uring/eventfd.c | 1 + 1 file changed, 1 insertion(+)
io_uring/eventfd.c +1 -0
@@ -43,6 +43,7 @@ static void io_eventfd_do_signal(struct rcu_head *rcu) { struct io_ev_fd *ev_fd = container_of(rcu, struct io_ev_fd, rcu); +atomic_andnot (BIT (IO_EVENTFD_OP_SIGNAL_BIT ), &ev_fd->ops);eventfd_signal_mask (ev_fd->cq_ev_fd,EPOLL_URING_WAKE );io_eventfd_put (ev_fd); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 49/2151 alpha: select SYSCTL_EXCEPTION_TRACE
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Matt Turner <[email protected]>
[ Upstream commit e517a172b77601839e1c52ac4303602e285804bb ]
Report unhandled user faults the way other architectures do, and hook up the debug.exception-trace sysctl that controls the reporting.
The message gives the faulting address, the PC and the user stack pointer, and is rate limited.
--- arch/alpha/Kconfig | 1 + arch/alpha/mm/fault.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+)
arch/alpha/Kconfig +1 -0
@@ -39,6 +39,7 @@ config ALPHA select CPU_NO_EFFICIENT_FFS if !ALPHA_EV67 select MMU_GATHER_NO_RANGE select SPARSEMEM_EXTREME if SPARSEMEM + select SYSCTL_EXCEPTION_TRACE select ZONE_DMA help The Alpha is a 64-bit general-purpose processor designed and
arch/alpha/mm/fault.c +29 -0
@@ -28,8 +28,32 @@#include <linux/uaccess.h> #include <linux/perf_event.h> +#include <asm/pal.h> +extern void die_if_kernel (char *,struct pt_regs *,long ,unsigned long *); +int show_unhandled_signals =1 ; + +static void +show_signal_msg (struct pt_regs *regs,unsigned long address,int signo, +const char *desc) +{ +const char *level; + +if (!show_unhandled_signals || !unhandled_signal (current, signo)) +return ; +if (!printk_ratelimit ()) +return ; + +/* Losing init is fatal, so shout about it. */ + level =task_pid_nr (current) >1 ?KERN_INFO :KERN_EMERG ; + +printk ("%s%s[%d]: %s at %016lx pc %016lx sp %016lx\n" , + level, current->comm,task_pid_nr (current), desc, + address, regs->pc,rdusp ()); +print_vma_addr (KERN_CONT " in " , regs->pc); +printk (KERN_CONT "\n" ); +}/* * Force a new ASN for a task.
@@ -223,6 +247,8 @@ do_page_fault(unsigned long address, unsigned long mmcsr,mmap_read_unlock (mm);/* Send a sigbus, regardless of whether we were in kernel or user mode. */ +if (user_mode (regs)) +show_signal_msg (regs, address,SIGBUS ,"bus error" );force_sig_fault (SIGBUS ,BUS_ADRERR , (void __user *) address);if (!user_mode (regs)) goto no_context;
@@ -244,6 +270,9 @@ do_page_fault(unsigned long address, unsigned long mmcsr,return ; do_sigsegv: +show_signal_msg (regs, address,SIGSEGV , + si_code ==SEGV_MAPERR ?"unmapped access" + :"access violation" );force_sig_fault (SIGSEGV , si_code, (void __user *) address);return ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 50/2151 can: dev: can_dropped_invalid_skb: drop CAN XL frames on non-CAN XL devices
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vincent Mailhol <[email protected]>
[ Upstream commit 0fce44e29fce4b07642491b098afb41bd571e4f2 ]
Sending a PF_PACKET bypasses the CAN framework logic and can directly reach a CAN driver's xmit() function. The PF_PACKET framework only checks that skb->len does not exceed the net_device MTU.
For a CAN device that is not CAN XL capable, anything above CANFD_MTU (72 bytes) is therefore dropped before it reaches the driver. However, CAN XL frames are variable length. can_is_canxl_skb() accepts lengths in the range CANXL_HDR_SIZE + CANXL_MIN_DLEN up to CANXL_MTU, i.e. 13 to 2060 bytes.
As a result, an ETH_P_CANXL skb with a length between 13 and 72 bytes can pass both the MTU and the can_dropped_invalid_skb() checks.
A driver that does not support CAN XL will interpret canxl_frame->flags as a length because of the overlap with can_frame->len. And because CANXL_XLF is set, the resulting length is between 128 and 255. For drivers that do not check can_frame->len before copying can_frame->data, as most drivers do, this results in a buffer overflow of up to 247 bytes.
Drop ETH_P_CANXL skbs if the device does not have the CAN_CAP_XL capability. Keep can_is_canxl_skb() for the validation of CAN XL skbs.
--- drivers/net/can/dev/skb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/dev/skb.c +1 -1
@@ -354,7 +354,7 @@ bool can_dropped_invalid_skb(struct net_device *dev, struct sk_buff *skb)break ;case ETH_P_CANXL : -if (!can_is_canxl_skb (skb)) +if (!can_is_canxl_dev_mtu (dev->mtu) || !can_is_canxl_skb (skb)) goto inval_skb;break ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 51/2151 Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Junjie Cao <[email protected]>
[ Upstream commit df5e35f1663abc2702cf9f9e7eba024129ac5df1 ]
Commit 5ead2063611a ("Bluetooth: btrtl: fix RTL8761B/BU broken LE extended scan") set HCI_QUIRK_BROKEN_EXT_SCAN on every RTL8761B, and commit ca0583c24661 ("Bluetooth: btusb: limit RTL8761B BROKEN_EXT_SCAN quirk to 0bda:a728") kept it on 0bda:a728 on the assumption that the USB id separates dongles with broken extended scan from those with a broken legacy scan path. It does not. An 0bda:a728 unit (RTL8761BUV, fw 0xdfc6d922) on 6.18.51 fails the same way the UB500 and 0bda:8771
did: LE Set Scan Enable (0x200c) times out with -110 and btusb resets the device. With the flag removed from the table entry, scanning works on that unit.
Two dongles with the same USB id need opposite settings, so the device table cannot key the quirk either. The costs are not symmetric. Without the quirk, the unit it was written for gets -EBUSY on LE Set Extended Scan Enable (0x2042) while a connection is up. With it, 0x200c times out and btusb resets the device on three reported units, two of them in a re-enumeration loop.
Remove the flag and the table entry. 0bda:a728 matches the generic Realtek entry again and runs without the quirk, as before v7.2.
--- drivers/bluetooth/btusb.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/bluetooth/btusb.c +0 -8
@@ -67,7 +67,6 @@ static struct usb_driver btusb_driver;#define BTUSB_INTEL_NO_WBS_SUPPORT BIT(26)#define BTUSB_ACTIONS_SEMI BIT(27)#define BTUSB_BARROT BIT(28) -#define BTUSB_BROKEN_EXT_SCAN BIT(29)static const struct usb_device_id btusb_table[] = {/*
@@ -633,10 +632,6 @@ static const struct usb_device_id quirks_table[] = { { USB_DEVICE(0x0489, 0xe130), .driver_info = BTUSB_REALTEK | BTUSB_WIDEBAND_SPEECH }, - /* Realtek 8761BU Bluetooth devices */ - { USB_DEVICE(0x0bda, 0xa728), .driver_info = BTUSB_REALTEK | - BTUSB_BROKEN_EXT_SCAN }, - /* Realtek Bluetooth devices */ { USB_VENDOR_AND_INTERFACE_INFO(0x0bda, 0xe0, 0x01, 0x01), .driver_info = BTUSB_REALTEK },
@@ -4349,9 +4344,6 @@ static int btusb_probe(struct usb_interface *intf,if (id->driver_info &BTUSB_INVALID_LE_STATES )hci_set_quirk (hdev,HCI_QUIRK_BROKEN_LE_STATES ); -if (id->driver_info &BTUSB_BROKEN_EXT_SCAN ) -hci_set_quirk (hdev,HCI_QUIRK_BROKEN_EXT_SCAN ); -if (id->driver_info &BTUSB_DIGIANSWER ) { data->cmdreq_type =USB_TYPE_VENDOR ;hci_set_quirk (hdev,HCI_QUIRK_RESET_ON_CLOSE );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 52/2151 ALSA: pcm: Optimize cpu_latency_qos_*() calls
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Takashi Iwai <[email protected]>
[ Upstream commit 9f6f4e97fd53908aecb0979507d9ff10a22288eb ]
We have a few cpu_latency_qos_*() calls in PCM callbacks, but they seem suboptimal in a few aspects:
- We call them at each time when the hw_params changed, but explicitly do remove and (re-)add; this could be cpu_latency_qos_update_request(), instead
- The setup of cpu_latency_qos_*() doesn't have to be in hw_params at all; it's not the place where the actual parameters are set up, but rather better at the prepare callback.
- The hw_free calls cpu_latency_qos_remove_request() unconditionally, which may be poking a WARNING when it wasn't queued.
For addressing the issues above, this patch cleans up and reorganize the cpu_latency_qos_*() calls in the PCM core by a couple helper functions. Now, they are set up at prepare callback, and cleared at hw_free and release callbacks via the new helpers.
Stable-dep-of: 9017bc3d13da ("ALSA: pcm: Prevent O_APPEND open on OSS streams")
--- sound/core/pcm_native.c | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-)
sound/core/pcm_native.c +25 -10
@@ -751,11 +751,32 @@ EXPORT_SYMBOL_GPL(snd_pcm_runtime_buffer_set_silence);#define is_oss_stream (substream) false#endif +static void pcm_qos_req_clear (struct snd_pcm_substream *substream) +{ +if (cpu_latency_qos_request_active (&substream->latency_pm_qos_req)) +cpu_latency_qos_remove_request (&substream->latency_pm_qos_req); +} + +static void pcm_qos_req_update (struct snd_pcm_substream *substream,int usecs) +{ +if (usecs <0 ) { +pcm_qos_req_clear (substream); +return ; + } + +if (cpu_latency_qos_request_active (&substream->latency_pm_qos_req)) +cpu_latency_qos_update_request (&substream->latency_pm_qos_req, + usecs); +else +cpu_latency_qos_add_request (&substream->latency_pm_qos_req, + usecs); +} +static int snd_pcm_hw_params (struct snd_pcm_substream *substream,struct snd_pcm_hw_params *params) {struct snd_pcm_runtime *runtime; -int err, usecs; +int err;unsigned int bits;snd_pcm_uframes_t frames;
@@ -862,12 +883,6 @@ static int snd_pcm_hw_params(struct snd_pcm_substream *substream,snd_pcm_timer_resolution_change (substream);snd_pcm_set_state (substream,SNDRV_PCM_STATE_SETUP ); -if (cpu_latency_qos_request_active (&substream->latency_pm_qos_req)) -cpu_latency_qos_remove_request (&substream->latency_pm_qos_req); - usecs =period_to_usecs (runtime); -if (usecs >=0 ) -cpu_latency_qos_add_request (&substream->latency_pm_qos_req, - usecs); err =0 ; _error:if (err) {
@@ -944,7 +959,7 @@ static int snd_pcm_hw_free(struct snd_pcm_substream *substream) goto unlock; result =do_hw_free (substream);snd_pcm_set_state (substream,SNDRV_PCM_STATE_OPEN ); -cpu_latency_qos_remove_request (&substream->latency_pm_qos_req); +pcm_qos_req_clear (substream); unlock:snd_pcm_buffer_access_unlock (runtime);return result;
@@ -1972,6 +1987,7 @@ static int snd_pcm_do_prepare(struct snd_pcm_substream *substream, err = substream->ops->prepare (substream);if (err <0 )return err; +pcm_qos_req_update (substream,period_to_usecs (substream->runtime));return snd_pcm_do_reset (substream, state); }
@@ -2762,8 +2778,7 @@ void snd_pcm_release_substream(struct snd_pcm_substream *substream) substream->ops->close (substream); substream->hw_opened =0 ; } -if (cpu_latency_qos_request_active (&substream->latency_pm_qos_req)) -cpu_latency_qos_remove_request (&substream->latency_pm_qos_req); +pcm_qos_req_clear (substream);if (substream->pcm_release) { substream->pcm_release (substream); substream->pcm_release =NULL ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 53/2151 ALSA: pcm: Prevent O_APPEND open on OSS streams
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Takashi Iwai <[email protected]>
[ Upstream commit 9017bc3d13da0ea4e63be618c87143a7b69185e6 ]
ALSA PCM core accepts to re-use the existing stream when O_APPEND is passed, and it's been used for dmix, etc. However, this mode isn't supposed to be used for OSS: the OSS stream allows re-configuration via its hw_params/hw_refine procedure even while it's being mmapped, so it implies the usage of only a single stream. Because of this assumption, the sanity check is skipped for OSS streams, and if user may attach to an existing OSS stream with O_APPEND, it may result in a UAF of the mapped pages which could be used as a privilege escalation exploit.
For addressing it, this patch simply prohibits the O_APPEND behavior on the OSS stream. O_APPEND is never used for OSS layer itself, so this can't break for the right applications.
--- sound/core/pcm.c | 2 ++ sound/core/pcm_local.h | 6 ++++++ sound/core/pcm_native.c | 6 ------ 3 files changed, 8 insertions(+), 6 deletions(-)
sound/core/pcm.c +2 -0
@@ -921,6 +921,8 @@ int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream,return -ENODEV ;if (!SUBSTREAM_BUSY (substream))return -EBADFD ; +if (is_oss_stream (substream)) +return -EINVAL ; substream->ref_count++; *rsubstream = substream;return 0 ;
sound/core/pcm_local.h +6 -0
@@ -80,4 +80,10 @@ static inline void snd_pcm_dma_buffer_sync(struct snd_pcm_substream *substream, snd_dma_buffer_sync(snd_pcm_get_dma_buf(substream), mode); } +#if IS_ENABLED (CONFIG_SND_PCM_OSS ) +#define is_oss_stream (substream) ((substream)->oss.oss) +#else +#define is_oss_stream (substream) false +#endif +#endif /* __SOUND_CORE_PCM_LOCAL_H */
sound/core/pcm_native.c +0 -6
@@ -745,12 +745,6 @@ int snd_pcm_runtime_buffer_set_silence(struct snd_pcm_runtime *runtime) }EXPORT_SYMBOL_GPL (snd_pcm_runtime_buffer_set_silence); -#if IS_ENABLED (CONFIG_SND_PCM_OSS ) -#define is_oss_stream (substream) ((substream)->oss.oss) -#else -#define is_oss_stream (substream) false -#endif -static void pcm_qos_req_clear (struct snd_pcm_substream *substream) {if (cpu_latency_qos_request_active (&substream->latency_pm_qos_req))
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 54/2151 tools: linux/types.h: Add 128-bit integer types for arm64 UAPI structures
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Will Deacon <[email protected]>
[ Upstream commit 10a47fb67340bca274276faf855d7d460afd9a7a ]
The arm64 UAPI exposes some 128-bit integer types to represent things such as fpsimd registers in the sigcontext. In preparation for defining these using the '__u128' typedef implemented by uapi/linux/types.h, copy that typedef over to the private linux/types.h header used by the tools directory.
--- tools/include/linux/types.h | 5 +++++ 1 file changed, 5 insertions(+)
tools/include/linux/types.h +5 -0
@@ -23,6 +23,11 @@ typedef enum {__GFP_HIGH } gfp_t; +#ifdef __SIZEOF_INT128__ +typedef __signed__ __int128 __s128 __attribute__((aligned(16))); +typedef unsigned __int128 __u128 __attribute__((aligned (16 ))); +#endif +/* * We define u64 as uint64_t for every architecture * so that we can print it with "%"PRIx64 without getting warnings.
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 55/2151 khugepaged: fix readahead lock inversion in collapse_file()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lance Yang <[email protected]>
[ Upstream commit eadce52a9ef657d561b3e76c9b5f178bd99735f5 ]
collapse_file() can call page_cache_sync_readahead() while still holding source folios locked. If truncate holds mapping->invalidate_lock exclusively and waits for one of those folios, readahead waits for invalidate_lock and neither side can make progress.
We need to release those folio locks before starting readahead. On a page cache miss, roll back first, populate the collapse range, and retry once. Doing readahead after rollback avoids an extra pass when all folios are already present. If another miss occurs on retry, give up rather than keep retrying while truncate or reclaim removes folios.
Keep page_cache_sync_readahead() and wait for read I/O with filemap_lock_folio(), releasing each folio before moving to the next. The existing uptodate check during collapse still handles read errors.
Shmem uses shmem_get_folio() for swapin and fallocated folios without taking mapping->invalidate_lock, so it is unaffected.
--- mm/khugepaged.c | 49 +++++++++++++++++++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 12 deletions(-)
mm/khugepaged.c +37 -12
@@ -1868,6 +1868,8 @@ static int collapse_file(struct mm_struct *mm, unsigned long addr,XA_STATE_ORDER (xas, &mapping->i_pages, start,HPAGE_PMD_ORDER );int nr_none =0 , result =SCAN_SUCCEED ;bool is_shmem =shmem_file (file); +bool do_readahead = false; +bool readahead_done = false;VM_BUG_ON (!IS_ENABLED (CONFIG_READ_ONLY_THP_FOR_FS ) && !is_shmem);VM_BUG_ON (start & (HPAGE_PMD_NR -1 ));
@@ -1879,6 +1881,10 @@ static int collapse_file(struct mm_struct *mm, unsigned long addr,mapping_set_update (&xas, mapping); +retry: + result =SCAN_SUCCEED ; + do_readahead = false; +xas_set_order (&xas, start,HPAGE_PMD_ORDER );__folio_set_locked (new_folio);if (is_shmem)__folio_set_swapbacked (new_folio);
@@ -1943,17 +1949,9 @@ static int collapse_file(struct mm_struct *mm, unsigned long addr, } }else {/* !is_shmem */ if (!folio ||xa_is_value (folio)) { -xas_unlock_irq (&xas); -page_cache_sync_readahead (mapping, &file->f_ra, - file, index, - end - index); -/* drain lru cache to help folio_isolate_lru() */ -lru_add_drain (); - folio =filemap_lock_folio (mapping, index); -if (IS_ERR (folio)) { - result =SCAN_FAIL ; - goto xa_unlocked; - } + do_readahead = !readahead_done; + result =SCAN_FAIL ; + goto xa_locked; }else if (folio_test_dirty (folio)) {/* * khugepaged only works on read-only fd,
@@ -2095,7 +2093,10 @@ static int collapse_file(struct mm_struct *mm, unsigned long addr,* in do_dentry_open() truncating the page cache. This is * particularly important if there are dirty folios in transit. */ -filemap_invalidate_lock_shared (mapping); +if (!filemap_invalidate_trylock_shared (mapping)) { + result =SCAN_FAIL ; + goto rollback; + }filemap_nr_thps_inc (mapping);/* * Paired with the fence in do_dentry_open() -> get_write_access()
@@ -2296,6 +2297,30 @@ static int collapse_file(struct mm_struct *mm, unsigned long addr, new_folio->mapping =NULL ;folio_unlock (new_folio); + +/* Readahead may take invalidate_lock; source folios are unlocked. */ +if (do_readahead) { +for (index = start; index < end;) { + folio =filemap_lock_folio (mapping, index); +if (IS_ERR (folio)) { +page_cache_sync_readahead (mapping, &file->f_ra, + file, index, end - index); + folio =filemap_lock_folio (mapping, index); +if (IS_ERR (folio)) { + result =SCAN_FAIL ; + goto out_put; + } + } + index =folio_next_index (folio); +folio_unlock (folio); +folio_put (folio); + } +/* Drain the local LRU batch before retrying isolation. */ +lru_add_drain (); + readahead_done = true; + goto retry; + } +out_put:folio_put (new_folio); out:VM_BUG_ON (!list_empty (&pagelist));
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 56/2151 net: Use a dedicated flag to track disabled napi instances
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Maxime Chevallier <[email protected]>
commit 8dc87fc5d6a0eb337744737008177342a708bf36 upstream.
Trying to disable the napi threaded state while the napi instance is disabled will hang forever in napi_stop_kthread(), as it waits for NAPIF_STATE_SCHED_THREADED to clear.
This won't happen until the next ____napi_schedule() call, which won't happen as it's disabled.
This happens in 2 instances :
- Drivers that create but don't use napi instances (stmmac's rxtx napi for AF_XDP for example), here it's a driver bug
- Drivers that create their napi instances in .probe(). Here, setting threaded off while the interface is down will hang :
ip link set eth0 down
echo 1 > /sys/class/net/eth0/threaded
echo 0 > /sys/class/net/eth0/threaded
-> hang
Checking on netif_running() isn't enough, as napi instances may be transiently disabled when changing the MTU for example, let's use a dedicated flag to track if the instance is disabled.
This allows immediately disabling the kthread when the instance is disabled.
This was tested on mvpp2 (probe-time napi_add) and stmmac.
[ Backport: omit threaded busy-poll state handling, which is not present
in 6.18.y. ]
--- include/linux/netdevice.h | 2 ++ net/core/dev.c | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-)
include/linux/netdevice.h +2 -0
@@ -431,6 +431,7 @@ enum {NAPI_STATE_THREADED ,/* The poll is performed inside its own thread*/ NAPI_STATE_SCHED_THREADED ,/* Napi is currently scheduled in threaded mode */ NAPI_STATE_HAS_NOTIFIER ,/* Napi has an IRQ notifier */ + NAPI_STATE_DISABLED, /* NAPI is disabled */ }; enum {
@@ -445,6 +446,7 @@ enum {NAPIF_STATE_THREADED =BIT (NAPI_STATE_THREADED ),NAPIF_STATE_SCHED_THREADED =BIT (NAPI_STATE_SCHED_THREADED ),NAPIF_STATE_HAS_NOTIFIER =BIT (NAPI_STATE_HAS_NOTIFIER ), + NAPIF_STATE_DISABLED = BIT(NAPI_STATE_DISABLED), }; enum gro_result {
net/core/dev.c +12 -2
@@ -7127,6 +7127,12 @@ static void napi_stop_kthread(struct napi_struct *napi) {unsigned long val, new; +/* Instance is disabled, we can immediately stop the kthread */ +if (test_bit (NAPI_STATE_DISABLED , &napi->state)) { +clear_bit (NAPI_STATE_THREADED , &napi->state); + goto stop; + } +/* Wait until the napi STATE_THREADED is unset. */ while (true) { val =READ_ONCE (napi->state);
@@ -7156,6 +7162,7 @@ static void napi_stop_kthread(struct napi_struct *napi)msleep (20 ); } +stop:kthread_stop (napi->thread); napi->thread =NULL ; }
@@ -7541,6 +7548,7 @@ void netif_napi_add_weight_locked(struct net_device *dev, napi->list_owner =-1 ;set_bit (NAPI_STATE_SCHED , &napi->state);set_bit (NAPI_STATE_NPSVC , &napi->state); +set_bit (NAPI_STATE_DISABLED , &napi->state);netif_napi_dev_list_add (dev, napi);/* default settings from sysfs are applied to all NAPIs. any per-NAPI
@@ -7577,7 +7585,8 @@ void napi_disable_locked(struct napi_struct *n) val =READ_ONCE (n->state); } - new = val |NAPIF_STATE_SCHED |NAPIF_STATE_NPSVC ; + new = val |NAPIF_STATE_SCHED |NAPIF_STATE_NPSVC | +NAPIF_STATE_DISABLED ; new &= ~(NAPIF_STATE_THREADED |NAPIF_STATE_PREFER_BUSY_POLL ); }while (!try_cmpxchg (&n->state, &val, new));
@@ -7620,7 +7629,8 @@ void napi_enable_locked(struct napi_struct *n)do {BUG_ON (!test_bit (NAPI_STATE_SCHED , &val)); - new = val & ~(NAPIF_STATE_SCHED |NAPIF_STATE_NPSVC ); + new = val & ~(NAPIF_STATE_SCHED |NAPIF_STATE_NPSVC | +NAPIF_STATE_DISABLED );if (n->dev->threaded && n->thread) new |=NAPIF_STATE_THREADED ; }while (!try_cmpxchg (&n->state, &val, new));
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 57/2151 hwmon: (sht15) Remove redundant dev_err()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pan Chuang <[email protected]>
[ Upstream commit b8ffbb950dffbcf810ba41e776516cf3438bbe25 ]
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()"), devm_request_irq() automatically logs detailed error messages on failure. Remove the now-redundant driver-specific dev_err() call.
Stable-dep-of: 5eab1e7f7ed1 ("hwmon: (sht15) Stop deferred work before releasing its resources")
--- drivers/hwmon/sht15.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/hwmon/sht15.c +1 -3
@@ -981,10 +981,8 @@ static int sht15_probe(struct platform_device *pdev)IRQF_TRIGGER_FALLING ,"sht15 data" , data); -if (ret) { -dev_err (&pdev->dev,"failed to get irq for data line\n" ); +if (ret) goto err_release_reg; - }disable_irq_nosync (gpiod_to_irq (data->data)); ret =sht15_connection_reset (data);if (ret)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 58/2151 hwmon: (sht15) Stop deferred work before releasing its resources
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Myeonghun Pak <[email protected]>
[ Upstream commit 5eab1e7f7ed12893f3864fe46ffcd5a41a752d6a ]
The IRQ handler and regulator notifier can leave work pending after a measurement or notification completes. Neither work item is drained before its resources are released on removal or probe failure.
Disable read_work before freeing the IRQ, since the worker can re-enable it. Use request_irq()/free_irq() for explicit teardown. Unregister the regulator notifier before cancelling update_supply_work and disabling the regulator. Apply the same ordering to probe failures.
--- drivers/hwmon/sht15.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)
drivers/hwmon/sht15.c +14 -8
@@ -31,6 +31,7 @@#include <linux/bitrev.h> #include <linux/gpio/consumer.h> #include <linux/of.h> +#include <linux/workqueue.h> /* Commands */ #define SHT15_MEASURE_TEMP 0x03
@@ -976,25 +977,22 @@ static int sht15_probe(struct platform_device *pdev) goto err_release_reg; } - ret =devm_request_irq (&pdev->dev,gpiod_to_irq (data->data), - sht15_interrupt_fired, -IRQF_TRIGGER_FALLING , -"sht15 data" , - data); + ret =request_irq (gpiod_to_irq (data->data), sht15_interrupt_fired, +IRQF_TRIGGER_FALLING ,"sht15 data" , data);if (ret) goto err_release_reg;disable_irq_nosync (gpiod_to_irq (data->data)); ret =sht15_connection_reset (data);if (ret) - goto err_release_reg; + goto err_free_irq; ret =sht15_soft_reset (data);if (ret) - goto err_release_reg; + goto err_free_irq; ret =sysfs_create_group (&pdev->dev.kobj, &sht15_attr_group);if (ret) {dev_err (&pdev->dev,"sysfs create failed\n" ); - goto err_release_reg; + goto err_free_irq; } data->hwmon_dev =hwmon_device_register (data->dev);
@@ -1007,9 +1005,13 @@ static int sht15_probe(struct platform_device *pdev) err_release_sysfs_group:sysfs_remove_group (&pdev->dev.kobj, &sht15_attr_group); +err_free_irq: +disable_work_sync (&data->read_work); +free_irq (gpiod_to_irq (data->data), data); err_release_reg:if (!IS_ERR (data->reg)) {regulator_unregister_notifier (data->reg, &data->nb); +cancel_work_sync (&data->update_supply_work);regulator_disable (data->reg); }return ret;
@@ -1023,12 +1025,16 @@ static void sht15_remove(struct platform_device *pdev)hwmon_device_unregister (data->hwmon_dev);sysfs_remove_group (&pdev->dev.kobj, &sht15_attr_group); +disable_work_sync (&data->read_work); +free_irq (gpiod_to_irq (data->data), data); + ret =sht15_soft_reset (data);if (ret)dev_err (&pdev->dev,"Failed to reset device (%pe)\n" ,ERR_PTR (ret));if (!IS_ERR (data->reg)) {regulator_unregister_notifier (data->reg, &data->nb); +cancel_work_sync (&data->update_supply_work);regulator_disable (data->reg); } }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 59/2151 mm: page_alloc: do not give all non-blocking requests reserve access
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Johannes Weiner <[email protected]>
[ Upstream commit 6ee3d87b940848aaed5d4e8d005c5f674bf2637a ]
Patch series "mm: page_alloc: fix reserve access for non-blocking requests", v2.
Two fixes for how non-blocking allocations interact with the highatomic reserve. There are prerequisites for Salvatore's "mm/page_alloc: avoid direct reclaim and compaction for costly __GFP_NORETRY allocations" [0].
Patch 1 narrows which requests may physically take highatomic pages, patch 2 narrows which requests may count them in their watermark check.
Both are prerequisites for Salvatore's patch: it clears __GFP_DIRECT_RECLAIM for costly __GFP_NORETRY requests, which turns every large page cache folio allocation that reaches the slowpath into a non-blocking one. Without patch 1, those requests may fall back to the highatomic freelists reserved for atomic requests. Without patch 2, they count the free highatomic pages in their watermark check while being served from regular memory, so they can consume regular high-order blocks below the min watermark by the size of the reserve. GFP_NOWAIT requests hit both paths today, so these are existing problems worthy of their own stable backports; but Salvatore's patch would widen them significantly.
Patch 2 reproduction: a GFP_NOWAIT burst under memory pressure can drain regular free memory to zero while the highatomic reserve sits idle. Measured on a 32G box with an anonymous working set, swap, and a full 290M reserve, three synthetic bursts drove the 28G Normal zone's regular free memory to 28M, 0.8M and 0.6M against a 60M min watermark. Swapout failed its swap table allocation inside reclaim, reclaim scanned 13M pages to free 200k, and page faults stalled for tens to hundreds of milliseconds. With the fix the burst stops at the min watermark and nothing else happens. This was found in review and reproduced synthetically; it has not been observed in production.
GFP_ATOMIC order-0 requests have a milder version of the same problem:
They are entitled to the reserve but are served regular memory first, so the fix there has to change the watermark check and the freelist order together. Salvatore's change doesn't interact with this, though; fixing that is left for a separate patch.
This patch (of 2):
281dd25c1a01 ("mm/page_alloc: let GFP_ATOMIC order-0 allocs access highatomic reserves") accidentally gave all non-blocking allocation requests access to highatomic reserves, which includes GFP_NOWAIT and other sites clearing __GFP_DIRECT_RECLAIM.
While this improved atomic request success rate, it's unintentionally broad and can actually worsen highatomic requests by squandering the reserves on requests that don't need it.
There are concurrent efforts to clear __GFP_DIRECT_RECLAIM altogether for costly order __GFP_NORETRY requests, which would then also fall into this exemption and deplete reserves even faster.
What GFP_ATOMIC has over the others is __GFP_HIGH, which alloc_flags_slowpath() translates to ALLOC_MIN_RESERVE.
Narrow the exemption to contexts that have both ALLOC_NON_BLOCK | ALLOC_MIN_RESERVE.
--- mm/internal.h | 3 +++ mm/page_alloc.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-)
mm/internal.h +3 -0
@@ -1315,6 +1315,9 @@ unsigned int reclaim_clean_pages_from_list(struct zone *zone,/* Flags that allow allocations below the min watermark. */ #define ALLOC_RESERVES (ALLOC_NON_BLOCK|ALLOC_MIN_RESERVE|ALLOC_HIGHATOMIC|ALLOC_OOM) +/* Flags that mean GFP_ATOMIC */ +#define ALLOC_MASK_ATOMIC (ALLOC_NON_BLOCK|ALLOC_MIN_RESERVE) +enum ttu_flags ;struct tlbflush_unmap_batch ;
mm/page_alloc.c +3 -1
@@ -3241,7 +3241,9 @@ struct page *rmqueue_buddy(struct zone *preferred_zone, struct zone *zone,* reserves as failing now is worse than failing a * high-order atomic allocation in the future. */ -if (!page && (alloc_flags & (ALLOC_OOM |ALLOC_NON_BLOCK ))) +if (!page && + ((alloc_flags &ALLOC_OOM ) || + (alloc_flags &ALLOC_MASK_ATOMIC ) ==ALLOC_MASK_ATOMIC )) page =__rmqueue_smallest (zone, order,MIGRATE_HIGHATOMIC );if (!page) {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 60/2151 mm/page_alloc: let the highest memory node recover from hopeless state
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gregory Price (Meta) <[email protected]>
[ Upstream commit 83367658a01087375ede31ae343c99da03f72ac8 ]
free_frozen_page_commit() clears a hopeless node's kswapd failures once its zone recovers above the high watermark, but only if another memory node exists for allocations to fall back to.
The test next_memory_node(nid) < MAX_NUMNODES finds only memory nodes with a higher id. The highest-numbered memory node therefore never recovers on this path, and its kswapd stays disabled until reclaim on that node makes progress and balances it, or demotion is re-enabled.
In many cases, direct reclaim many never fully run against a lower node (CXL/kmem), and that means its kswapd can end up full disabled in rare situations.
To reproduce, fill the highest memory node with bound, non-THP anonymous memory and no swap until kswapd gives up, then free it: /proc/zoneinfo keeps showing node_unreclaimable 1 for that node. A lower node recovers.
Count the memory nodes instead. Adding first_memory_node != nid to the existing test would also work, but a count says directly what the check
means: some other memory node exists.
--- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c +1 -1
@@ -2938,7 +2938,7 @@ static void free_frozen_page_commit(struct zone *zone,* kswapd work again by resetting kswapd_failures. */ if (atomic_read (&pgdat->kswapd_failures) >=MAX_RECLAIM_RETRIES && -next_memory_node (pgdat->node_id) <MAX_NUMNODES ) +num_node_state (N_MEMORY ) >1 )atomic_set (&pgdat->kswapd_failures,0 ); } }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 61/2151 drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Leo Liu <[email protected]>
[ Upstream commit a56c2536c399d57a9bb1c02fd411e0c25859af3b ]
When hw_init() fails, amdgpu_device_ip_fini_early() skips hw_fini() because status.hw was never set. For VCN, UVD (including UVD ENC), VCE, and JPEG, hw_fini() is where cancel_delayed_work_sync() is called. Any idle work queued during the partial hw_init() is therefore left pending after sw_fini() frees the adev state the handler touches.
Cancel the idle work in each hw_init() error path, immediately before returning the error, so that hw_fini() remains the sole cancel site on the normal teardown path with no duplication.
--- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c | 4 +++- drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 4 +++- drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 4 +++- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 4 +++- drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 4 +++- drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 11 +++++++++-- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 8 ++++++-- drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 12 ++++++++++-- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 12 ++++++++++-- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 10 +++++++++- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 10 +++++++++- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c | 10 +++++++++- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c | 10 +++++++++- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c | 10 +++++++++- 25 files changed, 150 insertions(+), 29 deletions(-)
drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c +5 -1
@@ -159,11 +159,15 @@ static int jpeg_v2_0_hw_init(struct amdgpu_ip_block *ip_block) {struct amdgpu_device *adev = ip_block->adev;struct amdgpu_ring *ring = adev->jpeg.inst->ring_dec; +int r; adev->nbio.funcs->vcn_doorbell_range (adev, ring->use_doorbell, (adev->doorbell_index.vcn.vcn_ring0_1 <<1 ),0 ); -return amdgpu_ring_test_helper (ring); + r =amdgpu_ring_test_helper (ring); +if (r) +cancel_delayed_work_sync (&adev->jpeg.idle_work); +return r; }/**
drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c +5 -1
@@ -221,10 +221,14 @@ static int jpeg_v2_5_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; }return 0 ; + +error: +cancel_delayed_work_sync (&adev->jpeg.idle_work); +return r; }/**
drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c +5 -1
@@ -174,11 +174,15 @@ static int jpeg_v3_0_hw_init(struct amdgpu_ip_block *ip_block) {struct amdgpu_device *adev = ip_block->adev;struct amdgpu_ring *ring = adev->jpeg.inst->ring_dec; +int r; adev->nbio.funcs->vcn_doorbell_range (adev, ring->use_doorbell, (adev->doorbell_index.vcn.vcn_ring0_1 <<1 ),0 ); -return amdgpu_ring_test_helper (ring); + r =amdgpu_ring_test_helper (ring); +if (r) +cancel_delayed_work_sync (&adev->jpeg.idle_work); +return r; }/**
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c +5 -1
@@ -204,10 +204,14 @@ static int jpeg_v4_0_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; }return 0 ; + +error: +cancel_delayed_work_sync (&adev->jpeg.idle_work); +return r; }/**
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c +5 -1
@@ -417,12 +417,16 @@ static int jpeg_v4_0_3_hw_init(struct amdgpu_ip_block *ip_block) VCN_JPEG_DB_CTRL__EN_MASK); r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; } } }return 0 ; + +error: +cancel_delayed_work_sync (&adev->jpeg.idle_work); +return r; }/**
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c +5 -1
@@ -231,10 +231,14 @@ static int jpeg_v4_0_5_hw_init(struct amdgpu_ip_block *ip_block) ring = adev->jpeg.inst[i].ring_dec; r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; }return 0 ; + +error: +cancel_delayed_work_sync (&adev->jpeg.idle_work); +return r; }/**
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c +5 -1
@@ -172,9 +172,13 @@ static int jpeg_v5_0_0_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error;return 0 ; + +error: +cancel_delayed_work_sync (&adev->jpeg.idle_work); +return r; }/**
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c +5 -1
@@ -289,11 +289,15 @@ static int jpeg_v5_0_1_hw_init(struct amdgpu_ip_block *ip_block) VCN_JPEG_DB_CTRL__EN_MASK); r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; } }return 0 ; + +error: +cancel_delayed_work_sync (&adev->jpeg.idle_work); +return r; }/**
drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c +3 -1
@@ -710,7 +710,9 @@ static int uvd_v3_1_hw_init(struct amdgpu_ip_block *ip_block)amdgpu_ring_commit (ring); done: -if (!r) +if (r) +cancel_delayed_work_sync (&adev->uvd.idle_work); +else DRM_INFO ("UVD initialized successfully.\n" );return r;
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c +3 -1
@@ -198,7 +198,9 @@ static int uvd_v4_2_hw_init(struct amdgpu_ip_block *ip_block)amdgpu_ring_commit (ring); done: -if (!r) +if (r) +cancel_delayed_work_sync (&adev->uvd.idle_work); +else DRM_INFO ("UVD initialized successfully.\n" );return r;
drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c +3 -1
@@ -190,7 +190,9 @@ static int uvd_v5_0_hw_init(struct amdgpu_ip_block *ip_block)amdgpu_ring_commit (ring); done: -if (!r) +if (r) +cancel_delayed_work_sync (&adev->uvd.idle_work); +else DRM_INFO ("UVD initialized successfully.\n" );return r;
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +3 -1
@@ -513,7 +513,9 @@ static int uvd_v6_0_hw_init(struct amdgpu_ip_block *ip_block) } done: -if (!r) { +if (r) { +cancel_delayed_work_sync (&adev->uvd.idle_work); + }else {if (uvd_v6_0_enc_support (adev))DRM_INFO ("UVD and UVD ENC initialized successfully.\n" );else
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c +3 -1
@@ -581,7 +581,9 @@ static int uvd_v7_0_hw_init(struct amdgpu_ip_block *ip_block) } } done: -if (!r) +if (r) +cancel_delayed_work_sync (&adev->uvd.idle_work); +else DRM_INFO ("UVD and UVD ENC initialized successfully.\n" );return r;
drivers/gpu/drm/amd/amdgpu/vce_v2_0.c +5 -1
@@ -473,12 +473,16 @@ static int vce_v2_0_hw_init(struct amdgpu_ip_block *ip_block)for (i =0 ; i < adev->vce.num_rings; i++) { r =amdgpu_ring_test_helper (&adev->vce.ring[i]);if (r) -return r; + goto error; }DRM_INFO ("VCE initialized successfully.\n" );return 0 ; + +error: +cancel_delayed_work_sync (&adev->vce.idle_work); +return r; }static int vce_v2_0_hw_fini (struct amdgpu_ip_block *ip_block)
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +5 -1
@@ -477,12 +477,16 @@ static int vce_v3_0_hw_init(struct amdgpu_ip_block *ip_block)for (i =0 ; i < adev->vce.num_rings; i++) { r =amdgpu_ring_test_helper (&adev->vce.ring[i]);if (r) -return r; + goto error; }DRM_INFO ("VCE initialized successfully.\n" );return 0 ; + +error: +cancel_delayed_work_sync (&adev->vce.idle_work); +return r; }static int vce_v3_0_hw_fini (struct amdgpu_ip_block *ip_block)
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c +5 -1
@@ -528,12 +528,16 @@ static int vce_v4_0_hw_init(struct amdgpu_ip_block *ip_block)for (i =0 ; i < adev->vce.num_rings; i++) { r =amdgpu_ring_test_helper (&adev->vce.ring[i]);if (r) -return r; + goto error; }DRM_INFO ("VCE initialized successfully.\n" );return 0 ; + +error: +cancel_delayed_work_sync (&adev->vce.idle_work); +return r; }static int vce_v4_0_hw_fini (struct amdgpu_ip_block *ip_block)
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +9 -2
@@ -252,18 +252,25 @@ static int vcn_v1_0_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error_vcn;for (i =0 ; i < adev->vcn.inst[0 ].num_enc_rings; ++i) { ring = &adev->vcn.inst->ring_enc[i]; r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error_vcn; } ring = adev->jpeg.inst->ring_dec; r =amdgpu_ring_test_helper (ring); +if (r) + goto error_both; +return 0 ; +error_both: +cancel_delayed_work_sync (&adev->jpeg.idle_work); +error_vcn: +cancel_delayed_work_sync (&adev->vcn.inst[0 ].idle_work);return r; }
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c +6 -2
@@ -293,7 +293,7 @@ static int vcn_v2_0_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error;//Disable vcn decode for sriov if (amdgpu_sriov_vf (adev))
@@ -303,10 +303,14 @@ static int vcn_v2_0_hw_init(struct amdgpu_ip_block *ip_block) ring = &adev->vcn.inst->ring_enc[i]; r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; }return 0 ; + +error: +cancel_delayed_work_sync (&adev->vcn.inst->idle_work); +return r; }/**
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c +10 -2
@@ -482,18 +482,26 @@ static int vcn_v2_5_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error;for (i =0 ; i < adev->vcn.inst[j].num_enc_rings; ++i) { ring = &adev->vcn.inst[j].ring_enc[i]; r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; } } }return r; + +error: +for (i =0 ; i <= j; i++) { +if (adev->vcn.harvest_config & (1 << i)) +continue ; +cancel_delayed_work_sync (&adev->vcn.inst[i].idle_work); + } +return r; }/**
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c +10 -2
@@ -416,18 +416,26 @@ static int vcn_v3_0_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error;for (j =0 ; j < adev->vcn.inst[i].num_enc_rings; ++j) { ring = &adev->vcn.inst[i].ring_enc[j]; r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; } } }return 0 ; + +error: +while (i >=0 ) { +if (!(adev->vcn.harvest_config & (1 << i))) +cancel_delayed_work_sync (&adev->vcn.inst[i].idle_work); + i--; + } +return r; }/**
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c +9 -1
@@ -348,11 +348,19 @@ static int vcn_v4_0_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; } }return 0 ; + +error: +while (i >=0 ) { +if (!(adev->vcn.harvest_config & (1 << i))) +cancel_delayed_work_sync (&adev->vcn.inst[i].idle_work); + i--; + } +return r; }/**
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c +9 -1
@@ -360,11 +360,19 @@ static int vcn_v4_0_3_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; } }return r; + +error: +while (i >=0 ) { +if (!(adev->vcn.harvest_config & (1 << i))) +cancel_delayed_work_sync (&adev->vcn.inst[i].idle_work); + i--; + } +return r; }/**
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c +9 -1
@@ -302,10 +302,18 @@ static int vcn_v4_0_5_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; }return 0 ; + +error: +while (i >=0 ) { +if (!(adev->vcn.harvest_config & (1 << i))) +cancel_delayed_work_sync (&adev->vcn.inst[i].idle_work); + i--; + } +return r; }/**
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c +9 -1
@@ -266,10 +266,18 @@ static int vcn_v5_0_0_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; }return 0 ; + +error: +while (i >=0 ) { +if (!(adev->vcn.harvest_config & (1 << i))) +cancel_delayed_work_sync (&adev->vcn.inst[i].idle_work); + i--; + } +return r; }/**
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c +9 -1
@@ -324,11 +324,19 @@ static int vcn_v5_0_1_hw_init(struct amdgpu_ip_block *ip_block) r =amdgpu_ring_test_helper (ring);if (r) -return r; + goto error; } }return 0 ; + +error: +while (i >=0 ) { +if (!(adev->vcn.harvest_config & (1 << i))) +cancel_delayed_work_sync (&adev->vcn.inst[i].idle_work); + i--; + } +return r; }/**
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 62/2151 drm/amd/display: set allow_freesync before validating a new stream
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mikhail Gavrilov <[email protected]>
[ Upstream commit ab18dd3061eb2d92e60c8bbf9a435c25962e449f ]
After resume from S3, DC enables SubVP on a single FreeSync display at a high refresh rate, although dcn32_allow_subvp_high_refresh_rate() is meant to keep SubVP off that configuration ("For single display cases, freesync must be disabled"). On an RX 7900 XTX driving a FreeSync TV at 3840x2160@120, amdgpu_dm_capabilities reports sub-viewport disabled after boot and enabled after "rtcwake -m mem", and the memory clock starts switching. It stays that way until a later commit re-validates the state; a CRTC gamma change (toggling Night Light) turns SubVP off again.
The policy reads dc_stream_state::allow_freesync while the new state is validated, but amdgpu_dm sets that field only in amdgpu_dm_update_freesync_state_on_stream(), on the first flip after the commit. A stream created by a modeset is therefore validated as if FreeSync were off. On resume, dm_destroy_cached_state() drops the streams and forces a modeset, so the resumed state is validated without FreeSync.
Set allow_freesync in amdgpu_dm_get_freesync_config_for_crtc(), which atomic check calls for every active CRTC and which already writes ignore_msa_timing_param to the stream. It uses vrr_supported, the condition the flip-time value is derived from. With this change the same TV keeps SubVP disabled across "rtcwake -m mem".
On this machine SubVP is also what exposes the single-frame scanout corruption reported in the thread linked below, so the FreeSync setting stopped working as a workaround after every suspend.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +8 -0
@@ -11350,6 +11350,14 @@ static void get_freesync_config_for_crtc( vrefresh >= aconnector->min_vfreq && vrefresh <= aconnector->max_vfreq; +/* +* DC reads allow_freesync while validating the new state, for example +* to keep SubVP off a single FreeSync display, but it is otherwise set +* only on the first flip after the commit. Set it here, so that a +* stream created by this commit is not validated without it. +*/ + new_crtc_state->stream->allow_freesync = new_crtc_state->vrr_supported; +if (new_crtc_state->vrr_supported) { new_crtc_state->stream->ignore_msa_timing_param = true; fs_vid_mode = new_crtc_state->freesync_config.state ==VRR_STATE_ACTIVE_FIXED ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 63/2151 hugetlbfs: enforce F_SEAL_EXEC in setattr
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eva Kurchatova <[email protected]>
[ Upstream commit b7f570e7cea761ec7eb4a3a9557a3a082d14e88c ]
F_SEAL_EXEC is enforced by shmem_setattr(), but hugetlbfs_setattr() does not check it. As a result, fchmod() can change the execute bits of a sealed hugetlbfs memfd.
Use memfd_check_seals_mode() in hugetlbfs_setattr() to reject changes to execute bits when F_SEAL_EXEC is set.
This also fixes the memfd_test hugetlbfs SEAL-EXEC subtest, where fchmod() incorrectly succeeded after applying F_SEAL_EXEC.
--- fs/hugetlbfs/inode.c | 6 ++++++ 1 file changed, 6 insertions(+)
fs/hugetlbfs/inode.c +6 -0
@@ -854,6 +854,12 @@ static int hugetlbfs_setattr(struct mnt_idmap *idmap,if (error)return error; +if (S_ISREG (inode->i_mode) && (ia_valid &ATTR_MODE )) { +if ((info->seals &F_SEAL_EXEC ) && + ((inode->i_mode ^ attr->ia_mode) &0111 )) +return -EPERM ; + } +trace_hugetlbfs_setattr (inode, dentry, attr);if (ia_valid &ATTR_SIZE ) {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 64/2151 ALSA: usb-audio: qcom: Free QMI handle
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Xu Rao <[email protected]>
[ Upstream commit b8ff1f3578f83dedf5feb796d97a3f67c1bea58f ]
qc_usb_audio_probe() allocates svc->uaudio_svc_hdl separately from the uaudio_qmi_svc object.
qmi_handle_release() releases the resources owned by an initialized QMI handle, but does not free the memory containing the struct qmi_handle itself. The probe error path and the remove path currently release the handle and then free svc, losing the last pointer to the separately allocated handle.
This leaks one struct qmi_handle on each affected probe unwind and on each successful probe/remove cycle.
Free the handle after qmi_handle_release() in both paths.
Stable-dep-of: a3cf5ebab5f1 ("ALSA: usb-audio: qcom: Check the return value of qmi_handle_init()")
--- sound/usb/qcom/qc_audio_offload.c | 2 ++ 1 file changed, 2 insertions(+)
sound/usb/qcom/qc_audio_offload.c +2 -0
@@ -1994,6 +1994,7 @@ static int qc_usb_audio_probe(struct auxiliary_device *auxdev, release_qmi:qc_usb_audio_cleanup_qmi_dev ();qmi_handle_release (svc->uaudio_svc_hdl); +kfree (svc->uaudio_svc_hdl); free_svc:kfree (svc);
@@ -2018,6 +2019,7 @@ static void qc_usb_audio_remove(struct auxiliary_device *auxdev)qc_usb_audio_cleanup_qmi_dev ();qmi_handle_release (svc->uaudio_svc_hdl); +kfree (svc->uaudio_svc_hdl);kfree (svc); uaudio_svc =NULL ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 65/2151 ALSA: usb-audio: qcom: Check the return value of qmi_handle_init()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yuqiang Sun <[email protected]>
[ Upstream commit a3cf5ebab5f1db9e6f751e2a08df05a84f37ea57 ]
qc_usb_audio_probe() overwrites the return value of qmi_handle_init() with that of qmi_add_server() without checking it. When qmi_handle_init() fails, it has already freed the receive buffer and destroyed the workqueue, and qmi->sock may hold an error pointer. If QRTR is not available, qmi_handle_init() returns -EPROBE_DEFER and qmi->sock is ERR_PTR(-EAFNOSUPPORT), so qmi_add_server() passes it to kernel_sendmsg():
BUG: unable to handle page fault for address: ffffffffffffffb7 RIP: 0010:selinux_socket_sendmsg+0xa0/0x590 Call Trace: security_socket_sendmsg+0x29/0x50 __sock_sendmsg+0x43/0x150 kernel_sendmsg+0xd6/0x180 qmi_send_new_server+0x1b8/0x2b0 qmi_add_server+0x165/0x200 qc_usb_audio_probe+0xf4/0x2e0 really_probe+0x2b4/0x850
Had the probe gone on, the error and remove paths would call qmi_handle_release() on the half-initialized handle, which destroys the workqueue and frees the receive buffer a second time.
Return the error from qmi_handle_init(), so that -EPROBE_DEFER defers the probe, and check qmi_add_server() as well.
The bug was found with kbound, a static analysis prototype for ownership mismatches at kernel interfaces, on v7.2.12; it is present in mainline.
Build-tested with x86_64 and arm64 allmodconfig (W=1, sparse): no new warnings. Run-tested on QEMU (x86_64, KVM) with KASAN and kmemleak, with the driver built in and a test module that registers the q6usb.qc-usb-audio-offload auxiliary device. Without QRTR, the probe crashes as above without this patch; with it the device is deferred and removing it again reports nothing. With QRTR the probe succeeds, and removal reports nothing either.
--- sound/usb/qcom/qc_audio_offload.c | 7 +++++++ 1 file changed, 7 insertions(+)
sound/usb/qcom/qc_audio_offload.c +7 -0
@@ -1975,8 +1975,13 @@ static int qc_usb_audio_probe(struct auxiliary_device *auxdev,QMI_UAUDIO_STREAM_REQ_MSG_V01_MAX_MSG_LEN , &uaudio_svc_ops_options, &uaudio_stream_req_handlers); +if (ret) + goto free_qmi_hdl; + ret =qmi_add_server (svc->uaudio_svc_hdl,UAUDIO_STREAM_SERVICE_ID_V01 ,UAUDIO_STREAM_SERVICE_VERS_V01 ,0 ); +if (ret) + goto release_qmi_hdl; uaudio_svc = svc;
@@ -1993,7 +1998,9 @@ static int qc_usb_audio_probe(struct auxiliary_device *auxdev, release_qmi:qc_usb_audio_cleanup_qmi_dev (); +release_qmi_hdl:qmi_handle_release (svc->uaudio_svc_hdl); +free_qmi_hdl:kfree (svc->uaudio_svc_hdl); free_svc:kfree (svc);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 66/2151 drm/amd/display: Signal PQ EOTF in FreeSync infopacket for DP HDR
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Melissa Wen <[email protected]>
[ Upstream commit 81f923b065801c7d30042bcda31ccb9449b4f58b ]
Commit c2791297013e ("drm/amd/display: Add color bit info to freesync infoframe") created the app_tf interface for FreeSync HDR and commit c21a764a98cb ("drm/amd/display: Send PQ bit in AMD VSIF") used it to set PB9 bit 5 (PQ EOTF) in v2/v3 AMD Freesync infopacket. However, Linux never made use of this interface: DM ignores what userspace sets regarding HDR and always passes TRANSFER_FUNC_UNKNOWN as app_tf, so the PQ bit is never set in the infopacket received by the eDP panel.
Check the EOTF in the HDR static metadata and set the PQ bit in Freesync infopacket for DP accordingly. This fixes gray-washed HDR on KDE/GNOME on Framework 13 Pro AI 9 HX 370 (DCN 3.5) and may fix similar issues on other VRR-capable panels that advertise Replay in its AMD VSDB.
It doesn't affect color/EOTF bits on infopackets for SDR and native HDMI.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +11 -1
@@ -9440,6 +9440,8 @@ static void remove_stream(struct amdgpu_device *adev, acrtc->enabled = false; } +#define DP_HDR_SDP_EOTF_IDX 2 + static void update_freesync_state_on_stream( struct amdgpu_display_manager *dm, struct dm_crtc_state *new_crtc_state,
@@ -9455,6 +9457,8 @@ static void update_freesync_state_on_stream(bool pack_sdp_v1_3 = false;struct amdgpu_dm_connector *aconn;enum vrr_packet_type packet_type =PACKET_TYPE_VRR ; +enum color_transfer_func app_tf; +const struct dc_info_packet *hdr;if (!new_stream)return ;
@@ -9506,12 +9510,18 @@ static void update_freesync_state_on_stream( &new_stream->adaptive_sync_infopacket); } + hdr = &new_stream->hdr_static_metadata; + app_tf =dc_is_dp_signal (new_stream->signal) && hdr->valid && + hdr->sb[DP_HDR_SDP_EOTF_IDX ] ==HDMI_EOTF_SMPTE_ST2084 ? +TRANSFER_FUNC_PQ2084 : +TRANSFER_FUNC_UNKNOWN ; +mod_freesync_build_vrr_infopacket ( dm->freesync_module, new_stream, &vrr_params, packet_type, -TRANSFER_FUNC_UNKNOWN , + app_tf, &vrr_infopacket, pack_sdp_v1_3);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 67/2151 hwmon: (coretemp) Set nr_cores only after core_data allocation succeeds
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Guenter Roeck <[email protected]>
[ Upstream commit 95638f1f05ced75a82e83f610cd01b636d2a21b1 ]
In init_temp_data(), pdata->nr_cores is populated from topology_num_cores_per_package() before allocating pdata->core_data. If that allocation fails, init_temp_data() returns NULL with pdata->core_data still NULL and pdata->nr_cores set to a positive value.
coretemp_add_core() logs the error without failing coretemp_cpu_online(), so the CPU still comes online with pdata->hwmon_dev registered. When the CPU is later taken offline (or the module is unloaded), coretemp_cpu_offline() calls get_temp_data(pd, cpu), which loops up to pdata->nr_cores and dereferences the NULL pdata->core_data pointer.
Store the core count in a local variable and assign pdata->nr_cores only after pdata->core_data is allocated, preserving the invariant that pdata->nr_cores is zero whenever pdata->core_data is NULL.
--- drivers/hwmon/coretemp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/hwmon/coretemp.c +4 -2
@@ -491,11 +491,13 @@ init_temp_data(struct platform_data *pdata, unsigned int cpu, int pkg_flag)* Will replace hardcoded NUM_REAL_CORES with actual per package core count * when this information becomes available. */ - pdata->nr_cores =NUM_REAL_CORES ; - pdata->core_data =kcalloc (pdata->nr_cores,sizeof (struct temp_data *), +int nr_cores =NUM_REAL_CORES ; + + pdata->core_data =kcalloc (nr_cores,sizeof (struct temp_data *),GFP_KERNEL );if (!pdata->core_data)return NULL ; + pdata->nr_cores = nr_cores; } tdata =kzalloc (sizeof (struct temp_data ),GFP_KERNEL );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 68/2151 drm/amd/pm: populate unique ID for smu 13.0.7
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kevin Wang <[email protected]>
[ Upstream commit 079f9103d9cde68fb2ccc414e94520f43ee102de ]
The smu 13.0.7 backend does not register get_unique_id, leaving adev->unique_id at zero and KFD topology without the stable GPU identifier consumed by HIP.
The failure is observed at:
auto ierr = hipDeviceGetUuid(&uuid, 0);
--- .../drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +20 -0
@@ -2836,6 +2836,25 @@ static int smu_v13_0_7_update_pcie_parameters(struct smu_context *smu,return ret; } +static void smu_v13_0_7_get_unique_id (struct smu_context *smu) +{ +SmuMetricsExternal_t metrics_external; +SmuMetrics_t *metrics = &metrics_external.SmuMetrics; +struct amdgpu_device *adev = smu->adev; +u32 upper32 =0 , lower32 =0 ; +int ret; + + ret =smu_cmn_get_metrics_table (smu, &metrics_external, false); +if (ret) + goto out; + + upper32 = metrics->PublicSerialNumberUpper; + lower32 = metrics->PublicSerialNumberLower; + +out: + adev->unique_id = ((u64 )upper32 <<32 ) | lower32; +} +static const struct pptable_funcs smu_v13_0_7_ppt_funcs = { .get_allowed_feature_mask = smu_v13_0_7_get_allowed_feature_mask, .set_default_dpm_table = smu_v13_0_7_set_default_dpm_table,
@@ -2905,6 +2924,7 @@ static const struct pptable_funcs smu_v13_0_7_ppt_funcs = { .enable_uclk_shadow = smu_v13_0_enable_uclk_shadow, .set_wbrf_exclusion_ranges = smu_v13_0_set_wbrf_exclusion_ranges, .interrupt_work = smu_v13_0_interrupt_work, + .get_unique_id = smu_v13_0_7_get_unique_id, };void smu_v13_0_7_set_ppt_funcs (struct smu_context *smu)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 69/2151 drm/amdgpu/userq: wait for GPU reset before mapping or unmapping queues
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Prike Liang <[email protected]>
[ Upstream commit 623507b8f4fe24851b2f1cb2c177f8ae3c8584b8 ]
The user queue map and unmap helpers talk to the MES, but only the create path holds reset_domain->sem around them. The eviction, restore, destroy and suspend paths can submit to the MES while a GPU reset is in progress:
WARNING: amdgpu_device.c:928 at amdgpu_device_skip_hw_access+0x73/0x90 [amdgpu] Workqueue: events amdgpu_eviction_fence_suspend_worker [amdgpu] Call Trace: amdgpu_mm_wdoorbell64+0x20/0x70 [amdgpu] mes_v11_0_ring_set_wptr+0x71/0x80 [amdgpu] amdgpu_ring_commit+0x5b/0xa0 [amdgpu] mes_v11_0_submit_pkt_and_poll_completion.constprop.0+0x207/0x520 [amdgpu] mes_v11_0_remove_hw_queue+0xd9/0x100 [amdgpu] mes_userq_unmap+0xc3/0x140 [amdgpu] amdgpu_userq_unmap_helper+0x67/0x280 [amdgpu] amdgpu_userq_evict+0x52/0xf0 [amdgpu] amdgpu_eviction_fence_suspend_worker+0x55/0xe0 [amdgpu]
Take the semaphore for read in the helpers instead, around both the MES call and the queue state check and update. The reset changes the queue state from amdgpu_userq_pre_reset()/post_reset(), so every caller now waits for a running reset and acts on the state it left behind.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c +5 -0
@@ -27,6 +27,7 @@#include <linux/pm_runtime.h> #include "amdgpu.h" +#include "amdgpu_reset.h" #include "amdgpu_vm.h" #include "amdgpu_userq.h" #include "amdgpu_userq_fence.h"
@@ -148,6 +149,8 @@ amdgpu_userq_unmap_helper(struct amdgpu_userq_mgr *uq_mgr, adev->userq_funcs[queue->queue_type];int r =0 ; +/* The reset changes the queue state and the MES is unusable meanwhile */ +guard (rwsem_read)(&adev->reset_domain->sem);if ((queue->state ==AMDGPU_USERQ_STATE_MAPPED ) || (queue->state ==AMDGPU_USERQ_STATE_PREEMPTED )) { r = userq_funcs->unmap (uq_mgr, queue);
@@ -168,6 +171,8 @@ amdgpu_userq_map_helper(struct amdgpu_userq_mgr *uq_mgr, adev->userq_funcs[queue->queue_type];int r =0 ; +/* The reset changes the queue state and the MES is unusable meanwhile */ +guard (rwsem_read)(&adev->reset_domain->sem);if (queue->state ==AMDGPU_USERQ_STATE_UNMAPPED ) { r = userq_funcs->map (uq_mgr, queue);if (r) {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 70/2151 xfs: refuse a pNFS LAYOUTCOMMIT of a range without blocks
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Daejun Park <[email protected]>
[ Upstream commit bcf0b7f18ad11e1d410e82ffef678705eff0a317 ]
A client can commit a hole in a LAYOUTCOMMIT, because nfsd does not check the extents against its layouts. xfs_iomap_write_unwritten() then allocates written blocks there. A large hole overruns the block reservation and shuts XFS down. A small one exposes stale data.
Refuse such a range with -EIO, using XFS_BMAPI_CONVERT_ONLY.
--- fs/xfs/xfs_aops.c | 2 +- fs/xfs/xfs_file.c | 2 +- fs/xfs/xfs_iomap.c | 20 +++++++++++++++++--- fs/xfs/xfs_iomap.h | 3 ++- fs/xfs/xfs_pnfs.c | 9 ++++++++- 5 files changed, 29 insertions(+), 7 deletions(-)
fs/xfs/xfs_aops.c +1 -1
@@ -156,7 +156,7 @@ xfs_end_ioend(else if (ioend->io_flags &IOMAP_IOEND_SHARED ) error =xfs_reflink_end_cow (ip, offset, size);else if (ioend->io_flags &IOMAP_IOEND_UNWRITTEN ) - error =xfs_iomap_write_unwritten (ip, offset, size, false); + error =xfs_iomap_write_unwritten (ip, offset, size, false,0 ); if (!error && !(ioend->io_flags & IOMAP_IOEND_DIRECT) &&
fs/xfs/xfs_file.c +1 -1
@@ -584,7 +584,7 @@ xfs_dio_write_end_io(* they are converted. */ if (flags &IOMAP_DIO_UNWRITTEN ) { - error =xfs_iomap_write_unwritten (ip, offset, size, true); + error =xfs_iomap_write_unwritten (ip, offset, size, true,0 ); goto out; }
fs/xfs/xfs_iomap.c +17 -3
@@ -619,7 +619,8 @@ xfs_iomap_write_unwritten(xfs_inode_t *ip, xfs_off_t offset, xfs_off_t count, - bool update_isize) + bool update_isize, + uint32_t bmapi_flags) { xfs_mount_t *mp = ip->i_mount;xfs_fileoff_t offset_fsb;
@@ -681,8 +682,21 @@ xfs_iomap_write_unwritten(*/ nimaps =1 ; error =xfs_bmapi_write (tp, ip, offset_fsb, count_fsb, -XFS_BMAPI_CONVERT , resblks, &imap, - &nimaps); +XFS_BMAPI_CONVERT | bmapi_flags, + resblks, &imap, &nimaps); +if (error == -ENOSR && (bmapi_flags &XFS_BMAPI_CONVERT_ONLY )) { +/* +* Nothing was mapped: the rest of the range starts +* with a hole or a delalloc extent. Nothing was +* changed either, but xfs_iext_count_extend() may +* have logged the inode, and cancelling a dirty +* transaction shuts the filesystem down. Commit it, +* as xfs_alloc_file_space() does on -ENOSR. +*/ + error =xfs_trans_commit (tp); +xfs_iunlock (ip,XFS_ILOCK_EXCL ); +return error ? error : -EIO ; + }if (error) goto error_on_bmapi_transaction;
fs/xfs/xfs_iomap.h +2 -1
@@ -15,7 +15,8 @@ struct xfs_zone_alloc_ctx;int xfs_iomap_write_direct (struct xfs_inode *ip,xfs_fileoff_t offset_fsb,xfs_fileoff_t count_fsb,unsigned int flags,struct xfs_bmbt_irec *imap,u64 *sequence); -int xfs_iomap_write_unwritten (struct xfs_inode *,xfs_off_t ,xfs_off_t ,bool ); +int xfs_iomap_write_unwritten (struct xfs_inode *ip,xfs_off_t offset, +xfs_off_t count,bool update_isize,uint32_t bmapi_flags);xfs_fileoff_t xfs_iomap_eof_align_last_fsb (struct xfs_inode *ip,xfs_fileoff_t end_fsb);
fs/xfs/xfs_pnfs.c +8 -1
@@ -324,7 +324,14 @@ xfs_fs_commit_blocks( (end - 1) >> PAGE_SHIFT);WARN_ON_ONCE (error); - error =xfs_iomap_write_unwritten (ip, start, length, false); +/* +* A client may only write to blocks that a layout handed out, +* and xfs_fs_map_blocks() allocates blocks for any hole in a +* write layout, so refuse to allocate blocks for a hole or a +* delalloc extent in the committed range. +*/ + error =xfs_iomap_write_unwritten (ip, start, length, false, +XFS_BMAPI_CONVERT_ONLY );if (error) goto out_drop_iolock; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 71/2151 btrfs: raid56: do not verify the content if there is no data checksum
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Qu Wenruo <[email protected]>
[ Upstream commit d00b85308abee300dfb7e1ac642f38bab9ec7492 ]
[BUG]
There is a bug report that fio can fail to sync the data on a degraded RAID56 mount:
# mkfs.btrfs -m raid1 -d raid5 -f $dev1 $dev2 $dev3 # mount $dev1 $mnt # btrfs balance start -d $mnt # umount $mnt # btrfs dev scan -u $dev2 # wipefs -fa $dev2 # mount -o degraded $dev1 $mnt # fio --name=degraded-write --directory=$mnt --rw=randwrite --fdatasync=4 \ --bs=4k --size=512M --randrepeat=1
The run will fail at fsync:
fio: io_u error on file /mnt/btrfs/degraded-write.0.0: Input/output error: datasync offset=142254080, buflen=0
fio: pid=2064, err=5/file:io_u.c:2008, func=io_u error, error=Input/output error
[CAUSE]
With extra debug output, it shows the problem pretty well:
rbio=2876243968 faila=0 sectornr=0
rbio=2876243968 error=0-15 csum=2 bio=15
The first line shows the rbio's full stripe logical, and stripe/sector number when verify_one_sector() failed.
The second line shows more detail about the rbio, the sector range [0, 16) is corrupted, which indicates the first data stripe is corrupted, matching the missing device.
The important part is that the csum bitmap shows the data csum is only for sector number 2, meanwhile the failed verification is at sector number 0.
This means we did the checksum verification even if no corresponding checksum is populated.
[FIX]
There is already a similar check at verify_bio_data_sectors(), but unfortunately there is no such check at verify_one_sector().
Add the missing check to skip the csum verification if there is no corresponding data checksum.
--- fs/btrfs/raid56.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
fs/btrfs/raid56.c +8 -3
@@ -1788,6 +1788,8 @@ static int verify_one_sector(struct btrfs_raid_bio *rbio, {struct btrfs_fs_info *fs_info = rbio->bioc->fs_info;struct sector_ptr *sector; +const unsigned int total_sector_nr = + stripe_nr * rbio->stripe_nsectors + sector_nr;u8 csum_buf[BTRFS_CSUM_SIZE ];u8 *csum_expected;int ret;
@@ -1798,6 +1800,11 @@ static int verify_one_sector(struct btrfs_raid_bio *rbio,/* No way to verify P/Q as they are not covered by data csum. */ if (stripe_nr >= rbio->nr_data)return 0 ; + +/* No data checksum for this sector. */ +if (!test_bit (total_sector_nr, rbio->csum_bitmap)) +return 0 ; +/* * If we're rebuilding a read, we have to use pages from the * bio list if possible.
@@ -1808,9 +1815,7 @@ static int verify_one_sector(struct btrfs_raid_bio *rbio, sector =rbio_stripe_sector (rbio, stripe_nr, sector_nr); } - csum_expected = rbio->csum_buf + - (stripe_nr * rbio->stripe_nsectors + sector_nr) * - fs_info->csum_size; + csum_expected = rbio->csum_buf + total_sector_nr * fs_info->csum_size; ret =btrfs_check_block_csum (fs_info, sector->paddr, csum_buf, csum_expected);return ret; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 72/2151 ocfs2: add extra flags check in ocfs2_ioctl_move_extents()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dmitry Antipov <[email protected]>
[ Upstream commit 41a5e8777093f7946fade3737363ef045303b8dc ]
In 'ocfs2_ioctl_move_extents()', add extra check whether only actually supported flags are passed via 'ioctl(..., OCFS2_IOC_MOVE_EXT, ...)', and reject anything beyond OCFS2_MOVE_EXT_FL_AUTO_DEFRAG and OCFS2_MOVE_EXT_FL_PART_DEFRAG with -EINVAL. In particular, OCFS2_MOVE_EXT_FL_COMPLETE may be set by the kernel only and should never be passed from userspace.
Stable-dep-of: 84db6619cb70 ("ocfs2: validate move extents against a stable EOF")
--- fs/ocfs2/move_extents.c | 6 ++++++ 1 file changed, 6 insertions(+)
fs/ocfs2/move_extents.c +6 -0
@@ -1044,6 +1044,12 @@ int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp)if (range.me_threshold >i_size_read (inode)) range.me_threshold =i_size_read (inode); +if (range.me_flags & ~(OCFS2_MOVE_EXT_FL_AUTO_DEFRAG | +OCFS2_MOVE_EXT_FL_PART_DEFRAG )) { + status = -EINVAL ; + goto out_free; + } +if (range.me_flags &OCFS2_MOVE_EXT_FL_AUTO_DEFRAG ) { context->auto_defrag =1 ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 73/2151 ocfs2: validate move extents against a stable EOF
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Cen Zhang <[email protected]>
[ Upstream commit 84db6619cb702c37cf848b450c21b9c9706b0775 ]
The move-extents range must be bounded by the inode size used for extent movement. ocfs2_ioctl_move_extents() checks and clamps the request before taking the local inode and cluster locks in ocfs2_move_extents(). It also uses separate i_size_read() calls for the range check and subtraction.
A concurrent truncate can invalidate the first check and make the later unsigned subtraction underflow:
Move-extents ioctl Truncate
------------------ --------
check me_start <= i_size
take inode and cluster locks shrink EOF below me_start release locks
compare me_start + me_len with EOF
set me_len = EOF - me_start
[unsigned underflow]
acquire inode and cluster locks
select extents using the bad range
A truncate after clamping can also leave the range extending beyond EOF. Conversely, the cached size may be smaller than the size refreshed when the cluster inode lock is acquired. Early validation can then reject a valid start or permanently shorten the requested length and threshold. The me_start + me_len comparison can also wrap for a large input length.
Validate and adjust the original request once, after inode_lock(), the exclusive rw lock and ocfs2_inode_lock() have stabilized and refreshed the size. Read EOF once, reject a start beyond it, and bound the length by EOF minus start. Normalize the threshold using the same EOF snapshot. This keeps zero as the default-threshold sentinel until validation uses the size that will govern extent movement.
Move goal validation after range adjustment as well. Its allocation-group capacity check uses me_len and must see the EOF-clamped length. Both validation failures use the existing inode-lock unwind path before any extent movement or transaction starts.
Range errors now reach the ioctl's normal copyout path, as goal errors already did. Unlike the old early rejection, a failed copyout can therefore override -EINVAL with -EFAULT.
--- fs/ocfs2/move_extents.c | 70 +++++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 31 deletions(-)
fs/ocfs2/move_extents.c +39 -31
@@ -902,6 +902,30 @@ static int __ocfs2_move_extents_range(struct buffer_head *di_bh,return ret; } +static int ocfs2_validate_and_adjust_move_range (struct inode *inode, +struct ocfs2_move_extents *range) +{ +u64 i_size =i_size_read (inode); + +if (range->me_start > i_size) +return -EINVAL ; + +if (range->me_len > i_size - range->me_start) + range->me_len = i_size - range->me_start; + +/* +* The default threshold for defragmentation is 1 MiB, which +* matches the maximum OCFS2 cluster size. +*/ +if (!range->me_threshold) + range->me_threshold =1024 *1024 ; + +if (range->me_threshold > i_size) + range->me_threshold = i_size; + +return 0 ; +} +static int ocfs2_move_extents (struct ocfs2_move_extents_context *context) {int status;
@@ -931,6 +955,21 @@ static int ocfs2_move_extents(struct ocfs2_move_extents_context *context) goto out_rw_unlock; } + status =ocfs2_validate_and_adjust_move_range (inode, context->range); +if (status) { +mlog_errno (status); + goto out_inode_unlock; + } + +/* The goal check depends on the adjusted range length. */ +if (!context->auto_defrag) { + status =ocfs2_validate_and_adjust_move_goal (inode, context->range); +if (status) { +mlog_errno (status); + goto out_inode_unlock; + } + } +/* * remember ip_xattr_sem also needs to be held if necessary */
@@ -1023,27 +1062,8 @@ int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp) goto out_free; } -if (range.me_start >i_size_read (inode)) { - status = -EINVAL ; - goto out_free; - } - -if (range.me_start + range.me_len >i_size_read (inode)) - range.me_len =i_size_read (inode) - range.me_start; - context->range = ⦥ -/* -* ok, the default threshold for the defragmentation -* is 1M, since our maximum clustersize was 1M also. -* any thought? -*/ -if (!range.me_threshold) - range.me_threshold =1024 *1024 ; - -if (range.me_threshold >i_size_read (inode)) - range.me_threshold =i_size_read (inode); -if (range.me_flags & ~(OCFS2_MOVE_EXT_FL_AUTO_DEFRAG |OCFS2_MOVE_EXT_FL_PART_DEFRAG )) { status = -EINVAL ;
@@ -1055,23 +1075,11 @@ int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp)if (range.me_flags &OCFS2_MOVE_EXT_FL_PART_DEFRAG ) context->partial =1 ; - }else { -/* -* first best-effort attempt to validate and adjust the goal -* (physical address in block), while it can't guarantee later -* operation can succeed all the time since global_bitmap may -* change a bit over time. -*/ - - status =ocfs2_validate_and_adjust_move_goal (inode, &range); -if (status) - goto out_copy; } status =ocfs2_move_extents (context);if (status)mlog_errno (status); -out_copy:/* * movement/defragmentation may end up being partially completed, * that's the reason why we need to return userspace the finished
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 74/2151 ksmbd: do not read past the DACL in the access denied debug message
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Bridges <[email protected]>
[ Upstream commit 8296a64df5448548f410fb246c1d88a93609602b ]
When smb_check_perm_dacl() falls back to the POSIX ACL and then denies the request, its debug message prints the access mask of the ACE that the second DACL walk stopped at. On that path the walk ran to the end of the DACL, so the pointer is one past the last ACE. If the DACL is the last part of the stored security descriptor, the message reads 4 bytes past the buffer, and KASAN reports a slab-out-of-bounds read in smb_check_perm_dacl().
Print the requested and allowed masks instead. They are what the check compares.
--- fs/smb/server/smbacl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/smb/server/smbacl.c +2 -2
@@ -1650,8 +1650,8 @@ int smb_check_perm_dacl(struct ksmbd_conn *conn, const struct path *path, check_access_bits:if (granted & ~(access_bits |FILE_READ_ATTRIBUTES |READ_CONTROL |WRITE_DAC |DELETE )) { -ksmbd_debug (SMB ,"Access denied with winACL, granted : %x, access_req : %x\n" , - granted,le32_to_cpu (ace->access_req)); +ksmbd_debug (SMB ,"Access denied with winACL, requested : %x, allowed : %x\n" , + granted, access_bits); rc = -EACCES ; goto err_out; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 75/2151 cipso: stop modifying live ip_options_rcu
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jann Horn <[email protected]>
[ Upstream commit 1f2c5183fc0902892648f0453e38c0951cef3fec ]
cipso_v4_delopt() operates on the ip_options_rcu of a socket or a request socket, and tries to remove CIPSO options from the middle by moving all subsequent options.
That's not allowed - ip_options_rcu can be read locklessly and must always be consistent. For example, ip_options_undo() reads trusted offsets and length values from the options buffer.
Fix it by doing the modification in a copy.
The core change is in cipso_v4_delopt(), the rest is ugly plumbing to propagate memory allocation failures.
Triggering this bug requires that the system is configured to use CIPSO. (Setting up CIPSO requires privileges in init_user_ns.)
--- include/net/cipso_ipv4.h | 11 ++++++----- include/net/netlabel.h | 11 ++++++----- net/ipv4/cipso_ipv4.c | 16 +++++++++++++--- net/netlabel/netlabel_kapi.c | 24 ++++++++++-------------- security/selinux/netlabel.c | 5 +++-- security/smack/smack_lsm.c | 14 +++++++++----- 6 files changed, 47 insertions(+), 34 deletions(-)
include/net/cipso_ipv4.h +6 -5
@@ -185,12 +185,12 @@ int cipso_v4_sock_setattr(struct sock *sk,const struct cipso_v4_doi *doi_def, const struct netlbl_lsm_secattr *secattr, bool sk_locked); -void cipso_v4_sock_delattr (struct sock *sk); +int cipso_v4_sock_delattr (struct sock *sk);int cipso_v4_sock_getattr (struct sock *sk,struct netlbl_lsm_secattr *secattr);int cipso_v4_req_setattr (struct request_sock *req,const struct cipso_v4_doi *doi_def,const struct netlbl_lsm_secattr *secattr); -void cipso_v4_req_delattr (struct request_sock *req); +int cipso_v4_req_delattr (struct request_sock *req);int cipso_v4_skbuff_setattr (struct sk_buff *skb,const struct cipso_v4_doi *doi_def,const struct netlbl_lsm_secattr *secattr);
@@ -221,8 +221,9 @@ static inline int cipso_v4_sock_setattr(struct sock *sk,return -ENOSYS ; } -static inline void cipso_v4_sock_delattr (struct sock *sk) +static inline int cipso_v4_sock_delattr (struct sock *sk) { +return 0 ; } static inline int cipso_v4_sock_getattr(struct sock *sk,
@@ -238,9 +239,9 @@ static inline int cipso_v4_req_setattr(struct request_sock *req,return -ENOSYS ; } -static inline void cipso_v4_req_delattr (struct request_sock *req) +static inline int cipso_v4_req_delattr (struct request_sock *req) { -return ; +return 0 ; } static inline int cipso_v4_skbuff_setattr(struct sk_buff *skb,
include/net/netlabel.h +6 -5
@@ -477,7 +477,7 @@ int netlbl_sock_setattr(struct sock *sk,u16 family, const struct netlbl_lsm_secattr *secattr, bool sk_locked); -void netlbl_sock_delattr (struct sock *sk); +int netlbl_sock_delattr (struct sock *sk);int netlbl_sock_getattr (struct sock *sk,struct netlbl_lsm_secattr *secattr); int netlbl_conn_setattr(struct sock *sk,
@@ -485,7 +485,7 @@ int netlbl_conn_setattr(struct sock *sk, const struct netlbl_lsm_secattr *secattr);int netlbl_req_setattr (struct request_sock *req,const struct netlbl_lsm_secattr *secattr); -void netlbl_req_delattr (struct request_sock *req); +int netlbl_req_delattr (struct request_sock *req);int netlbl_skbuff_setattr (struct sk_buff *skb,u16 family,const struct netlbl_lsm_secattr *secattr);
@@ -626,8 +626,9 @@ static inline int netlbl_sock_setattr(struct sock *sk, {return -ENOSYS ; } -static inline void netlbl_sock_delattr (struct sock *sk) +static inline int netlbl_sock_delattr (struct sock *sk) { +return 0 ; }static inline int netlbl_sock_getattr (struct sock *sk,struct netlbl_lsm_secattr *secattr)
@@ -645,9 +646,9 @@ static inline int netlbl_req_setattr(struct request_sock *req, {return -ENOSYS ; } -static inline void netlbl_req_delattr (struct request_sock *req) +static inline int netlbl_req_delattr (struct request_sock *req) { -return ; +return 0 ; } static inline int netlbl_skbuff_setattr(struct sk_buff *skb, u16 family,
net/ipv4/cipso_ipv4.c +13 -3
@@ -2005,11 +2005,16 @@ static int cipso_v4_delopt(struct ip_options_rcu __rcu **opt_ptr)if (!opt || opt->opt.cipso ==0 )return 0 ;if (opt->opt.srr || opt->opt.rr || opt->opt.ts || opt->opt.router_alert) { +struct ip_options_rcu *old_opt = opt;u8 cipso_len;u8 cipso_off;unsigned char *cipso_ptr;int optlen_new; +/* ip_options_rcu must not be modified in place, use a copy */ + opt =kmemdup (opt,sizeof (*opt) + opt->opt.optlen,GFP_ATOMIC ); +if (!opt) +return -ENOMEM ; cipso_off = opt->opt.cipso -sizeof (struct iphdr ); cipso_ptr = &opt->opt.__data[cipso_off]; cipso_len = cipso_ptr[1 ];
@@ -2037,6 +2042,8 @@ static int cipso_v4_delopt(struct ip_options_rcu __rcu **opt_ptr)memset (&opt->opt.__data[optlen_new],IPOPT_END , opt->opt.optlen - optlen_new); +rcu_assign_pointer (*opt_ptr, opt); +kfree_rcu (old_opt, rcu); }else {/* only the cipso option was present on the socket so we can * remove the entire option struct */
@@ -2056,7 +2063,7 @@ static int cipso_v4_delopt(struct ip_options_rcu __rcu **opt_ptr)* Removes the CIPSO option from a socket, if present. * */ -void cipso_v4_sock_delattr (struct sock *sk) +int cipso_v4_sock_delattr (struct sock *sk) {struct inet_sock *sk_inet;int hdr_delta;
@@ -2069,6 +2076,7 @@ void cipso_v4_sock_delattr(struct sock *sk) sk_conn->icsk_ext_hdr_len -= hdr_delta; sk_conn->icsk_sync_mss (sk, sk_conn->icsk_pmtu_cookie); } +return (hdr_delta <0 ) ? hdr_delta :0 ; }/**
@@ -2079,9 +2087,11 @@ void cipso_v4_sock_delattr(struct sock *sk)* Removes the CIPSO option from a request socket, if present. * */ -void cipso_v4_req_delattr (struct request_sock *req) +int cipso_v4_req_delattr (struct request_sock *req) { -cipso_v4_delopt (&inet_rsk (req)->ireq_opt); +int hdr_delta =cipso_v4_delopt (&inet_rsk (req)->ireq_opt); + +return (hdr_delta <0 ) ? hdr_delta :0 ; }/**
net/netlabel/netlabel_kapi.c +10 -14
@@ -1045,18 +1045,18 @@ int netlbl_sock_setattr(struct sock *sk,* ensuring that @sk is locked. * */ -void netlbl_sock_delattr (struct sock *sk) +int netlbl_sock_delattr (struct sock *sk) {switch (sk->sk_family) {case AF_INET : -cipso_v4_sock_delattr (sk); -break ; +return cipso_v4_sock_delattr (sk);#if IS_ENABLED (CONFIG_IPV6 )case AF_INET6 :calipso_sock_delattr (sk);break ;#endif /* IPv6 */ } +return 0 ; }/**
@@ -1156,8 +1156,7 @@ int netlbl_conn_setattr(struct sock *sk,case NETLBL_NLTYPE_UNLABELED :/* just delete the protocols we support for right now * but we could remove other protocols if needed */ -netlbl_sock_delattr (sk); - ret_val =0 ; + ret_val =netlbl_sock_delattr (sk);break ;default : ret_val = -ENOENT ;
@@ -1185,8 +1184,7 @@ int netlbl_conn_setattr(struct sock *sk,case NETLBL_NLTYPE_UNLABELED :/* just delete the protocols we support for right now * but we could remove other protocols if needed */ -netlbl_sock_delattr (sk); - ret_val =0 ; + ret_val =netlbl_sock_delattr (sk);break ;default : ret_val = -ENOENT ;
@@ -1234,8 +1232,7 @@ int netlbl_req_setattr(struct request_sock *req, entry->cipso, secattr);break ;case NETLBL_NLTYPE_UNLABELED : -netlbl_req_delattr (req); - ret_val =0 ; + ret_val =netlbl_req_delattr (req);break ;default : ret_val = -ENOENT ;
@@ -1255,8 +1252,7 @@ int netlbl_req_setattr(struct request_sock *req, entry->calipso, secattr);break ;case NETLBL_NLTYPE_UNLABELED : -netlbl_req_delattr (req); - ret_val =0 ; + ret_val =netlbl_req_delattr (req);break ;default : ret_val = -ENOENT ;
@@ -1280,18 +1276,18 @@ int netlbl_req_setattr(struct request_sock *req,* Remove all the NetLabel labeling from @req. * */ -void netlbl_req_delattr (struct request_sock *req) +int netlbl_req_delattr (struct request_sock *req) {switch (req->rsk_ops->family) {case AF_INET : -cipso_v4_req_delattr (req); -break ; +return cipso_v4_req_delattr (req);#if IS_ENABLED (CONFIG_IPV6 )case AF_INET6 :calipso_req_delattr (req);break ;#endif /* IPv6 */ } +return 0 ; }/**
security/selinux/netlabel.c +3 -2
@@ -557,9 +557,10 @@ static int selinux_netlbl_socket_connect_helper(struct sock *sk,* is set to AF_UNSPEC, if that is what is happening we want to reset * the socket */ if (addr->sa_family ==AF_UNSPEC ) { -netlbl_sock_delattr (sk); + rc =netlbl_sock_delattr (sk); +if (rc) +return rc; sksec->nlbl_state =NLBL_REQSKB ; - rc =0 ;return rc; } secattr =selinux_netlbl_sock_genattr (sk);
security/smack/smack_lsm.c +9 -5
@@ -2658,22 +2658,26 @@ static int smack_netlbl_add(struct sock *sk)* * Remove the outbound smack value from a socket */ -static void smack_netlbl_delete (struct sock *sk) +static int smack_netlbl_delete (struct sock *sk) {struct socket_smack *ssp =smack_sock (sk); +int rc;/* * Take the label off the socket if one is set. */ if (ssp->smk_state !=SMK_NETLBL_LABELED ) -return ; +return 0 ;local_bh_disable ();bh_lock_sock_nested (sk); -netlbl_sock_delattr (sk); + rc =netlbl_sock_delattr (sk);bh_unlock_sock (sk);local_bh_enable (); +if (rc) +return rc; ssp->smk_state =SMK_NETLBL_UNLABELED ; +return 0 ; }/**
@@ -2713,7 +2717,7 @@ static int smk_ipv4_check(struct sock *sk, struct sockaddr_in *sap)* Clear the socket netlabel if it's set. */ if (!rc) -smack_netlbl_delete (sk); + rc =smack_netlbl_delete (sk); }rcu_read_unlock ();
@@ -4550,7 +4554,7 @@ static int smack_inet_conn_request(const struct sock *sk, struct sk_buff *skb,if (hskp ==NULL ) rc =netlbl_req_setattr (req, &ssp->smk_out->smk_netlabel);else -netlbl_req_delattr (req); + rc =netlbl_req_delattr (req);return rc; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 76/2151 mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lorenzo Stoakes (ARM) <[email protected]>
[ Upstream commit 7135a05838e85845e1bbf6caa6596a7e3b791a40 ]
So far the assumption has been that mm->mm_lock_seq overflow is benign, resulting only in readers spuriously falling back to the mmap lock, however it turns out that this was an unsafe assumption.
If a VMA can be spuriously considered write locked that means read lock exclusion does not take place, and thus a VMA can end up write-locked with concurrent readers.
Since overflow only occurs every 2^31 write lock/unlock cycles, resolve the issue by resetting every VMA's vma->vm_lock_seq each time such an overflow occurs.
This is done in vma_end_write_all(), which is called when the mmap write lock is released, i.e. in mmap_write_unlock() and mmap_write_downgrade().
Care must be taken, as resetting the sequence count at overflow means changing the seqcount of VMAs which are already attached and observable.
The mm's seqcount is guaranteed to be odd when a write lock is held, and thus any write locked VMA will have an odd seqcount assigned.
Therefore resetting to an even value prevents spurious write locks, since these can only occur with the mmap write lock held, at which point the mmap seqcount will be odd.
However, vma_start_read() also checks vma->vm_lock_seq == mm->mm_lock_seq, bailing if so (indicating a write lock).
This would cause any even reset value chosen to prevent VMA read locks from being taken - avoid this by also checking whether the VMA seqcount is odd before bailing on the read lock.
So far, vma->vm_lock_seq has defaulted to UINT_MAX, but this has been unnecessary since commit e5e7fb278e59 ("mm: convert mm_lock_seq to a proper seqcount"), since this is assigned when the VMA is still detached, and cannot be observed.
Therefore perform both reset and initialisation of vma->vm_lock_seq by simply setting vma->vm_lock_seq to zero.
The reset, performed in __mm_reset_vma_seqcounts(), only needs to WRITE_ONCE() the value.
However the read of vma->vm_lock_seq in vma_start_read() needs to have acquire semantics to pair with the smp_wmb() in do_raw_write_seqcount_end() so a reader reading a reset value also observes VMA modifications made under the write lock.
Since all VMA write locks were just released and the mmap write lock is still held, there are no concurrent VMA writers.
Concurrent VMA readers are unaffected. New VMA readers observe either zero, never a write lock, or the prior seqcount, behaving as before the reset.
Since this only occurs every 2^31 write lock/unlock cycles, the time taken to update all VMAs is considered to be acceptable.
Also update comments, documentation and VMA userland tests to reflect the change.
User facing effects are - dangerous races that could cause memory corruption or NULL pointer derefences (especially on page table traversal) are avoided.
--- Documentation/mm/process_addrs.rst | 14 ++++- include/linux/mm_types.h | 12 ++-- include/linux/mmap_lock.h | 32 ++++++++--- mm/mmap_lock.c | 89 ++++++++++++++++++++++++++---- tools/testing/vma/vma.c | 8 +-- tools/testing/vma/vma_internal.h | 2 +- 6 files changed, 126 insertions(+), 31 deletions(-)
Documentation/mm/process_addrs.rst +11 -3
@@ -807,9 +807,17 @@ All this is achieved by the use of per-mm and per-VMA sequence counts, which are used in order to reduce complexity, especially for operations which write-lock multiple VMAs at once. -If the mm sequence count, :c:member:`!mm->mm_lock_seq` is equal to the VMA -sequence count :c:member:`!vma->vm_lock_seq` then the VMA is write-locked. If -they differ, then it is not. +The mm sequence count :c:member:`!mm->mm_lock_seq` is incremented on both mmap +write lock and unlock, so it is odd while the mmap write lock is held. If it is +equal to the VMA sequence count :c:member:`!vma->vm_lock_seq`, and that value +is odd, then the VMA is write-locked. If they differ, then it is not. + +A VMA's sequence count is not updated on unlock, so after 2^31 write lock/unlock +cycles the mm sequence count would wrap and match stale VMA values again. To +prevent this, when the mm sequence count wraps to zero, +:c:func:`!vma_end_write_all` invokes :c:func:`!__mm_reset_vma_seqcounts` to +reset every VMA's sequence count to zero, an even value which can never +indicate a write lock. Each time the mmap write lock is released in :c:func:`!mmap_write_unlock` or :c:func:`!mmap_write_downgrade`, :c:func:`!vma_end_write_all` is invoked which
include/linux/mm_types.h +8 -4
@@ -845,15 +845,19 @@ struct vm_area_struct {* Can only be written (using WRITE_ONCE()) while holding both: * - mmap_lock (in write mode) * - vm_refcnt bit at VMA_LOCK_OFFSET is set +* The one exception is __mm_reset_vma_seqcounts(), which stores zero +* (an even value, which can never indicate a write lock) under the +* mmap write lock alone once the mm seqcount has wrapped, so a reader +* holding only vm_refcnt may observe the value change from odd to zero. * Can be read reliably while holding one of: * - mmap_lock (in read or write mode) -* - vm_refcnt bit at VMA_LOCK_OFFSET is set or vm_refcnt > 1 +* - vm_refcnt bit at VMA_LOCK_OFFSET is set * Can be read unreliably (using READ_ONCE()) for pessimistic bailout * while holding nothing (except RCU to keep the VMA struct allocated). * -* This sequence counter is explicitly allowed to overflow; sequence -* counter reuse can only lead to occasional unnecessary use of the -* slowpath. +* Assigned the (odd) mm seqcount on write lock and not updated on +* unlock, so a stale value would alias the mm seqcount again 2^31 write +* lock/unlock cycles later. The reset described above prevents this. */ unsigned int vm_lock_seq;#endif
include/linux/mmap_lock.h +25 -7
@@ -119,7 +119,7 @@ static inline void vma_lock_init(struct vm_area_struct *vma, bool reset_refcnt)#endif if (reset_refcnt)refcount_set (&vma->vm_refcnt,0 ); - vma->vm_lock_seq =UINT_MAX ; + vma->vm_lock_seq =0 ; }static inline bool is_vma_writer_only (int refcnt)
@@ -148,9 +148,10 @@ static inline void vma_refcount_put(struct vm_area_struct *vma) }/* -* Use only while holding mmap read lock which guarantees that locking will not -* fail (nobody can concurrently write-lock the vma). vma_start_read() should -* not be used in such cases because it might fail due to mm_lock_seq overflow. +* Use only while holding mmap read lock which guarantees that vma lock is not +* contended (nobody can concurrently write-lock the vma). vma_start_read() need +* not be used in such cases, as the mmap lock already excludes VMA writers so +* its sequence number checks are redundant. * This functionality is used to obtain vma read lock and drop the mmap read lock. */ static inline bool vma_start_read_locked_nested (struct vm_area_struct *vma,int subclass)
@@ -167,9 +168,10 @@ static inline bool vma_start_read_locked_nested(struct vm_area_struct *vma, int }/* -* Use only while holding mmap read lock which guarantees that locking will not -* fail (nobody can concurrently write-lock the vma). vma_start_read() should -* not be used in such cases because it might fail due to mm_lock_seq overflow. +* Use only while holding mmap read lock which guarantees that vma lock is not +* contended (nobody can concurrently write-lock the vma). vma_start_read() need +* not be used in such cases, as the mmap lock already excludes VMA writers so +* its sequence number checks are redundant. * This functionality is used to obtain vma read lock and drop the mmap read lock. */ static inline bool vma_start_read_locked (struct vm_area_struct *vma)
@@ -334,6 +336,10 @@ static inline int __must_check mmap_write_lock_killable(struct mm_struct *mm)return ret; } +#ifdef CONFIG_PER_VMA_LOCK +void __mm_reset_vma_seqcounts (struct mm_struct *mm); +#endif +/* * Drop all currently-held per-VMA locks. * This is called from the mmap_lock implementation directly before releasing
@@ -346,6 +352,18 @@ static inline void vma_end_write_all(struct mm_struct *mm) {mmap_assert_write_locked (mm);mm_lock_seqcount_end (mm); + +#ifdef CONFIG_PER_VMA_LOCK +/* +* VMA seqcounts are not updated on unlock, so once the mm seqcount has +* wrapped, any VMA still carrying a sequence number from before the +* wrap would satisfy __is_vma_write_locked() when that number comes +* round again, and readers would not be excluded. Reset every VMA's +* seqcount so that no stale value survives the wrap. +*/ +if (unlikely (!mm->mm_lock_seq.sequence)) +__mm_reset_vma_seqcounts (mm); +#endif }static inline void mmap_write_unlock (struct mm_struct *mm)
mm/mmap_lock.c +77 -12
128 lines not on this page · raw message
tools/testing/vma/vma.c +4 -4
@@ -120,7 +120,7 @@ static struct vm_area_struct *alloc_and_link_vma(struct mm_struct *mm,* begun. Linking to the tree will have caused this to be incremented, * which means we will get a false positive otherwise. */ - vma->vm_lock_seq =UINT_MAX ; + vma->vm_lock_seq =0 ;return vma; }
@@ -268,13 +268,13 @@ static int cleanup_mm(struct mm_struct *mm, struct vma_iterator *vmi)/* Helper function to determine if VMA has had vma_start_write() performed. */ static bool vma_write_started (struct vm_area_struct *vma) { -int seq = vma->vm_lock_seq; +unsigned int seq = vma->vm_lock_seq;/* We reset after each check. */ - vma->vm_lock_seq =UINT_MAX ; + vma->vm_lock_seq =0 ;/* The vma_start_write() stub simply increments this value. */ -return seq >-1 ; +return seq >0 ; }/* Helper function providing a dummy vm_ops->close() method.*/
tools/testing/vma/vma_internal.h +1 -1
@@ -658,7 +658,7 @@ static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm) vma->vm_mm = mm; vma->vm_ops = &vma_dummy_vm_ops;INIT_LIST_HEAD (&vma->anon_vma_chain); - vma->vm_lock_seq =UINT_MAX ; + vma->vm_lock_seq =0 ; }/*
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 77/2151 KVM: arm64: vgic-its: Dont map an LPI from more than one event
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Fuad Tabba <[email protected]>
[ Upstream commit de81b28f0b83b22163d7d9a9b708d7aa912e0ef7 ]
KVM keeps one vgic_irq per LPI. A MAPTI of an LPI whose vgic_irq already exists reuses it for the new ITE and leaves its target vCPU as it was. Mapping one LPI from two events is UNPREDICTABLE (IHI 0069H.b, 5.2.10), but nothing stops a guest from doing it. If the first MAPTI names a collection the guest never maps and the second a mapped one, the LPI translates through the second event with a NULL target vCPU.
When the VMM routes an assigned device's MSI to that event on a host with GICv4 enabled, kvm_vgic_v4_set_forwarding() takes the vPE from the NULL target vCPU and the host oopses:
Unable to handle kernel paging request at virtual address 0000000000001980 [...] Call trace: its_build_vmapti_cmd (drivers/irqchip/irq-gic-v3-its.c:943) (P) its_irq_set_vcpu_affinity (drivers/irqchip/irq-gic-v3-its.c:1380) irq_set_vcpu_affinity (kernel/irq/manage.c:670) its_map_vlpi (drivers/irqchip/irq-gic-v4.c:326) kvm_vgic_v4_set_forwarding (arch/arm64/kvm/vgic/vgic-v4.c:485) kvm_arch_irq_bypass_add_producer (arch/arm64/kvm/arm.c:2977) irq_bypass_register_consumer (virt/lib/irqbypass.c:44) kvm_irqfd (arch/arm64/kvm/../../../virt/kvm/eventfd.c:496) kvm_vm_ioctl (arch/arm64/kvm/../../../virt/kvm/kvm_main.c:5270)
Track in each vgic_irq whether an ITE maps it. Drop a MAPTI of an LPI that is already mapped, as a failed MAPTI already is. Restoring the ITS tables keeps the first ITE it reads for each LPI and drops any later one, so a guest saved with a double mapping still restores. Key the check on the mapping, not on the vgic_irq. A vgic_irq outlives its ITE while anything holds a reference to it, such as the vCPU it was last queued on. A later MAPTI of such an LPI succeeds as before, and now retargets it to its collection.
--- arch/arm64/kvm/vgic/vgic-its.c | 26 ++++++++++++++++++++++++-- include/kvm/arm_vgic.h | 1 + 2 files changed, 25 insertions(+), 2 deletions(-)
arch/arm64/kvm/vgic/vgic-its.c +24 -2
@@ -774,6 +774,7 @@ static void its_free_ite(struct kvm *kvm, struct its_ite *ite)its_unmap_vlpi (ite->irq->host_irq); irq->hw = false; + irq->mapped = false; }vgic_put_irq (kvm, ite->irq);
@@ -782,6 +783,23 @@ static void its_free_ite(struct kvm *kvm, struct its_ite *ite)kfree (ite); } +/* Mapping one LPI from two events is UNPREDICTABLE: the first ITE keeps it. */ +static bool vgic_its_map_lpi (struct kvm *kvm,struct its_ite *ite, +struct vgic_irq *irq,struct kvm_vcpu *vcpu) +{ + scoped_guard(raw_spinlock_irqsave, &irq->irq_lock) { +if (!irq->mapped) { + irq->mapped = true; + irq->target_vcpu = vcpu; + ite->irq = irq; +return true; + } + } + +vgic_put_irq (kvm, irq); +return false; +} +static u64 its_cmd_mask_field (u64 *its_cmd,int word,int shift,int size) {return (le64_to_cpu (its_cmd[word]) >> shift) & (BIT_ULL (size) -1 );
@@ -1091,13 +1109,14 @@ static int vgic_its_cmd_handle_mapi(struct kvm *kvm, struct vgic_its *its, vcpu =collection_to_vcpu (kvm, collection); irq =vgic_add_lpi (kvm, lpi_nr, vcpu); +if (!IS_ERR (irq) && !vgic_its_map_lpi (kvm, ite, irq, vcpu)) + irq =ERR_PTR (-EEXIST );if (IS_ERR (irq)) {if (new_coll)vgic_its_free_collection (its, coll_id);its_free_ite (kvm, ite);return PTR_ERR (irq); } - ite->irq = irq;return 0 ; }
@@ -2208,7 +2227,10 @@ static int vgic_its_restore_ite(struct vgic_its *its, u32 event_id,its_free_ite (kvm, ite);return PTR_ERR (irq); } - ite->irq = irq; + +/* Drop an ITE whose LPI another ITE maps, as MAPTI does. */ +if (!vgic_its_map_lpi (kvm, ite, irq, vcpu)) +its_free_ite (kvm, ite);return offset; }
include/kvm/arm_vgic.h +1 -0
@@ -142,6 +142,7 @@ struct vgic_irq {bool active;bool enabled;bool hw;/* Tied to HW IRQ */ +bool mapped;/* LPIs: mapped by an ITE */ refcount_t refcount;/* Used for LPIs */ u32 hwintid;/* HW INTID number */ unsigned int host_irq;/* linux irq corresponding to hwintid */
Signature · 1 line
2.53.0