7.3.6-rc1 review
Subsystems (4)
Greg Kroah-Hartman
maintainercover 7.3.6-rc1 review
This is the start of the stable review cycle for the 7.3.6 release. There are 2651 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:47 +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/v7.x/stable-review/patch-7.3.6-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-7.3.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <[email protected]>
Linux 7.3.6-rc1
Adrián Larumbe <[email protected]>
drm/panfrost: Fix race when restoring reset state in perfcnt
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
Sasha Levin <[email protected]>
rust: bindings: derive Zeroable for bindgen's opaque array wrappers
Shakeel Butt <[email protected]>
kernfs: avoid READ_ONCE() on a kgid_t in kernfs_new_node()
Zhan Xusheng <[email protected]>
erofs: fix disallowing superblock_share if device= is set
Takashi Iwai <[email protected]>
ALSA: usb-audio: Correct a typo in UMC404HD model comment
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()
Stian Halseth <[email protected]>
sched/cputime: Don't warn when the tick period starts after idle exit
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
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
Nickolai Zeldovich <[email protected]>
pidfs: do not report fields that do not fit into the caller's struct
Zhiyu Zhang <[email protected]>
watch_queue: keep info_id separate from rcu_head
Qu Wenruo <[email protected]>
iomap: only follow dio alignment requirement if specified
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()
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
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
Maxime Bélair <[email protected]>
apparmor: fix a leak on a rejected string table entry
John Johansen <[email protected]>
apparmor: remove unconfined_profile() check in inet socket mediation
Michail Andreas Michalopoulos <[email protected]>
apparmor: check address length before reading AF_UNSPEC bind address
shaos <[email protected]>
apparmor: mediate AF_UNSPEC socket disconnects
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
Chris Mason <[email protected]>
rnbd-srv: publish the sess_dev at the end of OPEN
Chris Mason <[email protected]>
rnbd-srv: fix use-after-free on two CLOSE messages
Josef Bacik <[email protected]>
block/rnbd-srv: drop the sess_dev kobject unlocked
Josef Bacik <[email protected]>
block/rnbd-srv: don't free the device on a sysfs error
Josef Bacik <[email protected]>
drbd: take req_lock to skip the initial sync as peer
Josef Bacik <[email protected]>
drbd: stop the start_resync timer of a dying device
Josef Bacik <[email protected]>
block: apply the segment size to the integrity buffer
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-dma: initialize the dma state for P2P, too
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()
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()
Josef Bacik <[email protected]>
namei: don't assert S_ISDIR on a stale rcu-walk inode
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
Sasha Levin <[email protected]>
ASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffers
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
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
Josef Bacik <[email protected]>
writeback: don't kick a missing wb for dontcache writes
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
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
Jacob Keller <[email protected]>
ice: use reference counting and SRCU for PTP port access
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
Kuniyuki Iwashima <[email protected]>
ipv6: Protect multiple routes insertion by table lock.
Chuck Lever <[email protected]>
tls: Honor O_NONBLOCK in tls_sw_splice_read()
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]>
block: don't enter reclaim under rq_qos_mutex
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
Josef Bacik <[email protected]>
blk-iocost: free struct ioc after a grace period
Josef Bacik <[email protected]>
blk-cgroup: keep the old blkg while reassociating a bio
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
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
Surabhi Gogte <[email protected]>
nvme-tcp: refactor I/O queue setup path
Christian Aurich Zanettini Martins <[email protected]>
nvme-rdma: fix NULL metadata_sgl dereference with T10-PI
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
Maurizio Lombardi <[email protected]>
nvme-pci: fix early boot hang with nvme.quirks parameter
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
Namjae Jeon <[email protected]>
ksmbd: return complete and aligned stream information
Rishikesh Jethwani <[email protected]>
tls: keep TX and RX hardware offload on the same device
Peter Morrow <[email protected]>
net/mlx4: always create the eth and ib auxiliary devices
Slawomir Stepien <[email protected]>
fs/ntfs3: handle partial allocation in attr_data_get_block_locked()
Yun Zhou <[email protected]>
ntfs3: release ni_lock before dir_emit in ntfs_readdir to fix deadlocks
Konstantin Komarov <[email protected]>
fs/ntfs3: take ni_lock() once in ntfs_readdir()
Feng Yang <[email protected]>
bpf: Fix out-of-bounds btf->types write for split BTF
Alexei Starovoitov <[email protected]>
bpf: Keep stack arguments in arch_bpf_timed_may_goto()
Pu Lehui <[email protected]>
riscv, bpf: Remap BPF_REG_0 and RV_REG_TCC
Chen Pei <[email protected]>
selftests/bpf: Enable arena LDSX tests for riscv64
Ö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
Wang Zhaolong <[email protected]>
ksmbd: fix named-pipe reply loss with small output buffers
Wang Zhaolong <[email protected]>
ksmbd: avoid races between named-pipe operations
Fernando Fernandez Mancera <[email protected]>
devlink: region: fix snapshot id leak on kernel-allocated ids
Dudu Lu <[email protected]>
net-sysfs: reject a one-entry RPS flow table
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
Ian Rogers <[email protected]>
perf libdw: Optimize fallback logic for missing DWARF
Tejun Heo <[email protected]>
sched_ext: Reject scx_bpf_sub_grant/revoke() in tracing programs
Tejun Heo <[email protected]>
sched_ext: Fix a lone IMMED task waiting behind a kept prev
Tejun Heo <[email protected]>
sched_ext: Fix queued bypassed tasks stalling when the host loses SCX_CAP_BASE
Tejun Heo <[email protected]>
sched_ext: Let the bypass load balancer move tasks homed on other cpus
Tejun Heo <[email protected]>
sched_ext: Factor out bypass_lb_move() and insert with the donor DSQ unlocked
Tejun Heo <[email protected]>
sched_ext: Add ops.sub_child_ecaps_updated() to report a child's effective cap changes
Tejun Heo <[email protected]>
sched_ext: Add ops.sub_cid_sched_updated() to report the sched running on a cid
Andrea Righi <[email protected]>
sched_ext: Fix ops.running/stopping() pairing for proxy-exec donors
Andrea Righi <[email protected]>
sched: Add sched_ext hooks for proxy execution
Shubhang Kaushik (Ampere) <[email protected]>
sched: Restart fair hrtick after same-task repicks
Tejun Heo <[email protected]>
sched_ext: Fix the bypass load balancer stranding tasks on cpus where the host lacks SCX_CAP_BASE
Tejun Heo <[email protected]>
sched_ext: Fix rescue served time disagreeing with the slice under proxy execution
Tejun Heo <[email protected]>
sched_ext: Fix bypassed tasks looping on a host without SCX_CAP_ENQ
Mani Tofigh <[email protected]>
bpf: Fix bpf_timer callback running on a freed map
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
Junbin Zhang <[email protected]>
sched_ext: Reject rq-lock-taking kfuncs in tracing programs
Kumar Kartikeya Dwivedi <[email protected]>
LoongArch: BPF: Fix stack arguments for indirect trampolines
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
Ian Bridges <[email protected]>
ksmbd: fix SMB2 CREATE response buffer overflow in compound requests
Cheng Yongkang <[email protected]>
net: tun: hold napi_mutex when deleting NAPI in tun_detach_all()
Denis Kulikov <[email protected]>
ksmbd: use the resolved share path for the share root
Gao Xiang <[email protected]>
erofs: drop unnecessary .read_folio() checks for file-backed mounts
Giuseppe Scrivano <[email protected]>
erofs: reuse superblock for file-backed mounts
Giuseppe Scrivano <[email protected]>
fs: rename vfs_get_super() to get_tree_super() and export it
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()
Eric Dumazet <[email protected]>
net: harden qdisc_pkt_len_segs_init() against malicious GSO packets
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
Marek Szyprowski <[email protected]>
ASoC: codecs: wsa881x: Fix shared powerdown GPIO handling
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
Ovidiu Panait <[email protected]>
PM: suspend: Do not call suspend_ops->begin()/end() for s2idle
Sasha Levin <[email protected]>
selftests/thermal: allow cross builds of the Intel tests
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: Release invalid isolated CPUs with a shrunk root partition parent
Waiman Long <[email protected]>
cgroup/cpuset: Release invalid isolated CPUs in compute_partition_effective_cpumask()
Waiman Long <[email protected]>
cgroup/cpuset: Make sure compute_partition_effective_cpumask() is only called for valid partition
Waiman Long <[email protected]>
cgroup/cpuset: Prevent recursive call of remote_cpus_update() via update_cpumasks_hier()
Waiman Long <[email protected]>
cgroup/cpuset: Minor fixes to prstate_housekeeping_conflict()
Waiman Long <[email protected]>
cgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()
Waiman Long <[email protected]>
cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()
Waiman Long <[email protected]>
cgroup/cpuset: Don't allow a child root partition under an isolated parent
Waiman Long <[email protected]>
cgroup/cpuset: Find furthest isolated ancestor for invalidated isolated 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
Weiming Shi <[email protected]>
bpf: Validate stack arg reads against caller state
Thomas Weißschuh <[email protected]>
vdso/gettimeofday: Correct the read of tz_minuteswest and tz_dsttime
Hui Su <[email protected]>
sched/idle: Use hrtimer cleanup class in play_idle_precise()
Hui Su <[email protected]>
hrtimer: Add cleanup class for on-stack timers
Avi Weiss <[email protected]>
kthread: Fall back when no preferred housekeeping CPU is online
Cen Zhang <[email protected]>
ALSA: ump: Drain sequencer callbacks before freeing their client
Xu Yunxiang <[email protected]>
bpf: Track borrowed iterator results by default
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
Pooyan Azad <[email protected]>
zram: fix short reads from block_state
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
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()
Qiliang Yuan <[email protected]>
selftests/bpf: Wait for the struct_ops map to be freed in assoc_in_timer
Qiliang Yuan <[email protected]>
selftests/bpf: Test freeing a struct_ops map under a running prog
Alexander Koskovich <[email protected]>
scsi: ufs: qcom: Power down UFS during system suspend on Milos
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
Jiayuan Chen <[email protected]>
tls: fix the open record check in the max payload size setsockopt
Hangbin Liu <[email protected]>
selftests: gro: remove unused variable total_data
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
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]>
fs: fix ramfs_fs_info leak when rootfs is unmounted
Christian Brauner <[email protected]>
super: convert to plain hashtable
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
Zhan Xusheng <[email protected]>
ntfs: fix u16 truncation of the update sequence array count check
Hang Nan <[email protected]>
ntfs: reject index blocks with a too small entries offset
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()
Ian Rogers <[email protected]>
perf lock contention: Filter events before creating lock_stat
Hui Su <[email protected]>
sched_ext: Reject oversized automatic CID shards
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
Lorenzo Bianconi <[email protected]>
PCI/pwrctrl: Power off child devices on power-on failure
Waldemar Brodkorb <[email protected]>
sh: Select BINFMT_FLAT_NO_DATA_START_OFFSET for !MMU
Qiliang Yuan <[email protected]>
selftests/bpf: Time tc_edt from its first packet with data
Nicolás Antinori <[email protected]>
rust: i2c: remove TryFrom<&Device> implementation for &I2cClient
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
Ajanesh Lal <[email protected]>
ALSA: hda/realtek: Add mute and mic-mute LEDs for HP ENVY 16 (103c:8be5)
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
Jiale Yao <[email protected]>
mshv_vtl: initialize poll file mutex before device registration
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
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
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: inherit FileIds in related compound requests
Namjae Jeon <[email protected]>
ksmbd: keep lease tables until their last lease is closed
Stefan Metzmacher <[email protected]>
smb: smbdirect: don't WARN on an unexpected receive opcode
Namjae Jeon <[email protected]>
ksmbd: fix durable reconnects for root shares
Namjae Jeon <[email protected]>
ksmbd: cache the resolved share path for durable reconnects
Namjae Jeon <[email protected]>
ksmbd: disconnect on invalid encryption transform flags
ChenXiaoSong <[email protected]>
smb/server: fix trailing period in generated short names
Gael Blivet <[email protected]>
ksmbd: print IPv6 client addresses correctly in procfs
Gael Blivet <[email protected]>
ksmbd: fix AFP_AfpInfo header fields in synthesized xattr
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
Danilo Krummrich <[email protected]>
rust: workqueue: replace deprecated system_wq with system_{percpu,dfl}_wq
Nicolas Falesy <[email protected]>
exfat: clean stale bdev buffers of newly allocated clusters
Chi Zhiling <[email protected]>
exfat: take bitmap_lock at the start of exfat_alloc_cluster()
Chi Zhiling <[email protected]>
exfat: fix used_clusters accounting during cluster allocation
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
Eric Dumazet <[email protected]>
ip6mr: clear skb->cb[] in reg_vif_xmit()
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()
Konrad Dybcio <[email protected]>
PCI: qcom: Ignore -ENODEV after Root Port reset
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
Andrea Righi <[email protected]>
sched_ext: Use irq_work for deferred actions with proxy execution
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
Hui Su <[email protected]>
sched/mmcid: Fix affinity-triggered switch back to per-task mode
Liang Hao <[email protected]>
timers: Clear pending_map on CPU hotplug
Carolina Jubran <[email protected]>
net/mlx5e: Fix NULL deref in PTP TX timestamp recovery warn
Carolina Jubran <[email protected]>
net/mlx5: DPLL, fix fractional frequency offset scaling
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
James Hilliard <[email protected]>
xsk: freeze deferred pool teardown without blocking unregister
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
Namjae Jeon <[email protected]>
ntfs: fix NULL dereference on index allocation open failure
Zhan Xusheng <[email protected]>
ntfs: widen the sub-block offsets in ntfs_decompress()
Zhan Xusheng <[email protected]>
ntfs: reject direct I/O reads of encrypted files
Zhan Xusheng <[email protected]>
ntfs: do not read ahead encrypted files
Namjae Jeon <[email protected]>
ntfs: propagate EA truncate errors
Namjae Jeon <[email protected]>
ntfs: clear stale pagecache on initialized-size extension
Namjae Jeon <[email protected]>
ntfs: sync attribute inode size after resize
Hyunchul Lee <[email protected]>
ntfs: only require compressed size on first extent
Jiale Yao <[email protected]>
ntfs: drain in-flight DIO before buffered write fallback
Matthias Goergens <[email protected]>
ntfs: do not give a contiguous cluster allocation a second run
Matthias Goergens <[email protected]>
ntfs: do not refuse fallocate() when the MFT zone is empty
Matthias Goergens <[email protected]>
ntfs: restart the zone search when the allocation hint fails
Matthias Goergens <[email protected]>
ntfs: set the attribute list size before reserving space for it
Matthias Goergens <[email protected]>
ntfs: reject non-resident attributes whose sizes exceed their allocation
Hyunchul Lee <[email protected]>
ntfs: accept standard sparse compression unit
Hyunchul Lee <[email protected]>
ntfs: avoid misclassifying directory reparse points
Xuewen Wang <[email protected]>
ntfs: account for direct MFT bitmap cluster allocation
Xuewen Wang <[email protected]>
ntfs: wait for the bitmap scan before MFT bitmap extension
pwngets <[email protected]>
ntfs: fix runlist marker allocation and count
Baolin Liu <[email protected]>
ntfs: fix error handling in ntfs_extent_inode_open and propagate errors
Baolin Liu <[email protected]>
ntfs: propagate the ntfs_attr_iget() error in update_reparse_data()
Baolin Liu <[email protected]>
ntfs: propagate the map_mft_record() error in ntfs_attrlist_entry_add()
Baolin Liu <[email protected]>
ntfs: preserve the truncate error in ntfs_enlarge_attribute()
Baolin Liu <[email protected]>
ntfs: return -EINVAL from ntfs_collate_ntofs_ulongs() on bad length
Xuewen Wang <[email protected]>
ntfs: preserve the 64-bit FITRIM minimum length
Hyunchul Lee <[email protected]>
ntfs: require page-aligned full-page attribute writes
Hyunchul Lee <[email protected]>
ntfs: fix FITRIM bitmap indexing for large pages
Marek Wesołowski <[email protected]>
ntfs: fix directory lookup on large-page systems
Ivan Vecera <[email protected]>
selftests: tc-testing: use $IP in hfsc test 8c39 setup
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
Serhat Kumral <[email protected]>
RDMA/mlx5: Validate priority in STEERING_ANCHOR_CREATE handler
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
Emil Tsalapatis <[email protected]>
bpf: Fix arena race between page free and alloc leading to incoherency
Emil Tsalapatis <[email protected]>
bpf: Revalidate faulted arena pages before installing user mappings
Sasha Levin <[email protected]>
bpf: Fix ksock build with BPF_LSM=y and SECURITY_NETWORK=n
Waiman Long <[email protected]>
cgroup/cpuset: Properly disabling partition when partition state switching fails
Waiman Long <[email protected]>
cgroup/cpuset: Do housekeeping check before converting invalid partition to valid
Waiman Long <[email protected]>
cgroup/cpuset: Consider all the exclusive CPUs when doing housekeeping check
Waiman Long <[email protected]>
cgroup/cpuset: Consolidate isolated_cpus_can_update() into prstate_housekeeping_conflict()
Waiman Long <[email protected]>
cgroup/cpuset: Fix a missing isolated_cpus update in update_cpumasks_hier()
Gregory Price (Meta) <[email protected]>
cgroup/cpuset: use mems_allowed_seq when checking a policy nodemask
Kumar Kartikeya Dwivedi <[email protected]>
libbpf: Keep the fd_array fill index out of bpf_program__clone()
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
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
Wenjie Qi <[email protected]>
f2fs: refresh pinned allocation boundary after resize
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
Takashi Iwai <[email protected]>
ALSA: usb-audio: Avoid applying boot quirk for Behringer UMC204HD
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
Miklos Szeredi <[email protected]>
dax: add fsdev_dax_from_file()
Lorenzo Bianconi <[email protected]>
netfilter: flowtable: reset transport header after nf_flow_encap_pop()
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
Karl Mehltretter <[email protected]>
mm/slub: initialize the free pointer of the bootstrap kmem_cache_node
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
Masoud Aghasi <[email protected]>
bpf: Fix incorrect handling of user flags by percpu hash map updates
Masoud Aghasi <[email protected]>
bpf: Fix incorrect handling of user flags in bpf_percpu_array_update
KaFai Wan <[email protected]>
selftests/bpf: Use _exit() in uprobe_multi_test clone-ed child
KaFai Wan <[email protected]>
selftests/bpf: Fix stack arg pruning test JOIN log expectation
Matt Turner <[email protected]>
alpha: fix stale user_stack_pointer()
Troy Mitchell <[email protected]>
dt-bindings: vendor-prefixes: Add Sensylink
Woojin Ji <[email protected]>
bpf: Zero-extend the index in inlined bpf_get_func_arg()
Sasha Levin <[email protected]>
locking/atomic: arc, hexagon, openrisc: Define arch_cmpxchg_local()
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
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
Josef Bacik <[email protected]>
bpf: Don't take a dynptr argument for a local dynptr
Josef Bacik <[email protected]>
bpf: Let bpf_dynptr_write() mark a global function
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
Josef Bacik <[email protected]>
bpf: Keep the symbols of a program until it has ended
Josef Bacik <[email protected]>
bpf: Keep values of a dead owner for sleepable programs
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
Josef Bacik <[email protected]>
bpf: Free what map_free() unlinks for sleepable readers
Alexei Starovoitov <[email protected]>
bpf: Don't take an extension for a writable raw tracepoint program
Josef Bacik <[email protected]>
bpf: Assume no bounds for a writable tp with tail calls
Josef Bacik <[email protected]>
bpf: Don't take an extension for an iterator program
Josef Bacik <[email protected]>
bpf: Assume no bounds for buffers behind a tail call
Josef Bacik <[email protected]>
bpf: Check the maps that sleepable callbacks use
Josef Bacik <[email protected]>
bpf: Count sleepable callbacks as sleepable map users
Josef Bacik <[email protected]>
bpf: Keep a program until its bpf_wq callback has ended
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
Josef Bacik <[email protected]>
bpf: Hold the socket in the sk_storage map iterator
Alexei Starovoitov <[email protected]>
bpf: Link the first element after its storage is published
Josef Bacik <[email protected]>
bpf: Fix NULL deref in the sk_storage map iterator
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: Don't saturate owner_refcnt on the last unpin
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
Josef Bacik <[email protected]>
bpf: Look at all 64 bits of a BPF_JSET mask on 32-bit
Josef Bacik <[email protected]>
bpf: Forbid sleeping in bpf_find_vma() callbacks
Josef Bacik <[email protected]>
bpf: Reject sleepable programs for task_vma iterator
Josef Bacik <[email protected]>
bpf: Don't hand out a linked element as extra element
Josef Bacik <[email protected]>
bpf: Don't leak the inode when token creation fails
Josef Bacik <[email protected]>
bpf: Forbid sleeping in hash map for_each callbacks
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Report non-sleepable kfunc programs accurately
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
Tejun Heo <[email protected]>
sched_ext: Fix a bypassed task stalling on a cpu its scheduler has no caps on
Tejun Heo <[email protected]>
sched_ext: Fix the running task keeping its protection into bypass
Arnaldo Carvalho de Melo <[email protected]>
perf evsel: Mark the event as supported when retrying an open
Arnaldo Carvalho de Melo <[email protected]>
perf test attr: Relax group checking for ungrouped expectations
Arnaldo Carvalho de Melo <[email protected]>
perf test attr: Fix default stat metrics expectations
Arnaldo Carvalho de Melo <[email protected]>
perf test attr: Fix legacy event encodings in group tests
Arnaldo Carvalho de Melo <[email protected]>
perf test attr: Fix record dwarf sample_type expectation
Koichiro Den <[email protected]>
PCI: endpoint: pci-epf-vntb: Honor MSI-X selection
Koichiro Den <[email protected]>
PCI: endpoint: pci-epf-vntb: Use a local epf pointer in interrupt setup
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: notify sibling pin when shared output config changes
Ivan Vecera <[email protected]>
dpll: zl3073x: make embedded sync follow the output carrier frequency
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: do not offer 0 Hz as a supported pin frequency
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
Yonghong Song <[email protected]>
bpf, x86: Pass a trampoline's stack arguments by the calling convention
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)
Val Packett <[email protected]>
power: sequencing: pcie-m2: Add Foxconn WCN7850 subsystem PCI ID
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
Ju Nan <[email protected]>
pinctrl: stm32: Fix the unit of the hwspinlock timeout
Boris Brezillon <[email protected]>
drm/panthor: Fully disable the AS even if it's going to be re-assigned
Boris Brezillon <[email protected]>
drm/panthor: Don't invalidate OTHER caches
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()
Miklos Szeredi <[email protected]>
fuse: fix NULL pointer dereference in fuse_request_find
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()
Denis Benato <[email protected]>
HID: asus: document and harden the worker teardown
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
Jemmy Wong <[email protected]>
sched/cache: Avoid publishing partial LLC utilization
Stian Halseth <[email protected]>
sched/cputime: Don't account idle time twice after dyntick-idle
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
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
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
Paolo Bertinetti <[email protected]>
ublk: hold RCU read lock in ublk_try_buf_match()
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
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
Yun Lu <[email protected]>
selftests/bpf: Fix map fd leak in no-BTF wq 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
Praveen Kumar Kannoju <[email protected]>
IB/mlx4: Avoid requeueing executing CM timeout work
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()
Koichiro Den <[email protected]>
PCI: endpoint: pci-epf-vntb: Track link state from both sides
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()
Akash Goel <[email protected]>
drm/panthor: Fix handling of NO_MMAP BOs
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
Ard Biesheuvel <[email protected]>
efi/runtime-wrappers: Don't park the worker after a recovered firmware fault
zhoumin <[email protected]>
ata: ahci: preserve preset port masks
Takashi Iwai <[email protected]>
ALSA: pcm: Add refcount for races between drain and unlink
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
Pengpeng Hou <[email protected]>
irqchip/sifive-plic: Avoid signed shift in interrupt enable mask
Pengpeng Hou <[email protected]>
irqchip/mst-intc: Validate the DT interrupt range
Arnd Bergmann <[email protected]>
irqchip/qcom-pdc: Fix linking against QCOM_SCM firmware
Krzysztof Kozlowski <[email protected]>
irqchip/qcom: Enable compile testing for QCOM_PDC and QCOM_MPM
Fuad Tabba <[email protected]>
irqchip/gic-v3-its: Clear vpt_page after freeing the pending table
Fuad Tabba <[email protected]>
irqchip/gic-v3: Release the partition node in gic_irq_get_fwspec_info()
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
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
Miguel Ojeda <[email protected]>
rust: zerocopy: fix link to upstream README.md
Sasha Levin <[email protected]>
selftests/exec: report the skipped binfmt_misc_bpf test on stderr
Long Zhao <[email protected]>
dt-bindings: vendor-prefixes: add Ambarella
Wentao Liang <[email protected]>
spmi: mtk-pmif: Fix clock reference leak in mtk_spmi_bus_probe()
AngeloGioacchino Del Regno <[email protected]>
spmi: mtk-pmif: Add workaround for FSM lockup/error in read operation
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
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
Petr Pavlu <[email protected]>
resolve_btfids: Fix the --fatal_warnings exit status
Sasha Levin <[email protected]>
selftests/nolibc: use the configured kernel header directory
Semih Baskan <[email protected]>
PCI: iproc: Use the EROM outbound window on BCMA
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
Luiz Augusto von Dentz <[email protected]>
Bluetooth: Fix the LE Read Connection Interval response layout
Kevin Dewald <[email protected]>
Bluetooth: hci_event: Fix LE link drop on remote features command status
Cen Zhang <[email protected]>
Bluetooth: MSFT: Serialize handle map cleanup with event processing
Luiz Augusto von Dentz <[email protected]>
Bluetooth: MGMT: Allow connection rate request as peripheral
Kiran K <[email protected]>
Bluetooth: btintel: Zero version data before parsing TLVs
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
Ravindra <[email protected]>
Bluetooth: btintel_pcie: clear the GP0 cause with a W1C write
Sergey Lebedev <[email protected]>
Bluetooth: btintel_pcie: verify and serialize D-state transitions
Kiran K <[email protected]>
Bluetooth: btintel_pcie: sync mbox tlv parsing with GP0 alive interrupt
Ravindra <[email protected]>
Bluetooth: btintel_pcie: fix PM flow for S0ix, S3 and S4
Vladimir V. Kondratyev <[email protected]>
Bluetooth: btintel_pcie: fix stale cache in set_dxstate fallback check
Chris Lu <[email protected]>
Bluetooth: btmtk: Improve BT firmware logging
Chris Lu <[email protected]>
Bluetooth: btmtk: Validate the firmware layout before parsing it
Chandrashekar Devegowda <[email protected]>
Bluetooth: btintel_pcie: remove duplicate BTINTEL_PCIE_MAGIC_NUM definition
Chandrashekar Devegowda <[email protected]>
Bluetooth: btintel_pcie: parse FW memory addresses via mailbox TLV
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: hold conn->lock for __l2cap_ecred_conn_rsp_defer
Pauli Virtanen <[email protected]>
Bluetooth: 6lowpan: avoid concurrent peer_del() in bt_6lowpan_disconnect
Pauli Virtanen <[email protected]>
Bluetooth: 6lowpan: use l2cap_chan_close_unlocked()
Pauli Virtanen <[email protected]>
Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()
Pauli Virtanen <[email protected]>
Bluetooth: L2CAP: add l2cap_chan_close_unlocked() and locking helpers
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
Avi Weiss <[email protected]>
rpmsg: mtk: release channel OF node on device teardown
Le Qi <[email protected]>
ASoC: codecs: da7213: Get MCLK in I2C probe
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
Pengpeng Hou <[email protected]>
PCI: eswin: Publish the platform driver OF alias
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
Leon Romanovsky <[email protected]>
dma-debug: Skip cacheline tracking for MMIO mappings
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
Shang En Sim <[email protected]>
platform/x86: hp-wmi: Fix hwmon keep-alive teardown
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
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
Ronald Claveau <[email protected]>
thermal/drivers/amlogic: Switch to clk_bulk API to support multiple clocks
Ronald Claveau <[email protected]>
dt-bindings: thermal: amlogic: describe bus clock for t7-thermal
Florian Fainelli <[email protected]>
tools/thermal/tmon: Fix string truncation warning in optarg copy
Vitaliy Sochnev <[email protected]>
thermal/drivers/airoha: Fix AN7583 ADC mux field mapping
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
Karl Mehltretter <[email protected]>
wifi: nxpwifi: return timeout error from nxpwifi_sdio_poll_card_status()
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
Danish Khateeb <[email protected]>
kselftest/filelock: plan for the five ofdlocks tests
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()
Shuvam Pandey <[email protected]>
accel/qaic: Protect perf stats BO state with bo->lock
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: mediatek: mt8196: propagate TDM clock errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8196: propagate I2S clock errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8196: fix runtime resume error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8196: propagate main clock errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8196: fix register access clock error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8196: fix MCK error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8196: fix APLL enable error handling
bui duc phuc <[email protected]>
ASoC: mediatek: mt8196: fix APLL mux error handling
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: 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: reject live migration on 64KB page with QM_HW_V3 hardware
Simon Song <[email protected]>
vfio/pci: Remove the core dependency on driver data
Longfang Liu <[email protected]>
hisi_acc_vfio_pci: fix NULL dereference in reset_prepare on PF passthrough
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Unpublish QP table before freeing it
Abhishek Mohapatra <[email protected]>
RDMA/bnxt_re: Use kvzalloc for QP table allocation
Heiko Carstens <[email protected]>
s390/percpu: Use asm_inline for arch_this_cpu_add()
Heiko Carstens <[email protected]>
s390/percpu: Rework to simplify percpu_entry() and percpu_exit()
Heiko Carstens <[email protected]>
s390/percpu: Use percpu code section for this_cpu_cmpxchg()
Heiko Carstens <[email protected]>
s390/percpu: Use percpu code section for this_cpu_xchg()
Heiko Carstens <[email protected]>
s390/percpu: Use percpu code section for this_cpu_cmpxchg128()
Heiko Carstens <[email protected]>
s390/percpu: Use __PCPU_BEGIN() and __PCPU_END() for inline assemblies
Heiko Carstens <[email protected]>
s390/percpu: Rename inline assembly symbolic names
Heiko Carstens <[email protected]>
s390/percpu/lowcore: Add and use LC_PERCPU lowcore offset defines
Heiko Carstens <[email protected]>
s390/percpu: Let MVIY_PERCPU() calculate alternative displacement
Heiko Carstens <[email protected]>
s390/percpu: Add sanity check to GEN_MVIY macro
Heiko Carstens <[email protected]>
s390/early: Fix early warning handling
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
Qu Wenruo <[email protected]>
iomap: follow the alignment requirement for iomap_dio_hole_iter()
Jagadeesh Kona <[email protected]>
clk: qcom: Fix camera rivian PLL configuration settings
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: gcc: Fix GPLL enable register offset for Nord SoC
Abel Vesa <[email protected]>
clk: qcom: gcc-kaanapali: Tie the CX power domain to controller
Abel Vesa <[email protected]>
clk: qcom: gcc-eliza: Tie the CX power domain to controller
Guangshuo Li <[email protected]>
soc: mpfs: use kref cleanup on probe failure
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
liyouhong <[email protected]>
fs/ntfs3: fix ntfs_fnd leak when compare function is missing
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: 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
David Heidelberg <[email protected]>
serial: qcom-geni: power the console back up on system resume
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()
Vikas Gupta <[email protected]>
bnge: skip dev_addr when building the VNIC unicast list
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
Helge Deller <[email protected]>
fbdev: atafb: avoid cast when assigning buffer address pointer
Helge Deller <[email protected]>
fbdev: atafb: fix sparse warnings
Myeonghun Pak <[email protected]>
fbdev: gxt4500: Release WC setup on probe failure
Abel Vesa <[email protected]>
platform: arm64: qcom-hamoa-ec: Disable the SCI IRQ during suspend
Shyam Sundar S K <[email protected]>
platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse
Patryk Pilichowski <[email protected]>
platform/x86: msi-wmi: Fix hotkeys dropped with vendor backlight
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()
Xi Pardee <[email protected]>
platform/x86/intel/pmc: Fix stale NVL PCD-S S0ix_LPM telemetry constants
Mario Limonciello <[email protected]>
platform/x86/amd: pmc: Drop scratch_reg from amd_1ah_m80_cpu_info
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
Dale Whinham <[email protected]>
platform/surface: aggregator_registry: Fix tablet-mode detection on Surface Pro 11
Dale Whinham <[email protected]>
platform/surface: aggregator_registry: Remove sensors device for Surface Pro 11
Arnd Bergmann <[email protected]>
platform/x86/amd/pmf: fix compat ioctl handling
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
Paulo Alcantara <[email protected]>
smb: client: log the selected security type on session setup failure
Jiale Yao <[email protected]>
wifi: ath12k: avoid IDR mutation during vif mgmt TX cleanup
Jiale Yao <[email protected]>
wifi: ath12k: avoid IDR mutation during pending 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
Aaradhana Sahu <[email protected]>
wifi: ath12k: Fix NAPI resource leaks in AHB external IRQ paths
Kunwu Chan <[email protected]>
rcutorture: Fix divide-by-zero with fwd_progress_div=1
Sebastian Andrzej Siewior <[email protected]>
srcu: Use IRQ_WORK_INIT_HARD for srcu's irq_work
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
Niklas Cassel <[email protected]>
PCI: Update saved Max Payload Size in pcie_set_mps()
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 duplicated code in fs state string in logged messages
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
Lorenzo Bianconi <[email protected]>
net: stmmac: align real_num_tx_queues to mqprio configuration
Lorenzo Bianconi <[email protected]>
net: stmmac: set real_num_tx_queues to max(offset + count)
David Zhang <[email protected]>
accel/amdxdna: Reject device heap BO when dev_mem_size is not set
Tal Zussman <[email protected]>
block: unpin all pages of a bvec in bio_iov_iter_align_down()
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: Add missing newlines in dev_err_probe() messages
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
Jiale Yao <[email protected]>
ACPI: PCI: pci_link: clear driver_data before free
Adrián Larumbe <[email protected]>
drm/panfrost: Fix races between perfcnt and reset sequence
Adrián Larumbe <[email protected]>
drm/panfrost: Introduce a reset lock
Adrián Larumbe <[email protected]>
drm/panfrost: Skip cache flush/invalidate when enabling perfcnt
Adrián Larumbe <[email protected]>
drm/panfrost: Move perfcnt GPU disable sequence into a helper
Adrián Larumbe <[email protected]>
drm/panfrost: Move lock and modparam initialisations into their subsystems
Adrián Larumbe <[email protected]>
drm/panfrost: Explicitly enable MMU interrupts at device init
Adrián Larumbe <[email protected]>
drm/panfrost: Fix PM refcnt and autosuspend issues at device probe/remove
Adrián Larumbe <[email protected]>
drm/panfrost: Move shrinker initialization and unplug one level down
Ali Ahmet Memiş <[email protected]>
ALSA: control_led: Fix deadlock between sysfs writes and card disconnect
Kaifeng Wang <[email protected]>
net: devmem: check uid and netns in net_devmem_get_binding()
Stanislav Fomichev <[email protected]>
net: devmem: embed net_iov_area in binding
Stanislav Fomichev <[email protected]>
net: devmem: replace gen_pool with freelist
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
Ricardo B. Marlière (SUSE) <[email protected]>
selftests/namespaces: Wait for thread exit via pidfd in active-ref tests
Alexei Starovoitov <[email protected]>
bpf: Reject BTF ids with the same address in tracing_multi link
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 pop from an overflowed seq_buf
Kees Cook <[email protected]>
seq_buf: Do not print an empty line from an overflowed seq_buf_do_printk()
Mukesh Kumar Chaurasiya (IBM) <[email protected]>
powerpc/kasan: fix r2 corruption in mem*() on GENERIC_ENTRY with old compilers
Mukesh Kumar Chaurasiya (IBM) <[email protected]>
powerpc: fix NMI exit ordering: restore soft masks after irqentry_nmi_exit()
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
Breno Leitao <[email protected]>
mailbox: pcc: Free the channel before unmapping the shared memory
Swark Yang <[email protected]>
mailbox: axiado: fix debugfs name truncation warning
Swark Yang <[email protected]>
mailbox: axiado: fix RX frame draining and error handling
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Preserve the LCPA I/O address space
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
Jacob Moroni <[email protected]>
RDMA/core: Clear driver_udata before destroying objects in rdma_core
Quanye Yang <[email protected]>
RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq
Maksim Krasutski <[email protected]>
ALSA: hda/realtek: Fix mute LEDs on HP ENVY 17-cr1xxx
Ali Ahmet Memiş <[email protected]>
ALSA: seq: Wait for one RCU grace period when deleting all ports
Kees Cook <[email protected]>
kbuild: Mark the initcall ordering recipe as recursive
Rahul Pon <[email protected]>
drm/msm/a8xx: report the GMEM size of the active slices
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
Chukun Pan <[email protected]>
arm64: dts: rockchip: remove FRL GPIO for 100ASK DshanPi A1
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
Dave Jiang <[email protected]>
cxl/port: Attach endpoints to a dport under the lock that pins it
Dave Jiang <[email protected]>
cxl/core: Hold the dport host lock across dport lookup and use
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
Eduard Zingerman <[email protected]>
bpf: Save DFS postorder numbers for program instructions
Eduard Zingerman <[email protected]>
bpf: Fix arg_track_xfer() for atomic stack spills and fills
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Size liveness stack masks by the stack each frame uses
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Widen the stack slot index in the jump history
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: Wait for RCU readers before freeing state
Leon Romanovsky <[email protected]>
PCI/P2PDMA: Do not tear down the allocate attribute on registration failure
Marek Szyprowski <[email protected]>
dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case
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()
Qiliang Yuan <[email protected]>
selftests: ublk: make the fault_inject delay a pure timeout
Qiliang Yuan <[email protected]>
selftests: ublk: don't keep the fault_inject timespec on the stack
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: nl80211: reject zero RNR/MBSSID elements
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
Yury Norov <[email protected]>
lib: fix lock initialization in region allocation benchmark
Haotian Zhang <[email protected]>
cpufreq: qcom-cpufreq-hw: fix device node refcount leak in phandle parsing
Vineeth Karumanchi <[email protected]>
net: macb: configure ENST registers for all queues
Eric Dumazet <[email protected]>
bng_en: pad short frames before sampling nr_frags
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: Don't keep a freed topology name in the static card
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
George Abraham P <[email protected]>
crypto: qat - force an edge when re-enabling all VF2PF interrupts
Vincent Jardin <[email protected]>
crypto: caam/qi,qi2 - set plain_keylen for skcipher descriptors
Takashi Iwai <[email protected]>
ALSA: hda: Don't free card at probe error in vga_switcheroo handler
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: core: Fix leaks at snd_card_init() error paths
Takashi Iwai <[email protected]>
ALSA: aloop: Avoid a bad mixure of guard() and goto
Takashi Iwai <[email protected]>
ALSA: info: Fix memory leak at card removal
Takashi Iwai <[email protected]>
ALSA: pcmtest: Fix leak at probe error
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: usb-audio: Fix mixer bitmap cache over 32 channels
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
Takashi Iwai <[email protected]>
ALSA: seq: Drop the bogus RCU guard from clientptr()
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
Felix Hoffmann <[email protected]>
wifi: mm81x: validate YAPS receive framing
Lorenzo Bianconi <[email protected]>
net: stmmac: fix TX coalesce race and div-by-zero in XDP/legacy path
Dmitry Morgun <[email protected]>
fs/ntfs3: check return values in indx_delete_entry()
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: mt8189: 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: declare amdgpu_dm_atomic_state_template as an event class
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: keep beacons from queueing the scan work during an abort
John Crispin <[email protected]>
wifi: mt76: scan all radios of a request at the same time
Felix Fietkau <[email protected]>
wifi: mt76: mt792x: compute the assoc RSSI from the chain signals
Felix Fietkau <[email protected]>
wifi: mt76: mt7921: fix of_node reference leaks in regd update
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
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: fix PLE free page and AC queue register offsets
Howard Hsu <[email protected]>
wifi: mt76: mt7996: do not add a station link in disconnected state
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: keep 4-address and decap state per station
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: add the station BMC entry as new once per BSSID
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: keep a returning link when adding station links fails
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: do not reuse the deflink of a removed station link
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: make a returning link primary if a station has none
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: pick the secondary link from links with driver state
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: free the WTBL index if a link allocation fails
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: find the last MLD link among the links torn down
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: size the MLD setup TLV by the links it describes
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: update the address of an AP link that is added again
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
Eason Lai <[email protected]>
wifi: mt76: mt7925: Fix MCU command timeouts during module unload
Mahesh Saran <[email protected]>
wifi: mt76: mt7921: clear WM2 from MT7902 RX all_complete_mask
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
Ethan Tidmore <[email protected]>
wifi: mt76: mt7925: Remove useless condition
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()
Chris Scott <[email protected]>
wifi: mt76: mt7996: refresh the tx BA session timer on NPU devices
Cristian Papa <[email protected]>
wifi: mt76: mt7603: don't drop short frames looped back on PS entry
Ryan Leung <[email protected]>
wifi: mt76: mt7915: fix thermal zone use-after-free
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
Devin Wittmayer <[email protected]>
wifi: mt76: mt792x: defer the MCU shutdown past unregister on USB
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
Andrei Rusu de Castro <[email protected]>
wifi: mt76: mt7925: keep MLD membership consistent during link add
Arnd Bergmann <[email protected]>
wifi: mt76: mt7996: add NET_AIROHA dependency
Jiale Yao <[email protected]>
wifi: mt76: mt76x02: validate RX padding before use
Charlie-cy Wu <[email protected]>
wifi: mt76: connac2: fill TXD spe_idx for connac2 fixed-rate frames
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
Jacobs Wu <[email protected]>
wifi: mt76: mt7925: fix HT/VHT caps and rates for NAN NDP peers
Jacobs Wu <[email protected]>
wifi: mt76: mt7925: support deferred NAN schedule update and cluster events
Stella Liu <[email protected]>
wifi: mt76: mt7925: configure NAN PHY setting on enable
Stella Liu <[email protected]>
wifi: mt76: mt7925: add ULW event handling and peer ULW update
Stella Liu <[email protected]>
wifi: mt76: mt7925: clear CRB before deactivating NAN peer record
Stella Liu <[email protected]>
wifi: mt76: mt7925: fill all DW intervals in NAN avail_map
Stella Liu <[email protected]>
wifi: mt76: mt7925: replace NAN DW end event with DW start
Stella Liu <[email protected]>
wifi: mt76: mt7925: share TLV setup for NAN enable command
Stella Liu <[email protected]>
wifi: mt76: mt7925: use OFDM-only PHY mode for NAN STA records
Stella Liu <[email protected]>
wifi: mt76: mt7925: drop deferred NAN local schedule update handling
Stella Liu <[email protected]>
wifi: mt76: mt7925: drop unused NAN 2.4/5 GHz support config
Stella Liu <[email protected]>
wifi: mt76: mt7925: report only 2.4 GHz NAN supported band
Stella Liu <[email protected]>
wifi: mt76: mt7925: fix NAN committed CRB timeline layout
Stella Liu <[email protected]>
wifi: mt76: mt7925: fix NAN start failure
Stella Liu <[email protected]>
wifi: mt76: mt7925: fix NAN NDP STA record role index
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: 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: Fix wrong size expectation for events
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()
Muhammad Bilal <[email protected]>
wifi: mm81x: check bytes_remaining before reading delimiter
Aamir Ahmed <[email protected]>
wifi: mm81x: validate n_channels in disabled channels response
Samuele Yang <[email protected]>
wifi: mm81x: start beaconing on beacon enable not interface add
Lachlan Hodges <[email protected]>
wifi: mm81x: move beacon work and init below the tx op
Joseph Qi <[email protected]>
ocfs2: reject inconsistent xattr bucket during defrag
Joseph Qi <[email protected]>
ocfs2: allow xattr bucket entries to span multiple blocks
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
Joseph Qi <[email protected]>
ocfs2: defer suballocator block group reclaim to workqueue
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
Tejun Heo <[email protected]>
sched_ext: Clear a sub-scheduler's caps before ops.sub_detach()
Karl Mehltretter <[email protected]>
rcuref: Fix the rcuread_is_dead reference in rcuref_read() kernel-doc
Kuppuswamy Sathyanarayanan <[email protected]>
PCI/ACPI: Centralize pcie_ports_native checking
Kuppuswamy Sathyanarayanan <[email protected]>
PCI/ACPI: Tidy _OSC control bit checking
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
Xu Yunxiang <[email protected]>
bpf: Destroy callee-local dynptrs on subprog return
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
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
Scott Gauche <[email protected]>
ALSA: hda/realtek: Fix audio after Windows reboot on ASUS Q423SA
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
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
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: Recover coalesced cyclic callbacks
Linus Walleij <[email protected]>
dmaengine: ste_dma40: Fix cyclic transfer residue
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
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
Qing Ming <[email protected]>
dlm: validate node weights before building member array
Karl Mehltretter <[email protected]>
floppy: flush pending work before releasing resources on init failure
Aamir Ahmed <[email protected]>
wifi: nxpwifi: validate variable IE lengths in beacon parser
Jeff Chen <[email protected]>
wifi: nxpwifi: fix missing error codes in _nxpwifi_fw_dpc()
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
Logan Gunthorpe <[email protected]>
dmaengine: switchtec-dma: fix channel leak on registration failure
Logan Gunthorpe <[email protected]>
dmaengine: switchtec-dma: fix resource leak in alloc_chan_resources
Logan Gunthorpe <[email protected]>
dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()
Dmitry Baryshkov <[email protected]>
drm/msm/a5xx: don't read the GPMU registers on GPUs without a GPMU
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_scm: align PAS resource table retry
Mukesh Ojha <[email protected]>
firmware: qcom_scm: handle empty PAS resource table
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
Dennis Gilmore <[email protected]>
arm64: dts: rockchip: Use GPIO function for PCIe reset on Orange Pi 5 Pro
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
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
Arnd Bergmann <[email protected]>
perf: marvell: avoid large stack variables
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
Nicolin Chen <[email protected]>
iommu/arm-smmu-v3: Don't rb_erase() a never-inserted stream node
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
Cristian Ciocaltea <[email protected]>
phy: rockchip: samsung-hdptx: Handle PHY config after module reload
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
David Carlier <[email protected]>
phy: qcom: qmp-pcie: Check clock-output-names count in the multi-PHY driver
Krishna Chaitanya Chundru <[email protected]>
phy: qcom: qmp-pcie: Refactor common multiphy handling
David Carlier <[email protected]>
phy: qcom: qmp-pcie: Select MFD_SYSCON for the multi-PHY driver
Bruno Banelli <[email protected]>
phy: spacemit: fix K1 USB 2.0 PHY Kconfig dependencies
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: Enforce physical block alignment of zoned writes
Damien Le Moal <[email protected]>
scsi: scsi_debug: Use combined sense codes
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
Niklas Cassel <[email protected]>
scsi: scsi_debug: Avoid 32-bit overflow in WRITE SCATTERED offsets
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()
Yuan Chen <[email protected]>
bpf: Roll back freplace link state when bpf_arch_text_poke() fails
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
Yeoreum Yun <[email protected]>
coresight: etm4x: fix inconsistencies with sysfs configuration
Yeoreum Yun <[email protected]>
coresight: etm4x: prohibit modifying cntr_val while session is enabled
Yeoreum Yun <[email protected]>
coresight: etm4x: Prohibit TRCSEQSTR modifications while tracing enabled
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
Ben Horgan <[email protected]>
arm_mpam: resctrl: Don't stop early when tearing down a class
Ben Horgan <[email protected]>
arm_mpam: Switch to kvzmalloc_objs() for allocation of component cfg
Ben Horgan <[email protected]>
arm_mpam: Don't loop forever if there is the maximum possible amount of PARTIDs
Ben Horgan <[email protected]>
arm_mpam: resctrl: Make read_mon_cdp_safe() self consistent
Ben Horgan <[email protected]>
arm_mpam: resctrl: Correct check that existing class is L3
Ben Horgan <[email protected]>
arm_mpam: Initialize all of struct mon_read in mpam_restore_mbwu_state()
Ben Horgan <[email protected]>
arm_mpam: Use __ris_msmon_read() for saving MBWU state
Ben Horgan <[email protected]>
arm_mpam: Ensure MBWU counters are reset on restore
Ben Horgan <[email protected]>
arm_mpam: Add missing mon_sel locking in MBWU save and restore
Ben Horgan <[email protected]>
arm_mpam: Set mpam_feat_msmon_mbwu_31counter when there are bandwidth counters
James Clark <[email protected]>
perf python: Track linked libraries as extension dependencies
Mostafa Saleh <[email protected]>
iommu/arm-smmu-v3-test: Fix UBSAN error
Mostafa Saleh <[email protected]>
iommu/arm-smmu-v3-test: Fix OOB in arm_smmu_v3_invs_test_verify()
Mostafa Saleh <[email protected]>
iommu/arm-smmu-v3-test: Add missing error checks for inv array
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
Emil Tsalapatis <[email protected]>
bpf: Add sleepable arena page allocation path
Emil Tsalapatis <[email protected]>
bpf: Add sleepable argument to bpf_alloc_pages()
Emil Tsalapatis <[email protected]>
bpf: Use an llist for page allocations
Jiayuan Chen <[email protected]>
bpf: arena: Allocate the fault-in page outside the lock
Yuri Zaporozhets <[email protected]>
ASoC: dwc: Use OF match data again for StarFive JH7110
Junhui Liu <[email protected]>
riscv: dts: spacemit: k3: Replace incorrect CLINT node with ACLINT nodes
Junhui Liu <[email protected]>
dt-bindings: timer: sifive,clint: Remove spacemit,k3-clint
James Morris <[email protected]>
riscv: dts: spacemit: k3-com260: keep dldo4 enabled
Aurelien Jarno <[email protected]>
riscv: dts: spacemit: k3: move USB3 phy to board level
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
Markus Schneider-Pargmann (TI) <[email protected]>
clocksource/drivers/timer-ti-dm: Register clocksource/event only for am654
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
Arnd Bergmann <[email protected]>
drm/panel: fix novatek-nt36536 dependencies
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
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
Mikko Perttunen <[email protected]>
ARM: tegra: Add core supply for Tegra114 boards
Lance Yang <[email protected]>
mm/memory_hotplug: fix missing rollback in __add_pages()
Chuanhong Guo <[email protected]>
pinctrl: mediatek: mt7629: fix the 2.4 GHz Wi-Fi pin mode array
Kate Hsuan <[email protected]>
media: i2c: imx471: Fix register size for IMX471_REG_DPGA_USE_GLOBAL_GAIN
Thiébaud Weksteen <[email protected]>
rust: macros: allow non-ASCII characters in authors
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
Bjorn Helgaas <[email protected]>
PCI: tegra264: Fix Link Capabilities register offset
Arnd Bergmann <[email protected]>
drm/amd/display: fix unused function warnings
YiPeng Chai <[email protected]>
drm/amd/ras: use __le32 pointer type to resolve the sparse warnings
Jesse Zhang <[email protected]>
drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset
Dmytro Laktyushkin <[email protected]>
drm/amd/display: Enable dcn42 pstate pmo
Bjoern Doebel <[email protected]>
selftests/rdma: Skip rxe_sent_rcvd_bytes when rdma_rxe is missing
Charlene Liu <[email protected]>
drm/amd/display: Fix zero dlg_reg write to program_ext_vblank
Ian Rogers <[email protected]>
perf thread_map: Add thread_map__tgid()
Ian Rogers <[email protected]>
perf trace: Copy sockaddr arguments by their length
Lu Yao <[email protected]>
drm/amdkfd: drop KFD_QUEUE_TYPE_DIQ note
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()
Nam Cao <[email protected]>
rv/rtapp/wakeup: Use "rv_this" the rv_monitor variable
Wen Yang <[email protected]>
rv: Use LD_WAIT_SPIN as the reactor lockdep wait type
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
Barnabás Pőcze <[email protected]>
media: rcar-isp: ispcore: Fix inconsistent step sizes
Christopher Snowhill <[email protected]>
media: em28xx: hold the vb2 queue lock when releasing the queue on close
Cong Nguyen <[email protected]>
staging: media: tegra-video: fix syncpoint leak in tegra20 channel init
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
Nathan Chancellor <[email protected]>
serial: 8250_mid: Add missing module namespace import for SERIAL_8250
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
Chancel Liu <[email protected]>
pinctrl: pinctrl-generic-mux: Fix provider resource leak on re-parse
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
Maíra Canal <[email protected]>
drm/vc4: Use drm_timeout_rel_to_jiffies()
Maíra Canal <[email protected]>
drm: Add drm_timeout_rel_to_jiffies()
Maíra Canal <[email protected]>
drm: Move drm_timeout_abs_to_jiffies() to drm_timeout.c
Abel Vesa <[email protected]>
arm64: dts: qcom: kaanapali: Add GCC CX power domain
Przemek Kitszel <[email protected]>
ice: size ring stats arrays from the final queue count
Przemek Kitszel <[email protected]>
ice: rebuild ring stats arrays instead of reallocating them in place
Przemek Kitszel <[email protected]>
ice: extract ice_vsi_get_num_qs()
Przemek Kitszel <[email protected]>
ice: extract ice_vsi_new_stat_arrays()
Przemek Kitszel <[email protected]>
ice: extract __ice_vsi_free_stats()
Przemek Kitszel <[email protected]>
ice: skip stats handling for channel VSIs on rebuild
Lu Yao <[email protected]>
drm/amd/display: Fix wrong plane index in dcn6 writeback latency loop
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
Tianyi Chen <[email protected]>
perf sched stats: Reject mismatched or incomplete snapshots
Leo Yan <[email protected]>
perf build: Build the Python extension before pylint consumers
Waiman Long <[email protected]>
cgroup/cpuset: Use cpuset_v2() in cpuset_num_cpus()
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
Seongjae Jeong <[email protected]>
f2fs: reject device aliasing without a multi-device configuration
Arnd Bergmann <[email protected]>
f2fs: quota: fix unused-label warning
Gabor Juhos <[email protected]>
spi: spi-qpic-snand: set 'qpic_version2' flag
Takashi Iwai <[email protected]>
ALSA: usb-audio: Fix UAC2 mixer unit request handling
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
Nicolas Schier <[email protected]>
kconfig: tests: Reset all KCONFIG_* env variables by default
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
Crystal Wood <[email protected]>
rtla/tests: Use absolute path for $RTLA
Sasha Levin <[email protected]>
RDMA/selftests: Fix the kernel config fragment
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
Nicolas Schier <[email protected]>
kbuild: Mark usr_gen_init_cpio as no-dot-config-target
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
Ian Rogers <[email protected]>
perf evsel: Clamp sample_id size for ksymbol, bpf, and text_poke events
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
Binbin Deng <[email protected]>
RDMA/rxe: unpublish the per-net tunnel socket before
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
Dario Binacchi <[email protected]>
clk: validate spread spectrum configuration
Venkat Rao Bagalkote <[email protected]>
powerpc/interrupt: Use early_radix_enabled() in NMI real-mode guard
Abhishek Dubey <[email protected]>
powerpc/bpf: Move out dummy_tramp_addr after Long branch stub
Abhishek Dubey <[email protected]>
powerpc64/bpf: fix compare instruction emitted for tailcall
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: guard against a NULL hfi_sys_ops in the interrupt handler
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
Dmitry Baryshkov <[email protected]>
Revert "media: iris: Add Gen2 firmware autodetect and fallback"
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: Serialize dcb_wq access against async notifier
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
Jeff Chen <[email protected]>
wifi: nxpwifi: fix return value check in change_vif_to_sta/ap
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: imx95-15x15-frdm: fix reserved memory node names for remoteproc
Peng Fan <[email protected]>
arm64: dts: imx93-11x11-evk: fix reserved memory node names for remoteproc
Peng Fan <[email protected]>
arm64: dts: imx8dxl-sr-som: fix reserved memory node names for remoteproc
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: imx93-11x11-frdm: fix reserved memory node names for remoteproc
Joseph Guo <[email protected]>
arm64: dts: imx93-11x11-frdm: factor out common parts into dtsi
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.
Ian Rogers <[email protected]>
perf vendor events intel: Fix lunarlake umask encoding.
Ian Rogers <[email protected]>
perf vendor events intel: Fix clearwaterforest umask encoding.
Francesco Dolcini <[email protected]>
arm64: dts: ti: k3-am62-verdin-zinnia: Fix main_gpio0/main_gpio1 line names size
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
Benoît Monin <[email protected]>
perf build: Improve fix for "argument list too long" error
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: 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
Leo Yan <[email protected]>
perf test: Record kcore for the CoreSight callchain test
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
Ariana Lazar <[email protected]>
iio: dac: mcp47feb02: protect EEPROM store sequence with mutex
Lad Prabhakar <[email protected]>
dt-bindings: iio: adc: renesas,r9a09g077-adc: Drop unwired interrupts
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 QP event handler before firmware QPC insertion
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/vmw_pvrdma: Pin QP and SRQ rings writable to match device DMA write access
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
Andrei Otcheretianski <[email protected]>
wifi: mac80211: implement NAN non-evacuable channels
Andrei Otcheretianski <[email protected]>
wifi: cfg80211: add NL80211_CMD_NAN_SET_NON_EVAC_CHANNELS
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: Do not ignore context table copy failures
Zhenzhong Duan <[email protected]>
iommu/vt-d: Fix page table level calculation in compute_vasz_lg2_ss()
Johannes Berg <[email protected]>
um: time-travel: fix sched_yield() behaviour
Konrad Dybcio <[email protected]>
arm64: dts: qcom: glymur-asus-zenbook-a16: Remove RTC-through-EFIvars
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
Xin Liu <[email protected]>
arm64: dts: qcom: purwa-iot-evk: use on-board crystal for PS8830 retimers
Phil Sutter <[email protected]>
netfilter: nfnetlink: Fix for interrupted hook dumps
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
Sam Day <[email protected]>
drm/msm/a3xx: fix VBIF halt mask for A306/A306A
Akhil P Oommen <[email protected]>
drm/msm/a6xx: Fix RPMH dependency votes
Akhil P Oommen <[email protected]>
drm/msm/a6xx: Fix secondary rail vote in ARC votes
Akhil P Oommen <[email protected]>
drm/msm/a6xx: Honor perfmode_bw threshold on A8x
Daniel Palmer <[email protected]>
m68k: apollo: Fix interrupt setup
Hui Su <[email protected]>
perf synthetic-events: Check schedstat domain allocation failure
Jie Zhang <[email protected]>
dt-bindings: display/msm/gmu: Fix Glymur's compatible
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: dec: Add missing <linux/interrupt.h> inclusion to reset.h
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
Danish Khateeb <[email protected]>
tools/nolibc: fix readdir_r() with 64-bit directory offsets
Peter Wang <[email protected]>
scsi: ufs: core: Serialize AHIT register access between sysfs and host driver
Peter Wang <[email protected]>
scsi: ufs: core: Always notify POST_CHANGE even on gear switch failure
Tony Luck <[email protected]>
x86/resctrl: Update documented unit for the "activity" event
Eric Dumazet <[email protected]>
net: synchronize proc_do_rss_key() with netdev_rss_key_fill()
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Skip zero-length stream writes
Daniel Borkmann <[email protected]>
bpf: Clear the insn array used flag with release semantics
Daniel Borkmann <[email protected]>
bpf: Clear insn array jitted pointers on map reuse
Daniel Borkmann <[email protected]>
bpf: Don't remove indirect jump targets in the nop removal pass
Daniel Borkmann <[email protected]>
bpf: Leave out the hidden exit edge of a subprogram without an exit
Daniel Borkmann <[email protected]>
bpf: Rebase the exception callback subprog when dead subprogs are removed
Daniel Borkmann <[email protected]>
bpf: Bound the number of indirect jump edges in a program
Daniel Borkmann <[email protected]>
bpf: Avoid quadratic successor rescan in bpf_compute_scc
Vinayak Katoch <[email protected]>
arm64: dts: qcom: agatti: Add memory-region for audio PD
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
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
Mohd Ayaan Anwar <[email protected]>
arm64: dts: qcom: lemans-evk: 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: Free channel on OpRegion deactivation
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()
Arnaldo Carvalho de Melo <[email protected]>
perf test workload: Use unsigned int in code_with_type instead of uint
Abel Vesa <[email protected]>
dt-bindings: clock: qcom: sm8750-gcc: Add CX power domain
Xin Yin <[email protected]>
writeback: size foreign flushes by target wb dirty pages
Pardeep Kaur <[email protected]>
wifi: ath12k: fix out-of-bounds access on TX stats arrays
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
Kang Yang <[email protected]>
wifi: ath12k: fix skb leak on monitor PPDU ID wraparound
Kang Yang <[email protected]>
wifi: ath12k: place dp_mon_mpdu on stack in mon dst reap loop
Kang Yang <[email protected]>
wifi: ath12k: fix stale tail_msdu pointer returned from mpdu_pop
Kang Yang <[email protected]>
wifi: ath12k: free pending MSDUs on duplicate mon link descriptor
Kang Yang <[email protected]>
wifi: ath12k: fix skb leak on paddr mismatch in wifi7 mon RX pop
Arnd Bergmann <[email protected]>
ASoC: amd: acp: add EFI dependency for selecting TAS2783
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
Jiebin Sun <[email protected]>
perf tests c2c: Report skip when the workload fails
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: x1-asus-vivobook-s15: 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: medion-sprchrgd-14-s1: 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: honor-magicbook-art-14: 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
Ian Rogers <[email protected]>
perf machine: Add session back pointer to fix out of bounds read
Yibo Tan <[email protected]>
sysctl: unregister tables before freeing bitmap
Michael J. Ruhl <[email protected]>
platform/x86/intel/pmt: complete pcidev to device update
Sandipan Das <[email protected]>
perf jevents: Limit the number of JSON reading workers
Joanne Koong <[email protected]>
fuse: zero the correct range on a short read reply
Tengda Wu <[email protected]>
perf llvm: Fix memory leak of args->fileloc in symbol__disassemble_llvm()
Hao Sun <[email protected]>
bpf: Fix uninit read for helper mem args on partially spilled slots
Shrikanth Hegde <[email protected]>
powerpc/ftrace: Don't restore r13 during ftrace_regs_caller
Hao Sun <[email protected]>
bpf: Fix uninit read for non-fetch atomics on partially spilled slots
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
Alexei Starovoitov <[email protected]>
bpf: Don't converge a loop on an iterator that was created anew
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Add accessors for verifier stack slots
Alexei Starovoitov <[email protected]>
bpf: Fix overflow of jump offset in may_goto expansion
Alexei Starovoitov <[email protected]>
bpf: Adjust pc-relative insn copied into its own patch
Alexei Starovoitov <[email protected]>
bpf, x86: Fix timed may_goto with private stack
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
James Clark <[email protected]>
perf buildid-list: Fix empty output for AUX data
Jens Remus <[email protected]>
perf evsel: Improve callchain warning for s390
bui duc phuc <[email protected]>
ASoC: mediatek: mt8188: fix clk leak on error in audsys_clk_register
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
Puranjay Mohan <[email protected]>
bpf: Look at frame 0 when telling async callback entries apart
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
Danish Khateeb <[email protected]>
tools/nolibc: fix verrx() and errx() message formatting
Syed Saba Kareem <[email protected]>
ASoC: amd: acp: fix TAS2783 SoundWire codec unmet dependencies
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
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Check fastcall stack contract once for all stack accesses
Dmitrii Tulnov <[email protected]>
kconfig: warn about malformed KCONFIG_PROBABILITY values
Lizhi Hou <[email protected]>
accel/amdxdna: Preallocate hardware context schedulers
Matteo Kloiber <[email protected]>
rust: scatterlist: honor the device's maximum 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
Charles Keepax <[email protected]>
mfd: cs42l43: Move cancel_work_sync() into remove
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
Lad Prabhakar <[email protected]>
arm64: dts: renesas: r9a09g087: Drop unwired ADC interrupts
Lad Prabhakar <[email protected]>
arm64: dts: renesas: r9a09g077: Drop unwired ADC interrupts
Marek Vasut <[email protected]>
arm64: dts: renesas: ironhide: Align inline ECC carveout sizes with bootloader settings
Rong Zhang <[email protected]>
leds: class: Remove hardware control trigger when writing brightness
Rong Zhang <[email protected]>
leds: trigger: Move led_trigger_is_hw_controlled() to the right place
Rong Zhang <[email protected]>
leds: class: Always protect brightness_show() with led_access
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
Yuan Chen <[email protected]>
bpf: Keep target extended until its last freplace link detaches
Danish Khateeb <[email protected]>
tools/nolibc: fix WIFSIGNALED() for status 0
Srinivas Kandagatla <[email protected]>
clk: qcom: fix SM6115 lpasscc register offset
Sivansh Gupta <[email protected]>
clk: qcom: Fix CLK_GLYMUR_GPUCC default and CLK_GLYMUR_EVACC duplicate
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
Taniya Das <[email protected]>
clk: qcom: nwgcc-nord: Add video axi clock resets for Nord
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
Srinivasan Shanmugam <[email protected]>
drm/amd/display: Fix null deref of link_enc in dce110_enable_tmds_link_output
Fangzhi Zuo <[email protected]>
drm/amd/display: Restore FreeSync VCP code check for HDMI/PCON sinks
Fangzhi Zuo <[email protected]>
drm/amd/display: Force FreeSync range minimum on quirky panels
Linus Walleij <[email protected]>
ARM: dts: ux500: Convert HREF audio to audio-graph-card2
Lijo Lazar <[email protected]>
drm/amdgpu: Move GC v12.1 spm vmid init to hw init
Lijo Lazar <[email protected]>
drm/amdgpu: Add workaround to enable GCv12.1 MGCG
Le Ma <[email protected]>
drm/amdgpu: disable GFX clockgating for GC 12.1.0
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()
Varun Gupta <[email protected]>
drm/pagemap: Drop ratelimiting from dev_unhold_work debug trace
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
Stefan Wahren <[email protected]>
dt-bindings: phy: ti,tcan104x-can: Fix property constrains
Li RongQing <[email protected]>
RDMA/mlx5: Use DEFINE_RAW_FLEX for leftovers flow attributes
Linmao Li <[email protected]>
serial: 8250_mxpcie: take the line settings from the new termios
Linmao Li <[email protected]>
serial: 8250_mxpcie: only unregister the ports that were registered
Linmao Li <[email protected]>
serial: 8250_mxpcie: set the driver data before registering ports
Tate Whiteberg <[email protected]>
serial: 8250_mid: wait for LSR tx empty before setting termios
Tate Whiteberg <[email protected]>
serial: 8250: export and rename wait_for_xmitr()
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
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
Ahsan Atta <[email protected]>
crypto: qat - hold cfg->lock when accessing config sections
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
Jérémy Jean <[email protected]>
crypto: asymmetric_keys/pkcs7 - Check all signers before waiving authattrs rejection
Jérémy Jean <[email protected]>
crypto: asymmetric_keys/x509 - copy X.509 TBS for data signature algorithms
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: preserve RX requests across recoverable transfer errors
Kim Wooseok <[email protected]>
wifi: rtl8xxxu: unwind incomplete receive startup
Kim Wooseok <[email protected]>
wifi: rtl8xxxu: free RX skb when URB submission fails
Ping-Ke Shih <[email protected]>
wifi: rtw89: correct dependency of the multicolor LED
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
Mauricio Faria de Oliveira <[email protected]>
x86/boot: Remove redundant "cc" clobber in memcmp() and document it
Hisam Mehboob <[email protected]>
vfio: selftests: Include <libgen.h> for basename() on non-glibc builds
Cheng-Yang Chou <[email protected]>
selftests/sched_ext: Fix rt_stall runner abort
Xueqin Luo <[email protected]>
cpufreq/amd-pstate: Restore previous EPP if profile_name allocation fails
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()
Zhijian Han <[email protected]>
PCI: imx6: Fix resource leaks in probe error paths
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
Francesco Dolcini <[email protected]>
arm64: dts: ti: k3-am69-aquila: fix AQUILA_B73 gpio-line-names typo
Judith Mendez <[email protected]>
arm64: dts: ti: k3-am62l-evm: Remove unnecessary internal pullups for MMC0
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
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
Hui Su <[email protected]>
perf synthetic-events: Fix schedstat event lifetime handling
Haibo Chen <[email protected]>
leds: pca9532: Check i2c_smbus_read_byte_data() return value
Christian Brauner <[email protected]>
selftests/coredump: discard the right amount after the coredump request
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
Kees Cook <[email protected]>
randstruct: fix container_of() false positives after __mptr removal
Arnd Bergmann <[email protected]>
KMSAN: fix memset() when using fortify-source, again
Jack Wang <[email protected]>
md: fix mddev_unlock() called without holding lock in lbs_store()
Arnd Bergmann <[email protected]>
sfc: fix CONFIG_CXL_MEM dependency
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: Restrict HDR modes to those supported by the bus and target
Adrian Hunter <[email protected]>
i3c: mipi-i3c-hci: Stop rings gracefully when suspending
Adrian Hunter <[email protected]>
i3c: mipi-i3c-hci: Move DMA suspend/resume callbacks
Adrian Hunter <[email protected]>
i3c: mipi-i3c-hci: Process multiple IBIs per interrupt
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
Adrian Hunter <[email protected]>
i3c: master: Match ACPI targets to the correct bus controller instance
Yun Lu <[email protected]>
selftests/bpf: Clean up child when task_work__open() fails
Arnd Bergmann <[email protected]>
bpf: Add printf attributes
Leon Hwang <[email protected]>
bpftool: Compute map size of light skeletons at runtime
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
Ovidiu Panait <[email protected]>
drivers/thermal/renesas/rzg3e: Fix signed integer overflow in temp_to_code()
Neil Armstrong <[email protected]>
dt-bindings: vendor-prefixes: add vendor prefix for Nexperia B.V.
Geert Uytterhoeven <[email protected]>
pmdomain: renesas: r8a78000: Fix lockdep false positive
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()
Frank Wunderlich <[email protected]>
arm64: dts: mediatek: mt7988a-bpi-r4pro: label gpio-hogs
Maciej Strozek <[email protected]>
ASoC: SDCA: Check return value on a missing FDL_Set_Index Range
Maciej Strozek <[email protected]>
ASoC: SDCA: Improve scanning the SWFT during FDL
Andrew Gaylard <[email protected]>
pinctrl: fix PINCTRL_SPPCTL=m
Cristian Ciocaltea <[email protected]>
drm/connector: hdmi: Handle reset() state allocation failure
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
Ian Rogers <[email protected]>
perf libbfd: Report success when an address is found
Ian Rogers <[email protected]>
perf dso: Separate libbfd and cmd addr2line caches to fix confusion
Ian Rogers <[email protected]>
perf libdw: Fix Dwfl discovery with split files
Zide Chen <[email protected]>
perf topdown: Don't require config1==0 for a slots event
Alejandro Lucero <[email protected]>
ACPI: HMAT: preserve hmat_adist_nb notifier block
Guixin Liu <[email protected]>
cxl/memdev: Fix deadlock between poison debugfs and cxl_mem unbind
Guixin Liu <[email protected]>
driver core: Add conditional guard support for device_trylock()
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
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
Varun Gupta <[email protected]>
drm/pagemap: Prevent CPU stalls during unbounded pagemap teardown
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()
Gary Guo <[email protected]>
rust: pin-init: internal: init: emit slot using mixed site hygiene
Mohamad Alsadhan <[email protected]>
rust: pin-init: internal: init: support tuple struct constructor syntax
Mohamad Alsadhan <[email protected]>
rust: pin-init: internal: init: support tuple structs in [pin_]init!
Konrad Dybcio <[email protected]>
interconnect: qcom: use 64-bit SMD RPM bus votes
Konrad Dybcio <[email protected]>
interconnect: qcom: msm8976: Configure auxiliary GPU QoS port
Konrad Dybcio <[email protected]>
interconnect: qcom: msm8996: Configure auxiliary Venus QoS port
Konrad Dybcio <[email protected]>
interconnect: qcom: icc-rpm: Program SMD RPM auxiliary QoS ports
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
Vitaliy Sochnev <[email protected]>
thermal/drivers/airoha: Request the EN7581 IRQ after zone registration
Greg Ociepka <[email protected]>
arm64: dts: qcom: glymur: Mark USB controllers dma-coherent
Guixin Liu <[email protected]>
cxl/region: Unregister the pmem region when the bridge is unbound
Guixin Liu <[email protected]>
cxl/core: Fix dport use-after-free via the einj_inject debugfs file
Guixin Liu <[email protected]>
cxl/port: Fix uninitialized coordinates reported for RCDs
Guixin Liu <[email protected]>
cxl/cdat: Fix uninitialized stack use in bandwidth gathering
Guixin Liu <[email protected]>
cxl/pci: Skip reset detection for DVSEC emulated decoders
Jakub Kicinski <[email protected]>
netlink: specs: devlink: describe the netns id in the parent-dev nest
Jakub Kicinski <[email protected]>
netlink: specs: devlink: describe DEVLINK_ATTR_NESTED_DEVLINK
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
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/
Taimuraz Kaitmazov <[email protected]>
accel/amdxdna: do not fail a sync for a BO with no debug context
Taimuraz Kaitmazov <[email protected]>
accel/amdxdna: do not warn when a sync request is rejected
Lizhi Hou <[email protected]>
accel/amdxdna: Set HMM_PFN_REQ_WRITE for writable BO faults
Lizhi Hou <[email protected]>
accel/amdxdna: Fix race between unmap and free BO
Lizhi Hou <[email protected]>
accel/amdxdna: Fully initialize map structure before registering notifier
Sean Chang <[email protected]>
drm: bridge: dw_hdmi: Fix constant truncation warning on phy_mask
Wentao Liang <[email protected]>
media: ivsc: Fix csi_dev use-after-free in mei_ace_setup_dev_link()
Nikolay Borisov <[email protected]>
ata: sata_dwc_460ex: Don't enable interrupt if libATA core registration fails
Srinivasan Shanmugam <[email protected]>
drm/amd/display: Fix redundant NULL check on dc->clk_mgr in dcn42_prepare_bandwidth
Hari Mishal <[email protected]>
drm/amdgpu/atom: bound the VBIOS date, part number, version and build getters
Hari Mishal <[email protected]>
drm/amd/pm: bound SCLK FCW range entries to the table size
Vitaly Prosyak <[email protected]>
drm/amdgpu: reserve eviction-fence slot at WPTR caller
James Lin <[email protected]>
drm/amd/display: Cast DP DTO pixel clock math to avoid overflow and narrowing
Ian Rogers <[email protected]>
perf record: Fix unhandled POLLHUP on non_perf_event descriptors
Karl Mehltretter <[email protected]>
clk: aspeed: ast2700: select AUXILIARY_BUS
Pengpeng Hou <[email protected]>
clk: milbeaut: Return divider update timeouts
Pengpeng Hou <[email protected]>
clk: si521xx: correct the SI52147 OF output enable map
Arnaldo Carvalho de Melo <[email protected]>
perf test: Skip data_type_profiling when the PMU cannot record memory events
Francesco Valla <[email protected]>
spi: virtio: fix max frequency setting
bui duc phuc <[email protected]>
ASoC: mediatek: mt8189: Validate TDM MCLK frequency
bui duc phuc <[email protected]>
ASoC: mediatek: mt8189: Propagate TDM clock errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8189: Validate sysclk frequency
bui duc phuc <[email protected]>
ASoC: mediatek: mt8189: Propagate MCLK errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8189: Propagate APLL errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8189: Propagate runtime resume errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8189: Propagate reg_rw clock errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8189: Validate MCK ID
bui duc phuc <[email protected]>
ASoC: mediatek: mt8189: Propagate MCK enable errors
bui duc phuc <[email protected]>
ASoC: mediatek: mt8189: Propagate APLL enable errors
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
Vijendar Mukunda <[email protected]>
ASoC: SOF: amd: return -EINVAL for unknown PCI revision in acp7x suspend
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
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
Chandradhar Kumar <[email protected]>
md/raid0: validate device count before allocating devlist
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
Ihor Solodrai <[email protected]>
x86/cpu: Don't transiently clear the boot CPU's capabilities
Ihor Solodrai <[email protected]>
x86/cpu: Inline generic_identify() into identify_cpu()
Ihor Solodrai <[email protected]>
x86/cpu: Factor init_cpu_info() out of identify_cpu()
Ș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
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
Konrad Dybcio <[email protected]>
interconnect: qcom: icc-rpm: Don't skip small votes
Konrad Dybcio <[email protected]>
interconnect: qcom: Move bcm_div() to common code
Sarthak Sharma <[email protected]>
mm/gup_test: report actual pinned bytes
Sarthak Sharma <[email protected]>
mm/gup_test: safely calculate GUP batch size
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()
Nitesh Venkatesh <[email protected]>
crypto: qat - allow KPT disable when service is not asym
Luka Gejak <[email protected]>
wifi: rtw88: sdio: zero the padding added to a TX transfer
Xueqin Luo <[email protected]>
platform/x86: Add ACPI_COMPANION() NULL check in topstar_acpi_probe
Marco Scardovi <[email protected]>
platform/x86: asus-armoury: Prevent disabling dGPU when in use
Marco Scardovi <[email protected]>
platform/x86: asus-wmi: Add ASUS_WMI_DEVID_DGPU_POWER_STATE define
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
Mika Penttilä <[email protected]>
drm/tests: hdmi: fix infoframes tests
Junxian Huang <[email protected]>
RDMA/hns: Fix the use of uninitialized variable
Karl Mehltretter <[email protected]>
block: Fix the thaw_bdev reference in bdev_freeze() kernel-doc
Guangshuo Li <[email protected]>
media: i2c: t4ka3: drop unmatched runtime PM put
Guangshuo Li <[email protected]>
media: i2c: ar0521: remove duplicate media entity cleanup
Maxime Ripard <[email protected]>
drm/atmel-hlcdc: Drop spurious csc_init call from reset
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
Pengpeng Hou <[email protected]>
phy: samsung: usbdrd: propagate GS101 PIPE3 lock failures
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
Nemesa Garg <[email protected]>
drm/i915/psr: Clear stale sel fetch enable bits on sel fetch disable
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
Zhiguo Niu <[email protected]>
f2fs: fix to record both APPEND and UPDATE ino entries
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
Christoph Hellwig <[email protected]>
block,iomap: fix protection information verification with initial bvec offset
Karl Mehltretter <[email protected]>
dma-fence: Fix dma_fence_enable_signaling() reference in kernel-doc
Conor Dooley <[email protected]>
pinctrl: mpfs-mssio: fix whitespace in debugfs output
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
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()
Yonghong Song <[email protected]>
bpf: Read a kfunc's __sz argument only when it is in a register
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
Roshan Kumar <[email protected]>
drm/pl111: drop alpha formats the hardware cannot scan out
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
Lizhi Hou <[email protected]>
accel/amdxdna: Fix unsafe use of handle_mm_fault()
Lizhi Hou <[email protected]>
accel/amdxdna: Fix potential deadlock in BO open and close callbacks
Lizhi Hou <[email protected]>
accel/amdxdna: Disable BO import via flink
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
Aiman Najjar <[email protected]>
HID: nintendo: add support for PDP Afterglow controller
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
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: Rearrange acpi_bind_one() to avoid breakage
Rafael J. Wysocki <[email protected]>
ACPI: glue: Carry out companion lookup under bus_type_sem
Christoph Hellwig <[email protected]>
block: improve aligning down bios in bio_iov_iter_bounce_write
Christoph Hellwig <[email protected]>
block: cap atomic write size by PI buffer size constraints
Christoph Hellwig <[email protected]>
block: avoid integer overflows in max_integrity_io_size
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
Thomas Huth <[email protected]>
crypto: inside-secure - Zeroize temporary arrays on stack with sensitive data
Eric Dumazet <[email protected]>
ip_tunnel: use WRITE_ONCE in ip_tunnel_encap_setup
Eric Dumazet <[email protected]>
sit: charge ip_tunnel_prl_entry allocations to memcg
Eric Dumazet <[email protected]>
sit: fix UAF in ipip6_tunnel_del_prl()
Jeff Johnson <[email protected]>
wifi: ath9k: use rcu_dereference_bh() for sta->rates in ath_merge_ratetbl()
Abel Vesa <[email protected]>
arm64: dts: qcom: eliza: Connect USB3 PHY pipe clock to GCC
Luca Weiss <[email protected]>
arm64: dts: qcom: sm7225-fairphone-fp4: Disable PMK8350 PON
Karl Mehltretter <[email protected]>
cpufreq/amd-pstate: Remove obsolete amd_dynamic_epp documentation
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
Linus Walleij <[email protected]>
regulator: ab8500: Fix AB8505 VANA voltage selectors
Fangzhi Zuo <[email protected]>
drm/amd/display: Exit IPS before connector detection on resume
Koichiro Den <[email protected]>
PCI: endpoint: pci-epf-vntb: Serialize virtual PCI bus scan
Konrad Dybcio <[email protected]>
arm64: dts: qcom: glymur-asus-zenbook-a16: Fix up the mic sample rate
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
Binbin Zhou <[email protected]>
dmaengine: loongson: loongson2-apb-cmc: Fix signedness bug in irq handling
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
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
Zongmin Zhou <[email protected]>
power: supply: s2mu005-battery: return errors from dev_err_probe() in probe
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
Kang Yang <[email protected]>
wifi: ath12k: preserve PPDU state across monitor status buffers
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
Baochen Qiang <[email protected]>
wifi: ath12k: fix truncated TX buffer DMA address in MSDU ext descriptor
Baochen Qiang <[email protected]>
wifi: ath12k: fix stale skb pointers after aligned TX payload shift
Rameshkumar Sundaram <[email protected]>
wifi: ath12k: fix DMA unwind for ext MSDU descriptor retry
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()
Shuming Fan <[email protected]>
ASoC: rt1320: avoid re-initialize in advanced mode
Qinyun Tan <[email protected]>
iommufd/selftest: Return dmabuf fd from IOMMU_TEST_OP_DMABUF_GET again
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: 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
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
Golla Nagendra <[email protected]>
dmaengine: zynqmp_dma: Free sw_desc_pool on desc_pool_v alloc failure
Golla Nagendra <[email protected]>
dmaengine: zynqmp_dma: Fix PM rollback on sw_desc_pool alloc failure
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
Pengpeng Hou <[email protected]>
ASoC: codecs: sma1307: validate setting firmware layout
Ian Rogers <[email protected]>
perf stat: Avoid uninitialized memory read on error
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
Ian Rogers <[email protected]>
perf test: Avoid call to missing cleanup function
Matt Turner <[email protected]>
perf thread: Fix live-session detection in thread__e_machine()
Thomas Richter <[email protected]>
perf test: perf stat tests fails on s390
Qiuxu Zhuo <[email protected]>
EDAC/i10nm: Fix Granite Rapids ADXL MC mapping
Tejun Heo <[email protected]>
cgroup: Make the offline drain interruptible
Tejun Heo <[email protected]>
cgroup: Return ERR_PTR from cgroup_kn_lock_live()
Tejun Heo <[email protected]>
cgroup: Return -ENODEV consistently for a dead cgroup
Tianyi Chen <[email protected]>
selftests/sched_ext: Handle CPU hotplug write failures
Tianyi Chen <[email protected]>
selftests/sched_ext: Fail interrupted test runs
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
Igor Belwon <[email protected]>
arm64: dts: mediatek: mt6878-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
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
Miquel Raynal <[email protected]>
spi: ma35d1-qspi: Allow DTR operations with the regular SPI API
Varun Gupta <[email protected]>
drm/xe: Guard page-fault worker with runtime PM check
Surendra Singh Chouhan <[email protected]>
pwm: ipq: Prevent potential 32-bit integer overflow in hi_div calculation
Keguang Zhang <[email protected]>
pwm: loongson: Reload PWM configuration through counter reset
Junhui Liu <[email protected]>
riscv: dts: spacemit: k3: Drop guest properties from M-level IMSIC
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
Li RongQing <[email protected]>
RDMA/nldev: Put the device when dellink fails
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]>
ACPI: APEI: GHES: Validate memory error section length before payload access
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
Dave Jiang <[email protected]>
ACPI: APEI: GHES: Bound CXL event record copy to the firmware section length
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
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
Li Youhong <[email protected]>
spi: ma35d1-qspi: assert reset on probe error paths
Jisheng Zhang <[email protected]>
regulator: mp886x: fix vsel_mask
James Hilliard <[email protected]>
mtd: rawnand: sunxi: use a stack buffer for BBM randomization
James Hilliard <[email protected]>
mtd: rawnand: sunxi: reserve a full user-data word for BBM
James Hilliard <[email protected]>
mtd: rawnand: sunxi: propagate user-data allocation errors
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
Donggeun Yoo <[email protected]>
regulator: pf1550: fix division by zero in the ramp rate selection
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
Abel Vesa <[email protected]>
PCI/pwrctrl: tc9563: Allow RESX reset assertion to sleep
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
Wenjie Qi <[email protected]>
f2fs: wait for inode record work before clearing ino bitmaps
Chengchang Tang <[email protected]>
RDMA/hns: Fix missing CQE when UD QP use different SL
Manush Prajwal <[email protected]>
leds: max77705: Use fwnode_for_each_child_node_scoped() in max77705_add_led()
Alex Elder <[email protected]>
arm64: dts: qcom: qcs8550-rb5gen2: clean up PCI function nodes
Alex Elder <[email protected]>
arm64: dts: qcom: qcs6490-thundercomm-minipc-g1iot: clean up PCI function nodes
Alex Elder <[email protected]>
arm64: dts: qcom: monaco-evk-ifp-mezzanine: clean up PCI function nodes
Alex Elder <[email protected]>
arm64: dts: qcom: lemans-evk-ifp-mezzanine: clean up PCI function nodes
Alex Elder <[email protected]>
arm64: dts: qcom: qcs6490-rb3gen2-industrial-mezzanine: clean up PCI function nodes
Alex Elder <[email protected]>
arm64: dts: qcom: qcs6490-rb3gen2: clean up PCI function nodes
Rosen Penev <[email protected]>
dmaengine: at_hdmac: fix sparse '__iomem' cast warning in memset helpers
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
David Yang <[email protected]>
net: dsa: yt921x: Check lock status with lockdep_assert_held_once()
Toke Høiland-Jørgensen <[email protected]>
libbpf: Move section-defined program flags to prog_flags
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
Melissa Wen <[email protected]>
drm/amd/display: use translate_curve_to_degamma_hw_format on DCN30
Tomasz Siemek <[email protected]>
drm/amd/display: Refactor DPP_SET_INPUT_TRANSFER_FUNC to drop pipe_ctx
Tomasz Siemek <[email protected]>
drm/amd/display: Refactor HUBP_WAIT_FOR_DCC_META_PROP to drop pipe_ctx
Gaghik Khachatrian <[email protected]>
drm/amd/display: gate DCE ASIC code behind CONFIG_DRM_AMD_DC_DCE
Richard Zhu <[email protected]>
arm64: dts: imx943: Avoid 32-bit PCIe window System RAM overlap
Richard Zhu <[email protected]>
arm64: dts: imx94: Avoid 32-bit PCIe window System RAM overlap
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
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
Linmao Li <[email protected]>
wifi: mm81x: do not discard a failed firmware segment write
Linmao Li <[email protected]>
wifi: mm81x: free the firmware scratch buffer on parse failures
John Stultz <[email protected]>
sched: Switch rq->next_class in proxy_reset_donor()
Vasily Gorbik <[email protected]>
sched/core: Don't proxy-exec unmatched cookie lock owners
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
Jingbo Xu <[email protected]>
fuse: don't bump attr_version for async direct read completion
Miklos Szeredi <[email protected]>
fuse: don't fill in.h.pid in case args->nocreds is set
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
Dan Carpenter <[email protected]>
wifi: mm81x: fix type bugs handling sdio_readl/writel()
Gongwei Li <[email protected]>
wifi: rtw89: coex: Fix wrong constant check of GPIO MUX signal
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
Lizhi Hou <[email protected]>
accel/amdxdna: Fix possible use-after-free when freeing device BO
Lizhi Hou <[email protected]>
accel/amdxdna: Fix unexpected wait when flushing notifier_wq
Boris Faure <[email protected]>
soundwire: intel: initialise quirk_mask before reading it
Davidlohr Bueso <[email protected]>
cxl/test: Map mock device nodes to an online node
Hans Zhang <[email protected]>
PCI: cadence: Fix enum type mismatch warning in LTSSM debugfs
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
Rob Barnes <[email protected]>
platform/chrome: cros_ec_proto: Fix deferred response
Hongyan Xu <[email protected]>
soc: qcom: apr: clean up failed service registrations
Dan Carpenter <[email protected]>
soc: qcom: smem: Fix signedness bug in smem_dram_parse()
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: Add GCC video axi reset clocks for Nord
Taniya Das <[email protected]>
arm64: dts: qcom: milos: Add power-domains for camcc and videocc
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
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
Greg Ociepka <[email protected]>
arm64: dts: qcom: glymur: Add missing USB clock, power and bandwidth votes
Linmao Li <[email protected]>
soc: qcom: smem: Fix byte order in v3 14-frequency parser
Gopikrishna Garmidi <[email protected]>
soc: qcom: smem: fix 32-bit overflow in DDR frequency calculation
Anup Vishwakarma <[email protected]>
remoteproc: qcom_q6v5_adsp: Fix double jiffies conversion in adsp_start()
Primoz Fiser <[email protected]>
arm64: dts: imx8mp-phyboard-pollux-peb-av-10: Fix SAI master assignment
Abel Vesa <[email protected]>
arm64: dts: qcom: glymur-crd: Mark the EC reset gpio as reserved
Haibo Chen <[email protected]>
arm64: dts: imx95-15x15-frdm: fix duplicated can-phy node names
Sven Peter <[email protected]>
arm64: dts: apple: t6032: Fix cpus node indentation
Sven Peter <[email protected]>
arm64: dts: apple: t6030: Fix cpus node indentation
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()
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
Mahad Ibrahim <[email protected]>
selftests/filesystems: Add .gitignore for fscontext_ns_test
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
Lucas Tanure <[email protected]>
clk: meson: t7: keep the memory fabric clocks running
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
Ihor Solodrai <[email protected]>
bpftool: Don't drop a type in the sorted C dump
Ihor Solodrai <[email protected]>
selftests/bpf: Add tests for bpftool btf dump format c
Ihor Solodrai <[email protected]>
selftests/bpf: NUL-terminate bpftool command output
Raag Jadav <[email protected]>
drm/ras: Cancel and free message on get counter failure
Leon Hwang <[email protected]>
selftests/bpf: Avoid flaky resize value test for percpu data
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()
Srinivasan Shanmugam <[email protected]>
drm/amd/pm: Remove unused functions in smu_v15_0
Jiayuan Chen <[email protected]>
libbpf: Fix usdt attach failure when nop10 crosses page boundary
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
Nicolas Frattaroli <[email protected]>
drm/panthor: Revisit reqs_lock handling in flush/reset paths
Nicolas Frattaroli <[email protected]>
drm/panthor: Add tracepoint for cache flushing
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
Timur Tabi <[email protected]>
gpu: nova-core: write initial RPCs before booting GSP-RM
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
Adrián Larumbe <[email protected]>
drm/panfrost: Check another bo field for cache option query
Chen-Yu Tsai <[email protected]>
drm/verisilicon: Switch to drm_fb_dma_get_addr() for framebuffer addresses
Icenowy Zheng <[email protected]>
drm: verisilicon: fix cursor offset field update
Hao-Qun Huang <[email protected]>
accel/qaic: reject BO sizes that overflow page count
Youssef Samir <[email protected]>
accel/qaic: Add <linux/device-id/mhi.h> to qaic_ssr.c
Youssef Samir <[email protected]>
accel/qaic: Add <linux/device-id/mhi.h> to qaic_ras.c
Youssef Samir <[email protected]>
accel/qaic: Add <linux/device-id/mhi.h> to qaic_debugfs.c
Youssef Samir <[email protected]>
accel/qaic: Add <linux/device-id/mhi.h> to qaic_drv.c
Youssef Samir <[email protected]>
accel/qaic: Add missing <linux/device-id/mhi.h> to sahara and timesync
Raveendra Talabattula <[email protected]>
drm/komeda: Fix bits parsing of GLB_CORE_ID
Tapio Reijonen <[email protected]>
serial: max310x: schedule tx_work directly from the IRQ handler
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
Amir Goldstein <[email protected]>
ovl: add assertions in dir cache code
Ajay Kumar Nandam <[email protected]>
ASoC: qcom: q6apm: clear g_apm on driver removal
Lorenzo Stoakes (ARM) <[email protected]>
fs/proc/task_mmu: fix missed VMAs when reading /proc/PID/maps and friends
YouYou Yu <[email protected]>
quota: initialize dquot cache before mounting rootfs
Srinivas Kandagatla <[email protected]>
ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure
Srinivas Kandagatla <[email protected]>
ASoC: SDCA: export PM helpers keyed on sdca_class_drv
David Hildenbrand (Arm) <[email protected]>
mm/madvise: preserve VMA_SOFTDIRTY_BIT when changing anonymous names
Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: avoid losing atomic VMA flags when setting sticky VMA flags
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
Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
Christian Aurich Zanettini Martins <[email protected]>
nvme-tcp: fix use-after-free in nvme_tcp_free_ctrl()
Jann Horn <[email protected]>
cipso: stop modifying live ip_options_rcu
Qu Wenruo <[email protected]>
btrfs: raid56: do not verify the content if there is no data checksum
Qu Wenruo <[email protected]>
btrfs: remove on-stack paddrs[] array usage
Qu Wenruo <[email protected]>
btrfs: use a shared helper to calculate data checksum for a bio
Qu Wenruo <[email protected]>
btrfs: enhance btrfs_data_csum_ok() to use bio for page iteration
Qu Wenruo <[email protected]>
btrfs: replace btrfs_repair_io_failure() to use bio for page iteration
Eva Kurchatova <[email protected]>
hugetlbfs: enforce F_SEAL_EXEC in setattr
Leo Liu <[email protected]>
drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg
Sonny Jiang <[email protected]>
drm/amdgpu: VCN 5_0_2 disable VCN_RRMT
Sonny Jiang <[email protected]>
drm/amdgpu: Correct VCN V5_0_2 doorbell index setting
Sonny Jiang <[email protected]>
drm/amdgpu: Config VCN instance for soc_v1_0"
Calvin Owens <[email protected]>
Revert "drm/amd/display: Allocate DCN32/1 dmub memory to GTT"
Maxime Chevallier <[email protected]>
net: Use a dedicated flag to track disabled napi instances
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
Zijun Hu <[email protected]>
Bluetooth: btusb: Build the driver from multiple source files
Luiz Augusto von Dentz <[email protected]>
Bluetooth: Move H:4 reassembly into the Bluetooth core
Matt Turner <[email protected]>
alpha: select SYSCTL_EXCEPTION_TRACE
Gregory Price <[email protected]>
mm/userfaultfd: compare exact registration modes before skipping
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
Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: fix expansion of VMA_MIXEDMAP_BIT VMAs
Chao Yu <[email protected]>
f2fs: fix to fetch ino via ino_of_node() under cache lock
Sahil Chandna <[email protected]>
net: mana: Add support to process throttled EQEs
Manish Awasthi <[email protected]>
net: mana: Introduce gdma_bus_ops for bus-specific operations
HOYOUNG SEO <[email protected]>
scsi: ufs: core: Change the error check sequence for auto hibern8
David Hildenbrand (Arm) <[email protected]>
mm/userfaultfd: wake waiters when registration modes are removed
Ali Ahmet Memiş <[email protected]>
platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively
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
Lorenzo Stoakes (ARM) <[email protected]>
mm: do not unintentionally overwrite atomic VMA flags
Priyank Rathod <[email protected]>
PCI/AER: Fix memory leak in aer_recover_work_func() when pci_dev is missing
Josef Bacik <[email protected]>
mm/shmem: hold off eviction in shmem_writeout()
Yizhou Zhao <[email protected]>
9p/xen: drain response work after unbinding IRQ
Sean Christopherson <[email protected]>
KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
Shivansh Dhiman <[email protected]>
KVM: SVM: Add a vCPU-aware helper to get supported DEBUGCTL bits
-------------
Diffstat:
.gitignore | 1 -
Documentation/ABI/stable/sysfs-class-infiniband | 118 ---
Documentation/ABI/testing/sysfs-bus-pci | 14 +-
Documentation/ABI/testing/sysfs-class-led | 4 +-
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/cgroup-v2.rst | 4 +-
Documentation/admin-guide/kernel-parameters.txt | 10 +-
Documentation/admin-guide/pm/amd-pstate.rst | 6 -
Documentation/bpf/bpf_iterators.rst | 10 +
.../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 | 19 +
.../bindings/clock/qcom,milos-videocc.yaml | 19 +
.../devicetree/bindings/clock/qcom,sm8750-gcc.yaml | 7 +
.../devicetree/bindings/display/msm/gmu.yaml | 2 +-
.../devicetree/bindings/display/msm/hdmi.yaml | 4 +-
.../panel/samsung,s6e8aa5x01-ams561ra01.yaml | 2 +-
.../devicetree/bindings/dma/stericsson,dma40.yaml | 14 +
.../bindings/iio/adc/renesas,r9a09g077-adc.yaml | 10 +-
.../bindings/iio/light/liteon,ltr501.yaml | 3 +-
.../interrupt-controller/chrp,open-pic.yaml | 7 +-
.../media/allwinner,sun4i-a10-video-engine.yaml | 21 +-
.../devicetree/bindings/phy/ti,tcan104x-can.yaml | 9 +-
.../devicetree/bindings/power/supply/bq27xxx.yaml | 1 -
.../power/supply/stericsson,ab8500-charger.yaml | 76 +-
.../bindings/thermal/amlogic,thermal.yaml | 29 +-
.../devicetree/bindings/timer/sifive,clint.yaml | 1 -
.../devicetree/bindings/vendor-prefixes.yaml | 20 +
Documentation/filesystems/erofs.rst | 7 +
Documentation/filesystems/f2fs.rst | 3 +-
Documentation/filesystems/resctrl.rst | 2 +-
Documentation/leds/leds-st1202.rst | 5 +
Documentation/mm/process_addrs.rst | 14 +-
Documentation/netlink/specs/devlink.yaml | 64 +-
Documentation/networking/psp.rst | 8 +
Documentation/networking/tls-offload.rst | 16 +-
Documentation/rust/testing.rst | 2 +-
Documentation/trace/histogram.rst | 3 +
Documentation/translations/zh_CN/rust/testing.rst | 2 +-
Documentation/virt/hyperv/overview.rst | 12 +-
Makefile | 5 +-
arch/alpha/Kconfig | 1 +
arch/alpha/include/asm/ptrace.h | 7 +-
arch/alpha/kernel/ptrace.c | 12 +
arch/alpha/mm/fault.c | 29 +
arch/arc/Makefile | 9 +-
arch/arc/include/asm/cmpxchg.h | 4 +
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/nvidia/tegra114-dalmore.dts | 4 +-
arch/arm/boot/dts/nvidia/tegra114-roth.dts | 4 +-
arch/arm/boot/dts/nvidia/tegra114-tn7.dts | 4 +-
arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi | 40 +-
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 3 +
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/apple/t6030.dtsi | 2 +-
arch/arm64/boot/dts/apple/t6032.dtsi | 2 +-
arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts | 5 +
.../boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi | 35 +
arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 11 +
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 14 +-
arch/arm64/boot/dts/freescale/imx8dxl-sr-som.dtsi | 14 +-
.../boot/dts/freescale/imx8mp-kontron-dl.dtso | 11 +
.../imx8mp-phyboard-pollux-peb-av-10.dtsi | 5 +-
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 +-
.../boot/dts/freescale/imx93-11x11-evk-common.dtsi | 4 +-
.../dts/freescale/imx93-11x11-frdm-common.dtsi | 680 ++++++++++++++
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 679 +-------------
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/imx94.dtsi | 2 +-
arch/arm64/boot/dts/freescale/imx943.dtsi | 2 +-
arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts | 16 +-
arch/arm64/boot/dts/freescale/imx95.dtsi | 4 +-
arch/arm64/boot/dts/mediatek/mt6878-pinfunc.h | 2 +-
arch/arm64/boot/dts/mediatek/mt6893-pinfunc.h | 2 +-
.../mediatek/mt7988a-bananapi-bpi-r4-pro-cn13.dtso | 1 +
.../mediatek/mt7988a-bananapi-bpi-r4-pro-cn14.dtso | 1 +
.../mediatek/mt7988a-bananapi-bpi-r4-pro-cn15.dtso | 1 +
.../mediatek/mt7988a-bananapi-bpi-r4-pro-cn18.dtso | 1 +
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/agatti.dtsi | 11 +
arch/arm64/boot/dts/qcom/eliza.dtsi | 2 +-
.../dts/qcom/glymur-asus-zenbook-a16-ux3607oa.dts | 3 +-
arch/arm64/boot/dts/qcom/glymur-crd.dtsi | 3 +-
arch/arm64/boot/dts/qcom/glymur.dtsi | 59 ++
arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts | 16 +-
arch/arm64/boot/dts/qcom/kaanapali.dtsi | 2 +
.../boot/dts/qcom/lemans-evk-ifp-mezzanine.dtso | 15 +-
arch/arm64/boot/dts/qcom/lemans-evk.dts | 3 +-
arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi | 8 +-
arch/arm64/boot/dts/qcom/milos.dtsi | 10 +
.../boot/dts/qcom/monaco-evk-ifp-mezzanine.dtso | 12 +-
arch/arm64/boot/dts/qcom/monaco-evk.dts | 3 +-
arch/arm64/boot/dts/qcom/purwa-iot-evk.dts | 27 +-
arch/arm64/boot/dts/qcom/purwa.dtsi | 5 +
.../qcom/qcs6490-rb3gen2-industrial-mezzanine.dtso | 24 +-
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 12 +-
.../dts/qcom/qcs6490-thundercomm-minipc-g1iot.dts | 12 +-
arch/arm64/boot/dts/qcom/qcs8300-ride.dts | 4 +-
arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts | 12 +-
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-vivobook-s15.dtsi | 1 +
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 +
.../dts/qcom/x1e80100-honor-magicbook-art-14.dts | 3 +-
.../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 1 +
.../dts/qcom/x1e80100-medion-sprchrgd-14-s1.dts | 1 +
arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 1 +
.../boot/dts/qcom/x1p42100-lenovo-thinkbook-16.dts | 1 +
arch/arm64/boot/dts/renesas/r8a78000-ironhide.dts | 12 +-
arch/arm64/boot/dts/renesas/r9a09g077.dtsi | 18 +-
arch/arm64/boot/dts/renesas/r9a09g087.dtsi | 18 +-
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 -
.../boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts | 9 -
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 +
.../boot/dts/rockchip/rk3588s-orangepi-5-pro.dts | 14 +-
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-zinnia.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-am62l3-evm.dts | 4 +-
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-am69-aquila.dtsi | 2 +-
arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 25 +-
.../boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi | 2 +
arch/arm64/include/asm/rsi_smc.h | 2 +-
arch/arm64/kernel/pi/Makefile | 1 +
arch/arm64/net/bpf_jit_comp.c | 32 +-
arch/arm64/net/bpf_timed_may_goto.S | 10 +-
arch/hexagon/include/asm/cmpxchg.h | 6 +
arch/loongarch/net/bpf_jit.c | 8 +-
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/mips/include/asm/dec/reset.h | 1 +
arch/nios2/kernel/nios2_ksyms.c | 1 +
arch/openrisc/include/asm/cmpxchg.h | 2 +
arch/powerpc/include/asm/interrupt.h | 7 +-
arch/powerpc/include/asm/kasan.h | 15 -
arch/powerpc/include/asm/string.h | 21 +-
arch/powerpc/kernel/cputable.c | 14 +-
arch/powerpc/kernel/prom_init.c | 10 +-
arch/powerpc/kernel/prom_init_check.sh | 15 +-
arch/powerpc/kernel/trace/ftrace_entry.S | 6 +
arch/powerpc/lib/copy_32.S | 10 +-
arch/powerpc/lib/mem_64.S | 7 +-
arch/powerpc/lib/memcpy_64.S | 4 +-
arch/powerpc/net/bpf_jit.h | 6 +
arch/powerpc/net/bpf_jit_comp.c | 46 +-
arch/powerpc/net/bpf_jit_comp64.c | 8 +-
arch/riscv/boot/dts/sophgo/cv180x.dtsi | 2 +-
arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 2 +-
arch/riscv/boot/dts/spacemit/k3-com260.dtsi | 1 +
arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 2 +
arch/riscv/boot/dts/spacemit/k3.dtsi | 48 +-
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 | 6 +-
.../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 | 24 +-
arch/riscv/net/bpf_jit_core.c | 1 +
arch/riscv/net/bpf_timed_may_goto.S | 33 +-
arch/s390/include/asm/entry-percpu.h | 71 +-
arch/s390/include/asm/lowcore.h | 3 +
arch/s390/include/asm/percpu.h | 356 +++++---
arch/s390/kernel/early.c | 15 +-
arch/s390/kernel/irq.c | 10 +-
arch/s390/kernel/nmi.c | 4 +-
arch/s390/kernel/ptrace.c | 9 +-
arch/s390/kernel/traps.c | 4 +-
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/cpuid/api.h | 2 +-
arch/x86/include/asm/shared/string.h | 52 ++
arch/x86/include/asm/string.h | 21 +-
arch/x86/include/asm/svm.h | 4 +-
arch/x86/kernel/cpu/common.c | 76 +-
arch/x86/kernel/cpu/mshyperv.c | 27 +-
arch/x86/kernel/crash.c | 6 +-
arch/x86/kernel/fpu/xstate.c | 7 +-
arch/x86/kvm/svm/nested.c | 31 +-
arch/x86/kvm/svm/svm.c | 8 +-
arch/x86/kvm/svm/svm.h | 9 +-
arch/x86/net/bpf_jit_comp.c | 34 +-
arch/x86/net/bpf_timed_may_goto.S | 13 +-
arch/x86/platform/pvh/enlighten.c | 5 +-
arch/x86/power/hibernate.c | 51 +-
block/bdev.c | 14 +-
block/bfq-iosched.c | 4 +-
block/bio-integrity-fs.c | 13 +-
block/bio.c | 50 +-
block/blk-cgroup.c | 39 +-
block/blk-cgroup.h | 6 +-
block/blk-flush.c | 8 +-
block/blk-iocost.c | 120 ++-
block/blk-iolatency.c | 6 +-
block/blk-map.c | 1 +
block/blk-mq-dma.c | 2 +
block/blk-mq-tag.c | 25 +-
block/blk-mq.c | 93 +-
block/blk-mq.h | 2 +
block/blk-settings.c | 6 +
block/blk-throttle.c | 28 +-
block/blk-timeout.c | 3 +-
block/blk.h | 14 +
block/fops.c | 117 ++-
block/partitions/mac.c | 4 +-
crypto/algapi.c | 23 +-
crypto/asymmetric_keys/pkcs7_parser.c | 6 +
crypto/asymmetric_keys/verify_pefile.c | 5 +
crypto/asymmetric_keys/x509_public_key.c | 6 +-
crypto/lskcipher.c | 6 +-
crypto/rsassa-pkcs1.c | 4 +-
crypto/tcrypt.c | 182 ++--
drivers/accel/amdxdna/aie2_ctx.c | 126 ++-
drivers/accel/amdxdna/aie2_pci.c | 15 +-
drivers/accel/amdxdna/aie2_pci.h | 6 +-
drivers/accel/amdxdna/amdxdna_gem.c | 465 +++++++---
drivers/accel/amdxdna/amdxdna_gem.h | 6 +-
drivers/accel/ethosu/ethosu_drv.c | 2 +-
drivers/accel/ivpu/ivpu_gem.c | 2 +-
drivers/accel/qaic/qaic_data.c | 22 +-
drivers/accel/qaic/qaic_debugfs.c | 1 +
drivers/accel/qaic/qaic_drv.c | 1 +
drivers/accel/qaic/qaic_ras.c | 1 +
drivers/accel/qaic/qaic_ssr.c | 1 +
drivers/accel/qaic/qaic_timesync.c | 1 +
drivers/accel/qaic/sahara.c | 1 +
drivers/accel/rocket/rocket_gem.c | 2 +-
drivers/accel/rocket/rocket_job.c | 2 -
drivers/acpi/acpi_extlog.c | 64 +-
drivers/acpi/acpi_pcc.c | 33 +-
drivers/acpi/acpi_video.c | 12 +-
drivers/acpi/acpica/dsfield.c | 3 +-
drivers/acpi/acpica/exfield.c | 11 +-
drivers/acpi/acpica/nsxfname.c | 1 +
drivers/acpi/apei/ghes.c | 92 +-
drivers/acpi/apei/ghes_helpers.c | 18 +-
drivers/acpi/button.c | 12 +
drivers/acpi/cppc_acpi.c | 22 +-
drivers/acpi/device_pm.c | 77 +-
drivers/acpi/fan_core.c | 9 +-
drivers/acpi/glue.c | 142 ++-
drivers/acpi/numa/hmat.c | 2 +-
drivers/acpi/pci_link.c | 1 +
drivers/acpi/pci_root.c | 76 +-
drivers/acpi/platform_profile.c | 82 +-
drivers/acpi/scan.c | 40 +-
drivers/acpi/tables.c | 3 +
drivers/android/binder/process.rs | 4 +-
drivers/ata/ahci.c | 31 +-
drivers/ata/libahci.c | 15 +
drivers/ata/libata-core.c | 21 +-
drivers/ata/libata-scsi.c | 2 +-
drivers/ata/pata_parport/pata_parport.c | 9 +-
drivers/ata/sata_dwc_460ex.c | 5 +-
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/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/xen-blkback/blkback.c | 7 +
drivers/block/zloop.c | 80 +-
drivers/block/zram/zram_drv.c | 110 +--
drivers/bluetooth/Makefile | 2 +
drivers/bluetooth/btintel.c | 8 +
drivers/bluetooth/btintel.h | 1 +
drivers/bluetooth/btintel_pcie.c | 530 +++++++++--
drivers/bluetooth/btintel_pcie.h | 64 +-
drivers/bluetooth/btmtk.c | 88 +-
drivers/bluetooth/btmtksdio.c | 13 +-
drivers/bluetooth/{btusb.c => btusb_main.c} | 13 +-
drivers/bluetooth/hci_h4.c | 123 +--
drivers/bluetooth/hci_uart.h | 39 +-
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/aspeed/Kconfig | 1 +
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 | 65 +-
drivers/clk/clk.h | 5 +-
drivers/clk/clk_test.c | 12 +-
drivers/clk/clkdev.c | 4 +-
drivers/clk/imx/clk-composite-93.c | 11 +-
drivers/clk/kunit_clk_assigned_rates.h | 4 +-
drivers/clk/mediatek/reset.h | 6 +-
drivers/clk/meson/t7-peripherals.c | 13 +-
drivers/clk/qcom/Kconfig | 2 +-
drivers/clk/qcom/cambistmclkcc-kaanapali.c | 7 +
drivers/clk/qcom/cambistmclkcc-sm8750.c | 7 +
drivers/clk/qcom/camcc-glymur.c | 7 +
drivers/clk/qcom/clk-alpha-pll.c | 9 +
drivers/clk/qcom/clk-rcg2.c | 35 +-
drivers/clk/qcom/clk-rpmh.c | 5 +
drivers/clk/qcom/dispcc-sm8450.c | 2 +-
drivers/clk/qcom/gcc-eliza.c | 1 +
drivers/clk/qcom/gcc-glymur.c | 69 +-
drivers/clk/qcom/gcc-ipq5424.c | 4 +-
drivers/clk/qcom/gcc-kaanapali.c | 1 +
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/qcom/negcc-nord.c | 4 +-
drivers/clk/qcom/nwgcc-nord.c | 5 +-
drivers/clk/qcom/segcc-nord.c | 8 +-
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 | 10 +-
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 | 37 +-
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/caam/caamalg_qi.c | 2 +
drivers/crypto/caam/caamalg_qi2.c | 2 +
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/inside-secure/safexcel_hash.c | 3 +
drivers/crypto/intel/qat/qat_common/adf_cfg.c | 49 +-
drivers/crypto/intel/qat/qat_common/adf_init.c | 24 +-
drivers/crypto/intel/qat/qat_common/adf_isr.c | 15 +-
.../crypto/intel/qat/qat_common/adf_sysfs_kpt.c | 24 +-
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 | 54 +-
drivers/cxl/core/cdat.c | 8 +-
drivers/cxl/core/core.h | 14 +-
drivers/cxl/core/edac.c | 30 +-
drivers/cxl/core/features.c | 56 +-
drivers/cxl/core/hdm.c | 62 +-
drivers/cxl/core/mce.c | 8 +-
drivers/cxl/core/pci.c | 21 +-
drivers/cxl/core/port.c | 218 +++--
drivers/cxl/core/ras.c | 6 +-
drivers/cxl/core/ras_rch.c | 12 +-
drivers/cxl/core/region.c | 15 +-
drivers/cxl/core/region_pmem.c | 6 +-
drivers/cxl/cxl.h | 24 +-
drivers/cxl/mem.c | 28 +-
drivers/cxl/pci.c | 11 +-
drivers/dax/bus.c | 8 +-
drivers/dax/fsdev.c | 23 +
drivers/dax/super.c | 3 +-
drivers/dma/at_hdmac.c | 44 +-
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/loongson/loongson2-apb-cmc-dma.c | 2 +-
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 | 587 ++++++++++---
drivers/dma/ste_dma40_ll.c | 8 +-
drivers/dma/ste_dma40_ll.h | 4 +-
drivers/dma/sun6i-dma.c | 31 +-
drivers/dma/switchtec_dma.c | 56 +-
drivers/dma/xilinx/xilinx_dma.c | 37 +-
drivers/dma/xilinx/zynqmp_dma.c | 48 +-
drivers/dpll/zl3073x/dpll.c | 241 +++--
drivers/dpll/zl3073x/out.h | 36 +
drivers/dpll/zl3073x/prop.c | 56 +-
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/efi/runtime-wrappers.c | 14 +-
drivers/firmware/imx/imx-dsp.c | 6 +-
drivers/firmware/qcom/qcom_scm.c | 16 +-
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/Makefile | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 5 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c | 7 +-
drivers/gpu/drm/amd/amdgpu/atom.c | 29 +-
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 72 +-
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/jpeg_v5_0_2.c | 6 +-
drivers/gpu/drm/amd/amdgpu/jpeg_v5_3_0.c | 6 +-
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 3 +-
drivers/gpu/drm/amd/amdgpu/soc_v1_0.c | 8 +-
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_v1_0.c | 6 +-
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/amdgpu/vcn_v5_0_2.c | 14 +-
drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 -
drivers/gpu/drm/amd/display/Kconfig | 9 +
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 +
.../amd/display/amdgpu_dm/amdgpu_dm_connector.c | 18 +
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_dmub.c | 11 +-
.../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 18 +
.../drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h | 94 +-
.../amdgpu_dm/tests/amdgpu_dm_helpers_test.c | 17 +
.../drm/amd/display/dc/bios/command_table_helper.c | 7 +-
.../amd/display/dc/bios/command_table_helper2.c | 2 +
drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile | 8 +
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 4 +
.../amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c | 115 ---
.../amd/display/dc/clk_mgr/dce100/dce_clk_mgr.h | 8 +-
.../amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c | 59 --
.../amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.h | 4 +-
.../amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.c | 181 ++++
.../amd/display/dc/clk_mgr/dcn10/dcn10_clk_mgr.h | 29 +
drivers/gpu/drm/amd/display/dc/core/dc.c | 4 +-
.../gpu/drm/amd/display/dc/core/dc_hw_sequencer.c | 113 ++-
drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 79 ++
drivers/gpu/drm/amd/display/dc/dc_types.h | 1 +
.../gpu/drm/amd/display/dc/dce/dce_clock_source.c | 6 +-
.../src/dml2_core/dml2_core_dcn6_calcs_dchub.c | 2 +-
drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c | 4 +
drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c | 4 +
.../drm/amd/display/dc/hubbub/dcn42/dcn42_hubbub.h | 7 +-
drivers/gpu/drm/amd/display/dc/hwss/Makefile | 6 +
.../drm/amd/display/dc/hwss/dce110/dce110_hwseq.c | 25 +-
.../drm/amd/display/dc/hwss/dce60/dce60_hwseq.c | 3 +-
.../drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c | 35 +-
.../drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.h | 3 +-
.../drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 63 +-
.../drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.h | 7 +-
.../drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c | 51 +-
.../drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.h | 8 +-
.../drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c | 60 +-
.../drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.h | 10 +-
.../drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 53 +-
.../drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h | 9 +-
.../drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.c | 51 +-
.../drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.h | 12 +-
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h | 23 +-
.../drm/amd/display/dc/hwss/hw_sequencer_private.h | 18 +-
drivers/gpu/drm/amd/display/dc/irq/Makefile | 2 +
.../amd/display/dc/irq/dce110/irq_service_dce110.c | 21 -
.../amd/display/dc/irq/dce110/irq_service_dce110.h | 9 -
drivers/gpu/drm/amd/display/dc/irq/irq_service.c | 28 +
drivers/gpu/drm/amd/display/dc/irq/irq_service.h | 9 +
drivers/gpu/drm/amd/display/dc/resource/Makefile | 4 +
.../display/dc/resource/dce112/dce112_resource.c | 62 --
.../display/dc/resource/dcn42b/dcn42b_resource.c | 2 +
.../gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 3 +
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v15_0.h | 6 -
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c | 166 ----
drivers/gpu/drm/amd/ras/core/eeprom.c | 6 +-
.../gpu/drm/arm/display/include/malidp_product.h | 10 +-
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 5 -
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 2 +-
drivers/gpu/drm/drm_connector.c | 2 +
drivers/gpu/drm/drm_of.c | 8 +-
drivers/gpu/drm/drm_pagemap.c | 3 +-
drivers/gpu/drm/drm_ras.c | 19 +-
drivers/gpu/drm/drm_syncobj.c | 35 +-
drivers/gpu/drm/drm_timeout.c | 95 ++
drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +-
drivers/gpu/drm/i915/display/intel_psr.c | 13 +
drivers/gpu/drm/imx/lcdc/imx-lcdc.c | 3 +-
drivers/gpu/drm/lima/lima_gem.c | 2 +-
drivers/gpu/drm/msm/adreno/a3xx_gpu.c | 12 +-
drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 49 +-
drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 20 +-
drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 40 +-
drivers/gpu/drm/msm/adreno/a8xx_gpu.c | 3 +
drivers/gpu/drm/msm/adreno/adreno_gpu.c | 3 +-
drivers/gpu/drm/msm/adreno/adreno_gpu.h | 7 +
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/panel/Kconfig | 2 +
drivers/gpu/drm/panfrost/panfrost_devfreq.c | 2 +-
drivers/gpu/drm/panfrost/panfrost_device.c | 19 +-
drivers/gpu/drm/panfrost/panfrost_device.h | 1 +
drivers/gpu/drm/panfrost/panfrost_drv.c | 43 +-
drivers/gpu/drm/panfrost/panfrost_drv.h | 9 -
drivers/gpu/drm/panfrost/panfrost_gem.c | 35 +-
drivers/gpu/drm/panfrost/panfrost_gem.h | 7 +-
drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c | 9 +-
drivers/gpu/drm/panfrost/panfrost_gpu.c | 2 +
drivers/gpu/drm/panfrost/panfrost_job.c | 2 +
drivers/gpu/drm/panfrost/panfrost_mmu.c | 14 +-
drivers/gpu/drm/panfrost/panfrost_perfcnt.c | 315 ++++---
drivers/gpu/drm/panfrost/panfrost_perfcnt.h | 1 +
drivers/gpu/drm/panthor/panthor_gem.c | 3 +
drivers/gpu/drm/panthor/panthor_gpu.c | 89 +-
drivers/gpu/drm/panthor/panthor_mmu.c | 28 +-
drivers/gpu/drm/panthor/panthor_trace.h | 38 +
drivers/gpu/drm/pl111/pl111_display.c | 6 -
drivers/gpu/drm/pl111/pl111_drv.c | 16 -
drivers/gpu/drm/pl111/pl111_versatile.c | 18 -
drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 18 +-
drivers/gpu/drm/tegra/submit.c | 12 +-
drivers/gpu/drm/tegra/uapi.c | 2 +-
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 54 --
drivers/gpu/drm/tiny/appletbdrm.c | 48 +-
drivers/gpu/drm/vc4/vc4_bo.c | 3 +-
drivers/gpu/drm/vc4/vc4_drv.c | 29 -1,669 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Greg Kroah-Hartman
maintainerPATCH 1/2651 KVM: SVM: Add a vCPU-aware helper to get supported DEBUGCTL bits
7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Shivansh Dhiman <[email protected]>
[ Upstream commit cd0e6f4d7cec11be97fe6476309719b23ab5accb ]
Replace DEBUGCTL_RESERVED_BITS with a vCPU-aware helper that provides the set of supported bits so that KVM can handle bits that are conditionally supported based on the vCPU model, e.g. for features like Bus Lock Detect.
No functional change intended.
Stable-dep-of: 053621535f01 ("KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM")
--- arch/x86/kvm/svm/nested.c | 8 ++++---- arch/x86/kvm/svm/svm.c | 6 +++--- arch/x86/kvm/svm/svm.h | 7 +++++-- 3 files changed, 12 insertions(+), 9 deletions(-)
arch/x86/kvm/svm/nested.c +4 -4
@@ -821,7 +821,7 @@ static void nested_vmcb02_prepare_save(struct vcpu_svm *svm)* svm_set_msr's definition of reserved bits. */ svm_copy_lbrs (&vmcb02->save, save); - vmcb02->save.dbgctl &= ~DEBUGCTL_RESERVED_BITS ; + vmcb02->save.dbgctl &=svm_get_supported_debugctl (vcpu); }else {svm_copy_lbrs (&vmcb02->save, &vmcb01->save); }
@@ -1203,7 +1203,7 @@ int nested_svm_vmrun(struct kvm_vcpu *vcpu) }/* Copy state save area fields which are handled by VMRUN */ -void svm_copy_vmrun_state (struct vmcb_save_area *to_save, +void svm_copy_vmrun_state (struct kvm_vcpu *vcpu,struct vmcb_save_area *to_save,struct vmcb_save_area *from_save) { to_save->es = from_save->es;
@@ -1230,7 +1230,7 @@ void svm_copy_vmrun_state(struct vmcb_save_area *to_save,if (kvm_cpu_cap_has (X86_FEATURE_LBRV )) {svm_copy_lbrs (to_save, from_save); - to_save->dbgctl &= ~DEBUGCTL_RESERVED_BITS ; + to_save->dbgctl &=svm_get_supported_debugctl (vcpu); } }
@@ -2070,7 +2070,7 @@ static int svm_set_nested_state(struct kvm_vcpu *vcpu, svm->nested.vmcb12_gpa = kvm_state->hdr.svm.vmcb_pa; -svm_copy_vmrun_state (&svm->vmcb01.ptr->save, save); +svm_copy_vmrun_state (vcpu, &svm->vmcb01.ptr->save, save);nested_copy_vmcb_control_to_cache (svm, ctl);svm_switch_vmcb (svm, &svm->nested.vmcb02);
arch/x86/kvm/svm/svm.c +3 -3
@@ -3169,7 +3169,7 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) data &= ~DEBUGCTLMSR_BTF ; } -if (data &DEBUGCTL_RESERVED_BITS ) +if (data & ~svm_get_supported_debugctl (vcpu))return 1 ;if (svm->vmcb->save.dbgctl == data)
@@ -5064,7 +5064,7 @@ static int svm_enter_smm(struct kvm_vcpu *vcpu, union kvm_smram *smram)BUILD_BUG_ON (offsetof(struct vmcb , save) !=0x400 ); -svm_copy_vmrun_state (m_save.map.hva +0x400 , &svm->vmcb01.ptr->save); +svm_copy_vmrun_state (vcpu, m_save.map.hva +0x400 , &svm->vmcb01.ptr->save);return 0 ; }
@@ -5104,7 +5104,7 @@ static int svm_leave_smm(struct kvm_vcpu *vcpu, const union kvm_smram *smram)* used during SMM (see svm_enter_smm()) */ -svm_copy_vmrun_state (&svm->vmcb01.ptr->save, m_save.map.hva +0x400 ); +svm_copy_vmrun_state (vcpu, &svm->vmcb01.ptr->save, m_save.map.hva +0x400 );/* * Enter the nested guest now
arch/x86/kvm/svm/svm.h +5 -2
@@ -786,7 +786,10 @@ BUILD_SVM_MSR_BITMAP_HELPERS(bool, test, test) BUILD_SVM_MSR_BITMAP_HELPERS(void, clear, __clear) BUILD_SVM_MSR_BITMAP_HELPERS(void, set, __set) -#define DEBUGCTL_RESERVED_BITS (~DEBUGCTLMSR_LBR) +static inline u64 svm_get_supported_debugctl (struct kvm_vcpu *vcpu) +{ +return DEBUGCTLMSR_LBR ; +}/* svm.c */ extern bool dump_invalid_vmcb;
@@ -876,7 +879,7 @@ void svm_leave_nested(struct kvm_vcpu *vcpu);void svm_free_nested (struct vcpu_svm *svm);int svm_allocate_nested (struct vcpu_svm *svm);int nested_svm_vmrun (struct kvm_vcpu *vcpu); -void svm_copy_vmrun_state (struct vmcb_save_area *to_save, +void svm_copy_vmrun_state (struct kvm_vcpu *vcpu,struct vmcb_save_area *to_save,struct vmcb_save_area *from_save);void svm_copy_vmloadsave_state (struct vmcb *to_vmcb,struct vmcb *from_vmcb);void nested_svm_vmexit (struct vcpu_svm *svm);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 2/2651 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
In reply to Greg Kroah-Hartman7.3-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
@@ -1878,6 +1878,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, false); +} +static int svm_get_nested_state (struct kvm_vcpu *vcpu,struct kvm_nested_state __user *user_kvm_nested_state,u32 user_data_size)
@@ -1957,7 +1972,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;bool use_separate_l2_pat;unsigned long cr0;
@@ -2029,12 +2043,7 @@ static int svm_set_nested_state(struct kvm_vcpu *vcpu,* KVM_GET_NESTED_STATE, and (b) it is not loaded at emulated * #VMEXIT. */ -__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, false)) +if (!nested_svm_check_vmcb01_save (vcpu, save)) goto out_free;/*
arch/x86/kvm/svm/svm.c +2 -0
@@ -5105,6 +5105,8 @@ static int svm_leave_smm(struct kvm_vcpu *vcpu, const union kvm_smram *smram)*/ svm_copy_vmrun_state (vcpu, &svm->vmcb01.ptr->save, m_save.map.hva +0x400 ); +if (!nested_svm_check_vmcb01_save (vcpu, &svm->vmcb01.ptr->save)) +return 1 ;/* * Enter the nested guest now
arch/x86/kvm/svm/svm.h +2 -0
@@ -905,6 +905,8 @@ void nested_copy_vmcb_control_to_cache(struct vcpu_svm *svm,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); +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);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 3/2651 9p/xen: drain response work after unbinding IRQ
In reply to Greg Kroah-Hartman7.3-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
@@ -291,14 +291,14 @@ 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 (!ring->intf)break ;if (ring->irq >=0 ) {unbind_from_irqhandler (ring->irq, ring); ring->irq =-1 ; } +cancel_work_sync (&ring->work); +if (ring->data.in) {for (j =0 ; j < (1 << ring->intf->ring_order); j++) {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 4/2651 mm/shmem: hold off eviction in shmem_writeout()
In reply to Greg Kroah-Hartman7.3-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
@@ -1447,16 +1447,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 (&sbinfo->xa_cache, &info->xattrs, sbinfo->max_inodes ? &freed :NULL );
@@ -1737,6 +1742,13 @@ int shmem_writeout(struct swap_io_ctx *ctx, struct folio *folio,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); +folio_dup_swap (folio,NULL );shmem_delete_from_page_cache (folio,swp_to_radix_entry (folio->swap));
@@ -1744,6 +1756,8 @@ int shmem_writeout(struct swap_io_ctx *ctx, struct folio *folio, error =swap_writeout (ctx, folio);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; }
@@ -1760,6 +1774,8 @@ int shmem_writeout(struct swap_io_ctx *ctx, struct folio *folio,shmem_recalc_inode (inode,0 , -nr_pages);folio_put_swap (folio,NULL ); } +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 5/2651 PCI/AER: Fix memory leak in aer_recover_work_func() when pci_dev is missing
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Priyank Rathod <[email protected]>
[ Upstream commit d4c842c3af5bc52b3ca0b8a7f116114e43b6ba44 ]
When ACPI APEI/GHES processes PCIe AER error records, it allocates memory for aer_capability_regs (entry.regs) from ghes_estatus_pool and queues the entry into aer_recover_ring.
In aer_recover_work_func(), items are popped from aer_recover_ring via kfifo_get(). If pci_get_domain_bus_and_slot() fails to find a matching pci_dev, the code previously executed 'continue', bypassing the call to ghes_estatus_pool_region_free(). As a result, the memory allocated for entry.regs from ghes_estatus_pool was leaked.
This is reachable whenever the device reported by firmware is not (or is no longer) present in the PCI device tree, e.g. after hot-removal or when firmware reports an error for a device the kernel never enumerated.
Refactor aer_recover_work_func() to ensure ghes_estatus_pool_region_free() is called unconditionally for every dequeued entry, releasing the pool memory even when pci_dev is missing.
--- drivers/pci/pcie/aer.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/pci/pcie/aer.c +4 -5
@@ -1369,14 +1369,13 @@ static void aer_recover_work_func(struct work_struct *work)while (kfifo_get (&aer_recover_ring, &entry)) { pdev =pci_get_domain_bus_and_slot (entry.domain, entry.bus, entry.devfn); -if (!pdev) { +if (!pdev)pr_err_ratelimited ("%04x:%02x:%02x.%x: no pci_dev found\n" , entry.domain, entry.bus,PCI_SLOT (entry.devfn),PCI_FUNC (entry.devfn)); -continue ; - } -pci_print_aer (pdev, entry.severity, entry.regs); +else +pci_print_aer (pdev, entry.severity, entry.regs); regs = entry.regs;if (entry.severity ==AER_CORRECTABLE )
@@ -1394,7 +1393,7 @@ static void aer_recover_work_func(struct work_struct *work)ghes_estatus_pool_region_free ((unsigned long )entry.regs,sizeof (struct aer_capability_regs )); -if (err) { +if (pdev && err) {if (entry.severity ==AER_NONFATAL )pcie_do_recovery (pdev, pci_channel_io_normal, aer_root_reset);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 6/2651 mm: do not unintentionally overwrite atomic VMA flags
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lorenzo Stoakes (ARM) <[email protected]>
[ Upstream commit 13fc99f46399c9d38d1b54ecf0a3f387ba04d05d ]
Patch series "mm: avoid losing atomic VMA flags", v1.
Since commit 2ab7f1bbafc9 ("mm/madvise: allow guard page install/remove under VMA lock"), VMA_MAYBE_GUARD_BIT can be set atomically under the VMA read lock.
However, a number of places wrongly assume the flags are stable under the read lock, which can cause stale atomic VMA flags to overwrite existing valid ones.
Additionally, one case in which VMA_SOFTDIRTY_BIT was overwritten is also addressed.
This series addresses each of these, while keeping the logic inline with existing conventions.
Each patch in this series is a hotfix.
This patch (of 4):
madvise, mlock and mprotect take a copy of a VMA's flags holding only the VMA read lock, later writing it back under the write lock (in madvise_update_vma(), mlock_fixup(), mlock_vma_pages_range() and mprotect_fixup()).
This was done on the assumption that VMA flags cannot change with a read lock held.
However this changed in commit 2ab7f1bbafc9 ("mm/madvise: allow guard page install/remove under VMA lock"), which allowed VM_ATOMIC_SET_ALLOWED flags (currently only VMA_MAYBE_GUARD_BIT) to be written concurrently under a VMA read lock.
The actual write itself is safe as this is done under the VMA write lock at which point no further concurrent writes can occur, however at this point the stale flags mean that these callers can unintentionally overwrite atomic flags incorrectly.
The consequences of this are significant - a missing VMA_MAYBE_GUARD_BIT could result in page tables not being copied on fork (the vma_needs_copy() check can return false) or being overwritten on file-backed THP collapse (the file_backed_vma_is_retractable() can return true).
Resolve the issue by always taking care to retain existing atomic flags when overwriting VMA flags, replacing the inconsistently named vma_flags_reset_once() with vma_overwrite_flags() to do so, and always invoking it when flags are overwritten like this.
Reads are a problem too - madvise, mlock and mprotect all compare VMA flags without a VMA write lock held via vma_flags_same_pair().
This has more serious impact, as concurrent changes to atomic VMA flags can cause two sets of VMA flags to be wrongly considered different.
For mprotect and madvise this causes a useless split, but mlock is impacted more seriously as it can result in mm->locked_vm underflow.
Fix this by updating vma_flags_same_pair() to disregard VM_ATOMIC_SET_ALLOWED VMAs - VMA equality is the same as VMA mergeability, and atomic VMA flags are disregarded when comparing VMA flags for merge - so this is justified semantically.
Additionally, remove the redundant vma_flags_same_mask() and the unused vma_flags_same() as part of the change, and replace VM_ATOMIC_SET_ALLOWED with VMA_ATOMIC_SET_ALLOWED, using the new VMA flag API.
Finally, update userland VMA tests to reflect the changes.
--- include/linux/mm.h | 166 ++++++++++++++++---------------- mm/madvise.c | 4 +- mm/mlock.c | 6 +- mm/mprotect.c | 2 +- tools/testing/vma/include/dup.h | 76 +++++++++------ tools/testing/vma/shared.h | 16 +-- 6 files changed, 146 insertions(+), 124 deletions(-)
include/linux/mm.h +85 -81
@@ -622,7 +622,7 @@ enum {#define VMA_LOCKED_MASK mk_vma_flags(VMA_LOCKED_BIT, VMA_LOCKONFAULT_BIT)/* These flags can be updated atomically via VMA/mmap read lock. */ -#define VM_ATOMIC_SET_ALLOWED VM_MAYBE_GUARD +#define VMA_ATOMIC_SET_ALLOWED mk_vma_flags(VMA_MAYBE_GUARD_BIT)/* Arch-specific flags to clear when updating VM flags on protection change */ #ifndef VM_ARCH_CLEAR
@@ -1019,22 +1019,6 @@ static inline void vm_flags_reset(struct vm_area_struct *vma,vm_flags_init (vma, flags); } -static inline void vma_flags_reset_once (struct vm_area_struct *vma, -vma_flags_t *flags) -{ -const unsigned long word = flags->__vma_flags[0 ]; - -/* It is assumed only the first system word must be written once. */ -vma_flags_overwrite_word_once (&vma->flags, word); -/* The remainder can be copied normally. */ -if (NUM_VMA_FLAG_BITS >BITS_PER_LONG ) { -unsigned long *dst = &vma->flags.__vma_flags[1 ]; -const unsigned long *src = &flags->__vma_flags[1 ]; - -bitmap_copy (dst, src,NUM_VMA_FLAG_BITS -BITS_PER_LONG ); - } -} -static inline void vm_flags_set (struct vm_area_struct *vma,vm_flags_t flags) {
@@ -1071,48 +1055,6 @@ static inline void vm_flags_mod(struct vm_area_struct *vma,__vm_flags_mod (vma, set, clear); } -static __always_inline bool __vma_atomic_valid_flag(struct vm_area_struct *vma, -vma_flag_t bit) -{ -const vm_flags_t mask =BIT ((__force int )bit); - -/* Only specific flags are permitted */ -if (WARN_ON_ONCE (!(mask &VM_ATOMIC_SET_ALLOWED ))) -return false; - -return true; -} - -/* -* Set VMA flag atomically. Requires only VMA/mmap read lock. Only specific -* valid flags are allowed to do this. -*/ -static __always_inline void vma_set_atomic_flag(struct vm_area_struct *vma, -vma_flag_t bit) -{ -unsigned long *bitmap = vma->flags.__vma_flags; - -vma_assert_stabilised (vma); -if (__vma_atomic_valid_flag (vma, bit)) -set_bit ((__force int )bit, bitmap); -} - -/* -* Test for VMA flag atomically. Requires no locks. Only specific valid flags -* are allowed to do this. -* -* This is necessarily racey, so callers must ensure that serialisation is -* achieved through some other means, or that races are permissible. -*/ -static __always_inline bool vma_test_atomic_flag(struct vm_area_struct *vma, -vma_flag_t bit) -{ -if (__vma_atomic_valid_flag (vma, bit)) -return test_bit ((__force int )bit, &vma->vm_flags); - -return false; -} -/* Set an individual VMA flag in flags, non-atomically. */ static __always_inline void vma_flags_set_flag(vma_flags_t *flags,vma_flag_t bit)
@@ -1334,34 +1276,24 @@ static __always_inline vma_flags_t vma_flags_diff_pair(const vma_flags_t *flags,return dst; } -/* Determine if flags and flags_other have precisely the same flags set. */ +/* +* Determine if flags and flags_other have precisely the same flags set, +* excluding atomic VMA flags. +*/ static __always_inline bool vma_flags_same_pair(const vma_flags_t *flags, -const vma_flags_t *flags_other) +const vma_flags_t *flags_other) { -const unsigned long *bitmap = flags->__vma_flags; -const unsigned long *bitmap_other = flags_other->__vma_flags; - -return bitmap_equal (bitmap, bitmap_other,NUM_VMA_FLAG_BITS ); -} +vma_flags_t diff =vma_flags_diff_pair (flags, flags_other); -/* Determine if flags and flags_other have precisely the same flags set. */ -static __always_inline bool vma_flags_same_mask(const vma_flags_t *flags, -vma_flags_t flags_other) -{ -const unsigned long *bitmap = flags->__vma_flags; -const unsigned long *bitmap_other = flags_other.__vma_flags; +/* +* Atomic VMA flags may be set concurrently under the VMA read lock, so +* are disregarded for equality testing purposes. +*/ +vma_flags_clear_mask (&diff,VMA_ATOMIC_SET_ALLOWED ); -return bitmap_equal (bitmap, bitmap_other,NUM_VMA_FLAG_BITS ); +return vma_flags_empty (&diff); } -/* -* Helper macro to determine if only the specific flags are set, e.g.: -* -* if (vma_flags_same(&flags, VMA_WRITE_BIT) { ... } -*/ -#define vma_flags_same (flags, ...) \ - vma_flags_same_mask(flags, mk_vma_flags(__VA_ARGS__)) -/* * Test whether a specific flag in the VMA is set, e.g.: *
@@ -1468,6 +1400,78 @@ static __always_inline void vma_clear_flags_mask(struct vm_area_struct *vma,#define vma_clear_flags (vma, ...) \ vma_clear_flags_mask(vma, mk_vma_flags(__VA_ARGS__)) +static __always_inline bool __vma_atomic_valid_flag(struct vm_area_struct *vma, +vma_flag_t bit) +{ +const vma_flags_t mask =VMA_ATOMIC_SET_ALLOWED ; + +/* Is this flag allowed to be set atomically? */ +if (WARN_ON_ONCE (!vma_flags_test (&mask, bit))) +return false; + +return true; +} + +/* +* Set VMA flag atomically. Requires only VMA/mmap read lock. Only specific +* valid flags are allowed to do this. +*/ +static __always_inline void vma_set_atomic_flag(struct vm_area_struct *vma, +vma_flag_t bit) +{ +unsigned long *bitmap = vma->flags.__vma_flags; + +vma_assert_stabilised (vma); +if (__vma_atomic_valid_flag (vma, bit)) +set_bit ((__force int )bit, bitmap); +} + +/* +* Test for VMA flag atomically. Requires no locks. Only specific valid flags +* are allowed to do this. +* +* This is necessarily racey, so callers must ensure that serialisation is +* achieved through some other means, or that races are permissible. +*/ +static __always_inline bool vma_test_atomic_flag(struct vm_area_struct *vma, +vma_flag_t bit) +{ +if (__vma_atomic_valid_flag (vma, bit)) +return test_bit ((__force int )bit, &vma->vm_flags); + +return false; +} + +/* +* Overwrite the VMA's flags with new ones, preserving atomic VMA flags in the +* process. The write is done once and once only. +*/ +static inline void vma_overwrite_flags (struct vm_area_struct *vma, +vma_flags_t new_flags) +{ +vma_flags_t atomic; + +vma_assert_write_locked (vma); + +/* +* Preserve the VMA's atomic flags, which are kept stable by the VMA +* write lock. +*/ + atomic =vma_flags_and_mask (&vma->flags,VMA_ATOMIC_SET_ALLOWED ); +vma_flags_clear_mask (&new_flags,VMA_ATOMIC_SET_ALLOWED ); +vma_flags_set_mask (&new_flags, atomic); + +/* It is assumed only the first system word must be written once. */ +vma_flags_overwrite_word_once (&vma->flags, new_flags.__vma_flags[0 ]); +/* The remainder can be copied normally. */ +if (NUM_VMA_FLAG_BITS >BITS_PER_LONG ) { +unsigned long *dst = &vma->flags.__vma_flags[1 ]; +const unsigned long *src = &new_flags.__vma_flags[1 ]; + +bitmap_copy (dst, src,NUM_VMA_FLAG_BITS -BITS_PER_LONG ); + } +} +/* * Test whether a specific VMA flag is set in a VMA descriptor, e.g.: *
mm/madvise.c +2 -2
@@ -158,7 +158,7 @@ static int madvise_update_vma(vm_flags_t new_flags,bool set_new_anon_name = madv_behavior->behavior == __MADV_SET_ANON_VMA_NAME;VMA_ITERATOR (vmi, madv_behavior->mm, range->start); -if (vma_flags_same_mask (&vma->flags, new_vma_flags) && +if (vma_flags_same_pair (&vma->flags, &new_vma_flags) && (!set_new_anon_name ||anon_vma_name_eq (anon_vma_name (vma), anon_name)))return 0 ;
@@ -177,7 +177,7 @@ static int madvise_update_vma(vm_flags_t new_flags,/* vm_flags is protected by the mmap_lock held in write mode. */ vma_start_write (vma); - vma->flags = new_vma_flags; +vma_overwrite_flags (vma, new_vma_flags);/* * If the vma become good for khugepaged to scan, * register it here without waiting a page fault that
mm/mlock.c +3 -3
@@ -443,7 +443,7 @@ static void mlock_vma_pages_range(struct vm_area_struct *vma,if (vma_flags_test (new_vma_flags,VMA_LOCKED_BIT ))vma_flags_set (new_vma_flags,VMA_IO_BIT );vma_start_write (vma); -vma_flags_reset_once (vma, new_vma_flags); +vma_overwrite_flags (vma, *new_vma_flags);lru_add_drain ();walk_page_range_vma (vma, start, end, &mlock_walk_ops,NULL );
@@ -451,7 +451,7 @@ static void mlock_vma_pages_range(struct vm_area_struct *vma,if (vma_flags_test (new_vma_flags,VMA_IO_BIT )) {vma_flags_clear (new_vma_flags,VMA_IO_BIT ); -vma_flags_reset_once (vma, new_vma_flags); +vma_overwrite_flags (vma, *new_vma_flags); } }
@@ -507,7 +507,7 @@ static int mlock_fixup(struct vma_iterator *vmi, struct vm_area_struct *vma, vma_flags_test(&old_vma_flags, VMA_LOCKED_BIT)) { /* No work to do, and mlocking twice would be wrong */ vma_start_write(vma); - vma->flags = *new_vma_flags; + vma_overwrite_flags(vma, *new_vma_flags); } else {mlock_vma_pages_range (vma, start, end, new_vma_flags); }
mm/mprotect.c +1 -1
@@ -834,7 +834,7 @@ mprotect_fixup(struct vma_iterator *vmi, struct mmu_gather *tlb,* held in write mode. */ vma_start_write (vma); -vma_flags_reset_once (vma, &new_vma_flags); +vma_overwrite_flags (vma, new_vma_flags);if (vma_wants_manual_pte_write_upgrade (vma)) mm_cp_flags |=MM_CP_TRY_CHANGE_WRITABLE ;vma_set_page_prot (vma);
tools/testing/vma/include/dup.h +45 -31
106 lines not on this page · raw message
tools/testing/vma/shared.h +10 -6
@@ -51,17 +51,21 @@ __TO_SCALAR(__val1), __TO_SCALAR(__val2)); \ } while (0) -#define ASSERT_FLAGS_SAME_MASK (_flags, _flags_other) \ - ASSERT_TRUE(vma_flags_same_mask((_flags), (_flags_other))) +#define ASSERT_FLAGS_SAME_MASK (_flags, _flags_other) do { \ + const vma_flags_t __flags_other = (_flags_other); \ + ASSERT_TRUE(vma_flags_same_pair((_flags), &__flags_other)); \ + } while (0) -#define ASSERT_FLAGS_NOT_SAME_MASK (_flags, _flags_other) \ - ASSERT_FALSE(vma_flags_same_mask((_flags), (_flags_other))) +#define ASSERT_FLAGS_NOT_SAME_MASK (_flags, _flags_other) do { \ + const vma_flags_t __flags_other = (_flags_other); \ + ASSERT_FALSE(vma_flags_same_pair((_flags), &__flags_other)); \ + } while (0)#define ASSERT_FLAGS_SAME (_flags, ...) \ - ASSERT_TRUE(vma_flags_same(_flags, __VA_ARGS__)) + ASSERT_FLAGS_SAME_MASK(_flags, mk_vma_flags(__VA_ARGS__))#define ASSERT_FLAGS_NOT_SAME (_flags, ...) \ - ASSERT_FALSE(vma_flags_same(_flags, __VA_ARGS__)) + ASSERT_FLAGS_NOT_SAME_MASK(_flags, mk_vma_flags(__VA_ARGS__))#define ASSERT_FLAGS_EMPTY (_flags) \ ASSERT_TRUE(vma_flags_empty(_flags))
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 7/2651 ocfs2/cluster: hold a reference on the heartbeat thread
In reply to Greg Kroah-Hartman7.3-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
@@ -1971,18 +1971,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);
@@ -2027,7 +2031,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);
@@ -2221,7 +2225,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 8/2651 ocfs2/heartbeat: serialize concurrent writes to a regions dev attribute
In reply to Greg Kroah-Hartman7.3-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. */
@@ -1681,6 +1683,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 ;
@@ -1710,6 +1713,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 ;
@@ -1736,6 +1740,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 ;
@@ -1753,10 +1758,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; }
@@ -1872,11 +1879,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;
@@ -1884,6 +1889,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 ;
@@ -1987,9 +1994,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 ;
@@ -2041,6 +2054,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);
@@ -2143,6 +2170,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 9/2651 platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively
In reply to Greg Kroah-Hartman7.3-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
@@ -297,12 +297,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 ;
@@ -324,7 +328,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 ;
@@ -336,7 +340,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 ; }
@@ -394,7 +398,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 10/2651 mm/userfaultfd: wake waiters when registration modes are removed
In reply to Greg Kroah-Hartman7.3-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.
--- mm/userfaultfd.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
mm/userfaultfd.c +20 -0
@@ -2286,6 +2286,9 @@ static struct vm_area_struct *userfaultfreturn ret; } +static void wake_userfault_range (struct userfaultfd_ctx *ctx, +unsigned long start,unsigned long end); +/* Assumes mmap write lock taken, and mm_struct pinned. */ static int userfaultfd_register_range(struct userfaultfd_ctx *ctx, struct vm_area_struct *vma,
@@ -2303,6 +2306,8 @@ static int userfaultfd_register_range(st 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));
@@ -2348,6 +2353,10 @@ static int userfaultfd_register_range(st*/ userfaultfd_set_ctx (vma, ctx, vm_flags); +/* Retry faults for removed modes while the VMA is write-locked. */ +if (any_mode_removed) +wake_userfault_range (ctx, start, vma_end); +if (is_vm_hugetlb_page (vma) &&uffd_disable_huge_pmd_share (vma))hugetlb_unshare_all_pmds (vma);
@@ -3664,6 +3673,17 @@ static __always_inline void wake_userfau__wake_userfault (ctx, range); } +static void wake_userfault_range (struct userfaultfd_ctx *ctx, +unsigned long start,unsigned long end) +{ +struct userfaultfd_wake_range range = { + .start = start, + .len = end - start, + }; + +wake_userfault (ctx, &range); +} + static __always_inline int validate_unaligned_range(struct mm_struct *mm,__u64 start,__u64 len) {
Greg Kroah-Hartman
maintainerPATCH 11/2651 scsi: ufs: core: Change the error check sequence for auto hibern8
In reply to Greg Kroah-Hartman7.3-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 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-)
drivers/ufs/core/ufshcd.c +13 -5
@@ -5876,18 +5876,26 @@ 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) { -dev_err (hba->dev, -"No active UIC command. Maybe a timeout occurred?\n" ); +if (!ah8_err) +dev_err (hba->dev, +"No active UIC command. Maybe a timeout occurred?\n" );return retval; } -if (ufshcd_is_auto_hibern8_error (hba, intr_status)) - hba->errors |= (UFSHCD_UIC_HIBERN8_MASK & intr_status); -if (intr_status &UIC_COMMAND_COMPL ) {/* * Store the UIC command result in the lowest byte of
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 12/2651 net: mana: Introduce gdma_bus_ops for bus-specific operations
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Manish Awasthi <[email protected]>
[ Upstream commit c03e69c95a18e957dd461d60bd343e0488a986c4 ]
Introduce per-device gdma_bus_ops for interrupt allocation, IRQ lookup, reset, servicing, and bus-specific capabilities. Route the shared GDMA code through these callbacks and provide the PCI implementation.
Move common device bring-up and teardown into mana_gd_setup() and mana_gd_cleanup(), including hardware-channel initialization, device enumeration, interrupt-pool sizing, and servicing workqueue management. Record the vPort count for transport-specific queue sizing and keep shared IRQ context bookkeeping in the core.
This prepares the driver for additional bus transports without duplicating the core or adding configuration checks throughout it.
Stable-dep-of: 684603842b78 ("net: mana: Add support to process throttled EQEs")
--- .../net/ethernet/microsoft/mana/gdma_main.c | 907 ++++++++++-------- drivers/net/ethernet/microsoft/mana/mana_en.c | 10 +- include/net/mana/gdma.h | 102 +- 3 files changed, 630 insertions(+), 389 deletions(-)
drivers/net/ethernet/microsoft/mana/gdma_main.c +530 -377
@@ -2,49 +2,42 @@/* Copyright (c) 2021, Microsoft Corporation. */ #include <linux/bitfield.h> +#include <linux/cpumask.h> #include <linux/debugfs.h> +#include <linux/delay.h> +#include <linux/list.h> #include <linux/module.h> -#include <linux/pci.h> #include <linux/sizes.h> #include <linux/utsname.h> #include <linux/version.h> #include <linux/msi.h> #include <linux/irqdomain.h> #include <linux/export.h> +#include <linux/pci.h> +#include <linux/slab.h> +#include <linux/topology.h> #include <linux/uaccess.h> +#include <linux/xarray.h> #include <net/mana/mana.h> #include <net/mana/hw_channel.h> struct dentry *mana_debugfs_root; -struct mana_dev_recovery { -struct list_head list; -struct pci_dev *pdev; -enum gdma_eqe_type type; -}; - -static struct mana_dev_recovery_work { -struct list_head dev_list; -struct delayed_work work; - -/* Lock for dev_list above */ -spinlock_t lock; -} mana_dev_recovery_work; - -static u32 mana_gd_r32 (struct gdma_context *g,u64 offset) +/* +* True if the underlying bus can allocate MSI-X vectors after probe time. +* Buses that size their vector pool at probe install no callback. +*/ +static bool mana_gd_msix_can_alloc_dyn (struct gdma_context *gc) { -return readl (g->bar0_va + offset); -} +if (!gc->bus_ops || !gc->bus_ops->msix_can_alloc_dyn) +return false; -static u64 mana_gd_r64 (struct gdma_context *g,u64 offset) -{ -return readq (g->bar0_va + offset); +return gc->bus_ops->msix_can_alloc_dyn (gc); } -static int mana_gd_init_pf_regs (struct pci_dev *pdev) +static int mana_gd_init_pf_regs (struct gdma_context *gc) { -struct gdma_context *gc =pci_get_drvdata (pdev);u64 remaining_barsize;u64 sriov_base_off;u64 sriov_shm_off;
@@ -102,9 +95,8 @@ static int mana_gd_init_pf_regs(struct pci_dev *pdev)return 0 ; } -static int mana_gd_init_vf_regs (struct pci_dev *pdev) +static int mana_gd_init_vf_regs (struct gdma_context *gc) { -struct gdma_context *gc =pci_get_drvdata (pdev);u64 shm_off; gc->db_page_size =mana_gd_r32 (gc,GDMA_REG_DB_PAGE_SIZE ) &0xFFFF ;
@@ -148,14 +140,12 @@ static int mana_gd_init_vf_regs(struct pci_dev *pdev)return 0 ; } -static int mana_gd_init_registers (struct pci_dev *pdev) +int mana_gd_init_registers (struct gdma_context *gc) { -struct gdma_context *gc =pci_get_drvdata (pdev); -if (gc->is_pf && !gc->is_pf2) -return mana_gd_init_pf_regs (pdev); +return mana_gd_init_pf_regs (gc);else -return mana_gd_init_vf_regs (pdev); +return mana_gd_init_vf_regs (gc); }/* Suppress logging when we set timeout to zero */
@@ -176,9 +166,8 @@ bool mana_need_log(struct gdma_context *gc, int err)return true; } -static int mana_gd_query_max_resources (struct pci_dev *pdev) +int mana_gd_query_max_resources (struct gdma_context *gc) { -struct gdma_context *gc =pci_get_drvdata (pdev);struct gdma_query_max_resources_resp resp = {};struct gdma_general_req req = {};unsigned int max_num_queues;
@@ -194,7 +183,7 @@ static int mana_gd_query_max_resources(struct pci_dev *pdev)* MSI-X allocation; on non-dyn platforms msi_sharing is * unconditionally true (set in mana_gd_setup_hwc_irqs). */ -if (pci_msix_can_alloc_dyn (to_pci_dev (gc->dev))) +if (mana_gd_msix_can_alloc_dyn (gc)) gc->msi_sharing = false; mana_gd_init_req_hdr(&req.hdr, GDMA_QUERY_MAX_RESOURCES,
@@ -207,7 +196,11 @@ static int mana_gd_query_max_resources(struct pci_dev *pdev)return err ? err : -EPROTO ; } -if (!pci_msix_can_alloc_dyn (pdev)) { +if (!mana_gd_msix_can_alloc_dyn (gc)) { +/* Buses that size their vector pool at probe time cannot grow +* it afterwards, so never raise num_msix_usable above what has +* already been allocated. +*/ if (gc->num_msix_usable > resp.max_msix) gc->num_msix_usable = resp.max_msix; }else {
@@ -221,20 +214,24 @@ static int mana_gd_query_max_resources(struct pci_dev *pdev)/* MSI-X vectors are allocated by index into the device MSI-X table, so * never ask for more than the table holds. It can be smaller than both -* resp.max_msix and the CPU count. +* resp.max_msix and the CPU count. A bus that cannot report a table +* size installs no callback and skips the clamp. */ - err =pci_msix_vec_count (pdev); -if (err <=0 ) { -dev_err (gc->dev,"Failed to query MSI-X table size: %d\n" , err); -return err <0 ? err : -ENOSPC ; - } - msix_vec_count = err; +if (gc->bus_ops && gc->bus_ops->msix_vec_count) { + err = gc->bus_ops->msix_vec_count (gc); +if (err <=0 ) { +dev_err (gc->dev, +"Failed to query MSI-X table size: %d\n" , err); +return err <0 ? err : -ENOSPC ; + } + msix_vec_count = err; -if (gc->num_msix_usable > msix_vec_count) { -dev_info (gc->dev, -"Limiting MSI-X vectors from %u to table size %u\n" , - gc->num_msix_usable, msix_vec_count); - gc->num_msix_usable = msix_vec_count; +if (gc->num_msix_usable > msix_vec_count) { +dev_info (gc->dev, +"Limiting MSI-X vectors from %u to table size %u\n" , + gc->num_msix_usable, msix_vec_count); + gc->num_msix_usable = msix_vec_count; + } }if (gc->num_msix_usable <=1 )
@@ -286,6 +283,8 @@ static int mana_gd_query_max_resources(struct pci_dev *pdev)if (num_ports >MAX_PORTS_IN_MANA_DEV ) num_ports =MAX_PORTS_IN_MANA_DEV ; + gc->num_ports = num_ports; +/* * Adjust the per-vPort max queue count to allow dedicated * MSIx for each vPort. Prefer at least MANA_DEF_NUM_QUEUES,
@@ -317,9 +316,8 @@ static int mana_gd_query_max_resources(struct pci_dev *pdev)return 0 ; } -static int mana_gd_query_hwc_timeout (struct pci_dev *pdev,u32 *timeout_val) +static int mana_gd_query_hwc_timeout (struct gdma_context *gc,u32 *timeout_val) { -struct gdma_context *gc =pci_get_drvdata (pdev);struct gdma_query_hwc_timeout_resp resp = {};struct gdma_query_hwc_timeout_req req = {};int err;
@@ -336,9 +334,8 @@ static int mana_gd_query_hwc_timeout(struct pci_dev *pdev, u32 *timeout_val)return 0 ; } -static int mana_gd_detect_devices (struct pci_dev *pdev) +int mana_gd_detect_devices (struct gdma_context *gc) { -struct gdma_context *gc =pci_get_drvdata (pdev);struct gdma_list_devices_resp resp = {};struct gdma_general_req req = {};struct gdma_dev_id dev;
@@ -657,187 +654,31 @@ void mana_gd_ring_dim(struct gdma_queue *cq, u32 mod_usec, bool mod_usec_vld, }EXPORT_SYMBOL_NS (mana_gd_ring_dim,"NET_MANA" ); -#define MANA_SERVICE_PERIOD 10 - -static void mana_serv_rescan (struct pci_dev *pdev) -{ -struct pci_bus *parent; - -pci_lock_rescan_remove (); - - parent = pdev->bus; -if (!parent) { -dev_err (&pdev->dev,"MANA service: no parent bus\n" ); - goto out; - } - -pci_stop_and_remove_bus_device (pdev); -pci_rescan_bus (parent); - -out: -pci_unlock_rescan_remove (); -} - -static void mana_serv_fpga (struct pci_dev *pdev) -{ -struct pci_bus *bus, *parent; - -pci_lock_rescan_remove (); - - bus = pdev->bus; -if (!bus) { -dev_err (&pdev->dev,"MANA service: no bus\n" ); - goto out; - } - - parent = bus->parent; -if (!parent) { -dev_err (&pdev->dev,"MANA service: no parent bus\n" ); - goto out; - } - -pci_stop_and_remove_bus_device (bus->self); - -msleep (MANA_SERVICE_PERIOD *1000 ); - -pci_rescan_bus (parent); - -out: -pci_unlock_rescan_remove (); -} - -static void mana_serv_reset (struct pci_dev *pdev) -{ -struct gdma_context *gc =pci_get_drvdata (pdev); -struct hw_channel_context *hwc; -int ret; - -if (!gc) { -/* Perform PCI rescan on device if GC is not set up */ -dev_err (&pdev->dev,"MANA service: GC not setup, rescanning\n" ); -mana_serv_rescan (pdev); -return ; - } - - hwc = gc->hwc.driver_data; -if (!hwc) { -dev_err (&pdev->dev,"MANA service: no HWC\n" ); - goto out; - } - -/* HWC is not responding in this case, so don't wait */ - hwc->hwc_timeout =0 ; - -dev_info (&pdev->dev,"MANA reset cycle start\n" ); - -mana_gd_suspend (pdev,PMSG_SUSPEND ); - -msleep (MANA_SERVICE_PERIOD *1000 ); - - ret =mana_gd_resume (pdev); -if (ret == -ETIMEDOUT || ret == -EPROTO ) { -/* Perform PCI rescan on device if we failed on HWC */ -dev_err (&pdev->dev,"MANA service: resume failed, rescanning\n" ); -mana_serv_rescan (pdev); -return ; - } - -if (ret) -dev_info (&pdev->dev,"MANA reset cycle failed err %d\n" , ret); -else -dev_info (&pdev->dev,"MANA reset cycle completed\n" ); - -out: -clear_bit (GC_IN_SERVICE , &gc->flags); -} - -static void mana_do_service (enum gdma_eqe_type type,struct pci_dev *pdev) -{ -switch (type) { -case GDMA_EQE_HWC_FPGA_RECONFIG : -mana_serv_fpga (pdev); -break ; - -case GDMA_EQE_HWC_RESET_REQUEST : -mana_serv_reset (pdev); -break ; - -default : -dev_err (&pdev->dev,"MANA service: unknown type %d\n" , type); -break ; - } -} - -static void mana_recovery_delayed_func (struct work_struct *w) -{ -struct mana_dev_recovery_work *work; -struct mana_dev_recovery *dev; -unsigned long flags; - - work = container_of(w, struct mana_dev_recovery_work, work.work); - -spin_lock_irqsave (&work->lock, flags); - -while (!list_empty (&work->dev_list)) { - dev =list_first_entry (&work->dev_list, - struct mana_dev_recovery, list); -list_del (&dev->list); -spin_unlock_irqrestore (&work->lock, flags); - -mana_do_service (dev->type, dev->pdev); -pci_dev_put (dev->pdev); -kfree (dev); - -spin_lock_irqsave (&work->lock, flags); - } - -spin_unlock_irqrestore (&work->lock, flags); -} - -static void mana_serv_func (struct work_struct *w) +/* +* Queue device servicing or recovery on buses that support it. +* +* Servicing tears the device down and brings it back up, so it depends on +* bus-level facilities the GDMA core does not have. Buses that provide no +* servicing path install no callback and the request is rejected. +*/ +int mana_schedule_serv_work (struct gdma_context *gc,enum gdma_eqe_type type) { -struct mana_serv_work *mns_wk; -struct pci_dev *pdev; - - mns_wk = container_of(w, struct mana_serv_work, serv_work); - pdev = mns_wk->pdev; - -if (pdev) -mana_do_service (mns_wk->type, pdev); +if (!gc->bus_ops || !gc->bus_ops->schedule_serv_work) +return -EOPNOTSUPP ; -pci_dev_put (pdev); -kfree (mns_wk); -module_put (THIS_MODULE ); +return gc->bus_ops->schedule_serv_work (gc, type); } -int mana_schedule_serv_work (struct gdma_context *gc,enum gdma_eqe_type type) +/* The servicing workqueue is owned by the GDMA core because the queueing +* sites live here and in mana_en.c, which every transport shares. Each bus +* driver creates it during setup and destroys it during cleanup. +*/ +int mana_gd_alloc_service_wq (struct gdma_context *gc) { -struct mana_serv_work *mns_wk; - -if (test_and_set_bit (GC_IN_SERVICE , &gc->flags)) { -dev_info (gc->dev,"Already in service\n" ); -return -EBUSY ; - } - -if (!try_module_get (THIS_MODULE )) { -dev_info (gc->dev,"Module is unloading\n" ); -clear_bit (GC_IN_SERVICE , &gc->flags); -return -ENODEV ; - } - - mns_wk =kzalloc_obj (*mns_wk,GFP_ATOMIC ); -if (!mns_wk) { -module_put (THIS_MODULE ); -clear_bit (GC_IN_SERVICE , &gc->flags); + gc->service_wq =alloc_ordered_workqueue ("gdma_service_wq" ,0 ); +if (!gc->service_wq)return -ENOMEM ; - } -dev_info (gc->dev,"Start MANA service type:%d\n" , type); - mns_wk->pdev =to_pci_dev (gc->dev); - mns_wk->type = type; -pci_dev_get (mns_wk->pdev); -INIT_WORK (&mns_wk->serv_work, mana_serv_func); -schedule_work (&mns_wk->serv_work);return 0 ; }
@@ -904,6 +745,15 @@ ssize_t mana_gd_read_ring(struct gdma_queue *q, char __user *buf,return copied; } +void mana_gd_free_service_wq (struct gdma_context *gc) +{ +if (!gc->service_wq) +return ; + +destroy_workqueue (gc->service_wq); + gc->service_wq =NULL ; +} +static void mana_gd_process_eqe (struct gdma_queue *eq) {u32 head = eq->head % (eq->queue_size /GDMA_EQE_SIZE );
@@ -975,7 +825,7 @@ static void mana_gd_process_eqe(struct gdma_queue *eq) } } -static void mana_gd_process_eq_events (void *arg) +void mana_gd_process_eq_events (void *arg) {u32 owner_bits, new_bits, old_bits;union gdma_eqe_info eqe_info;
@@ -1530,9 +1380,8 @@ void mana_gd_destroy_queue(struct gdma_context *gc, struct gdma_queue *queue) }EXPORT_SYMBOL_NS (mana_gd_destroy_queue,"NET_MANA" ); -int mana_gd_verify_vf_version (struct pci_dev *pdev) +int mana_gd_verify_vf_version (struct gdma_context *gc) { -struct gdma_context *gc =pci_get_drvdata (pdev);struct gdma_verify_ver_resp resp = {};struct gdma_verify_ver_req req = {};struct hw_channel_context *hwc;
@@ -1546,6 +1395,8 @@ int mana_gd_verify_vf_version(struct pci_dev *pdev) req.protocol_ver_max =GDMA_PROTOCOL_LAST ; req.gd_drv_cap_flags1 =GDMA_DRV_CAP_FLAGS1 ; +if (gc->bus_ops) + req.gd_drv_cap_flags1 |= gc->bus_ops->drv_cap_flags1; req.gd_drv_cap_flags2 =GDMA_DRV_CAP_FLAGS2 ; req.gd_drv_cap_flags3 =GDMA_DRV_CAP_FLAGS3 ; req.gd_drv_cap_flags4 =GDMA_DRV_CAP_FLAGS4 ;
@@ -1574,7 +1425,7 @@ int mana_gd_verify_vf_version(struct pci_dev *pdev) &gc->pf_cap_flags1);if (resp.pf_cap_flags1 &GDMA_DRV_CAP_FLAG_1_HWC_TIMEOUT_RECONFIG ) { - err =mana_gd_query_hwc_timeout (pdev, &hwc->hwc_timeout); + err =mana_gd_query_hwc_timeout (gc, &hwc->hwc_timeout);if (err) {dev_err (gc->dev,"Failed to set the hwc timeout %d\n" , err);return err;
@@ -1873,7 +1724,7 @@ int mana_gd_poll_cq(struct gdma_queue *cq, struct gdma_comp *comp, int num_cqe) }EXPORT_SYMBOL_NS (mana_gd_poll_cq,"NET_MANA" ); -static irqreturn_t mana_gd_intr (int irq,void *arg) +irqreturn_t mana_gd_intr (int irq,void *arg) {struct gdma_irq_context *gic = arg;struct list_head *eq_list = &gic->eq_list;
@@ -1888,11 +1739,25 @@ static irqreturn_t mana_gd_intr(int irq, void *arg)return IRQ_HANDLED ; } +/* +* Reset the device using whatever mechanism the bus provides. +*/ +int mana_gd_dev_reset (struct gdma_context *gc) +{ +if (!gc->bus_ops || !gc->bus_ops->dev_reset) +return -EOPNOTSUPP ; + +return gc->bus_ops->dev_reset (gc); +} + +/* +* Release a reference on the IRQ context backing an MSI vector, freeing +* the vector once the last user is gone. +*/ void mana_gd_put_gic (struct gdma_context *gc,bool use_msi_bitmap,int msi) { -struct pci_dev *dev =to_pci_dev (gc->dev); +const struct gdma_bus_ops *ops = gc->bus_ops;struct gdma_irq_context *gic; -struct msi_map irq_map;int irq;mutex_lock (&gc->gic_mutex);
@@ -1917,11 +1782,8 @@ void mana_gd_put_gic(struct gdma_context *gc, bool use_msi_bitmap, int msi)irq_update_affinity_hint (irq,NULL );free_irq (irq, gic); -if (gic->dyn_msix) { - irq_map.virq = irq; - irq_map.index = msi; -pci_msix_free_irq (dev, irq_map); - } +if (gic->dyn_msix) + ops->msix_free (gc, msi, irq);xa_erase (&gc->irq_contexts, msi);kfree (gic);
@@ -1944,12 +1806,10 @@ struct gdma_irq_context *mana_gd_get_gic(struct gdma_context *gc,bool use_msi_bitmap, int *msi_requested) { - struct pci_dev *dev = to_pci_dev(gc->dev); + const struct gdma_bus_ops *ops = gc->bus_ops;struct gdma_irq_context *gic; -struct msi_map irq_map = { }; -int irq; -int msi; -int err; +bool dyn_msix = false; +int msi, irq, err;mutex_lock (&gc->gic_mutex);
@@ -1975,27 +1835,34 @@ struct gdma_irq_context *mana_gd_get_gic(struct gdma_context *gc, goto out; } - irq =pci_irq_vector (dev, msi); + irq = ops->msix_virq (gc, msi);if (irq == -EINVAL ) { - irq_map =pci_msix_alloc_irq_at (dev, msi,NULL ); -if (!irq_map.virq) { - err = irq_map.index; -dev_err (gc->dev, -"Failed to alloc irq_map msi %d err %d\n" , - msi, err); - gic =ERR_PTR (err); +/* A bus that sizes its vector pool up front has nothing left +* to hand out once every vector has been claimed. +*/ +if (!ops->msix_alloc_at) { +dev_err (gc->dev,"No IRQ for MSI %d\n" , msi); + gic =ERR_PTR (-ENOENT ); + goto out; + } + + irq = ops->msix_alloc_at (gc, &msi); +if (irq <0 ) { +dev_err (gc->dev,"Failed to alloc irq msi %d err %d\n" , + *msi_requested, irq); + gic =ERR_PTR (irq); goto out; } - irq = irq_map.virq; - msi = irq_map.index; + + dyn_msix = true; *msi_requested = msi; } gic =kzalloc_obj (*gic);if (!gic) { gic =ERR_PTR (-ENOMEM ); -if (irq_map.virq) -pci_msix_free_irq (dev, irq_map); +if (dyn_msix) + ops->msix_free (gc, msi, irq); goto out; }
@@ -2006,11 +1873,11 @@ struct gdma_irq_context *mana_gd_get_gic(struct gdma_context *gc,spin_lock_init (&gic->lock);if (!gic->msi) -snprintf (gic->name,MANA_IRQ_NAME_SZ ,"mana_hwc@pci:%s" , -pci_name (dev)); +snprintf (gic->name,MANA_IRQ_NAME_SZ ,"mana_hwc@%s:%s" , + ops->bus_name,dev_name (gc->dev));else -snprintf (gic->name,MANA_IRQ_NAME_SZ ,"mana_msi%d@pci:%s" , - gic->msi,pci_name (dev)); +snprintf (gic->name,MANA_IRQ_NAME_SZ ,"mana_msi%d@%s:%s" , + gic->msi, ops->bus_name,dev_name (gc->dev)); err =request_irq (irq, mana_gd_intr,0 , gic->name, gic);if (err) {
@@ -2018,12 +1885,12 @@ struct gdma_irq_context *mana_gd_get_gic(struct gdma_context *gc, irq, gic->name);kfree (gic); gic =ERR_PTR (err); -if (irq_map.virq) -pci_msix_free_irq (dev, irq_map); +if (dyn_msix) + ops->msix_free (gc, msi, irq); goto out; } - gic->dyn_msix = !!irq_map.virq; + gic->dyn_msix = dyn_msix;refcount_set (&gic->refcount,1 ); gic->bitmap_refs = use_msi_bitmap ?1 :0 ;
@@ -2034,8 +1901,8 @@ struct gdma_irq_context *mana_gd_get_gic(struct gdma_context *gc,free_irq (irq, gic);kfree (gic); gic =ERR_PTR (err); -if (irq_map.virq) -pci_msix_free_irq (dev, irq_map); +if (dyn_msix) + ops->msix_free (gc, msi, irq); goto out; }
@@ -2067,20 +1934,340 @@ void mana_gd_free_res_map(struct gdma_resource *r) r->size =0 ; } -/* -* Spread on CPUs with the following heuristics: -* -* 1. No more than one IRQ per CPU, if possible; -* 2. NUMA locality is the second priority; -* 3. Sibling dislocality is the last priority. -* -* Let's consider this topology: -* -* Node 0 1 -* Core 0 1 2 3 -* CPU 0 1 2 3 4 5 6 7 -* -* The most performant IRQ distribution based on the above topology +/* Bring up the GDMA context on a probed device: create the debugfs directory, +* map the shared-memory registers, start the hardware channel and size the +* interrupt pool. Every step here is common to all buses; the ones that are +* not are reached through gdma_bus_ops. +*/ +int mana_gd_setup (struct gdma_context *gc) +{ +int err; + + gc->mana_pci_debugfs =debugfs_create_dir (dev_name (gc->dev), + mana_debugfs_root); + + err =mana_gd_init_registers (gc); +if (err) + goto remove_debugfs; + +mana_smc_init (&gc->shm_channel, gc->dev, gc->shm_base); + + err =mana_gd_alloc_service_wq (gc); +if (err) + goto remove_debugfs; + + err = gc->bus_ops->setup_hwc_irqs (gc); +if (err) { +dev_err (gc->dev,"Failed to setup IRQs for HWC creation: %d\n" , + err); + goto free_workqueue; + } + + err =mana_hwc_create_channel (gc); +if (err) + goto remove_irq; + + err =mana_gd_verify_vf_version (gc); +if (err) + goto destroy_hwc; + + err =mana_gd_detect_devices (gc); +if (err) + goto destroy_hwc; + + err =mana_gd_query_max_resources (gc); +if (err) + goto destroy_hwc; + + err = gc->bus_ops->setup_remaining_irqs (gc); +if (err) + goto destroy_hwc; + +dev_dbg (gc->dev,"mana gdma setup successful\n" ); +return 0 ; + +destroy_hwc: +mana_hwc_destroy_channel (gc); +remove_irq: + gc->bus_ops->remove_irqs (gc); +free_workqueue: +mana_gd_free_service_wq (gc); +remove_debugfs: +debugfs_remove_recursive (gc->mana_pci_debugfs); + gc->mana_pci_debugfs =NULL ; +dev_err (gc->dev,"%s failed (error %d)\n" , __func__, err); +return err; +} + +void mana_gd_cleanup (struct gdma_context *gc) +{ +mana_hwc_destroy_channel (gc); + + gc->bus_ops->remove_irqs (gc); + +mana_gd_free_service_wq (gc); + +debugfs_remove_recursive (gc->mana_pci_debugfs); + gc->mana_pci_debugfs =NULL ; + +dev_dbg (gc->dev,"mana gdma cleanup successful\n" ); +} + +struct mana_dev_recovery { +struct list_head list; +struct pci_dev *pdev; +enum gdma_eqe_type type; +}; + +static struct mana_dev_recovery_work { +struct list_head dev_list; +struct delayed_work work; + +/* Lock for dev_list above */ +spinlock_t lock; +} mana_dev_recovery_work; + +static int mana_gd_suspend (struct pci_dev *pdev,pm_message_t state); +static int mana_gd_resume (struct pci_dev *pdev); + +#define MANA_SERVICE_PERIOD 10 + +static void mana_serv_rescan (struct pci_dev *pdev) +{ +struct pci_bus *parent; + +pci_lock_rescan_remove (); + + parent = pdev->bus; +if (!parent) { +dev_err (&pdev->dev,"MANA service: no parent bus\n" ); + goto out; + } + +pci_stop_and_remove_bus_device (pdev); +pci_rescan_bus (parent); + +out: +pci_unlock_rescan_remove (); +} + +static void mana_serv_fpga (struct pci_dev *pdev) +{ +struct pci_bus *bus, *parent; + +pci_lock_rescan_remove (); + + bus = pdev->bus; +if (!bus) { +dev_err (&pdev->dev,"MANA service: no bus\n" ); + goto out; + } + + parent = bus->parent; +if (!parent) { +dev_err (&pdev->dev,"MANA service: no parent bus\n" ); + goto out; + } + +pci_stop_and_remove_bus_device (bus->self); + +msleep (MANA_SERVICE_PERIOD *1000 ); + +pci_rescan_bus (parent); + +out: +pci_unlock_rescan_remove (); +} + +static void mana_serv_reset (struct pci_dev *pdev) +{ +struct gdma_context *gc =pci_get_drvdata (pdev); +struct hw_channel_context *hwc; +int ret; + +if (!gc) { +/* Perform PCI rescan on device if GC is not set up */ +dev_err (&pdev->dev,"MANA service: GC not setup, rescanning\n" ); +mana_serv_rescan (pdev); +return ; + } + + hwc = gc->hwc.driver_data; +if (!hwc) { +dev_err (&pdev->dev,"MANA service: no HWC\n" ); + goto out; + } + +/* HWC is not responding in this case, so don't wait */ + hwc->hwc_timeout =0 ; + +dev_info (&pdev->dev,"MANA reset cycle start\n" ); + +mana_gd_suspend (pdev,PMSG_SUSPEND ); + +msleep (MANA_SERVICE_PERIOD *1000 ); + + ret =mana_gd_resume (pdev); +if (ret == -ETIMEDOUT || ret == -EPROTO ) { +/* Perform PCI rescan on device if we failed on HWC */ +dev_err (&pdev->dev,"MANA service: resume failed, rescanning\n" ); +mana_serv_rescan (pdev); +return ; + } + +if (ret) +dev_info (&pdev->dev,"MANA reset cycle failed err %d\n" , ret); +else +dev_info (&pdev->dev,"MANA reset cycle completed\n" ); + +out: +clear_bit (GC_IN_SERVICE , &gc->flags); +} + +static void mana_do_service (enum gdma_eqe_type type,struct pci_dev *pdev) +{ +switch (type) { +case GDMA_EQE_HWC_FPGA_RECONFIG : +mana_serv_fpga (pdev); +break ; + +case GDMA_EQE_HWC_RESET_REQUEST : +mana_serv_reset (pdev); +break ; + +default : +dev_err (&pdev->dev,"MANA service: unknown type %d\n" , type); +break ; + } +} + +static void mana_recovery_delayed_func (struct work_struct *w) +{ +struct mana_dev_recovery_work *work; +struct mana_dev_recovery *dev; +unsigned long flags; + + work = container_of(w, struct mana_dev_recovery_work, work.work); + +spin_lock_irqsave (&work->lock, flags); + +while (!list_empty (&work->dev_list)) { + dev =list_first_entry (&work->dev_list, + struct mana_dev_recovery, list); +list_del (&dev->list); +spin_unlock_irqrestore (&work->lock, flags); + +mana_do_service (dev->type, dev->pdev); +pci_dev_put (dev->pdev); +kfree (dev); + +spin_lock_irqsave (&work->lock, flags); + } + +spin_unlock_irqrestore (&work->lock, flags); +} + +static void mana_serv_func (struct work_struct *w) +{ +struct mana_serv_work *mns_wk; +struct pci_dev *pdev; + + mns_wk = container_of(w, struct mana_serv_work, serv_work); + pdev = mns_wk->pdev; + +if (pdev) +mana_do_service (mns_wk->type, pdev); + +pci_dev_put (pdev); +kfree (mns_wk); +module_put (THIS_MODULE ); +} + +static int mana_pci_schedule_serv_work (struct gdma_context *gc, +enum gdma_eqe_type type) +{ +struct mana_serv_work *mns_wk; + +if (test_and_set_bit (GC_IN_SERVICE , &gc->flags)) { +dev_info (gc->dev,"Already in service\n" ); +return -EBUSY ; + } + +if (!try_module_get (THIS_MODULE )) { +dev_info (gc->dev,"Module is unloading\n" ); +clear_bit (GC_IN_SERVICE , &gc->flags); +return -ENODEV ; + } + + mns_wk =kzalloc (sizeof (*mns_wk),GFP_ATOMIC ); +if (!mns_wk) { +module_put (THIS_MODULE ); +clear_bit (GC_IN_SERVICE , &gc->flags); +return -ENOMEM ; + } + +dev_info (gc->dev,"Start MANA service type:%d\n" , type); + mns_wk->pdev =to_pci_dev (gc->dev); + mns_wk->type = type; +pci_dev_get (mns_wk->pdev); +INIT_WORK (&mns_wk->serv_work, mana_serv_func); +schedule_work (&mns_wk->serv_work); +return 0 ; +} + +static bool mana_pci_msix_can_alloc_dyn (struct gdma_context *gc) +{ +return pci_msix_can_alloc_dyn (to_pci_dev (gc->dev)); +} + +static int mana_pci_msix_virq (struct gdma_context *gc,int msi) +{ +return pci_irq_vector (to_pci_dev (gc->dev), msi); +} + +static int mana_pci_msix_alloc_at (struct gdma_context *gc,int *msi) +{ +struct msi_map irq_map; + + irq_map =pci_msix_alloc_irq_at (to_pci_dev (gc->dev), *msi,NULL ); +if (!irq_map.virq) +return irq_map.index; + + *msi = irq_map.index; +return irq_map.virq; +} + +static void mana_pci_msix_free (struct gdma_context *gc,int msi,int irq) +{ +struct msi_map irq_map = { .virq = irq, .index = msi }; + +pci_msix_free_irq (to_pci_dev (gc->dev), irq_map); +} + +static int mana_pci_msix_vec_count (struct gdma_context *gc) +{ +return pci_msix_vec_count (to_pci_dev (gc->dev)); +} + +static int mana_pci_dev_reset (struct gdma_context *gc) +{ +return pcie_flr (to_pci_dev (gc->dev)); +} + +/* +* Spread on CPUs with the following heuristics: +* +* 1. No more than one IRQ per CPU, if possible; +* 2. NUMA locality is the second priority; +* 3. Sibling dislocality is the last priority. +* +* Let's consider this topology: +* +* Node 0 1 +* Core 0 1 2 3 +* CPU 0 1 2 3 4 5 6 7 +* +* The most performant IRQ distribution based on the above topology * and heuristics may look like this: * * IRQ Nodes Cores CPUs
@@ -2396,101 +2583,52 @@ static void mana_gd_remove_irqs(struct pci_dev *pdev) gc->num_msix_usable =0 ; } -static int mana_gd_setup (struct pci_dev *pdev) +static int mana_pci_setup_hwc_irqs (struct gdma_context *gc) { -struct gdma_context *gc =pci_get_drvdata (pdev); -int err; - - gc->mana_pci_debugfs =debugfs_create_dir (pci_name (pdev), - mana_debugfs_root); - - err =mana_gd_init_registers (pdev); -if (err) - goto remove_debugfs; - -mana_smc_init (&gc->shm_channel, gc->dev, gc->shm_base); - - gc->service_wq =alloc_ordered_workqueue ("gdma_service_wq" ,0 ); -if (!gc->service_wq) { - err = -ENOMEM ; - goto remove_debugfs; - } - - err =mana_gd_setup_hwc_irqs (pdev); -if (err) { -dev_err (gc->dev,"Failed to setup IRQs for HWC creation: %d\n" , - err); - goto free_workqueue; - } - - err =mana_hwc_create_channel (gc); -if (err) - goto remove_irq; - - err =mana_gd_verify_vf_version (pdev); -if (err) - goto destroy_hwc; - - err =mana_gd_detect_devices (pdev); -if (err) - goto destroy_hwc; +return mana_gd_setup_hwc_irqs (to_pci_dev (gc->dev)); +} - err =mana_gd_query_max_resources (pdev); -if (err) - goto destroy_hwc; +static int mana_pci_setup_remaining_irqs (struct gdma_context *gc) +{ +int err; - err =mana_gd_setup_remaining_irqs (pdev); + err =mana_gd_setup_remaining_irqs (to_pci_dev (gc->dev));if (err) {dev_err (gc->dev,"Failed to setup remaining IRQs: %d" , err); - goto destroy_hwc; +return err; }if (!gc->msi_sharing) { gc->msi_bitmap =bitmap_zalloc (gc->num_msix_usable,GFP_KERNEL ); -if (!gc->msi_bitmap) { - err = -ENOMEM ; - goto destroy_hwc; - } +if (!gc->msi_bitmap) +return -ENOMEM ;/* Set bit for HWC */ set_bit (0 , gc->msi_bitmap); } -dev_dbg (&pdev->dev,"mana gdma setup successful\n" );return 0 ; - -destroy_hwc: -mana_hwc_destroy_channel (gc); -remove_irq: -mana_gd_remove_irqs (pdev); -free_workqueue: -destroy_workqueue (gc->service_wq); - gc->service_wq =NULL ; -remove_debugfs: -debugfs_remove_recursive (gc->mana_pci_debugfs); - gc->mana_pci_debugfs =NULL ; -dev_err (&pdev->dev,"%s failed (error %d)\n" , __func__, err); -return err; } -static void mana_gd_cleanup_device (struct pci_dev *pdev) +static void mana_pci_remove_irqs (struct gdma_context *gc) { -struct gdma_context *gc =pci_get_drvdata (pdev); - -mana_hwc_destroy_channel (gc); - -mana_gd_remove_irqs (pdev); - -if (gc->service_wq) { -destroy_workqueue (gc->service_wq); - gc->service_wq =NULL ; - } - -debugfs_remove_recursive (gc->mana_pci_debugfs); - gc->mana_pci_debugfs =NULL ; - -dev_dbg (&pdev->dev,"mana gdma cleanup successful\n" ); +mana_gd_remove_irqs (to_pci_dev (gc->dev)); } +static const struct gdma_bus_ops mana_pci_bus_ops = { + .bus_name ="pci" , + .msix_can_alloc_dyn = mana_pci_msix_can_alloc_dyn, + .msix_virq = mana_pci_msix_virq, + .msix_alloc_at = mana_pci_msix_alloc_at, + .msix_free = mana_pci_msix_free, + .msix_vec_count = mana_pci_msix_vec_count, + .setup_hwc_irqs = mana_pci_setup_hwc_irqs, + .setup_remaining_irqs = mana_pci_setup_remaining_irqs, + .remove_irqs = mana_pci_remove_irqs, + .dev_reset = mana_pci_dev_reset, + .schedule_serv_work = mana_pci_schedule_serv_work, + .drv_cap_flags1 =GDMA_DRV_CAP_FLAGS1_PCI , +}; +static bool mana_is_pf (unsigned short dev_id) {return dev_id ==MANA_PF_DEVICE_ID || dev_id ==MANA_PF2_DEVICE_ID ;
@@ -2546,9 +2684,10 @@ static int mana_gd_probe(struct pci_dev *pdev, const struct pci_device_id *ent) gc->bar0_va = bar0_va; gc->dev = &pdev->dev; + gc->bus_ops = &mana_pci_bus_ops;xa_init (&gc->irq_contexts); - err =mana_gd_setup (pdev); + err =mana_gd_setup (gc);if (err) goto unmap_bar;
@@ -2576,7 +2715,7 @@ static int mana_gd_probe(struct pci_dev *pdev, const struct pci_device_id *ent) cleanup_mana:mana_remove (&gc->mana, false); cleanup_gd: -mana_gd_cleanup_device (pdev); +mana_gd_cleanup (gc); unmap_bar:xa_destroy (&gc->irq_contexts);pci_iounmap (pdev, bar0_va);
@@ -2629,7 +2768,7 @@ static void mana_gd_remove(struct pci_dev *pdev)mana_rdma_remove (&gc->mana_ib);mana_remove (&gc->mana, false); -mana_gd_cleanup_device (pdev); +mana_gd_cleanup (gc);xa_destroy (&gc->irq_contexts);
@@ -2644,24 +2783,24 @@ static void mana_gd_remove(struct pci_dev *pdev) }/* The 'state' parameter is not used. */ -int mana_gd_suspend (struct pci_dev *pdev,pm_message_t state) +static int mana_gd_suspend (struct pci_dev *pdev,pm_message_t state) {struct gdma_context *gc =pci_get_drvdata (pdev);mana_rdma_remove (&gc->mana_ib);mana_remove (&gc->mana, true); -mana_gd_cleanup_device (pdev); +mana_gd_cleanup (gc);return 0 ; } -int mana_gd_resume (struct pci_dev *pdev) +static int mana_gd_resume (struct pci_dev *pdev) {struct gdma_context *gc =pci_get_drvdata (pdev);int err; - err =mana_gd_setup (pdev); + err =mana_gd_setup (gc);if (err)return err;
@@ -2676,7 +2815,7 @@ int mana_gd_resume(struct pci_dev *pdev)return err; cleanup_gd: -mana_gd_cleanup_device (pdev); +mana_gd_cleanup (gc);return err; }
@@ -2690,7 +2829,7 @@ static void mana_gd_shutdown(struct pci_dev *pdev)mana_rdma_remove (&gc->mana_ib);mana_remove (&gc->mana, true); -mana_gd_cleanup_device (pdev); +mana_gd_cleanup (gc);pci_disable_device (pdev); }
@@ -2734,26 +2873,19 @@ static struct pci_driver mana_driver = { .sriov_configure = mana_sriov_configure, }; -static int __init mana_driver_init (void ) -{ -int err; +MODULE_DEVICE_TABLE (pci, mana_id_table); +static int mana_pci_driver_register (void ) +{INIT_LIST_HEAD (&mana_dev_recovery_work.dev_list);spin_lock_init (&mana_dev_recovery_work.lock); -INIT_DELAYED_WORK (&mana_dev_recovery_work.work, mana_recovery_delayed_func); - - mana_debugfs_root =debugfs_create_dir ("mana" ,NULL ); - - err =pci_register_driver (&mana_driver); -if (err) { -debugfs_remove (mana_debugfs_root); - mana_debugfs_root =NULL ; - } +INIT_DELAYED_WORK (&mana_dev_recovery_work.work, + mana_recovery_delayed_func); -return err; +return pci_register_driver (&mana_driver); } -static void __exit mana_driver_exit(void) +static void mana_pci_driver_unregister (void ) {struct mana_dev_recovery *dev;unsigned long flags;
@@ -2771,6 +2903,29 @@ static void __exit mana_driver_exit(void)spin_unlock_irqrestore (&mana_dev_recovery_work.lock, flags);pci_unregister_driver (&mana_driver); +} + +static int __init mana_driver_init (void ) +{ +int err; + + mana_debugfs_root =debugfs_create_dir ("mana" ,NULL ); + + err =mana_pci_driver_register (); +if (err) + goto err_debugfs; + +return 0 ; + +err_debugfs: +debugfs_remove (mana_debugfs_root); + mana_debugfs_root =NULL ; +return err; +} + +static void __exit mana_driver_exit(void) +{ +mana_pci_driver_unregister ();debugfs_remove (mana_debugfs_root);
@@ -2780,7 +2935,5 @@ static void __exit mana_driver_exit(void)module_init (mana_driver_init);module_exit (mana_driver_exit); -MODULE_DEVICE_TABLE (pci, mana_id_table); -MODULE_LICENSE ("Dual BSD/GPL" );MODULE_DESCRIPTION ("Microsoft Azure Network Adapter driver" );
drivers/net/ethernet/microsoft/mana/mana_en.c +6 -4
@@ -9,7 +9,6 @@#include <linux/ethtool.h> #include <linux/filter.h> #include <linux/mm.h> -#include <linux/pci.h> #include <linux/export.h> #include <linux/skbuff.h>
@@ -20,6 +19,7 @@#include <net/xdp.h> #include <net/mana/mana.h> +#include <net/mana/mana_auxiliary.h> #include <net/mana/hw_channel.h>
@@ -3754,10 +3754,9 @@ static int mana_dealloc_queues(struct net_device *ndev) tsleep <<=1 ; }if (atomic_read (&txq->pending_sends)) { - err = -pcie_flr (to_pci_dev (gd->gdma_context->dev)); + err =mana_gd_dev_reset (gd->gdma_context);if (err) { -netdev_err (ndev,"flr failed %d with %d pkts pending in txq %u\n" , +netdev_err (ndev,"device reset failed %d with %d pkts pending in txq %u\n" , err,atomic_read (&txq->pending_sends), txq->gdma_txq_id);
@@ -4060,6 +4059,9 @@ int mana_rdma_service_event(struct gdma_context *gc, enum gdma_service_type evenreturn 0 ; } +if (!gc->service_wq) +return -EOPNOTSUPP ; + serv_work =kzalloc_obj (*serv_work,GFP_ATOMIC );if (!serv_work)return -ENOMEM ;
include/net/mana/gdma.h +94 -8
154 lines not on this page · raw message
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 13/2651 net: mana: Add support to process throttled EQEs
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sahil Chandna <[email protected]>
[ Upstream commit 684603842b78f75835d21fdf5c19ae717ed8eb1a ]
When an event queue nears full, the hardware coalesces the per-CQ GDMA_EQE_COMPLETION notifications into a single throttle EQE (type 4) that carries no cq_id. The driver does not handle this event type, so it falls through to the default case and is dropped. Any CQ whose completion notification was replaced by the throttle EQE can remain unserviced, causing its queue to stall.
This was observed internally as a TX stall:
ens1: NETDEV WATCHDOG: CPU: 45: transmit queue 1 timed out 15133 ms mana 7870:00:00.0: HWC: Request timed out: 60000 ms
mana 7870:00:00.0: Gf stats wk handler: gf stats query timed out.
ens1: NETDEV WATCHDOG: CPU: 20: transmit queue 0 timed out 15859 ms
ens1: NETDEV WATCHDOG: CPU: 15: transmit queue 0 timed out 31731 ms
ens1: NETDEV WATCHDOG: CPU: 21: transmit queue 0 timed out 47603 ms
ens1: NETDEV WATCHDOG: CPU: 42: transmit queue 0 timed out 62451 ms
Handle the throttle EQE:
- Record up to two child CQs per EQ when a CQ is created with a parent EQ. A mana_en EQ serves one TX CQ and one RX CQ, and the HWC EQ serves the HWC CQ.
- On a throttle EQE, call the callback of each child CQ that is still in cq_table[].
- Before a child CQ is freed, unlink it from its parent EQ and from cq_table[] in mana_gd_detach_cq(), then wait for an RCU grace period, because mana_gd_intr() reads both under rcu_read_lock(). mana_destroy_txq() and mana_destroy_rxq() detach the CQ before deleting its NAPI, so the synchronize_net() that NAPI deletion already needs also covers the CQ. mana_hwc_destroy_channel() detaches the HWC CQ and waits for a grace period before freeing the HWC queues.
- Advertise the capability bit for throttled EQE.
- Add a throttle eqe counter per queue.
--- .../net/ethernet/microsoft/mana/gdma_main.c | 88 +++++++++++++++++-- .../net/ethernet/microsoft/mana/hw_channel.c | 9 +- drivers/net/ethernet/microsoft/mana/mana_en.c | 22 ++++- .../ethernet/microsoft/mana/mana_ethtool.c | 19 +++- include/net/mana/gdma.h | 19 +++- include/net/mana/mana.h | 1 + 6 files changed, 143 insertions(+), 15 deletions(-)
drivers/net/ethernet/microsoft/mana/gdma_main.c +80 -8
@@ -754,6 +754,27 @@ void mana_gd_free_service_wq(struct gdma_context *gc) gc->service_wq =NULL ; } +static void mana_gd_schedule_eq_cqs (struct gdma_queue *eq) +{ +struct gdma_context *gc = eq->gdma_dev->gdma_context; +struct gdma_queue *cq; +u8 i; + +for (i =0 ; i <GDMA_EQ_MAX_CHILD_CQ ; i++) { + cq =rcu_dereference (eq->eq.child_cq[i]); + +if (!cq) +continue ; + +if (cq->id >=READ_ONCE (gc->max_num_cqs) || + !gc->cq_table || gc->cq_table[cq->id] != cq) +continue ; + +if (cq->cq.callback) + cq->cq.callback (cq->cq.context, cq); + } +} +static void mana_gd_process_eqe (struct gdma_queue *eq) {u32 head = eq->head % (eq->queue_size /GDMA_EQE_SIZE );
@@ -784,6 +805,14 @@ static void mana_gd_process_eqe(struct gdma_queue *eq)break ; +case GDMA_EQE_THROTTLE : +u64_stats_update_begin (&eq->eq.stats.syncp); +u64_stats_inc (&eq->eq.stats.throttle_count); +u64_stats_update_end (&eq->eq.stats.syncp); + +mana_gd_schedule_eq_cqs (eq); +break ; +case GDMA_EQE_TEST_EVENT : gc->test_event_eq_id = eq->id;complete (&gc->eq_test_event);
@@ -1029,6 +1058,8 @@ static int mana_gd_create_eq(struct gdma_dev *gd, queue->eq.msix_index =INVALID_PCI_MSIX_INDEX ; queue->id =INVALID_QUEUE_ID ; +u64_stats_init (&queue->eq.stats.syncp); + log2_num_entries =ilog2 (queue->queue_size /GDMA_EQE_SIZE );if (spec->eq.log2_throttle_limit > log2_num_entries) {
@@ -1070,25 +1101,66 @@ static void mana_gd_create_cq(const struct gdma_queue_spec *spec, struct gdma_queue *queue) {u32 log2_num_entries =ilog2 (spec->queue_size /GDMA_CQE_SIZE ); +struct gdma_queue *parent; +u8 i; queue->head |=INITIALIZED_OWNER_BIT (log2_num_entries); - queue->cq.parent = spec->cq.parent_eq; + parent = spec->cq.parent_eq; + queue->cq.parent = parent; queue->cq.context = spec->cq.context; queue->cq.callback = spec->cq.callback; + +if (!parent) +return ; + +/* For throttled EQE store the child CQ */ +for (i =0 ; i <GDMA_EQ_MAX_CHILD_CQ ; i++) { +if (!rcu_access_pointer (parent->eq.child_cq[i])) { +rcu_assign_pointer (parent->eq.child_cq[i], queue); +return ; + } + } + +WARN_ONCE (1 ,"mana: EQ %u has no free child CQ slot\n" , parent->id); } -static void mana_gd_destroy_cq (struct gdma_context *gc, -struct gdma_queue *queue) +/* Unlink queue from its parent EQ's child_cq[] and from gc->cq_table[]. +* +* Return: true if queue was in the parent EQ's child_cq[]. In that case the +* caller must wait for an RCU grace period before freeing queue, because +* mana_gd_intr() may still be handling a throttle EQE for it. +*/ +bool mana_gd_detach_cq (struct gdma_context *gc,struct gdma_queue *queue) { +struct gdma_queue *eq = queue->cq.parent; +bool attached = false;u32 id = queue->id; +u8 i; -if (id >= gc->max_num_cqs) -return ; +if (eq) { +for (i =0 ; i <GDMA_EQ_MAX_CHILD_CQ ; i++) { +if (rcu_access_pointer (eq->eq.child_cq[i]) == queue) { +RCU_INIT_POINTER (eq->eq.child_cq[i],NULL ); + attached = true; + } + } + } -if (!gc->cq_table[id]) -return ; +/* Check if CQ might have been detached already, only clear if +* it still points to same queue . +*/ +if (id < gc->max_num_cqs &&READ_ONCE (gc->cq_table[id]) == queue) +WRITE_ONCE (gc->cq_table[id],NULL ); - gc->cq_table[id] =NULL ; +return attached; +} + +static void mana_gd_destroy_cq (struct gdma_context *gc, +struct gdma_queue *queue) +{ +/* Wait for irq reader holding the cq */ +if (mana_gd_detach_cq (gc, queue)) +synchronize_net (); } int mana_gd_create_hwc_queue(struct gdma_dev *gd,
drivers/net/ethernet/microsoft/mana/hw_channel.c +7 -2
@@ -364,7 +364,7 @@ static void mana_hwc_comp_event(void *ctx, struct gdma_queue *q_self) completions = hwc_cq->comp_buf; comp_read =mana_gd_poll_cq (q_self, completions, hwc_cq->queue_depth); -WARN_ON_ONCE (comp_read <=0 || comp_read > hwc_cq->queue_depth); +WARN_ON_ONCE (comp_read <0 || comp_read > hwc_cq->queue_depth);for (i =0 ; i < comp_read; ++i) { comp_data = *(struct hwc_rx_oob *)completions[i].cqe_data;
@@ -820,9 +820,14 @@ void mana_hwc_destroy_channel(struct gdma_context *gc)*/ if (gc->max_num_cqs >0 ) {mana_smc_teardown_hwc (&gc->shm_channel, false); - gc->max_num_cqs =0 ; +WRITE_ONCE (gc->max_num_cqs,0 ); } +if (hwc->cq) +mana_gd_detach_cq (gc, hwc->cq->gdma_cq); + +synchronize_rcu (); +if (hwc->txq)mana_hwc_destroy_wq (hwc, hwc->txq);
drivers/net/ethernet/microsoft/mana/mana_en.c +19 -3
@@ -2672,6 +2672,7 @@ static void mana_deinit_txq(struct mana_port_context *apc, struct mana_txq *txq)static void mana_destroy_txq (struct mana_port_context *apc) { +struct gdma_context *gc = apc->ac->gdma_dev->gdma_context;struct napi_struct *napi;int i;
@@ -2690,13 +2691,23 @@ static void mana_destroy_txq(struct mana_port_context *apc)napi_synchronize (napi);napi_disable_locked (napi);cancel_work_sync (&apc->tx_qp[i]->tx_cq.dim.work); -netif_napi_del_locked (napi); - apc->tx_qp[i]->txq.napi_initialized = false; }if (apc->tx_qp[i]->tx_object !=INVALID_MANA_HANDLE )mana_destroy_wq_obj (apc,GDMA_SQ , apc->tx_qp[i]->tx_object); +if (apc->tx_qp[i]->txq.napi_initialized) { +/* Detach the CQ only after the WQ object is destroyed, +* so a completion EQE that arrives before then still +* finds the CQ in cq_table[] rather than hitting the +* WARN in mana_gd_process_eqe(). One grace period then +* covers both mana_gd_intr() and NAPI users. +*/ +mana_gd_detach_cq (gc, apc->tx_qp[i]->tx_cq.gdma_cq); +netif_napi_del_locked (napi); + apc->tx_qp[i]->txq.napi_initialized = false; + } +mana_deinit_cq (apc, &apc->tx_qp[i]->tx_cq);mana_deinit_txq (apc, &apc->tx_qp[i]->txq);
@@ -2903,7 +2914,6 @@ static void mana_destroy_rxq(struct mana_port_context *apc,napi_disable_locked (napi);cancel_work_sync (&rxq->rx_cq.dim.work); -netif_napi_del_locked (napi); }if (xdp_rxq_info_is_reg (&rxq->xdp_rxq))
@@ -2912,6 +2922,12 @@ static void mana_destroy_rxq(struct mana_port_context *apc,if (rxq->rxobj !=INVALID_MANA_HANDLE )mana_destroy_wq_obj (apc,GDMA_RQ , rxq->rxobj); +if (napi_initialized) { +/* See the comment in mana_destroy_txq() */ +mana_gd_detach_cq (gc, rxq->rx_cq.gdma_cq); +netif_napi_del_locked (napi); + } +mana_deinit_cq (apc, &rxq->rx_cq);if (rxq->xdp_save_va)
drivers/net/ethernet/microsoft/mana/mana_ethtool.c +18 -1
@@ -147,7 +147,8 @@ static int mana_get_sset_count(struct net_device *ndev, int stringset)return ARRAY_SIZE (mana_eth_stats) +ARRAY_SIZE (mana_phy_stats) +ARRAY_SIZE (mana_hc_stats) + - num_queues * (MANA_STATS_RX_COUNT +MANA_STATS_TX_COUNT ); + num_queues * (MANA_STATS_RX_COUNT +MANA_STATS_TX_COUNT + +MANA_STATS_EQ_COUNT );case ETH_SS_PRIV_FLAGS :return MANA_PRIV_FLAG_MAX ;
@@ -198,6 +199,9 @@ static void mana_get_strings_stats(struct mana_port_context *apc, u8 **data)ethtool_sprintf (data,"tx_%d_csum_partial" , i);ethtool_sprintf (data,"tx_%d_mana_map_err" , i); } + +for (i =0 ; i < num_queues; i++) +ethtool_sprintf (data,"eq_%d_throttle_events" , i); }static void mana_get_strings_priv_flags (u8 **data)
@@ -234,6 +238,7 @@ static void mana_get_ethtool_stats(struct net_device *ndev,void *phy_stats = &apc->phy_stats;struct mana_stats_rx *rx_stats;struct mana_stats_tx *tx_stats; +struct gdma_eq_stats *eq_stats;unsigned int start;u64 packets, bytes;u64 xdp_redirect;
@@ -251,6 +256,7 @@ static void mana_get_ethtool_stats(struct net_device *ndev,u64 csum_partial;u64 mana_map_err;int q, i =0 , j; +u64 throttled;if (!apc->port_is_up)return ;
@@ -325,6 +331,17 @@ static void mana_get_ethtool_stats(struct net_device *ndev, data[i++] = csum_partial; data[i++] = mana_map_err; } + +for (q =0 ; q < num_queues; q++) { + eq_stats = &apc->eqs[q].eq->eq.stats; + +do { + start =u64_stats_fetch_begin (&eq_stats->syncp); + throttled =u64_stats_read (&eq_stats->throttle_count); + }while (u64_stats_fetch_retry (&eq_stats->syncp, start)); + + data[i++] = throttled; + } }static u32 mana_get_rx_ring_count (struct net_device *ndev)
include/net/mana/gdma.h +18 -1
@@ -58,6 +58,7 @@ enum gdma_work_request_flags {enum gdma_eqe_type {GDMA_EQE_COMPLETION =3 , +GDMA_EQE_THROTTLE =4 ,GDMA_EQE_TEST_EVENT =64 ,GDMA_EQE_HWC_INIT_EQ_ID_DB =129 ,GDMA_EQE_HWC_INIT_DATA =130 ,
@@ -286,6 +287,7 @@ struct gdma_dev {#define GDMA_EQE_SIZE 16#define GDMA_MAX_SQE_SIZE 512#define GDMA_MAX_RQE_SIZE 256 +#define GDMA_EQ_MAX_CHILD_CQ 2#define GDMA_COMP_DATA_SIZE 0x3C
@@ -313,6 +315,11 @@ struct gdma_event {struct gdma_queue ; +struct gdma_eq_stats { +u64_stats_t throttle_count; +struct u64_stats_sync syncp; +}; +struct mana_eq {struct gdma_queue *eq;struct dentry *mana_eq_debugfs;
@@ -366,6 +373,10 @@ struct gdma_queue {unsigned int irq;u32 log2_throttle_limit; + +struct gdma_eq_stats stats; + +struct gdma_queue __rcu *child_cq[GDMA_EQ_MAX_CHILD_CQ ]; } eq;struct {
@@ -594,6 +605,8 @@ void mana_gd_free_service_wq(struct gdma_context *gc);void mana_gd_ring_dim (struct gdma_queue *cq,u32 mod_usec,bool mod_usec_vld,u32 mod_comps,bool mod_comps_vld); +bool mana_gd_detach_cq (struct gdma_context *gc,struct gdma_queue *queue); +struct gdma_wqe {u32 reserved :24 ;u32 last_vbytes :8 ;
@@ -748,6 +761,9 @@ enum {/* Driver supports non-contiguous queue buffers */ #define GDMA_DRV_CAP_FLAG_1_NON_CONTIGUOUS_BUFFERS BIT(30) +/* Driver supports handling throttled EQEs */ +#define GDMA_DRV_CAP_FLAG_1_THROTTLED_EVENT_QUEUE BIT_ULL(32) +/* Capabilities in the PCI-only group below rely on dynamic MSI-X allocation * and on the servicing and reset paths reached through * mana_schedule_serv_work(). Transports that provide neither leave
@@ -772,7 +788,8 @@ enum {GDMA_DRV_CAP_FLAG_1_HANDLE_STALL_SQ_RECOVERY | \GDMA_DRV_CAP_FLAG_1_EQ_MSI_UNSHARE_MULTI_VPORT | \GDMA_DRV_CAP_FLAG_1_DYN_INTERRUPT_MODERATION | \ - GDMA_DRV_CAP_FLAG_1_NON_CONTIGUOUS_BUFFERS) +GDMA_DRV_CAP_FLAG_1_NON_CONTIGUOUS_BUFFERS | \ + GDMA_DRV_CAP_FLAG_1_THROTTLED_EVENT_QUEUE) #define GDMA_DRV_CAP_FLAGS2 0
include/net/mana/mana.h +1 -0
@@ -90,6 +90,7 @@ enum mana_priv_flag_bits {/* Update this count whenever the respective structures are changed */ #define MANA_STATS_RX_COUNT (6 + MANA_CQE_COAL_PKTS_8 - 1)#define MANA_STATS_TX_COUNT 11 +#define MANA_STATS_EQ_COUNT 1#define MANA_RX_FRAG_ALIGNMENT 64
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 14/2651 f2fs: fix to fetch ino via ino_of_node() under cache lock
In reply to Greg Kroah-Hartman7.3-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
@@ -2195,9 +2195,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 15/2651 mm/vma: fix expansion of VMA_MIXEDMAP_BIT VMAs
In reply to Greg Kroah-Hartman7.3-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
@@ -1882,12 +1882,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_test_any (vma,VMA_PFNMAP_BIT , +VMA_DONTEXPAND_BIT ,VMA_MIXEDMAP_BIT ) && + !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_test_any (vma,VMA_PFNMAP_BIT ,VMA_DONTEXPAND_BIT )); +VM_WARN_ON_ONCE (!vma_test (vma,VMA_MIXEDMAP_BIT )); +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 16/2651 platform/x86: hp-wmi: Add OMEN board 8A17 thermal profile support
In reply to Greg Kroah-Hartman7.3-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
@@ -207,7 +207,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" ,"8A43" , +"8A15" ,"8A17" ,"8A42" ,"8A43" ,"8BAD" ,"8C58" , "8E41",
@@ -227,7 +227,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 17/2651 inet: frags: bound the wmem charge of the socket completing a reassembly
In reply to Greg Kroah-Hartman7.3-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>
@@ -519,6 +520,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) {
@@ -530,6 +568,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. *
@@ -605,17 +648,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;
@@ -626,7 +670,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;
@@ -691,8 +734,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
@@ -413,16 +413,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
@@ -275,16 +275,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 18/2651 mm/userfaultfd: compare exact registration modes before skipping
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gregory Price <[email protected]>
[ Upstream commit 05f64f211a25f7d9771d4fde109aad97174a1cf3 ]
Changing registration from MISSING|WP to WP returns success but leaves MISSING enabled. The no-op check sees that WP is already set and skips the update, so later accesses to missing pages still wait for userspace.
Skip the update only when the current and requested UFFD modes match exactly.
--- mm/userfaultfd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/userfaultfd.c +2 -1
@@ -2307,6 +2307,7 @@ static int userfaultfd_register_range(stfor_each_vma_range (vmi, vma, end) {const bool any_mode_removed = vma->vm_flags & __VM_UFFD_FLAGS & ~vm_flags; +const vma_flags_t curr_vma_flags =vma_flags_and_mask (&vma->flags, __VMA_UFFD_FLAGS);cond_resched ();
@@ -2320,7 +2321,7 @@ static int userfaultfd_register_range(st* userfaultfd and with the right tracking mode too. */ if (vma->vm_userfaultfd_ctx.ctx == ctx && -vma_test_all_mask (vma, vma_flags)) +vma_flags_same_pair (&curr_vma_flags, &vma_flags)) goto skip;/*
Greg Kroah-Hartman
maintainerPATCH 19/2651 alpha: select SYSCTL_EXCEPTION_TRACE
In reply to Greg Kroah-Hartman7.3-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
@@ -44,6 +44,7 @@ config ALPHA select MMU_GATHER_NO_RANGE select MMU_GATHER_RCU_TABLE_FREE select SPARSEMEM_EXTREME if SPARSEMEM + select SYSCTL_EXCEPTION_TRACE select ZONE_DMA select TRACE_IRQFLAGS_SUPPORT select ARCH_WANT_FRAME_POINTERS
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 20/2651 Bluetooth: Move H:4 reassembly into the Bluetooth core
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Luiz Augusto von Dentz <[email protected]>
[ Upstream commit 5299db91df03894253e8fa08627cfb9ec1429e89 ]
h4_recv_buf() is currently implemented in hci_h4.c which is only built as part of the hci_uart module, and only when CONFIG_BT_HCIUART_H4 is enabled. That makes the H:4 reassembly logic unusable by drivers which do not depend on hci_uart, e.g. btusb which needs it to implement Bulk Serialization Mode.
Move the transport agnostic part into the Bluetooth core as h4_recv_skb(), which takes a struct hci_dev instead of a struct hci_uart, along with struct h4_recv_pkt and the H4_RECV_* helpers, and keep h4_recv_buf() as a thin wrapper for the hci_uart protocols.
Since every Bluetooth driver already depends on the bluetooth module this introduces no new module dependency and no new Kconfig symbol.
Stable-dep-of: df5e35f1663a ("Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728")
--- drivers/bluetooth/hci_h4.c | 123 ++----------------------- drivers/bluetooth/hci_uart.h | 39 +------- include/net/bluetooth/hci_h4.h | 60 +++++++++++++ net/bluetooth/Makefile | 2 +- net/bluetooth/hci_h4.c | 160 +++++++++++++++++++++++++++++++++ 5 files changed, 229 insertions(+), 155 deletions(-) create mode 100644 include/net/bluetooth/hci_h4.h create mode 100644 net/bluetooth/hci_h4.c
drivers/bluetooth/hci_h4.c +6 -117
@@ -29,6 +29,7 @@#include <net/bluetooth/bluetooth.h> #include <net/bluetooth/hci_core.h> +#include <net/bluetooth/hci_h4.h> #include "hci_uart.h"
@@ -112,8 +113,9 @@ static int h4_recv(struct hci_uart *hu, const void *data, int count)if (!h4)return -ENODEV ; - h4->rx_skb =h4_recv_buf (hu, h4->rx_skb, data, count, - h4_recv_pkts,ARRAY_SIZE (h4_recv_pkts)); + h4->rx_skb =h4_recv_skb (hu->hdev, &hu->alignment, &hu->padding, + h4->rx_skb, data, count, h4_recv_pkts, +ARRAY_SIZE (h4_recv_pkts));if (IS_ERR (h4->rx_skb)) {int err =PTR_ERR (h4->rx_skb);bt_dev_err (hu->hdev,"Frame reassembly failed (%d)" , err);
@@ -155,120 +157,7 @@ struct sk_buff *h4_recv_buf(struct hci_uart *hu, struct sk_buff *skb, const unsigned char *buffer, int count, const struct h4_recv_pkt *pkts, int pkts_count) { - u8 alignment = hu->alignment ? hu->alignment : 1; -struct hci_dev *hdev = hu->hdev; - -/* Check for error from previous call */ -if (IS_ERR (skb)) - skb =NULL ; - -while (count) { -int i, len; - -/* remove padding bytes from buffer */ -for (; hu->padding && count >0 ; hu->padding--) { - count--; - buffer++; - } -if (!count) -break ; - -if (!skb) { -for (i =0 ; i < pkts_count; i++) { -if (buffer[0 ] != (&pkts[i])->type) -continue ; - - skb =bt_skb_alloc ((&pkts[i])->maxlen, -GFP_ATOMIC ); -if (!skb) -return ERR_PTR (-ENOMEM ); - -hci_skb_pkt_type (skb) = (&pkts[i])->type; -hci_skb_expect (skb) = (&pkts[i])->hlen; -break ; - } - -/* Check for invalid packet type */ -if (!skb) -return ERR_PTR (-EILSEQ ); - - count -=1 ; - buffer +=1 ; - } - - len =min_t (uint,hci_skb_expect (skb) - skb->len, count); -skb_put_data (skb, buffer, len); - - count -= len; - buffer += len; - -/* Check for partial packet */ -if (skb->len <hci_skb_expect (skb)) -continue ; - -for (i =0 ; i < pkts_count; i++) { -if (hci_skb_pkt_type (skb) == (&pkts[i])->type) -break ; - } - -if (i >= pkts_count) { -kfree_skb (skb); -return ERR_PTR (-EILSEQ ); - } - -if (skb->len == (&pkts[i])->hlen) { -u16 dlen; - -switch ((&pkts[i])->lsize) { -case 0 : -/* No variable data length */ - dlen =0 ; -break ; -case 1 : -/* Single octet variable length */ - dlen = skb->data[(&pkts[i])->loff]; -hci_skb_expect (skb) += dlen; - -if (skb_tailroom (skb) < dlen) { -kfree_skb (skb); -return ERR_PTR (-EMSGSIZE ); - } -break ; -case 2 : -/* Double octet variable length */ - dlen =get_unaligned_le16 (skb->data + - (&pkts[i])->loff); -hci_skb_expect (skb) += dlen; - -if (skb_tailroom (skb) < dlen) { -kfree_skb (skb); -return ERR_PTR (-EMSGSIZE ); - } -break ; -default : -/* Unsupported variable length */ -kfree_skb (skb); -return ERR_PTR (-EILSEQ ); - } - -if (!dlen) { - hu->padding = (skb->len +1 ) % alignment; - hu->padding = (alignment - hu->padding) % alignment; - -/* No more data, complete frame */ - (&pkts[i])->recv (hdev, skb); - skb =NULL ; - } - }else { - hu->padding = (skb->len +1 ) % alignment; - hu->padding = (alignment - hu->padding) % alignment; - -/* Complete frame */ - (&pkts[i])->recv (hdev, skb); - skb =NULL ; - } - } - -return skb; + return h4_recv_skb(hu->hdev, &hu->alignment, &hu->padding, skb, buffer, +count ,pkts ,pkts_count ); }EXPORT_SYMBOL_GPL (h4_recv_buf);
drivers/bluetooth/hci_uart.h +2 -37
@@ -8,6 +8,8 @@* Copyright (C) 2004-2005 Marcel Holtmann <[email protected]> */ +#include <net/bluetooth/hci_h4.h> +#ifndef N_HCI #define N_HCI 15#endif
@@ -121,43 +123,6 @@ void hci_uart_set_flow_control(struct hci_uart *hu, bool enable);void hci_uart_set_speeds (struct hci_uart *hu,unsigned int init_speed,unsigned int oper_speed); -struct h4_recv_pkt { -u8 type;/* Packet type */ -u8 hlen;/* Header length */ -u8 loff;/* Data length offset in header */ -u8 lsize;/* Data length field size */ -u16 maxlen;/* Max overall packet length */ -int (*recv)(struct hci_dev *hdev,struct sk_buff *skb); -}; - -#define H4_RECV_ACL \ - .type = HCI_ACLDATA_PKT, \ - .hlen = HCI_ACL_HDR_SIZE, \ - .loff = 2, \ - .lsize = 2, \ - .maxlen = HCI_MAX_FRAME_SIZE \ - -#define H4_RECV_SCO \ - .type = HCI_SCODATA_PKT, \ - .hlen = HCI_SCO_HDR_SIZE, \ - .loff = 2, \ - .lsize = 1, \ - .maxlen = HCI_MAX_SCO_SIZE - -#define H4_RECV_EVENT \ - .type = HCI_EVENT_PKT, \ - .hlen = HCI_EVENT_HDR_SIZE, \ - .loff = 1, \ - .lsize = 1, \ - .maxlen = HCI_MAX_EVENT_SIZE - -#define H4_RECV_ISO \ - .type = HCI_ISODATA_PKT, \ - .hlen = HCI_ISO_HDR_SIZE, \ - .loff = 2, \ - .lsize = 2, \ - .maxlen = HCI_MAX_FRAME_SIZE \ -#ifdef CONFIG_BT_HCIUART_H4 int h4_init (void );int h4_deinit (void );
include/net/bluetooth/hci_h4.h new file +60 -0
60 lines not on this page · raw message
net/bluetooth/Makefile +1 -1
@@ -14,7 +14,7 @@ bluetooth_6lowpan-y := 6lowpan.o bluetooth-y := af_bluetooth.o hci_core.o hci_conn.o hci_event.o mgmt.o \ hci_sock.o hci_sysfs.o l2cap_core.o l2cap_sock.o smp.o lib.o \ ecdh_helper.o mgmt_util.o mgmt_config.o hci_codec.o eir.o hci_sync.o \ - hci_drv.o + hci_drv.o hci_h4.o bluetooth-$(CONFIG_DEV_COREDUMP) += coredump.o
net/bluetooth/hci_h4.c new file +160 -0
160 lines not on this page · raw message
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 21/2651 Bluetooth: btusb: Build the driver from multiple source files
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zijun Hu <[email protected]>
[ Upstream commit be58267a34ae562a4a6932f68f1487bceb0345d7 ]
Allow the driver to include vendor USB-transport-specific source files by:
- renaming btusb.c to btusb_main.c
- making btusb.o a composite object
Used by Qualcomm QCC2072 support.
Stable-dep-of: df5e35f1663a ("Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728")
---
drivers/bluetooth/Makefile | 2 ++
drivers/bluetooth/{btusb.c => btusb_main.c} | 0
2 files changed, 2 insertions(+)
rename drivers/bluetooth/{btusb.c => btusb_main.c} (100%)drivers/bluetooth/Makefile +2 -0
@@ -51,4 +51,6 @@ hci_uart-$(CONFIG_BT_HCIUART_MRVL) += hci_mrvl.o hci_uart-$(CONFIG_BT_HCIUART_AML) += hci_aml.o hci_uart-objs := $(hci_uart-y) +btusb-y := btusb_main.o + CONTEXT_ANALYSIS := y
drivers/bluetooth/btusb_main.c renamed from drivers/bluetooth/btusb.c +0 -0
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 22/2651 Bluetooth: btusb: drop BROKEN_EXT_SCAN quirk for 0bda:a728
In reply to Greg Kroah-Hartman7.3-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_main.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/bluetooth/btusb_main.c +0 -8
@@ -68,7 +68,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[] = {/*
@@ -636,10 +635,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 },
@@ -4492,9 +4487,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 23/2651 ALSA: pcm: Optimize cpu_latency_qos_*() calls
In reply to Greg Kroah-Hartman7.3-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
@@ -778,11 +778,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;
@@ -889,12 +910,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) {
@@ -971,7 +986,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;
@@ -2005,6 +2020,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); }
@@ -2795,8 +2811,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 24/2651 ALSA: pcm: Prevent O_APPEND open on OSS streams
In reply to Greg Kroah-Hartman7.3-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
@@ -919,6 +919,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
@@ -772,12 +772,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 25/2651 net: Use a dedicated flag to track disabled napi instances
In reply to Greg Kroah-Hartman7.3-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: place the disabled state after the threaded busy-poll state;
the adjacent per-CPU NAPI state is not present in 7.3.y. ]
--- include/linux/netdevice.h | 2 ++ net/core/dev.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-)
include/linux/netdevice.h +2 -0
@@ -433,6 +433,7 @@ enum {NAPI_STATE_SCHED_THREADED ,/* Napi is currently scheduled in threaded mode */ NAPI_STATE_HAS_NOTIFIER ,/* Napi has an IRQ notifier */ NAPI_STATE_THREADED_BUSY_POLL ,/* The threaded NAPI poller will busy poll */ + NAPI_STATE_DISABLED, /* NAPI is disabled */ }; enum {
@@ -448,6 +449,7 @@ enum {NAPIF_STATE_SCHED_THREADED =BIT (NAPI_STATE_SCHED_THREADED ),NAPIF_STATE_HAS_NOTIFIER =BIT (NAPI_STATE_HAS_NOTIFIER ),NAPIF_STATE_THREADED_BUSY_POLL =BIT (NAPI_STATE_THREADED_BUSY_POLL ), + NAPIF_STATE_DISABLED = BIT(NAPI_STATE_DISABLED), }; enum gro_result {
net/core/dev.c +13 -2
@@ -7266,6 +7266,13 @@ 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); +clear_bit (NAPI_STATE_THREADED_BUSY_POLL , &napi->state); + goto stop; + } +/* Wait until the napi STATE_THREADED is unset. */ while (true) { val =READ_ONCE (napi->state);
@@ -7296,6 +7303,7 @@ static void napi_stop_kthread(struct napi_struct *napi)msleep (20 ); } +stop:kthread_stop (napi->thread); napi->thread =NULL ; }
@@ -7691,6 +7699,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
@@ -7727,7 +7736,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_THREADED_BUSY_POLL |NAPIF_STATE_PREFER_BUSY_POLL );
@@ -7772,7 +7782,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 26/2651 Revert "drm/amd/display: Allocate DCN32/1 dmub memory to GTT"
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Calvin Owens <[email protected]>
[ Upstream commit 5b3717a14ef602c961a4abeb2ce8039f0394bebb ]
After commit a637a140ab860310 ("drm/amd/display: Allocate DCN32/1 dmub memory to GTT"), a machine with a Radeon RX 7900 shows random garbage on the screen. It reproduces sporadically, but at times it is so bad the machine is more or less unusable.
The garbage is always horizontal bars extending across the entire screen, always approximately 200 pixels tall on a 3840x2160 screen, for what looks like a single frame. The bars are mostly black, but will sometimes exhibit striping and periodic artifacts which smell like non-framebuffer data is being rendered to the screen.
It took some patience on the "good" side, but I was able to nail it down to commit a637a140ab860310818a14fb4d37e39e51a06be4 with this bisect:
bad: [cee9395acd8043be0644b25c34bfa86623f2b935] Linux 7.3-rc1
good: [8d3ae59288f1e7d58d76558a6ee96d533bc5019f] Linux 7.2
good: [55ab7e14222e5f0b0fd9f7711ca391d2924b35e3] Merge tag 'for-7.3/block-20260819' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux
bad: [df51bdc5e80dae43cab81f6cc641e98638303c88] Merge tag 'mtd/for-7.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux
bad: [29daacacf4cd84e6917f09de6a99fb170071c14c] Merge tag 'drm-rust-next-2026-08-08' of https://gitlab.freedesktop.org/drm/rust/kernel into drm-next
good: [fff648aec5e2790d117a0ec5c849a284d9d33d70] drm/amdgpu: include amdgpu_video_codecs.h only where needed
bad: [336e0cd576817ac64a4b394ca2b3680029f3e37f] Revert "drm/amdgpu: fix aperture mapping leak"
bad: [789f7486a384ca58b9d7a76abba5efa0e80e8dab] drm/amd/display: Test plane colorop helper walkers
good: [e0e426f10ad653c5e9dd33fb4a76d55f06101992] drm/amd/display: Test helper_check_state rejects
bad: [982b2a43682b55e7d9800000f2592832ff2865ba] drm/amdgpu: Fix IP block NULL check during soft reset
bad: [9102b39fa924dcc3dc75a3137bfa9633c40b88c0] drm/amdgpu/userq: fix indefinite fence wait during GPU reset
bad: [b23470a026afe64de5c1df4ad181587b49c22923] drm/amd/display: Exit LS for ISHARP before coefficient write
bad: [f02b2e47355e9d381a7f34acc997e1c47879ca21] drm/amd/display: Add KUnit test for wb jobs
bad: [c6a13d145cc811b19c8a0620f25868cf7d5700c0] drm/amd/display: remove unused dcn42 socbb values
good: [1d8327353de6f1f34063840f362c208c84064f54] drm/amd/display: Fix VABC Init and OLED Support
bad: [a637a140ab860310818a14fb4d37e39e51a06be4] drm/amd/display: Allocate DCN32/1 dmub memory to GTT
first 'bad' commit: [a637a140ab860310818a14fb4d37e39e51a06be4] drm/amd/display: Allocate DCN32/1 dmub memory to GTT
Sure enough, reverting a637a140ab860310818a14fb4d37e39e51a06be4 on top of v7.3 completely and totally eliminates the problem for me.
Mikhail has separately reported this regression:
https://lore.kernel.org/all/[email protected]/
...but it seems to be much more consistent for me than for Mikhail, it's never taken more than 30 minutes even when the machine is completely idle. I've also never been able to reproduce any artifact one single time without commit a637a140, despite a lot of effort.
I'm not sure reverting this is the right way forward, since presumably this would re-regress the timing issue Fangzhi alluded to in the original commit. But nobody has proposed anything concrete yet... so let's start the discussion here.
I'm happy to help test other better ideas as well :)
--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_dmub.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_dmub.c +2 -9
@@ -511,7 +511,6 @@ int dm_dmub_sw_init(struct amdgpu_device *adev) DMUB_WINDOW_MEMORY_TYPE_FB, /* DMUB_WINDOW_CURSOR_OFFLOAD */ };int r; -int mem_domain =AMDGPU_GEM_DOMAIN_GTT ;switch (amdgpu_ip_version (adev,DCE_HWIP ,0 )) {case IP_VERSION (2 ,1 ,0 ):
@@ -648,19 +647,13 @@ int dm_dmub_sw_init(struct amdgpu_device *adev)return -EINVAL ; } -/* Limit to allocate dmub to GTT on DCN32/1 -* TODO: Other asics with GDDR7 may have worse latency -*/ -if (dmub_asic !=DMUB_ASIC_DCN32 && - dmub_asic !=DMUB_ASIC_DCN321 ) - mem_domain |=AMDGPU_GEM_DOMAIN_VRAM ; -/* * Allocate a framebuffer based on the total size of all the regions. * TODO: Move this into GART. */ r =amdgpu_bo_create_kernel (adev, region_info.fb_size,PAGE_SIZE , - mem_domain, +AMDGPU_GEM_DOMAIN_VRAM | +AMDGPU_GEM_DOMAIN_GTT , &adev->dm.dmub_bo, &adev->dm.dmub_bo_gpu_addr, &adev->dm.dmub_bo_cpu_addr);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 27/2651 drm/amdgpu: Config VCN instance for soc_v1_0"
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sonny Jiang <[email protected]>
[ Upstream commit ab2fb550bc1fabd96c948fdbebbc05f61a9810d6 ]
Set up the default VCN instance mask and related instance counts during soc_v1_0 SOC configuration, before IP discovery is enabled.
Stable-dep-of: a56c2536c399 ("drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg")
--- drivers/gpu/drm/amd/amdgpu/soc_v1_0.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc_v1_0.c +5 -0
@@ -849,6 +849,11 @@ int soc_v1_0_init_soc_config(struct amdgpu_device *adev) adev->sdma.sdma_mask = sdma_mask; adev->sdma.num_instances =NUM_XCC (adev->sdma.sdma_mask); + adev->vcn.harvest_config =0 ; + adev->vcn.num_inst_per_aid =1 ; + adev->vcn.inst_mask =1 ; + adev->vcn.num_vcn_inst =hweight32 (adev->vcn.inst_mask); + ret =soc_v1_0_xcp_mgr_init (adev);if (ret)return ret;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 28/2651 drm/amdgpu: Correct VCN V5_0_2 doorbell index setting
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sonny Jiang <[email protected]>
[ Upstream commit 66421e37897ddd29c03a3290cd559f7c72622f80 ]
Each VCN 5.0.2 instance has 11 doorbells. Use an 11-doorbell when calculating the per-instance VCN ring doorbell index.
Stable-dep-of: a56c2536c399 ("drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg")
--- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c +1 -1
@@ -129,7 +129,7 @@ static int vcn_v5_0_2_sw_init(struct amdgpu_ip_block *ip_block) ring->use_doorbell = true; ring->doorbell_index = - (adev->doorbell_index.vcn.vcn_ring0_1 <<1 ) +32 * vcn_inst; + (adev->doorbell_index.vcn.vcn_ring0_1 <<1 ) +11 * vcn_inst; ring->vm_hub =AMDGPU_MMHUB0 (adev->vcn.inst[i].aid_id);sprintf (ring->name,"vcn_unified_%d" , adev->vcn.inst[i].aid_id);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 29/2651 drm/amdgpu: VCN 5_0_2 disable VCN_RRMT
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sonny Jiang <[email protected]>
[ Upstream commit 400af1fb41676c25966624b8ce0f5c09aee2a9b3 ]
When RRMT is enabled, VCN firmware's register access is remapped so that VCN instances on different dies (VCN0/1 on MID0, VCN2/3 on MID1) require different target addresses for the same logical register.
Remove the RRMT capability detection so the driver always assumes RRMT is disabled, using local-die SMN addresses for all instances.
Stable-dep-of: a56c2536c399 ("drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg")
--- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c +0 -2
@@ -203,8 +203,6 @@ static int vcn_v5_0_2_hw_init(struct amdgpu_ip_block *ip_block)int i, r, vcn_inst;uint32_t tmp; -if (RREG32_SOC15 (VCN ,GET_INST (VCN ,0 ), regVCN_RRMT_CNTL) &0x200 ) - adev->vcn.caps |=AMDGPU_VCN_CAPS (RRMT_ENABLED );for (i =0 ; i < adev->vcn.num_vcn_inst; ++i) { vcn_inst =GET_INST (VCN , i); ring = &adev->vcn.inst[i].ring_enc[0 ];
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 30/2651 drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg
In reply to Greg Kroah-Hartman7.3-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/jpeg_v5_0_2.c | 6 +++++- drivers/gpu/drm/amd/amdgpu/jpeg_v5_3_0.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_v1_0.c | 6 +++++- 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/amdgpu/vcn_v5_0_2.c | 10 +++++++++- 29 files changed, 174 insertions(+), 33 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
@@ -434,12 +434,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
@@ -306,11 +306,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/jpeg_v5_0_2.c +5 -1
@@ -252,11 +252,15 @@ static int jpeg_v5_0_2_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_v5_3_0.c +5 -1
@@ -156,9 +156,13 @@ static int jpeg_v5_3_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/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 (adev_to_drm (adev),"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 (adev_to_drm (adev),"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 (adev_to_drm (adev),"UVD initialized successfully.\n" );return r;
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +3 -1
@@ -515,7 +515,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 (adev_to_drm (adev),"UVD and UVD ENC initialized successfully.\n" );else
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c +3 -1
@@ -583,7 +583,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 (adev_to_drm (adev),"UVD and UVD ENC initialized successfully.\n" );return r;
drivers/gpu/drm/amd/amdgpu/vce_v1_0.c +5 -1
@@ -651,12 +651,16 @@ static int vce_v1_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; }dev_info (adev->dev,"VCE initialized successfully.\n" );return 0 ; + +error: +cancel_delayed_work_sync (&adev->vce.idle_work); +return r; }static int vce_v1_0_hw_fini (struct amdgpu_ip_block *ip_block)
drivers/gpu/drm/amd/amdgpu/vce_v2_0.c +5 -1
@@ -483,12 +483,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 (adev_to_drm (adev),"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
@@ -482,12 +482,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 (adev_to_drm (adev),"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
@@ -533,12 +533,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 (adev_to_drm (adev),"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
@@ -480,18 +480,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
@@ -394,11 +394,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
@@ -341,11 +341,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; }/**
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c +9 -1
@@ -223,10 +223,18 @@ static int vcn_v5_0_2_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 31/2651 hugetlbfs: enforce F_SEAL_EXEC in setattr
In reply to Greg Kroah-Hartman7.3-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 | 5 +++++ 1 file changed, 5 insertions(+)
fs/hugetlbfs/inode.c +5 -0
@@ -841,6 +841,11 @@ static int hugetlbfs_setattr(struct mnt_idmap *idmap,if (error)return error; +if (S_ISREG (inode->i_mode) && (ia_valid &ATTR_MODE ) && + (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 32/2651 btrfs: replace btrfs_repair_io_failure() to use bio for page iteration
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Qu Wenruo <[email protected]>
[ Upstream commit 15ed4a938b30fcb72e96187f36e2c4ff0e6e2227 ]
Currently btrfs_repair_io_failure() uses a @paddrs[] array to iterate pages.
Such a parameter is required for bs > ps cases, as one fs block crosses several pages.
However there is a much simpler and existing way to iterate pages: bio and bvec_iter.
This changes btrfs_repair_io_failure() by:
- Use a const @bvec_iter pointer to locate where the pages are
- Extract file offset/logical from the @bbio
- Require no @step parameter
Above features allow us to shorten the parameter list.
- Rename the function to btrfs_repair_bbio_failure()
- Change the caller in btrfs_repair_eb_io_failure() to allocate a bbio Unlike the data read path, we do not have a handy bbio in that case. So we need to allocate one just for btrfs_repair_bbio_failure().
- Change the error reporting in btrfs_repair_bbio_failure() to include root id and use inode number directly
Now for btree inode we will report a proper inode number (1).
Stable-dep-of: d00b85308abe ("btrfs: raid56: do not verify the content if there is no data checksum")
--- fs/btrfs/bio.c | 61 ++++++++++++++++++++++++++-------------------- fs/btrfs/bio.h | 5 ++-- fs/btrfs/disk-io.c | 25 +++++++++++++------ 3 files changed, 55 insertions(+), 36 deletions(-)
fs/btrfs/bio.c +35 -26
@@ -186,7 +186,6 @@ static void btrfs_end_repair_bio(struct btrfs_bio *repair_bbio,*/ struct bvec_iter saved_iter = repair_bbio->saved_iter;const u32 step =min (fs_info->sectorsize,PAGE_SIZE ); -const u64 logical = repair_bbio->saved_iter.bi_sector <<SECTOR_SHIFT ;const u32 nr_steps = repair_bbio->saved_iter.bi_size / step;int mirror = repair_bbio->mirror_num;phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE /PAGE_SIZE ];
@@ -220,9 +219,8 @@ static void btrfs_end_repair_bio(struct btrfs_bio *repair_bbio,do { mirror =prev_repair_mirror (fbio, mirror); -btrfs_repair_io_failure (fs_info,btrfs_ino (inode), - repair_bbio->file_offset, fs_info->sectorsize, - logical, paddrs, step, mirror); +btrfs_repair_bbio_failure (repair_bbio, &repair_bbio->saved_iter, + fs_info->sectorsize, mirror); }while (mirror != fbio->bbio->mirror_num); done:
@@ -925,21 +923,23 @@ void btrfs_submit_bbio(struct btrfs_bio *bbio, int mirror_num)* The I/O is issued synchronously to block the repair read completion from * freeing the bio. * -* @ino: Offending inode number -* @fileoff: File offset inside the inode +* @bbio: Original bbio where the repair is needed +* @orig_iter: Points to where the repair start is * @length: Length of the repair write -* @logical: Logical address of the range -* @paddrs: Physical address array of the content -* @step: Length of for each paddrs * @mirror_num: Mirror number to write to. Must not be zero */ -int btrfs_repair_io_failure (struct btrfs_fs_info *fs_info,u64 ino,u64 fileoff, -u32 length,u64 logical,const phys_addr_t paddrs[], -unsigned int step,int mirror_num) +int btrfs_repair_bbio_failure (struct btrfs_bio *bbio,const struct bvec_iter *orig_iter, +u32 length,int mirror_num) { -const u32 nr_steps =DIV_ROUND_UP_POW2 (length, step); +struct btrfs_inode *inode = bbio->inode; +struct btrfs_fs_info *fs_info = inode->root->fs_info;struct btrfs_io_stripe smap = {0 }; -struct bio *bio =NULL ; +struct bvec_iter iter = *orig_iter; +struct bio *repair_bio =NULL ; +const u64 logical = iter.bi_sector <<SECTOR_SHIFT ; +const u64 fileoff = bbio->file_offset + + ((iter.bi_sector - bbio->saved_iter.bi_sector) <<SECTOR_SHIFT ); +u32 cur =0 ;int ret =0 ;BUG_ON (!mirror_num);
@@ -950,8 +950,9 @@ int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 fileoff,ASSERT (IS_ALIGNED (fileoff, fs_info->sectorsize));/* Either it's a single data or metadata block. */ ASSERT (length <=BTRFS_MAX_BLOCKSIZE ); -ASSERT (step <= length); -ASSERT (is_power_of_2 (step)); + +/* Our current iter should not be before the original bbio saved_iter. */ +ASSERT (iter.bi_sector >= bbio->saved_iter.bi_sector);/* * The fs either mounted RO or hit critical errors, no need
@@ -979,15 +980,22 @@ int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 fileoff, goto out_counter_dec; } - bio =bio_alloc (smap.dev->bdev, nr_steps,REQ_OP_WRITE |REQ_SYNC ,GFP_NOFS ); - bio->bi_iter.bi_sector = smap.physical >>SECTOR_SHIFT ; -for (int i =0 ; i < nr_steps; i++) { - ret =bio_add_page (bio,phys_to_page (paddrs[i]), step,offset_in_page (paddrs[i])); -/* We should have allocated enough slots to contain all the different pages. */ -ASSERT (ret == step); + repair_bio =bio_alloc (smap.dev->bdev,max (1 , length >>PAGE_SHIFT ), +REQ_OP_WRITE |REQ_SYNC ,GFP_NOFS ); + repair_bio->bi_iter.bi_sector = smap.physical >>SECTOR_SHIFT ; +while (cur < length) { +struct page *page =bio_iter_page (&bbio->bio, iter); +const u32 pg_off =bio_iter_offset (&bbio->bio, iter); +const u32 cur_len =min (bio_iter_len (&bbio->bio, iter), length - cur); + + ret =bio_add_page (repair_bio, page, cur_len, pg_off); +ASSERT (ret == cur_len); +bio_advance_iter_single (&bbio->bio, &iter, cur_len); + cur += cur_len; } - ret =submit_bio_wait (bio); -bio_put (bio); + + ret =submit_bio_wait (repair_bio); +bio_put (repair_bio);if (ret) {/* try to remap that extent elsewhere? */ btrfs_dev_stat_inc_and_print (smap.dev,BTRFS_DEV_STAT_WRITE_ERRS );
@@ -995,8 +1003,9 @@ int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 fileoff, }btrfs_info_rl (fs_info, -"read error corrected: ino %llu off %llu (dev %s sector %llu)" , - ino, fileoff,btrfs_dev_name (smap.dev), +"read error corrected: root %llu ino %llu off %llu (dev %s sector %llu)" , +btrfs_root_id (inode->root),btrfs_ino (inode), fileoff, +btrfs_dev_name (smap.dev), smap.physical >>SECTOR_SHIFT ); ret =0 ;
fs/btrfs/bio.h +2 -3
@@ -126,8 +126,7 @@ void btrfs_bio_end_io(struct btrfs_bio *bbio, blk_status_t status);void btrfs_submit_bbio (struct btrfs_bio *bbio,int mirror_num);void btrfs_submit_repair_write (struct btrfs_bio *bbio,int mirror_num,bool dev_replace); -int btrfs_repair_io_failure (struct btrfs_fs_info *fs_info,u64 ino,u64 fileoff, -u32 length,u64 logical,const phys_addr_t paddrs[], -unsigned int step,int mirror_num); +int btrfs_repair_bbio_failure (struct btrfs_bio *bbio,const struct bvec_iter *orig_iter, +u32 length,int mirror_num);#endif
fs/btrfs/disk-io.c +18 -7
@@ -176,19 +176,24 @@ static int btrfs_repair_eb_io_failure(const struct extent_buffer *eb, int mirror_num) {struct btrfs_fs_info *fs_info = eb->fs_info; -const u32 step =min (fs_info->nodesize,PAGE_SIZE ); -const u32 nr_steps = eb->len / step; -phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE /PAGE_SIZE ]; +struct btrfs_bio *bbio; +int ret;if (sb_rdonly (fs_info->sb))return -EROFS ; +/* +* This bbio is only to queue all pages for btrfs_repair_bbio_failure(). +* Thus it will never get its endio called. +*/ + bbio =btrfs_bio_alloc (max (1 , fs_info->nodesize >>PAGE_SHIFT ),REQ_OP_READ , +BTRFS_I (fs_info->btree_inode), eb->start,NULL ,NULL ); + bbio->bio.bi_iter.bi_sector = eb->start >>SECTOR_SHIFT ;for (int i =0 ; i <num_extent_pages (eb); i++) {struct folio *folio = eb->folios[i];/* No large folio support yet. */ ASSERT (folio_order (folio) ==0 ); -ASSERT (i < nr_steps);/* * For nodesize < page size, there is just one paddr, with some
@@ -197,11 +202,17 @@ static int btrfs_repair_eb_io_failure(const struct extent_buffer *eb,* For nodesize >= page size, it's one or more paddrs, and eb->start * must be aligned to page boundary. */ - paddrs[i] =page_to_phys (&folio->page) +offset_in_page (eb->start); + ret =bio_add_page (&bbio->bio, &folio->page,min (PAGE_SIZE , fs_info->nodesize), +offset_in_page (eb->start)); +ASSERT (ret ==min (PAGE_SIZE , fs_info->nodesize)); } +/* Since the bbio is never submitted, we have to save the iter manually. */ + bbio->saved_iter = bbio->bio.bi_iter; -return btrfs_repair_io_failure (fs_info,0 , eb->start, eb->len, - eb->start, paddrs, step, mirror_num); + ret =btrfs_repair_bbio_failure (bbio, &bbio->saved_iter, fs_info->nodesize, + mirror_num); +bio_put (&bbio->bio); +return ret; }/*
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 33/2651 btrfs: enhance btrfs_data_csum_ok() to use bio for page iteration
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Qu Wenruo <[email protected]>
[ Upstream commit 3e4a083bf0c8bb727517ae781052b80167443077 ]
Currently btrfs_data_csum_ok() requires a @paddr[] array to iterate all possible pages for bs > ps cases.
However for all btrfs_data_csum_ok() call sites, we already have a btrfs_bio, and the bio infrastructure has many flexible ways to iterate multiple pages already.
Change btrfs_data_csum_ok() to make full use of btrfs_bio by:
- Change the parameter list to require a @bvec_iter pointer And remove @bio_offset, which can be calculated through @bvec_iter and bbio->saved_iter.
Also remove paddrs[], we will iterate all the pages using bio interfaces.
- Make the same parameter changes to repair_one_sector()
- Use bio interfaces to iterate pages from a bio
- Rename the function to btrfs_bio_data_csum_ok()
- Remove on-stack paddrs[] array usage
Stable-dep-of: d00b85308abe ("btrfs: raid56: do not verify the content if there is no data checksum")
--- fs/btrfs/bio.c | 82 +++++++++++++++--------------------------- fs/btrfs/btrfs_inode.h | 4 +-- fs/btrfs/inode.c | 49 +++++++++++++++++++------ 3 files changed, 70 insertions(+), 65 deletions(-)
fs/btrfs/bio.c +29 -53
@@ -180,29 +180,13 @@ static void btrfs_end_repair_bio(struct btrfs_bio *repair_bbio,struct btrfs_failed_bio *fbio = repair_bbio->private;struct btrfs_inode *inode = repair_bbio->inode;struct btrfs_fs_info *fs_info = inode->root->fs_info; -/* -* We can not move forward the saved_iter, as it will be later -* utilized by repair_bbio again. -*/ -struct bvec_iter saved_iter = repair_bbio->saved_iter; -const u32 step =min (fs_info->sectorsize,PAGE_SIZE ); -const u32 nr_steps = repair_bbio->saved_iter.bi_size / step;int mirror = repair_bbio->mirror_num; -phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE /PAGE_SIZE ]; -phys_addr_t paddr; -unsigned int slot =0 ; -/* Repair bbio should be eaxctly one block sized. */ +/* Repair bbio should be exactly one block sized. */ ASSERT (repair_bbio->saved_iter.bi_size == fs_info->sectorsize); -btrfs_bio_for_each_block (paddr, &repair_bbio->bio, &saved_iter, step) { -ASSERT (slot < nr_steps); - paddrs[slot] = paddr; - slot++; - } -if (repair_bbio->bio.bi_status || - !btrfs_data_csum_ok (repair_bbio, dev,0 , paddrs)) { + !btrfs_bio_data_csum_ok (repair_bbio, &repair_bbio->saved_iter, dev)) {bio_reset (&repair_bbio->bio,NULL ,REQ_OP_READ ); repair_bbio->bio.bi_iter = repair_bbio->saved_iter;
@@ -236,25 +220,21 @@ static void btrfs_end_repair_bio(struct btrfs_bio *repair_bbio,* read succeeded to restore the redundancy. */ static struct btrfs_failed_bio *repair_one_sector (struct btrfs_bio *failed_bbio, -u32 bio_offset, -phys_addr_t paddrs[], +const struct bvec_iter *orig_iter,struct btrfs_failed_bio *fbio) {struct btrfs_inode *inode = failed_bbio->inode;struct btrfs_fs_info *fs_info = inode->root->fs_info; -const u32 sectorsize = fs_info->sectorsize; -const u32 step =min (fs_info->sectorsize,PAGE_SIZE ); -const u32 nr_steps = sectorsize / step; -/* -* For bs > ps cases, the saved_iter can be partially moved forward. -* In that case we should round it down to the block boundary. -*/ -const u64 logical =round_down (failed_bbio->saved_iter.bi_sector <<SECTOR_SHIFT , - sectorsize);struct btrfs_bio *repair_bbio;struct bio *repair_bio; +struct bvec_iter iter = *orig_iter; +const u32 sectorsize = fs_info->sectorsize; +const u32 bio_offset = ((iter.bi_sector - failed_bbio->saved_iter.bi_sector) << +SECTOR_SHIFT ); +const u64 logical = (iter.bi_sector <<SECTOR_SHIFT );int num_copies;int mirror; +u32 cur =0 ;btrfs_debug (fs_info,"repair read error: read error at %llu" , failed_bbio->file_offset + bio_offset);
@@ -275,17 +255,21 @@ static struct btrfs_failed_bio *repair_one_sector(struct btrfs_bio *failed_bbio,atomic_inc (&fbio->repair_count); - repair_bio =bio_alloc_bioset (NULL , nr_steps,REQ_OP_READ ,GFP_NOFS , - &btrfs_repair_bioset); + repair_bio =bio_alloc_bioset (NULL ,max (1 , sectorsize >>PAGE_SHIFT ), +REQ_OP_READ ,GFP_NOFS , &btrfs_repair_bioset); repair_bio->bi_iter.bi_sector = logical >>SECTOR_SHIFT ; -for (int i =0 ; i < nr_steps; i++) { +while (cur < sectorsize) { +struct page *page =bio_iter_page (&failed_bbio->bio, iter); +const u32 pg_off =bio_iter_offset (&failed_bbio->bio, iter); +const u32 cur_len =min (bio_iter_len (&failed_bbio->bio, iter), + sectorsize - cur);int ret; -ASSERT (offset_in_page (paddrs[i]) + step <=PAGE_SIZE ); + ret =bio_add_page (repair_bio, page, cur_len, pg_off); +ASSERT (ret == cur_len); - ret =bio_add_page (repair_bio,phys_to_page (paddrs[i]), step, -offset_in_page (paddrs[i])); -ASSERT (ret == step); +bio_advance_iter_single (&failed_bbio->bio, &iter, cur_len); + cur += cur_len; } repair_bbio =btrfs_bio (repair_bio);
@@ -303,18 +287,16 @@ static void btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *destruct btrfs_inode *inode = bbio->inode;struct btrfs_fs_info *fs_info = inode->root->fs_info;const u32 sectorsize = fs_info->sectorsize; -const u32 step =min (sectorsize,PAGE_SIZE ); -const u32 nr_steps = sectorsize / step; -struct bvec_iter *iter = &bbio->saved_iter; +struct bvec_iter iter;blk_status_t status = bbio->bio.bi_status;struct btrfs_failed_bio *fbio =NULL ; -phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE /PAGE_SIZE ]; -phys_addr_t paddr; -u32 offset =0 ;/* Read-repair requires the inode field to be set by the submitter. */ ASSERT (inode); +/* The original bbio should be sectorsize aligned. */ +ASSERT (IS_ALIGNED (bbio->saved_iter.bi_size, sectorsize)); +/* * Hand off repair bios to the repair code as there is no upper level * submitter for them.
@@ -327,16 +309,10 @@ static void btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *de/* Clear the I/O error. A failed repair will reset it. */ bbio->bio.bi_status =BLK_STS_OK ; -btrfs_bio_for_each_block (paddr, &bbio->bio, iter, step) { - paddrs[(offset / step) % nr_steps] = paddr; - offset += step; - -if (IS_ALIGNED (offset, sectorsize)) { -if (status || - !btrfs_data_csum_ok (bbio, dev, offset - sectorsize, paddrs)) - fbio =repair_one_sector (bbio, offset - sectorsize, - paddrs, fbio); - } +for (iter = bbio->saved_iter; iter.bi_size; +bio_advance_iter (&bbio->bio, &iter, sectorsize)) { +if (status || !btrfs_bio_data_csum_ok (bbio, &iter, dev)) + fbio =repair_one_sector (bbio, &iter, fbio); }if (bbio->csum != bbio->csum_inline)kvfree (bbio->csum);
@@ -924,7 +900,7 @@ void btrfs_submit_bbio(struct btrfs_bio *bbio, int mirror_num)* freeing the bio. * * @bbio: Original bbio where the repair is needed -* @orig_iter: Points to where the repair start is +* @orig_iter: Points to where the repair starts * @length: Length of the repair write * @mirror_num: Mirror number to write to. Must not be zero */
fs/btrfs/btrfs_inode.h +2 -2
@@ -513,8 +513,8 @@ void btrfs_calculate_block_csum_pages(struct btrfs_fs_info *fs_info, const phys_addr_t paddrs[], u8 *dest);int btrfs_check_block_csum (struct btrfs_fs_info *fs_info,phys_addr_t paddr,u8 *csum,const u8 *const csum_expected); -bool btrfs_data_csum_ok (struct btrfs_bio *bbio,struct btrfs_device *dev, -u32 bio_offset,const phys_addr_t paddrs[]); +bool btrfs_bio_data_csum_ok (struct btrfs_bio *bbio,const struct bvec_iter *orig_iter, +struct btrfs_device *dev); noinline int can_nocow_extent(struct btrfs_inode *inode, u64 offset, u64 *len,struct btrfs_file_extent *file_extent,bool nowait);
fs/btrfs/inode.c +39 -10
81 lines not on this page · raw message
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 34/2651 btrfs: use a shared helper to calculate data checksum for a bio
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Qu Wenruo <[email protected]>
[ Upstream commit 64978a4eced2b8f769cdfc27d68c6710e9c92627 ]
Since we are already calculating data checksum using bio interface, extract the generation part into btrfs_csum_one_bio_block(), and use that to replace the paddrs[] array based solution in csum_one_bio().
This will reduce 128 bytes on-stack memory usage for csum_one_bio().
Stable-dep-of: d00b85308abe ("btrfs: raid56: do not verify the content if there is no data checksum")
--- fs/btrfs/btrfs_inode.h | 2 ++ fs/btrfs/file-item.c | 19 +++++------------ fs/btrfs/inode.c | 46 +++++++++++++++++++++++++----------------- 3 files changed, 34 insertions(+), 33 deletions(-)
fs/btrfs/btrfs_inode.h +2 -0
@@ -515,6 +515,8 @@ int btrfs_check_block_csum(struct btrfs_fs_info *fs_info, phys_addr_t paddr, u8 const u8 * const csum_expected);bool btrfs_bio_data_csum_ok (struct btrfs_bio *bbio,const struct bvec_iter *orig_iter,struct btrfs_device *dev); +void btrfs_csum_one_bio_block (struct btrfs_fs_info *fs_info,struct bio *bio, +const struct bvec_iter *orig_iter,u8 *csum); noinline int can_nocow_extent(struct btrfs_inode *inode, u64 offset, u64 *len,struct btrfs_file_extent *file_extent,bool nowait);
fs/btrfs/file-item.c +5 -14
@@ -801,25 +801,16 @@ static void csum_one_bio(struct btrfs_bio *bbio, struct bvec_iter *src) {struct btrfs_inode *inode = bbio->inode;struct btrfs_fs_info *fs_info = inode->root->fs_info; -struct bio *bio = &bbio->bio;struct btrfs_ordered_sum *sums = bbio->sums; -struct bvec_iter iter = *src; -phys_addr_t paddr; +struct bvec_iter iter;const u32 blocksize = fs_info->sectorsize; -const u32 step =min (blocksize,PAGE_SIZE ); -const u32 nr_steps = blocksize / step; -phys_addr_t paddrs[BTRFS_MAX_BLOCKSIZE /PAGE_SIZE ]; -u32 offset =0 ;int index =0 ; -btrfs_bio_for_each_block (paddr, bio, &iter, step) { - paddrs[(offset / step) % nr_steps] = paddr; - offset += step; +for (iter = *src; iter.bi_size;bio_advance_iter (&bbio->bio, &iter, blocksize)) { +btrfs_csum_one_bio_block (fs_info, &bbio->bio, &iter, + sums->sums + index); -if (IS_ALIGNED (offset, blocksize)) { -btrfs_calculate_block_csum_pages (fs_info, paddrs, sums->sums + index); - index += fs_info->csum_size; - } + index += fs_info->csum_size; } }
fs/btrfs/inode.c +27 -19
70 lines not on this page · raw message
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 35/2651 btrfs: remove on-stack paddrs[] array usage
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Qu Wenruo <[email protected]>
[ Upstream commit f41f4dcddea1b9eb41fc3a5491b2a8dd1f7c21ff ]
Since the bs > ps support, we have to handle cases where a data block is inside several discontiguous pages.
Thus we need a local paddrs[] array to assemble a data block for bs > ps cases.
However to handle all possible bs/ps combinations, we have to declare such array using the max block size vs page size, no matter the current block size and page size.
This adds 128 bytes on-stack memory usage for several call sites, and also introduced several duplicated helpers to calculate checksum for a data block:
- btrfs_calculate_block_csum_folio()
- btrfs_calculate_block_csum_pages()
- btrfs_check_block_csum()
The differences are mostly in how the data is passed. The first one accepts a contiguous paddr range. The second one accepts an array of paddrs[]. The last one is just a simple wrapper of the first one.
However the most common interface to iterate a data block is through bio, and we have already converted most callers to use the bio based interface, e.g. btrfs_bio_data_csum_ok() and btrfs_csum_one_bio_block().
Convert the remaining two call sites to address the remaining paddrs[] usage:
- btrfs_calculate_block_csum_pages() inside verify_bio_data_sectors() This can be switched to btrfs_csum_one_bio_block().
This removes the 128 bytes on-stack memory usage.
- btrfs_calculate_block_csum_pages() inside verify_one_sector() This call site doesn't use on-stack memory for paddrs[], but reuses the existing btrfs_raid_bio::bio_paddrs[] or btrfs_raid_bio::stripe_paddrs[].
So implement a local version called calculate_block_csum_paddrs().
Now there is no fixed on-stack paddrs[] usage anymore.
Stable-dep-of: d00b85308abe ("btrfs: raid56: do not verify the content if there is no data checksum")
--- fs/btrfs/btrfs_inode.h | 6 ---- fs/btrfs/inode.c | 75 ------------------------------------------ fs/btrfs/raid56.c | 46 +++++++++++++++----------- 3 files changed, 27 insertions(+), 100 deletions(-)
fs/btrfs/btrfs_inode.h +0 -6
@@ -507,12 +507,6 @@ static inline void btrfs_set_inode_mapping_order(struct btrfs_inode *inode) inode->root->fs_info->block_max_order); } -void btrfs_calculate_block_csum_folio (struct btrfs_fs_info *fs_info, -const phys_addr_t paddr,u8 *dest); -void btrfs_calculate_block_csum_pages (struct btrfs_fs_info *fs_info, -const phys_addr_t paddrs[],u8 *dest); -int btrfs_check_block_csum (struct btrfs_fs_info *fs_info,phys_addr_t paddr,u8 *csum, -const u8 *const csum_expected);bool btrfs_bio_data_csum_ok (struct btrfs_bio *bbio,const struct bvec_iter *orig_iter,struct btrfs_device *dev); void btrfs_csum_one_bio_block(struct btrfs_fs_info *fs_info, struct bio *bio,
fs/btrfs/inode.c +0 -75
81 lines not on this page · raw message
fs/btrfs/raid56.c +27 -19
80 lines not on this page · raw message
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 36/2651 btrfs: raid56: do not verify the content if there is no data checksum
In reply to Greg Kroah-Hartman7.3-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
@@ -1892,6 +1892,8 @@ static int verify_one_sector(struct btrfs_raid_bio *rbio, {struct btrfs_fs_info *fs_info = rbio->bioc->fs_info;phys_addr_t *paddrs; +const unsigned int total_sector_nr = + stripe_nr * rbio->stripe_nsectors + sector_nr;u8 csum_buf[BTRFS_CSUM_SIZE ];u8 *csum_expected;
@@ -1901,6 +1903,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.
@@ -1911,9 +1918,7 @@ static int verify_one_sector(struct btrfs_raid_bio *rbio, paddrs =rbio_stripe_paddrs (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;calculate_block_csum_paddrs (fs_info, paddrs, csum_buf);if (unlikely (memcmp (csum_buf, csum_expected, fs_info->csum_size) !=0 ))return -EIO ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 37/2651 cipso: stop modifying live ip_options_rcu
In reply to Greg Kroah-Hartman7.3-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
@@ -2004,11 +2004,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 ];
@@ -2036,6 +2041,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 */
@@ -2055,7 +2062,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;
@@ -2068,6 +2075,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 ; }/**
@@ -2078,9 +2086,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
@@ -2653,22 +2653,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 ; }/**
@@ -2708,7 +2712,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 ();
@@ -4545,7 +4549,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 38/2651 nvme-tcp: fix use-after-free in nvme_tcp_free_ctrl()
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Christian Aurich Zanettini Martins <[email protected]>
[ Upstream commit b1d1f6b1ee03285690f12c2ebf23616416e6d881 ]
nvme_tcp_free_ctrl() reads ctrl->ctrl.opts to know how many queue mutexes to destroy. When creating the controller fails, nvmf_create_ctrl() frees opts as soon as nvme_tcp_create_ctrl() returns, but a concurrent open of the character device can hold the last reference to the controller. With CONFIG_DEBUG_KOBJECT_RELEASE, which delays the release, every failed connect reads freed memory:
BUG: KASAN: slab-use-after-free in nvme_tcp_free_ctrl+0x38b/0x430 Read of size 4 at addr ffff888005b93740 by task kworker/2:1/51
Keep the size of the queue array in the controller and use it instead.
--- drivers/nvme/host/tcp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/nvme/host/tcp.c +5 -5
@@ -191,6 +191,7 @@ struct nvme_tcp_ctrl {struct delayed_work connect_work;struct nvme_tcp_request async_req;u32 io_queues[HCTX_MAX_TYPES ]; +unsigned int nr_allocated_queues; };static struct workqueue_struct *nvme_tcp_wq;
@@ -2791,8 +2792,6 @@ static void nvme_tcp_stop_ctrl(struct nvme_ctrl *ctrl)static void nvme_tcp_free_ctrl (struct nvme_ctrl *nctrl) {struct nvme_tcp_ctrl *ctrl =to_tcp_ctrl (nctrl); -/* the same count used to size and initialize the queue array */ -unsigned int nr_queues =NVME_TCP_OPT_NR_QUEUES (nctrl->opts);unsigned int i;if (list_empty_careful (&ctrl->list))
@@ -2804,7 +2803,7 @@ static void nvme_tcp_free_ctrl(struct nvme_ctrl *nctrl)nvmf_free_options (nctrl->opts); free_ctrl: -for (i =0 ; i < nr_queues; i++) +for (i =0 ; i < ctrl->nr_allocated_queues; i++)mutex_destroy (&ctrl->queues[i].queue_lock);kfree (ctrl->queues);kfree (ctrl);
@@ -3198,7 +3197,8 @@ static struct nvme_tcp_ctrl *nvme_tcp_alloc_ctrl(struct device *dev, goto out_free_ctrl; } - ctrl->queues =kzalloc_objs (*ctrl->queues, ctrl->ctrl.queue_count); + ctrl->nr_allocated_queues = ctrl->ctrl.queue_count; + ctrl->queues =kzalloc_objs (*ctrl->queues, ctrl->nr_allocated_queues);if (!ctrl->queues) { ret = -ENOMEM ; goto out_free_ctrl;
@@ -3209,7 +3209,7 @@ static struct nvme_tcp_ctrl *nvme_tcp_alloc_ctrl(struct device *dev,* they outlive the per-queue connect/disconnect cycles so that * sysfs readers can never race their destruction. */ -for (i =0 ; i < ctrl->ctrl.queue_count; i++) +for (i =0 ; i < ctrl->nr_allocated_queues; i++)mutex_init (&ctrl->queues[i].queue_lock); ret =nvme_init_ctrl (&ctrl->ctrl, dev, &nvme_tcp_ctrl_ops,0 );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 39/2651 mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
In reply to Greg Kroah-Hartman7.3-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/include/dup.h | 2 +- tools/testing/vma/shared.c | 8 +-- 6 files changed, 126 insertions(+), 31 deletions(-)
Documentation/mm/process_addrs.rst +11 -3
@@ -808,9 +808,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
@@ -955,15 +955,19 @@ struct vm_area_struct {* Can only be written (using WRITE_ONCE()) while holding both: * - mmap_lock (in write mode) * - vm_refcnt bit at VM_REFCNT_EXCLUDE_READERS_FLAG 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 VM_REFCNT_EXCLUDE_READERS_BIT is set or vm_refcnt > 1 +* - vm_refcnt bit at VM_REFCNT_EXCLUDE_READERS_BIT 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
@@ -156,7 +156,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 ; }/*
@@ -230,9 +230,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)
@@ -249,9 +250,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)
@@ -566,6 +568,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
@@ -578,6 +584,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/include/dup.h +1 -1
@@ -1243,7 +1243,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 ; }/*
tools/testing/vma/shared.c +4 -4
@@ -56,7 +56,7 @@ 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; }
@@ -88,13 +88,13 @@ int cleanup_mm(struct mm_struct *mm, struct vma_iterator *vmi)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 ; } void __vma_set_dummy_anon_vma(struct vm_area_struct *vma,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 40/2651 hwmon: (coretemp) Read TjMax only when refreshing the temperature
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ricardo Neri <[email protected]>
[ Upstream commit 5407d2b7d5279b7100621d92f2181184c8f00d62 ]
show_temp() reads TjMax before checking whether the cached temperature is still fresh, but consumes it only when recomputing that temperature. On a cache hit the value is discarded.
Discarding it is not free. On CPUs that report TjMax in MSR_IA32_TEMPERATURE_TARGET, get_tjmax() returns the value it just read without storing it in tdata->tjmax, so every call reads the MSR again. That is a cross-CPU call whenever the CPU owning the sensor is not the current one, and it is made while holding tdata->update_lock.
Read TjMax where it is used. The value cannot go stale in the meantime:
bits 23:16 of MSR_IA32_TEMPERATURE_TARGET are read-only, and the register is package-scoped, so every CPU of the package reads the same value.
The temperature reported to userspace does not change.
Stable-dep-of: 9a6aa085c94c ("hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp()")
--- drivers/hwmon/coretemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/coretemp.c +1 -1
@@ -406,9 +406,9 @@ static ssize_t show_temp(struct device *dev,mutex_lock (&tdata->update_lock); - tjmax =get_tjmax (tdata, dev);/* Check whether the time interval has elapsed */ if (time_after (jiffies, tdata->last_updated +HZ )) { + tjmax =get_tjmax (tdata, dev);rdmsrq_on_cpu (tdata->cpu, tdata->status_reg, &val.q);/* * Bit 31 indicates whether the reading is valid. Some CPUs
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 41/2651 hwmon: (coretemp) Fix 32-bit jiffies wraparound in show_temp()
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Guenter Roeck <[email protected]>
[ Upstream commit 9a6aa085c94c7f2817c4d50a7264e6fb51286f40 ]
show_temp() rate-limits MSR reads by storing tdata->last_updated as an unsigned long and comparing it against jiffies using time_after(jiffies, tdata->last_updated + HZ).
time_after() relies on signed long subtraction, which only produces the expected result while the two timestamps are within LONG_MAX jiffies of each other. On 32-bit kernels, if tempX_input is not read for more than LONG_MAX jiffies (~24.85 days at HZ=1000), the signed difference flips sign and time_after() evaluates to false. Because tdata->last_updated is only refreshed when time_after() succeeds, subsequent reads remain blocked from refreshing for another ~24.85 days until jiffies wraps past tdata->last_updated + HZ again, returning either a stale cached temperature or -ENODATA if the sensor had never been read since initialization.
Store tdata->last_updated as a u64 and use get_jiffies_64() with time_after64(), which does not wrap in any practical uptime.
--- drivers/hwmon/coretemp.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
drivers/hwmon/coretemp.c +5 -8
@@ -76,7 +76,7 @@ struct temp_data {int temp;bool temp_valid;int tjmax; -unsigned long last_updated; +u64 last_updated;unsigned int cpu;int index;u32 cpu_core_id;
@@ -407,7 +407,7 @@ static ssize_t show_temp(struct device *dev,mutex_lock (&tdata->update_lock);/* Check whether the time interval has elapsed */ -if (time_after (jiffies, tdata->last_updated +HZ )) { +if (time_after64 (get_jiffies_64 (), tdata->last_updated +HZ )) { tjmax =get_tjmax (tdata, dev);rdmsrq_on_cpu (tdata->cpu, tdata->status_reg, &val.q);/*
@@ -417,7 +417,7 @@ static ssize_t show_temp(struct device *dev,*/ tdata->temp_valid = (val.l >>31 ) &1 ; tdata->temp = tjmax - ((val.l >>16 ) &0xff ) *1000 ; - tdata->last_updated = jiffies; + tdata->last_updated =get_jiffies_64 (); } valid = tdata->temp_valid;
@@ -521,11 +521,8 @@ init_temp_data(struct platform_data *pdata, unsigned int cpu, int pkg_flag) tdata->cpu = cpu; tdata->cpu_core_id =topology_core_id (cpu); tdata->attr_size =MAX_CORE_ATTRS ; -/* -* A zero timestamp does not look stale on 32-bit, where jiffies -* starts just short of wrapping. Backdate it instead. -*/ - tdata->last_updated = jiffies -HZ -1 ; +/* Backdate to force a refresh on the first read */ + tdata->last_updated =get_jiffies_64 () -HZ -1 ;mutex_init (&tdata->update_lock);return tdata; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 42/2651 mm/vma: avoid losing atomic VMA flags when setting sticky VMA flags
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lorenzo Stoakes (ARM) <[email protected]>
[ Upstream commit c386d799f423685952138cab8d89f0331825bdee ]
vma_merge_existing_range() merges an existing VMA (middle) when its attributes have changed to match those of one or both adjacent VMAs.
Sticky flags are propagated if they are set in any of the merged VMAs. They are initialised from vmg->vma_flags, which is assumed to contain middle's sticky flags when the function is invoked.
However, the VMA write lock is not held for middle when they are first populated, so concurrent updates to atomic VMA flags may occur, which will be lost upon merge.
This can result in fork failing to propagate guard region markers and (if file-backed) THP collapse discarding them.
Resolve this by propagating the sticky flags after middle is locked.
Make life easier by factoring this into propagate_sticky_flags(), which treats vmg->vma_flags as its base (in case any sticky flags are set there), updating it as sticky flags are accumulated from merged VMAs.
Also update vma_expand() to use propagate_sticky_flags() so all merge paths utilise it.
propagate_sticky_flags() also asserts that the VMA write lock is held for the VMA whose sticky flags are being read, with a comment explaining why.
Another means by which atomic VMA flags can fail to be observed is when the merge is finalised in commit_merge().
rmap locks are dropped in vma_complete() before the sticky flags are written, meaning an rmap walker can observe the VMA without sticky flags set, which can also result in retract_page_tables() discarding guard markers.
Resolve this by assigning the sticky flags before dropping rmap locks, factored into commit_sticky_flags() with a write assert on the VMA being written to.
Also remove the vma_set_flags_mask() invocation at the end of vma_merge_existing_range() as this was introduced by commit 64212ba02e66 ("mm: implement sticky VMA flags") to propagate sticky flags, which is now redundant with the introduction of commit_sticky_flags().
The vma_set_flags_mask() invocation at the end of vma_expand() setting sticky flags only is also removed for the same reason.
Also update vma_merge_existing_range()'s comment to reflect the fact that vmg->vma_flags gets updated.
Finally, update the userland VMA tests to reflect a previously missed const-ification in vma_assert_write_locked() which would otherwise cause a warning when building them.
--- mm/vma.c | 55 +++++++++++++++++-------------- tools/testing/vma/include/dup.h | 2 +- tools/testing/vma/include/stubs.h | 2 +- 3 files changed, 32 insertions(+), 27 deletions(-)
mm/vma.c +30 -25
@@ -807,6 +807,27 @@ static void vmg_adjust_set_range(struct vma_merge_struct *vmg) } } +static void propagate_sticky_flags (struct vma_merge_struct *vmg, +struct vm_area_struct *vma) +{ +const vma_flags_t sticky = +vma_flags_and_mask (&vma->flags,VMA_STICKY_FLAGS ); + +/* Write lock prevents concurrent atomic VMA flag updates. */ +vma_assert_write_locked (vma); +vma_flags_set_mask (&vmg->vma_flags, sticky); +} + +static void commit_sticky_flags (struct vma_merge_struct *vmg) +{ +const vma_flags_t sticky = +vma_flags_and_mask (&vmg->vma_flags,VMA_STICKY_FLAGS ); +struct vm_area_struct *target = vmg->target; + +vma_assert_write_locked (target); +vma_set_flags_mask (target, sticky); +} +/* * Actually perform the VMA merge operation. *
@@ -842,6 +863,8 @@ static int commit_merge(struct vma_merge_struct *vmg)return -ENOMEM ;vma_prepare (&vp); +/* Must be made visible before vma_complete() for rmap walkers. */ +commit_sticky_flags (vmg);/* * THP pages may need to do additional splits if we increase * middle->vm_start.
@@ -881,8 +904,8 @@ static bool can_merge_remove_vma(struct vm_area_struct *vma)* merge. * * As part of this operation, if a merge occurs, the @vmg object will have its -* vma, start, end, and pgoff fields modified to execute the merge. Subsequent -* calls to this function should reset these fields. +* vma, start, end, pgoff and vma_flags fields modified to execute the merge. +* Subsequent calls to this function should reset these fields. * * Returns: The merged VMA if merge succeeds, or NULL otherwise. *
@@ -896,8 +919,6 @@ static bool can_merge_remove_vma(struct vm_area_struct *vma)static __must_check struct vm_area_struct *vma_merge_existing_range (struct vma_merge_struct *vmg) { -vma_flags_t sticky_flags =vma_flags_and_mask (&vmg->vma_flags, -VMA_STICKY_FLAGS );struct vm_area_struct *middle = vmg->middle;struct vm_area_struct *prev = vmg->prev;struct vm_area_struct *next;
@@ -993,24 +1014,18 @@ static __must_check struct vm_area_struct *vma_merge_existing_range(/* No matter what happens, we will be adjusting middle. */ vma_start_write (middle); +propagate_sticky_flags (vmg, middle);if (merge_right) { -vma_flags_t next_sticky; -vma_start_write (next); vmg->target = next; - next_sticky =vma_flags_and_mask (&next->flags,VMA_STICKY_FLAGS ); -vma_flags_set_mask (&sticky_flags, next_sticky); +propagate_sticky_flags (vmg, next); }if (merge_left) { -vma_flags_t prev_sticky; -vma_start_write (prev); vmg->target = prev; - - prev_sticky =vma_flags_and_mask (&prev->flags,VMA_STICKY_FLAGS ); -vma_flags_set_mask (&sticky_flags, prev_sticky); +propagate_sticky_flags (vmg, prev); }if (merge_both) {
@@ -1081,7 +1096,6 @@ static __must_check struct vm_area_struct *vma_merge_existing_range(if (err ||commit_merge (vmg)) goto abort; -vma_set_flags_mask (vmg->target, sticky_flags);khugepaged_enter_vma (vmg->target, vmg->vm_flags); vmg->state =VMA_MERGE_SUCCESS ;return vmg->target;
@@ -1274,16 +1288,11 @@ int vma_expand(struct vma_merge_struct *vmg)struct vm_area_struct *target = vmg->target;struct vm_area_struct *next = vmg->next;bool remove_next = false; -vma_flags_t sticky_flags = -vma_flags_and_mask (&vmg->vma_flags,VMA_STICKY_FLAGS ); -vma_flags_t target_sticky;int ret =0 ;mmap_assert_write_locked (vmg->mm);vma_start_write (target); - target_sticky =vma_flags_and_mask (&target->flags,VMA_STICKY_FLAGS ); -if (next && target != next && vmg->end == next->vm_end) remove_next = true;
@@ -1298,7 +1307,7 @@ int vma_expand(struct vma_merge_struct *vmg)VM_WARN_ON_VMG (target->vm_start < vmg->start || target->vm_end > vmg->end, vmg); -vma_flags_set_mask (&sticky_flags, target_sticky); +propagate_sticky_flags (vmg, target);/* * If we are removing the next VMA or copying from a VMA
@@ -1315,18 +1324,14 @@ int vma_expand(struct vma_merge_struct *vmg) goto nomem;if (remove_next) { -vma_flags_t next_sticky; -vma_start_write (next); vmg->__remove_next = true; - next_sticky =vma_flags_and_mask (&next->flags,VMA_STICKY_FLAGS ); -vma_flags_set_mask (&sticky_flags, next_sticky); +propagate_sticky_flags (vmg, next); }if (commit_merge (vmg)) goto nomem; -vma_set_flags_mask (target, sticky_flags);return 0 ; nomem:
tools/testing/vma/include/dup.h +1 -1
@@ -1216,7 +1216,7 @@ static inline void vma_assert_detached(struct vm_area_struct *vma)WARN_ON_ONCE (vma_is_attached (vma)); } -static inline void vma_assert_write_locked (struct vm_area_struct *); +static inline void vma_assert_write_locked (const struct vm_area_struct *);static inline void vma_mark_attached (struct vm_area_struct *vma) {vma_assert_write_locked (vma);
tools/testing/vma/include/stubs.h +1 -1
@@ -298,7 +298,7 @@ static inline void anon_vma_lock_write(struct anon_vma *anon_vma) { } -static inline void vma_assert_write_locked (struct vm_area_struct *vma) +static inline void vma_assert_write_locked (const struct vm_area_struct *vma) { }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 43/2651 mm/madvise: preserve VMA_SOFTDIRTY_BIT when changing anonymous names
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Hildenbrand (Arm) <[email protected]>
[ Upstream commit 652f15be3c11415725694ccea317c51e35c0b582 ]
When changing the anonymous VMA name, madvise_update_vma() calls vma_modify_name() to possibly merge with adjacent VMAs. We don't call vma_modify_flags() and consequently don't obtain the new VMA flags.
Later in the function we update the VMA flags to the stale new_vma_flags we obtained before. This can result in us losing the VMA_SOFTDIRTY_BIT flag set on a VMA we just merged with.
There is no need to update the VMA flags at all, so just exit early. This skips calling khugepaged_enter_vma(), but since the flags didn't change this is fine.
--- mm/madvise.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/madvise.c +3 -3
@@ -177,6 +177,9 @@ static int madvise_update_vma(vm_flags_t new_flags,/* vm_flags is protected by the mmap_lock held in write mode. */ vma_start_write (vma); +if (set_new_anon_name) +return replace_anon_vma_name (vma, anon_name); +vma_overwrite_flags (vma, new_vma_flags);/* * If the vma become good for khugepaged to scan,
@@ -186,9 +189,6 @@ static int madvise_update_vma(vm_flags_t new_flags,if (vma_flags_test (&new_vma_flags,VMA_HUGEPAGE_BIT ))khugepaged_enter_vma (vma,vma_flags_to_legacy (new_vma_flags)); -if (set_new_anon_name) -return replace_anon_vma_name (vma, anon_name); -return 0 ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 44/2651 ASoC: SDCA: export PM helpers keyed on sdca_class_drv
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Srinivas Kandagatla <[email protected]>
[ Upstream commit 0985313a2a9d2e84d6a6b1041c88b5c57ee46dfa ]
The class PM callbacks pull sdca_class_drv out of drvdata, so the built-in class_sdw_driver owns the drvdata slot. That works for the generic case but blocks codec drivers that want to embed sdca_class_drv in their own private struct -- they need drvdata for their codec priv.
Split the four callbacks into exported helpers that take a struct sdca_class_drv * directly:
sdca_class_system_suspend()
sdca_class_system_resume()
sdca_class_runtime_suspend()
sdca_class_runtime_resume()
Codec drivers can now compose these into their own dev_pm_ops without going through drvdata.
For the built-in class_sdw_driver, add small dev_pm_ops wrappers that fetch drv from drvdata and wire them into sdca_class_pm_ops. The ops struct itself stays private to this file; codec drivers build their own dev_pm_ops from the four exported helpers above.
No functional change: the built-in class_sdw_driver keeps the same PM semantics; only the internal plumbing shifts to operate on sdca_class_drv instead of struct device *dev.
Stable-dep-of: d34a818a331f ("ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure")
---
.../soc/sdca => include/sound}/sdca_class.h | 14 ++++
sound/soc/sdca/sdca_class.c | 81 ++++++++++++++-----
sound/soc/sdca/sdca_class_function.c | 2 +-
3 files changed, 78 insertions(+), 19 deletions(-)
rename {sound/soc/sdca => include/sound}/sdca_class.h (58%)include/sound/sdca_class.h renamed from sound/soc/sdca/sdca_class.h +14 -0
@@ -32,4 +32,18 @@ struct sdca_class_drv { struct work_struct boot_work; }; +/* +* PM helpers. Codec drivers embed sdca_class_drv in their own priv, +* own dev_set_drvdata(), and compose these into their own dev_pm_ops: +* +* static int wcd_runtime_suspend(struct device *dev) { +* struct wcd_priv *priv = dev_get_drvdata(dev); +* return sdca_class_runtime_suspend(&priv->class); +* } +*/ +int sdca_class_runtime_suspend (struct sdca_class_drv *drv); +int sdca_class_runtime_resume (struct sdca_class_drv *drv); +int sdca_class_system_suspend (struct sdca_class_drv *drv); +int sdca_class_system_resume (struct sdca_class_drv *drv); +#endif /* __SDCA_CLASS_H__ */
sound/soc/sdca/sdca_class.c +63 -18
138 lines not on this page · raw message
sound/soc/sdca/sdca_class_function.c +1 -1
@@ -26,7 +26,7 @@#include <sound/soc-component.h> #include <sound/soc-dai.h> #include <sound/soc.h> -#include "sdca_class.h" +#include <sound/sdca_class.h> #include "sdca_function_device.h" struct class_function_drv {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 45/2651 ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Srinivas Kandagatla <[email protected]>
[ Upstream commit d34a818a331f7e270fa9dc3db3d96f6a0d4fa7ab ]
The SoundWire IRQ was disabled before pm_runtime_force_suspend() but never re-enabled when the force suspend failed, leaving the codec unable to receive interrupts.
--- sound/soc/sdca/sdca_class.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/sdca/sdca_class.c +1 -0
@@ -216,6 +216,7 @@ int sdca_class_system_suspend(struct sdca_class_drv *drv) ret =pm_runtime_force_suspend (drv->dev);if (ret) {dev_err (drv->dev,"failed to force suspend: %d\n" , ret); +enable_irq (drv->sdw->irq);return ret; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 46/2651 quota: initialize dquot cache before mounting rootfs
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: YouYou Yu <[email protected]>
[ Upstream commit e21a6f39aa6d0336ffbf5f34e5fa20ff8de36773 ]
On some systems, a tmpfs backed rootfs is extensively used throughout system's lifecycle. tmpfs quotas are needed to limit per user rootfs usage. However, booting with CONFIG_TMPFS_QUOTA=y, an initramfs, no root= and "initramfs_options=usrquota" panics at boot:
BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: 0010:dqget+0x1ac/0x490 Call Trace: __dquot_initialize dquot_initialize shmem_get_inode shmem_fill_super ... mnt_init vfs_caches_init start_kernel
The rootfs is mounted from mnt_init(), but the dquot hash table and cache are only set up later by dquot_init(), an fs_initcall. Creating the root inode of a quota enabled rootfs thus dereferences the NULL dquot_hash in dqget().
Rename dquot_init() to dquot_cache_init() and call it from vfs_caches_init() before mnt_init(). The slab, percpu and early workqueue code it relies on is available there, and the workqueue rescuer and shrinker debugfs entries are set up later by their own subsystems. Keep the sysctl registration in an fs_initcall, as done for the dcache, inode and mount sysctls. This only moves existing allocations earlier in boot.
--- fs/dcache.c | 2 ++ fs/quota/dquot.c | 10 ++++++---- include/linux/quotaops.h | 5 +++++ 3 files changed, 13 insertions(+), 4 deletions(-)
fs/dcache.c +2 -0
@@ -32,6 +32,7 @@#include <linux/bit_spinlock.h> #include <linux/rculist_bl.h> #include <linux/list_lru.h> +#include <linux/quotaops.h> #include "internal.h" #include "mount.h"
@@ -3537,6 +3538,7 @@ void __init vfs_caches_init(void)inode_init ();files_init ();files_maxfiles_init (); +dquot_cache_init ();mnt_init ();bdev_cache_init ();chrdev_init ();
fs/quota/dquot.c +6 -4
@@ -2942,7 +2942,7 @@ static const struct ctl_table fs_dqstats_table[] = { }, }; -static int __init dquot_init (void ) +void __init dquot_cache_init (void ) {int i, ret;unsigned long nr_hash;
@@ -2950,8 +2950,6 @@ static int __init dquot_init(void)printk (KERN_NOTICE "VFS: Disk quotas %s\n" , __DQUOT_VERSION__); -register_sysctl_init ("fs/quota" , fs_dqstats_table); - dquot_cachep = kmem_cache_create("dquot", sizeof(struct dquot), sizeof(unsigned long) * 4, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
@@ -2992,7 +2990,11 @@ static int __init dquot_init(void) WQ_UNBOUND | WQ_MEM_RECLAIM, WQ_MAX_ACTIVE);if (!quota_unbound_wq)panic ("Cannot create quota_unbound_wq\n" ); +} +static int __init init_fs_dquot_sysctls (void ) +{ +register_sysctl_init ("fs/quota" , fs_dqstats_table);return 0 ; } -fs_initcall (dquot_init); +fs_initcall (init_fs_dquot_sysctls);
include/linux/quotaops.h +5 -0
@@ -40,6 +40,7 @@ void __quota_error(struct super_block *sb, const char *func,/* * declaration of quota_function calls in kernel. */ +void dquot_cache_init (void );int dquot_initialize (struct inode *inode);bool dquot_initialize_needed (struct inode *inode);void dquot_drop (struct inode *inode);
@@ -206,6 +207,10 @@ static inline int sb_has_quota_active(struct super_block *sb, int type)return 0 ; } +static inline void dquot_cache_init (void ) +{ +} +static inline int dquot_initialize (struct inode *inode) {return 0 ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 47/2651 fs/proc/task_mmu: fix missed VMAs when reading /proc/PID/maps and friends
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lorenzo Stoakes (ARM) <[email protected]>
[ Upstream commit ee1afc5539b6fe03569a5855b6041b13343b0993 ]
Reading /proc/PID/maps under per-VMA locks can skip continuously mapped address ranges during concurrent VMA splits or merges. This violates the guarantee in Documentation/filesystems/proc.rst:
"If there is something at a given vaddr during the entirety of the life of the smaps/maps walk, there will be some output for it."
lock_next_vma() reuses a tree iterator across calls under RCU. The iterator remembers the range of its last entry. When its node is replaced, mas_next_slot() walks the tree again at the last index of that range, then advances past the entry containing that index. If VMA boundaries changed, this can skip a range that has not been reported:
- A lookup finds [A, C), then mprotect() splits it into [A, B) and [B, C) before vma_start_read() locks the first VMA. The reader reports [A, B), but the iterator still covers [A, C). The next call starts from B yet advances past C, omitting [B, C).
- The reader reports [A, B) and unlocks it. A concurrent mprotect() then merges it with [B, C). On the next call, the iterator resumes at B - 1, which now belongs to [A, C), and advances past C. Again, [B, C) is lost.
Checking the mmap_lock sequence only within the next call misses writers that completed before that call began. Also, a NULL result is currently accepted without validation, so a race can terminate the walk early.
Even a fresh lookup can skip a mapping. Suppose it finds a gap before [B, C). A writer inserts an adjacent VMA at the end of that gap, then merges it into [B, C), replacing the node. The lookup resumes at the old gap's last index, now inside the merged VMA, and steps past it. The original [B, C) remains mapped throughout. Repeating the forward lookup is insufficient: another merge can make it skip the same mapping again, returning the same later VMA or NULL.
The fresh-lookup race also affects /proc/PID/smaps, numa_maps and smaps_rollup. Resetting the iterator after gathering each VMA's statistics does not prevent a merge during the next lookup. Fixing lock_next_vma() also prevents omitted entries and incomplete rollup statistics.
Tie VMA iterator state with the current mm and the write generation at the point of last mm speculation in vma_rcu_iter, whose values we call 'rvmi'.
This allows us to neatly abstract the existing priv->iter logic alongside query_vma_find_by_addr() which uses its own VMA iterator.
Then, provide helpers that act on the rvmi - vma_rcu_iter_[maybe_changed, may_have_skipped]() to determine whether any VMAs may have been altered since last mm speculation.
Additionally introduce vma_range_is_empty(), used by vma_rcu_iter_may_have_skipped(), to determine conclusively whether VMAs exist in a set range, needing to be traversed.
Original fix generated by an LLM and sent by Josef Bacik in private, then amended by David Hildenbrand, and Lorenzo Stoakes added additional abstraction.
--- fs/proc/internal.h | 1 + fs/proc/task_mmu.c | 9 +++--- include/linux/mmap_lock.h | 22 ++++++++++++-- mm/mmap_lock.c | 61 +++++++++++++++++++++++++++++---------- 4 files changed, 70 insertions(+), 23 deletions(-)
fs/proc/internal.h +1 -0
@@ -395,6 +395,7 @@ struct proc_maps_private {struct inode *inode;struct task_struct *task;struct vma_iterator iter; +struct vma_rcu_iter rvmi;loff_t last_pos;struct proc_maps_locking_ctx lock_ctx;#ifdef CONFIG_NUMA
fs/proc/task_mmu.c +5 -4
@@ -191,7 +191,7 @@ static struct vm_area_struct *get_next_vma(struct proc_maps_private *priv,return vma_next (&priv->iter);unlock_ctx_vma (lock_ctx); - vma =lock_next_vma (lock_ctx->mm, &priv->iter, last_pos); + vma =lock_next_vma (&priv->rvmi, last_pos);if (!IS_ERR_OR_NULL (vma)) lock_ctx->locked_vma = vma;
@@ -341,7 +341,7 @@ static void *m_start(struct seq_file *m, loff_t *ppos)*/ if (last_addr >0 ) *ppos = last_addr = priv->last_pos; -vma_iter_init (&priv->iter, mm, (unsigned long )last_addr); +vma_rcu_iter_init (&priv->rvmi, mm, &priv->iter, (unsigned long )last_addr);hold_task_mempolicy (priv);if (last_addr ==SENTINEL_VMA_GATE )return get_gate_vma (mm);
@@ -583,6 +583,7 @@ static struct vm_area_struct *query_vma_find_by_addr(struct proc_maps_locking_ctstruct mm_struct *mm = lock_ctx->mm;struct vm_area_struct *vma;struct vma_iterator vmi; +struct vma_rcu_iter rvmi;if (lock_ctx->mmap_locked)return find_vma (mm, addr);
@@ -590,8 +591,8 @@ static struct vm_area_struct *query_vma_find_by_addr(struct proc_maps_locking_ct/* Unlock previously locked VMA and find the next one under RCU */ unlock_ctx_vma (lock_ctx);rcu_read_lock (); -vma_iter_init (&vmi, mm, addr); - vma =lock_next_vma (mm, &vmi, addr); +vma_rcu_iter_init (&rvmi, mm, &vmi, addr); + vma =lock_next_vma (&rvmi, addr);rcu_read_unlock ();if (!vma)
include/linux/mmap_lock.h +19 -3
@@ -17,6 +17,13 @@ extern int rcuwait_wake_up(struct rcuwait *w);#define MMAP_LOCK_INITIALIZER (name) \ .mmap_lock = __RWSEM_INITIALIZER((name).mmap_lock), +/* Tie a VMA iterator to mm write lock state at iterator initialisation. */ +struct vma_rcu_iter { +struct mm_struct *mm; +struct vma_iterator *vmi; +unsigned int mm_wr_seq; +}; +DECLARE_TRACEPOINT (mmap_lock_start_locking);DECLARE_TRACEPOINT (mmap_lock_acquire_returned);DECLARE_TRACEPOINT (mmap_lock_released);
@@ -482,9 +489,8 @@ struct vm_area_struct *lock_vma_under_rcu(struct mm_struct *mm,* Returns either a valid locked VMA, NULL if no more VMAs or -EINTR if the * process was interrupted. */ -struct vm_area_struct *lock_next_vma (struct mm_struct *mm, -struct vma_iterator *iter, -unsigned long address); +struct vm_area_struct *lock_next_vma (struct vma_rcu_iter *rvmi, +unsigned long from_addr);#else /* CONFIG_PER_VMA_LOCK */
@@ -534,6 +540,16 @@ static inline void vma_assert_stabilised(struct vm_area_struct *vma)#endif /* CONFIG_PER_VMA_LOCK */ +static inline void vma_rcu_iter_init (struct vma_rcu_iter *rvmi, +struct mm_struct *mm,struct vma_iterator *vmi, +unsigned long addr) +{ +vma_iter_init (vmi, mm, addr); + rvmi->mm = mm; + rvmi->vmi = vmi; + rvmi->mm_wr_seq =UINT_MAX ;/* Start odd so changed by default. */ +} +static inline void vma_assert_can_modify (struct vm_area_struct *vma) {if (vma_is_attached (vma))
mm/mmap_lock.c +45 -16
86 lines not on this page · raw message
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 48/2651 ASoC: qcom: q6apm: clear g_apm on driver removal
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ajay Kumar Nandam <[email protected]>
[ Upstream commit be2172758f2b7c801ae80b9c8d1510b31eeffdaa ]
The global g_apm pointer is set during apm_probe() but never cleared in apm_remove(). After the driver is removed the devm-managed struct q6apm is freed, leaving g_apm dangling. A subsequent call to q6apm_is_adsp_ready() dereferences the freed pointer.
Clear g_apm in apm_remove() before the component is unregistered so that q6apm_is_adsp_ready() returns false instead of triggering a use-after-free.
--- sound/soc/qcom/qdsp6/q6apm.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/qcom/qdsp6/q6apm.c +1 -0
@@ -917,6 +917,7 @@ static int apm_probe(gpr_device_t *gdev)static void apm_remove (gpr_device_t *gdev) { + g_apm =NULL ;of_platform_depopulate (&gdev->dev);snd_soc_unregister_component (&gdev->dev); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 49/2651 ovl: add assertions in dir cache code
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Amir Goldstein <[email protected]>
[ Upstream commit ba227ed05b385926094741e2d566789525c36085 ]
Overlayfs may keep two different types of directory cache merged (refcounted) and impure (not refcounted) in the inode.
They are mutually exclusive and an overlayfs directory is never expected to switch between merged and impure modes.
Nevertheless it is hard to prove that races in the code are not possible, so add assertions to fortify the code accessing the directory cache to make sure it does not free the unexpected cache type.
If an assertion fires the code may leak dir cache memory but it will not access freed cache memory.
Stable-dep-of: 9ff338af0e00 ("ovl: inherit FMODE_NONOTIFY when reading directory layers")
--- fs/overlayfs/readdir.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)
fs/overlayfs/readdir.c +23 -2
@@ -36,6 +36,7 @@ struct ovl_cache_entry {struct ovl_dir_cache {long refcount;u64 version; +bool is_refcounted;struct list_head entries;struct rb_root root; };
@@ -479,13 +480,31 @@ static void ovl_seek_cursor(struct ovl_dir_file *od, loff_t pos) od->cursor = p; } +/* +* Merged (refcounted) and impure (not refcounted) caches are never +* expected to be mixed. On mismatch, detach the cache from the inode +* and leak it rather than misuse it. A merged cache is still freed by +* its last ovl_cache_put(). +*/ +static struct ovl_dir_cache *ovl_dir_cache_check (struct inode *inode, +bool is_refcounted) +{ +struct ovl_dir_cache *cache =ovl_dir_cache (inode); + +if (cache &&WARN_ON (cache->is_refcounted != is_refcounted)) { +ovl_set_dir_cache (inode,NULL ); +return NULL ; + } +return cache; +} +static struct ovl_dir_cache *ovl_cache_get (struct dentry *dentry) {int res;struct ovl_dir_cache *cache;struct inode *inode =d_inode (dentry); - cache =ovl_dir_cache (inode); + cache =ovl_dir_cache_check (inode, true);if (cache &&ovl_inode_version_get (inode) == cache->version) {WARN_ON (!cache->refcount); cache->refcount++;
@@ -498,6 +517,7 @@ static struct ovl_dir_cache *ovl_cache_get(struct dentry *dentry)return ERR_PTR (-ENOMEM ); cache->refcount =1 ; + cache->is_refcounted = true;INIT_LIST_HEAD (&cache->entries); cache->root =RB_ROOT ;
@@ -698,7 +718,7 @@ static struct ovl_dir_cache *ovl_cache_get_impure(const struct path *path)struct ovl_fs *ofs =OVL_FS (dentry->d_sb);struct ovl_dir_cache *cache; - cache =ovl_dir_cache (inode); + cache =ovl_dir_cache_check (inode, false);if (cache &&ovl_inode_version_get (inode) == cache->version)return cache;
@@ -710,6 +730,7 @@ static struct ovl_dir_cache *ovl_cache_get_impure(const struct path *path)if (!cache)return ERR_PTR (-ENOMEM ); + cache->is_refcounted = false; res =ovl_dir_read_impure (path, &cache->entries, &cache->root);if (res) {ovl_cache_free (&cache->entries);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 50/2651 ovl: inherit FMODE_NONOTIFY when reading directory layers
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Amir Goldstein <[email protected]>
[ Upstream commit 9ff338af0e002fe217cfa16b1289b76f6b21fc72 ]
Listing a merged or impure overlay directory opens the real layer directories from ovl_dir_read(), when the readdir cache is filled. Those opens use plain ovl_path_open(), so when the directory fd is one that fanotify created for a permission event, they can still raise FS_OPEN_PERM. A listener that also marks the backing filesystem and calls getdents() on the event fd before answering then deadlocks the same way as with the directory open fixed by the previous commit.
Store the overlay user file in struct ovl_readdir_data and pass it to ovl_path_open_realfile() from ovl_dir_read(), for both the merged and the impure cache. Internal readers such as ovl_check_empty_dir() and the mount-time workdir cleanup still pass no user file.
A note about severity and real world impact: The FAN_OPEN_PERM event is traditionally used by anti-malware protection agents and security/audit agents. The scope that is often used in those use cases is FAN_MARK_MOUNT and agents typically monitor multiple mounts in a mount namespace. FAN_OPEN_PERM from directory open requires user opt-in with FAN_ONDIR. It is often not the case that anti-malware agents monitor open of directories. Security/audit engines are more likely to opt-into FAN_OPEN_PERM on directories, but are less likely to list the content of a directory within the scope of FAN_OPEN_PERM event, so the real world impact of this bug is likely not significant.
--- fs/overlayfs/readdir.c | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-)
fs/overlayfs/readdir.c +17 -12
@@ -43,6 +43,7 @@ struct ovl_dir_cache {struct ovl_readdir_data {struct dir_context ctx; +const struct file *user_file;struct dentry *dentry;bool is_lowest;struct rb_root *root;
@@ -377,7 +378,8 @@ static inline int ovl_dir_read(const struct path *realpath,struct file *realfile;int err; - realfile =ovl_path_open (realpath,O_RDONLY |O_LARGEFILE ); + realfile =ovl_path_open_realfile (rdd->user_file, realpath, +O_RDONLY |O_LARGEFILE );if (IS_ERR (realfile))return PTR_ERR (realfile);
@@ -421,13 +423,14 @@ static void ovl_dir_reset(struct file *file) }static int ovl_dir_read_merged (struct dentry *dentry,struct list_head *list, -struct rb_root *root) +struct rb_root *root,const struct file *user_file) {int err;struct path realpath;struct ovl_readdir_data rdd = { .ctx.actor = ovl_fill_merge, .ctx.count =INT_MAX , + .user_file = user_file, .dentry = dentry, .list = list, .root = root,
@@ -498,9 +501,10 @@ static struct ovl_dir_cache *ovl_dir_cache_check(struct inode *inode,return cache; } -static struct ovl_dir_cache *ovl_cache_get (struct dentry *dentry) +static struct ovl_dir_cache *ovl_dir_cache_get (struct file *file) {int res; +struct dentry *dentry = file->f_path.dentry;struct ovl_dir_cache *cache;struct inode *inode =d_inode (dentry);
@@ -521,7 +525,7 @@ static struct ovl_dir_cache *ovl_cache_get(struct dentry *dentry)INIT_LIST_HEAD (&cache->entries); cache->root =RB_ROOT ; - res =ovl_dir_read_merged (dentry, &cache->entries, &cache->root); + res =ovl_dir_read_merged (dentry, &cache->entries, &cache->root, file);if (res) {ovl_cache_free (&cache->entries);kfree (cache);
@@ -665,8 +669,8 @@ static bool ovl_fill_plain(struct dir_context *ctx, const char *name,return true; } -static int ovl_dir_read_impure (const struct path *path,struct list_head *list, -struct rb_root *root) +static int ovl_dir_read_impure (const struct path *path,struct list_head *list, +struct rb_root *root,const struct file *user_file) {int err;struct path realpath;
@@ -674,6 +678,7 @@ static int ovl_dir_read_impure(const struct path *path, struct list_head *list,struct ovl_readdir_data rdd = { .ctx.actor = ovl_fill_plain, .ctx.count =INT_MAX , + .user_file = user_file, .list = list, .root = root, };
@@ -710,9 +715,10 @@ static int ovl_dir_read_impure(const struct path *path, struct list_head *list,return 0 ; } -static struct ovl_dir_cache *ovl_cache_get_impure (const struct path *path) +static struct ovl_dir_cache *ovl_cache_get_impure (struct file *file) {int res; +const struct path *path = &file->f_path;struct dentry *dentry = path->dentry;struct inode *inode =d_inode (dentry);struct ovl_fs *ofs =OVL_FS (dentry->d_sb);
@@ -731,7 +737,7 @@ static struct ovl_dir_cache *ovl_cache_get_impure(const struct path *path)return ERR_PTR (-ENOMEM ); cache->is_refcounted = false; - res =ovl_dir_read_impure (path, &cache->entries, &cache->root); + res =ovl_dir_read_impure (path, &cache->entries, &cache->root, file);if (res) {ovl_cache_free (&cache->entries);kfree (cache);
@@ -852,7 +858,7 @@ static int ovl_iterate_real(struct file *file, struct dir_context *ctx)dput (parent);if (ovl_is_impure_dir (file)) { - rdt.cache =ovl_cache_get_impure (&file->f_path); + rdt.cache =ovl_cache_get_impure (file);if (IS_ERR (rdt.cache))return PTR_ERR (rdt.cache); }
@@ -866,14 +872,13 @@ static int ovl_iterate_real(struct file *file, struct dir_context *ctx)static int ovl_iterate_merged (struct file *file,struct dir_context *ctx) {struct ovl_dir_file *od = file->private_data; -struct dentry *dentry = file->f_path.dentry;struct ovl_cache_entry *p;int err;if (!od->cache) {struct ovl_dir_cache *cache; - cache =ovl_cache_get (dentry); + cache =ovl_dir_cache_get (file);if (IS_ERR (cache))return PTR_ERR (cache);
@@ -1120,7 +1125,7 @@ int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list)struct rb_root root =RB_ROOT ;with_ovl_creds (dentry->d_sb) - err = ovl_dir_read_merged(dentry, list, &root); + err = ovl_dir_read_merged(dentry, list, &root, NULL);if (err)return err;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 51/2651 comedi: addi_apci_3xxx: fix subdevice count underallocation
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Zi <[email protected]>
[ Upstream commit 3de5aa458dede472a253266d02902bd95af8e849 ]
In apci3xxx_auto_attach(), the number of subdevices is computed with
n_subdevices = (board->ai_n_chan ? 0 : 1) + board->has_ao + ...
The ternary is inverted: when the board has analog input channels (ai_n_chan != 0), it counts 0 instead of 1, so the AI subdevice that is actually created is not accounted for. As a result comedi_alloc_subdevices() allocates one entry too few, and the later subdevice initialization (notably the TTL Digital I/O subdevice, which is populated last) writes past the end of the allocated array, causing a slab out-of-bounds write.
Flip the ternary to count 1 when ai_n_chan is non-zero and 0 otherwise, matching the subdevice creation order in the function.
--- drivers/comedi/drivers/addi_apci_3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/comedi/drivers/addi_apci_3xxx.c +1 -1
@@ -787,7 +787,7 @@ static int apci3xxx_auto_attach(struct comedi_device *dev, dev->irq = pcidev->irq; } - n_subdevices = (board->ai_n_chan ?0 :1 ) + board->has_ao + + n_subdevices = (board->ai_n_chan ?1 :0 ) + board->has_ao + board->has_dig_in + board->has_dig_out + board->has_ttl_io; ret =comedi_alloc_subdevices (dev, n_subdevices);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 52/2651 comedi: dt2811: fix shift-out-of-bounds in IRQ check
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pei Xiao <[email protected]>
[ Upstream commit 471ce96a9c415b8a67bd5081ac2089a458cacc2f ]
The IRQ number passed via comedi_devconfig->options[1] is a signed int that comes from userspace. The check it->options[1] <= 7 does not reject negative values, so a negative IRQ number reaches BIT(it->options[1]), which is undefined behavior and triggers a UBSAN shift-out-of-bounds warning:
UBSAN: shift-out-of-bounds in drivers/comedi/drivers/dt2811.c:570:31 shift exponent -251 is negative
Add an explicit lower bound check (it->options[1] >= 0) so that only valid IRQ numbers 0..7 are accepted before the shift.
--- drivers/comedi/drivers/dt2811.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/comedi/drivers/dt2811.c +1 -1
@@ -567,7 +567,7 @@ static int dt2811_attach(struct comedi_device *dev, struct comedi_devconfig *it)dt2811_reset (dev);/* IRQ's 2,3,5,7 are valid for async command support */ -if (it->options[1 ] <=7 && (BIT (it->options[1 ]) &0xac )) { +if (it->options[1 ] >=0 && it->options[1 ] <=7 && (BIT (it->options[1 ]) &0xac )) { ret =request_irq (it->options[1 ], dt2811_interrupt,0 , dev->board_name, dev);if (ret ==0 )
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 53/2651 serial: max310x: schedule tx_work directly from the IRQ handler
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tapio Reijonen <[email protected]>
commit c06fcc258db0c0c7f607e64a7ce6a157bb2414b1 upstream.
The TXEMPTY interrupt asks for a FIFO refill, and start_tx() does nothing beyond scheduling tx_work, so going through it makes no functional difference. It does conflate two distinct events, though:start_tx() is the serial core starting a new transmission, while TXEMPTY can only fire for a transmission that is already running - the bit latches on the FIFO's non-empty to empty transition, and the IRQ handler's read of IRQSTS consumes the latch, so a stale TXEMPTY cannot exist on an idle port (if the bit were level-triggered, the handler's read-until-clear loop would never terminate).
Schedule tx_work directly, keeping the interrupt path a pure FIFO refill. This is preparation for a following patch that adds software-timed RS485 RTS control, where start_tx() also starts the RTS envelope and a refill must not restart it.
No functional change.
--- drivers/tty/serial/max310x.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/tty/serial/max310x.c +5 -1
@@ -840,8 +840,12 @@ static irqreturn_t max310x_port_irq(stru }if (rxlen)max310x_handle_rx (port, rxlen); +/* +* TXEMPTY latches on the FIFO becoming empty, so a stale +* interrupt cannot pump data during an RTS setup delay. +*/ if (ists &MAX310X_IRQ_TXEMPTY_BIT ) -max310x_start_tx (port); +schedule_work (&s->p[portno].tx_work); }while (1 );return res;
Greg Kroah-Hartman
maintainerPATCH 54/2651 drm/komeda: Fix bits parsing of GLB_CORE_ID
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Raveendra Talabattula <[email protected]>
[ Upstream commit ec902de0221747094f9ccbb61454e9633fbf282f ]
GLB_CORE_ID contains the product and version information returned by the hardware. The current macros parses VERSION_MINOR as a 4-bit field and VERSION_STATUS as an 8-bit field, which does not match the register layout. As a result, the driver reports an incorrect version number.
Fix the parsing macros to match the hardware specification:
- VERSION_MINOR is 8 bits at [11:4]
- VERSION_STATUS is 4 bits at [3:0]
--- drivers/gpu/drm/arm/display/include/malidp_product.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
drivers/gpu/drm/arm/display/include/malidp_product.h +7 -3
@@ -8,14 +8,18 @@#define _MALIDP_PRODUCT_H_/* Product identification */ +/* GLB_CORE_ID fields as per HW specification: +* MINOR is 8 bits ([11:4]) and STATUS is 4 bits ([3:0]). +* Update masks/shifts accordingly. +*/ #define MALIDP_CORE_ID (__product, __major, __minor, __status) \ ((((__product) & 0xFFFF) << 16) | (((__major) & 0xF) << 12) | \ - (((__minor) & 0xF) << 8) | ((__status) & 0xFF)) + (((__minor) & 0xFF) << 4) | ((__status) & 0xF))#define MALIDP_CORE_ID_PRODUCT_ID (__core_id) ((__u32)(__core_id) >> 16)#define MALIDP_CORE_ID_MAJOR (__core_id) (((__u32)(__core_id) >> 12) & 0xF) -#define MALIDP_CORE_ID_MINOR (__core_id) (((__u32)(__core_id) >> 8) & 0xF) -#define MALIDP_CORE_ID_STATUS (__core_id) (((__u32)(__core_id)) & 0xFF) +#define MALIDP_CORE_ID_MINOR (__core_id) (((__u32)(__core_id) >> 4) & 0xFF) +#define MALIDP_CORE_ID_STATUS (__core_id) ((__u32)(__core_id) & 0xF)/* Mali-display product IDs */ #define MALIDP_D71_PRODUCT_ID 0x0071
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 55/2651 accel/qaic: Add missing <linux/device-id/mhi.h> to sahara and timesync
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Youssef Samir <[email protected]>
[ Upstream commit 0fb9e5faa8220db6b3268b3c8a39e31e0a963743 ]
qaic_timesync.c and sahara.c use struct mhi_device_id implicitly since commit 995832b2cebe ("Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files)") removed <linux/mod_devicetable.h>.
Explicitly include <linux/device-id/mhi.h> in qaic_timesync.c and sahara.c.
--- drivers/accel/qaic/qaic_timesync.c | 1 + drivers/accel/qaic/sahara.c | 1 + 2 files changed, 2 insertions(+)
drivers/accel/qaic/qaic_timesync.c +1 -0
@@ -2,6 +2,7 @@/* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. */ +#include <linux/device-id/mhi.h> #include <linux/io.h> #include <linux/kernel.h> #include <linux/math64.h>
drivers/accel/qaic/sahara.c +1 -0
@@ -3,6 +3,7 @@/* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. */ #include <linux/devcoredump.h> +#include <linux/device-id/mhi.h> #include <linux/firmware.h> #include <linux/limits.h> #include <linux/mhi.h>
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 56/2651 accel/qaic: Add <linux/device-id/mhi.h> to qaic_drv.c
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Youssef Samir <[email protected]>
[ Upstream commit c8e6229a81d0400a8347c70b89ff363ec08c816f ]
qaic_drv.c uses mhi_device_id implicitly. Include <linux/device-id/mhi.h>.
--- drivers/accel/qaic/qaic_drv.c | 1 + 1 file changed, 1 insertion(+)
drivers/accel/qaic/qaic_drv.c +1 -0
@@ -4,6 +4,7 @@/* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. */ #include <linux/delay.h> +#include <linux/device-id/mhi.h> #include <linux/dma-mapping.h> #include <linux/idr.h> #include <linux/interrupt.h>
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 57/2651 accel/qaic: Add <linux/device-id/mhi.h> to qaic_debugfs.c
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Youssef Samir <[email protected]>
[ Upstream commit cef139aa5394844f61fdb81d9fb07e71ba4e2407 ]
qaic_debugfs.c uses mhi_device_id implicitly. Include <linux/device-id/mhi.h>.
--- drivers/accel/qaic/qaic_debugfs.c | 1 + 1 file changed, 1 insertion(+)
drivers/accel/qaic/qaic_debugfs.c +1 -0
@@ -5,6 +5,7 @@#include <linux/debugfs.h> #include <linux/device.h> +#include <linux/device-id/mhi.h> #include <linux/fs.h> #include <linux/list.h> #include <linux/mhi.h>
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 58/2651 accel/qaic: Add <linux/device-id/mhi.h> to qaic_ras.c
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Youssef Samir <[email protected]>
[ Upstream commit 7de023a5a251b6599ca767415e07a0ea79fc2dcb ]
qaic_ras.c uses mhi_device_id implicitly. Include <linux/device-id/mhi.h>.
--- drivers/accel/qaic/qaic_ras.c | 1 + 1 file changed, 1 insertion(+)
drivers/accel/qaic/qaic_ras.c +1 -0
@@ -5,6 +5,7 @@#include <asm/byteorder.h> #include <linux/device.h> +#include <linux/device-id/mhi.h> #include <linux/kernel.h> #include <linux/mhi.h>
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 59/2651 accel/qaic: Add <linux/device-id/mhi.h> to qaic_ssr.c
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Youssef Samir <[email protected]>
[ Upstream commit f29ab62f7ed55eae7b246bb535ede56d3b338674 ]
qaic_ssr.c uses mhi_device_id implicitly. Include <linux/device-id/mhi.h>.
--- drivers/accel/qaic/qaic_ssr.c | 1 + 1 file changed, 1 insertion(+)
drivers/accel/qaic/qaic_ssr.c +1 -0
@@ -8,6 +8,7 @@#include <drm/drm_managed.h> #include <linux/devcoredump.h> #include <linux/device.h> +#include <linux/device-id/mhi.h> #include <linux/kernel.h> #include <linux/mhi.h> #include <linux/workqueue.h>
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 60/2651 accel/qaic: reject BO sizes that overflow page count
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hao-Qun Huang <[email protected]>
[ Upstream commit 568d4cb5dcc5ec4e22975699b6ea67a30806884c ]
create_sgt() receives the BO size as a u64 but stores the number of pages in an int. qaic_create_bo_ioctl() page-aligns the user-supplied size without an upper bound, so DIV_ROUND_UP(size, PAGE_SIZE) can exceed INT_MAX and truncate when assigned to nr_pages.
When the page count wraps to a small positive value (for example a BO larger than 16 TiB on a 4 KiB page kernel), create_sgt() succeeds after allocating only a handful of pages while the GEM object still records the full size, so the request never fails with -ENOMEM. The temporary pages array and the allocation loop both use the truncated count, so the backing SG table ends up smaller than obj->size. Later slice operations validate against obj->size and then clone ranges from this short sgt.
Compute the page count as a u64 and reject sizes that do not fit in nr_pages before the narrowing conversion.
--- drivers/accel/qaic/qaic_data.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/accel/qaic/qaic_data.c +7 -1
@@ -15,6 +15,7 @@#include <linux/math64.h> #include <linux/mm.h> #include <linux/moduleparam.h> +#include <linux/overflow.h> #include <linux/scatterlist.h> #include <linux/spinlock.h> #include <linux/srcu.h>
@@ -455,7 +456,12 @@ static int create_sgt(struct qaic_device *qdev, struct sg_table **sgt_out, u64 sint order;if (size) { - nr_pages =DIV_ROUND_UP (size,PAGE_SIZE ); +u64 nr_pages_u64 =DIV_ROUND_UP_ULL (size,PAGE_SIZE ); + +if (overflows_type (nr_pages_u64, int)) +return -E2BIG ; + + nr_pages = nr_pages_u64;/* * calculate how much extra we are going to allocate, to remove * later
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 61/2651 drm: verisilicon: fix cursor offset field update
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Icenowy Zheng <[email protected]>
[ Upstream commit 6575bb5d0d3c7db0d7d293428ecc07cb38e46ecc ]
The 4th argument of regmap_update_bits() expects a pre-shifted register value instead of the field value when it's used to set a single field, however I forgot this when writing the code setting the cursor X/Y offset fields, thus the write operation doesn't happen at all (because of the non-shifted values being masked by regmap_update_bits()).
Fix this problem so the cursor is correctly clipped.
The framebuffer address is also clipped so the cursor offset problem was previously not discovered, and the framebuffer address deserves another fix for proper cursor behavior when it's clipped.
--- drivers/gpu/drm/verisilicon/vs_cursor_plane.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/verisilicon/vs_cursor_plane.c +2 -2
@@ -200,7 +200,7 @@ static void vs_cursor_plane_atomic_update(struct drm_plane *plane, }else {regmap_update_bits (dc->regs,VSDC_CURSOR_CONFIG (output),VSDC_CURSOR_CONFIG_X_OFF_MASK , - -state->crtc_x); +VSDC_CURSOR_CONFIG_X_OFF (-state->crtc_x));regmap_update_bits (dc->regs,VSDC_CURSOR_LOCATION (output),VSDC_CURSOR_LOCATION_X_MASK ,0 ); }
@@ -214,7 +214,7 @@ static void vs_cursor_plane_atomic_update(struct drm_plane *plane, }else {regmap_update_bits (dc->regs,VSDC_CURSOR_CONFIG (output),VSDC_CURSOR_CONFIG_Y_OFF_MASK , - -state->crtc_y); +VSDC_CURSOR_CONFIG_Y_OFF (-state->crtc_y));regmap_update_bits (dc->regs,VSDC_CURSOR_LOCATION (output),VSDC_CURSOR_LOCATION_Y_MASK ,0 ); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 62/2651 drm/verisilicon: Switch to drm_fb_dma_get_addr() for framebuffer addresses
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chen-Yu Tsai <[email protected]>
[ Upstream commit 063019ac51afffda4ab3d658701b086caa0c8e9e ]
The verisilicon driver has a custom framebuffer address calculating helper that the common drm_fb_dma_get_addr() can substitute.
Differences from drm_fb_dma_get_addr():
- Uses drm_format_info_min_pitch() to calculate the horizontal offset; however the driver does not support any of the blocked formats, so this just ends up being the same as in drm_fb_dma_get_addr():
"cpp[plane] * y"
- Uses clipped source coordinates instead of non-clipped coordinates as in drm_fb_dma_get_addr();
For the primary plane this doesn't matter, since the primary plane must match the output, i.e. it cannot be clipped. Also this driver doesn't support scaling.
For the cursor plane this seems wrong, as the clipping seems to be done by the hardware, and thus the buffer address should be unclipped.
As such, it should be fine to use the common helper and drop the custom code.
--- drivers/gpu/drm/verisilicon/vs_cursor_plane.c | 4 +++- drivers/gpu/drm/verisilicon/vs_plane.c | 20 ------------------- drivers/gpu/drm/verisilicon/vs_plane.h | 2 -- .../gpu/drm/verisilicon/vs_primary_plane.c | 7 ++++++- 4 files changed, 9 insertions(+), 24 deletions(-)
drivers/gpu/drm/verisilicon/vs_cursor_plane.c +3 -1
@@ -13,6 +13,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_blend.h> #include <drm/drm_crtc.h> +#include <drm/drm_fb_dma_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_atomic_helper.h>
@@ -177,7 +178,8 @@ static void vs_cursor_plane_atomic_update(struct drm_plane *plane,break ; } - dma_addr =vs_fb_get_dma_addr (fb, &state->src); +/* hardware handles clipping as seen below */ + dma_addr =drm_fb_dma_get_gem_addr (fb, state,0 );regmap_write (dc->regs,VSDC_CURSOR_ADDRESS (output),lower_32_bits (dma_addr));
drivers/gpu/drm/verisilicon/vs_plane.c +0 -20
@@ -107,26 +107,6 @@ int drm_format_to_vs_format(u32 drm_format, struct vs_format *vs_format)return 0 ; } -dma_addr_t vs_fb_get_dma_addr (struct drm_framebuffer *fb, -const struct drm_rect *src_rect) -{ -struct drm_gem_dma_object *gem; -dma_addr_t dma_addr; - -/* Get the physical address of the buffer in memory */ - gem =drm_fb_dma_get_gem_obj (fb,0 ); - -/* Compute the start of the displayed memory */ - dma_addr = gem->dma_addr + fb->offsets[0 ]; - -/* Fixup framebuffer address for src coordinates */ - dma_addr +=drm_format_info_min_pitch (fb->format,0 , - src_rect->x1 >>16 ); - dma_addr += (src_rect->y1 >>16 ) * fb->pitches[0 ]; - -return dma_addr; -} -struct drm_plane_state *vs_plane_duplicate_state (struct drm_plane *plane) {struct vs_plane_state *vs_state, *vs_state_old;
drivers/gpu/drm/verisilicon/vs_plane.h +0 -2
@@ -75,8 +75,6 @@ static inline struct vs_plane_state *to_vs_plane_state(struct drm_plane_state *s }int drm_format_to_vs_format (u32 drm_format,struct vs_format *vs_format); -dma_addr_t vs_fb_get_dma_addr (struct drm_framebuffer *fb, -const struct drm_rect *src_rect);struct drm_plane_state *vs_plane_duplicate_state (struct drm_plane *plane); void vs_plane_destroy_state(struct drm_plane *plane,
drivers/gpu/drm/verisilicon/vs_primary_plane.c +6 -1
@@ -8,6 +8,7 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> +#include <drm/drm_fb_dma_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_atomic_helper.h>
@@ -126,7 +127,11 @@ static void vs_primary_plane_atomic_update(struct drm_plane *plane,VSDC_FB_CONFIG_UV_SWIZZLE_EN , vs_state->format.uv_swizzle); - dma_addr =vs_fb_get_dma_addr (fb, &state->src); +/* +* Primary plane cannot be moved, no clipping is involved, +* so the non-clipped framebuffer address can be used. +*/ + dma_addr =drm_fb_dma_get_gem_addr (fb, state,0 );regmap_write (dc->regs,VSDC_FB_ADDRESS (output),lower_32_bits (dma_addr));
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 63/2651 drm/panfrost: Check another bo field for cache option query
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Adrián Larumbe <[email protected]>
[ Upstream commit a34340574bad0e3280d8b43b3836147bf2149abc ]
When querying the properties of a BO, whether it was created in Writeback caching mode for userspace mappings, is recorded in a Panfrost BO's wb_mmap field.
--- drivers/gpu/drm/panfrost/panfrost_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panfrost/panfrost_drv.c +1 -1
@@ -662,7 +662,7 @@ static int panfrost_ioctl_query_bo_info(struct drm_device *dev, void *data,if (bo->is_heap) args->create_flags |=PANFROST_BO_HEAP ; -if (!bo->base.map_wc) +if (bo->wb_mmap) args->create_flags |=PANFROST_BO_WB_MMAP ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 64/2651 drm/panfrost: Prevent division by 0
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Adrián Larumbe <[email protected]>
[ Upstream commit fd4227f03546c323b5b21568f727233e9792d298 ]
When updating and debug-printing devfreq stats, in the very unlikely off-chance that total device time is less than 100 ns, division by 0 would happen. Fix the divisor when relevant and rearrange operands.
--- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panfrost/panfrost_devfreq.c +1 -1
@@ -78,7 +78,7 @@ static int panfrost_devfreq_get_dev_status(struct device *dev,dev_dbg (pfdev->base.dev,"busy %lu total %lu %lu %% freq %lu MHz\n" , status->busy_time, status->total_time, - status->busy_time / (status->total_time /100 ), + status->busy_time *100 /MAX (status->total_time,1 ), status->current_frequency /1000 /1000 );return 0 ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 65/2651 bpf: sched_ext: Mark ops argument container pointer fields as trusted
In reply to Greg Kroah-Hartman7.3-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tejun Heo <[email protected]>
[ Upstream commit aed1bf1a352acd4f5ffd2a81e23d2bb6e8e9b636 ]
Walking an unannotated pointer field of a trusted struct yields a bare PTR_TO_BTF_ID in non-sleepable programs, which kfuncs and helpers accept, but PTR_UNTRUSTED in sleepable programs, which they reject. This gets in the way of making ops.init_task() sleepable, which schedulers want for allocations. For example, passing args->cgroup into bpf_cgrp_storage_get() then fails verification and the only recourse is round-tripping through the cgroup ID with bpf_cgroup_from_id().
The pointer fields in the sched_ext ops argument containers are all pinned by the callers for the duration of the ops calls and are never NULL. Add them to the verifier's trusted-fields whitelist so that they are PTR_TRUSTED in both sleepable and non-sleepable programs.
--- kernel/bpf/verifier.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
kernel/bpf/verifier.c +26 -0
@@ -5923,6 +5923,28 @@ BTF_TYPE_SAFE_TRUSTED(struct file) {struct inode *f_inode; }; +/* +* The pointer fields in the sched_ext ops argument containers are pinned by the +* callers for the duration of the ops calls and are never NULL. +*/ +BTF_TYPE_SAFE_TRUSTED(struct scx_init_task_args) { +#ifdef CONFIG_EXT_GROUP_SCHED +struct cgroup *cgroup; +#endif +}; + +BTF_TYPE_SAFE_TRUSTED(struct scx_cpu_release_args) { +struct task_struct *task; +}; + +BTF_TYPE_SAFE_TRUSTED(struct scx_sub_attach_args) { +struct sched_ext_ops *ops; +}; + +BTF_TYPE_SAFE_TRUSTED(struct scx_sub_detach_args) { +struct sched_ext_ops *ops; +}; + BTF_TYPE_SAFE_TRUSTED_OR_NULL(struct dentry) {struct inode *d_inode; };
@@ -5967,6 +5989,10 @@ static bool type_is_trusted(struct bpf_verifier_env *env,BTF_TYPE_EMIT (BTF_TYPE_SAFE_TRUSTED(struct bpf_iter__task ));BTF_TYPE_EMIT (BTF_TYPE_SAFE_TRUSTED(struct linux_binprm ));BTF_TYPE_EMIT (BTF_TYPE_SAFE_TRUSTED(struct file )); +BTF_TYPE_EMIT (BTF_TYPE_SAFE_TRUSTED(struct scx_init_task_args )); +BTF_TYPE_EMIT (BTF_TYPE_SAFE_TRUSTED(struct scx_cpu_release_args )); +BTF_TYPE_EMIT (BTF_TYPE_SAFE_TRUSTED(struct scx_sub_attach_args )); +BTF_TYPE_EMIT (BTF_TYPE_SAFE_TRUSTED(struct scx_sub_detach_args ));return btf_nested_type_is_trusted (&env->log, reg, field_name, btf_id,"__safe_trusted" ); }
Signature · 1 line
2.53.0