6.18.52-rc1 review
Greg Kroah-Hartman
maintainerPATCH 1/1518 net/mlx5e: xsk: Fix unlocked writing to ICOSQ
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dragos Tatulea <[email protected]>
commit c326f9c68921e2f14dfcecb2f6b4216313d50248 upstream.
During napi poll, when the affinity changes and there's still XSK work to be done, we trigger an ICOSQ interrupt on the new CPU. However, this triggering on the ICOSQ is done unprotected.
There are 2 such races:
A) mlx5e_trigger_irq() is called while mlx5e_xsk_alloc_rx_mpwqe() is running from a different CPU due to affinity change. This can happen because IRQ triggering is done after napi_complete_done(). At this point the NAPI can be scheduled on a different CPU. Like this:
CPU A (old affinity, NAPI tail) CPU B (new affinity, fresh NAPI)
------------------------------- --------------------------------
napi_complete_done() clears SCHED
mlx5e_cq_arm(...)
napi_schedule_prep() sets SCHED
mlx5e_napi_poll()
mlx5e_xsk_alloc_rx_mpwqe()
mlx5e_icosq_sync_lock() // noop
memcpy 640 B UMR body
advance sq->pc by 10
mlx5e_trigger_irq(&c->icosq)
wqe_info[pi] = {NOP, 1}
mlx5e_post_nop() advances sq->pcB) mlx5e_trigger_irq() is called on the ICOSQ when mlx5e_trigger_napi_icosq() is running.
The obvious fix would be to lock the ICOSQ. But ICOSQ has an optimized locking scheme that doesn't work for this scenario. Kick the async ICOSQ instead which is always locked.
This issue was noticed in the wild with the following splat:
netdevice: ge-0-0-1: Bad OP in ICOSQ CQE: 0xd
WARNING: drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:826 [...] [...] Call Trace: <IRQ> mlx5e_napi_poll+0x11d/0x7f0 [mlx5_core] __napi_poll+0x30/0x200 ? skb_defer_free_flush+0x9c/0xc0 net_rx_action+0x2fe/0x3f0 handle_softirqs+0xd8/0x340 __irq_exit_rcu+0xbc/0xe0 common_interrupt+0x85/0xa0 </IRQ> <TASK> asm_common_interrupt+0x26/0x40 [...] ---[ end trace 0000000000000000 ]--- mlx5_core 0000:08:00.0 ge-0-0-1: Error cqe on cqn 0x548, ci 0x2022, qn 0x8f4, opcode 0xd, syndrome 0x2, vendor syndrome 0x68 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000030: 00 00 00 00 01 00 68 02 01 00 08 f4 de 14 59 d2 WQE DUMP: WQ size 16384 WQ cur size 0, WQE index 0x1e14, len: 64 00000000: 00 00 00 01 d9 ed 80 02 00 00 00 01 d9 ed 90 02 00000010: 00 00 00 01 d9 ed a0 02 00 00 00 01 d9 ed b0 02 00000020: 00 00 00 01 d9 ed c0 02 00 00 00 01 d9 ed d0 02 00000030: 00 00 00 01 d9 ed e0 02 00 00 00 01 d9 ed f0 02 mlx5_core 0000:08:00.0 ge-0-0-1: Error cqe on cqn 0x548, ci 0x2023, qn 0x8f4, opcode 0xd, syndrome 0x5, vendor syndrome 0xf9 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000030: 00 00 00 00 01 00 f9 05 01 00 08 f4 de 15 cf d2
[ Backport to 6.18.y and older: upstream commit calls
mlx5e_trigger_napi_async_icosq(), which was introduced by commit 0da1dba72616 ("net/mlx5e: XSK, Fix unintended ICOSQ change") and is not present here. In these trees mlx5e_trigger_napi_icosq() is the equivalent helper: it takes c->async_icosq_lock and triggers c->async_icosq, which is unconditionally opened, activated, polled and armed for every channel. Race B does not apply, as it concerns the sync-ICOSQ variant of mlx5e_trigger_napi_icosq() that only exists upstream, and mlx5e_icosq_sync_lock() in the race A diagram has no equivalent here. ]
--- drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c +1 -1
@@ -247,7 +247,7 @@ int mlx5e_napi_poll(struct napi_struct *napi, int budget) }if (unlikely (aff_change && busy_xsk)) { -mlx5e_trigger_irq (&c->icosq); +mlx5e_trigger_napi_icosq (c); ch_stats->force_irq++; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 10/1518 dma-buf: dma-heap: dont publish fd before copy_to_user() succeeds
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Baineng Shou <[email protected]>
[ Upstream commit 30d0aff2c65a277135cfd8ea28fa1ee75e0ea4e0 ]
DMA_HEAP_IOCTL_ALLOC allocates a dma-buf and installs an fd into the caller's fd table via dma_buf_fd() -> fd_install() before dma_heap_ioctl() copies the result back to userspace. If the trailing copy_to_user() fails, userspace never learns the fd number, but the fd (and the underlying dma-buf reference) are already visible to other threads in the same process and are leaked for the lifetime of the process.
The obvious "close it on the failure path" fix is unsafe: once fd_install() has run, another thread can already dup() the fd, send it via SCM_RIGHTS, or close() it and let its number be reused, so a subsequent close_fd() from the ioctl path can operate on an unrelated file. This was pointed out by Christian König on v1 [1].
Restructure the allocation path so that fd_install() is the last, unfailable step of a successful ioctl:
1. heap->ops->allocate() creates the dma_buf.
2. get_unused_fd_flags() reserves an fd number in the caller's
fd table without publishing it, so no other thread can observe it.
3. copy_to_user() delivers the fd number to userspace;
on failure the fd is returned with put_unused_fd() and the dma_buf reference is dropped with dma_buf_put(), leaving no user- visible state behind.
4. dma_buf_fd_install() publishes the fd and emits the
trace_dma_buf_fd tracepoint -- from here on the ioctl cannot fail.
A new dma_buf_fd_install() helper is introduced in dma-buf.c to wrap fd_install() together with the DMA_BUF_TRACE() call, preserving the export tracing that dma_buf_fd() provides. dma_heap_ioctl_allocate() is refactored to return the struct dma_buf * directly (returning ERR_PTR on failure) so the caller holds the dmabuf reference across steps 3 and 4.
The failure at step 3 is easily reachable from userspace: pass a struct dma_heap_allocation_data that lives in a page whose protection is flipped to PROT_READ between copy_from_user() and copy_to_user() (e.g. via mprotect()). Before this change each such ioctl leaks one dmabuf fd; after it, the fd table is unchanged on failure and only /dev/dma_heap/<name> remains open.
No UAPI or heap-driver interface change.
[1] https://lore.kernel.org/dri-devel/[email protected]/
Stable adaptation for 6.18:
- Resolve the dma-heap conflict without importing the absent mem_accounting module parameter; retain the existing kzalloc() form.
- This tree has neither DMA_BUF_TRACE nor trace_dma_buf_fd. Omit the new dma-buf.c function and export, and provide dma_buf_fd_install as a single-evaluation macro around the existing fd_install() in dma-buf.h. This preserves the reserved-fd publication semantics without adding functions or importing the unrelated tracing infrastructure.
- Retain the heap allocation and usercopy cleanup changes, and expose the interface needed for the target FastRPC fix to apply unchanged.
[ sashal: Reduced backport -- upstream 30d0aff2c65a2 touches 3 file(s), this
backport carries 2. Not backported here:
drivers/dma-buf/dma-buf.c
This note is generated from the file lists only; see the resolution record for the reasoning. ]
Stable-dep-of: a4a1a2bfcb29 ("misc: fastrpc: don't publish fd before copy_to_user() succeeds")
--- drivers/dma-buf/dma-heap.c | 80 ++++++++++++++++++++++----------------------- include/linux/dma-buf.h | 5 ++ 2 files changed, 45 insertions(+), 40 deletions(-)
drivers/dma-buf/dma-heap.c +40 -40
@@ -49,33 +49,6 @@ static dev_t dma_heap_devt;static struct class *dma_heap_class;static DEFINE_XARRAY_ALLOC (dma_heap_minors); -static int dma_heap_buffer_alloc (struct dma_heap *heap,size_t len, -u32 fd_flags, -u64 heap_flags) -{ -struct dma_buf *dmabuf; -int fd; - -/* -* Allocations from all heaps have to begin -* and end on page boundaries. -*/ - len =PAGE_ALIGN (len); -if (!len) -return -EINVAL ; - - dmabuf = heap->ops->allocate (heap, len, fd_flags, heap_flags); -if (IS_ERR (dmabuf)) -return PTR_ERR (dmabuf); - - fd =dma_buf_fd (dmabuf, fd_flags); -if (fd <0 ) { -dma_buf_put (dmabuf); -/* just return, as put will call release and that will free */ - } -return fd; -} -static int dma_heap_open (struct inode *inode,struct file *file) {struct dma_heap *heap;
@@ -93,30 +66,42 @@ static int dma_heap_open(struct inode *ireturn 0 ; } -static long dma_heap_ioctl_allocate (struct file *file,void *data) +static struct dma_buf *dma_heap_ioctl_allocate (struct file *file,void *data) {struct dma_heap_allocation_data *heap_allocation = data;struct dma_heap *heap = file->private_data; +struct dma_buf *dmabuf;int fd; +size_t len;if (heap_allocation->fd) -return -EINVAL ; +return ERR_PTR (-EINVAL );if (heap_allocation->fd_flags & ~DMA_HEAP_VALID_FD_FLAGS ) -return -EINVAL ; +return ERR_PTR (-EINVAL );if (heap_allocation->heap_flags & ~DMA_HEAP_VALID_HEAP_FLAGS ) -return -EINVAL ; +return ERR_PTR (-EINVAL ); + + len =PAGE_ALIGN (heap_allocation->len); +if (!len) +return ERR_PTR (-EINVAL ); - fd =dma_heap_buffer_alloc (heap, heap_allocation->len, - heap_allocation->fd_flags, - heap_allocation->heap_flags); -if (fd <0 ) -return fd; + dmabuf = heap->ops->allocate (heap, len, heap_allocation->fd_flags, + heap_allocation->heap_flags); + +if (IS_ERR (dmabuf)) +return dmabuf; + + fd =get_unused_fd_flags (heap_allocation->fd_flags); +if (fd <0 ) { +dma_buf_put (dmabuf); +return ERR_PTR (fd); + } heap_allocation->fd = fd; -return 0 ; +return dmabuf; }static unsigned int dma_heap_ioctl_cmds[] = {
@@ -132,6 +117,8 @@ static long dma_heap_ioctl(struct file *unsigned int in_size, out_size, drv_size, ksize;int nr =_IOC_NR (ucmd);int ret =0 ; +int fd; +struct dma_buf *dmabuf;if (nr >=ARRAY_SIZE (dma_heap_ioctl_cmds))return -EINVAL ;
@@ -168,15 +155,28 @@ static long dma_heap_ioctl(struct file *switch (kcmd) {case DMA_HEAP_IOCTL_ALLOC : - ret =dma_heap_ioctl_allocate (file, kdata); + dmabuf =dma_heap_ioctl_allocate (file, kdata); + +if (IS_ERR (dmabuf)) { + ret =PTR_ERR (dmabuf); +break ; + } + + fd = ((struct dma_heap_allocation_data *)kdata)->fd; +if (copy_to_user ((void __user *)arg, kdata, out_size) !=0 ) { +put_unused_fd (fd); +dma_buf_put (dmabuf); + ret = -EFAULT ; + }else { +dma_buf_fd_install (dmabuf, fd); + } +break ;default : ret = -ENOTTY ; goto err; } -if (copy_to_user ((void __user *)arg, kdata, out_size) !=0 ) - ret = -EFAULT ; err:if (kdata != stack_kdata)kfree (kdata);
include/linux/dma-buf.h +5 -0
@@ -582,6 +582,11 @@ void dma_buf_unpin(struct dma_buf_attachstruct dma_buf *dma_buf_export (const struct dma_buf_export_info *exp_info);int dma_buf_fd (struct dma_buf *dmabuf,int flags); +/* +* This tree has no DMA-BUF fd tracepoint, so publishing a reserved fd only +* requires fd_install(). Call this after all fallible work has succeeded. +*/ +#define dma_buf_fd_install (dmabuf, fd) fd_install((fd), (dmabuf)->file)struct dma_buf *dma_buf_get (int fd);void dma_buf_put (struct dma_buf *dmabuf);
Greg Kroah-Hartman
maintainerPATCH 11/1518 i3c: master: Fix device_register() error path
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Adrian Hunter <[email protected]>
[ Upstream commit 74be657d98a8d684c0475f3cbd450ef2a30ffc73 ]
When device_register() fails in i3c_master_register_new_i3c_devs(), put_device() is called to drop the reference taken by device_register(). That drops the last reference, so the device's release callback i3c_device_release() runs and frees the i3c_device.
Two problems follow from that:
i3c_device_release() does WARN_ON(i3cdev->desc), so it warns because desc->dev->desc still points back at the descriptor. Clear it before calling put_device().
After put_device() frees the i3c_device, desc->dev is left pointing at freed memory, so clear desc->dev as well. That prevents, for example, i3c_master_unregister_i3c_devs() seeing desc->dev as non-NULL and dereferencing it.
Stable-dep-of: 456f832e5fc2 ("i3c: master: Fix recursive locking during device registration")
--- drivers/i3c/master.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/i3c/master.c +2 -0
@@ -1817,7 +1817,9 @@ i3c_master_register_new_i3c_devs(structif (ret) {dev_err (&master->dev,"Failed to add I3C device (err = %d)\n" , ret); + desc->dev->desc =NULL ;put_device (&desc->dev->dev); + desc->dev =NULL ; } } }
Greg Kroah-Hartman
maintainerPATCH 12/1518 mtd: rawnand: pl353: Add message about ECC mode
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Andrea Scian <[email protected]>
[ Upstream commit 1e06dbfdfb851170b243d6498e442b449324c664 ]
This just add some information on kernel log about the selected ECC
Stable-dep-of: 80ecacd054ff ("mtd: rawnand: pl353: Make sure we use the monolithic helpers for raw accesses")
--- drivers/mtd/nand/raw/pl35x-nand-controller.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/mtd/nand/raw/pl35x-nand-controller.c +3 -0
@@ -973,15 +973,18 @@ static int pl35x_nand_attach_chip(structswitch (chip->ecc.engine_type) {case NAND_ECC_ENGINE_TYPE_ON_DIE : +dev_dbg (nfc->dev,"Using on-die ECC\n" );/* Keep these legacy BBT descriptors for ON_DIE situations */ chip->bbt_td = &bbt_main_descr; chip->bbt_md = &bbt_mirror_descr; fallthrough;case NAND_ECC_ENGINE_TYPE_NONE :case NAND_ECC_ENGINE_TYPE_SOFT : +dev_dbg (nfc->dev,"Using software ECC (Hamming 1-bit/512B)\n" ); chip->ecc.write_page_raw = nand_monolithic_write_page_raw;break ;case NAND_ECC_ENGINE_TYPE_ON_HOST : +dev_dbg (nfc->dev,"Using hardware ECC\n" ); ret =pl35x_nand_init_hw_ecc_controller (nfc, chip);if (ret)return ret;
Greg Kroah-Hartman
maintainerPATCH 13/1518 net/mlx5e: SHAMPO, Always calculate page size
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dragos Tatulea <[email protected]>
[ Upstream commit dff1c3164a69284ac9fedb1c25d4c008139e9fb8 ]
Adapt the rx path in SHAMPO mode to calculate page size based on configured page_shift when dealing with payload data.
This is necessary as an upcoming patch will add support for using different page sizes.
This change has no functional changes.
Backport to 6.18: preserve the XDP fragment accounting fix from 7d7342a18fadc ("net/mlx5e: RX, Fix XDP multi-buf frag counting for striding RQ"). Keep new_nr_frags and the original frag_page endpoint; only replace PAGE_SIZE with page_size in the truesize adjustment. Reintroducing the old frag_page rewind would break page reference accounting for fragments consumed by XDP.
Retain the page-size calculations and SHAMPO space-check changes so e2466392a0b8496000e12181cb1ee1535eb0da25 ("net/mlx5e: do not HW-GRO coalesce small frames") applies without modification. No functions are added.
Stable-dep-of: e2466392a0b8 ("net/mlx5e: do not HW-GRO coalesce small frames")
--- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 34 +++++++++++++++--------- 1 file changed, 22 insertions(+), 12 deletions(-)
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +22 -12
@@ -2014,11 +2014,14 @@ mlx5e_shampo_fill_skb_data(struct sk_bufstruct mlx5e_frag_page *frag_page, u32 data_bcnt, u32 data_offset) { + u32 page_size = BIT(rq->mpwqe.page_shift); +net_prefetchw (skb->data); do { /* Non-linear mode, hence non-XSK, which always uses PAGE_SIZE. */ - u32 pg_consumed_bytes = min_t(u32, PAGE_SIZE - data_offset, data_bcnt); + u32 pg_consumed_bytes = min_t(u32, page_size - data_offset, + data_bcnt); unsigned int truesize = pg_consumed_bytes; mlx5e_add_skb_frag(rq, skb, frag_page, data_offset,
@@ -2039,6 +2042,7 @@ mlx5e_skb_from_cqe_mpwrq_nonlinear(strucu16 headlen =min_t (u16,MLX5E_RX_MAX_HEAD , cqe_bcnt);struct mlx5e_frag_page *head_page = frag_page;struct mlx5e_xdp_buff *mxbuf = &rq->mxbuf; +u32 page_size =BIT (rq->mpwqe.page_shift);u32 frag_offset = head_offset;u32 byte_cnt = cqe_bcnt;struct skb_shared_info *sinfo;
@@ -2084,9 +2088,9 @@ mlx5e_skb_from_cqe_mpwrq_nonlinear(struc linear_hr =skb_headroom (skb); linear_data_len = headlen; linear_frame_sz =MLX5_SKB_FRAG_SZ (skb_end_offset (skb)); -if (unlikely (frag_offset >=PAGE_SIZE )) { +if (unlikely (frag_offset >= page_size)) { frag_page++; - frag_offset -=PAGE_SIZE ; + frag_offset -= page_size; } }
@@ -2098,7 +2102,7 @@ mlx5e_skb_from_cqe_mpwrq_nonlinear(strucwhile (byte_cnt) {/* Non-linear mode, hence non-XSK, which always uses PAGE_SIZE. */ pg_consumed_bytes = -min_t (u32,PAGE_SIZE - frag_offset, byte_cnt); +min_t (u32, page_size - frag_offset, byte_cnt);if (test_bit (MLX5E_RQ_STATE_SHAMPO , &rq->state)) truesize += pg_consumed_bytes;
@@ -2135,7 +2139,7 @@ mlx5e_skb_from_cqe_mpwrq_nonlinear(struc new_nr_frags = sinfo->nr_frags; nr_frags_free = old_nr_frags - new_nr_frags;if (unlikely (nr_frags_free)) - truesize -= (nr_frags_free -1 ) *PAGE_SIZE + + truesize -= (nr_frags_free -1 ) * page_size +ALIGN (pg_consumed_bytes,BIT (rq->mpwqe.log_stride_sz));
@@ -2349,15 +2353,16 @@ mlx5e_shampo_flush_skb(struct mlx5e_rq * rq->hw_gro_data->skb =NULL ; } -static bool -mlx5e_hw_gro_skb_has_enough_space (struct sk_buff *skb,u16 data_bcnt) +static bool mlx5e_hw_gro_skb_has_enough_space (struct sk_buff *skb, +u16 data_bcnt, +u32 page_size) {int nr_frags =skb_shinfo (skb)->nr_frags; -if (PAGE_SIZE >=GRO_LEGACY_MAX_SIZE ) +if (page_size >=GRO_LEGACY_MAX_SIZE )return skb->len + data_bcnt <=GRO_LEGACY_MAX_SIZE ;else -return PAGE_SIZE * nr_frags + data_bcnt <=GRO_LEGACY_MAX_SIZE ; +return page_size * nr_frags + data_bcnt <=GRO_LEGACY_MAX_SIZE ; }static void mlx5e_handle_rx_cqe_mpwrq_shampo (struct mlx5e_rq *rq,struct mlx5_cqe64 *cqe)
@@ -2366,18 +2371,19 @@ static void mlx5e_handle_rx_cqe_mpwrq_shu16 header_index =mlx5e_shampo_get_cqe_header_index (rq, cqe);u32 wqe_offset =be32_to_cpu (cqe->shampo.data_offset);u16 cstrides =mpwrq_get_cqe_consumed_strides (cqe); -u32 data_offset = wqe_offset & (PAGE_SIZE -1 );u32 cqe_bcnt =mpwrq_get_cqe_byte_cnt (cqe);u16 wqe_id =be16_to_cpu (cqe->wqe_id); -u32 page_idx = wqe_offset >>PAGE_SHIFT ;u16 head_size = cqe->shampo.header_size;struct sk_buff **skb = &rq->hw_gro_data->skb;bool flush = cqe->shampo.flush;bool match = cqe->shampo.match; +u32 page_size =BIT (rq->mpwqe.page_shift);struct mlx5e_rq_stats *stats = rq->stats;struct mlx5e_rx_wqe_ll *wqe;struct mlx5e_mpw_info *wi;struct mlx5_wq_ll *wq; +u32 data_offset; +u32 page_idx; wi =mlx5e_get_mpw_info (rq, wqe_id); wi->consumed_strides += cstrides;
@@ -2393,7 +2399,11 @@ static void mlx5e_handle_rx_cqe_mpwrq_sh goto mpwrq_cqe_out; } -if (*skb && (!match || !(mlx5e_hw_gro_skb_has_enough_space (*skb, data_bcnt)))) { + data_offset = wqe_offset & (page_size -1 ); + page_idx = wqe_offset >> rq->mpwqe.page_shift; +if (*skb && + !(match &&mlx5e_hw_gro_skb_has_enough_space (*skb, data_bcnt, + page_size))) { match = false;mlx5e_shampo_flush_skb (rq, cqe, match); }
Greg Kroah-Hartman
maintainerPATCH 14/1518 nvme: fold nvme_config_discard() into nvme_update_disk_info()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Caleb Sander Mateos <[email protected]>
[ Upstream commit 9110b85244f142ca4bcaea27be408c778d3c48d0 ]
The choice of what queue limits are set in nvme_update_disk_info() vs. nvme_config_discard() seems a bit arbitrary. A subsequent commit will compute the discard_granularity limit using struct nvme_id_ns, which is only passed to nvme_update_disk_info() currently. So move the logic in nvme_config_discard() to nvme_update_disk_info(). Replace several instances of ns->ctrl in nvme_update_disk_info() with the ctrl variable brought from nvme_config_discard().
Stable-dep-of: 3838e80fcfb3 ("nvme: skip the zoned limits update if the zone info query failed")
--- drivers/nvme/host/core.c | 43 +++++++++++++++++++------------------------ 1 file changed, 19 insertions(+), 24 deletions(-)
drivers/nvme/host/core.c +19 -24
@@ -1882,26 +1882,6 @@ static bool nvme_init_integrity(struct nreturn true; } -static void nvme_config_discard (struct nvme_ns *ns,struct queue_limits *lim) -{ -struct nvme_ctrl *ctrl = ns->ctrl; - -if (ctrl->dmrsl && ctrl->dmrsl <=nvme_sect_to_lba (ns->head,UINT_MAX )) - lim->max_hw_discard_sectors = -nvme_lba_to_sect (ns->head, ctrl->dmrsl); -else if (ctrl->oncs &NVME_CTRL_ONCS_DSM ) - lim->max_hw_discard_sectors =UINT_MAX ; -else - lim->max_hw_discard_sectors =0 ; - - lim->discard_granularity = lim->logical_block_size; - -if (ctrl->dmrl) - lim->max_discard_segments = ctrl->dmrl; -else - lim->max_discard_segments =NVME_DSM_MAX_RANGES ; -} -static bool nvme_ns_ids_equal (struct nvme_ns_ids *a,struct nvme_ns_ids *b) { return uuid_equal(&a->uuid, &b->uuid) &&
@@ -2084,6 +2064,7 @@ static bool nvme_update_disk_info(struct struct queue_limits *lim) {struct nvme_ns_head *head = ns->head; +struct nvme_ctrl *ctrl = ns->ctrl;u32 bs =1U << head->lba_shift;u32 atomic_bs, phys_bs, io_opt =0 ;bool valid = true;
@@ -2118,11 +2099,26 @@ static bool nvme_update_disk_info(struct lim->physical_block_size =min (phys_bs, atomic_bs); lim->io_min = phys_bs; lim->io_opt = io_opt; -if ((ns->ctrl->quirks &NVME_QUIRK_DEALLOCATE_ZEROES ) && - (ns->ctrl->oncs &NVME_CTRL_ONCS_DSM )) +if ((ctrl->quirks &NVME_QUIRK_DEALLOCATE_ZEROES ) && + (ctrl->oncs &NVME_CTRL_ONCS_DSM )) lim->max_write_zeroes_sectors =UINT_MAX ;else - lim->max_write_zeroes_sectors = ns->ctrl->max_zeroes_sectors; + lim->max_write_zeroes_sectors = ctrl->max_zeroes_sectors; + +if (ctrl->dmrsl && ctrl->dmrsl <=nvme_sect_to_lba (ns->head,UINT_MAX )) + lim->max_hw_discard_sectors = +nvme_lba_to_sect (ns->head, ctrl->dmrsl); +else if (ctrl->oncs &NVME_CTRL_ONCS_DSM ) + lim->max_hw_discard_sectors =UINT_MAX ; +else + lim->max_hw_discard_sectors =0 ; + + lim->discard_granularity = lim->logical_block_size; + +if (ctrl->dmrl) + lim->max_discard_segments = ctrl->dmrl; +else + lim->max_discard_segments =NVME_DSM_MAX_RANGES ;return valid; }
@@ -2387,7 +2383,6 @@ static int nvme_update_ns_info_block(strif (!nvme_update_disk_info (ns, id, &lim)) capacity =0 ; -nvme_config_discard (ns, &lim);if (IS_ENABLED (CONFIG_BLK_DEV_ZONED ) && ns->head->ids.csi ==NVME_CSI_ZNS )nvme_update_zone_info (ns, &lim, &zi);
Greg Kroah-Hartman
maintainerPATCH 15/1518 PCI: Introduce PCI_SLOT_PLACEHOLDER constant for slot_nr placeholder value
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Farhan Ali <[email protected]>
[ Upstream commit c243e6c470c4695965cc8287767925bc1d9a7867 ]
Introduce a constant for placeholder value and update the kerneldoc for pci_create_slot() to reference PCI_SLOT_PLACEHOLDER instead of -1 throughout. No functional change.
Stable backport: this tree predates 102c8b26b54e ("PCI: Allow all bus devices to use the same slot"). Include its PCI_SLOT_ALL_DEVICES definition, slot-number documentation, and core matching/address handling so that subsequent commit dcc5bec09e23 ("PCI: Allow per function PCI slots to fix slot reset on s390") applies without conflicts. Keep the PCIe hotplug callers unchanged; enabling bus-wide slots there is outside this dependency.
Retain the stable tree's kzalloc() and ATTRIBUTE_GROUPS() implementations. The placeholder conversion covers both PowerPC hotplug callers and the PCI core. All code changes stay within existing functions.
Stable-dep-of: dcc5bec09e23 ("PCI: Allow per function PCI slots to fix slot reset on s390")
--- drivers/pci/hotplug/pnv_php.c | 2 - drivers/pci/hotplug/rpaphp_slot.c | 2 - drivers/pci/slot.c | 50 ++++++++++++++++++++++++++++---------- include/linux/pci.h | 13 +++++++++ 4 files changed, 51 insertions(+), 16 deletions(-)
drivers/pci/hotplug/pnv_php.c +1 -1
@@ -813,7 +813,7 @@ static struct pnv_php_slot *pnv_php_alloif (dn->child &&PCI_DN (dn->child)) php_slot->slot_no =PCI_SLOT (PCI_DN (dn->child)->devfn);else - php_slot->slot_no =-1 ;/* Placeholder slot */ + php_slot->slot_no =PCI_SLOT_PLACEHOLDER ;/* Placeholder slot */ kref_init (&php_slot->kref); php_slot->state =PNV_PHP_STATE_INITIALIZED ;
drivers/pci/hotplug/rpaphp_slot.c +1 -1
@@ -85,7 +85,7 @@ int rpaphp_register_slot(struct slot *slstruct device_node *child;u32 my_index;int retval; -int slotno =-1 ; +int slotno =PCI_SLOT_PLACEHOLDER ; dbg("%s registering slot:path[%pOF] index[%x], name[%s] pdomain[%x] type[%d]\n", __func__, slot->dn, slot->index, slot->name,
drivers/pci/slot.c +37 -13
98 lines not on this page · raw message
include/linux/pci.h +12 -1
@@ -72,12 +72,23 @@/* return bus from PCI devid = ((u16)bus_number) << 8) | devfn */ #define PCI_BUS_NUM (x) (((x) >> 8) & 0xff) +/* +* PCI_SLOT_ALL_DEVICES indicates a slot that covers all devices on the bus. +* Used for PCIe hotplug where the physical slot is the entire secondary bus, +* and, if ARI Forwarding is enabled, functions may appear to be on multiple +* devices. +*/ +#define PCI_SLOT_ALL_DEVICES 0xfe + +/* Used to identify a slot as a placeholder */ +#define PCI_SLOT_PLACEHOLDER 0xff +/* pci_slot represents a physical slot */ struct pci_slot {struct pci_bus *bus;/* Bus this slot is on */ struct list_head list;/* Node in list of slots */ struct hotplug_slot *hotplug;/* Hotplug info (move here) */ -unsigned char number;/* PCI_SLOT(pci_dev->devfn) */ +unsigned char number;/* Device nr, or PCI_SLOT_ALL_DEVICES */ struct kobject kobj; };
Greg Kroah-Hartman
maintainerPATCH 16/1518 perf/core: Fix deadlock in perf_mmap() failure path
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Peter Zijlstra <[email protected]>
[ Upstream commit c69df06e4e26e50611190ce04eab92c5cc261b61 ]
Ian noted that commit 77de62ad3de3 ("perf/core: Fix refcount bug and potential UAF in perf_mmap") would cause a deadlock due to event->mmap_mutex recursion.
This happens because we're now calling perf_mmap_close() under mmap_mutex, while that function itself can also take mmap_mutex.
Solve this by noting that perf_mmap_close() is far more complicated than we need at this particular point, since it deals with scenarios that cannot happen in this particular case.
Replace the call to perf_mmap_close() with a very narrow undo for the case of first-exposure. If this is not the first mmap(), there is no race and it is fine to drop the lock and call perf_mmap_close() to handle to more complicated scenarios.
Note: move the rb->mmap_user (namespace) handling into the rb init/free code such that it does not complicate the mmap handling.
Stable-dep-of: 58a8108bc73d ("perf: Fix use-after-free when perf mmap() revival races with the last munmap()")
--- kernel/events/core.c | 70 ++++++++++++++++++++++++++++++++++---------- kernel/events/internal.h | 1 kernel/events/ring_buffer.c | 2 + 3 files changed, 58 insertions(+), 15 deletions(-)
kernel/events/core.c +55 -15
@@ -6737,6 +6737,7 @@ static void perf_mmap_open(struct vm_are }static void perf_pmu_output_stop (struct perf_event *event); +static void perf_mmap_unaccount (struct vm_area_struct *vma,struct perf_buffer *rb);/* * A buffer can be mmap()ed multiple times; either directly through the same
@@ -6752,8 +6753,6 @@ static void perf_mmap_close(struct vm_armapped_f unmapped =get_mapped (event, event_unmapped);struct perf_buffer *rb =ring_buffer_get (event);struct user_struct *mmap_user = rb->mmap_user; -int mmap_locked = rb->mmap_locked; -unsigned long size =perf_data_size (rb);bool detach_rest = false;/* FIXIES vs perf_pmu_unregister() */
@@ -6848,11 +6847,7 @@ again:* Aside from that, this buffer is 'fully' detached and unmapped, * undo the VM accounting. */ - -atomic_long_sub ((size >>PAGE_SHIFT ) +1 - mmap_locked, - &mmap_user->locked_vm); -atomic64_sub (mmap_locked, &vma->vm_mm->pinned_vm); -free_uid (mmap_user); +perf_mmap_unaccount (vma, rb); out_put:ring_buffer_put (rb);/* could be last */
@@ -6994,6 +6989,15 @@ static void perf_mmap_account(struct vm_atomic64_add (extra, &vma->vm_mm->pinned_vm); } +static void perf_mmap_unaccount (struct vm_area_struct *vma,struct perf_buffer *rb) +{ +struct user_struct *user = rb->mmap_user; + +atomic_long_sub ((perf_data_size (rb) >>PAGE_SHIFT ) +1 - rb->mmap_locked, + &user->locked_vm); +atomic64_sub (rb->mmap_locked, &vma->vm_mm->pinned_vm); +} +static int perf_mmap_rb (struct vm_area_struct *vma,struct perf_event *event,unsigned long nr_pages) {
@@ -7056,8 +7060,6 @@ static int perf_mmap_rb(struct vm_area_sif (!rb)return -ENOMEM ; -refcount_set (&rb->mmap_count,1 ); - rb->mmap_user =get_current_user (); rb->mmap_locked = extra;ring_buffer_attach (event, rb);
@@ -7207,16 +7209,54 @@ static int perf_mmap(struct file *file,mapped (event, vma->vm_mm);/* -* Try to map it into the page table. On fail, invoke -* perf_mmap_close() to undo the above, as the callsite expects -* full cleanup in this case and therefore does not invoke -* vmops::close(). +* Try to map it into the page table. On fail undo the above, +* as the callsite expects full cleanup in this case and +* therefore does not invoke vmops::close(). */ ret =map_range (event->rb, vma); -if (ret) -perf_mmap_close (vma); +if (likely (!ret)) +return 0 ; + +/* Error path */ + +/* +* If this is the first mmap(), then event->mmap_count should +* be stable at 1. It is only modified by: +* perf_mmap_{open,close}() and perf_mmap(). +* +* The former are not possible because this mmap() hasn't been +* successful yet, and the latter is serialized by +* event->mmap_mutex which we still hold (note that mmap_lock +* is not strictly sufficient here, because the event fd can +* be passed to another process through trivial means like +* fork(), leading to concurrent mmap() from different mm). +* +* Make sure to remove event->rb before releasing +* event->mmap_mutex, such that any concurrent mmap() will not +* attempt use this failed buffer. +*/ +if (refcount_read (&event->mmap_count) ==1 ) { +/* +* Minimal perf_mmap_close(); there can't be AUX or +* other events on account of this being the first. +*/ + mapped =get_mapped (event, event_unmapped); +if (mapped) +mapped (event, vma->vm_mm); +perf_mmap_unaccount (vma, event->rb); +ring_buffer_attach (event,NULL );/* drops last rb->refcount */ +refcount_set (&event->mmap_count,0 ); +return ret; + } + +/* +* Otherwise this is an already existing buffer, and there is +* no race vs first exposure, so fall-through and call +* perf_mmap_close(). +*/ } +perf_mmap_close (vma);return ret; }
kernel/events/internal.h +1 -0
@@ -67,6 +67,7 @@ static inline void rb_free_rcu(struct rcstruct perf_buffer *rb; rb = container_of(rcu_head, struct perf_buffer, rcu_head); +free_uid (rb->mmap_user);rb_free (rb); }
kernel/events/ring_buffer.c +2 -0
@@ -340,6 +340,8 @@ ring_buffer_init(struct perf_buffer *rb, rb->paused =1 ;mutex_init (&rb->aux_mutex); + rb->mmap_user =get_current_user (); +refcount_set (&rb->mmap_count,1 ); }void perf_aux_output_flag (struct perf_output_handle *handle,u64 flags)
Greg Kroah-Hartman
maintainerPATCH 17/1518 platform/x86: intel_sar: Check ACPI_HANDLE() against NULL
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: "Rafael J. Wysocki" <[email protected]>
[ Upstream commit 2765f16c12af7c2533763e46b8113b727354012d ]
Every platform driver can be forced to match a device that doesn't match its list of device IDs because of device_match_driver_override(), so platform drivers that rely on the existence of a device's ACPI companion object need to verify its presence.
Accordingly, add a requisite ACPI_HANDLE() check against NULL to the platform/x86 intel_sar driver.
For this stable dependency, also convert the existing allocations in parse_package() and sar_probe() to kmalloc_objs() and kzalloc_obj(). Both helpers are already available in this tree and retain the same allocation sizes and GFP_KERNEL flags. This makes intel_sar.c match the parent of 30c906cff490 ("platform/x86: int1092: Fix potential memory leak in sar_probe()"), allowing that target to apply unchanged. No new functions or allocation helpers are introduced.
Stable-dep-of: 30c906cff490 ("platform/x86: int1092: Fix potential memory leak in sar_probe()")
--- drivers/platform/x86/intel/int1092/intel_sar.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
drivers/platform/x86/intel/int1092/intel_sar.c +9 -4
@@ -91,8 +91,8 @@ static acpi_status parse_package(struct item->package.count <= data->total_dev_mode)return AE_ERROR ; - data->device_mode_info =kmalloc_array (data->total_dev_mode, -sizeof (struct wwan_device_mode_info ),GFP_KERNEL ); + data->device_mode_info = kmalloc_objs(struct wwan_device_mode_info, + data->total_dev_mode);if (!data->device_mode_info)return AE_ERROR ;
@@ -245,15 +245,20 @@ static void sar_get_data(int reg, structstatic int sar_probe (struct platform_device *device) {struct wwan_sar_context *context; +acpi_handle handle;int reg;int result; - context =kzalloc (sizeof (*context),GFP_KERNEL ); + handle =ACPI_HANDLE (&device->dev); +if (!handle) +return -ENODEV ; + + context =kzalloc_obj (*context);if (!context)return -ENOMEM ; context->sar_device = device; - context->handle =ACPI_HANDLE (&device->dev); + context->handle = handle;dev_set_drvdata (&device->dev, context); result =guid_parse (SAR_DSM_UUID , &context->guid);
Greg Kroah-Hartman
maintainerPATCH 18/1518 platform/x86: ISST: Check for admin capability for write commands
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Srinivas Pandruvada <[email protected]>
[ Upstream commit 69cd1ca440a96c85dcedcddfa5e0af6012f60b8b ]
In some SST deployments, administrators want to allow reading SST capabilities for non-root users. This can be achieved by changing file permissions for "/dev/isst_interface", but they still want to prevent any changes to the SST configuration by non-root users.
This capability was available before for non-TPMI SST. Extend the same capability for TPMI SST by adding a check for CAP_SYS_ADMIN for all write commands.
Stable-dep-of: e45d6b847286 ("platform/x86: ISST: Validate max level for set feature")
--- drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c +6 -5
@@ -625,7 +625,7 @@ static long isst_if_core_power_state(voireturn -EINVAL ;if (core_power.get_set) { -if (power_domain_info->write_blocked) +if (power_domain_info->write_blocked || !capable (CAP_SYS_ADMIN ))return -EPERM ; if (core_power.enable > SST_CP_MAX_ENABLE ||
@@ -684,7 +684,7 @@ static long isst_if_clos_param(void __usreturn -EINVAL ;if (clos_param.get_set) { -if (power_domain_info->write_blocked) +if (power_domain_info->write_blocked || !capable (CAP_SYS_ADMIN ))return -EPERM ;if (!in_range (clos_param.min_freq_mhz /SST_MUL_FACTOR_FREQ ,0 ,SST_MAX_FREQ +1 ))
@@ -795,7 +795,8 @@ static long isst_if_clos_assoc(void __us power_domain_info = &sst_inst->power_domain_info[part][punit_id]; -if (assoc_cmds.get_set && power_domain_info->write_blocked) +if (assoc_cmds.get_set && (power_domain_info->write_blocked || + !capable (CAP_SYS_ADMIN )))return -EPERM ; offset = SST_CLOS_ASSOC_0_OFFSET +
@@ -973,7 +974,7 @@ static int isst_if_set_perf_level(void _if (!power_domain_info)return -EINVAL ; -if (power_domain_info->write_blocked) +if (power_domain_info->write_blocked || !capable (CAP_SYS_ADMIN ))return -EPERM ;if (!(power_domain_info->pp_header.allowed_level_mask &BIT (perf_level.level)))
@@ -1033,7 +1034,7 @@ static int isst_if_set_perf_feature(voidif (!power_domain_info)return -EINVAL ; -if (power_domain_info->write_blocked) +if (power_domain_info->write_blocked || !capable (CAP_SYS_ADMIN ))return -EPERM ;if (perf_feature.feature & ~SST_PP_FEATURE_STATE_VALID_MASK )
Greg Kroah-Hartman
maintainerPATCH 19/1518 PM: runtime: Wrapper macros for ACQUIRE()/ACQUIRE_ERR()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: "Rafael J. Wysocki" <[email protected]>
[ Upstream commit ef8057b07c72a817537856b98d6e7493b9404eaf ]
Add wrapper macros for ACQUIRE()/ACQUIRE_ERR() and runtime PM usage counter guards introduced recently: pm_runtime_active_try, pm_runtime_active_auto_try, pm_runtime_active_try_enabled, and pm_runtime_active_auto_try_enabled.
The new macros should be more straightforward to use.
For example, they can be used for rewriting a piece of code like below:
ACQUIRE(pm_runtime_active_try, pm)(dev);
if ((ret = ACQUIRE_ERR(pm_runtime_active_try, &pm)))
return ret;in the following way:
PM_RUNTIME_ACQUIRE(dev, pm);
if ((ret = PM_RUNTIME_ACQUIRE_ERR(&pm)))
return ret;If the original code does not care about the specific error code returned when attepmting to resume the device:
ACQUIRE(pm_runtime_active_try, pm)(dev);
if (ACQUIRE_ERR(pm_runtime_active_try, &pm))
return -ENXIO;it may be changed like this:
PM_RUNTIME_ACQUIRE(dev, pm);
if (PM_RUNTIME_ACQUIRE_ERR(&pm))
return -ENXIO;Stable-dep-of: d378fceaafd7 ("iio: light: apds9306: fix PM reference leak in apds9306_read_data()")
--- include/linux/pm_runtime.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
include/linux/pm_runtime.h +24 -0
@@ -637,6 +637,30 @@ DEFINE_GUARD_COND(pm_runtime_active_autoDEFINE_GUARD_COND (pm_runtime_active_auto, _try_enabled,pm_runtime_resume_and_get (_T), _RET ==0 ) +/* ACQUIRE() wrapper macros for the guards defined above. */ + +#define PM_RUNTIME_ACQUIRE (_dev, _var) \ + ACQUIRE(pm_runtime_active_try, _var)(_dev) + +#define PM_RUNTIME_ACQUIRE_AUTOSUSPEND (_dev, _var) \ + ACQUIRE(pm_runtime_active_auto_try, _var)(_dev) + +#define PM_RUNTIME_ACQUIRE_IF_ENABLED (_dev, _var) \ + ACQUIRE(pm_runtime_active_try_enabled, _var)(_dev) + +#define PM_RUNTIME_ACQUIRE_IF_ENABLED_AUTOSUSPEND (_dev, _var) \ + ACQUIRE(pm_runtime_active_auto_try_enabled, _var)(_dev) + +/* +* ACQUIRE_ERR() wrapper macro for guard pm_runtime_active. +* +* Always check PM_RUNTIME_ACQUIRE_ERR() after using one of the +* PM_RUNTIME_ACQUIRE*() macros defined above (yes, it can be used with +* any of them) and if it is nonzero, avoid accessing the given device. +*/ +#define PM_RUNTIME_ACQUIRE_ERR (_var_ptr) \ + ACQUIRE_ERR(pm_runtime_active, _var_ptr) +/** * pm_runtime_put_sync - Drop device usage counter and run "idle check" if 0. * @dev: Target device.
Greg Kroah-Hartman
maintainerPATCH 2/1518 drm/amd/display: Fix backlight max_brightness to match exported range
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mario Limonciello <[email protected]>
[ Upstream commit bd9e2b5b0473c75abc0f4134dfe79ecbfb16610d ]
[Why]
FWTS autobrightness fails on eDP panels because actual_brightness can read higher than the advertised max_brightness (e.g. 63576 vs 62451).
The conversion helpers expose the firmware PWM range to userspace as [0..max]. But max_brightness is advertised as (max - min), which is smaller. So reading the level can return a value above max_brightness.
This regressed in commit 4b61b8a39051 ("drm/amd/display: Add debugging message for brightness caps"), which changed max_brightness to (max - min) and undid commit 8dbd72cb7900 ("drm/amd/display: Export full brightness range to userspace").
[How]
Advertise max_brightness as max, and scale the initial AC/DC brightness against max too. Update the KUnit expectations to match.
[ Backport note: In 6.18.y the backlight property setup still lives in
amdgpu_dm.c, so apply the same property changes there. The upstream KUnit file was introduced by a later refactoring and is not present. ]
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +3 -3
@@ -5228,11 +5228,11 @@ amdgpu_dm_register_backlight_device(struct amdgpu_dm_connector *aconnector) caps = &dm->backlight_caps[aconnector->bl_idx];if (get_brightness_range (caps, &min, &max)) {if (power_supply_is_system_supplied () >0 ) - props.brightness =DIV_ROUND_CLOSEST ((max - min) * caps->ac_level,100 ); + props.brightness =DIV_ROUND_CLOSEST (max * caps->ac_level,100 );else - props.brightness =DIV_ROUND_CLOSEST ((max - min) * caps->dc_level,100 ); + props.brightness =DIV_ROUND_CLOSEST (max * caps->dc_level,100 );/* min is zero, so max needs to be adjusted */ - props.max_brightness = max - min; + props.max_brightness = max;drm_dbg (drm,"Backlight caps: min: %d, max: %d, ac %d, dc %d\n" , min, max, caps->ac_level, caps->dc_level); }else
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 20/1518 ring-buffer: Show persistent buffer dropped events in trace_pipe file
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Steven Rostedt <[email protected]>
[ Upstream commit 8928e4a3be34bf053f9ef1cad67263604bf4f05e ]
When the persistent ring buffer is validated on boot up, if a subbuffer is deemed invalid, it resets the buffer and continues. Have the code preserve the RB_MISSED_EVENTS flag in the commit portion of the subbuffer header and pass that back so that the trace_pipe file can show the missed events like the trace file does.
For example:
<...>-1242 [005] d.... 4429.120116: page_fault_user: address=0x7ffaebb6e728 ip=0x7ffaeb9d4960 error_code=0x7 <...>-1242 [005] ..... 4429.120124: mm_page_alloc: page=00000000055254f3 pfn=0x1373bd order=0 migratetype=1 gfp_flags=GFP_HIGHUSER_MOVABLE|__GFP_COMP <...>-1242 [005] d..2. 4429.120132: tlb_flush: pages:1 reason:local MM shootdown (3) CPU:5 [LOST EVENTS] <...>-1242 [005] d.... 4429.120661: page_fault_user: address=0x55ba7c2d0944 ip=0x55ba7c20cd02 error_code=0x7 <...>-1242 [005] ..... 4429.120669: mm_page_alloc: page=0000000005a02500 pfn=0x12b6e4 order=0 migratetype=1 gfp_flags=GFP_HIGHUSER_MOVABLE|__GFP_COMP <...>-1242 [005] d..2. 4429.120680: tlb_flush: pages:1 reason:local MM shootdown (3)
Backport notes for 6.18:
Keep the ring_buffer_read_page() changes needed as context for 6365c44a824f ("ring-buffer: Allow splice reads on static buffers"). Separate the raw commit flags from the page byte count and preserve the lost-events flag when copying page contents. Keep the existing bpage name, rb_page_capacity(reader) bounds and unsigned lost-event count. Read and mask bpage->commit directly instead of adding the newer data-page helpers.
Drop the reader-page unknown-loss propagation: this tree lacks the persistent invalid-subbuffer recovery and signed-loss reporting changes that make that path meaningful.
Keep the copy loop bounded by the page size, not event_size, avoiding the one-event-per-read regression subsequently fixed by af05b4e06279. Preserve the loss flag when trimming a swapped page to real_end, and combine output flags with bitwise OR so an already-set flag is not added a second time.
Stable-dep-of: 6365c44a824f ("ring-buffer: Allow splice reads on static buffers")
--- kernel/trace/ring_buffer.c | 56 +++++++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 24 deletions(-)
kernel/trace/ring_buffer.c +32 -24
@@ -6682,6 +6682,7 @@ int ring_buffer_read_page(struct trace_bstruct buffer_page *reader;unsigned long missed_events;unsigned int commit; +unsigned int size;unsigned int read;u64 save_timestamp;
@@ -6716,7 +6717,8 @@ int ring_buffer_read_page(struct trace_b event =rb_reader_event (cpu_buffer); read = reader->read; - commit =rb_page_size (reader); + commit =rb_page_commit (reader); + size =rb_page_size (reader);/* Check if any events were dropped */ missed_events = cpu_buffer->lost_events;
@@ -6728,13 +6730,14 @@ int ring_buffer_read_page(struct trace_b* we must copy the data from the page to the buffer. * Otherwise, we can simply swap the page with the one passed in. */ -if (read || (len < (commit - read)) || +if (read || (len < (size - read)) || cpu_buffer->reader_page == cpu_buffer->commit_page || cpu_buffer->mapped) {struct buffer_data_page *rpage = cpu_buffer->reader_page->page;unsigned int rpos = read;unsigned int pos =0 ; -unsigned int size; +unsigned int event_size; +unsigned int flags =0 ;/* * If a full page is expected, this can still be returned
@@ -6743,19 +6746,22 @@ int ring_buffer_read_page(struct trace_b* the reader page. */ if (full && - (!read || (len < (commit - read)) || + (!read || (len < (size - read)) || cpu_buffer->reader_page == cpu_buffer->commit_page))return -1 ; -if (len > (commit - read)) - len = (commit - read); +if (len > (size - read)) + len = (size - read);/* Always keep the time extend and data together */ - size =rb_event_ts_length (event); + event_size =rb_event_ts_length (event); -if (len < size) +if (len < event_size)return -1 ; +if (commit &RB_MISSED_EVENTS ) + flags =RB_MISSED_EVENTS ; +/* save the current timestamp, since the user will need it */ save_timestamp = cpu_buffer->read_stamp;
@@ -6767,25 +6773,25 @@ int ring_buffer_read_page(struct trace_b* one or two events. * We have already ensured there's enough space if this * is a time extend. */ - size =rb_event_length (event); -memcpy (bpage->data + pos, rpage->data + rpos, size); + event_size =rb_event_length (event); +memcpy (bpage->data + pos, rpage->data + rpos, event_size); - len -= size; + len -= event_size;rb_advance_reader (cpu_buffer); rpos = reader->read; - pos += size; + pos += event_size; -if (rpos >= commit) +if (rpos >= size)break ; event =rb_reader_event (cpu_buffer);/* Always keep the time extend and data together */ - size =rb_event_ts_length (event); - }while (len >= size); + event_size =rb_event_ts_length (event); + }while (len >= event_size);/* update bpage */ -local_set (&bpage->commit, pos); +local_set (&bpage->commit, pos | flags); bpage->time_stamp = save_timestamp;/* we copied everything to the beginning */
@@ -6810,12 +6816,14 @@ int ring_buffer_read_page(struct trace_b* on the page. */ if (reader->real_end) -local_set (&bpage->commit, reader->real_end); +local_set (&bpage->commit, reader->real_end | + (commit &RB_MISSED_EVENTS )); } cpu_buffer->lost_events =0 ; commit =local_read (&bpage->commit); + size = commit & ~RB_MISSED_MASK ;/* * Set a flag in the commit field if we lost events */
@@ -6823,20 +6831,20 @@ int ring_buffer_read_page(struct trace_b/* If there is room at the end of the page to save the * missed events, then record it there. */ -if (rb_page_capacity (reader) - commit >=sizeof (missed_events)) { -memcpy (&bpage->data[commit], &missed_events, +if (rb_page_capacity (reader) - size >=sizeof (missed_events)) { +memcpy (&bpage->data[size], &missed_events,sizeof (missed_events)); -local_add (RB_MISSED_STORED , &bpage->commit); - commit +=sizeof (missed_events); + commit |=RB_MISSED_STORED ; + size +=sizeof (missed_events); } -local_add (RB_MISSED_EVENTS , &bpage->commit); +local_set (&bpage->commit, commit |RB_MISSED_EVENTS ); }/* * This page may be off to user land. Zero it out here. */ -if (commit <rb_page_capacity (reader)) -memset (&bpage->data[commit],0 ,rb_page_capacity (reader) - commit); +if (size <rb_page_capacity (reader)) +memset (&bpage->data[size],0 ,rb_page_capacity (reader) - size);return read; }
Greg Kroah-Hartman
maintainerPATCH 21/1518 staging: rtl8723bs: fix spacing around operators
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vivek BalachandharTN <[email protected]>
[ Upstream commit 2038fe84b8bdf894b634f777096685e78e8f3774 ]
Fix several instances where operators lacked spaces around them. This improves readability and brings the driver closer to kernel coding-style guidelines. No functional change.
For this stable dependency, retain only the spacing change to the IE advance in rtw_restruct_wmm_ie(). This supplies the exact context needed by target commit 28a289beaf226 ("staging: rtl8723bs: fix OOB read in rtw_restruct_wmm_ie()"). Drop the unrelated operator-spacing hunks.
Keep the existing bounds-first WMM match condition from stable commit 4dd2d9cf563c5 (upstream a75281626fc8f); applying the older condition would undo its out-of-bounds-read fix. No functional change.
Stable-dep-of: 28a289beaf22 ("staging: rtl8723bs: fix OOB read in rtw_restruct_wmm_ie()")
--- drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_mlme.c +1 -1
@@ -2029,7 +2029,7 @@ int rtw_restruct_wmm_ie(struct adapter *break ; } - i += (in_ie[i+1 ]+2 );/* to the next IE element */ + i += (in_ie[i +1 ] +2 );/* to the next IE element */ }return ielength;
Greg Kroah-Hartman
maintainerPATCH 22/1518 tracing/probes: ignore id update from btf_type_skip_modifiers
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Martin Kaiser <[email protected]>
[ Upstream commit 823b37855829bc328d46102a56e4d0b2f7a3d0d1 ]
We can pass NULL as id pointer to btf_type_skip_modifiers if we do not need the id of the returned btf_type.
Stable-dep-of: 47e93045a2db ("tracing/probes: Fix BTF kflag check for anonymous struct member access")
--- kernel/trace/trace_probe.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
kernel/trace/trace_probe.c +5 -8
@@ -355,9 +355,8 @@ static bool btf_type_is_char_ptr(struct {const struct btf_type *real_type;u32 intdata; -s32 tid; - real_type =btf_type_skip_modifiers (btf, type->type, &tid); + real_type =btf_type_skip_modifiers (btf, type->type,NULL );if (!real_type)return false;
@@ -374,14 +373,13 @@ static bool btf_type_is_char_array(strucconst struct btf_type *real_type;const struct btf_array *array;u32 intdata; -s32 tid;if (BTF_INFO_KIND (type->info) !=BTF_KIND_ARRAY )return false; array = (const struct btf_array *)(type +1 ); - real_type =btf_type_skip_modifiers (btf, array->type, &tid); + real_type =btf_type_skip_modifiers (btf, array->type,NULL ); intdata =btf_type_int (real_type);return !(BTF_INT_ENCODING (intdata) &BTF_INT_SIGNED )
@@ -584,7 +582,6 @@ static int parse_btf_field(char *fieldnastruct btf *btf =ctx_btf (ctx);char *next;int is_ptr; -s32 tid; do { if (!is_struct) {
@@ -595,7 +592,7 @@ static int parse_btf_field(char *fieldna }/* Convert a struct pointer type to a struct type */ - type =btf_type_skip_modifiers (btf, type->type, &tid); + type =btf_type_skip_modifiers (btf, type->type,NULL );if (!type) {trace_probe_log_err (ctx->offset,BAD_BTF_TID );return -EINVAL ;
@@ -635,7 +632,7 @@ static int parse_btf_field(char *fieldna ctx->last_bitsize =0 ; } - type =btf_type_skip_modifiers (btf, field->type, &tid); + type =btf_type_skip_modifiers (btf, field->type,NULL );if (!type) {trace_probe_log_err (ctx->offset,BAD_BTF_TID );return -EINVAL ;
@@ -754,7 +751,7 @@ static int parse_btf_arg(char *varname,return -ENOENT ; found: - type =btf_type_skip_modifiers (ctx->btf, tid, &tid); + type =btf_type_skip_modifiers (ctx->btf, tid,NULL ); found_type:if (!type) {trace_probe_log_err (ctx->offset,BAD_BTF_TID );
Greg Kroah-Hartman
maintainerPATCH 23/1518 udf: Move udf_map_block() up
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jan Kara <[email protected]>
[ Upstream commit 97e9d759a4193eabe4d8b6ecac093aac664c16e3 ]
Move udf_map_block() in the file to avoid forward declarations.
Stable-dep-of: 62333e480d12 ("udf: Fix data loss when converting inline inodes to out of line")
--- fs/udf/inode.c | 118 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 59 insertions(+), 59 deletions(-)
fs/udf/inode.c +59 -59
@@ -337,65 +337,6 @@ const struct address_space_operations ud .migrate_folio = buffer_migrate_folio, }; -/* -* Expand file stored in ICB to a normal one-block-file -* -* This function requires i_mutex held -*/ -int udf_expand_file_adinicb (struct inode *inode) -{ -struct folio *folio; -struct udf_inode_info *iinfo =UDF_I (inode); -int err; - -WARN_ON_ONCE (!inode_is_locked (inode)); -if (!iinfo->i_lenAlloc) { -down_write (&iinfo->i_data_sem); -if (UDF_QUERY_FLAG (inode->i_sb,UDF_FLAG_USE_SHORT_AD )) - iinfo->i_alloc_type =ICBTAG_FLAG_AD_SHORT ; -else - iinfo->i_alloc_type =ICBTAG_FLAG_AD_LONG ; -up_write (&iinfo->i_data_sem); -mark_inode_dirty (inode); -return 0 ; - } - - folio =__filemap_get_folio (inode->i_mapping,0 , -FGP_LOCK |FGP_ACCESSED |FGP_CREAT ,GFP_KERNEL ); -if (IS_ERR (folio)) -return PTR_ERR (folio); - -if (!folio_test_uptodate (folio)) -udf_adinicb_read_folio (folio); -down_write (&iinfo->i_data_sem); -memset (iinfo->i_data + iinfo->i_lenEAttr,0x00 , - iinfo->i_lenAlloc); - iinfo->i_lenAlloc =0 ; -if (UDF_QUERY_FLAG (inode->i_sb,UDF_FLAG_USE_SHORT_AD )) - iinfo->i_alloc_type =ICBTAG_FLAG_AD_SHORT ; -else - iinfo->i_alloc_type =ICBTAG_FLAG_AD_LONG ; -folio_mark_dirty (folio); -folio_unlock (folio); -up_write (&iinfo->i_data_sem); - err =filemap_fdatawrite (inode->i_mapping); -if (err) { -/* Restore everything back so that we don't lose data... */ -folio_lock (folio); -down_write (&iinfo->i_data_sem); -memcpy_from_folio (iinfo->i_data + iinfo->i_lenEAttr, - folio,0 , inode->i_size); -folio_unlock (folio); - iinfo->i_alloc_type =ICBTAG_FLAG_AD_IN_ICB ; - iinfo->i_lenAlloc = inode->i_size; -up_write (&iinfo->i_data_sem); - } -folio_put (folio); -mark_inode_dirty (inode); - -return err; -} -#define UDF_MAP_CREATE 0x01/* Mapping can allocate new blocks */ #define UDF_MAP_NOPREALLOC 0x02/* Do not preallocate blocks */
@@ -456,6 +397,65 @@ out_read:return ret; } +/* +* Expand file stored in ICB to a normal one-block-file +* +* This function requires i_mutex held +*/ +int udf_expand_file_adinicb (struct inode *inode) +{ +struct folio *folio; +struct udf_inode_info *iinfo =UDF_I (inode); +int err; + +WARN_ON_ONCE (!inode_is_locked (inode)); +if (!iinfo->i_lenAlloc) { +down_write (&iinfo->i_data_sem); +if (UDF_QUERY_FLAG (inode->i_sb,UDF_FLAG_USE_SHORT_AD )) + iinfo->i_alloc_type =ICBTAG_FLAG_AD_SHORT ; +else + iinfo->i_alloc_type =ICBTAG_FLAG_AD_LONG ; +up_write (&iinfo->i_data_sem); +mark_inode_dirty (inode); +return 0 ; + } + + folio =__filemap_get_folio (inode->i_mapping,0 , +FGP_LOCK |FGP_ACCESSED |FGP_CREAT ,GFP_KERNEL ); +if (IS_ERR (folio)) +return PTR_ERR (folio); + +if (!folio_test_uptodate (folio)) +udf_adinicb_read_folio (folio); +down_write (&iinfo->i_data_sem); +memset (iinfo->i_data + iinfo->i_lenEAttr,0x00 , + iinfo->i_lenAlloc); + iinfo->i_lenAlloc =0 ; +if (UDF_QUERY_FLAG (inode->i_sb,UDF_FLAG_USE_SHORT_AD )) + iinfo->i_alloc_type =ICBTAG_FLAG_AD_SHORT ; +else + iinfo->i_alloc_type =ICBTAG_FLAG_AD_LONG ; +folio_mark_dirty (folio); +folio_unlock (folio); +up_write (&iinfo->i_data_sem); + err =filemap_fdatawrite (inode->i_mapping); +if (err) { +/* Restore everything back so that we don't lose data... */ +folio_lock (folio); +down_write (&iinfo->i_data_sem); +memcpy_from_folio (iinfo->i_data + iinfo->i_lenEAttr, + folio,0 , inode->i_size); +folio_unlock (folio); + iinfo->i_alloc_type =ICBTAG_FLAG_AD_IN_ICB ; + iinfo->i_lenAlloc = inode->i_size; +up_write (&iinfo->i_data_sem); + } +folio_put (folio); +mark_inode_dirty (inode); + +return err; +} +static int __udf_get_block (struct inode *inode,sector_t block,struct buffer_head *bh_result,int flags) {
Greg Kroah-Hartman
maintainerPATCH 24/1518 wifi: mt76: mt7996: bound the device EEPROM address before the EFUSE copy
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bryam Vargas <[email protected]>
[ Upstream commit 13b3c29a782033ce4a230be9e5618032813dbcd4 ]
mt7996_mcu_get_eeprom() derives the destination of the EFUSE/EXT block copy from the address reported by the MCU response (event->addr, a device-controlled __le32) and clamps only the copy length, never the destination offset into dev->mt76.eeprom.data. A malicious or malfunctioning device can report an arbitrary address and drive an out-of-bounds write of up to MT7996_EXT_EEPROM_BLOCK_SIZE bytes past eeprom.data.
Reject a response whose address would place the copy outside eeprom.data before deriving the destination pointer. Devices that echo the requested in-bounds offset are unaffected.
--- drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c +7 -1
@@ -3866,8 +3866,14 @@ int mt7996_mcu_get_eeprom(struct mt7996_if (valid) {u32 addr =le32_to_cpu (*(__le32 *)(skb->data +12 )); -if (!buf) +if (!buf) { +if (addr > dev->mt76.eeprom.size - +MT7996_EEPROM_BLOCK_SIZE ) { +dev_kfree_skb (skb); +return -EINVAL ; + } buf = (u8 *)dev->mt76.eeprom.data + addr; + }if (!buf_len || buf_len >MT7996_EEPROM_BLOCK_SIZE ) buf_len =MT7996_EEPROM_BLOCK_SIZE ;
Greg Kroah-Hartman
maintainerPATCH 25/1518 compiler_types: Move lock checking attributes to compiler-context-analysis.h
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Marco Elver <[email protected]>
[ Upstream commit de15fecae44df8254fa597bad7eb3680a8b1c10c ]
The conditional definition of lock checking macros and attributes is about to become more complex. Factor them out into their own header for better readability, and to make it obvious which features are supported by which mode (currently only Sparse). This is the first step towards generalizing towards "context analysis".
No functional change intended.
Stable-dep-of: 912edebe8501 ("futex: Provide rt_mutex_.*_schedule() equivalents for futex scheduling")
--- include/linux/compiler-context-analysis.h | 32 ++++++++++++++++++++++++++++++ include/linux/compiler_types.h | 18 +--------------- 2 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 include/linux/compiler-context-analysis.h
include/linux/compiler-context-analysis.h new file +32 -0
@@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Macros and attributes for compiler-based static context analysis. +*/ + +#ifndef _LINUX_COMPILER_CONTEXT_ANALYSIS_H +#define _LINUX_COMPILER_CONTEXT_ANALYSIS_H + +#ifdef __CHECKER__ + +/* Sparse context/lock checking support. */ +# define __must_hold (x) __attribute__((context(x,1,1))) +# define __acquires (x) __attribute__((context(x,0,1))) +# define __cond_acquires (x) __attribute__((context(x,0,-1))) +# define __releases (x) __attribute__((context(x,1,0))) +# define __acquire (x) __context__(x,1) +# define __release (x) __context__(x,-1) +# define __cond_lock (x, c) ((c) ? ({ __acquire(x); 1; }) : 0) + +#else /* !__CHECKER__ */ + +# define __must_hold (x) +# define __acquires (x) +# define __cond_acquires (x) +# define __releases (x) +# define __acquire (x) (void)0 +# define __release (x) (void)0 +# define __cond_lock (x, c) (c) + +#endif /* __CHECKER__ */ + +#endif /* _LINUX_COMPILER_CONTEXT_ANALYSIS_H */
include/linux/compiler_types.h +2 -16
@@ -37,6 +37,8 @@# define BTF_TYPE_TAG (value)/* nothing */ #endif +#include <linux/compiler-context-analysis.h> +/* sparse defines __CHECKER__; see Documentation/dev-tools/sparse.rst */ #ifdef __CHECKER__/* address spaces */
@@ -47,14 +49,6 @@# define __rcu __attribute__((noderef, address_space(__rcu)))static inline void __chk_user_ptr (const volatile void __user *ptr) { }static inline void __chk_io_ptr (const volatile void __iomem *ptr) { } -/* context/locking */ -# define __must_hold (x) __attribute__((context(x,1,1))) -# define __acquires (x) __attribute__((context(x,0,1))) -# define __cond_acquires (x) __attribute__((context(x,0,-1))) -# define __releases (x) __attribute__((context(x,1,0))) -# define __acquire (x) __context__(x,1) -# define __release (x) __context__(x,-1) -# define __cond_lock (x,c) ((c) ? ({ __acquire(x); 1; }) : 0)/* other */ # define __force __attribute__((force))# define __nocast __attribute__((nocast))
@@ -75,14 +69,6 @@ static inline void __chk_io_ptr(const vo# define __chk_user_ptr (x) (void)0# define __chk_io_ptr (x) (void)0 -/* context/locking */ -# define __must_hold (x) -# define __acquires (x) -# define __cond_acquires (x) -# define __releases (x) -# define __acquire (x) (void)0 -# define __release (x) (void)0 -# define __cond_lock (x,c) (c)/* other */ # define __force# define __nocast
Greg Kroah-Hartman
maintainerPATCH 26/1518 i2c: qcom-cci: Do not check return value of cci_init()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vladimir Zapolskiy <[email protected]>
[ Upstream commit 17c5d247e3e4708cac05ff087c8013c0dda383a2 ]
The cci_init() function is not supposed to fail, and it never returns a non-zero, so it'd make sense to convert its signature to void.
Stable-dep-of: f98d49864821 ("i2c: qcom-cci: fix autosuspend cleanup")
--- drivers/i2c/busses/i2c-qcom-cci.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/i2c/busses/i2c-qcom-cci.c +2 -6
@@ -246,7 +246,7 @@ static int cci_reset(struct cci *cci)return 0 ; } -static int cci_init (struct cci *cci) +static void cci_init (struct cci *cci) {u32 val =CCI_IRQ_MASK_0_I2C_M0_RD_DONE | CCI_IRQ_MASK_0_I2C_M0_Q0_REPORT |
@@ -287,8 +287,6 @@ static int cci_init(struct cci *cci) val = hw->scl_stretch_en <<8 | hw->trdhld <<4 | hw->tsp;writel (val, cci->base +CCI_I2C_Mm_MISC_CTL (i)); } - -return 0 ; }static int cci_run_queue (struct cci *cci,u8 master,u8 queue)
@@ -598,9 +596,7 @@ static int cci_probe(struct platform_devif (ret <0 ) goto error; - ret =cci_init (cci); -if (ret <0 ) - goto error; +cci_init (cci);pm_runtime_set_autosuspend_delay (dev,MSEC_PER_SEC );pm_runtime_use_autosuspend (dev);
Greg Kroah-Hartman
maintainerPATCH 27/1518 tracing: Clean up use of trace_create_maxlat_file()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Steven Rostedt <[email protected]>
[ Upstream commit ba73713da50e5c24499ca8941171593466ea34f7 ]
In trace.c, the function trace_create_maxlat_file() is defined behind the
#ifdef CONFIG_TRACER_MAX_TRACE block. The #else part defines it as:
#define trace_create_maxlat_file(tr, d_tracer) \
trace_create_file("tracing_max_latency", TRACE_MODE_WRITE, \
d_tracer, tr, &tracing_max_lat_fops)But the one place that it it used has:
#ifdef CONFIG_TRACER_MAX_TRACE trace_create_maxlat_file(tr, d_tracer);
#endif
Which is pointless and also wrong!
It only gets created when both CONFIG_TRACE_MAX_TRACE and CONFIG_FS_NOTIFY is defined, but the file itself should not be dependent on CONFIG_FS_NOTIFY. Always create that file when TRACE_MAX_TRACE is defined regardless if FS_NOTIFY is or is not.
Stable-dep-of: f2951ebd15c3 ("tracing: Take trace_array reference when opening options file")
--- kernel/trace/trace.c | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-)
kernel/trace/trace.c +16 -22
@@ -1904,10 +1904,7 @@ static ssize_t trace_seq_to_buffer(strucunsigned long __read_mostly tracing_thresh;#ifdef CONFIG_TRACER_MAX_TRACE -static const struct file_operations tracing_max_lat_fops; -#ifdef LATENCY_FS_NOTIFY -static struct workqueue_struct *fsnotify_wq;static void latency_fsnotify_workfn (struct work_struct *work)
@@ -1924,17 +1921,6 @@ static void latency_fsnotify_workfn_irq(queue_work (fsnotify_wq, &tr->fsnotify_work); } -static void trace_create_maxlat_file (struct trace_array *tr, -struct dentry *d_tracer) -{ -INIT_WORK (&tr->fsnotify_work, latency_fsnotify_workfn); -init_irq_work (&tr->fsnotify_irqwork, latency_fsnotify_workfn_irq); - tr->d_max_latency =trace_create_file ("tracing_max_latency" , -TRACE_MODE_WRITE , - d_tracer, tr, - &tracing_max_lat_fops); -} -__init static int latency_fsnotify_init (void ) { fsnotify_wq = alloc_workqueue("tr_max_lat_wq",
@@ -1959,14 +1945,22 @@ void latency_fsnotify(struct trace_array*/ irq_work_queue(&tr->fsnotify_irqwork); } +#endif /* !LATENCY_FS_NOTIFY */ -#else /* !LATENCY_FS_NOTIFY */ - -#define trace_create_maxlat_file (tr, d_tracer) \ - trace_create_file("tracing_max_latency", TRACE_MODE_WRITE, \ - d_tracer, tr, &tracing_max_lat_fops) +static const struct file_operations tracing_max_lat_fops; +static void trace_create_maxlat_file (struct trace_array *tr, +struct dentry *d_tracer) +{ +#ifdef LATENCY_FS_NOTIFY +INIT_WORK (&tr->fsnotify_work, latency_fsnotify_workfn); +init_irq_work (&tr->fsnotify_irqwork, latency_fsnotify_workfn_irq);#endif + tr->d_max_latency =trace_create_file ("tracing_max_latency" , +TRACE_MODE_WRITE , + d_tracer, tr, + &tracing_max_lat_fops); +}/* * Copy the new maximum trace into the separate maximum-trace
@@ -2101,7 +2095,9 @@ update_max_tr_single(struct trace_array__update_max_tr (tr, tsk, cpu);arch_spin_unlock (&tr->max_lock); } - +#else /* !CONFIG_TRACER_MAX_TRACE */ +static inline void trace_create_maxlat_file (struct trace_array *tr, +struct dentry *d_tracer) { }#endif /* CONFIG_TRACER_MAX_TRACE */ struct pipe_wait {
@@ -10392,9 +10388,7 @@ init_tracer_tracefs(struct trace_array *create_trace_options_dir (tr); -#ifdef CONFIG_TRACER_MAX_TRACE trace_create_maxlat_file (tr, d_tracer); -#endif if (ftrace_create_function_files (tr, d_tracer))MEM_FAIL (1 ,"Could not allocate function filter files" );
Greg Kroah-Hartman
maintainerPATCH 28/1518 io_uring: unify task_work cancelation checks
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jens Axboe <[email protected]>
[ Upstream commit 7be20254a743be4f02414b9d56cc3fe5f84e6500 ]
Rather than do per-tw checking, which needs to dip into the task_struct for checking flags, do it upfront before running task_work. This places a 'cancel' member in io_tw_token_t, which is assigned before running task_work for that given ctx.
This is both more efficient in doing it upfront rather than for every task_work, and it means that io_should_terminate_tw() can be made private in io_uring.c rather than need to be called by various callbacks of task_work.
Stable-dep-of: 14572de82e50 ("io_uring/waitid: honor task_work cancellation")
--- include/linux/io_uring_types.h | 1 + io_uring/io_uring.c | 27 ++++++++++++++++++++------- io_uring/io_uring.h | 13 ------------- io_uring/poll.c | 2 +- io_uring/timeout.c | 2 +- io_uring/uring_cmd.c | 2 +- 6 files changed, 24 insertions(+), 23 deletions(-)
include/linux/io_uring_types.h +1 -0
@@ -482,6 +482,7 @@ struct io_ring_ctx {* ONLY core io_uring.c should instantiate this struct. */ struct io_tw_state { +bool cancel; };/* Alias to use in code that doesn't instantiate struct io_tw_state */ typedef struct io_tw_state io_tw_token_t ;
io_uring/io_uring.c +20 -7
@@ -268,6 +268,20 @@ static __cold void io_ring_ctx_ref_free(complete (&ctx->ref_comp); } +/* +* Terminate the request if either of these conditions are true: +* +* 1) It's being executed by the original task, but that task is marked +* with PF_EXITING as it's exiting. +* 2) PF_KTHREAD is set, in which case the invoker of the task_work is +* our fallback task_work. +* 3) The ring has been closed and is going away. +*/ +static inline bool io_should_terminate_tw (struct io_ring_ctx *ctx) +{ +return (current->flags & (PF_EXITING |PF_KTHREAD )) ||percpu_ref_is_dying (&ctx->refs); +} +static __cold void io_fallback_req_func (struct work_struct *work) { struct io_ring_ctx *ctx = container_of(work, struct io_ring_ctx,
@@ -278,8 +292,10 @@ static __cold void io_fallback_req_func(percpu_ref_get (&ctx->refs);mutex_lock (&ctx->uring_lock); -llist_for_each_entry_safe (req, tmp, node, io_task_work.node) +llist_for_each_entry_safe (req, tmp, node, io_task_work.node) { + ts.cancel =io_should_terminate_tw (req->ctx); req->io_task_work.func (req, ts); + }io_submit_flush_completions (ctx);mutex_unlock (&ctx->uring_lock);percpu_ref_put (&ctx->refs);
@@ -1152,6 +1168,7 @@ struct llist_node *io_handle_tw_list(str ctx = req->ctx;mutex_lock (&ctx->uring_lock);percpu_ref_get (&ctx->refs); + ts.cancel =io_should_terminate_tw (ctx); } INDIRECT_CALL_2(req->io_task_work.func, io_poll_task_func, io_req_rw_complete,
@@ -1210,11 +1227,6 @@ struct llist_node *tctx_task_work_run(st {struct llist_node *node; -if (unlikely (current->flags &PF_EXITING )) { -io_fallback_tw (tctx, true); -return NULL ; - } - node =llist_del_all (&tctx->task_list);if (node) { node =llist_reverse_order (node);
@@ -1432,6 +1444,7 @@ static int __io_run_local_work(struct ioif (ctx->flags &IORING_SETUP_TASKRUN_FLAG )atomic_andnot (IORING_SQ_TASKRUN , &ctx->rings->sq_flags); again: + tw.cancel =io_should_terminate_tw (ctx); min_events -= ret; ret =__io_run_local_work_loop (&ctx->retry_llist.first, tw, max_events);if (ctx->retry_llist.first)
@@ -1491,7 +1504,7 @@ void io_req_task_submit(struct io_kiocbstruct io_ring_ctx *ctx = req->ctx;io_tw_lock (ctx, tw); -if (unlikely (io_should_terminate_tw (ctx))) +if (unlikely (tw.cancel))io_req_defer_failed (req, -EFAULT );else if (req->flags &REQ_F_FORCE_ASYNC )io_queue_iowq (req);
io_uring/io_uring.h +0 -13
@@ -582,19 +582,6 @@ static inline bool io_allowed_run_tw(str ctx->submitter_task == current); } -/* -* Terminate the request if either of these conditions are true: -* -* 1) It's being executed by the original task, but that task is marked -* with PF_EXITING as it's exiting. -* 2) PF_KTHREAD is set, in which case the invoker of the task_work is -* our fallback task_work. -*/ -static inline bool io_should_terminate_tw (struct io_ring_ctx *ctx) -{ -return (current->flags & (PF_KTHREAD |PF_EXITING )) ||percpu_ref_is_dying (&ctx->refs); -} -static inline void io_req_queue_tw_complete (struct io_kiocb *req,s32 res) {io_req_set_res (req, res,0 );
io_uring/poll.c +1 -1
@@ -225,7 +225,7 @@ static int io_poll_check_events(struct i {int v; -if (unlikely (io_should_terminate_tw (req->ctx))) +if (unlikely (tw.cancel))return -ECANCELED ; do {
io_uring/timeout.c +1 -1
@@ -324,7 +324,7 @@ static void io_req_task_link_timeout(strint ret;if (prev) { -if (!io_should_terminate_tw (req->ctx)) { +if (!tw.cancel) {struct io_cancel_data cd = { .ctx = req->ctx, .data = prev->cqe.user_data,
io_uring/uring_cmd.c +1 -1
@@ -120,7 +120,7 @@ static void io_uring_cmd_work(struct io_ struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);unsigned int flags =IO_URING_F_COMPLETE_DEFER ; -if (io_should_terminate_tw (req->ctx)) +if (unlikely (tw.cancel)) flags |=IO_URING_F_TASK_DEAD ;/* task_work executor checks the deffered list completion */
Greg Kroah-Hartman
maintainerPATCH 29/1518 nvdimm: preserve flush callback -ENOMEM
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Li Chen <[email protected]>
[ Upstream commit 6b7108712a4b1c37cac69815aede1dde202b3187 ]
nvdimm_flush() maps provider flush failures to -EIO. Keep that default because provider callbacks can report host-side or backend failures that should remain generic I/O errors to the guest.
Guest-side allocation failures should not be reported as I/O errors. In the virtio-pmem path, the flush request allocation can fail with -ENOMEM before any request is submitted to the host. Mapping that to -EIO makes resource pressure look like media failure.
Preserve -ENOMEM from provider callbacks and continue to map other non-zero provider failures to -EIO. The generic flush path still returns 0, and pmem_submit_bio() already converts errno values to block status for bio completion.
Message-ID: <[email protected]>
Stable-dep-of: e57140944b5a ("nvdimm: virtio_pmem: refcount requests for token lifetime")
--- drivers/nvdimm/region_devs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/nvdimm/region_devs.c +2 -1
@@ -1094,7 +1094,8 @@ int nvdimm_flush(struct nd_region *nd_reif (!nd_region->flush) rc =generic_nvdimm_flush (nd_region);else { -if (nd_region->flush (nd_region, bio)) + rc = nd_region->flush (nd_region, bio); +if (rc && rc != -ENOMEM ) rc = -EIO ; }
Greg Kroah-Hartman
maintainerPATCH 3/1518 drm/amd/display: Scale custom brightness curve from full range
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Akhmed Zhitaev <[email protected]>
[ Upstream commit 6fd83a1c2cdea48c396f600795217fbdfb8124f6 ]
Custom brightness curves use an 8-bit input signal. After exporting the full PWM range to userspace, the curve normalizer still divides requests by the physical PWM span. On panels with a nonzero minimum PWM level, this can produce a curve input greater than 255 and send an invalid backlight level to DC.
Scale the userspace [0..max] range to the curve's [0..255] range instead. This retains the full advertised range and keeps the reverse readback conversion unchanged.
[ Backport note: In 6.18.y the brightness helpers still live in
amdgpu_dm.c, while upstream changes the later amdgpu_dm_backlight.c. Apply the same semantic change at the old location; the logic is otherwise unchanged. ]
(Move to amdgpu_dm_backlight.c)
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +4 -4
@@ -4958,10 +4958,10 @@ static int get_brightness_range(const struct amdgpu_dm_backlight_caps *caps,return 1 ; } -/* Rescale from [min..max] to [0..AMDGPU_MAX_BL_LEVEL] */ -static inline u32 scale_input_to_fw (int min,int max,u64 input) +/* Rescale userspace [0..max] to the firmware curve's [0..255]. */ +static inline u32 scale_input_to_fw (int max,u64 input) { -return DIV_ROUND_CLOSEST_ULL (input *AMDGPU_MAX_BL_LEVEL , max - min); +return DIV_ROUND_CLOSEST_ULL (input *AMDGPU_MAX_BL_LEVEL , max); }/* Rescale from [0..AMDGPU_MAX_BL_LEVEL] to [min..max] */
@@ -4974,7 +4974,7 @@ static void convert_custom_brightness(const struct amdgpu_dm_backlight_caps *cap unsigned int min, unsigned int max, uint32_t *user_brightness) { - u32 brightness = scale_input_to_fw(min, max, *user_brightness); + u32 brightness = scale_input_to_fw(max, *user_brightness);u8 lower_signal, upper_signal, upper_lum, lower_lum, lum;int left, right;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 30/1518 ALSA: FCP: do not copy out an uninitialised init response
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Baul Lee <[email protected]>
[ Upstream commit 4335e387786479889e6db691fe06d345e52ea536 ]
fcp_ioctl_init() allocates its response buffer with kmalloc() and copies the whole buffer back to userspace:
buf_size = init.step0_resp_size + init.step2_resp_size; void *resp __free(kfree) = kmalloc(buf_size, GFP_KERNEL); ... if (copy_to_user(arg->resp, resp, buf_size)) return -EFAULT;
Nothing clears the buffer, and the only writer of its leading step0_resp_size bytes is the step-0 control transfer:
err = snd_usb_ctl_msg(dev, usb_rcvctrlpipe(dev, 0), FCP_USB_REQ_STEP0, USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN, 0, private->bInterfaceNumber, step0_resp, private->step0_resp_size); if (err < 0) return err;
usb_fill_control_urb() does not set URB_SHORT_NOT_OK, so a short or zero-length data stage completes with status 0 and snd_usb_ctl_msg() returns a small actual_length. The only check is err < 0, so a short transfer is accepted as success.
snd_usb_ctl_msg() copies the full size back unconditionally:
buf = kmemdup(data, size, GFP_KERNEL); ... memcpy(data, buf, size);
Bytes the device never wrote are therefore restored into resp unchanged and copied to userspace. step0_resp_size and step2_resp_size are each validated only to 1..255, so the caller also picks the slab cache, from kmalloc-8 up to kmalloc-512.
On 7.2.0-rc5 (arm64), device answering step 0 with a zero-length data stage, s0 = s2 = 255:
# init_on_alloc off, no spray step0 window [0,255): nonzero=94/255 000: 00 80 60 06 00 00 ff ff 18 00 00 00 57 01 ea 01 010: 08 78 22 13 00 00 ff ff a8 c4 5f 80 00 80 ff ff
# same kernel, kmalloc-512 pre-seeded with an 8-byte tag step0 window [0,255): nonzero=219/255 tagbytes=232
# identical run, init_on_alloc=1 step0 window [0,255): nonzero=0/255 tagbytes=0
# all three runs step2 window [255,510): device words matched=62/62
a8 c4 5f 80 00 80 ff ff is the little-endian kernel text address ffff8000805fc4a8. The step-2 window is unaffected, so the disclosure is exactly the step-0 region.
Zero the buffer, and require the step-0 transfer to deliver the full step0_resp_size bytes so a short data stage is reported as an error.
Discovered by XBOW, triaged by Baul Lee <[email protected]>
--- sound/usb/fcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
sound/usb/fcp.c +3 -1
@@ -494,7 +494,7 @@ static int fcp_ioctl_init(struct usb_mix buf_size = init.step0_resp_size + init.step2_resp_size; void *resp __free(kfree) = -kmalloc (buf_size,GFP_KERNEL ); +kzalloc (buf_size,GFP_KERNEL );if (!resp)return -ENOMEM ;
@@ -1033,6 +1033,8 @@ static int fcp_init(struct usb_mixer_int step0_resp, private->step0_resp_size);if (err <0 )return err; +if (err != private->step0_resp_size) +return -EIO ; err =fcp_init_notify (mixer);if (err <0 )
Greg Kroah-Hartman
maintainerPATCH 31/1518 ASoC: tegra: Fix the MIXER enable default value
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jon Hunter <[email protected]>
[ Upstream commit 5442b8093a2f94ecd4696b3875194be09e2676c5 ]
Commit 4b05ccb17f92 ("regcache: Sort the local copy of an unsorted reg_defaults array") exposed an issue in the Tegra MIXER driver where the register default for the TEGRA210_MIXER_ENABLE is specified as 1, but the hardware default is actually 0. After this commit was added the MIXER driver is no longer working and so fix this by correcting the default value for this register and explicitly configuring the MIXER_ENABLE register when runtime resuming the MIXER device.
--- sound/soc/tegra/tegra210_mixer.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
sound/soc/tegra/tegra210_mixer.c +7 -3
@@ -57,7 +57,7 @@ static const struct reg_default tegra210MIXER_TX_REG_DEFAULTS (3 ),MIXER_TX_REG_DEFAULTS (4 ), - { TEGRA210_MIXER_ENABLE, 0x1 }, + { TEGRA210_MIXER_ENABLE, 0x0 }, { TEGRA210_MIXER_CG, 0x00000001}, { TEGRA210_MIXER_GAIN_CFG_RAM_CTRL, 0x00004000}, { TEGRA210_MIXER_PEAKM_RAM_CTRL, 0x00004000},
@@ -86,11 +86,15 @@ static int tegra210_mixer_runtime_suspenstatic int tegra210_mixer_runtime_resume (struct device *dev) {struct tegra210_mixer *mixer =dev_get_drvdata (dev); +int err;regcache_cache_only (mixer->regmap, false); -regcache_sync (mixer->regmap); + err =regcache_sync (mixer->regmap); +if (err) +return err; -return 0 ; +return regmap_write (mixer->regmap,TEGRA210_MIXER_ENABLE , +TEGRA210_MIXER_EN ); } static int tegra210_mixer_write_ram(struct tegra210_mixer *mixer,
Greg Kroah-Hartman
maintainerPATCH 32/1518 i3c: master: Fix recursive locking during device registration
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Adrian Hunter <[email protected]>
[ Upstream commit 456f832e5fc26fbfd3b8200fd4553eee520cc377 ]
i3c_master_register_new_i3c_devs() registers newly discovered devices while holding i3c_bus_normaluse_lock(), a down_read(). device_register() can immediately probe the device, and probe callbacks typically invoke I3C helpers that take i3c_bus_normaluse_lock() again, leading to a recursive acquisition of the same rwsem. rwsems do not support recursive read locking and can deadlock when a writer is waiting. See the "Recursive read locks" section of Documentation/locking/lockdep-design.rst.
For example, with Intel LPSS I3C, LOCKDEP generates a WARNING like:
# echo intel-lpss-i3c.0 > /sys/bus/platform/drivers/mipi-i3c-hci/unbind
# echo intel-lpss-i3c.0 > /sys/bus/platform/drivers/mipi-i3c-hci/bind
WARNING: possible recursive locking detected
kworker/5:1/94 is trying to acquire lock:
ffff88811c810d78 (&i3cbus->lock){++++}-{4:4}, at: i3c_device_match_id+0x45/0x370
but task is already holding lock:
ffff88811c810d78 (&i3cbus->lock){++++}-{4:4}, at: i3c_master_reg_work_fn+0x21/0x5f0Fix this by separating device creation from device registration. Populate desc->dev under the maintenance lock, collect the devices that still need registration into a local list, then release the lock before calling device_register(). Finally retake the lock and clean up any devices that failed to register.
Use the maintenance lock rather than the normal-use lock while adding device objects. A write-side maintenance lock prevents readers from observing a partially initialized desc->dev during initial device population, or desc->dev disappearing if registration fails.
The local list requires a list node, so add a list node member to struct i3c_device.
--- drivers/i3c/master.c | 45 +++++++++++++++++++++++++++++++++------------ include/linux/i3c/master.h | 3 +++ 2 files changed, 36 insertions(+), 12 deletions(-)
drivers/i3c/master.c +33 -12
@@ -1787,12 +1787,21 @@ err_free_dev:static void i3c_master_register_new_i3c_devs (struct i3c_master_controller *master) { +struct i3c_device *i3cdev, *tmp;struct i3c_dev_desc *desc; +LIST_HEAD (i3c_unreg_devs);int ret;if (!master->init_done)return ; +i3c_bus_maintenance_lock (&master->bus); + +if (master->shutting_down) { +i3c_bus_maintenance_unlock (&master->bus); +return ; + } +i3c_bus_for_each_i3cdev (&master->bus, desc) {if (desc->dev || !desc->info.dyn_addr || desc == master->this)continue ;
@@ -1813,25 +1822,37 @@ i3c_master_register_new_i3c_devs(structif (desc->boardinfo) desc->dev->dev.of_node = desc->boardinfo->of_node; - ret =device_register (&desc->dev->dev); -if (ret) { -dev_err (&master->dev, -"Failed to add I3C device (err = %d)\n" , ret); - desc->dev->desc =NULL ; -put_device (&desc->dev->dev); - desc->dev =NULL ; - } +list_add_tail (&desc->dev->node, &i3c_unreg_devs); } + +i3c_bus_maintenance_unlock (&master->bus); + +list_for_each_entry_safe (i3cdev, tmp, &i3c_unreg_devs, node) { + ret =device_register (&i3cdev->dev); +if (ret) +dev_err (&master->dev,"Failed to add I3C device (err = %d)\n" , ret); +else +list_del_init (&i3cdev->node); + } + +i3c_bus_maintenance_lock (&master->bus); + +list_for_each_entry_safe (i3cdev, tmp, &i3c_unreg_devs, node) { +list_del (&i3cdev->node); + desc = i3cdev->desc; + i3cdev->desc =NULL ; +put_device (&i3cdev->dev); + desc->dev =NULL ; + } + +i3c_bus_maintenance_unlock (&master->bus); }static void i3c_master_reg_work_fn (struct work_struct *work) {struct i3c_master_controller *master =container_of (work,typeof (*master), reg_work); -i3c_bus_normaluse_lock (&master->bus); -if (!master->shutting_down) -i3c_master_register_new_i3c_devs (master); -i3c_bus_normaluse_unlock (&master->bus); +i3c_master_register_new_i3c_devs (master); }/**
include/linux/i3c/master.h +3 -0
@@ -228,6 +228,8 @@ struct i3c_dev_desc {* every time the I3C device is rediscovered with a different dynamic * address assigned * @bus: I3C bus this device is attached to +* @node: unregistered device list node, only for use by +* i3c_master_register_new_i3c_devs(), it is not protected by a lock * * I3C device object exposed to I3C device drivers. The takes care of linking * this object to the relevant &struct_i3c_dev_desc one.
@@ -238,6 +240,7 @@ struct i3c_device {struct device dev;struct i3c_dev_desc *desc;struct i3c_bus *bus; +struct list_head node; };/*
Greg Kroah-Hartman
maintainerPATCH 33/1518 iio: light: apds9306: fix PM reference leak in apds9306_read_data()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Moksh Panicker <[email protected]>
[ Upstream commit d378fceaafd79e0dc59d3546bda251a3058062c0 ]
apds9306_read_data() calls pm_runtime_resume_and_get() but several error paths return directly without calling pm_runtime_put_autosuspend(), leaking the runtime PM reference and preventing the device from autosuspending.
Use PM_RUNTIME_ACQUIRE_AUTOSUSPEND() and PM_RUNTIME_ACQUIRE_ERR() to automatically handle runtime PM reference release on all return paths.
--- drivers/iio/light/apds9306.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/iio/light/apds9306.c +3 -5
@@ -471,9 +471,9 @@ static int apds9306_read_data(struct apdint status =0 ;u8 buff[3 ]; - ret =pm_runtime_resume_and_get (data->dev); -if (ret) -return ret; +PM_RUNTIME_ACQUIRE_AUTOSUSPEND (data->dev, pm); +if (PM_RUNTIME_ACQUIRE_ERR (&pm)) +return PM_RUNTIME_ACQUIRE_ERR (&pm); ret =regmap_field_read (rf->intg_time, &intg_time_idx);if (ret)
@@ -537,8 +537,6 @@ static int apds9306_read_data(struct apd *val =get_unaligned_le24 (&buff); -pm_runtime_put_autosuspend (data->dev); -return 0 ; }
Greg Kroah-Hartman
maintainerPATCH 34/1518 misc: fastrpc: dont publish fd before copy_to_user() succeeds
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Baineng Shou <[email protected]>
[ Upstream commit a4a1a2bfcb29785292d634d7787edc6fb550714d ]
fastrpc_ioctl_alloc_dmabuf() calls dma_buf_fd() which installs the fd into the caller's fd table before copy_to_user() copies the fd number back to userspace. If copy_to_user() fails, the fd is already visible to other threads in the same process but the ioctl returns -EFAULT. The existing comment in the code even acknowledges the problem:
"The usercopy failed, but we can't do much about it, as dma_buf_fd()
already called fd_install()..."
Now that dma_buf_fd_install() is available (introduced to fix the same issue in dma-heap), apply the same pattern here: reserve the fd with get_unused_fd_flags(), attempt copy_to_user(), and only on success call dma_buf_fd_install() to publish it atomically with the tracepoint. On copy_to_user() failure, put_unused_fd() and dma_buf_put() cleanly unwind without any user-visible side effects.
--- drivers/misc/fastrpc.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)
drivers/misc/fastrpc.c +6 -10
@@ -1681,24 +1681,20 @@ static int fastrpc_dmabuf_alloc(struct freturn err; } - bp.fd =dma_buf_fd (buf->dmabuf,O_ACCMODE ); + bp.fd =get_unused_fd_flags (O_ACCMODE );if (bp.fd <0 ) {dma_buf_put (buf->dmabuf); -return -EINVAL ; +return bp.fd; }if (copy_to_user (argp, &bp,sizeof (bp))) { -/* -* The usercopy failed, but we can't do much about it, as -* dma_buf_fd() already called fd_install() and made the -* file descriptor accessible for the current process. It -* might already be closed and dmabuf no longer valid when -* we reach this point. Therefore "leak" the fd and rely on -* the process exit path to do any required cleanup. -*/ +put_unused_fd (bp.fd); +dma_buf_put (buf->dmabuf);return -EFAULT ; } +dma_buf_fd_install (buf->dmabuf, bp.fd); +return 0 ; }
Greg Kroah-Hartman
maintainerPATCH 35/1518 mtd: rawnand: pl353: Make sure we use the monolithic helpers for raw accesses
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: "Miquel Raynal (DAVE)" <[email protected]>
[ Upstream commit 80ecacd054ffeb60cd28e46ed5cd6bd0d2de318b ]
Any access not using the hardware ECC engine should be monolithic because the controller has its very own way of handling the end of a transaction during operation configuration, so we cannot easily make repeated reads.
This has the side effect of fixing support for software ECC engines.
--- drivers/mtd/nand/raw/pl35x-nand-controller.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/mtd/nand/raw/pl35x-nand-controller.c +3 -2
@@ -914,7 +914,6 @@ static int pl35x_nand_init_hw_ecc_contro chip->ecc.steps = mtd->writesize / chip->ecc.size; chip->ecc.read_page = pl35x_nand_read_page_hwecc; chip->ecc.write_page = pl35x_nand_write_page_hwecc; - chip->ecc.write_page_raw = nand_monolithic_write_page_raw;pl35x_smc_set_ecc_pg_size (nfc, chip, mtd->writesize); nfc->ecc_buf = devm_kmalloc(nfc->dev, chip->ecc.bytes * chip->ecc.steps,
@@ -981,7 +980,6 @@ static int pl35x_nand_attach_chip(structcase NAND_ECC_ENGINE_TYPE_NONE :case NAND_ECC_ENGINE_TYPE_SOFT :dev_dbg (nfc->dev,"Using software ECC (Hamming 1-bit/512B)\n" ); - chip->ecc.write_page_raw = nand_monolithic_write_page_raw;break ;case NAND_ECC_ENGINE_TYPE_ON_HOST :dev_dbg (nfc->dev,"Using hardware ECC\n" );
@@ -995,6 +993,9 @@ static int pl35x_nand_attach_chip(structreturn -EINVAL ; } + chip->ecc.read_page_raw = nand_monolithic_read_page_raw; + chip->ecc.write_page_raw = nand_monolithic_write_page_raw; +return 0 ; }
Greg Kroah-Hartman
maintainerPATCH 36/1518 net/mlx5e: do not HW-GRO coalesce small frames
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Glenn Judd <[email protected]>
[ Upstream commit e2466392a0b8496000e12181cb1ee1535eb0da25 ]
When hardware GRO (SHAMPO) coalesces a small IPv4/TCP segment that was padded up to the 60-byte minimum Ethernet frame, the trailing padding is folded into the merged payload causing padding to be delivered to the user as payload.
Detecting and reproducing the issue: the selftest tools/testing/selftests/drivers/net/gro.py subtest hw_ipv4_data_lrg_1byte sends {100, 1} expecting to receive {101}. In current code, it receives {106} (100 + 1 payload + 5 pad) instead.
This patch avoids giving the user padding as payload by simply not coalescing small packets (which fails the subtest; the same approach and behavior as sw gro). This gains code simplicity at the cost of more computation (passing an extra skb up the stack) for small packets that could be coalesced.
The threshold is chosen as ETH_ZLEN + 2 * VLAN_HLEN. This is the largest frame that may still contain minimum-frame padding (+ 2 VLAN tags), so anything larger is safe to consider for coalesce. (We do not include ETH_FCS_LEN in that threshold computation as netdev_fix_features() drops NETIF_F_GRO_HW whenever NETIF_F_RXFCS is set, so retained FCS can't reach this path.)
--- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +5 -0
@@ -2401,6 +2401,11 @@ static void mlx5e_handle_rx_cqe_mpwrq_sh data_offset = wqe_offset & (page_size -1 ); page_idx = wqe_offset >> rq->mpwqe.page_shift; +if (unlikely (cqe_bcnt <=ETH_ZLEN +2 *VLAN_HLEN )) { + match = false; + flush = true; + } +if (*skb && !(match &&mlx5e_hw_gro_skb_has_enough_space (*skb, data_bcnt, page_size))) {
Greg Kroah-Hartman
maintainerPATCH 37/1518 nvme: skip the zoned limits update if the zone info query failed
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chao Shi <[email protected]>
[ Upstream commit 3838e80fcfb32e62baffb63c6dc0a60153665a4d ]
nvme_query_zone_info() returns either a negative errno or a positive NVMe status code, but nvme_update_ns_info_block() only tests for the negative case:
ret = nvme_query_zone_info(ns, lbaf, &zi); if (ret < 0) goto out;
If the device fails the Identify Namespace (I/O Command Set specific) command, or the Identify Controller command issued by nvme_set_max_append(), the positive status falls through and setup continues with the zero-initialized zone info. nvme_update_zone_info() then marks the queue zoned with chunk_sectors and ns->head->zsze set to zero.
blk_validate_zoned_limits() does not check chunk_sectors, so the limits commit succeeds. blk_revalidate_disk_zones() does reject the zero zone size, but by then the limits are live and nothing rolls them back, so I/O keeps being submitted to a zoned queue with a zero zone size and disk_zone_no() shifts by ilog2(0):
nvme0n1: Invalid non power of two zone size (0)
UBSAN: shift-out-of-bounds in include/linux/blkdev.h:747:16 shift exponent -1 is negative disk_zone_no include/linux/blkdev.h:747 [inline] bio_straddles_zones include/linux/blkdev.h:1058 [inline] blk_zone_wplug_handle_write block/blk-zoned.c:1423 [inline] blk_zone_plug_bio.cold+0x25/0x1c8 block/blk-zoned.c:1605 blk_mq_submit_bio+0x18fb/0x2870 block/blk-mq.c:3196 submit_bh_wbc+0x575/0x740 fs/buffer.c:2824 __block_write_full_folio+0x728/0xdd0 fs/buffer.c:1933
Any device, firmware or NVMe-oF target that fails this one command reaches this.
Skip the zoned limits update in that case, and log which of the two things happened: during a revalidation the queue keeps the zone geometry it was last validated with, and on a first scan the namespace is registered without zoned limits, so that it is still available as a handle for admin commands. Neither of the paths in nvme_query_zone_info() that return a positive status logs anything, so the failure would otherwise be silent.
zi.zone_size is an exact indicator: every path that returns a positive status returns before it is assigned, and after that the only failure left is -ENODEV, which the caller already handles.
Found by FuzzNvme.
--- drivers/nvme/host/core.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-)
drivers/nvme/host/core.c +19 -2
@@ -2383,9 +2383,26 @@ static int nvme_update_ns_info_block(strif (!nvme_update_disk_info (ns, id, &lim)) capacity =0 ; +/* +* A failed zone info query leaves zi zero-initialized, so skip the +* zoned limits update instead of configuring the queue from it. +* During a revalidation that keeps the zone geometry the queue was +* last validated with; on a first scan the namespace is registered +* without zoned limits, so that it is still available as a handle +* for admin commands. +*/ if (IS_ENABLED (CONFIG_BLK_DEV_ZONED ) && - ns->head->ids.csi ==NVME_CSI_ZNS ) -nvme_update_zone_info (ns, &lim, &zi); + ns->head->ids.csi ==NVME_CSI_ZNS ) { +if (zi.zone_size) +nvme_update_zone_info (ns, &lim, &zi); +else +dev_warn (ns->ctrl->device, +"zone info query failed for nsid %u, %s\n" , + ns->head->ns_id, +blk_queue_is_zoned (ns->disk->queue) ? +"keeping the previous zone limits" : +"not enabling zoned mode" ); + }if ((ns->ctrl->vwc &NVME_CTRL_VWC_PRESENT ) && !info->no_vwc) lim.features |=BLK_FEAT_WRITE_CACHE |BLK_FEAT_FUA ;
Greg Kroah-Hartman
maintainerPATCH 38/1518 PCI: Allow per function PCI slots to fix slot reset on s390
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Farhan Ali <[email protected]>
[ Upstream commit dcc5bec09e23bbc4f9de055a11fce9937244f2c8 ]
On s390 systems, which use a machine level hypervisor, PCI devices are always accessed through a form of PCI pass-through which fundamentally operates on a per PCI function granularity. This is also reflected in the s390 PCI hotplug driver which creates hotplug slots for individual PCI functions. Its reset_slot() function, which is a wrapper for zpci_hot_reset_device(), thus also resets individual functions.
Currently, the pci_create_slot() assigns the same pci_slot object to multifunction devices. This approach worked fine on s390 systems that only exposed virtual functions as individual PCI domains to the operating system. Since commit 44510d6fa0c0 ("s390/pci: Handling multifunctions") s390 supports exposing the topology of multifunction PCI devices by grouping them in a shared PCI domain. This creates a problem when resetting a function through the hotplug driver's slot_reset() interface.
When attempting to reset a function through the hotplug driver, the shared slot assignment causes the wrong function to be reset instead of the intended one. It also leaks memory as we do create a pci_slot object for the function, but don't correctly free it in pci_slot_release().
Add a flag for struct pci_slot to allow per function PCI slots for functions managed through a hypervisor, which exposes individual PCI functions while retaining the topology. Since we can use all 8 bits for slot 'number' (for ARI devices), change slot 'number' u16 to account for special values PCI_SLOT_PLACEHOLDER and PCI_SLOT_ALL_DEVICES.
--- drivers/pci/pci.c | 5 +++-- drivers/pci/slot.c | 29 +++++++++++++++++++++++------ include/linux/pci.h | 7 ++++--- 3 files changed, 30 insertions(+), 11 deletions(-)
drivers/pci/pci.c +3 -2
@@ -4828,8 +4828,9 @@ static int pci_reset_hotplug_slot(structstatic int pci_dev_reset_slot_function (struct pci_dev *dev,bool probe) { -if (dev->multifunction || dev->subordinate || !dev->slot || - dev->dev_flags &PCI_DEV_FLAGS_NO_BUS_RESET ) +if (dev->subordinate || !dev->slot || + dev->dev_flags &PCI_DEV_FLAGS_NO_BUS_RESET || + (dev->multifunction && !dev->slot->per_func_slot))return -ENOTTY ;return pci_reset_hotplug_slot (dev->slot->hotplug, probe);
drivers/pci/slot.c +23 -6
@@ -72,6 +72,23 @@ static ssize_t cur_speed_read_file(strucreturn bus_speed_read (slot->bus->cur_bus_speed, buf); } +static bool pci_dev_matches_slot (struct pci_dev *dev,struct pci_slot *slot) +{ +if (slot->per_func_slot) +return dev->devfn == slot->number; + +return slot->number ==PCI_SLOT_ALL_DEVICES || +PCI_SLOT (dev->devfn) == slot->number; +} + +static bool pci_slot_enabled_per_func (void ) +{ +if (IS_ENABLED (CONFIG_S390 )) +return true; + +return false; +} +static void pci_slot_release (struct kobject *kobj) {struct pci_dev *dev;
@@ -82,8 +99,7 @@ static void pci_slot_release(struct kobjdown_read (&pci_bus_sem);list_for_each_entry (dev, &slot->bus->devices, bus_list) -if (slot->number ==PCI_SLOT_ALL_DEVICES || -PCI_SLOT (dev->devfn) == slot->number) +if (pci_dev_matches_slot (dev, slot)) dev->slot =NULL ;up_read (&pci_bus_sem);
@@ -176,8 +192,7 @@ void pci_dev_assign_slot(struct pci_devmutex_lock (&pci_slot_mutex);list_for_each_entry (slot, &dev->bus->slots, list) -if (slot->number ==PCI_SLOT_ALL_DEVICES || -PCI_SLOT (dev->devfn) == slot->number) +if (pci_dev_matches_slot (dev, slot)) dev->slot = slot;mutex_unlock (&pci_slot_mutex); }
@@ -288,6 +303,9 @@ placeholder: slot->bus =pci_bus_get (parent); slot->number = slot_nr; +if (pci_slot_enabled_per_func ()) + slot->per_func_slot =1 ; + slot->kobj.kset = pci_slots_kset; slot_name =make_slot_name (name);
@@ -308,8 +326,7 @@ placeholder:down_read (&pci_bus_sem);list_for_each_entry (dev, &parent->devices, bus_list) -if (slot_nr ==PCI_SLOT_ALL_DEVICES || -PCI_SLOT (dev->devfn) == slot_nr) +if (pci_dev_matches_slot (dev, slot)) dev->slot = slot;up_read (&pci_bus_sem);
include/linux/pci.h +4 -3
@@ -78,17 +78,18 @@* and, if ARI Forwarding is enabled, functions may appear to be on multiple * devices. */ -#define PCI_SLOT_ALL_DEVICES 0xfe +#define PCI_SLOT_ALL_DEVICES 0xfeff/* Used to identify a slot as a placeholder */ -#define PCI_SLOT_PLACEHOLDER 0xff +#define PCI_SLOT_PLACEHOLDER 0xffff/* pci_slot represents a physical slot */ struct pci_slot {struct pci_bus *bus;/* Bus this slot is on */ struct list_head list;/* Node in list of slots */ struct hotplug_slot *hotplug;/* Hotplug info (move here) */ -unsigned char number;/* Device nr, or PCI_SLOT_ALL_DEVICES */ +u16 number;/* Device nr, or PCI_SLOT_ALL_DEVICES */ +unsigned int per_func_slot:1 ;/* Allow per function slot */ struct kobject kobj; };
Greg Kroah-Hartman
maintainerPATCH 39/1518 perf: Fix use-after-free when perf mmap() revival races with the last munmap()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yilin Zhang <[email protected]>
[ Upstream commit 58a8108bc73de0740d5b88150465d6690ea5f85f ]
perf_mmap_close() drops rb->mmap_count *without* holding event->mmap_mutex (the refcount_dec_and_test() right before the refcount_dec_and_mutex_lock() of event->mmap_count). A concurrent perf_mmap_rb() can slot its entire "revival" path into that window (perf_mmap holds event->mmap_mutex for its whole duration, including rb_alloc):
munmap side (perf_mmap_close) mmap side (perf_mmap_rb)
----------------------------------- --------------------------------
rb->mmap_count 1 -> 0 (no lock) (holds event->mmap_mutex)
inc_not_zero(rb->mmap_count) fails
ring_buffer_attach(event, NULL)
rb_alloc() + attach new rb
refcount_set(&event->mmap_count, 1) lock; event->mmap_count 1 -> 0
ring_buffer_attach(event, NULL)
ring_buffer_put() -> frees the *new* rb
The revival's refcount_set(&event->mmap_count, 1) is an invisible 1 -> 1 write: the close frees the just-revived buffer although the other process still has it mapped -- a page-level use-after-free allowing local privilege escalation to root by any unprivileged user (default kernel.perf_event_paranoid=2).
Swap the order of the two counter updates: event->mmap_count is dropped first via refcount_dec_and_mutex_lock(), so its 1 -> 0 transition and the ring_buffer_attach() stay serialized with perf_mmap(). rb->mmap_count == 0 then implies every event using the buffer is detached already, so the result of the rb->mmap_count drop can gate the remaining teardown directly and detach_rest is no longer needed.
An earlier fix for this race from Kyle Zeng and David Lee takes event->mmap_mutex around both counter updates [0]; here the not-last close stays lockless.
--- kernel/events/core.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
kernel/events/core.c +10 -10
@@ -6753,7 +6753,6 @@ static void perf_mmap_close(struct vm_armapped_f unmapped =get_mapped (event, event_unmapped);struct perf_buffer *rb =ring_buffer_get (event);struct user_struct *mmap_user = rb->mmap_user; -bool detach_rest = false;/* FIXIES vs perf_pmu_unregister() */ if (unmapped)
@@ -6784,17 +6783,18 @@ static void perf_mmap_close(struct vm_armutex_unlock (&rb->aux_mutex); } -if (refcount_dec_and_test (&rb->mmap_count)) - detach_rest = true; - -if (!refcount_dec_and_mutex_lock (&event->mmap_count, &event->mmap_mutex)) - goto out_put; - -ring_buffer_attach (event,NULL ); -mutex_unlock (&event->mmap_mutex); +/* +* Drop references in reverse order of perf_mmap() to prevent +* rb revival after rb->mmap_count reaches zero. +*/ +if (refcount_dec_and_mutex_lock (&event->mmap_count, + &event->mmap_mutex)) { +ring_buffer_attach (event,NULL ); +mutex_unlock (&event->mmap_mutex); + }/* If there's still other mmap()s of this buffer, we're done. */ -if (!detach_rest) +if (!refcount_dec_and_test (&rb->mmap_count)) goto out_put;/*
Greg Kroah-Hartman
maintainerPATCH 4/1518 batman-adv: dat: atomically update mac addresses
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sven Eckelmann <[email protected]>
commit e6de568d3eda3e3c01c868fabd7a9535d5ee4a73 upstream.
When a MAC address is updated in batadv_dat_entry_add(), it is done using a simple copy function. A parallel reader might only see parts of this update. In worst case, the reader is transporting the half updated MAC address over the network or is creating an ARP response using it - poisoning the ARP cache.
atomic64_t can be used to store the 48 bit of a mac address. A reader will then either see the old mac address or the new one - never a mixture of both.
--- net/batman-adv/distributed-arp-table.c | 58 +++++++++++++++++--------- net/batman-adv/types.h | 2 +- 2 files changed, 40 insertions(+), 20 deletions(-)
net/batman-adv/distributed-arp-table.c +39 -19
@@ -375,18 +375,19 @@ batadv_dat_entry_hash_find(struct batadv_priv *bat_priv, __be32 ip,static void batadv_dat_entry_add (struct batadv_priv *bat_priv,__be32 ip,u8 *mac_addr,unsigned short vid) { +u64 u64_mac =ether_addr_to_u64 (mac_addr);struct batadv_dat_entry *dat_entry;int hash_added; dat_entry =batadv_dat_entry_hash_find (bat_priv, ip, vid);/* if this entry is already known, just update it */ if (dat_entry) { -if (!batadv_compare_eth (dat_entry->mac_addr, mac_addr)) -ether_addr_copy (dat_entry->mac_addr, mac_addr); +atomic64_set (&dat_entry->mac_addr, u64_mac); + dat_entry->last_update = jiffies;batadv_dbg (BATADV_DBG_DAT , bat_priv,"Entry updated: %pI4 %pM (vid: %d)\n" , - &dat_entry->ip, dat_entry->mac_addr, + &dat_entry->ip, mac_addr,batadv_print_vid (vid)); goto out; }
@@ -397,7 +398,7 @@ static void batadv_dat_entry_add(struct batadv_priv *bat_priv, __be32 ip, dat_entry->ip = ip; dat_entry->vid = vid; -ether_addr_copy (dat_entry->mac_addr, mac_addr); +atomic64_set (&dat_entry->mac_addr, u64_mac); dat_entry->last_update = jiffies;kref_init (&dat_entry->refcount);
@@ -413,7 +414,7 @@ static void batadv_dat_entry_add(struct batadv_priv *bat_priv, __be32 ip, }batadv_dbg (BATADV_DBG_DAT , bat_priv,"New entry added: %pI4 %pM (vid: %d)\n" , - &dat_entry->ip, dat_entry->mac_addr,batadv_print_vid (vid)); + &dat_entry->ip, mac_addr,batadv_print_vid (vid)); out:batadv_dat_entry_put (dat_entry);
@@ -868,6 +869,8 @@ batadv_dat_cache_dump_entry(struct sk_buff *msg, u32 portid,struct netlink_callback *cb, struct batadv_dat_entry *dat_entry) { + u8 mac[ETH_ALEN]; +u64 u64_mac;int msecs;void *hdr;
@@ -880,11 +883,12 @@ batadv_dat_cache_dump_entry(struct sk_buff *msg, u32 portid,genl_dump_check_consistent (cb, hdr); msecs =jiffies_to_msecs (jiffies - dat_entry->last_update); + u64_mac =atomic64_read (&dat_entry->mac_addr); +u64_to_ether_addr (u64_mac, mac);if (nla_put_in_addr (msg,BATADV_ATTR_DAT_CACHE_IP4ADDRESS , dat_entry->ip) || -nla_put (msg,BATADV_ATTR_DAT_CACHE_HWADDRESS ,ETH_ALEN , - dat_entry->mac_addr) || +nla_put (msg,BATADV_ATTR_DAT_CACHE_HWADDRESS ,ETH_ALEN , mac) ||nla_put_u16 (msg,BATADV_ATTR_DAT_CACHE_VID , dat_entry->vid) ||nla_put_u32 (msg,BATADV_ATTR_LAST_SEEN_MSECS , msecs)) {genlmsg_cancel (msg, hdr);
@@ -1151,6 +1155,8 @@ bool batadv_dat_snoop_outgoing_arp_request(struct batadv_priv *bat_priv,struct net_device *mesh_iface = bat_priv->mesh_iface;int hdr_size =0 ;unsigned short vid; +u8 mac[ETH_ALEN ]; +u64 u64_mac;if (!atomic_read (&bat_priv->distributed_arp_table)) goto out;
@@ -1178,6 +1184,9 @@ bool batadv_dat_snoop_outgoing_arp_request(struct batadv_priv *bat_priv, dat_entry =batadv_dat_entry_hash_find (bat_priv, ip_dst, vid);if (dat_entry) { + u64_mac =atomic64_read (&dat_entry->mac_addr); +u64_to_ether_addr (u64_mac, mac); +/* If the ARP request is destined for a local client the local * client will answer itself. DAT would only generate a * duplicate packet.
@@ -1186,7 +1195,7 @@ bool batadv_dat_snoop_outgoing_arp_request(struct batadv_priv *bat_priv,* additional DAT answer may trigger kernel warnings about * a packet coming from the wrong port. */ -if (batadv_is_my_client (bat_priv, dat_entry->mac_addr, vid)) { +if (batadv_is_my_client (bat_priv, mac, vid)) { ret = true; goto out; }
@@ -1196,18 +1205,16 @@ bool batadv_dat_snoop_outgoing_arp_request(struct batadv_priv *bat_priv,* the backbone gws belonging to our backbone has claimed the * destination. */ -if (!batadv_bla_check_claim (bat_priv, - dat_entry->mac_addr, vid)) { +if (!batadv_bla_check_claim (bat_priv, mac, vid)) {batadv_dbg (BATADV_DBG_DAT , bat_priv,"Device %pM claimed by another backbone gw. Don't send ARP reply!" , - dat_entry->mac_addr); + mac); ret = true; goto out; } skb_new =batadv_dat_arp_create_reply (bat_priv, ip_dst, ip_src, - dat_entry->mac_addr, - hw_src, vid); + mac, hw_src, vid);if (!skb_new) goto out;
@@ -1249,6 +1256,8 @@ bool batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv,struct batadv_dat_entry *dat_entry =NULL ;bool ret = false;unsigned short vid; +u8 mac[ETH_ALEN ]; +u64 u64_mac;int err;if (!atomic_read (&bat_priv->distributed_arp_table))
@@ -1276,8 +1285,11 @@ bool batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv,if (!dat_entry) goto out; + u64_mac =atomic64_read (&dat_entry->mac_addr); +u64_to_ether_addr (u64_mac, mac); + skb_new =batadv_dat_arp_create_reply (bat_priv, ip_dst, ip_src, - dat_entry->mac_addr, hw_src, vid); + mac, hw_src, vid);if (!skb_new) goto out;
@@ -1368,6 +1380,8 @@ bool batadv_dat_snoop_incoming_arp_reply(struct batadv_priv *bat_priv,u8 *hw_src, *hw_dst;bool dropped = false;unsigned short vid; +u8 mac[ETH_ALEN ]; +u64 u64_mac;if (!atomic_read (&bat_priv->distributed_arp_table)) goto out;
@@ -1396,11 +1410,17 @@ bool batadv_dat_snoop_incoming_arp_reply(struct batadv_priv *bat_priv,* this frame would lead to doubled receive of an ARP reply. */ dat_entry =batadv_dat_entry_hash_find (bat_priv, ip_src, vid); -if (dat_entry &&batadv_compare_eth (hw_src, dat_entry->mac_addr)) { -batadv_dbg (BATADV_DBG_DAT , bat_priv,"Doubled ARP reply removed: ARP MSG = [src: %pM-%pI4 dst: %pM-%pI4]; dat_entry: %pM-%pI4\n" , - hw_src, &ip_src, hw_dst, &ip_dst, - dat_entry->mac_addr, &dat_entry->ip); - dropped = true; +if (dat_entry) { + u64_mac =atomic64_read (&dat_entry->mac_addr); +u64_to_ether_addr (u64_mac, mac); + +if (batadv_compare_eth (hw_src, mac)) { +batadv_dbg (BATADV_DBG_DAT , bat_priv, +"Doubled ARP reply removed: ARP MSG = [src: %pM-%pI4 dst: %pM-%pI4]; dat_entry: %pM-%pI4\n" , + hw_src, &ip_src, hw_dst, &ip_dst, + mac, &dat_entry->ip); + dropped = true; + } }/* Update our internal cache with both the IP addresses the node got
net/batman-adv/types.h +1 -1
@@ -2127,7 +2127,7 @@ struct batadv_dat_entry {__be32 ip;/** @mac_addr: the MAC address associated to the stored IPv4 */ -u8 mac_addr[ETH_ALEN ]; +atomic64_t mac_addr;/** @vid: the vlan ID associated to this entry */ unsigned short vid;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 40/1518 platform/x86: int1092: Fix potential memory leak in sar_probe()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Abdun Nihaal <[email protected]>
[ Upstream commit 30c906cff490c3601ee9ff110fe8115fabe75fd4 ]
The memory allocated for device_mode_info in parse_package() called by sar_get_data() is not freed in some of the error paths in sar_probe(). Fix that by converting to use device managed allocations.
--- drivers/platform/x86/intel/int1092/intel_sar.c | 32 +++++++------------------ 1 file changed, 10 insertions(+), 22 deletions(-)
drivers/platform/x86/intel/int1092/intel_sar.c +10 -22
@@ -91,8 +91,10 @@ static acpi_status parse_package(struct item->package.count <= data->total_dev_mode)return AE_ERROR ; - data->device_mode_info = kmalloc_objs(struct wwan_device_mode_info, - data->total_dev_mode); + data->device_mode_info =devm_kmalloc_array (&context->sar_device->dev, + data->total_dev_mode, +sizeof (*data->device_mode_info), +GFP_KERNEL );if (!data->device_mode_info)return AE_ERROR ;
@@ -253,7 +255,7 @@ static int sar_probe(struct platform_devif (!handle)return -ENODEV ; - context =kzalloc_obj (*context); + context =devm_kzalloc (&device->dev,sizeof (*context),GFP_KERNEL );if (!context)return -ENOMEM ;
@@ -264,7 +266,7 @@ static int sar_probe(struct platform_dev result =guid_parse (SAR_DSM_UUID , &context->guid);if (result) {dev_err (&device->dev,"SAR UUID parse error: %d\n" , result); - goto r_free; +return result; }for (reg =0 ; reg <MAX_REGULATORY ; reg++)
@@ -272,43 +274,29 @@ static int sar_probe(struct platform_devif (sar_get_device_mode (device) !=AE_OK ) {dev_err (&device->dev,"Failed to get device mode\n" ); - result = -EIO ; - goto r_free; +return -EIO ; } result =sysfs_create_group (&device->dev.kobj, &intcsar_group);if (result) {dev_err (&device->dev,"sysfs creation failed\n" ); - goto r_free; +return result; }if (acpi_install_notify_handler (ACPI_HANDLE (&device->dev),ACPI_DEVICE_NOTIFY , sar_notify, (void *)device) !=AE_OK ) {dev_err (&device->dev,"Failed acpi_install_notify_handler\n" ); - result = -EIO ; - goto r_sys; +sysfs_remove_group (&device->dev.kobj, &intcsar_group); +return -EIO ; }return 0 ; - -r_sys: -sysfs_remove_group (&device->dev.kobj, &intcsar_group); -r_free: -kfree (context); -return result; }static void sar_remove (struct platform_device *device) { -struct wwan_sar_context *context =dev_get_drvdata (&device->dev); -int reg; -acpi_remove_notify_handler (ACPI_HANDLE (&device->dev),ACPI_DEVICE_NOTIFY , sar_notify);sysfs_remove_group (&device->dev.kobj, &intcsar_group); -for (reg =0 ; reg <MAX_REGULATORY ; reg++) -kfree (context->config_data[reg].device_mode_info); - -kfree (context); }static struct platform_driver sar_driver = {
Greg Kroah-Hartman
maintainerPATCH 41/1518 platform/x86: ISST: Validate max level for set feature
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Srinivas Pandruvada <[email protected]>
[ Upstream commit e45d6b8472861d3bac86bb37f8556a7c5aca3266 ]
Validate the level before setting, so that it fails early instead of failing later when checking the bit mask for allowed levels.
--- drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c +3 -0
@@ -974,6 +974,9 @@ static int isst_if_set_perf_level(void _if (!power_domain_info)return -EINVAL ; +if (perf_level.level > power_domain_info->max_level) +return -EINVAL ; +if (power_domain_info->write_blocked || !capable (CAP_SYS_ADMIN ))return -EPERM ;
Greg Kroah-Hartman
maintainerPATCH 42/1518 ring-buffer: Allow splice reads on static buffers
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vincent Donnefort <[email protected]>
[ Upstream commit 6365c44a824ff138e7926413932bb5c2e28a4c8c ]
ring_buffer_read_page() rejects splice (full=1) reads on static buffers (that is user-mapped, persistent or remote) because !read check assumes unread pages must be swapped. However for those buffers we have no other choice than memcpy the data.
For the memcpy case, only return an error when the writer is still on the reader page for the splice interface to wait.
--- kernel/trace/ring_buffer.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
kernel/trace/ring_buffer.c +2 -9
@@ -6739,15 +6739,8 @@ int ring_buffer_read_page(struct trace_bunsigned int event_size;unsigned int flags =0 ; -/* -* If a full page is expected, this can still be returned -* if there's been a previous partial read and the -* rest of the page can be read and the commit page is off -* the reader page. -*/ -if (full && - (!read || (len < (size - read)) || - cpu_buffer->reader_page == cpu_buffer->commit_page)) +/* If a full page is requested, it cannot be the commit page */ +if (full && cpu_buffer->reader_page == cpu_buffer->commit_page)return -1 ;if (len > (size - read))
Greg Kroah-Hartman
maintainerPATCH 43/1518 staging: rtl8723bs: fix OOB read in rtw_restruct_wmm_ie()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Muhammad Bilal <[email protected]>
[ Upstream commit 28a289beaf226b30b1e6e7d7b1a2946fe2d6e852 ]
rtw_restruct_wmm_ie() scans in_ie for a WMM IE with:
while (i < in_len) {
...
if (i + 5 < in_len && in_ie[i] == 0xDD && ...) {
...
break;
}
i += (in_ie[i + 1] + 2); /* to the next IE element */
}When the "i + 5 < in_len" match check fails simply because i is within 5 bytes of the end of the buffer (i.e. no WMM IE was found near the tail of in_ie), execution falls through to
"i += (in_ie[i + 1] + 2)", which reads in_ie[i + 1]. If i == in_len
- 1 at that point, this is a 1-byte out-of-bounds read of an attacker-influenced IE buffer built from association/scan data.
Commit a75281626fc8f ("staging: rtl8723bs: fix potential out-of-bounds read in rtw_restruct_wmm_ie") added the "i + 5 < in_len" guard to the match condition itself, but did not add an equivalent guard before the fallthrough advance, so the same class of OOB read remained reachable through the non-matching path.
Add an explicit bounds check before advancing to the next IE.
--- drivers/staging/rtl8723bs/core/rtw_mlme.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/staging/rtl8723bs/core/rtw_mlme.c +3 -0
@@ -2029,6 +2029,9 @@ int rtw_restruct_wmm_ie(struct adapter *break ; } +if (i +1 >= in_len) +break ; + i += (in_ie[i +1 ] +2 );/* to the next IE element */ }
Greg Kroah-Hartman
maintainerPATCH 5/1518 batman-adv: bla: avoid CRC corruption due to parallel claim add
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sven Eckelmann <[email protected]>
commit 08645ab95768b88e2ff85a89211994651710465b upstream.
batadv_bla_add_claim() is used to add claims and modify the backbone of claims for CLAIM frames from remote backbones and local packets. When it handles a claim, it needs to either
* add the new claim's CRC to the backbone CRC
* remove the already existing claim's CRC from the old backbone and add it to the new backbone
But when the "new" claim code was running in parallel to the "change backbone" code, it can happen that the CRC was invalid because the backbone_gw of the claim was changed twice in the "new" claim code path:
* CPU0 creates the claim for gateway A and publishes it in the claim hash. The crc16 of the address has not yet been added to A's crc at this point.
* CPU1 processes a claim frame of gateway B for the same client, finds the just published claim, and performs the ownership change: it switches the pointer to B, removes the crc16 from A's crc - which never contained it - and adds it to B's crc.
* CPU0 continues behind the creation branch, unconditionally switches the pointer back to A without compensating B's crc (its remove_crc is false for the creation path), and finally adds the crc16 to A's crc
The CRC is then wrong for both:
* claim belongs to A: but CRC is not part of backbone A's CRC
* claim doesn't belong to B: CRC is still part of backbone B's CRC
This wrong CRC is never recomputated from the stored claims. For local backbone claims, this can also not recovered using syncs.
To avoid this, split the functionality in clear separate parts:
* new claim which always adds claim CRC to the backbone CRC (but never changes the already set backbone_gw of the claim back)
* update of existing claim which automatically changes the backbone_gw entry and only updates both backbone CRCs when there was an actual change
--- net/batman-adv/bridge_loop_avoidance.c | 63 ++++++++++++++++---------- 1 file changed, 39 insertions(+), 24 deletions(-)
net/batman-adv/bridge_loop_avoidance.c +39 -24
@@ -694,12 +694,14 @@ static void batadv_bla_add_claim(struct batadv_priv *bat_priv,struct batadv_bla_backbone_gw *old_backbone_gw;struct batadv_bla_claim *claim;struct batadv_bla_claim search_claim; -bool remove_crc = false;int hash_added; +u16 claim_crc; +bool changed;ether_addr_copy (search_claim.addr, mac); search_claim.vid = vid; claim =batadv_claim_hash_find (bat_priv, &search_claim); + claim_crc =crc16 (0 , mac,ETH_ALEN );/* create a new claim entry if it does not exist yet. */ if (!claim) {
@@ -731,43 +733,56 @@ static void batadv_bla_add_claim(struct batadv_priv *bat_priv,kfree (claim);return ; } + +spin_lock_bh (&backbone_gw->crc_lock); + backbone_gw->crc ^= claim_crc; +spin_unlock_bh (&backbone_gw->crc_lock); + +WRITE_ONCE (backbone_gw->lasttime, jiffies); + +batadv_claim_put (claim); +return ; + } + +WRITE_ONCE (claim->lasttime, jiffies); + +/* replace backbone_gw atomically and adjust reference counters */ +spin_lock_bh (&claim->backbone_lock); +if (claim->backbone_gw != backbone_gw) { + changed = true; + + old_backbone_gw = claim->backbone_gw; +kref_get (&backbone_gw->refcount); + claim->backbone_gw = backbone_gw; }else { -WRITE_ONCE (claim->lasttime, jiffies); -if (claim->backbone_gw == backbone_gw) -/* no need to register a new backbone */ - goto claim_free_ref; + old_backbone_gw =NULL ; + changed = false; + } +spin_unlock_bh (&claim->backbone_lock); +if (changed) {batadv_dbg (BATADV_DBG_BLA , bat_priv,"%s(): changing ownership for %pM, vid %d to gw %pM\n" , __func__, mac,batadv_print_vid (vid), backbone_gw->orig); - remove_crc = true; - } +/* add claim address to new backbone_gw */ +spin_lock_bh (&backbone_gw->crc_lock); + backbone_gw->crc ^= claim_crc; +spin_unlock_bh (&backbone_gw->crc_lock); -/* replace backbone_gw atomically and adjust reference counters */ -spin_lock_bh (&claim->backbone_lock); - old_backbone_gw = claim->backbone_gw; -kref_get (&backbone_gw->refcount); - claim->backbone_gw = backbone_gw; -spin_unlock_bh (&claim->backbone_lock); +WRITE_ONCE (backbone_gw->lasttime, jiffies); + } -if (remove_crc) { +if (old_backbone_gw) {/* remove claim address from old backbone_gw */ spin_lock_bh (&old_backbone_gw->crc_lock); - old_backbone_gw->crc ^=crc16 (0 , claim->addr,ETH_ALEN ); + old_backbone_gw->crc ^= claim_crc;spin_unlock_bh (&old_backbone_gw->crc_lock); - } - -batadv_backbone_gw_put (old_backbone_gw); -/* add claim address to new backbone_gw */ -spin_lock_bh (&backbone_gw->crc_lock); - backbone_gw->crc ^=crc16 (0 , claim->addr,ETH_ALEN ); -spin_unlock_bh (&backbone_gw->crc_lock); -WRITE_ONCE (backbone_gw->lasttime, jiffies); +batadv_backbone_gw_put (old_backbone_gw); + } -claim_free_ref:batadv_claim_put (claim); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 6/1518 mm/damon/sysfs: read ops_id only once in damon_sysfs_apply_inputs()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: SJ Park <[email protected]>
[ Upstream commit 5adaaa28be8a79ddd7e103b171f9d6e14e7fc26e ]
damon_sysfs_apply_inputs() reads ops_id twice. It could race with ops_id_store(). As a result, the min_region_sz could wrongly be set up. Read it once.
The user impact is trivial. Sane users ain't update the parameter in parallel. Even if it happens, the DAMON core layer handles the wrong min_region_sz (!is_power_of_2()). Even if somehow the race ended up making a min_region_sz that is different from the user's intention but still valid, only monitoring itself runs differently than expected. No critical consequences like kernel panic or memory corruption happen
The issue was discovered [1] by Sashiko.
--- mm/damon/sysfs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
mm/damon/sysfs.c +4 -2
@@ -1440,14 +1440,16 @@ static inline bool damon_sysfs_kdamond_running(static int damon_sysfs_apply_inputs (struct damon_ctx *ctx,struct damon_sysfs_context *sys_ctx) { +enum damon_ops_id ops_id;int err; - err =damon_select_ops (ctx, sys_ctx->ops_id); + ops_id =READ_ONCE (sys_ctx->ops_id); + err =damon_select_ops (ctx, ops_id);if (err)return err; ctx->addr_unit =READ_ONCE (sys_ctx->addr_unit);/* addr_unit is respected by only DAMON_OPS_PADDR */ -if (sys_ctx->ops_id ==DAMON_OPS_PADDR ) +if (ops_id ==DAMON_OPS_PADDR ) ctx->min_sz_region =max (DAMON_MIN_REGION / ctx->addr_unit,1 ); err =damon_sysfs_set_attrs (ctx, sys_ctx->attrs);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 7/1518 batman-adv: fix TX priority extraction for BATADV_FORW_MCAST
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sven Eckelmann <[email protected]>
commit 7aedb59b80993c912ab45ce24386a2775150962b upstream.
batadv_mcast_forw_mode_by_count() pushs the skb->data for BATADV_FORW_MCAST forwarding via batadv_mcast_forw_mcsend(). But the batadv_skb_set_priority() expects the ethernet header directly before (skb->data + offset). With the moved skb->data, just some random data would be accessed to get the priority data.
Move the batadv_skb_set_priority() before the decision about the handling multicast packets and potential header modifications.
--- net/batman-adv/mesh-interface.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
net/batman-adv/mesh-interface.c +5 -2
@@ -258,6 +258,8 @@ static netdev_tx_t batadv_interface_tx(struct sk_buff *skb,if (batadv_compare_eth (ethhdr->h_dest, ectp_addr)) goto dropped; +batadv_skb_set_priority (skb,0 ); + gw_mode =atomic_read (&bat_priv->gw.mode);if (is_multicast_ether_addr (ethhdr->h_dest)) {/* if gw mode is off, broadcast every packet */
@@ -291,6 +293,9 @@ static netdev_tx_t batadv_interface_tx(struct sk_buff *skb, send:if (do_bcast && !is_broadcast_ether_addr (ethhdr->h_dest)) { +/* WARNING batadv_mcast_forw_mode might add more headers +* in front of the skb. and might even reallocate the skb +*/ forw_mode =batadv_mcast_forw_mode (bat_priv, skb, vid, &mcast_is_routable);switch (forw_mode) {
@@ -308,8 +313,6 @@ static netdev_tx_t batadv_interface_tx(struct sk_buff *skb, } } -batadv_skb_set_priority (skb,0 ); -/* ethernet packet should be broadcasted */ if (do_bcast) { primary_if =batadv_primary_if_get_selected (bat_priv);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 8/1518 ALSA: usb-audio: Relax __free() variable declarations
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Takashi Iwai <[email protected]>
[ Upstream commit 03f705b9ca58b91c6dffe64875ea3d9a38cad9b5 ]
We used to have a variable declaration with __free() initialized with NULL. This was to keep the old coding style rule, but recently it's relaxed and rather recommends to follow the new rule to declare in place of use for __free() -- which avoids potential deadlocks or UAFs with nested cleanups.
Although the current code has no bug, per se, let's follow the new standard and move the declaration to the place of assignment (or directly assign the allocated result) instead of NULL initializations.
Note that there are still a few remaining __free(kfree) with NULL initializations; they are because of the code complexity (the data size calculation).
Stable-dep-of: 4335e3877864 ("ALSA: FCP: do not copy out an uninitialised init response")
--- sound/usb/fcp.c | 36 ++++++++++++++++++------------------ sound/usb/mixer_scarlett2.c | 21 ++++++++++----------- sound/usb/quirks.c | 13 ++++++------- 3 files changed, 34 insertions(+), 36 deletions(-)
sound/usb/fcp.c +18 -18
@@ -187,10 +187,6 @@ static int fcp_usb(struct usb_mixer_inte {struct fcp_data *private = mixer->private_data;struct usb_device *dev = mixer->chip->dev; - struct fcp_usb_packet *req __free(kfree) = NULL; - struct fcp_usb_packet *resp __free(kfree) = NULL; -size_t req_buf_size =struct_size (req, data, req_size); -size_t resp_buf_size =struct_size (resp, data, resp_size);int retries =0 ;const int max_retries =5 ;int err;
@@ -198,10 +194,14 @@ static int fcp_usb(struct usb_mixer_inteif (!private->urb)return -ENODEV ; + struct fcp_usb_packet *req __free(kfree) = NULL; +size_t req_buf_size =struct_size (req, data, req_size); req =kmalloc (req_buf_size,GFP_KERNEL );if (!req)return -ENOMEM ; + struct fcp_usb_packet *resp __free(kfree) = NULL; +size_t resp_buf_size =struct_size (resp, data, resp_size); resp =kmalloc (resp_buf_size,GFP_KERNEL );if (!resp)return -ENOMEM ;
@@ -305,16 +305,17 @@ retry:static int fcp_reinit (struct usb_mixer_interface *mixer) {struct fcp_data *private = mixer->private_data; - void *step0_resp __free(kfree) = NULL; - void *step2_resp __free(kfree) = NULL;if (private->urb)return 0 ; - step0_resp =kmalloc (private->step0_resp_size,GFP_KERNEL ); + void *step0_resp __free(kfree) = +kmalloc (private->step0_resp_size,GFP_KERNEL );if (!step0_resp)return -ENOMEM ; - step2_resp =kmalloc (private->step2_resp_size,GFP_KERNEL ); + + void *step2_resp __free(kfree) = +kmalloc (private->step2_resp_size,GFP_KERNEL );if (!step2_resp)return -ENOMEM ;
@@ -472,7 +473,6 @@ static int fcp_ioctl_init(struct usb_mixstruct fcp_init init;struct usb_device *dev = mixer->chip->dev;struct fcp_data *private = mixer->private_data; - void *resp __free(kfree) = NULL;void *step2_resp;int err, buf_size;
@@ -493,7 +493,8 @@ static int fcp_ioctl_init(struct usb_mix/* Allocate response buffer */ buf_size = init.step0_resp_size + init.step2_resp_size; - resp =kmalloc (buf_size,GFP_KERNEL ); + void *resp __free(kfree) = +kmalloc (buf_size,GFP_KERNEL );if (!resp)return -ENOMEM ;
@@ -627,7 +628,6 @@ static int fcp_ioctl_set_meter_map(struc {struct fcp_meter_map map;struct fcp_data *private = mixer->private_data; - s16 *tmp_map __free(kfree) = NULL;int err;if (copy_from_user (&map, arg,sizeof (map)))
@@ -650,7 +650,8 @@ static int fcp_ioctl_set_meter_map(strucreturn -EINVAL ;/* Allocate and copy the map data */ - tmp_map =memdup_array_user (arg->map, map.map_size,sizeof (s16)); + s16 *tmp_map __free(kfree) = +memdup_array_user (arg->map, map.map_size,sizeof (s16));if (IS_ERR (tmp_map))return PTR_ERR (tmp_map);
@@ -660,17 +661,16 @@ static int fcp_ioctl_set_meter_map(struc/* If the control doesn't exist, create it */ if (!private->meter_ctl) { - s16 *new_map __free(kfree) = NULL; - __le32 *meter_levels __free(kfree) = NULL; -/* Allocate buffer for the map */ - new_map =kmalloc_array (map.map_size,sizeof (s16),GFP_KERNEL ); + s16 *new_map __free(kfree) = +kmalloc_array (map.map_size,sizeof (s16),GFP_KERNEL );if (!new_map)return -ENOMEM ;/* Allocate buffer for reading meter levels */ - meter_levels =kmalloc_array (map.meter_slots,sizeof (__le32), -GFP_KERNEL ); + __le32 *meter_levels __free(kfree) = +kmalloc_array (map.meter_slots,sizeof (__le32), +GFP_KERNEL );if (!meter_levels)return -ENOMEM ;
sound/usb/mixer_scarlett2.c +10 -11
@@ -2499,18 +2499,18 @@ static int scarlett2_usb( {struct scarlett2_data *private = mixer->private_data;struct usb_device *dev = mixer->chip->dev; - struct scarlett2_usb_packet *req __free(kfree) = NULL; - struct scarlett2_usb_packet *resp __free(kfree) = NULL; -size_t req_buf_size =struct_size (req, data, req_size); -size_t resp_buf_size =struct_size (resp, data, resp_size);int retries =0 ;const int max_retries =5 ;int err; + struct scarlett2_usb_packet *req __free(kfree) = NULL; +size_t req_buf_size =struct_size (req, data, req_size); req =kmalloc (req_buf_size,GFP_KERNEL );if (!req)return -ENOMEM ; + struct scarlett2_usb_packet *resp __free(kfree) = NULL; +size_t resp_buf_size =struct_size (resp, data, resp_size); resp =kmalloc (resp_buf_size,GFP_KERNEL );if (!resp)return -ENOMEM ;
@@ -4065,9 +4065,9 @@ static int scarlett2_input_select_ctl_instruct scarlett2_data *private = mixer->private_data;int inputs = private->info->gain_input_count;int i, err; - char **values __free(kfree) = NULL; + char **values __free(kfree) = +kcalloc (inputs,sizeof (char *),GFP_KERNEL ); - values =kcalloc (inputs,sizeof (char *),GFP_KERNEL );if (!values)return -ENOMEM ;
@@ -9293,8 +9293,6 @@ static long scarlett2_hwdep_read(struct__le32 len; }__packed req; - u8 *resp __free(kfree) = NULL; -/* Flash segment must first be selected */ if (private->flash_write_state !=SCARLETT2_FLASH_WRITE_STATE_SELECTED )return -EINVAL ;
@@ -9332,7 +9330,8 @@ static long scarlett2_hwdep_read(struct req.offset =cpu_to_le32 (*offset); req.len =cpu_to_le32 (count); - resp =kzalloc (count,GFP_KERNEL ); + u8 *resp __free(kfree) = +kzalloc (count,GFP_KERNEL );if (!resp)return -ENOMEM ;
@@ -9480,7 +9479,6 @@ static ssize_t scarlett2_devmap_read( loff_t pos) {struct usb_mixer_interface *mixer = entry->private_data; - u8 *resp_buf __free(kfree) = NULL;const size_t block_size =SCARLETT2_DEVMAP_BLOCK_SIZE ;size_t copied =0 ;
@@ -9490,7 +9488,8 @@ static ssize_t scarlett2_devmap_read(if (pos + count > entry->size) count = entry->size - pos; - resp_buf =kmalloc (block_size,GFP_KERNEL ); + u8 *resp_buf __free(kfree) = +kmalloc (block_size,GFP_KERNEL );if (!resp_buf)return -ENOMEM ;
sound/usb/quirks.c +6 -7
@@ -555,7 +555,6 @@ int snd_usb_create_quirk(struct snd_usb_static int snd_usb_extigy_boot_quirk (struct usb_device *dev,struct usb_interface *intf) {struct usb_host_config *config = dev->actconfig; - struct usb_device_descriptor *new_device_descriptor __free(kfree) = NULL;int err; if (le16_to_cpu(get_cfg_desc(config)->wTotalLength) == EXTIGY_FIRMWARE_SIZE_OLD ||
@@ -566,8 +565,8 @@ static int snd_usb_extigy_boot_quirk(str 0x10, 0x43, 0x0001, 0x000a, NULL, 0);if (err <0 )dev_dbg (&dev->dev,"error sending boot message: %d\n" , err); - - new_device_descriptor =kmalloc (sizeof (*new_device_descriptor),GFP_KERNEL ); + struct usb_device_descriptor *new_device_descriptor __free(kfree) = +kmalloc (sizeof (*new_device_descriptor),GFP_KERNEL );if (!new_device_descriptor)return -ENOMEM ; err = usb_get_descriptor(dev, USB_DT_DEVICE, 0,
@@ -910,7 +909,6 @@ static void mbox2_setup_48_24_magic(strustatic int snd_usb_mbox2_boot_quirk (struct usb_device *dev) {struct usb_host_config *config = dev->actconfig; - struct usb_device_descriptor *new_device_descriptor __free(kfree) = NULL;int err;u8 bootresponse[0x12 ];int fwsize;
@@ -945,7 +943,8 @@ static int snd_usb_mbox2_boot_quirk(strudev_dbg (&dev->dev,"device initialised!\n" ); - new_device_descriptor =kmalloc (sizeof (*new_device_descriptor),GFP_KERNEL ); + struct usb_device_descriptor *new_device_descriptor __free(kfree) = +kmalloc (sizeof (*new_device_descriptor),GFP_KERNEL );if (!new_device_descriptor)return -ENOMEM ;
@@ -1267,7 +1266,6 @@ static void mbox3_setup_defaults(structstatic int snd_usb_mbox3_boot_quirk (struct usb_device *dev) {struct usb_host_config *config = dev->actconfig; - struct usb_device_descriptor *new_device_descriptor __free(kfree) = NULL;int err;int descriptor_size;
@@ -1280,7 +1278,8 @@ static int snd_usb_mbox3_boot_quirk(strudev_dbg (&dev->dev,"MBOX3: device initialised!\n" ); - new_device_descriptor =kmalloc (sizeof (*new_device_descriptor),GFP_KERNEL ); + struct usb_device_descriptor *new_device_descriptor __free(kfree) = +kmalloc (sizeof (*new_device_descriptor),GFP_KERNEL );if (!new_device_descriptor)return -ENOMEM ;
Greg Kroah-Hartman
maintainerPATCH 9/1518 ASoC: tegra210_mixer: sort the register default table
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Peter Ujfalusi <[email protected]>
[ Upstream commit f70bc276fc7f712ff5c8e995d5050558a3198df2 ]
reg_defaults must be sorted by ascending register address, as regcache_lookup_reg() locates entries in it with bsearch(). See commit fd80df352ba1 ("regcache: Add support for sorting defaults arrays").
TEGRA210_MIXER_ENABLE (0x400) is the last entry of the table, after TEGRA210_MIXER_PEAKM_RAM_CTRL (0x434), which makes it unreachable. regcache_reg_needs_sync() then cannot compare it against its default and reports that a sync is needed, so it is written to the device on every regcache_sync() even when it was never touched.
Sort the table by register address.
Stable-dep-of: 5442b8093a2f ("ASoC: tegra: Fix the MIXER enable default value")
--- sound/soc/tegra/tegra210_mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/tegra/tegra210_mixer.c +1 -1
@@ -57,10 +57,10 @@ static const struct reg_default tegra210MIXER_TX_REG_DEFAULTS (3 ),MIXER_TX_REG_DEFAULTS (4 ), + { TEGRA210_MIXER_ENABLE, 0x1 }, { TEGRA210_MIXER_CG, 0x00000001}, { TEGRA210_MIXER_GAIN_CFG_RAM_CTRL, 0x00004000}, { TEGRA210_MIXER_PEAKM_RAM_CTRL, 0x00004000}, - { TEGRA210_MIXER_ENABLE, 0x1 }, };/* Default gain parameters */
Greg Kroah-Hartman
maintainercover 6.18.52-rc1 review
This is the start of the stable review cycle for the 6.18.52 release. There are 1518 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 Mon, 14 Sep 2026 06:54:17 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.18.52-rc1.gz
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.18.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <[email protected]>
Linux 6.18.52-rc1
Arnd Bergmann <[email protected]>
wifi: mt76: fix airoha_npu dependency tracking
Salman Alghamdi <[email protected]>
staging: rtl8723bs: rtw_mlme: add bounds checks before ie_length subtraction
Shyam Sunder Reddy Padira <[email protected]>
staging: rtl8723bs: os_dep: avoid NULL pointer dereference in rtw_cbuf_alloc
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7583: add missed gpio22 pin group
Tony W Wang-oc <[email protected]>
ACPI: processor: Add cpuidle driver check in acpi_processor_register_idle_driver()
Huisong Li <[email protected]>
ACPI: processor: idle: Remove redundant static variable and rename cstate check function
Huisong Li <[email protected]>
ACPI: processor: idle: Move max_cstate update out of the loop
Huisong Li <[email protected]>
ACPI: processor: idle: Remove redundant cstate check in acpi_processor_power_init
K Prateek Nayak <[email protected]>
cpufreq/amd-pstate: Allow writes to dynamic_epp when state isn't modified
K Prateek Nayak <[email protected]>
cpufreq/amd-pstate: Use "epp_default_dc" as default when dynamic_epp is disabled
Mario Limonciello (AMD) <[email protected]>
cpufreq/amd-pstate: Add support for raw EPP writes
Mario Limonciello (AMD) <[email protected]>
cpufreq/amd-pstate: Add static asserts for EPP indices
Mario Limonciello (AMD) <[email protected]>
cpufreq/amd-pstate: Fix some whitespace issues
Jens Axboe <[email protected]>
io_uring/waitid: fix KCSAN warning on io_waitid->head
Jens Axboe <[email protected]>
io_uring/waitid: use io_waitid_remove_wq() consistently
Jamal Hadi Salim <[email protected]>
net/sched: fq: clamp quantum and initial_quantum in change path
Arnd Bergmann <[email protected]>
Bluetooth: btmtk: hide unused btmtk_mt6639_devs[] array
Pavel Begunkov <[email protected]>
tcp: reject non zerocopy devmem tx
Kuniyuki Iwashima <[email protected]>
ipmr: Add __rcu to netns_ipv4.mrt.
Kuniyuki Iwashima <[email protected]>
ipmr: Call ipmr_fib_lookup() under RCU.
Zhan Xusheng <[email protected]>
erofs: fix EFSCORRUPTED on multi-algorithm images in z_erofs_map_sanity_check()
Gao Xiang <[email protected]>
erofs: relax sanity check for tail pclusters due to ztailpacking
Keith Busch <[email protected]>
block: fix merging data-less bios
Keith Busch <[email protected]>
blk-mq-dma: always initialize dma state
Keith Busch <[email protected]>
block: save page offset gaps in cloned bio
Nathan Chancellor <[email protected]>
integrity: Eliminate weak definition of arch_get_secureboot()
John Johansen <[email protected]>
apparmor: fix kernel-doc comments for inview
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7581: fix incorrect led mapping in phy4_led1 pin function
Nathan Chancellor <[email protected]>
pinctrl: airoha: Fix AIROHA_PINCTRL_CONFS_DRIVE_E2 in an7583_pinctrl_match_data
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7583: add missed gpio32 pin group
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7583: fix misprint in gpio19 pinconf
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7583: fix incorrect led mapping in phy4_led1 pin function
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7583: fix gpio21 pin group
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7583: fix phy1_led1 pin function
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7583: remove undefined groups from pcm_spi pin function
Yang Xiuwei <[email protected]>
scsi: sd: Fix error handling in sd_probe() after large pool creation failure
Arnd Bergmann <[email protected]>
phy: renesas: rcar-gen3-usb2: add regulator dependency
Namhyung Kim <[email protected]>
perf annotate: Fix build with NO_SLANG=1
Johannes Berg <[email protected]>
wifi: nl80211: fix UHR capability validation
Lorenzo Bianconi <[email protected]>
wifi: mt76: npu: Add missing rx_token_size initialization
Devin Wittmayer <[email protected]>
wifi: mt76: restrict NPU/PPE active checks to MMIO devices
Heiko Carstens <[email protected]>
s390/entry: Use lay instead of aghik
Vasily Gorbik <[email protected]>
s390/kexec: Disable stack protector in s390_reset_system()
Thomas Weißschuh <[email protected]>
selftests: vDSO: getrandom: Fix path to s390 chacha implementation
Mario Limonciello (AMD) <[email protected]>
cpufreq/amd-pstate: Fix setting EPP in performance mode
Mario Limonciello <[email protected]>
cpufreq/amd-pstate: Add POWER_SUPPLY select for dynamic EPP
K Prateek Nayak <[email protected]>
cpufreq/amd-pstate: Grab "amd_pstate_driver_lock" when toggling dynamic_epp
K Prateek Nayak <[email protected]>
cpufreq/amd-pstate: Return -ENOMEM on failure to allocate profile_name
K Prateek Nayak <[email protected]>
cpufreq/amd-pstate: Reorder notifier unregistration and floor perf reset
EDAMAMEX <[email protected]>
cpufreq/amd-pstate: handle missing policy in dynamic EPP callbacks
Arnd Bergmann <[email protected]>
usb: ucsi: huawei_gaokun: move typec_altmode off stack
John Ogness <[email protected]>
serial: 8250: Ignore flow control on suspend/resume with no_console_suspend
Rafael J. Wysocki <[email protected]>
platform/x86: lg-laptop: Check ACPI_COMPANION() against NULL
Ian Rogers <[email protected]>
perf tests kvm: Avoid leaving perf.data.guest file around
Steven Rostedt <[email protected]>
tracing: Move d_max_latency out of CONFIG_FSNOTIFY protection
Miquel Raynal (DAVE) <[email protected]>
mtd: rawnand: pl353: Fix debug prints
Ben Cressey <[email protected]>
dm-integrity: fix buffer overflow with keyed discard
Jamal Hadi Salim <[email protected]>
net/sched: sch_htb: limit htb_classify inner-class filter hops
Jiayuan Chen <[email protected]>
tcp: fix corruption of urgent data on multi-segment retransmit
Deepanshu Kartikey <[email protected]>
usb: atm: usbatm: fix invalid ci_range initialization
bui duc phuc <[email protected]>
net: fec: only stop PTP if it was initialized
Eric Dumazet <[email protected]>
slip: remove slip_hangup() to fix use-after-free in slip_receive_buf()
Jamal Hadi Salim <[email protected]>
net/sched: bound qdisc_pkt_len to prevent qdisc soft lockup
Pascal Kneuper <[email protected]>
net: stmmac: restore NET_IP_ALIGN in the RX DMA offset
Maxime Chevallier <[email protected]>
net: stmmac: selftests: Account for the UC filter list for filtering tests
Maxime Chevallier <[email protected]>
net: stmmac: dwxgmac: Account for the primary MAC address for UC filtering
Maxime Chevallier <[email protected]>
net: stmmac: dwmac4: Account for the primary MAC address for UC filtering
Maxime Chevallier <[email protected]>
net: stmmac: dwmac1000: Account for the primary MAC address for UC filtering
Maxime Chevallier <[email protected]>
net: stmmac: selftests: Check multiple MMC counters
Daniel Pawlik <[email protected]>
net: airoha: npu: fix missing streaming DMA mask
Muhammad Usama Anjum <[email protected]>
selftests/arm64: Fix MTE prctl TAP plan
Muhammad Usama Anjum <[email protected]>
selftests/arm64: Treat KSM merge_across_nodes as optional
Muhammad Usama Anjum <[email protected]>
selftests/arm64: Print missing MTE TAP headers
Takashi Iwai <[email protected]>
ALSA: control: Don't add invalid kcontrols to LED layer
Pablo Neira Ayuso <[email protected]>
netfilter: x_tables: replace pr_{info,err}() by pr_info_ratelimited()
Marino Dzalto <[email protected]>
netfilter: xt_HL: add pr_fmt and checkentry validation
Pablo Neira Ayuso <[email protected]>
netfilter: nf_tables: move hardware offload step after building the chain blob
Alice Mikityanska <[email protected]>
virtio-net: Ensure that TCP packets don't overflow gso_segs
Balasubramani Vivekanandan <[email protected]>
drm/xe/xe_gt_idle: Add CCS to the powergating info print
Maxime Chevallier <[email protected]>
net: stmmac: selftests: Pass the IP proto mask in the TC selftest
Jiawen Wu <[email protected]>
net: wangxun: use BIT_ULL() to prevent shift overflow on 32-bit archs
Yifei Chu <[email protected]>
net/smc: release the internal TCP sock on IPPROTO_SMC socket creation failure
bui duc phuc <[email protected]>
net: ethernet: sun4i-emac: Fix IRQ error handling
Haotian Zhang <[email protected]>
samples/ftrace: Fix kthread_stop() on ERR_PTR in ftrace-direct-multi-modify
Haotian Zhang <[email protected]>
samples/ftrace: Fix kthread_stop() on ERR_PTR in ftrace-direct-modify
Aleksandr Nogikh <[email protected]>
libceph: validate banner payload length
Xiubo Li <[email protected]>
ceph: revalidate ki_pos for O_APPEND writes after cap acquisition
Hongling Zeng <[email protected]>
ceph: Fix ERR_PTR(0) in ceph_mkdir()
HyeongJun An <[email protected]>
ASoC: dapm: Fix off-by-one check on the second enum channel
John Johansen <[email protected]>
apparmor: policy_int make sure list heads are initialized before fail path
Thorsten Blum <[email protected]>
apparmor: Replace sprintf/strcpy with scnprintf/strscpy in aa_policy_init
Jérémy Jean <[email protected]>
crypto: acomp - allocate async request context when cloning
Ruoyu Wang <[email protected]>
tpm: st33zp24: Validate locality read result
Ruoyu Wang <[email protected]>
tpm: st33zp24: Return zero on status read failure
Victor Nogueira <[email protected]>
net/sched: sch_teql: restore skb->dev on the slave failure path
Jamal Hadi Salim <[email protected]>
net/sched: sfq: clamp quantum to avoid signed overflow soft lockup
Jamal Hadi Salim <[email protected]>
net/sched: hhf: clamp quantum before hhf_change() to avoid overflow
Jamal Hadi Salim <[email protected]>
net/sched: fq_pie: clamp default quantum to avoid signed overflow
Jamal Hadi Salim <[email protected]>
net/sched: sch_codel: clamp default mtu to avoid disabling CoDel
Jamal Hadi Salim <[email protected]>
net/sched: fq_codel: clamp default quantum and mtu
Jamal Hadi Salim <[email protected]>
net/sched: fq: add overflow bounds to quantum and initial quantum
Tetsuo Handa <[email protected]>
net: fix a resource leak in copy_net_ns() error handling path
Mina Almasry <[email protected]>
net: core: check skb_frags_readable before uncloning in skb_copy_ubufs
Eric Dumazet <[email protected]>
net/sched: act_skbmod: fix length calculations and avoid invalid header warnings
Karl Mehltretter <[email protected]>
selftests/proc: make proc-maps-race work with READ_IMPLIES_EXEC
Liam R. Howlett (Oracle) <[email protected]>
maple_tree: fix argument name in header
Liam R. Howlett (Oracle) <[email protected]>
maple_tree: catch race in mas_alloc_cyclic()
Muhammad Usama Anjum <[email protected]>
selftests/mm: skip COW tmpfile cases when fallocate() is unsupported
Frank Sorenson <[email protected]>
cifs: fix clearing stats for fastest execution of each smb2 command
Suman Ghosh <[email protected]>
octeontx2-pf: fix NULL deref of af_xdp_zc_qidx on rep setup
Allison Henderson <[email protected]>
net/rds: use wq_has_sleeper() in rds_cong_map_updated()
Victor Nogueira <[email protected]>
net/sched: act_ife: Only operate on Ethernet frames
Eric Dumazet <[email protected]>
net/sched: add qstats_cpu_drop_inc() helper
Wei Fang <[email protected]>
net: enetc: restore RX ring congestion mode after ring reconfiguration
Naveen Mamindlapalli <[email protected]>
octeontx2-af: Fix TL3/TL2 link config ENA clearing
Xiang Mei <[email protected]>
net: qualcomm: rmnet: restore skb->dev on deaggregated frames
Anshumali Gaur <[email protected]>
octeontx2-vf: fix workqueue and netdev race in probe/remove
Anshumali Gaur <[email protected]>
octeontx2-af: fix NULL deref in NIX TM tree debugfs read path
Cen Zhang (Microsoft) <[email protected]>
gtp: add synchronize_net() in gtp_newlink() error path to prevent use-after-free
Stanislav Fomichev <[email protected]>
xsk: honor XDP_TX_METADATA in zero-copy path
Stanislav Fomichev <[email protected]>
xsk: align TX metadata layout across ABIs
Hyunwoo Kim <[email protected]>
Bluetooth: RFCOMM: Validate MTU in rfcomm_apply_pn() to prevent infinite loop
Ali Ahmet Memis <[email protected]>
Bluetooth: btnxpuart: Validate the FW dump header length
Chris Lu <[email protected]>
Bluetooth: btmtksdio: Fix out-of-bounds DMA read in the TX path
Chris Lu <[email protected]>
Bluetooth: btmtksdio: Take exclusive ownership of the SKB before TX
Ismail Tarim <[email protected]>
Bluetooth: btmtk: Do not discard the subsystem reset timeout
Ismail Tarim <[email protected]>
Bluetooth: btmtk: Do not report success when subsys reset fails
Greg Kroah-Hartman <[email protected]>
Bluetooth: btmtk: Fix short read errors in btmtk_usb_reg_read()
Javier Tia <[email protected]>
Bluetooth: btmtk: Add MT6639 (MT7927) Bluetooth support
Pauli Virtanen <[email protected]>
Bluetooth: L2CAP: fix race l2cap_sock_cleanup_listen() vs. put_chan
Pavel Shpakovskiy <[email protected]>
Bluetooth: mgmt: fix 'hdev->discovery.uuids' NULL dereference
Pauli Virtanen <[email protected]>
Bluetooth: L2CAP: reject accept queue add unless BT_LISTEN
Vladimir Murzin <[email protected]>
arm64: process: Fix context switching MTE store-only tag check
Wei-Lin Chang <[email protected]>
arm64: ptdump: Make note_page_flush() range aware
Geert Uytterhoeven <[email protected]>
erofs: Fix EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS default logic
Dan Carpenter <[email protected]>
scsi: qla2xxx: Fix an loop timeout test
Michael Kelley <[email protected]>
Drivers: hv: vmbus: Skip VMBus module cleanup for non-nested root partition
Thierry Reding <[email protected]>
syscore: Pass context data to callbacks
Eric Dumazet <[email protected]>
net_sched: sch_fq: fix pacing delay underflow with pacing offload
Rong Zhang <[email protected]>
net: page_pool: Remove zone/policy GFP flags when allocating XArray entries
Jiawen Wu <[email protected]>
net: libwx: fix concurrent bitmap overwrite in PTP setup
Jiawen Wu <[email protected]>
net: txgbe: fix MISC interrupt unmasking in non-MSI-X mode and device shutdown
Jiawen Wu <[email protected]>
net: wangxun: introduce WX_STATE_DOWN to serialize device shutdown state
Jiawen Wu <[email protected]>
net: wangxun: schedule hardware stats update in watchdog
Jiawen Wu <[email protected]>
net: wangxun: replace busy-wait reset flag with kernel mutex
Jiawen Wu <[email protected]>
net: txgbe: support RSC offload
Jiawen Wu <[email protected]>
net: txgbe: support RX desc merge mode
Wei Fang <[email protected]>
ptp: netc: fix period truncation and potential divide-by-zero in PEROUT
Thomas Walsh <[email protected]>
bnxt_en: Gate TPH enablement behind BNXT_SUPPORTS_QUEUE_API check
Guenter Roeck <[email protected]>
bnxt_en: Fix call to hardware monitoring event handler
Cosmo Chou <[email protected]>
rtc: pcf85363: Add error checking to regmap calls in probe()
Junrui Luo <[email protected]>
NFSv4/pnfs: key the data server cache on the NFS version
Junrui Luo <[email protected]>
NFSv4.2: fix LAYOUTSTATS send buffer exhaustion
Mahanta Jambigi <[email protected]>
net/smc: free pending qentry in smc_llc_flow_stop() before memset
Mahanta Jambigi <[email protected]>
net/smc: free stashed qentry before overwrite in REQ_ADD_LINK to ADD_LINK transition
Jamal Hadi Salim <[email protected]>
net: sched: fix 32-bit backlog wrap in gred, bfifo and plug enqueue
Mina Almasry <[email protected]>
net: tcp: block mixing readable and unreadable frags
Eric Dumazet <[email protected]>
inetpeer: randomize RB-tree node comparison using SipHash
Eric Dumazet <[email protected]>
ip6mr: plug drop_reason to ip6mr_cache_report()
Kuniyuki Iwashima <[email protected]>
ipmr: Free mr_table after RCU grace period.
Eric Dumazet <[email protected]>
net: change sock_queue_rcv_skb_reason() to return a drop_reason
Kuniyuki Iwashima <[email protected]>
ipmr: Remove RTNL in ipmr_rules_init() and ipmr_net_init().
Kuniyuki Iwashima <[email protected]>
ipmr: Convert ipmr_net_exit_batch() to ->exit_rtnl().
Kuniyuki Iwashima <[email protected]>
ipmr: Move unregister_netdevice_many() out of ipmr_free_table().
Kuniyuki Iwashima <[email protected]>
ipmr: Move unregister_netdevice_many() out of mroute_clean_tables().
Pengpeng Hou <[email protected]>
net: qlcnic: validate unified ROM sections before loading
Tetsuo Handa <[email protected]>
net: add missing ref_tracker_dir_exit() to net_passive_dec()
Cen Zhang (Microsoft) <[email protected]>
ipv6: avoid divide by zero in rt6_multipath_rebalance
Eric Dumazet <[email protected]>
netdevsim: update queue NAPI association on queue reset
Ruoyu Wang <[email protected]>
net: ipa: balance runtime PM reference on remove error
Marek Czernohous <[email protected]>
forcedeth: stop the tx_timeout register dump past the requested window
Or Har-Toov <[email protected]>
net/mlx5: E-Switch, preserve max tx speed on vport state modification
Or Har-Toov <[email protected]>
net/mlx5: Move vport DOWN state check out of mlx5_query_vport_max_tx_speed()
Or Har-Toov <[email protected]>
net/mlx5: Skip disabled vports when setting max TX speed
Or Har-Toov <[email protected]>
RDMA/mlx5: Implement query_port_speed callback
Or Har-Toov <[email protected]>
IB/core: Add query_port_speed verb
Or Har-Toov <[email protected]>
IB/core: Add helper to convert port attributes to data rate
Or Har-Toov <[email protected]>
net/mlx5: Add support for querying bond speed
Or Har-Toov <[email protected]>
net/mlx5: Handle port and vport speed change events in MPESW
Mark Bloch <[email protected]>
net/mlx5: E-Switch, use state lock for vport state changes
Or Har-Toov <[email protected]>
net/mlx5: Propagate LAG effective max_tx_speed to vports
Or Har-Toov <[email protected]>
net/mlx5: Add max_tx_speed and its CAP bit to IFC
Saeed Mahameed <[email protected]>
net/mlx5: E-Switch, support eswitch inactive mode
Saeed Mahameed <[email protected]>
net/mlx5: MPFS, add support for dynamic enable/disable
Saeed Mahameed <[email protected]>
devlink: Introduce switchdev_inactive eswitch mode
Fan Ye <[email protected]>
net: thunderbolt: Count delivered packets in rx_packets and rx_bytes
Victor Nogueira <[email protected]>
net/sched: add get_fill_size callbacks for actions missing them
Ruoyu Wang <[email protected]>
net: bridge: Reject descending VLAN tunnel ranges
Cen Zhang (Microsoft) <[email protected]>
xsk: fix NULL pointer dereference in __xsk_rcv()
Maciej Fijalkowski <[email protected]>
xsk: avoid double checking against rx queue being full
Rustam Adilov <[email protected]>
irqchip/irq-realtek-rtl: Use readl_be()/writel_be() instead of readl()/writel()
Markus Stockhausen <[email protected]>
irqchip/irq-realtek-rtl: Add mask for interrupt handling
Markus Stockhausen <[email protected]>
irqchip/irq-realtek-rtl: Add interrupt data structure
Markus Stockhausen <[email protected]>
irqchip/irq-realtek-rtl: Split out parent setup code
Markus Stockhausen <[email protected]>
irqchip/irq-realtek-rtl: Add multicore support
Markus Stockhausen <[email protected]>
irqchip/irq-realtek-rtl: Add/simplify register helpers
Namjae Jeon <[email protected]>
smb: server: remove unused DES crypto header
Thomas Huth <[email protected]>
smb: server: Remove obsolete "select CRYPTO_LIB_DES" from Kconfig file
Runyu Xiao <[email protected]>
ALSA: mtpav: shut down output timer before card teardown
Geert Uytterhoeven <[email protected]>
spi: amlogic-spisg: Make sure clk_init_data is fully initialized
Serhat Kumral <[email protected]>
RDMA/ucma: Allow path records to exactly fit the output buffer
Haotian Zhang <[email protected]>
ALSA: ice1712: Fix the card leak at probe error with the auto-cleanup
Cássio Gabriel <[email protected]>
ALSA: core: Add scoped cleanup helper for card references
Lorenzo Pieralisi <[email protected]>
irqchip/gic-v5: Use logical cpu 0 irs_data for dynamic IST allocation
Lorenzo Pieralisi <[email protected]>
irqchip/gic-v5: Fix gicv5_init_common() error paths
Lorenzo Pieralisi <[email protected]>
irqchip/gic-v5: Check for NULL LPI domain on domain teardown
Sascha Bischoff <[email protected]>
irqchip/gic-v5: Synchronize CPU interface disable
Geert Uytterhoeven <[email protected]>
clk: visconti: Make sure clk_init_data is fully initialized
Geert Uytterhoeven <[email protected]>
clk: ti: Make sure clk_init_data is fully initialized
Bradley Morgan <[email protected]>
prctl: fix PR_SET_MM_AUXV losing the forced AT_NULL terminator
Karl Mehltretter <[email protected]>
lib/interval_tree: fix allocation warning messages
Linkai Gong <[email protected]>
rtc: gamecube: check return value of devm_rtc_register_device()
Ruoyu Wang <[email protected]>
i2c: ocores: Disable clock on failed resume
Biju Das <[email protected]>
irqchip/renesas-rzg2l: Fix loss of interrupt
Pengpeng Hou <[email protected]>
rtc: zynqmp: Return optional clock lookup errors
Frank Sorenson <[email protected]>
cifs: remove dead size-update blocks in cifs_setattr_unix/nounix
Christopher Lusk <[email protected]>
smb: client: fix request buffer leak in smb2_new_read_req()
Surendra Singh Chouhan <[email protected]>
rtc: spacemit: handle regmap_test_bits() error return
Yi Ding <[email protected]>
rtc: pcf8563: fix clock provider leak on unbind
GuoHan Zhao <[email protected]>
virtio: rtc: time out alarm requests
Li RongQing <[email protected]>
vdpa/mlx5: fix wrong list iterated in add_direct_chain error path
Li RongQing <[email protected]>
virtio_pci: fix wrong queue index for admin vq in intx path
Yufeng Wang <[email protected]>
vhost/net: fix clear_user start address in VHOST_GET_FEATURES_ARRAY
Denis V. Lunev <[email protected]>
virtio_balloon: quiesce balloon work before device shutdown
Denis V. Lunev <[email protected]>
virtio_balloon: factor out virtballoon_quiesce()
Denis V. Lunev <[email protected]>
virtio: add virtio_device_shutdown() helper
Linfeng Sun <[email protected]>
vdpa_sim: fix cleanup after worker creation failure
Michael S. Tsirkin <[email protected]>
virtio_balloon: disable indirect descriptors
Tetsuo Handa <[email protected]>
net: add missing ref_tracker_dir_exit() to alloc_netdev_mqs()
Ruoyu Wang <[email protected]>
bonding: initialize err for empty target lists
Nikolay Kulikov <[email protected]>
mlxbf-bootctl: fix the build error with FIELD_PREP()
Hemanth Selam <[email protected]>
platform/x86/amd/hsmp: Reject negative power cap writes in hwmon
Guangshuo Li <[email protected]>
platform/x86: hp-bioscfg: fix password encoding bounds check
Nguyen Dinh Phi <[email protected]>
vsock: use sock_error() to consume sk_err after a failed connect
Nguyen Dinh Phi <[email protected]>
vsock: don't check the listener's sk_err in vsock_accept()
Laurence Rowe <[email protected]>
vsock: avoid timeout for non-blocking accept() with empty backlog
HyeongJun An <[email protected]>
platform/x86: dell-wmi-sysman: Fix instance ID bounds
Mahanta Jambigi <[email protected]>
net/smc: hash socket only after full initialisation in smc_sk_init()
Karl Mehltretter <[email protected]>
8139cp: fix Rx and Tx not being disabled in cp_suspend
Baul Lee <[email protected]>
vxlan: mdb: Fix use-after-free in vxlan_mdb_flush()
Xu Rao <[email protected]>
ALSA: hda: Fix connection list comparison in proc output
Baokun Li <[email protected]>
fuse: check for NULL root inode in fuse_fill_super_submount
Daniel Baluta <[email protected]>
soc: qcom: ubwc: Fix missing include
Weiming Shi <[email protected]>
fs/ntfs3: validate ef->size covers the record's name and value
Konstantin Komarov <[email protected]>
fs/ntfs3: fix out-of-bounds read in read_log_rec_buf()
Baokun Li <[email protected]>
cuse: wait for pending RCU callbacks on module exit
Nikolay Aleksandrov <[email protected]>
net: bridge: vlan: fix inverted default vlan notification
Maximilian Immanuel Brandtner <[email protected]>
tls: fix RX desync on overlapping skbs
Ruoyu Wang <[email protected]>
net: dsa: mv88e6xxx: Fix PCS link check on CMODE read error
Xiang Mei <[email protected]>
vxlan: vnifilter: enforce exact length of GROUP/GROUP6 attributes
Joas Antonio dos Santos <[email protected]>
ipvs: fix integer overflow in ftp helper port/address parsing
Chao Yu <[email protected]>
f2fs: fix to avoid pinfile fragment on fragment:{block, segment} mode
Chao Yu <[email protected]>
f2fs: cleanup w/ f2fs_need_rand_{blk, seg, seg_blk}liujinbao1 <[email protected]>
f2fs:Fix incomplete search range in f2fs_get_victim when f2fs_need_rand_seg is enabled
Xin Xie <[email protected]>
net: hsr: free learned nodes on device setup failure
Qingfang Deng <[email protected]>
pppox: drain queued packets on channel handoff
Vladimir Oltean <[email protected]>
net: dsa: b53: fix error propagation from b53_fdb_dump()
Junseo Lim <[email protected]>
net: kcm: Hold RCU read lock while running BPF parser
Prabu Thayalan <[email protected]>
ionic: fix completion descriptor access with 2x desc size
Wei Fang <[email protected]>
ptp: netc: skip PEROUT disable if channel is not enabled
Dan Carpenter <[email protected]>
drm/xe: tests: fix error message in xe_migrate_sanity_test()
Fan Gong <[email protected]>
hinic3: Fix skb linearization mismatch and drop skb when skb_checksum_help() failed
Karl Mehltretter <[email protected]>
octeontx2-af: initialize lmac_bmap in rvu_mcs_set_lmac_bmap()
Jiayuan Chen <[email protected]>
bpf, xdp: move offload check into dev_xdp_install()
Mathieu Dubois-Briand <[email protected]>
clk: ti: mux: resolve parent clocks by DT index, not by name
Onur Özkan <[email protected]>
clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate()
Michael Nemanov <[email protected]>
nfs: fix ENXIO on O_CREAT open of existing symlink over NFSv3
Zhansong Gao <[email protected]>
NFSv4: Fix incorrect argument passed to nfs4_delete_lease() in nfs4_add_lease()
Jeuk Kim <[email protected]>
NFSv4/flexfiles: fix NULL dereference for NFSv4.0 data servers
ZhangGuoDong <[email protected]>
pnfs/blocklayout: Fix device leaks on parse failure
Ruoyu Wang <[email protected]>
NFSv4: remove callback IDR entry on client allocation failure
Arnaud Bonnet <[email protected]>
nfs: refactor pNFS functions using clear_and_wake_up_bit
Arnaud Bonnet <[email protected]>
nfs: replace atomic bitops sequence with clear_and_wake_up_bit helper
Ze Tan <[email protected]>
smb/server: fix session leak in ksmbd_session_register()
Hang Nan <[email protected]>
ksmbd: bound smb_check_perm_dacl() ACE walks by DACL size
Namjae Jeon <[email protected]>
ksmbd: disconnect on SMB3 decryption failure
Junseo Lim <[email protected]>
bpf: Reject negative optlen in cgroup getsockopt hook
Andreas Schwab <[email protected]>
m68k: nfcon: Do not call console_is_registered() in nfcon_device()
Junseo Lim <[email protected]>
bpf: Disallow bpf_{g,s}etsockopt() in cgroup UNIX getname hooks
Ojaswin Mujoo <[email protected]>
erofs: fix unused pcluster_pools for higher page sizes
Junseo Lim <[email protected]>
lwt_bpf: Restore reserved headroom after xmit program
Gao Xiang <[email protected]>
erofs: guard on-disk algorithm IDs against Z_EROFS_COMPRESSION_MAX
Gao Xiang <[email protected]>
erofs: fix interlaced ztailpacking pclusters
Gao Xiang <[email protected]>
erofs: error out obviously illegal extents in advance
Gao Xiang <[email protected]>
erofs: clean up encoded map flags
ZhangGuoDong <[email protected]>
smb/server: preserve error status in smb2_handle_negotiate()
ZhangGuoDong <[email protected]>
smb/server: fix invalid pointer dereference in ksmbd_stop_durable_scavenger()
ZhangGuoDong <[email protected]>
smb/server: fix null-ptr-deref in ksmbd_ipc_tree_connect_request()
Namjae Jeon <[email protected]>
ksmbd: free preauth sessions on connection teardown
Namjae Jeon <[email protected]>
ksmbd: do not advertise unimplemented CA support
Yunseong Kim <[email protected]>
ksmbd: validate ipc response length before dereferencing its fields
Enzo Matsumiya <[email protected]>
smb: server: fix leak of ksmbd_ipc_login_request_ext() returned buffer
Guangshuo Li <[email protected]>
ksmbd: Do not skip lock checks for single-byte ranges
Marius Cristea <[email protected]>
hwmon: (emc1403) Drop hysteresis for low limit temperature
Guenter Roeck <[email protected]>
hwmon: (emc1403) Rely on subsystem locking
Szymon Wilczek <[email protected]>
hwmon: (coretemp) Fix core_data leak on CPUs without PTS
John Johansen <[email protected]>
apparmor: fix deadlock in complain-mode change_hat
Hongyan Xu <[email protected]>
block: mtip32xx: synchronize ioctls with device removal
Yao Sang <[email protected]>
ublk: reject non-power-of-2 zone sizes in SET_PARAMS
Niklas Cassel <[email protected]>
null_blk: serialize configfs attribute updates with device setup
Zizhi Wo <[email protected]>
null_blk: serialize configfs attribute stores with the lock
Zizhi Wo <[email protected]>
null_blk: reject per-device queue resize for shared tag set
Zizhi Wo <[email protected]>
null_blk: free zones array on device power-off
Zizhi Wo <[email protected]>
null_blk: free global tag_set on init error path
Zizhi Wo <[email protected]>
null_blk: register configfs subsystem after creating default devices
Zizhi Wo <[email protected]>
null_blk: use DEFINE_MUTEX for the file-scope mutex
Pengpeng Hou <[email protected]>
mailbox: riscv-sbi-mpxy: validate RPMI notification lengths
Huisong Li <[email protected]>
mailbox: pcc: Fix command timeout due to missed interrupt
Linmao Li <[email protected]>
mailbox: rockchip: disable pclk on probe failure and unbind
Jia Yang <[email protected]>
mailbox: qcom-cpucp: handle NULL data in send_data callback
Jia Yang <[email protected]>
mailbox: qcom-cpucp: fix PREEMPT_RT self-deadlock in IRQ handler
Arnaldo Carvalho de Melo <[email protected]>
perf dso: Replace assert with runtime check in dso__read_symbol()
Arnaldo Carvalho de Melo <[email protected]>
perf dso: Guard against cache underflow on short reads in dso_cache__memcpy()
Arnaldo Carvalho de Melo <[email protected]>
perf dso: Use stored fd error instead of stale errno in file_read() and file_size()
Arnaldo Carvalho de Melo <[email protected]>
perf dso: Guard close() against invalid fd in dso__decompress_kmodule_path()
Arnaldo Carvalho de Melo <[email protected]>
perf dso: Guard against errno==0 when dso__get_filename() returns NULL
Tao Cui <[email protected]>
sched_ext/scx_flatcg: Fix cvtime true-up on slice expiry
Karl Mehltretter <[email protected]>
crypto: lskcipher - propagate errors from unaligned crypt
Zhushuai Yin <[email protected]>
crypto: hisilicon/sec2 - fix CCM algorithm long packet failure
Michal Blaszczyk <[email protected]>
selftests/sched_ext: Fix flaky ddsp failure tests on busy systems
Israel Téllez García <[email protected]>
bpf: Fix pending_pos walk on 32-bit ring position wrap
Hongyan Xu <[email protected]>
ACPI: scan: fix bus ID cleanup on device_add() failures
Vincent Donnefort <[email protected]>
ring-buffer: Remove trace_buffer::cpus
Pu Lehui <[email protected]>
riscv, bpf: Fix missing sign-ext for signed 1-byte and 2-byte kfunc args
Andrii Nakryiko <[email protected]>
selftests/bpf: Use ping_command() for IPv6 pings in lwt_ip_encap
Leon Hwang <[email protected]>
selftests/bpf: Add tests to verify the fix of encapsulating VxLAN in lwt
Xianglin Lin <[email protected]>
HID: multitouch: reclassify HTIX5288 to WIN_8_FORCE_MULTI_INPUT_NSMU
Pengpeng Hou <[email protected]>
ASoC: SOF: validate topology volume range before allocation
Steven Rostedt <[email protected]>
tracing: Have trace_event_update_all() only handle module that is loading
Karl Mehltretter <[email protected]>
HID: haptic: don't write an uninitialized value to unhandled usages
Aleksandr Nogikh <[email protected]>
ALSA: core: Fix use-after-free in snd_card_do_free()
Zhan Xusheng <[email protected]>
fs/ntfs3: reject out-of-range evcn in mi_enum_attr()
Zhan Xusheng <[email protected]>
fs/ntfs3: fix integer overflow in MFT cluster validation
Puranjay Mohan <[email protected]>
bpf, arm64: Fix stack-passed arguments for indirect trampolines
Jijie Shao <[email protected]>
net: page_pool: fix UAF in __page_pool_release_netmem_dma on xa_cmpxchg race
Bart Van Assche <[email protected]>
scsi: ufs: core: Set task state before io_schedule_timeout()
Chandrakanth Patil <[email protected]>
scsi: mpt3sas: Avoid freeing unallocated PCIe SGL buffers
Eduard Zingerman <[email protected]>
selftests/bpf: Fix for veristat file/prog filters processing
Phillip Lougher <[email protected]>
Squashfs: check block offset is not negative
Krystian Kaniewski <[email protected]>
ocfs2: fix circular locking dependency in ocfs2_init_acl()
ZhengYuan Huang <[email protected]>
ocfs2: validate DIO orphan slot during inode read
ZhengYuan Huang <[email protected]>
ocfs2: validate orphan slot during inode read
Yuan Chen <[email protected]>
bpftool: Fix double close in map dump
Bijan Tabatabai <[email protected]>
x86/pkeys: Fix pkey_alloc() return value when pkeys are not supported
Rui Qi <[email protected]>
selftests/cgroup: Preserve CPU hotplug write errors
John Keeping <[email protected]>
ALSA: seq: midi: Serialize input teardown with event_input
Takashi Iwai <[email protected]>
ALSA: seq: midi: Optimize event_input locking with RCU
Yuho Choi <[email protected]>
clocksource/drivers/armada: Unwind timer clock on init failure
Guangshuo Li <[email protected]>
clocksource/drivers/clps711x: Do not unmap clocksource MMIO
Peter Oberparleiter <[email protected]>
s390/debug: Fix deadlock during unregister
Yuho Choi <[email protected]>
xenbus: Unregister reboot notifier on init failure
Henrik Grimler <[email protected]>
power: supply: bq27xxx: bq27z561: fix invalid AverageEnergy address
Henrik Grimler <[email protected]>
power: supply: bq27xxx: bq28z610: fix invalid AverageEnergy address
Henrik Grimler <[email protected]>
power: supply: bq27xxx: bq27520g4: fix REG_TTES address
Matti Vaittinen <[email protected]>
power: supply: bd99954: Drop bad register fields
Krishna Chaitanya Chundru <[email protected]>
PCI/ASPM: Disable/restore ASPM on every function for multi-function devices
Felix Gu <[email protected]>
spi: img-spfi: don't disable runtime PM on DMA deferred probe
Vineet Gupta <[email protected]>
selftests/bpf: vmtest.sh: Preserve command quoting when running in the VM
David Matlack <[email protected]>
selftests: harness: Mark test fixture objects __maybe_unused
Thomas Weißschuh <[email protected]>
selftests: harness: Restore order of test functions
Mohammad Abu-Khader <[email protected]>
kunit: tool: fix _list_tests filtering wrong variable when list has TAP prefix
Arnaldo Carvalho de Melo <[email protected]>
perf build: Remove leftover feature tests for removed cxx and clang support
Karl Mehltretter <[email protected]>
super: fix dying superblock warning messages
Krishna Chaitanya Chundru <[email protected]>
PCI/ASPM: Use pcie_capability_clear_and_set_word() for ASPM disable/restore
Takashi Sakamoto <[email protected]>
firewire: core: fix memory leak in error path of build_tree()
Takashi Sakamoto <[email protected]>
firewire: core: validate parent port count before allocating nodes in build_tree()
Takashi Sakamoto <[email protected]>
firewire: core: consolidate port counting in build_tree()
Takashi Sakamoto <[email protected]>
firewire: core: add KUnit tests for failure of tree building
Takashi Sakamoto <[email protected]>
firewire: core: add KUnit tests for successful tree building
Takashi Sakamoto <[email protected]>
firewire: core: add KUnit test skeleton for node tree
Ran Hongyun <[email protected]>
UBI: fix two issues in the ubi.mtd MODULE_PARM_DESC
Rosen Penev <[email protected]>
ASoC: xilinx: formatter_pcm: fix stream_data leak on open error
Yuho Choi <[email protected]>
mtd: ubi: Release device reference on busy detach
Yuho Choi <[email protected]>
ubi: Fix rollback for explicit UBI device numbers
Zhihao Cheng <[email protected]>
UBI: fastmap: Pass to_be_tortured when reusing old fastmap PEBs
Zhihao Cheng <[email protected]>
UBI: Preserve torture flag when rescheduling failed erasures
LiangCheng Wang <[email protected]>
ASoC: fsl-asoc-card: defer probe when the CPU DAI device is not ready
bui duc phuc <[email protected]>
ASoC: pxa: Use devm_clk_get_optional() for extclk clock
Willem de Bruijn <[email protected]>
idpf: add missing cpu_to_le32 in idpf_tx_splitq_build_flow_desc
Robert Malz <[email protected]>
ice: acquire NVM lock around each flash read
Jesse Brandeburg <[email protected]>
ice: refactor to use helpers
Petr Oros <[email protected]>
ice: clear the default forwarding VSI rule when releasing a VSI
Przemyslaw Korba <[email protected]>
ice: fall back to SBQ when LL PHY timer interface times out
Zhu Yanjun <[email protected]>
RDMA/cma: Fix WARNING in res_to_rt
Fan Wu <[email protected]>
RDMA/cxgb4: Free debugfs on registration failure
Guangshuo Li <[email protected]>
dmaengine: qcom-bam-dma: fix autosuspend cleanup during removal
HyeongJun An <[email protected]>
ALSA: seq: Don't leak the extension cell pointer in the bounce payload
Yun Zhou <[email protected]>
nfc: nci: fix use of uninitialized memory in CORE_INIT_RSP parsing
Linmao Li <[email protected]>
nfc: digital: Do not dump a NULL response in command completion
Yinhao Hu <[email protected]>
nfc: pn533: hold a reference to the request skb during send_frame
Doruk Tan Ozturk <[email protected]>
nfc: llcp: bound SNL TLV parsing to the skb and add length checks
Zhenghang Xiao <[email protected]>
nfc: nci: fix double completion race in nci_data_exchange_complete
Breno Leitao <[email protected]>
nfc: llcp: read llcp_sock->local under the socket lock in getsockopt
Breno Leitao <[email protected]>
nfc: llcp: avoid userspace overflow on invalid optlen
Chao Shi <[email protected]>
nvme: reject passthrough of driver-managed Set Features
Yang Xiuwei <[email protected]>
nvme/ioctl: check SUBMIT_IO with nvme_cmd_allowed()
Guixin Liu <[email protected]>
nvmet: fix NULL pointer dereference in nvmet_execute_identify_ns_zns()
Sven Peter <[email protected]>
nvme-apple: Drop the PRP null check chicken bit
Sven Peter <[email protected]>
nvme-apple: Require page aligned buffers on the admin queue
Sven Peter <[email protected]>
nvme: Add a quirk for page aligned admin queue buffers
Maurizio Lombardi <[email protected]>
nvme: expose active quirks in sysfs
Keith Busch <[email protected]>
nvme: remove virtual boundary for sgl capable devices
Keith Busch <[email protected]>
block: accumulate memory segment gaps per bio
Sven Peter <[email protected]>
nvme-apple: Never set the opcode in the NVMMU TCB
Sven Peter <[email protected]>
nvme-apple: Don't set a DMA direction for commands without a data transfer
Sven Peter <[email protected]>
nvme-apple: Destroy the admin queue on removal
Guixin Liu <[email protected]>
nvmet: fix heap out-of-bounds read in nvmet_auth_negotiate()
Alistair Francis <[email protected]>
nvme: Add the DHCHAP maximum HD IDs
Ilya Leoshkevich <[email protected]>
s390/irqflags: Add out-of-line definitions of arch_local_irq_*() for KMSAN
Coiby Xu <[email protected]>
s390: Drop unnecessary CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT
Coiby Xu <[email protected]>
integrity: Make arch_ima_get_secureboot integrity-wide
Josh Poimboeuf <[email protected]>
arm64: bti: Disable in-kernel BTI with recent versions of Clang
Jorijn van der Graaf <[email protected]>
ASoC: qcom: q6apm: keep the graph start count in sync with the DSP
Babanpreet Singh <[email protected]>
spi: sprd-adi: Fix probe succeeding without registering the controller
Esteban Urrutia <[email protected]>
phy: qcom: qmp-combo: Drop qmp_v4_calibrate_dp_phy
Abel Vesa <[email protected]>
phy: qualcomm: qmp-combo: Add DP offsets and settings for Glymur platforms
Wesley Cheng <[email protected]>
phy: qualcomm: qmp-combo: Update QMP PHY with Glymur settings
Wesley Cheng <[email protected]>
phy: qualcomm: Update the QMP clamp register for V6
Faisal Hassan <[email protected]>
phy: qcom-qmp-combo: Use regulator_bulk_data with init_load_uA for regulator setup
Esteban Urrutia <[email protected]>
phy: qcom: qmp-combo: Correct pre-emphasis table for QMP v4 DP PHYs
Lad Prabhakar <[email protected]>
phy: renesas: rcar-gen3-usb2: Ignore missing VBUS regulator
Mukesh Kumar Chaurasiya (IBM) <[email protected]>
rust: uapi: replace direct asm-generic/ioctl.h include with linux/ioctl.h
Vasant Hegde <[email protected]>
iommu/amd: Fix incorrect device ID in invalid PASID error message
John Johansen <[email protected]>
apparmor: fix unconfined user namespace restriction forced stack
John Johansen <[email protected]>
apparmor: change fn_label_build() call to not return NULL
John Johansen <[email protected]>
apparmor: split xxx_in_ns into its two separate semantic use cases
Michael Walle <[email protected]>
powerpc/configs: enable CONFIG_RAS to fix EDAC support
Kuniyuki Iwashima <[email protected]>
amt: Don't support cross-netns setup.
Liang Luo <[email protected]>
selftests/sched_ext: Check skeleton open failure in exit test
Guopeng Zhang <[email protected]>
cgroup/cpuset: Use WRITE_ONCE() for shared prs_err updates
Waiman Long <[email protected]>
cgroup/cpuset: Fail if isolated and nohz_full don't leave any housekeeping
Gabriele Monaco <[email protected]>
cgroup/cpuset: Rename update_unbound_workqueue_cpumask() to update_isolation_cpumasks()
Guixin Liu <[email protected]>
nvme-pci: release descriptor pools on probe failure
Guixin Liu <[email protected]>
nvmet: propagate percpu_ref_init() failure in nvmet_ns_enable()
Zhengrong Li <[email protected]>
nvmet: fix Reservation Register Replace for unregistered host with IEKEY
Runyu Xiao <[email protected]>
sunrpc: xprtsock: annotate shared socket callbacks with READ_ONCE/WRITE_ONCE
Weiming Shi <[email protected]>
SUNRPC: check rpc_sockaddr2uaddr() return value in rpcb_register_inet4/6
Thomas Weißschuh <[email protected]>
hwmon: (cros_ec) Synchronize EC access from the thermal device callbacks
Thomas Weißschuh <[email protected]>
hwmon: (cros_ec) Store the hwmon device in cros_ec_hwmon_priv
Thomas Weißschuh <[email protected]>
hwmon: (cros_ec) Register the thermal devices after the hwmon ones
Guenter Roeck <[email protected]>
hwmon: Support guard() and scoped_guard for subsystem locks
Thomas Weißschuh <[email protected]>
hwmon: (cros_ec) Add support for temperature thresholds
Thomas Weißschuh <[email protected]>
hwmon: (cros_ec) Move temperature channel params to a macro
Thomas Weißschuh <[email protected]>
hwmon: (cros_ec) Split up supported features in the documentation
Marco Elver <[email protected]>
arm64: Disable KCSAN instrumentation in delay.o
Chuck Lever <[email protected]>
xdrgen: Fix opaque and string encoders for unbounded members
Chuck Lever <[email protected]>
xdrgen: Do not declare union XDR functions in the definitions header
Chuck Lever <[email protected]>
xdrgen: Address some checkpatch whitespace complaints
Karl Mehltretter <[email protected]>
m68k: Fix backtraces for non-running tasks
Yuho Choi <[email protected]>
hwrng: imx-rngc - Disable clock on registration failure
Ahsan Atta <[email protected]>
crypto: qat - remove dead ADF_HEX code
Thorsten Blum <[email protected]>
crypto: qat - use 2-arg strscpy where destination size is known
Lu Baolu <[email protected]>
iommu/vt-d: Flush context cache with correct SID when tearing down aliases
Lu Baolu <[email protected]>
iommu/vt-d: Tear down scalable-mode context on probe failure
Lu Baolu <[email protected]>
iommu/vt-d: Clear Present bit before tearing down copied context entry
Desnes Nunes <[email protected]>
iommu/vt-d: Fix UCTP context table slot when copying root entries
Andrew Jones <[email protected]>
iommu/dma: Restore locking around msi_page_list
Karl Mehltretter <[email protected]>
fbdev: clps711x-fb: Remove unreachable unregister_framebuffer() call
Danila Chernetsov <[email protected]>
fbdev: kyro: Validate overlay viewport coordinates
Myeonghun Pak <[email protected]>
fbdev: tdfxfb: fix PCI enable cleanup with pcim_enable_device()
Ian Rogers <[email protected]>
perf synthetic-events: Fix divide by zero in perf_event__synthesize_threads
Ian Rogers <[email protected]>
perf python: Fix memory leak in pyrf__metrics_cb
Ian Rogers <[email protected]>
perf python: Validate CPU and thread maps in pyrf_evsel__open
Ian Rogers <[email protected]>
perf python: Handle Py_None for thread and cpu maps
Ian Rogers <[email protected]>
perf python: Check counts_values size in set_values
Ian Rogers <[email protected]>
perf test: Fix skiplist leak in cmd_test
Ian Rogers <[email protected]>
perf test: Support dynamic test suites with setup callback and private data
Ian Rogers <[email protected]>
perf synthetic-events: Fix uninitialized pthread_join
Ian Rogers <[email protected]>
perf stat: Fix evsel_list leak in cmd_stat
Rosen Penev <[email protected]>
ARM: dts: helios4: add SATA regulator supplies
Rosen Penev <[email protected]>
ARM: dts: helios4: add vcc-supply to GPIO expander
Rosen Penev <[email protected]>
ARM: dts: helios4: add vcc-supply to EEPROM
Tomáš Macholda <[email protected]>
arm64: dts: turris-mox: fix usb3 phys
Tommaso Merciai <[email protected]>
i3c: renesas: Don't register devices when ENTDAA times out
Claudiu Beznea <[email protected]>
i3c: renesas: Follow a unified pattern for transfer and command initialization
Claudiu Beznea <[email protected]>
i3c: renesas: Return immediately if there is no transfer
Sanghyun Park <[email protected]>
bpf: Fix mmap_lock leak in irq_work path
Ihor Solodrai <[email protected]>
bpf: Avoid faultable build ID reads under mm locks
Ihor Solodrai <[email protected]>
bpf: Factor out stack_map build ID helpers
Guodong Xu <[email protected]>
riscv: cpufeature: Clarify ISA spec version for canonical order
Victor Nogueira <[email protected]>
net/sched: cls_api: fix teardown of an adopted proto on insert-race loss
Nikhil Gautam <[email protected]>
iio: light: gp2ap002: re-enable irq if runtime suspend fails
Nikhil Gautam <[email protected]>
iio: light: gp2ap002: Fix unbalanced runtime PM on repeated event writes
Vidhu Sarwal <[email protected]>
iio: light: opt4060: Fix pointer type passed to div_u64_rem()
Pu Lehui <[email protected]>
bpf, cgroup: Fix storage null-ptr-deref after replacing prog
Ali Ahmet Memis <[email protected]>
Bluetooth: MSFT: validate evt_prefix_len against the response length
Guangshuo Li <[email protected]>
Bluetooth: btmtksdio: fix usage_count leak when autosuspend_delay is negative
Sean Wang <[email protected]>
Bluetooth: btmtk: add MT7902 SDIO support
Sean Wang <[email protected]>
Bluetooth: btmtk: add MT7902 MCU support
Sean Wang <[email protected]>
mmc: sdio: add MediaTek MT7902 SDIO device ID
Linmao Li <[email protected]>
Bluetooth: MGMT: free the HCI command when it is cancelled
Linmao Li <[email protected]>
Bluetooth: MGMT: free the mesh send cancel command when it is cancelled
Linmao Li <[email protected]>
Bluetooth: hci_sync: free the advertising instance on the failure and cancel paths
Linmao Li <[email protected]>
Bluetooth: hci_conn: fix the SCO setup context lifetime
Zijun Hu <[email protected]>
Bluetooth: btintel: Fix diagnostics event detection
HyeongJun An <[email protected]>
Bluetooth: virtio_bt: avoid OOB read of build info string
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: fix edge-triggered interrupts handling
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: fix IRQ mask/unmask code
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: add missed IRQ resource helpers
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: fix getting gpiochip/pinctrl pointers in the IRQ handling code
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: add missed get_direction() function for gpio_chip
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7583: fix spi group pins
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7583: fix muxing of non-gpio default pins
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7581: fix mux/conf of pcie_reset pins
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: fix pwm pin function for an7581 and an7583
Christian Marangi <[email protected]>
pinctrl: airoha: convert PWM GPIO to macro
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7583: fix I2C0_SDA_PD register bit order
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7581: fix pinconf of i2c_scl/i2c_sda pins
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: fix mdio bitfield names
Christian Marangi <[email protected]>
pinctrl: airoha: add support for Airoha AN7583 PINs
Christian Marangi <[email protected]>
pinctrl: airoha: convert PHY LED GPIO to macro
Qu Wenruo <[email protected]>
btrfs: qgroup: fix a wrong length calculation in qgroup_free_reserved_data()
Leo Martins <[email protected]>
btrfs: avoid GFP_ATOMIC allocations in qgroup free paths
Qu Wenruo <[email protected]>
btrfs: use aligned range for locking in extent_fiemap()
Johannes Thumshirn <[email protected]>
btrfs: zoned: don't clobber the extent buffer when zeroing it out
Yichong Chen <[email protected]>
btrfs: retry verity reads for not-uptodate Merkle folios
Qu Wenruo <[email protected]>
btrfs: always wait for ordered extents to avoid OE races
David Sterba <[email protected]>
btrfs: merge setting ret and return ret
Qu Wenruo <[email protected]>
btrfs: make btrfs_repair_io_failure() handle bs > ps cases without large folios
Filipe Manana <[email protected]>
btrfs: defrag: fix deadlock between defrag and delalloc space reservation
Yang Xiuwei <[email protected]>
scsi: sd: Fix sd_done() sense handling condition
Yang Xiuwei <[email protected]>
scsi: sd: Fix special_vec mempool leak when scsi_alloc_sgtables() fails
Swarna Prabhu <[email protected]>
scsi: sd: Enable sector size > PAGE_SIZE in SCSI sd driver
Bart Van Assche <[email protected]>
scsi: sd: Move the sd_config_discard() function definition
Bart Van Assche <[email protected]>
scsi: sd: Move the sd_remove() function definition
Uwe Kleine-König <[email protected]>
scsi: sd: Convert to SCSI bus methods
Uwe Kleine-König <[email protected]>
scsi: core: sysfs: Make use of bus callbacks
Uwe Kleine-König <[email protected]>
scsi: core: Pass a struct scsi_driver to scsi_{,un}register_driver()
Tanushree Shah <[email protected]>
perf trace-event: Fix integer truncation in do_read() and skip()
Zijun Hu <[email protected]>
Bluetooth: btusb: QCA: Fix populating devcoredump fields on unenabled devices
Zijun Hu <[email protected]>
Bluetooth: btusb: Record matched usb_device_id into btusb_data
Johan Hovold <[email protected]>
Bluetooth: btusb: refactor endpoint lookup
Zijun Hu <[email protected]>
Bluetooth: btusb: Fix BD_ADDR byte order in btusb_set_bdaddr_wcn6855()
Zijun Hu <[email protected]>
Bluetooth: btqca: Fix qca_set_bdaddr() waiting for wrong HCI event
Ricardo Neri <[email protected]>
sched/fair: Check CPU capacity before comparing group types during load balance
Ricardo Neri <[email protected]>
sched/fair: Also gate overloaded status update for SD_ASYM_CPUCAPACITY
Adrian Hunter <[email protected]>
perf/x86/intel/pt: Fix stop/start with no update
Adrian Hunter <[email protected]>
perf/x86/intel/pt: Use bitwise access for PERF_HES_STOPPED
Adrian Hunter <[email protected]>
perf/x86/intel/pt: Factor out pt_config_enable()
Yuho Choi <[email protected]>
ACPI: video: Release PCI device reference after lookup
Kamal Wadhwa <[email protected]>
regulator: qcom-rpmh: Fix PMIC5 BOB bypass mode handling
Daniel Borkmann <[email protected]>
bpf, arm64: Fix exception table metadata for arena load-acquire
Daniel Borkmann <[email protected]>
bpf, x86: Fix exception table metadata for arena load-acquire
Daniel Borkmann <[email protected]>
bpf, riscv: Add and use bpf_atomic_is_load_acq() helper
Daniel Borkmann <[email protected]>
bpf: Reject load-acquire from pointers requiring fault protection
James Clark <[email protected]>
perf: arm_pmuv3: Zero initialize hw_id branch stack field
James Clark <[email protected]>
coresight: Refactor etm4_config_timestamp_event()
Yeoreum Yun <[email protected]>
coresight: etm4x: fix leaked trace id
Yeoreum Yun <[email protected]>
coresight: etm4x: fix underflow for usage of (nrseqstate - 1)
James Clark <[email protected]>
coresight: Change syncfreq to be a u8
Yeoreum Yun <[email protected]>
coresight: etm4x: fix wrong check of etm4x_sspcicrn_present()
Bruce Johnston <[email protected]>
md/raid1: don't set array_frozen in raid1_takeover()
Yu Kuai <[email protected]>
md/md-llbitmap: stop daemon timer rearm on destroy
Yu Kuai <[email protected]>
md/md-llbitmap: prevent create failure bitmap UAF
Yu Kuai <[email protected]>
md: avoid stale clone I/O accounting timestamps
Yu Kuai <[email protected]>
md: wait for behind writes before destroying bitmap
Yu Kuai <[email protected]>
md/raid5: round bitmap stripes with sector division
Esteban Urrutia <[email protected]>
phy: qcom: qmp-pcie: Add pcs_lane1 offset to V5 offsets
Loic Poulain <[email protected]>
phy: qcom: qmp-usb: Fix possible NULL-deref on early runtime suspend
Loic Poulain <[email protected]>
phy: qcom: snps-femto-v2: Fix possible NULL-deref on early runtime suspend
Loic Poulain <[email protected]>
phy: qcom: qmp-usb-legacy: Fix possible NULL-deref on early runtime suspend
Mohd Ayaan Anwar <[email protected]>
phy: qcom: sgmii-eth: vote for both voltage rails with correct current loads
Russell King (Oracle) <[email protected]>
phy: qcom-sgmii-eth: relax order of .power_on() vs .set_mode*()
Linkai Gong <[email protected]>
soc: fsl: qe: check platform_driver_register() in qe_ic_of_init()
Yichong Chen <[email protected]>
hugetlbfs: release subpool on fill_super failure
Simon Glass <[email protected]>
pinctrl: rockchip: Reset the pin count when recalculating SoC data
Mukesh Ojha <[email protected]>
firmware_loader: do not queue completed sysfs fallback requests
Manish Rangankar <[email protected]>
scsi: qla2xxx: Remove redundant VPD flash read in sysfs read path
Timur Kristóf <[email protected]>
drm/amdgpu/gfx6: Use PFP on the compute queues too
Timur Kristóf <[email protected]>
drm/amdgpu/gfx6: Fixup emitting SWITCH_BUFFER packets
Tanushree Shah <[email protected]>
perf trace-event: Fix buffer overflow in read_string()
Gerald Loacker <[email protected]>
phy: rockchip: phy-rockchip-inno-csidphy: fix rk1808 hsfreq table
Felix Gu <[email protected]>
phy: sunplus: fix error handling in sp_uphy_init()
Biju Das <[email protected]>
phy: renesas: phy-rcar-gen3-usb2: Fix devm action registration for disabled VBUS regulator
Tommaso Merciai <[email protected]>
phy: renesas: rcar-gen3-usb2: Add regulator for OTG VBUS control
Tommaso Merciai <[email protected]>
phy: renesas: rcar-gen3-usb2: Factor out VBUS control logic
Meghana Malladi <[email protected]>
arm64: dts: ti: k3-am64: Fix MDIO clock reference for ICSSG0 node
Jan Kara <[email protected]>
ext4: fix spurious message about orphan cleanup on RO fs
Timur Kristóf <[email protected]>
drm/amdgpu/gfx6: Fixup emit_cntxcntl()
Steve Dunnagan <[email protected]>
leds: gpio: Clear error pointers for skipped LEDs
Arnd Bergmann <[email protected]>
leds: gpio: Make legacy gpiolib interface optional
Arnd Bergmann <[email protected]>
gpiolib: move legacy interface into linux/gpio/legacy.h
Sven Peter <[email protected]>
mfd: macsmc: Fix key count endianness annotation
Pengpeng Hou <[email protected]>
mfd: iqs62x: Reject zero-length firmware records
Pengpeng Hou <[email protected]>
mfd: rave-sp: validate received frame payload lengths
Vladimir Murzin <[email protected]>
arm64: hibernate: Restore DAIF state on error
Ada Couprie Diaz <[email protected]>
arm64: hibernate: mask DAIF before restoring hibernated kernel
Felix Fietkau <[email protected]>
wifi: mac80211: skip default WMM setup for AP_VLAN links
Leon Romanovsky <[email protected]>
RDMA/erdma: restrict the driver to little-endian systems
Petr Pavlu <[email protected]>
module/dups: Fix use-after-free in kmod_dup_req lifetime handling
Petr Pavlu <[email protected]>
module/dups: Inform duplicate requests about the result directly
Naveen Kumar Chaudhary <[email protected]>
module: use strscpy() to copy module names in stats and dup tracking
Marco Crivellari <[email protected]>
module: replace use of system_wq with system_dfl_wq
Shuangpeng Bai <[email protected]>
RDMA/siw: Fix use-after-free in siw_accept()
Yehyeong Lee <[email protected]>
IB/isert: post the full-feature receive buffers after session registration
Yehyeong Lee <[email protected]>
IB/isert: delay the final Login Response until the session is registered
Karl Mehltretter <[email protected]>
cpufreq: imx6q: fix out-of-bounds write when probed more than once
Karl Mehltretter <[email protected]>
cpufreq: imx6q: fix devres accumulation across driver rebind
Priya Bala Govindasamy <[email protected]>
rust: cpufreq: Fix temporary write in Registration::bios_limit_callback
Priya Bala Govindasamy <[email protected]>
rust: cpufreq: Add CPUFREQ_TABLE_END as last table entry in TableBuilder::to_table
Jernej Skrabec <[email protected]>
drm/sun4i: hdmi-phy: Fix H6 8-bit MPLL config at 594 MHz
Jernej Skrabec <[email protected]>
drm/sun4i: dw-hdmi: Drop TCON TOP port reference
Jernej Skrabec <[email protected]>
drm/sun4i: tcon: Drop remote endpoint reference
Jernej Skrabec <[email protected]>
drm/sun4i: crtc: Propagate layer initialization error
Jernej Skrabec <[email protected]>
drm/sun4i: hdmi: Don't leak sync polarity bits into packet control
Jernej Skrabec <[email protected]>
drm/sun4i: tcon: Drop TCON TOP device reference
Jernej Skrabec <[email protected]>
drm/sun4i: tcon: Set output mux for DSI and LVDS
Jernej Skrabec <[email protected]>
drm/sun4i: vi scaler: Fix coefficient selection
Arnaldo Carvalho de Melo <[email protected]>
perf c2c: Clean up registered formats on c2c_hists__init() and c2c_hists__reinit() failure
Arnaldo Carvalho de Melo <[email protected]>
perf c2c: Fix error masking, OOM, and unchecked caller errors in hpp_list__parse()
Ian Rogers <[email protected]>
perf c2c: Use perf_env e_machine rather than arch
Namhyung Kim <[email protected]>
perf report: Update sort key state from -F option
Namhyung Kim <[email protected]>
perf report: Fix histogram entry collapsing for -F option
Tianyou Li <[email protected]>
perf c2c: Add annotation support to perf c2c report
Alexey Charkov <[email protected]>
clk: rockchip: rk3576: fix source muxes for SPI0..SPI4
Cen Zhang <[email protected]>
ocfs2: synchronize heartbeat callbacks with o2net teardown
Arnaldo Carvalho de Melo <[email protected]>
perf libbfd: Fix memory leaks and NULL fclose in BPF disassembly
Arnaldo Carvalho de Melo <[email protected]>
perf bpf: Add PROG_TAGS to required arrays in __bpf_event__print_bpf_prog_info()
Arnaldo Carvalho de Melo <[email protected]>
perf libbfd: Validate BPF prog info arrays before pointer cast
Xie Yuanbin <[email protected]>
ARM: 9485/1: mm: acquire mmap write lock around show_pte() for user faults
Linus Walleij <[email protected]>
ARM: 9481/2: breakpoint: CFI breakpoints only on demand
Yehyeong Lee <[email protected]>
RDMA/srp: fix heap information leak on a truncated SRP_CRED_REQ
Cheng Xu <[email protected]>
RDMA/erdma: Hold QP references for AE and CM processing
Cheng Xu <[email protected]>
RDMA/erdma: Hold CQ references when processing EQ events
Yuntao Wang <[email protected]>
kbuild: fix modules.builtin(.modinfo) targets in the top-level Makefile
Robertus Diawan Chris <[email protected]>
modpost: prevent leak when early return no suffix .o in read_symbols()
Sergei Litvin <[email protected]>
scripts/tags.sh: Prevent binary files appearing in cscope.files
Rafael J. Wysocki <[email protected]>
intel_idle: Avoid using deep idle states during initialization
Artem Bityutskiy <[email protected]>
intel_idle: Add cmdline option to adjust C-states table
Artem Bityutskiy <[email protected]>
intel_idle: Initialize sysfs after cpuidle driver initialization
Daniel Borkmann <[email protected]>
bpf: Check load-acquire src ptr type before the load
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sar2130p: Fix swapped USB QMP PHY vdda-phy/vdda-pll supplies
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sm7225-fairphone-fp4: Fix swapped USB QMP PHY vdda-phy/vdda-pll supplies
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: qcs8550-aim300: Fix swapped USB QMP PHY vdda-phy/vdda-pll supplies
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sc8280xp-blackrock: Fix swapped USB QMP PHY vdda-phy/vdda-pll supplies
Sayali Patil <[email protected]>
selftests/mm: fix ternary operator precedence in ksm_tests
Sayali Patil <[email protected]>
selftests/mm: fix ksm NUMA merge test for systems with memoryless NUMA nodes
Mike Rapoport (Microsoft) <[email protected]>
selftests/mm: ksm_tests: use kselftest framework
Pu Lehui <[email protected]>
bpf, cgroup: Fix invalid storage access after __cgroup_bpf_attach failed
Mukesh Ojha <[email protected]>
remoteproc: fix OOB read via signed offset in rsc_table_for_each_entry()
Mukesh Ojha <[email protected]>
remoteproc: use rsc_table_for_each_entry() in rproc_handle_resources()
Mukesh Ojha <[email protected]>
remoteproc: Move resource table data structure to its own header
Imran Shaik <[email protected]>
arm64: dts: qcom: agatti: Add missing CX power domain to DISPCC
Andreas Kemnade <[email protected]>
drm/omap: dsi: Do not copy isr table
Inochi Amaoto <[email protected]>
riscv: dts: sophgo: cv180x: Allow the DMA multiplexer to set channel number for DMA controller
Yichong Chen <[email protected]>
fat: release buffer head after rebuilding parent
Guangshuo Li <[email protected]>
rapidio: clear mport->net when rio_add_net() fails
Calvin Owens <[email protected]>
pps-gpio: remove dead capture_clear code
Michael Byczkowski <[email protected]>
pps: pps-gpio: split IRQ handler into hardirq timestamper + threaded handler
Calvin Owens <[email protected]>
pps: don't try to wait for negative timeouts in PPS_FETCH
Bradley Morgan <[email protected]>
lib/string: fix memchr_inv() for large ranges
Cen Zhang <[email protected]>
ocfs2/cluster: keep heartbeat local node stable
Caleb Sander Mateos <[email protected]>
ublk: check for ublk_unmap_io() returning 0
Caleb Sander Mateos <[email protected]>
ublk: check import_ubuf() return value
Tao Cui <[email protected]>
block/kyber-iosched: flush per-cpu latency buckets over possible CPUs
Tao Cui <[email protected]>
block/blk-iocost: collect per-cpu latency stats over possible CPUs
Tao Cui <[email protected]>
block/blk-stat: drain per-cpu callback stats over possible CPUs
Zheng Qixing <[email protected]>
blk-cgroup: skip dying blkg in blkcg_activate_policy()
Zheng Qixing <[email protected]>
blk-cgroup: fix race between policy activation and blkg destruction
Breno Leitao <[email protected]>
phonet: pep: do not write beyond optlen in getsockopt
Zxyan Zhu <[email protected]>
net: stmmac: Skip PHY attach if custom PCS is in use
Sang-Heon Jeon <[email protected]>
iio: light: tsl2583: return zero in write_raw() on success
Sang-Heon Jeon <[email protected]>
iio: light: isl29028: return zero in write_raw() on success
Yuanshen Cao <[email protected]>
iio: light: tsl2772: fix ALS calibscale readback
Arnaldo Carvalho de Melo <[email protected]>
perf arm-spe: Reject zero nr_cpu in metadata to prevent division by zero
Arnaldo Carvalho de Melo <[email protected]>
perf intel-bts: Fix off-by-one in auxtrace_info minimum size check
Arnaldo Carvalho de Melo <[email protected]>
perf intel-pt: Fix off-by-one in auxtrace_info minimum size check
Arnaldo Carvalho de Melo <[email protected]>
perf auxtrace: Fix queue grow overflow and old array leak
Arnaldo Carvalho de Melo <[email protected]>
perf thread-stack: Fix heap buffer overflow on branch stack wrap copy
Jiancheng Huang <[email protected]>
HID: lg4ff: validate report length before fixed offsets
Chao Huang <[email protected]>
HID: i2c-hid: goodix: Disable VDD on VDDIO enable failure
Vicki Pfau <[email protected]>
HID: steam: Reject short reads
Vicki Pfau <[email protected]>
HID: steam: Improve logging and other cleanup
Vicki Pfau <[email protected]>
HID: steam: Add support for sensor events on the Steam Controller (2015)
Vicki Pfau <[email protected]>
HID: steam: Rename some constants that got renamed upstream
Vicki Pfau <[email protected]>
HID: steam: Refactor and clean up report parsing
Ai Chao <[email protected]>
HID: i2c-hid: Fix "(null)" output when reading report descriptor fails
Yousef Alhouseen <[email protected]>
HID: synchronize input before cleaning up a failed probe
谢致邦 (XIE Zhibang) <[email protected]>
HID: i2c-hid: Refactor _DSM helper and add i2c-hid-acpi-prp0001 driver
Niklas Cassel <[email protected]>
misc: pci_endpoint_test: Check SUCCESS bit for doorbell status
Shukai Ni <[email protected]>
dm-integrity: replace forgeable discard filler with a keyed sector marker
Karl Mehltretter <[email protected]>
tty: clear cdev pointer after cdev_add() failure
Karl Mehltretter <[email protected]>
serial: amba-pl011: keep console clock enabled for atomic writes
Karl Mehltretter <[email protected]>
serial: amba-pl011: unprepare console clock on unregister
Thomas Bogendoerfer <[email protected]>
MIPS: ptrace: Fix syscall skipping via PTRACE_SYSCALL
Christophe Leroy (CS GROUP) <[email protected]>
soc: fsl: qe: implement get_direction()
Christophe Leroy (CS GROUP) <[email protected]>
soc: fsl: qe: properly scan GPIO nodes at startup
Saket Kumar Bhaskar <[email protected]>
powerpc/irq: Fix missing r2 clobber in PCREL inline assembly
Gou Hao <[email protected]>
powerpc/smp: add NULL guard for cause_ipi in smp_muxed_ipi_message_pass
Troy Mitchell <[email protected]>
pinctrl: spacemit: validate pins in pinconf callbacks
Yulin Lu <[email protected]>
pinctrl: eswin: Fix Handling of PIN_CONFIG_PERSIST_STATE
Laxman Acharya Padhya <[email protected]>
firmware: coreboot: Validate table bounds
Titouan Ameline de Cadeville <[email protected]>
firmware: google: Add bounds checks in coreboot_table_populate()
Zhao Li <[email protected]>
wifi: cfg80211: stop PMSR before P2P and NAN teardown
Miri Korenblit <[email protected]>
wifi: cfg80211: Add an API to configure local NAN schedule
Johannes Berg <[email protected]>
wifi: nl80211: split out UHR operation information
Miri Korenblit <[email protected]>
wifi: nl80211: refactor nl80211_parse_chandef
Hari Chandrakanthan <[email protected]>
wifi: cfg80211: add support to handle incumbent signal detected event from mac80211/driver
Johannes Berg <[email protected]>
wifi: cfg80211: add initial UHR support
Johannes Berg <[email protected]>
wifi: ieee80211: add some initial UHR definitions
Sai Pratyusha Magam <[email protected]>
wifi: nl80211: Add support for EPP peer indication
Lachlan Hodges <[email protected]>
wifi: cfg80211: include S1G_NO_PRIMARY flag when sending channel
Johannes Berg <[email protected]>
wifi: mac80211: disconnect on CSA to channel 0
Zhao Li <[email protected]>
wifi: mac80211: skip unused probe response countdown offsets
Slawomir Stepien <[email protected]>
wifi: zd1211rw: reject secondary interfaces to prevent conflicts
Zhao Li <[email protected]>
wifi: mac80211: send TWT teardown to peer after setup TX failure
Davidlohr Bueso <[email protected]>
perf/cxlpmu: Fix 64-bit write to 32-bit HDM filter register
Pranjal Shrivastava <[email protected]>
iommu/arm-smmu-v3: Convert to use atomic poll timeout
Mark Brown <[email protected]>
kselftest/arm64: Don't write to P0 in irritator on SME only systems
Karl Mehltretter <[email protected]>
kselftest/arm64: fp-ptrace: Fix checks for inactive SVE and SSVE regsets
Karl Mehltretter <[email protected]>
arm64/fpsimd: ptrace: Fix inactive SVE and SSVE regsets
Vladimir Murzin <[email protected]>
arm64: smp: Fix IPI teardown for GICv5 flow
Jose Ignacio Tornos Martinez <[email protected]>
wifi: mt76: mt7996: remove beacon_int_min_gcd from ADHOC interface combinations
Linghui Wu <[email protected]>
wifi: ath10k: snoc: use memcpy_fromio() for MSA ramdump
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: fix out-of-bounds link array access in mt7996_tx()
Felix Fietkau <[email protected]>
wifi: mt76: reject out-of-range link ids in mt76_vif_link()
shengwei.lu <[email protected]>
wifi: mt76: mt7925: Fix EHT Beamformee SS subfields to meet 802.11be minimum
Javier Tia <[email protected]>
wifi: mt76: mt7925: advertise EHT 320MHz capabilities for 6GHz band
Peter Chiu <[email protected]>
wifi: mt76: fix queue assignment for disassoc packets
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: report RX chain signal for all RX paths
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: fix chainmask handling for non-dbdc phys on band 1
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: do not attach hif2 WED when the main WED attach failed
StanleyYP Wang <[email protected]>
wifi: mt76: mt7996: fix reg addr remap when addr is 0
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: release hif2 reference on probe IRQ failure
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: fix ext PHY use-after-free on register error path
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: fix double hif2 init on the non-WED path
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: fix MIB TX aggregation counter registers for mt7990
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: free vif links after clearing wcid entries on full reset
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: wake MCU waiters before aborting scan in L1 SER
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: skip key upload when adding an offchannel link
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: unlink TWT flow if the MCU rejects the agreement
Yonghong Song <[email protected]>
bpf, x86: Fix trampoline stack size for 128-bit arguments
Arnaldo Carvalho de Melo <[email protected]>
perf machine: Check snprintf truncation for guest kallsyms path
Arnaldo Carvalho de Melo <[email protected]>
perf machine: Free scandir entries in guest kernel map creation
Arnaldo Carvalho de Melo <[email protected]>
perf machine: Reset errno before strtol in guest kernel map creation
Arnaldo Carvalho de Melo <[email protected]>
perf machine: Don't abort guest map creation on first inaccessible dir
Arnaldo Carvalho de Melo <[email protected]>
perf machine: Check snprintf truncation in machines__findnew()
Arnaldo Carvalho de Melo <[email protected]>
perf machine: Guard against NULL strlist in machines__findnew()
Arnaldo Carvalho de Melo <[email protected]>
perf machine: Fix NULL parent dereference in fork event processing
Arnaldo Carvalho de Melo <[email protected]>
perf machine: Fix fd leak on bounds check in maps__set_modules_path_dir()
Joy Zou <[email protected]>
regulator: core: use system_freezable_wq for init complete work
Andrey Golovko <[email protected]>
ASoC: tas2783-sdw: drop stale regcache on uninitialized re-attach
Pengpeng Hou <[email protected]>
ASoC: codecs: tas2783-sdw: Propagate regcache_sync() errors
Charles Keepax <[email protected]>
ASoC: tas2783: Use new SoundWire enumeration helper
Charles Keepax <[email protected]>
soundwire: Add a helper function to wait for device initialisation
Jeff Johnson <[email protected]>
wifi: ath11k: fix leak in ath11k_service_ready_ext_event()
Konrad Dybcio <[email protected]>
drm/msm/dsi: Drop dev_pm_opp_set_rate(0)
Konrad Dybcio <[email protected]>
drm/msm/dp: Drop dev_pm_opp_set_rate(0)
Konrad Dybcio <[email protected]>
drm/msm/dpu: Drop sneaky dev_pm_opp_set_rate(0)
Leo Yan <[email protected]>
perf: arm_spe: Make wakeup range check overflow safe
Dmitry Baryshkov <[email protected]>
drm/msm/dp: do not reject wide-bus modes while a YUV420 mode is active
Dmitry Baryshkov <[email protected]>
drm/msm/dp: reject YUV420-only modes without VSC SDP support
Dmitry Baryshkov <[email protected]>
drm/msm: don't tear down KMS twice when KMS init fails
Can Peng <[email protected]>
ACPI: processor: Unregister cpufreq notifier on init failure
Huisong Li <[email protected]>
ACPI: processor: idle: Optimize ACPI idle driver registration
Felix Fietkau <[email protected]>
wifi: mt76: only consume the WO drop bit on WED v2 devices
StanleyYP Wang <[email protected]>
wifi: mt76: mt7996: add missing rdd_idx check when enabling background radar
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: use little-endian for bss_info_ra wire fields
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: don't leak MLD group index on remap alloc failure
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: reserve space for the CSA-abort countdown TLV
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: hold dev->mt76.mutex while disabling tx worker in SER
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: unwind state on add_interface failure
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: bound TLV walk in mt7996_mcu_get_chip_config
Rex Lu <[email protected]>
wifi: mt76: check txfree done event on the WED hw path
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: poll the correct SLP CTRL register for the second adie
Felix Fietkau <[email protected]>
wifi: mt76: fix RXDMAD_C buffer recycling race
Felix Fietkau <[email protected]>
wifi: mt76: fix uninitialised RXDMAD_C descriptor info
Felix Fietkau <[email protected]>
wifi: mt76: fix stranded frames in mt76_txq_schedule_pending
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: write RX header translation bit to the correct register
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: don't report a zero TX bitrate
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: avoid nss underflow in mt7915_mcu_get_sta_nss
Felix Fietkau <[email protected]>
wifi: mt76: mt7915: clear wcid mask under mutex after RCU pointer clear
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: set MT76_MCU_RESET before waking MCU waiters on full reset
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: validate RX band_idx before dereferencing phys[]
Michael-CY Lee <[email protected]>
wifi: mt76: assign link_id when sending probe request during scan
Michael-CY Lee <[email protected]>
wifi: mt76: fix non-AQL packet accounting for MLO stations
Peter Chiu <[email protected]>
wifi: mt76: mt7996: fix MLD ID in MAC TXD and HIF TXP
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: fix out-of-bounds array access during hardware restart
StanleyYP Wang <[email protected]>
wifi: mt76: mt7996: set specific BSSINFO and STAREC commands after channel switch
Shayne Chen <[email protected]>
wifi: mt76: mt7996: support fixed rate for link station
Rex Lu <[email protected]>
wifi: mt76: fix RX data queuing of RRO 3.0
Shayne Chen <[email protected]>
wifi: mt76: mt7996: fix capability of EHT-MCS 15 in MRU
Chad Monroe <[email protected]>
wifi: mt76: mt7996: fix EAPOL source BSS for non-MLD stations
Eason Lai <[email protected]>
wifi: mt76: mt792x: Fix memory leak in SDIO TX path
Jared.Huang <[email protected]>
wifi: mt76: mt7925: fix msg len mismatch between driver and firmware
Jared.Huang <[email protected]>
wifi: mt76: mt7925: update clc before setting sar power table
Eason Lai <[email protected]>
wifi: mt76: mt7921: Add PCIe AER handler support to prevent system crash
Lorenzo Bianconi <[email protected]>
wifi: mt76: always enable RRO queues for non-MT7992 chipset
Lorenzo Bianconi <[email protected]>
wifi: mt76: Introduce the NPU generic layer
Lorenzo Bianconi <[email protected]>
wifi: mt76: Move Q_READ/Q_WRITE definitions in dma.h
Zhi-Jun You <[email protected]>
wifi: mt76: mt7915: fix net_fill_forward_path for non-DBDC mt7986
Laxman Acharya Padhya <[email protected]>
wifi: mt76: mt7921: validate CLC firmware records
Devin Wittmayer <[email protected]>
wifi: mt76: mt76x02: do not WARN on invalid rx descriptor length
Dmitry Gomzyakov <[email protected]>
wifi: mt76: connac: add MT7991A (0x7991) to is_mt7996()
Yichong Chen <[email protected]>
fanotify: report full event length for FIONREAD
Muhammad Usama Anjum <[email protected]>
misc: sgi-gru: remove interrupt-context page-table walks
Abdun Nihaal <[email protected]>
misc: vmc_vmci: Fix potential memory leak in vmci_event_subscribe()
Jinjie Ruan <[email protected]>
powerpc/crash: Fix possible memory leak in update_crash_elfcorehdr()
Rosen Penev <[email protected]>
powerpc/44x: Set GPIO chip parent
Christophe Leroy (CS GROUP) <[email protected]>
powerpc: implement get_direction() in cpm2
Naveen Kumar Chaudhary <[email protected]>
locking/lockdep: Fix NULL pointer dereference in __lock_set_class()
Martin Wilck <[email protected]>
md/raid1: create serial pool adding rdev to array with serialize_policy=1
Yu Peng <[email protected]>
fs: annotate inode timestamp accessors
Can Peng <[email protected]>
i3c: master: adi: add OF module alias for autoloading
Jakub Kicinski <[email protected]>
i3c: dw: avoid shift-out-of-bounds when DAA assigns no devices
Aneesh Kumar K.V (Arm) <[email protected]>
swiotlb: Preserve allocation virtual address for dynamic pools
Aneesh Kumar K.V (Arm) <[email protected]>
iommu/dma: Check atomic pool allocation result directly
Chen Cheng <[email protected]>
md: scope memalloc_noio to allocation critical sections
Abd-Alrhman Masalkhi <[email protected]>
md: skip redundant raid_disks update when value is unchanged
Chen Cheng <[email protected]>
md: remove unused mddev argument from export_rdev
Chen Cheng <[email protected]>
md/bitmap: resume array on backlog_store() error path
Vladimir Zapolskiy <[email protected]>
clk: qcom: Return expected ENOMEM error on dynamic allocation failure
Imran Shaik <[email protected]>
clk: qcom: gpucc-qcm2290: Park RCG's clk source at XO during disable
Stanislav Kinsburskii <[email protected]>
lib/test_hmm: fail dmirror_fault() when the mirrored mm is gone
Pu Lehui <[email protected]>
bpf: Fix potential UAF when reading bpf link info
Pu Lehui <[email protected]>
bpf: Fix potential UAF in bpf_netns_link_update_prog
Hongyan Xu <[email protected]>
power: supply: sc2731_charger: cancel work on remove
Hongyan Xu <[email protected]>
power: supply: isp1704_charger: cancel work on remove
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: qcs6490-rb3gen2: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: lemans: Fix the PCIe iommu-map entries
Shawn Guo <[email protected]>
arm64: dts: qcom: lemans: Move PCIe devices into soc node
Odelu Kukatla <[email protected]>
arm64: dts: qcom: sa8775p: Add reg and clocks for QoS configuration
Abhinaba Rakshit <[email protected]>
arm64: dts: qcom: lemans: add QCrypto node
Dmitry Baryshkov <[email protected]>
arm64: dts: qcom: lemans: add refgen regulator and use it for DSI
Dmitry Baryshkov <[email protected]>
arm64: dts: qcom: lemans: move USB PHYs to a proper place
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: talos: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sm8750: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sm8650: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sm8550: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sm8450: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sm8350: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sm8250: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sm8150: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sdm845: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sc8180x: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sar2130p: Fix the PCIe iommu-map entries
Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: kodiak: Fix the PCIe iommu-map entries
Dawid Wróbel <[email protected]>
arm64: dts: qcom: sm8250-xiaomi-elish: correct the board ID
Keith Busch <[email protected]>
block: fix dio leak on metadata mapping error
Christoph Hellwig <[email protected]>
block: add a bio_endio_status helper
Christoph Hellwig <[email protected]>
block: don't set BIO_QUIET for BLK_STS_AGAIN
Christoph Hellwig <[email protected]>
blk-crypto: use on-stack skcipher requests for fallback en/decryption
Christoph Hellwig <[email protected]>
blk-crypto: optimize bio splitting in blk_crypto_fallback_encrypt_bio
Christoph Hellwig <[email protected]>
blk-crypto: submit the encrypted bio in blk_crypto_fallback_bio_prep
Mukesh Ojha <[email protected]>
firmware: qcom: scm: Fix tzmem state on probe retry
Mukesh Ojha <[email protected]>
firmware: qcom: scm: Fix reserved memory cleanup on probe failure
Mukesh Ojha <[email protected]>
firmware: qcom: scm: Fix NULL dereference in IRQ handler before __scm is published
Yuvaraj Ranganathan <[email protected]>
firmware: qcom: scm: instrument SMC call path with tracepoints
Yuvaraj Ranganathan <[email protected]>
firmware: qcom: scm: add trace events for the SMC call interface
Unnathi Chalicheemala <[email protected]>
firmware: qcom_scm: Support multiple waitq contexts
Unnathi Chalicheemala <[email protected]>
firmware: qcom_scm: Add API to get waitqueue IRQ info
Konrad Dybcio <[email protected]>
arm64: dts: qcom: sc8280xp-crd: Fix the pin index for misc_3p3_reg_en
Dmitry Baryshkov <[email protected]>
clk: qcom: gcc-qcm2290: don't park QUP RCGs upon registration
Krishna Kurapati <[email protected]>
arm64: dts: qcom: qcs404: Fix DTBS Check errors in usb controller nodes
Konrad Dybcio <[email protected]>
arm64: dts: qcom: sdm632-motorola-ocean: Fix LED default trigger property
Konrad Dybcio <[email protected]>
arm64: dts: qcom: msm8976-longcheer-l9360: Fix accidental node override
Konrad Dybcio <[email protected]>
arm64: dts: qcom: msm8998: Don't pull-up I2C pins by default in sleep
Itai Handler <[email protected]>
rcu: Mark accesses to ->rcu_urgent_qs and ->rcu_need_heavy_qs
Abd-Alrhman Masalkhi <[email protected]>
md/raid10: consistently fail atomic writes that require splitting
Jeff Johnson <[email protected]>
wifi: ath11k: fix stride mismatch in mac_phy_caps_parse()
Jeff Johnson <[email protected]>
wifi: ath12k: fix stride mismatch in mac_phy_caps_parse()
Fushuai Wang <[email protected]>
Revert "serial: 8250: Clear CON_PRINTBUFFER on port re-registration"
Cheng-Han Wu <[email protected]>
selftests/zram: fix kernel_gte() for POSIX sh
Abd-Alrhman Masalkhi <[email protected]>
md: recheck spare changes before starting sync
Thomas Weißschuh <[email protected]>
tools/nolibc/powerpc: mark ctr and xer as clobbered by system call
Yichong Chen <[email protected]>
fanotify: stop permission watchdog when timeout is zero
Chen Cheng <[email protected]>
md/raid5: protect lockless recovery_offset accesses during reshape
Sajal Gupta <[email protected]>
md/raid5-ppl: fix use-after-free in ppl_do_flush()
Chen Cheng <[email protected]>
md/raid5: protect bitmap batch counters aka seq_flush/seq_write consistency
Yuho Choi <[email protected]>
bus: mhi: host: Fix controller cleanup on EDL sysfs failure
Manivannan Sadhasivam <[email protected]>
bus: mhi: host: Flush the posted write after writing to MHI_SOC_RESET_REQ_OFFSET
Abdun Nihaal <[email protected]>
wifi: rtlwifi: pci: fix error path in rtl_pci_probe()
Hongyan Xu <[email protected]>
platform/chrome: cros_ec_debugfs: Unregister panic notifier
Hongyan Xu <[email protected]>
platform/chrome: cros_ec_debugfs: Clean up console log on probe failure
Jens Remus <[email protected]>
s390/vdso: Pass --eh-frame-hdr to the linker
Heiko Carstens <[email protected]>
s390/vdso: Rename vdso64 to vdso
Heiko Carstens <[email protected]>
s390: Add stackprotector support
Heiko Carstens <[email protected]>
s390: Remove compat support
Heiko Carstens <[email protected]>
s390/syscalls: Add pt_regs parameter to SYSCALL_DEFINE0() syscall wrapper
Heiko Carstens <[email protected]>
s390/ptrace: Rename psw_t32 to psw32_t
Hungyu Lin <[email protected]>
media: qcom: iris: handle runtime PM resume failure in core deinit
Dikshita Agarwal <[email protected]>
media: qcom: iris: Fix bitmask test in iris_allow_cmd()
Anna Maniscalco <[email protected]>
drm/msm: remove objects from evit list after pinning them
Ali Tariq <[email protected]>
PCI: starfive: Fix unchecked pm_runtime_get_sync() in probe
Ali Tariq <[email protected]>
PCI: starfive: Fix Runtime PM handling and teardown ordering
Jeff Johnson <[email protected]>
wifi: ath12k: validate TLV length in process_tpc_stats()
Jeff Johnson <[email protected]>
wifi: ath11k: fix overreads in ath11k_wmi_process_csa_switch_count_event()
Fan Wu <[email protected]>
spi: davinci: switch to managed controller allocation
Guixin Liu <[email protected]>
nvme-fc: unmap cmd_iu DMA on rsp_iu mapping failure in init_request
Yehyeong Lee <[email protected]>
IB/isert: reject login PDUs declaring more data than was received
Yehyeong Lee <[email protected]>
IB/isert: reject PDUs declaring more data than was received
Cong Nguyen <[email protected]>
media: staging/ipu7: fix async notifier leak on init error
Leon Romanovsky <[email protected]>
RDMA/cxgb4: free STAG index when TPT entry write fails
Leon Romanovsky <[email protected]>
RDMA/mlx5: Send cong param changes to the resolved port mdev
Leon Romanovsky <[email protected]>
RDMA/mlx5: Fix stack out-of-bounds read in cc_params debugfs
David Strahan <[email protected]>
scsi: smartpqi: Fix AIO retry marker cleared by SCSI core between dispatches.
Ryusuke Konishi <[email protected]>
nilfs2: fix BUG in nilfs_copy_dirty_pages() on dirty state mismatch
David Lee <[email protected]>
nilfs2: prevent out-of-bounds read in super root block parsing
Joshua Crofts <[email protected]>
nilfs2: fix infinite loop in nilfs_clean_segments()
Alexey Charkov <[email protected]>
clk: rockchip: Fix the fractional part denominator on RK3588/RK3576 PLLs
Akari Tsuyukusa <[email protected]>
clk: mediatek: mt8135: Fix inverted gate control for devapc_ck
longlong yan <[email protected]>
clk/x86: pmc_atom: add kasprintf return value check
Myeonghun Pak <[email protected]>
clk: palmas: Manage external-control prepare with devm
Louis-Alexis Eyraud <[email protected]>
clk: mediatek: pllfh: Fix IO remapping leak in register_pllfhs error path
Nicolas Frattaroli <[email protected]>
clk: mediatek: Refactor pllfh registration to pass device
Nicolas Frattaroli <[email protected]>
clk: mediatek: Pass device to clk_hw_register for PLLs
Nicolas Frattaroli <[email protected]>
clk: mediatek: Refactor pll registration to pass device
Guangshuo Li <[email protected]>
clk: tegra: tegra124-emc: put EMC node on register failure
Ondrej Jirman <[email protected]>
arm64: dts: allwinner: sun50i-a64-pinephone: Fix mpu6050 mount matrix
Zhao Li <[email protected]>
wifi: mac80211: fix per-STA profile length in cross-link CSA parsing
Yonatan Nachum <[email protected]>
RDMA/efa: Fix PBL chunk length computation
Peiyang He <[email protected]>
RDMA/rxe: Fix UAF in ODP init error-handling path
Nicolin Chen <[email protected]>
iommu/tegra241-cmdqv: Fix VINTF0 leak on the init-failure path
Nicolin Chen <[email protected]>
iommu/tegra241-cmdqv: Require exactly one Stream ID for a vSID
Nicolin Chen <[email protected]>
iommu/tegra241-cmdqv: Free the error IRQ before tearing down VINTFs
Nicolin Chen <[email protected]>
iommu/tegra241-cmdqv: Don't run the error ISR before probe sets up vintfs
Nicolin Chen <[email protected]>
iommu/tegra241-cmdqv: Synchronize the error ISR against VINTF (de)init
Nicolin Chen <[email protected]>
iommu/tegra241-cmdqv: Publish an LVCMDQ only after it is fully initialized
Weiming Shi <[email protected]>
fs/ntfs3: reject restart table growth beyond U16_MAX entries
Ivy Lopez <[email protected]>
staging: rtl8723bs: use kfree_sensitive() for key material
Mukesh Ojha <[email protected]>
firmware: qcom_scm: Introduce PAS context allocator helper function
Bjorn Andersson <[email protected]>
remoteproc: Prevent crash handling to race with rproc_del()
Jingyi Wang <[email protected]>
remoteproc: core: Attach rproc asynchronously in rproc_add() path via schedule_work()
Bjorn Andersson <[email protected]>
remoteproc: Allow shutdown of crashed processors
Peng Fan <[email protected]>
remoteproc: core: Drop redundant initialization of 'ret' in rproc_shutdown()
K Prateek Nayak <[email protected]>
cpufreq/amd-pstate: Set min_limit_freq based on bios_min_perf
Juan Martinez <[email protected]>
cpufreq/amd-pstate: Add comment explaining nominal_perf usage for performance policy
Babanpreet Singh <[email protected]>
w1: ds2482: Fix signedness bug in ds2482_w1_triplet()
Fan Wu <[email protected]>
spi: oc-tiny: switch to managed controller allocation
Myeonghun Pak <[email protected]>
clk: mediatek: mt6735: Unregister PLLs on probe failure
Yichong Chen <[email protected]>
isofs: release zisofs block pointer buffer head
Sumeet Pawnikar <[email protected]>
powercap: intel_rapl_tpmi: Handle PMU registration failure during probe
Rakesh Kota <[email protected]>
thermal/drivers/qcom-spmi-adc-tm5: Drop IIO_VAL_INT check in adc_tm5_get_temp
Christian Marangi <[email protected]>
thermal/drivers/airoha: Fix copy paste error for sen internal
Christian Marangi <[email protected]>
thermal/drivers/airoha: Fix copy paste error on clamp_t low temp
Maher Sanalla <[email protected]>
RDMA/mlx5: Fix integer overflow of user QP buffer size
Can Peng <[email protected]>
crypto: keembay - publish OF module alias for OCS AES/SM4
Linmao Li <[email protected]>
crypto: keembay - Initialize completion before requesting IRQ
Li Qiang <[email protected]>
scsi: ufs: debugfs: Reserve space for a string terminator
Babanpreet Singh <[email protected]>
power: supply: sbs-battery: Use a per-device serial number buffer
Kohei Enju <[email protected]>
arm64: RSI: fix field-spanning write warning in attestation token init
James Clark <[email protected]>
tools/build: Allow versioning of all LLVM tools defined in Makefile.include
Justin Yeh <[email protected]>
pinctrl: mediatek: free EINT resources on unbind
Alison Schofield <[email protected]>
cxl/region: Fix use-after-free in find_pos_and_ways() error path
Feng Yang <[email protected]>
selftests/bpf: Fix memory leak on subtest_states reallocation
Feng Yang <[email protected]>
selftests/bpf: Fix incorrect error checking for pthread_create
Karl Mehltretter <[email protected]>
ARM: lpc32xx: only run SoC init on LPC32xx hardware
Mykyta Yatsenko <[email protected]>
bpf: Fix CFI mismatch in task work callback
Fabio Estevam <[email protected]>
arm64: dts: rockchip: Fix rk3566-bigtreetech-cb2 touchscreen property
Fabio Estevam <[email protected]>
arm64: dts: rockchip: Fix Gru WLAN sideband interrupt
Damon Ding <[email protected]>
arm64: dts: rockchip: Add missing hclk for RK3588 eDP1
Damon Ding <[email protected]>
arm64: dts: rockchip: Add missing hclk for RK3588 eDP0
Osama Abdelkader <[email protected]>
drm/panthor: return PTR_ERR() from devm_drm_dev_alloc()
Weiming Wu <[email protected]>
fs/ntfs3: fix out-of-bounds read of INDEX_ROOT in reparse/objid init
Florian Westphal <[email protected]>
netfilter: nf_nat_sip: rewind offset when NAT shrinks the packet
Can Peng <[email protected]>
drm/tve200: add OF module alias for autoloading
Ian Rogers <[email protected]>
perf cap: Remove used_root parameter and simplify capability checks
Cosmo Chou <[email protected]>
leds: pca9532: Fix phantom device registration on missing hardware
Malaya Kumar Rout <[email protected]>
PM: hibernate: Fix memory leak in snapshot_write_next() error path
Leon Romanovsky <[email protected]>
RDMA/erdma: complete object teardown when the destroy command fails
Sanghyun Park <[email protected]>
xfrm: Fix skb double-free in xfrm_dev_direct_output()
Leo Yan <[email protected]>
perf cs-etm: Avoid truncating AUX buffer sizes to int
Leo Yan <[email protected]>
perf cs-etm: Flush thread stacks after decoder reset
Junhui Liu <[email protected]>
riscv: dts: spacemit: k1: Split gmac_clk_ref into independent pinctrl groups
Michael Opdenacker <[email protected]>
riscv: dts: spacemit: Add OrangePi R2S board device tree
Troy Mitchell <[email protected]>
riscv: dts: spacemit: add MusePi Pro board device tree
Sudeep Holla <[email protected]>
firmware: arm_scmi: Unrequest devices if driver registration fails
Sudeep Holla <[email protected]>
firmware: arm_scmi: Roll back partial protocol table registration
Marco Scardovi <[email protected]>
cpufreq/amd-pstate: Toggle auto_sel in active mode on shared memory systems
Marco Scardovi <[email protected]>
cpufreq/amd-pstate: Fix EPP return type and handle errors during initialization
Mario Limonciello (AMD) <[email protected]>
cpufreq/amd-pstate: Add support for platform profile class
Mario Limonciello (AMD) <[email protected]>
cpufreq/amd-pstate: Add dynamic energy performance preference
Gautham R. Shenoy <[email protected]>
amd-pstate: Make certain freq_attrs conditionally visible
Mario Limonciello (AMD) <[email protected]>
cpufreq/amd-pstate: Use sysfs_match_string() for epp
Qianheng Peng <[email protected]>
cpufreq: amd-pstate-ut: Skip tests when amd-pstate driver is not active
Andre Przywara <[email protected]>
ARM: dts: allwinner: a10: Fix PMU interrupt
Xiang Mei <[email protected]>
ext4: check dir entry fits before reading the hash trailer in ext4_search_dir()
Guanghui Yang <[email protected]>
ext4: fix buffer_head leak in ext4_init_orphan_info
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Clear VM_MAYWRITE on DBR/toggle page mmap
Jeff Johnson <[email protected]>
wifi: ath11k: Avoid buffer overread in ath11k_wmi_tlv_op_rx()
Jeff Johnson <[email protected]>
wifi: ath12k: Avoid buffer overread in ath12k_wmi_op_rx()
Jeff Johnson <[email protected]>
wifi: ath11k: Correctly copy the hint BSSID in WMI scan request
Jeff Johnson <[email protected]>
wifi: ath12k: Correctly copy the hint BSSID in WMI scan request
Aaradhana Sahu <[email protected]>
wifi: ath12k: allocate HOST_DDR and BDF regions after Q6 RO region
Aaradhana Sahu <[email protected]>
wifi: ath12k: refactor QMI memory assignment
Aaradhana Sahu <[email protected]>
wifi: ath12k: switch to name-based reserved memory lookup
Jeff Johnson <[email protected]>
wifi: ath6kl: avoid buffer overreads in WMI event handlers
Yao Kai <[email protected]>
ext4: validate readdir offset before accessing dirent
Aditya Prakash Srivastava <[email protected]>
ext4: use fsdata to track inline data write state and fix race
Baokun Li <[email protected]>
ext4: drain in-flight DIO before buffered write fallback
Gerald Yang <[email protected]>
ext4: clear stale xarray tags on folios skipped during writeback
Pengpeng Hou <[email protected]>
thermal: intel: int3400: clean up ODVP on probe failures
Nicolin Chen <[email protected]>
iommu/arm-smmu-v3: Declare eats_s1chk and eats_trans as host-endian u64
Mukesh Ojha <[email protected]>
iommu/qcom: Fix inverted fault report check in qcom_iommu_fault()
Haoxiang Li <[email protected]>
iommu/qcom: Remove sysfs device on probe failure path
Li RongQing <[email protected]>
iommu/amd: Fix undefined behavior in devid_write debugfs function
Sudeep Holla <[email protected]>
firmware: arm_scmi: Fix requested device removal race
Patrisious Haddad <[email protected]>
RDMA/core: Fix potential use after free in ib_dealloc_pd_user()
Patrisious Haddad <[email protected]>
RDMA/core: Fix potential use after free in uverbs_free_dmah()
Patrisious Haddad <[email protected]>
RDMA/core: Fix potential use after free in ib_free_cq()
Patrisious Haddad <[email protected]>
RDMA/core: Fix potential use after free in counter_release()
Patrisious Haddad <[email protected]>
RDMA/core: Fix potential use after free in ib_destroy_srq_user()
Patrisious Haddad <[email protected]>
RDMA/core: Fix potential use after free in ib_destroy_cq_user()
Patrisious Haddad <[email protected]>
RDMA/core: Fix use after free in ib_query_qp()
Patrisious Haddad <[email protected]>
RDMA/core: Add rdma_restrack_begin/abort/commit_del() operations
Jason Gunthorpe <[email protected]>
RDMA/nldev: Fix locking when accessing mr->pd
Kalesh AP <[email protected]>
RDMA/restrack: Fix typos in the comments
Leon Romanovsky <[email protected]>
RDMA/mana_ib: drain QP references after partial table insertion
Myeonghun Pak <[email protected]>
RDMA/erdma: Fix CEQ tasklet use-after-free on removal
Takuma Fujiwara <[email protected]>
PCI: j721e: Fix incorrect max_lanes for J7200
Leon Romanovsky <[email protected]>
RDMA/srpt: Pass the mapped task attribute to target_init_cmd()
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Mark bpf_refcount field as unique
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Preserve unique-field state across nested structs
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Fix offset warn check for bpf_res_spin_lock
Kohei Enju <[email protected]>
virt: arm-cca-guest: use migrate_disable() for attestation token requests
Rafael J. Wysocki <[email protected]>
ACPI: battery: Adjust charging status validation check
Feng Jiang <[email protected]>
bpf, riscv: Fix extable handling for arena load_acquire
Pu Lehui <[email protected]>
riscv, bpf: Fix kernel stack corruption in tailcall with CFI
Pu Lehui <[email protected]>
riscv, bpf: Fix memory leak in bpf_jit_free
Ricardo B. Marlière <[email protected]>
libbpf: Search /lib64 and /lib in resolve_full_path()
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Zero queue and stack outputs on lock failure
Yousef Alhouseen <[email protected]>
platform/x86: acer-wmi: reject missing gaming WMI results
Yun Zhou <[email protected]>
ext4: skip extra isize expansion during mount to prevent deadlock
Xiang Mei <[email protected]>
ext4: fix out-of-bounds read in ext4_read_inline_dir()
Yun Zhou <[email protected]>
ext4: fix circular lock dependency in ext4_ext_migrate
Chen Pei <[email protected]>
ACPI: PCI: Clear driver_data on all paths that free the acpi_pci_root
Pengpeng Hou <[email protected]>
ACPI: processor: validate MADT IOAPIC entry bounds
Zhu Ling <[email protected]>
ACPI: EC: Avoid _REG disconnect on GPIO IRQ defer
Pengpeng Hou <[email protected]>
RDMA/nldev: validate dynamic counter attribute length
Kemeng Shi <[email protected]>
irqchip/gic-v3-its: Prevent leak in its_vpe_irq_domain_alloc()
Viktor Malik <[email protected]>
selftests/bpf: Silence array bounds warning in global_map_resize
Viktor Malik <[email protected]>
selftests/bpf: Check malloc result with ASSERT_NEQ in test_sha256
Pawan Gupta <[email protected]>
x86/bugs: Don't use cpu-type matching in cpu_vuln_blacklist
Frank Li <[email protected]>
arm64: dts: imx8-ss-audio: Fix LPCG clock indices for ASRC0
Marco Elver <[email protected]>
kcsan: avoid unintended access checking in NMIs
TanZheng <[email protected]>
RDMA/srpt: Fix srpt_alloc_rw_ctxs() unwind counters
Ibrahim Hashimov <[email protected]>
RDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]
Danila Chernetsov <[email protected]>
RDMA/hfi1: Propagate sdma_txinit_ahg() errors
Jun Yan <[email protected]>
arm64: dts: amlogic: meson-axg-s400: enable mipi_pcie_analog_dphy for PCIe
Jun Yan <[email protected]>
arm64: dts: amlogic: meson-axg: Add missing nand_rb0 pin to nand_all_pins
Can Peng <[email protected]>
phy: starfive: Fix runtime PM cleanup in JH7110 DPHY RX probe
Can Peng <[email protected]>
phy: starfive: Fix runtime PM cleanup in JH7110 DPHY TX probe
Linmao Li <[email protected]>
ASoC: meson: Keep link pointers valid on realloc failure
Koichiro Den <[email protected]>
dmaengine: dw-edma: Clear stale requests on termination
Koichiro Den <[email protected]>
dmaengine: dw-edma: Serialize channel state checks
Koichiro Den <[email protected]>
dmaengine: dw-edma: Serialize abort state updates
Koichiro Den <[email protected]>
dmaengine: dw-edma: Terminate all descriptors without callbacks
Yiyang Chen <[email protected]>
bpf: Reject arena frees below the arena base
Puranam V G Tejaswi <[email protected]>
drm/msm/a6xx: Fix RBBM_CLOCK_CNTL3_TP0 value in a730_hwcg
Yuho Choi <[email protected]>
driver core: soc: Unregister bus on early device registration failure
Alban Bedel <[email protected]>
software node: Fix software_node_get_reference_args() with index -1
Ian Rogers <[email protected]>
perf ui hists: Fix uninitialized stack memory free on pstack allocation failure
zhouminqiang <[email protected]>
mtd: part: reject MTDPART_OFS_RETAIN in mtd_add_partition()
Ruoyu Wang <[email protected]>
mtd: mtdswap: Avoid freeing registered blktrans device twice
Guangshuo Li <[email protected]>
mtd: intel-dg: Fix runtime PM error path in probe
Alexander Usyskin <[email protected]>
mtd: intel-dg: wake card on operations
Pengpeng Hou <[email protected]>
soc: ti: knav_qmss: Remove debugfs file on teardown
Md Shofiqul Islam <[email protected]>
soc: ti: knav_qmss_queue: Implement resource cleanup in remove()
Xiang Mei <[email protected]>
vfio/pci: clear vdev->msi_perm after freeing it on init failure
Myeonghun Pak <[email protected]>
char: xilinx_hwicap: unregister class on init errors
Pei Xiao <[email protected]>
ipack: ipoctal: fix UAF, null-ptr-deref, and use-after-free in cleanup on remove
Linmao Li <[email protected]>
ppdev: prevent overflow when setting port timeout
Breno Leitao <[email protected]>
cacheinfo: don't propagate DT/ACPI error when arch supplies info (arm64)
Pengpeng Hou <[email protected]>
misc: lan966x_pci: depopulate children on populate failure
Pengpeng Hou <[email protected]>
misc: ad525x_dpot: use driver core groups for sysfs files
Gleb Markov <[email protected]>
misc: rtsx: add missing write register handling
Gui-Dong Han <[email protected]>
misc: bcm-vk: Use acquire/release for msgq_inited
Pavel Zhigulin <[email protected]>
speakup: keyhelp: guard letter_offsets possible out-of-range indexing
Christophe JAILLET <[email protected]>
accessibility: speakup: Fix incorrect string length computation in report_char_chartab_status()
Yuho Choi <[email protected]>
uio: Fix stale info pointer in failed registration path
Gui-Dong Han <[email protected]>
gpib: Move stuck SRQ update under lock
Cong Nguyen <[email protected]>
staging: rtl8723bs: fix xmit_frame/xmit_buf leaks on mgnt-frame error paths
Mohammed Rizwan Kaniyate <[email protected]>
staging: rtl8723bs: remove multiple blank lines in core/
Minu Jin <[email protected]>
staging: rtl8723bs: replace rtw_zmalloc() with kzalloc()
Nayana Mariyappa <[email protected]>
staging: rtl8723bs: expand multiple assignment into separate statements
Khushal Chitturi <[email protected]>
staging: rtl8723bs: fix operator and type cast spacing
Navaneeth K <[email protected]>
staging: rtl8723bs: use standard offsetof in cfg80211 operations
Sameeksha Sankpal <[email protected]>
staging: rtl8723bs: Fix operator spacing in rtw_security.c
David Lee <[email protected]>
UDF symlink pathComponent header OOB read
Karl Mehltretter <[email protected]>
tty: hvc: restrict HVC_DCC to ARMv6+ and ARM64
Xu Yang <[email protected]>
usb: gadget: f_uac1_legacy: remove broken string configfs attributes
Rafael J. Wysocki <[email protected]>
ACPI: processor: idle: Expand _LPI package sanity checks
Thorsten Blum <[email protected]>
crypto: sl3516 - drop invalid sg_dma_len checks before DMA mapping
Pu Lehui <[email protected]>
bpf: Sync tail_call_reachable with callee state on entry
Ruoyu Wang <[email protected]>
drm/msm: Only fini scheduler after successful init
Jie Zhang <[email protected]>
drm/msm: Fix task_struct reference leak in recover_worker
Jie Zhang <[email protected]>
drm/msm/a6xx: Fix A621 GPUCC register list for state capture
Akhil P Oommen <[email protected]>
drm/msm/a6xx: Rebase GMU register offsets
Jie Zhang <[email protected]>
drm/msm/a6xx: Fix A663 GPUCC register list for state capture
Jie Zhang <[email protected]>
drm/msm: Recover HW before retire hung submit
Shivam Rawat <[email protected]>
drm/msm/a6xx: Fix stale rpmh votes after suspend
Mikko Perttunen <[email protected]>
gpu: host1x: Avoid stack over-read in debug output helpers
Mikko Perttunen <[email protected]>
gpu: host1x: Fix offset calculation in trace_write_gather
Avraham Stern <[email protected]>
wifi: iwlwifi: mei: pass correct argument to function
Emmanuel Grumbach <[email protected]>
wifi: iwlwifi: guard against division by zero in iwl_dbg_tlv_alloc_fragments
Avraham Stern <[email protected]>
wifi: iwlwifi: mei: check SAP message length before reading it
Emmanuel Grumbach <[email protected]>
wifi: iwlwifi: mvm: fix off-by-one in TXF key sanitiser
Emmanuel Grumbach <[email protected]>
wifi: iwlwifi: fix counter type in iwl_fwrt_dump_error_logs
Praveen Talari <[email protected]>
spi: geni-qcom: Fix sticky ret causing wrong return value on invalid proto
Geert Uytterhoeven <[email protected]>
soc: renesas: r8a78000: Drop duplicate "default ARCH_RENESAS"
Abel Vesa <[email protected]>
clk: qcom: gcc-glymur: Enable runtime PM
Ian Rogers <[email protected]>
perf jevents: Add more components to the metric sorting order
Dmitry Baryshkov <[email protected]>
arm64: dts: qcom: sm8250: correct frequencies in the Iris OPP table
Dmitry Baryshkov <[email protected]>
arm64: dts: qcom: sm8250: sort out Iris power domains
George Moussalem <[email protected]>
arm64: qcom: ipq5018: Add GEPHY RX and TX clocks
George Moussalem <[email protected]>
arm64: dts: qcom: ipq5018: Correct CMN PLL reference clock rate
Pengyu Luo <[email protected]>
arm64: dts: qcom: sc8280xp-x13s: Fix the drive-strength of mclk pin
Konrad Dybcio <[email protected]>
arm64: dts: qcom: msm8996-xiaomi-gemini: Fix up ti,drv2604 enable GPIO
Denis V. Lunev <[email protected]>
x86/mm/pat: Take cpa_lock around large-page collapse
Maoyi Xie <[email protected]>
drm/bridge: tc358767: clamp the reported AUX read size to the request
Hongling Zeng <[email protected]>
perf: evsel: Fix error handling in tp_format lookup
Uday Khare <[email protected]>
remoteproc: qcom: Fix glink->node reference leak in qcom_add_glink_subdev
Zhongqiu Han <[email protected]>
cpufreq: schedutil: Fix self-contradictory comment in sugov_iowait_apply()
Rafael J. Wysocki <[email protected]>
cpufreq: intel_pstate: Fix setting minimum P-state at init time
Gleb Markov <[email protected]>
drm/amd/display: Remove unused-but-set variable hubp from
Geoffrey McRae <[email protected]>
drm/amd/display: Fix DM I2C teardown race
Ruoyu Wang <[email protected]>
media: ipu6: Do not free aux device pdata after init
Eugen Hristev <[email protected]>
media: bcm2835-unicam: Fix asc leaked in error/remove path
Biren Pandya <[email protected]>
media: i2c: rdacm21: Fix missing media_entity_cleanup()
Qingshuang Fu <[email protected]>
irqchip/renesas-irqc: Fix generic interrupt chip leak on remove
Yuho Choi <[email protected]>
PCI: xgene: Drop unnecessary OF node reference
Dan Carpenter <[email protected]>
cpufreq: spear: Fix an IS_ERR() vs NULL bug in spear1340_set_cpu_rate()
John Groves <[email protected]>
dax: read holder_ops once in dax_holder_notify_failure()
Bryam Vargas <[email protected]>
libnvdimm/labels: Bound the on-media label size before the shift
Liang Luo <[email protected]>
tools/sched_ext: scx_qmap: Fix stale API name in comment
Dan Carpenter <[email protected]>
regulator: adp5055: Fix error code in adp5055_of_parse_cb()
Richard Cheng <[email protected]>
cxl/features: Clamp Get Feature output size to the remaining buffer
Richard Cheng <[email protected]>
cxl/features: Reject Set Features output buffer smaller than the header
Richard Cheng <[email protected]>
cxl/features: Reject Get Feature count larger than the output buffer
Sudeep Holla <[email protected]>
firmware: arm_scmi: Fix transport device teardown lookup
Sudeep Holla <[email protected]>
firmware: arm_scmi: Unwind P2A receiver mailbox setup failure
Sudeep Holla <[email protected]>
firmware: arm_scmi: Unwind TX receiver mailbox setup failure
Sudeep Holla <[email protected]>
firmware: arm_scmi: Drop handle on protocol bind failures
Sudeep Holla <[email protected]>
firmware: arm_scmi: Protect device request lookup with RCU
Sudeep Holla <[email protected]>
firmware: arm_scmi: Use channel ID for transport teardown
Sudeep Holla <[email protected]>
firmware: arm_scmi: Reject out of range DT protocol IDs
Sudeep Holla <[email protected]>
firmware: arm_scmi: Avoid IDR updates while cleaning channels
Sudeep Holla <[email protected]>
firmware: arm_scmi: Free transport channel on IDR failure
Sudeep Holla <[email protected]>
firmware: arm_scmi: Clean up channels on setup failure
Sudeep Holla <[email protected]>
firmware: arm_scmi: Quiesce notifications before teardown
Sudeep Holla <[email protected]>
firmware: arm_scmi: Unregister device notifier before IDR teardown
Sudeep Holla <[email protected]>
firmware: arm_scmi: Publish channel state before callbacks
David Stevens <[email protected]>
x86/entry/fred: Encode frame pointer on entry
Baochen Qiang <[email protected]>
wifi: ath11k: cap out-of-range rx MCS instead of leaving bogus rate
Kyle Zeng <[email protected]>
hfsplus: validate thread record before delete key rebuild
Alison Schofield <[email protected]>
cxl/port: Restart port enumeration when a sibling adds the dport first
Dave Jiang <[email protected]>
cxl/pci: Honor -EPROBE_DEFER from component register setup
Dave Jiang <[email protected]>
cxl/mbox: Break poison list loop on an empty payload
Guzebing <[email protected]>
cxl/memdev: Fix firmware upload exact-fit handling
Jason Gunthorpe <[email protected]>
iommufd: Simplify iommufd_device_remove_vdev()
Vishnu Santhosh <[email protected]>
rpmsg: glink: fix deadlock in endpoint destroy during driver detach
Srinivas Kandagatla <[email protected]>
rpmsg: glink: remove duplicate code for rpmsg device remove
Dmitry Ilvokhin <[email protected]>
perf record: Fix multiple PERF_RECORD_COMPRESSED2 records per push
Dmitry Ilvokhin <[email protected]>
perf record: Return the written size from process_comp_header()
Arnaldo Carvalho de Melo <[email protected]>
perf zstd: Fix compression error path in zstd_compress_stream_to_records()
Reinette Chatre <[email protected]>
fs/resctrl: Prevent use-after-free in rdtgroup_kn_put()
Hans Verkuil <[email protected]>
media: v4l2-async: Unregister sub-device if asc_list is empty
Samuel Moelius <[email protected]>
iommufd/selftest: Avoid selftest dirty bitmap size wrap
Xiang Mei <[email protected]>
isofs: fix out-of-bounds page array access on empty zisofs block
James Calligeros <[email protected]>
ASoC: apple: mca: increase SERDES reset delay
Leon Romanovsky <[email protected]>
RDMA/hfi1: Initialize debugfs after probe completes
Leon Romanovsky <[email protected]>
RDMA/hfi1: Stop flushing the global IB workqueue
Leon Romanovsky <[email protected]>
RDMA/hfi1: Create workqueues before device initialization
Leon Romanovsky <[email protected]>
RDMA/hfi1: Remove redundant PCI device ID validation
Leon Romanovsky <[email protected]>
RDMA/hfi1: Free RX data on late probe failure
Leon Romanovsky <[email protected]>
RDMA/hfi1: Preserve unit 0 on allocation failure
Sean Rhodes <[email protected]>
misc: rtsx_usb: avoid USB I/O in runtime autosuspend
Pengpeng Hou <[email protected]>
pmdomain: bcm: bcm2835: handle genpd provider registration errors
Evgenii Burenchev <[email protected]>
ALSA: hpi: Check transport errors during HPI6000 adapter initialization
Xiang Mei <[email protected]>
xfrm6: fix out-of-bounds write in xfrm6_input_addr() when secpath is full
Guangshuo Li <[email protected]>
crash_dump: release keyring reference at the correct time
Yuho Choi <[email protected]>
hwrng: ks-sa - Fix runtime PM cleanup on registration failure
Atish Patra <[email protected]>
crypto: ccp - Fix memory leak in SEV INIT_EX path
Dmitry Baryshkov <[email protected]>
Revert "drm/msm: dsi: fix PLL init in bonded mode"
Jens Glathe <[email protected]>
drm/msm/dp: add missing drm_edid_connector_update() before add_modes on cached EDID
Allison Henderson <[email protected]>
RDMA/rxe: Avoid reprocessing the current packet after the QP enters the error state
Leon Romanovsky <[email protected]>
RDMA/ipoib: Drain RCU callbacks during module teardown
Leon Romanovsky <[email protected]>
RDMA/mlx5: Drain RCU callbacks during module teardown
Leon Romanovsky <[email protected]>
RDMA/core: Wait for RCU callbacks before unloading ib_core
Mert Seftali <[email protected]>
iio: accel: dmard09: Implement IIO_CHAN_INFO_SCALE
Chih-Kang Chang <[email protected]>
wifi: rtw89: 8852a: fix RSSI report when average beacon RSSI is not ready
Kuan-Chung Chen <[email protected]>
wifi: rtw89: phy: support per PHY RX statistics
Kuan-Chung Chen <[email protected]>
wifi: rtw89: mlo: rearrange MLSR link decision flow
Ping-Ke Shih <[email protected]>
wifi: rtw89: debug: add parser to diagnose along DIAG_MAC fw element
Ping-Ke Shih <[email protected]>
wifi: rtw89: fw: parse firmware element of DIAG_MAC
Ping-Ke Shih <[email protected]>
wifi: rtw89: pci: add to read PCI configuration space from common code
Nicholas Dudar <[email protected]>
bpf: Require a BPF cpumask for bpf_cpumask_populate()
Tejun Heo <[email protected]>
tools/sched_ext: Strip compatibility macros for cgroup and dispatch APIs
Brian Masney <[email protected]>
clk: qcom: camcc-sc8280xp: unregister CAMCC_GDSC_CLK
Pengpeng Hou <[email protected]>
bus: qcom-ebi2: use managed resources for clocks and children
Pengpeng Hou <[email protected]>
soc: qcom: rpmh-rsc: manage PM notifiers with devres
Yu Peng <[email protected]>
perf metricgroup: Fix metric expression copy leaks
Laxman Acharya Padhya <[email protected]>
drm/panel: samsung-s6d16d0: Power off on prepare failure
Pengpeng Hou <[email protected]>
usb: typec: ucsi: gaokun: unwind notifier on UCSI register failure
Pengyu Luo <[email protected]>
usb: ucsi: huawei_gaokun: support mode switching
Biju Das <[email protected]>
usb: renesas_usbhs: Fix power-off ordering on unbind
Fei Shao <[email protected]>
usb: mtu3: allow system suspend during active gadget connection
Linmao Li <[email protected]>
platform/surface: acpi-notify: Check ACPI companion before use
Linmao Li <[email protected]>
platform/mellanox: mlxbf-pmc: Check ACPI_COMPANION() against NULL
Gary Guo <[email protected]>
usb: fix UAF when probe runs concurrent to dyn ID removal
Ruoyu Wang <[email protected]>
usb: gadget: aspeed_udc: check endpoint DMA allocation
Maoyi Xie <[email protected]>
usb: ljca: bound bank_num in ljca_enumerate_gpio()
Michael Bommarito <[email protected]>
usb: gadget: configfs: fix out-of-bounds read of qw_sign
Nuno Sá <[email protected]>
usb: gadget: f_fs: Fix fence cleanup in ffs_dmabuf_transfer() error paths
Guangshuo Li <[email protected]>
serial: qcom-geni: do not advance stale DMA completions
Yuho Choi <[email protected]>
serial: ma35d1: Fix OF node reference leaks in console init
Fushuai Wang <[email protected]>
serial: 8250: Clear CON_PRINTBUFFER on port re-registration
John Ogness <[email protected]>
serial: 8250: Add support for console flow control
John Ogness <[email protected]>
serial: 8250: Set cons_flow on port registration
John Ogness <[email protected]>
serial: Replace driver usage of UPF_CONS_FLOW
John Ogness <[email protected]>
serial: core: Add dedicated uart_port field for console flow
Praveen Talari <[email protected]>
spi: qcom-geni: Fix missing error check on pm_runtime_get_sync()
Tengda Wu <[email protected]>
perf capstone: Fix kernel map reference count leak
Liang Luo <[email protected]>
selftests/sched_ext: Fix bpf_link leak on early return in prog_run
Wolfram Sang <[email protected]>
hwspinlock: propagate errno when registering single lock
Felix Gu <[email protected]>
remoteproc: qcom_q6v5_adsp: Fix reference leak for device node
Armin Wolf <[email protected]>
platform/x86: lg-laptop: Fix LED resource handling
Rafael J. Wysocki <[email protected]>
platform/x86: lg-laptop: Convert ACPI driver to a platform one
Rafael J. Wysocki <[email protected]>
platform/x86: lg-laptop: Drop debug-only ACPI notify handler
Armin Wolf <[email protected]>
platform/x86: dell-wmi-base: Fix resource leak on module load failure
Armin Wolf <[email protected]>
platform/x86: dell-privacy: Fix race condition
Lorenzo Pieralisi <[email protected]>
ACPI: RISC-V: Fix riscv_acpi_add_prt_dep() loop handling
Lorenzo Pieralisi <[email protected]>
ACPI: RISC-V: Check acpi_get_handle() status in riscv_acpi_add_prt_dep()
Lorenzo Pieralisi <[email protected]>
ACPI: RISC-V: Fix riscv_acpi_irq_get_dep() loop termination
John Ogness <[email protected]>
printk: Fix possible console use-after-free
Andrew Murray <[email protected]>
printk: Introduce console_flush_one_record
Manuel Fombuena <[email protected]>
leds: st1202: Validate LED reg property against channel count
Manuel Fombuena <[email protected]>
leds: st1202: Disable channel when brightness is set to zero
Manuel Fombuena <[email protected]>
leds: st1202: Fix brightness having no effect while pattern mode is active
Manuel Fombuena <[email protected]>
leds: st1202: Set all pattern PWM slots to full after clearing pattern
Manuel Fombuena <[email protected]>
leds: st1202: Fix spurious pattern sequence start in setup
Manuel Fombuena <[email protected]>
leds: st1202: Fix pattern duration prescaler and pattern_clear skip marker
Manuel Fombuena <[email protected]>
leds: st1202: Stop pattern sequence before reprogramming
Cosmo Chou <[email protected]>
leds: pca9532: Fix inverted GPIO output polarity
Wei Wang <[email protected]>
iommu/amd: Fix false positive in SB IOAPIC IVRS validation
Fu Hao <[email protected]>
iommu/amd: Add support for Hygon family 18h model 4h IOAPIC
Wei Wang <[email protected]>
iommu/amd: Prevent SB IOAPIC from overriding IVRS validation errors
Vladimir Zapolskiy <[email protected]>
iommu/msm: Return -ENOMEM on memory allocation failure in probe
Daniel Borkmann <[email protected]>
bpf: Fix security_bpf_map_create error handling
Akari Tsuyukusa <[email protected]>
iommu/mediatek-v1: Fix off-by-one in MT2701_LARB_NR_MAX
Yuho Choi <[email protected]>
bus: mhi: ep: Fix device refcount leak in the error path of MHI device creation
Sanghyun Park <[email protected]>
bpf: Fix use-after-free on mm_struct in bpf_find_vma()
Breno Leitao <[email protected]>
efi: fix stale reference to efi_recover_from_page_fault()
Daniel Borkmann <[email protected]>
bpf: Fix vmlinux BTF prep race in bpf_get_btf_vmlinux
Tanushree Shah <[email protected]>
perf dso: Fix kallsyms DSO detection with fallback logic
Sandipan Das <[email protected]>
perf vendor events amd: Reintroduce deprecated Zen 5 core events
Daniel Borkmann <[email protected]>
bpftool: Check EVP_Digest when computing excl_prog_hash
Aleksandr Nogikh <[email protected]>
udf: Mark LVID buffer as uptodate before marking it dirty
Hongyan Xu <[email protected]>
usb: gadget: r8a66597: avoid double free of ep0_req in probe error path
Bjorn Andersson <[email protected]>
usb: typec: ucsi: unregister debugfs entries on teardown
Dan Carpenter <[email protected]>
thermal/drivers/rcar: Fix error checking in probe()
Vidhu Sarwal <[email protected]>
staging: media: ipu7: fix pm_runtime refcount leak in ipu7_resume()
Vidhu Sarwal <[email protected]>
staging: media: ipu7: fix pm_runtime refcount leak in ipu7_init_fw_code_region_by_sys()
Tanushree Shah <[email protected]>
perf data convert json: Fix trace_seq memory leak in process_sample_event()
Loic Poulain <[email protected]>
clk: qcom: gcc-qcs8300: Use retention for USB power domains
Loic Poulain <[email protected]>
clk: qcom: gcc-qcs8300: Use retention for PCIe power domains
Konrad Dybcio <[email protected]>
arm64: dts: qcom: sc8180x-lenovo-flex-5g: Describe the display power net
Konrad Dybcio <[email protected]>
arm64: dts: qcom: sc8180x-lenovo-flex-5g: Rename regulator nodes
Konrad Dybcio <[email protected]>
arm64: dts: qcom: sc8180x-primus: Describe the display power net
Konrad Dybcio <[email protected]>
arm64: dts: qcom: sc8180x-primus: Rename regulator nodes
Jérôme de Bretagne <[email protected]>
arm64: dts: qcom: sc8280xp-arcata: Fix top USB-C DP alt mode
Herman van Hazendonk <[email protected]>
clk: qcom: gdsc: tear down per-domain genpds in gdsc_unregister()
Herman van Hazendonk <[email protected]>
clk: qcom: gdsc: propagate gdsc_enable() failure for ALWAYS_ON domains
Herman van Hazendonk <[email protected]>
clk: qcom: gdsc: propagate gdsc_check_status() errors from gdsc_poll_status
Brian Norris <[email protected]>
arm64: dts: qcom: Add #{address,size}-cells to Chromium-based /firmware
David Woodhouse <[email protected]>
timekeeping: Account for monotonicity adjustment in ntp_error
Thomas Weißschuh <[email protected]>
y2038: uapi: Use 64-bit __kernel_old_timespec::tv_nsec on x32
Malaya Kumar Rout <[email protected]>
time/namespace: Validate nanosecond field in proc_timens_set_offset()
Thomas Weißschuh <[email protected]>
timens: Simplify some calls to put_time_ns()
Thomas Weißschuh <[email protected]>
timens: Add a __free() wrapper for put_time_ns()
Thomas Weißschuh <[email protected]>
timens: Remove dependency on the vDSO
Thomas Weißschuh <[email protected]>
vdso/timens: Move functions to new file
Petr Tesarik <[email protected]>
x86/tsx: Make tsx_ctrl_state static
Malaya Kumar Rout <[email protected]>
timers/migration: Fix memory leak in tmigr_setup_groups() error path
Yuho Choi <[email protected]>
timekeeping: Unwind aux clock sysfs children on failure
Yuho Choi <[email protected]>
clocksource: Unregister subsystem on device registration failure
Jiangshan Yi <[email protected]>
selftests: timers: leap-a-day: Fix -w option and update usage comment
Kemeng Shi <[email protected]>
irqchip/gic-v3-its: Fix its node leak in gic_acpi_parse_madt_its()
Kemeng Shi <[email protected]>
irqchip/gic-v3-its: Fix memleak in its_probe_one()
Wang Yan <[email protected]>
selftests/lsm: Fix memory leak in attr_lsm_count
Feng Yang <[email protected]>
selftests/bpf: Fix memory leak in msg_alloc_iov
Malaya Kumar Rout <[email protected]>
selftests/bpf: Fix memory leak in msg_alloc_iov error path
Evgenii Burenchev <[email protected]>
ALSA: via82xx: Remove unreachable branch in snd_via686_pcm_pointer()
Dawei Feng <[email protected]>
staging: rtl8723bs: fix mismatched free of HalData in rtw_sdio_if1_init()
Ayush Mukkanwar <[email protected]>
staging: octeon: add missing napi_disable in cvm_oct_rx_shutdown
Ayush Mukkanwar <[email protected]>
staging: octeon: replace pr_warn with dev_warn in fill and rx paths
Ayush Mukkanwar <[email protected]>
staging: octeon: ethernet-mem: replace pr_warn with dev_warn in free functions
Yuvraj Singh Chauhan <[email protected]>
staging: octeon: fix free_irq dev_id mismatch in cvm_oct_rx_shutdown
Ayush Mukkanwar <[email protected]>
staging: octeon: add missing tasklet_kill in cvm_oct_tx_shutdown
Dan Carpenter <[email protected]>
staging: fbtft: Use sysfs_emit_at() to print to sysfs file
Bryam Vargas <[email protected]>
greybus: audio: bound the topology section sizes against the fetched size
Rong Zhang <[email protected]>
staging: sm750fb: Add missing Kconfig dependency
Ahmet Sezgin Duran <[email protected]>
staging: sm750fb: gate dualview dataflow using g_dualview
Alexander A. Klimov <[email protected]>
staging: greybus: audio: correct sscanf() return value check
Cen Zhang <[email protected]>
wifi: mac80211_hwsim: avoid NULL skb in stop queue drain
Ruoyu Wang <[email protected]>
bus: qcom-ebi2: Fix clock leak on probe failure
Krzysztof Kozlowski <[email protected]>
bus: qcom-ebi2: Simplify with scoped for each OF child loop
Taniya Das <[email protected]>
clk: qcom: gcc-glymur: Move EVA clocks to critical clock list
Konrad Dybcio <[email protected]>
arm64: dts: qcom: hamoa: Fix clocks for HSPHYs
Luca Weiss <[email protected]>
arm64: dts: qcom: sm7225-fairphone-fp4: Fix address in fb node name
Jens Glathe <[email protected]>
arm64: dts: qcom: sc8280xp-blackrock: switch to uefi rtc offset
Waiman Long <[email protected]>
cgroup/cpuset: Make nr_deadline_tasks an atomic_t
Haowen Tu <[email protected]>
PM: sleep: Fix off-by-one in wakelocks number limit check
Yuho Choi <[email protected]>
bus: ti-sysc: Fix /chosen node reference leak
Shin'ichiro Kawasaki <[email protected]>
nvmet-rdma: fix response resource leak on queue teardown
Shin'ichiro Kawasaki <[email protected]>
nvmet-rdma: factor out response resource cleanup
Gui-Dong Han <[email protected]>
nvme-apple: Use acquire/release for queue enabled state
Kuldeep Singh <[email protected]>
arm64: dts: qcom: sm8750: wire UFS to ice instance
Jacob Moroni <[email protected]>
RDMA/irdma: Add refcounting to user ring MRs
Jacob Moroni <[email protected]>
RDMA/irdma: Add irdma_cq fields to track pbl allocations
Jacob Moroni <[email protected]>
RDMA/irdma: Add a refcount to track user ring MR associations
Jacob Moroni <[email protected]>
RDMA/irdma: Deduplicate the irdma_del_memlist logic
Myeonghun Pak <[email protected]>
crypto: keembay - Fix AEAD unregister count in error path
Pengpeng Hou <[email protected]>
crypto: rk3288 - fail ahash requests on HASH idle timeout
Pengpeng Hou <[email protected]>
hwrng: xilinx-trng - propagate timeout before any data is read
Pengpeng Hou <[email protected]>
crypto: sa2ul - stop probe if context pool creation fails
Lothar Rubusch <[email protected]>
crypto: atmel-sha204a - fix heap info leak on I2C transfer failure
Thorsten Blum <[email protected]>
crypto: atmel-ecc - reject hardware ECDH without a public key
Giovanni Cabiddu <[email protected]>
crypto: qat - clear AES key schedule from stack
Giovanni Cabiddu <[email protected]>
crypto: qat - cancel work on re-enable SR-IOV timeout
Manos Pitsidianakis <[email protected]>
hwrng: core - fix rng list on registration error
Sandipan Das <[email protected]>
perf vendor events amd: Update Zen 5 core events
Sandipan Das <[email protected]>
perf/x86/amd/uncore: Add group validation
Leo Yan <[email protected]>
perf cs-etm: Fix thread leaks on trace queue init failure
Thomas Weißschuh <[email protected]>
tools/nolibc: mark arg1 operand in __nolibc_syscall0() as write-only
Xuanqiang Luo <[email protected]>
fanotify: initialize permission event watchdog state
Pengpeng Hou <[email protected]>
wifi: rtw89: fix HE extended capability length check
Dmitry Morgun <[email protected]>
wifi: rtw89: check return values in rtw89_ops_start_ap()
Chih-Kang Chang <[email protected]>
wifi: rtw89: update format of addr cam H2C command
Ping-Ke Shih <[email protected]>
wifi: rtw89: fill addr cam H2C command by struct
Tzung-Bi Shih <[email protected]>
platform/chrome: sensorhub: Fix memory overread in ring handler
Hisam Mehboob <[email protected]>
selftests/rseq: Replace glibc-specific __GNUC_PREREQ with portable check
Hanlin Song <[email protected]>
csky: Fix a4/a5 restoration in syscall trace path
Sanjay Chitroda <[email protected]>
iio: orientation: hid-sensor-rotation: Avoid race between callback setup and device exposure
Srinivas Kandagatla <[email protected]>
soundwire: qcom: Fix port exhaustion check in stream_alloc_ports
Vladimir Zapolskiy <[email protected]>
dmaengine: hisilicon: Return -ENOMEM on dynamic memory allocation in probe
Golla Nagendra <[email protected]>
dmaengine: zynqmp_dma: fix race between runtime PM and device removal
Suraj Gupta <[email protected]>
dmaengine: xilinx_dma: Fix channel idle state management in AXIDMA and MCDMA interrupt handlers
Vladimir Zapolskiy <[email protected]>
dmaengine: mediatek: mtk-uart-apdma: Return -ENOMEM on memory allocation failure
Gregory Price <[email protected]>
mm/mm_init: handle alloc_percpu failure in free_area_init_core_hotplug
Gregory Price <[email protected]>
mm: name the anonymous MMOP enum as enum mmop
Israel Batista <[email protected]>
mm: change type of state in struct memory_block
Israel Batista <[email protected]>
mm: convert memory block states (MEM_*) macros to enum
Sechang Lim <[email protected]>
bpf,lsm: Drop bpf_prog_free from sleepable_lsm_hooks
Guillaume Maudoux <[email protected]>
selftests/bpf: Mask socket type flags in mptcpify prog
Alexis Lothoré (eBPF Foundation) <[email protected]>
selftests/bpf: Systematically add SO_REUSEADDR in start_server_addr
Leon Hwang <[email protected]>
bpf: Copy per-CPU map value padding in copy_map_value_long()
Yichong Chen <[email protected]>
tools/bpf/bpftool: Reset vmlinux BTF after struct_ops commands
Yichong Chen <[email protected]>
tools/bpf/bpftool: Reset vmlinux BTF after map commands
Asad Kamal <[email protected]>
drm/amdgpu/pm/powerplay: bounds-check voltage index in Vega10 lookup
Asad Kamal <[email protected]>
drm/amdgpu/pm/powerplay: bounds-check voltage index in SMU7 lookup
Uday Khare <[email protected]>
regulator: tps6594: Fix device node reference leaks in multiphase loop
Ian Rogers <[email protected]>
perf tests: Fix flakiness in branch stack sampling tests
Ian Rogers <[email protected]>
perf test: Fixes for check branch stack sampling
Ian Rogers <[email protected]>
perf tests: Fix flakiness in BPF counters test on hybrid systems
Namhyung Kim <[email protected]>
perf test: Fix perf stat --bpf-counters on hybrid machines
Ian Rogers <[email protected]>
perf tests: Fix flakiness in trace record and replay test
Ian Rogers <[email protected]>
perf tests: Add robust record retry helper and use subsecond workloads
Ian Rogers <[email protected]>
perf test kvm: Add some basic perf kvm test coverage
Ian Rogers <[email protected]>
perf tests: Skip metrics validation if system-wide recording lacks permission
Namhyung Kim <[email protected]>
perf test: Do not skip when some metrics tests succeeded
Ian Rogers <[email protected]>
perf test all metrics: Fully ignore Default metric failures
Ian Rogers <[email protected]>
perf test metrics: Update all metrics for possibly failing default metrics
Ian Rogers <[email protected]>
perf test: Truncate test description to fit terminal width
Ian Rogers <[email protected]>
perf test: Truncate printed test descriptions dynamically to avoid terminal wrapping
Ian Rogers <[email protected]>
perf test: Add -j/--junit option for JUnit XML test reports
Ian Rogers <[email protected]>
perf test: Fix subtest status alignment for multi-digit indexes
Ian Rogers <[email protected]>
perf test: Add summary reporting
Ian Rogers <[email protected]>
perf test: Show snippet failure output for verbose=1
Ian Rogers <[email protected]>
perf test: Refactor parallel poll loop to drain all pipes simultaneously
Ian Rogers <[email protected]>
perf test: Drain pipe after child finishes to avoid losing output
Aaradhana Sahu <[email protected]>
wifi: ath12k: correct monitor destination ring size
Sean Young <[email protected]>
media: keymaps: Remove obsolete RC_MAP_HAUPPAUGE_NEW keymap define
Sean Young <[email protected]>
media: keymaps: Remove obsolete RC_MAP_RC5_TV keymap define
Jinjie Ruan <[email protected]>
riscv: kexec_file: Fix crashk_low_res not exclude bug
Daniel McCarthy <[email protected]>
pinctrl: bcm2835: Don't remove an unregistered GPIO chip
Zide Chen <[email protected]>
perf/x86/intel/uncore: Keep PCI PMUs working when MMIO/MSR setup fails
Chen, Yu C <[email protected]>
sched/fair: Fix overflow in update_tg_cfs_runnable()
Wei Yang <[email protected]>
mm/mm_init: fix incorrect node_spanned_pages
Henrik Grimler <[email protected]>
drm/lima: call drm_mm_init() with a valid allocation range
Brian Masney <[email protected]>
clk: imx: scu: drop redundant init.ops variable assignment
Frieder Schrempf <[email protected]>
arm64: dts: imx93-kontron: set memory node to 0x80000000/1GiB
Weigang He <[email protected]>
ARM: imx: fix device_node refcount leaks in imx7_src_init()
Weigang He <[email protected]>
ARM: imx: fix device_node refcount leak in imx_src_init()
Min zhang <[email protected]>
clk: hisilicon: reset: Use devm_kzalloc to initialize hisi_reset_controller
Shengjiu Wang <[email protected]>
ASoC: fsl_audmix: rework runtime PM handling in probe
Runyu Xiao <[email protected]>
ASoC: rt700-sdw: always drain jack work on remove
Rosen Penev <[email protected]>
clk: stm32: add missing bitfield.h header
Joey Lu <[email protected]>
clk: nuvoton: ma35d1: fix ma35d1_clk_pll_determine_rate logic
Joey Lu <[email protected]>
clk: nuvoton: ma35d1: fix PLL_CTL1_FRAC bit field width and fractional calc
Joey Lu <[email protected]>
clk: nuvoton: ma35d1: fix ignored div_u64 return values in PLL freq calculation
Alexander A. Klimov <[email protected]>
clk: moxart: remove unused variables, fix refcount leak
Myeonghun Pak <[email protected]>
clk: versaclock7: Fix APLL clock leak on probe failure
Wei Hou <[email protected]>
cxl/pci: Remove incorrect mbox.valid check in cxl_pci_type3_init_mailbox()
Richard Cheng <[email protected]>
cxl/mbox: Clamp mailbox output allocation to the payload size
Gui-Dong Han <[email protected]>
media: cec-pin: Fix event FIFO ordering
Weigang He <[email protected]>
soc: samsung: exynos-pmu: fix of_node refcount leak in exynos_get_pmu_regmap()
Michael Bommarito <[email protected]>
HID: roccat: bound device-supplied profile index
Christos Maragkos <[email protected]>
HID: nintendo: Fix imu_timestamp_us double increment per report
Philipp Weber <[email protected]>
HID: core: quiesce input in hid_hw_stop() to prevent use-after-free
Amin Vakil <[email protected]>
selftests: proc: include fcntl.h in proc-pidns
Maoyi Xie <[email protected]>
platform/chrome: cros_ec_typec: Reject out-of-bounds PD cap count
Jens Remus <[email protected]>
x86/cfi: Use symmetric SYM_START and SYM_END in __CFI_TYPE()
Wanwu Li <[email protected]>
sched_ext/scx_flatcg: Fix cvtime_delta race and add hweight scaling to bypass charging
Konstantin Andreev <[email protected]>
smack: restrict smackfs/{direct,mapped} values to 0-255
Konstantin Andreev <[email protected]>
smack: deduplicate smackfs/{direct,mapped} file_operations
Dmitry Antipov <[email protected]>
smack: simplify write handlers of sysfs entries
Konstantin Andreev <[email protected]>
smack: fix incorrect task context in smack_msg_queue_msgrcv
Maxime Ripard <[email protected]>
drm/bridge: cdns-mhdp8546: Return an error pointer on allocation failure
Maxime Ripard <[email protected]>
drm/bridge: cdns-dsi: Return an error pointer on allocation failure
Nicolas Frattaroli <[email protected]>
drm/rockchip: vop2: Recognise 10-bit YUV422 as YUV format
Nicolas Frattaroli <[email protected]>
drm/rockchip: vop2: Add RK3576 to the RG swap special case
Maíra Canal <[email protected]>
drm/v3d: Clear queue->active_job when v3d_fence_create() fails
Dmitry Baryshkov <[email protected]>
drm/bridge: display-connector: trigger initial HPD event for DP
Dmitry Baryshkov <[email protected]>
drm/bridge: display-connector: don't autoenable HPD IRQ
Damon Ding <[email protected]>
drm/rockchip: analogix_dp: Fix OF node reference leak via auto cleanup
Damon Ding <[email protected]>
drm/rockchip: analogix_dp: Enable hclk for RK3588
Cristian Ciocaltea <[email protected]>
drm/rockchip: vop2: Wait for layer cfg done before switching LAYERSEL_REGDONE_SEL
Cristian Ciocaltea <[email protected]>
drm/rockchip: vop2: Fix wrong wait target in layer cfg done check
Cristian Ciocaltea <[email protected]>
drm/rockchip: dw_dp: Release core resources
Cristian Ciocaltea <[email protected]>
drm/rockchip: dw_dp: Add missing newline in dev_err_probe() message
Cristian Ciocaltea <[email protected]>
drm/rockchip: dw_dp: Simplify error handling
Andy Yan <[email protected]>
drm/bridge: synopsys: dw-dp: Set pixel mode by platform data
Cristian Ciocaltea <[email protected]>
drm/bridge: synopsys: dw-dp: Support unregistering the AUX channel
Paul Kocialkowski <[email protected]>
drm: lcdif: Wait for vblank before disabling DMA
Yicong Hui <[email protected]>
drm: Remove unused header in drm_dumb_buffers.c
Casey Schaufler <[email protected]>
Smack: Fix error in capability bypass
Yosry Ahmed <[email protected]>
KVM: x86: Check EFER validity on KVM_SET_SREGS*
Sean Christopherson <[email protected]>
KVM: x86: Move the bulk of register specific code from x86.c to regs.c
Sean Christopherson <[email protected]>
KVM: x86: Rename __{g,s}et_sregs2() => kvm_vcpu_ioctl_x86_{g,s}et_sregs2()Sean Christopherson <[email protected]>
KVM: x86: Extract REGS and SREGS runtime sync code to helpers
Christian Borntraeger <[email protected]>
KVM: s390: Zero initialize data structures for inject_pfault_token
Yosry Ahmed <[email protected]>
KVM: x86: Disallow EFER.LME and EFER.LMA if long mode is not supported
Marc Zyngier <[email protected]>
KVM: arm64: Remove VM-wide VNCR mapping counter
Guoniu Zhou <[email protected]>
media: dt-bindings: nxp,imx8-isi: Drop fsl,blk-ctrl requirement for i.MX8ULP
Marc Zyngier <[email protected]>
KVM: arm64: Handle VNCR TLB invalidation race with vcpu_put() VNCR unmapping
Oliver Upton <[email protected]>
KVM: arm64: nv: Fully update VNCR fixmap state in kvm_translate_vncr()
Bryam Vargas <[email protected]>
dm-pcache: validate the persisted dirty_tail chain at load
Bryam Vargas <[email protected]>
dm-pcache: bound the logical key offset from persistent memory
Bryam Vargas <[email protected]>
dm-pcache: reject a kset that overruns its segment
Yuhang.chen <[email protected]>
wifi: rtw89: pci: add .shutdown callback to stop rfkill polling on reboot
Jeffin Philip <[email protected]>
usb: gadget: f_mass_storage: fix null pointer dereference in fsg_common_set_num_buffers()
Pawel Laszczak <[email protected]>
usb: cdnsp: fix wakeup from S3 after controller context loss
Masami Hiramatsu (Google) <[email protected]>
tracing/probes: Fix anon_stack check for unnamed bitfields in btf_find_struct_member
Muhammad Bilal <[email protected]>
staging: sm750fb: fix mono image source stride mismatch in lynxfb_ops_imageblit()
Krishna Chomal <[email protected]>
platform/x86: hp-wmi: Add support for OMEN MAX 16-ak0xxx (8DD6)
Mario Limonciello <[email protected]>
platform/x86/amd/pmc: Fix msg_port restoration in amd_stb_debugfs_open_v2()
Dapeng Mi <[email protected]>
perf/x86/intel: Remove anythread_deprecated bit from perf_capabilities
Baolin Wang <[email protected]>
mm: fix incorrect vm_flags usage when checking allowable orders for tmpfs
Lorenzo Stoakes (ARM) <[email protected]>
mm/secretmem: properly account locked pages
Lorenzo Stoakes (ARM) <[email protected]>
mm/mremap: reset unfaulted VMA page offset for MREMAP_DONTUNMAP
Usama Arif <[email protected]>
mm/huge_memory: transfer the pmd dirty bit to the folio on zap
Adrian Hunter <[email protected]>
i3c: master: Fix use-after-free of master->this
Adrian Hunter <[email protected]>
i3c: master: Do not treat master device as a duplicate target
Steven Rostedt <[email protected]>
ftrace: Take trace_array reference before accessing its ftrace_ops
Imran Shaik <[email protected]>
clk: qcom: Fix test_ctl_hi field for DEFAULT_EVO PLLs
Taimuraz Kaitmazov <[email protected]>
accel/amdxdna: return early from a zero-length flush
Li Chen <[email protected]>
nvdimm: virtio_pmem: refcount requests for token lifetime
Hui Su <[email protected]>
io_uring/waitid: avoid siginfo copy during ring teardown
Li Chen <[email protected]>
nvdimm: virtio_pmem: use READ_ONCE()/WRITE_ONCE() for wait flags
Hui Su <[email protected]>
io_uring/waitid: honor task_work cancellation
Li Chen <[email protected]>
nvdimm: virtio_pmem: always wake -ENOSPC waiters
Caleb Sander Mateos <[email protected]>
io_uring: add wrapper type for io_req_tw_func_t arg
Li Chen <[email protected]>
nvdimm: virtio_pmem: stop allocating child flush bio
Caleb Sander Mateos <[email protected]>
io_uring: only call io_should_terminate_tw() once for ctx
Steven Rostedt <[email protected]>
tracing: Take trace_array reference when opening options file
Guangshuo Li <[email protected]>
i2c: qcom-cci: fix autosuspend cleanup
Sebastian Andrzej Siewior <[email protected]>
futex: Provide rt_mutex_.*_schedule() equivalents for futex scheduling
Li Chen <[email protected]>
nvdimm: pmem: keep PREFLUSH before data writes
Jens Axboe <[email protected]>
io_uring/waitid: have io_waitid_complete() remove wait queue entry
Steven Rostedt <[email protected]>
tracing: Make printk_trace global for tracing system
Vladimir Zapolskiy <[email protected]>
i2c: qcom-cci: Remove overcautious disable_irq() calls
Peter Zijlstra <[email protected]>
futex: Optimize futex hash bucket access patterns
Jan Kara <[email protected]>
udf: Fix data loss when converting inline inodes to out of line
Masami Hiramatsu (Google) <[email protected]>
tracing/probes: Fix BTF kflag check for anonymous struct member access
Muhammad Bilal <[email protected]>
staging: rtl8723bs: fix OOB read in rtw_restruct_wmm_ie()
Vincent Donnefort <[email protected]>
ring-buffer: Allow splice reads on static buffers
Srinivas Pandruvada <[email protected]>
platform/x86: ISST: Validate max level for set feature
Abdun Nihaal <[email protected]>
platform/x86: int1092: Fix potential memory leak in sar_probe()
Yilin Zhang <[email protected]>
perf: Fix use-after-free when perf mmap() revival races with the last munmap()
Farhan Ali <[email protected]>
PCI: Allow per function PCI slots to fix slot reset on s390
Chao Shi <[email protected]>
nvme: skip the zoned limits update if the zone info query failed
Glenn Judd <[email protected]>
net/mlx5e: do not HW-GRO coalesce small frames
Miquel Raynal (DAVE) <[email protected]>
mtd: rawnand: pl353: Make sure we use the monolithic helpers for raw accesses
Baineng Shou <[email protected]>
misc: fastrpc: don't publish fd before copy_to_user() succeeds
Moksh Panicker <[email protected]>
iio: light: apds9306: fix PM reference leak in apds9306_read_data()
Adrian Hunter <[email protected]>
i3c: master: Fix recursive locking during device registration
Jon Hunter <[email protected]>
ASoC: tegra: Fix the MIXER enable default value
Baul Lee <[email protected]>
ALSA: FCP: do not copy out an uninitialised init response
Li Chen <[email protected]>
nvdimm: preserve flush callback -ENOMEM
Jens Axboe <[email protected]>
io_uring: unify task_work cancelation checks
Steven Rostedt <[email protected]>
tracing: Clean up use of trace_create_maxlat_file()
Vladimir Zapolskiy <[email protected]>
i2c: qcom-cci: Do not check return value of cci_init()
Marco Elver <[email protected]>
compiler_types: Move lock checking attributes to compiler-context-analysis.h
Bryam Vargas <[email protected]>
wifi: mt76: mt7996: bound the device EEPROM address before the EFUSE copy
Jan Kara <[email protected]>
udf: Move udf_map_block() up
Martin Kaiser <[email protected]>
tracing/probes: ignore id update from btf_type_skip_modifiers
Vivek BalachandharTN <[email protected]>
staging: rtl8723bs: fix spacing around operators
Steven Rostedt <[email protected]>
ring-buffer: Show persistent buffer dropped events in trace_pipe file
Rafael J. Wysocki <[email protected]>
PM: runtime: Wrapper macros for ACQUIRE()/ACQUIRE_ERR()
Srinivas Pandruvada <[email protected]>
platform/x86: ISST: Check for admin capability for write commands
Rafael J. Wysocki <[email protected]>
platform/x86: intel_sar: Check ACPI_HANDLE() against NULL
Peter Zijlstra <[email protected]>
perf/core: Fix deadlock in perf_mmap() failure path
Farhan Ali <[email protected]>
PCI: Introduce PCI_SLOT_PLACEHOLDER constant for slot_nr placeholder value
Caleb Sander Mateos <[email protected]>
nvme: fold nvme_config_discard() into nvme_update_disk_info()
Dragos Tatulea <[email protected]>
net/mlx5e: SHAMPO, Always calculate page size
Andrea Scian <[email protected]>
mtd: rawnand: pl353: Add message about ECC mode
Adrian Hunter <[email protected]>
i3c: master: Fix device_register() error path
Baineng Shou <[email protected]>
dma-buf: dma-heap: don't publish fd before copy_to_user() succeeds
Peter Ujfalusi <[email protected]>
ASoC: tegra210_mixer: sort the register default table
Takashi Iwai <[email protected]>
ALSA: usb-audio: Relax __free() variable declarations
Sven Eckelmann <[email protected]>
batman-adv: fix TX priority extraction for BATADV_FORW_MCAST
SJ Park <[email protected]>
mm/damon/sysfs: read ops_id only once in damon_sysfs_apply_inputs()
Sven Eckelmann <[email protected]>
batman-adv: bla: avoid CRC corruption due to parallel claim add
Sven Eckelmann <[email protected]>
batman-adv: dat: atomically update mac addresses
Akhmed Zhitaev <[email protected]>
drm/amd/display: Scale custom brightness curve from full range
Mario Limonciello <[email protected]>
drm/amd/display: Fix backlight max_brightness to match exported range
Dragos Tatulea <[email protected]>
net/mlx5e: xsk: Fix unlocked writing to ICOSQ
-------------
Diffstat:
.../ABI/testing/configfs-usb-gadget-uac1_legacy | 3 -
Documentation/admin-guide/device-mapper/dm-ima.rst | 7 +-
.../admin-guide/device-mapper/dm-integrity.rst | 13 +
Documentation/admin-guide/pm/amd-pstate.rst | 34 +-
.../devicetree/bindings/media/nxp,imx8-isi.yaml | 11 +-
Documentation/hwmon/cros_ec_hwmon.rst | 26 +-
Documentation/hwmon/emc1403.rst | 8 +-
Documentation/hwmon/hwmon-kernel-api.rst | 7 +-
Documentation/leds/leds-st1202.rst | 2 +-
Documentation/netlink/specs/devlink.yaml | 2 +
.../networking/devlink/devlink-eswitch-attr.rst | 13 +
Documentation/usb/gadget-testing.rst | 3 -
MAINTAINERS | 3 +
Makefile | 6 +-
arch/Kconfig | 3 +
arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | 2 +-
arch/arm/boot/dts/marvell/armada-388-helios4.dts | 13 +
arch/arm/kernel/hw_breakpoint.c | 11 +-
arch/arm/mach-exynos/mcpm-exynos.c | 12 +-
arch/arm/mach-exynos/suspend.c | 48 +-
arch/arm/mach-imx/src.c | 3 +
arch/arm/mach-lpc32xx/common.c | 5 +-
arch/arm/mach-lpc32xx/common.h | 2 +
arch/arm/mach-lpc32xx/phy3250.c | 2 +
arch/arm/mach-lpc32xx/pm.c | 5 +-
arch/arm/mach-pxa/generic.h | 6 +-
arch/arm/mach-pxa/irq.c | 10 +-
arch/arm/mach-pxa/mfp-pxa2xx.c | 10 +-
arch/arm/mach-pxa/mfp-pxa3xx.c | 10 +-
arch/arm/mach-pxa/pxa25x.c | 4 +-
arch/arm/mach-pxa/pxa27x.c | 4 +-
arch/arm/mach-pxa/pxa3xx.c | 4 +-
arch/arm/mach-pxa/smemc.c | 12 +-
arch/arm/mach-s3c/irq-pm-s3c64xx.c | 12 +-
arch/arm/mach-s5pv210/pm.c | 10 +-
arch/arm/mach-versatile/integrator_ap.c | 12 +-
arch/arm/mm/cache-b15-rac.c | 12 +-
arch/arm/mm/fault.c | 16 +-
arch/arm64/Kconfig | 2 +
.../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 4 +-
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 4 +
arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 3 +-
arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi | 8 +-
.../boot/dts/freescale/imx93-kontron-osm-s.dtsi | 4 +-
.../boot/dts/marvell/armada-3720-turris-mox.dts | 3 +-
arch/arm64/boot/dts/qcom/hamoa.dtsi | 4 +-
arch/arm64/boot/dts/qcom/ipq5018.dtsi | 5 +-
arch/arm64/boot/dts/qcom/lemans.dtsi | 977 ++++-----
.../boot/dts/qcom/msm8976-longcheer-l9360.dts | 4 +-
arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dts | 2 +-
.../boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi | 4 -
arch/arm64/boot/dts/qcom/msm8998-xiaomi-sagit.dts | 5 -
arch/arm64/boot/dts/qcom/msm8998.dtsi | 24 +-
arch/arm64/boot/dts/qcom/qcm2290.dtsi | 1 +
arch/arm64/boot/dts/qcom/qcs404.dtsi | 16 +-
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 18 +-
arch/arm64/boot/dts/qcom/qcs8550-aim300.dtsi | 4 +-
arch/arm64/boot/dts/qcom/sar2130p-qar2130p.dts | 4 +-
arch/arm64/boot/dts/qcom/sar2130p.dtsi | 8 +-
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 5 +
arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 5 +
arch/arm64/boot/dts/qcom/sc7280.dtsi | 8 +-
.../arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 57 +-
arch/arm64/boot/dts/qcom/sc8180x-primus.dts | 56 +-
arch/arm64/boot/dts/qcom/sc8180x.dtsi | 16 +-
arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 4 +-
.../dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 2 +-
.../boot/dts/qcom/sc8280xp-microsoft-arcata.dts | 4 +-
.../boot/dts/qcom/sc8280xp-microsoft-blackrock.dts | 19 +-
arch/arm64/boot/dts/qcom/sdm632-motorola-ocean.dts | 2 +-
arch/arm64/boot/dts/qcom/sdm845.dtsi | 64 +-
arch/arm64/boot/dts/qcom/sm6150.dtsi | 4 +-
arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 6 +-
arch/arm64/boot/dts/qcom/sm8150.dtsi | 8 +-
.../boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi | 2 +-
arch/arm64/boot/dts/qcom/sm8250.dtsi | 48 +-
arch/arm64/boot/dts/qcom/sm8350.dtsi | 8 +-
arch/arm64/boot/dts/qcom/sm8450.dtsi | 8 +-
arch/arm64/boot/dts/qcom/sm8550.dtsi | 8 +-
arch/arm64/boot/dts/qcom/sm8650.dtsi | 8 +-
arch/arm64/boot/dts/qcom/sm8750.dtsi | 5 +-
.../boot/dts/rockchip/rk3399-gru-chromebook.dtsi | 3 +-
.../boot/dts/rockchip/rk3566-bigtreetech-cb2.dtsi | 2 +-
arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 4 +-
arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi | 4 +-
arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 2 +-
arch/arm64/include/asm/kvm_host.h | 3 -
arch/arm64/include/asm/processor.h | 2 +-
arch/arm64/include/asm/ptdump.h | 2 +
arch/arm64/include/asm/rsi_cmds.h | 27 +-
arch/arm64/kernel/hibernate.c | 16 +-
arch/arm64/kernel/ptrace.c | 4 +-
arch/arm64/kernel/smp.c | 2 +-
arch/arm64/kvm/hyp/vhe/switch.c | 3 +-
arch/arm64/kvm/nested.c | 64 +-
arch/arm64/lib/Makefile | 4 +
arch/arm64/mm/ptdump.c | 14 +-
arch/arm64/net/bpf_jit_comp.c | 28 +-
arch/csky/kernel/entry.S | 6 +-
arch/loongarch/kernel/smp.c | 12 +-
arch/m68k/emu/nfcon.c | 2 +-
arch/m68k/kernel/traps.c | 4 +-
arch/mips/alchemy/common/dbdma.c | 12 +-
arch/mips/alchemy/common/irq.c | 24 +-
arch/mips/alchemy/common/usb.c | 12 +-
arch/mips/kernel/ptrace.c | 6 +-
arch/mips/pci/pci-alchemy.c | 16 +-
arch/powerpc/Kconfig | 1 +
arch/powerpc/configs/85xx-hw.config | 1 +
arch/powerpc/kernel/ima_arch.c | 5 -
arch/powerpc/kernel/irq.c | 16 +-
arch/powerpc/kernel/secure_boot.c | 6 +
arch/powerpc/kernel/smp.c | 3 +
arch/powerpc/kexec/crash.c | 2 +-
arch/powerpc/platforms/44x/gpio.c | 1 +
arch/powerpc/platforms/cell/spu_base.c | 10 +-
arch/powerpc/platforms/powermac/pic.c | 12 +-
arch/powerpc/sysdev/cpm_common.c | 13 +
arch/powerpc/sysdev/fsl_lbc.c | 12 +-
arch/powerpc/sysdev/fsl_pci.c | 12 +-
arch/powerpc/sysdev/ipic.c | 12 +-
arch/powerpc/sysdev/mpic.c | 14 +-
arch/powerpc/sysdev/mpic_timer.c | 10 +-
arch/riscv/boot/dts/sophgo/cv180x.dtsi | 2 +-
arch/riscv/boot/dts/spacemit/Makefile | 2 +
arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 4 +-
arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts | 4 +-
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts | 79 +
arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts | 90 +
arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi | 24 +-
arch/riscv/kernel/cpufeature.c | 3 +-
arch/riscv/kernel/machine_kexec_file.c | 14 +-
arch/riscv/net/bpf_jit_comp64.c | 19 +-
arch/riscv/net/bpf_jit_core.c | 1 +
arch/s390/Kconfig | 22 +-
arch/s390/Makefile | 11 +-
arch/s390/boot/Makefile | 1 +
arch/s390/boot/boot.h | 4 +
arch/s390/boot/ipl_data.c | 3 +-
arch/s390/boot/ipl_parm.c | 6 +
arch/s390/boot/stackprotector.c | 6 +
arch/s390/boot/startup.c | 8 +
arch/s390/configs/compat.config | 3 -
arch/s390/hypfs/hypfs_sprp.c | 6 +-
arch/s390/include/asm/arch-stackprotector.h | 25 +
arch/s390/include/asm/compat.h | 140 --
arch/s390/include/asm/elf.h | 46 +-
arch/s390/include/asm/ftrace.h | 19 +-
arch/s390/include/asm/irqflags.h | 20 +-
arch/s390/include/asm/lowcore.h | 3 +-
arch/s390/include/asm/processor.h | 12 +-
arch/s390/include/asm/ptrace.h | 2 +-
arch/s390/include/asm/seccomp.h | 5 -
arch/s390/include/asm/stackprotector.h | 16 +
arch/s390/include/asm/syscall.h | 19 +-
arch/s390/include/asm/syscall_wrapper.h | 95 +-
arch/s390/include/asm/thread_info.h | 2 -
arch/s390/include/asm/unistd.h | 5 -
arch/s390/include/asm/vdso-symbols.h | 12 +-
arch/s390/kernel/Makefile | 10 +-
arch/s390/kernel/asm-offsets.c | 4 +
arch/s390/kernel/audit.c | 16 -
arch/s390/kernel/audit.h | 16 -
arch/s390/kernel/compat_audit.c | 48 -
arch/s390/kernel/compat_linux.c | 289 ---
arch/s390/kernel/compat_linux.h | 101 -
arch/s390/kernel/compat_ptrace.h | 64 -
arch/s390/kernel/compat_signal.c | 420 ----
arch/s390/kernel/debug.c | 10 +-
arch/s390/kernel/entry.S | 17 +-
arch/s390/kernel/ima_arch.c | 14 -
arch/s390/kernel/ipl.c | 8 +-
arch/s390/kernel/irqflags.c | 28 +
arch/s390/kernel/module.c | 9 +
arch/s390/kernel/perf_cpum_cf.c | 1 -
arch/s390/kernel/perf_event.c | 1 -
arch/s390/kernel/perf_regs.c | 3 -
arch/s390/kernel/process.c | 9 +-
arch/s390/kernel/ptrace.c | 524 -----
arch/s390/kernel/setup.c | 1 -
arch/s390/kernel/signal.c | 27 +-
arch/s390/kernel/smp.c | 3 +
arch/s390/kernel/stackprotector.c | 156 ++
arch/s390/kernel/stacktrace.c | 3 -
arch/s390/kernel/uprobes.c | 6 +-
arch/s390/kernel/vdso.c | 36 +-
arch/s390/kernel/{vdso32 => vdso}/.gitignore | 2 +-
arch/s390/kernel/vdso/Makefile | 81 +
.../kernel/{vdso64 => vdso}/gen_vdso_offsets.sh | 2 +-
arch/s390/kernel/{vdso64 => vdso}/getcpu.c | 0
arch/s390/kernel/{vdso32 => vdso}/note.S | 0
arch/s390/kernel/{vdso64 => vdso}/vdso.h | 6 +-
.../{vdso64/vdso64.lds.S => vdso/vdso.lds.S} | 0
.../vdso64_generic.c => vdso/vdso_generic.c} | 0
.../kernel/{vdso64 => vdso}/vdso_user_wrapper.S | 0
.../vdso64_wrapper.S => vdso/vdso_wrapper.S} | 8 +-
.../kernel/{vdso64 => vdso}/vgetrandom-chacha.S | 0
arch/s390/kernel/{vdso64 => vdso}/vgetrandom.c | 0
arch/s390/kernel/vdso32/Makefile | 64 -
arch/s390/kernel/vdso32/gen_vdso_offsets.sh | 15 -
arch/s390/kernel/vdso32/vdso32.lds.S | 140 --
arch/s390/kernel/vdso32/vdso32_wrapper.S | 15 -
arch/s390/kernel/vdso32/vdso_user_wrapper.S | 22 -
arch/s390/kernel/vdso64/.gitignore | 2 -
arch/s390/kernel/vdso64/Makefile | 79 -
arch/s390/kernel/vdso64/note.S | 13 -
arch/s390/kernel/vmlinux.lds.S | 13 +
arch/s390/kvm/kvm-s390.c | 4 +-
arch/s390/mm/fault.c | 1 -
arch/s390/mm/mmap.c | 1 -
arch/s390/pci/pci_clp.c | 4 +-
arch/sh/mm/pmb.c | 10 +-
arch/x86/entry/entry_64_fred.S | 2 +
arch/x86/events/amd/ibs.c | 12 +-
arch/x86/events/amd/uncore.c | 31 +
arch/x86/events/intel/core.c | 10 +-
arch/x86/events/intel/pt.c | 96 +-
arch/x86/events/intel/uncore.c | 2 -
arch/x86/events/perf_event.h | 2 +-
arch/x86/hyperv/hv_init.c | 12 +-
arch/x86/include/asm/efi.h | 4 +-
arch/x86/include/asm/linkage.h | 2 +-
arch/x86/include/asm/pkeys.h | 3 +
arch/x86/kernel/amd_gart_64.c | 10 +-
arch/x86/kernel/apic/apic.c | 12 +-
arch/x86/kernel/apic/io_apic.c | 17 +-
arch/x86/kernel/cpu/aperfmperf.c | 20 +-
arch/x86/kernel/cpu/common.c | 25 +-
arch/x86/kernel/cpu/cpu.h | 9 -
arch/x86/kernel/cpu/intel_epb.c | 16 +-
arch/x86/kernel/cpu/mce/core.c | 14 +-
arch/x86/kernel/cpu/microcode/core.c | 15 +-
arch/x86/kernel/cpu/mtrr/legacy.c | 12 +-
arch/x86/kernel/cpu/tsx.c | 9 +-
arch/x86/kernel/cpu/umwait.c | 10 +-
arch/x86/kernel/i8237.c | 10 +-
arch/x86/kernel/i8259.c | 14 +-
arch/x86/kernel/kvm.c | 12 +-
arch/x86/kvm/Makefile | 4 +-
arch/x86/kvm/regs.c | 787 +++++++
arch/x86/kvm/x86.c | 793 +------
arch/x86/kvm/x86.h | 16 +
arch/x86/mm/pat/set_memory.c | 8 +-
arch/x86/net/bpf_jit_comp.c | 14 +-
arch/x86/platform/efi/efi.c | 2 +-
block/bio.c | 10 +
block/blk-cgroup.c | 5 +
block/blk-core.c | 13 +-
block/blk-crypto-fallback.c | 407 ++--
block/blk-crypto-internal.h | 19 +-
block/blk-crypto.c | 52 +-
block/blk-iocost.c | 2 +-
block/blk-map.c | 3 +
block/blk-merge.c | 48 +-
block/blk-mq-dma.c | 4 +-
block/blk-mq.c | 12 +-
block/blk-stat.c | 2 +-
block/fops.c | 9 +-
block/kyber-iosched.c | 2 +-
crypto/acompress.c | 16 +-
crypto/lskcipher.c | 1 -
drivers/accel/amdxdna/amdxdna_gem.c | 4 +
drivers/accessibility/speakup/keyhelp.c | 17 +-
drivers/accessibility/speakup/kobjects.c | 6 +-
drivers/acpi/battery.c | 44 +-
drivers/acpi/ec.c | 40 +-
drivers/acpi/pci_link.c | 10 +-
drivers/acpi/pci_root.c | 3 +-
drivers/acpi/processor_core.c | 31 +-
drivers/acpi/processor_driver.c | 16 +-
drivers/acpi/processor_idle.c | 116 +-
drivers/acpi/riscv/irq.c | 33 +-
drivers/acpi/scan.c | 13 +-
drivers/acpi/sleep.c | 12 +-
drivers/acpi/video_detect.c | 4 +-
drivers/base/cacheinfo.c | 9 +-
drivers/base/firmware_loader/fallback.c | 10 +
drivers/base/firmware_loader/main.c | 12 +-
drivers/base/memory.c | 4 +-
drivers/base/soc.c | 15 +-
drivers/base/swnode.c | 2 +-
drivers/base/syscore.c | 82 +-
drivers/block/mtip32xx/mtip32xx.c | 7 +
drivers/block/mtip32xx/mtip32xx.h | 2 +
drivers/block/null_blk/main.c | 78 +-
drivers/block/ublk_drv.c | 20 +-
drivers/bluetooth/btintel.c | 2 +-
drivers/bluetooth/btmtk.c | 104 +-
drivers/bluetooth/btmtk.h | 8 +-
drivers/bluetooth/btmtksdio.c | 84 +-
drivers/bluetooth/btnxpuart.c | 15 +-
drivers/bluetooth/btqca.c | 3 +-
drivers/bluetooth/btusb.c | 68 +-
drivers/bluetooth/virtio_bt.c | 8 +-
drivers/bus/mhi/ep/main.c | 15 +-
drivers/bus/mhi/host/init.c | 4 +-
drivers/bus/mhi/host/main.c | 6 +
drivers/bus/mvebu-mbus.c | 16 +-
drivers/bus/qcom-ebi2.c | 51 +-
drivers/bus/ti-sysc.c | 12 +-
drivers/char/hw_random/core.c | 4 +-
drivers/char/hw_random/imx-rngc.c | 4 +-
drivers/char/hw_random/ks-sa-rng.c | 9 +-
drivers/char/ppdev.c | 10 +-
drivers/char/tpm/st33zp24/st33zp24.c | 8 +-
drivers/char/xilinx_hwicap/xilinx_hwicap.c | 5 +-
drivers/clk/at91/pmc.c | 12 +-
drivers/clk/clk-devres.c | 12 +-
drivers/clk/clk-moxart.c | 14 -
drivers/clk/clk-palmas.c | 14 +-
drivers/clk/clk-versaclock7.c | 2 +-
drivers/clk/hisilicon/reset.c | 2 +-
drivers/clk/imx/clk-scu.c | 1 -
drivers/clk/imx/clk-vf610.c | 12 +-
drivers/clk/ingenic/jz4725b-cgu.c | 2 +-
drivers/clk/ingenic/jz4740-cgu.c | 2 +-
drivers/clk/ingenic/jz4755-cgu.c | 2 +-
drivers/clk/ingenic/jz4760-cgu.c | 2 +-
drivers/clk/ingenic/jz4770-cgu.c | 2 +-
drivers/clk/ingenic/jz4780-cgu.c | 2 +-
drivers/clk/ingenic/pm.c | 14 +-
drivers/clk/ingenic/pm.h | 2 +-
drivers/clk/ingenic/tcu.c | 12 +-
drivers/clk/ingenic/x1000-cgu.c | 2 +-
drivers/clk/ingenic/x1830-cgu.c | 2 +-
drivers/clk/mediatek/clk-mt2701.c | 2 +-
drivers/clk/mediatek/clk-mt2712-apmixedsys.c | 2 +-
drivers/clk/mediatek/clk-mt6735-apmixedsys.c | 9 +-
drivers/clk/mediatek/clk-mt6765.c | 2 +-
drivers/clk/mediatek/clk-mt6779.c | 2 +-
drivers/clk/mediatek/clk-mt6795-apmixedsys.c | 2 +-
drivers/clk/mediatek/clk-mt6797.c | 2 +-
drivers/clk/mediatek/clk-mt7622-apmixedsys.c | 2 +-
drivers/clk/mediatek/clk-mt7629.c | 2 +-
drivers/clk/mediatek/clk-mt7981-apmixed.c | 2 +-
drivers/clk/mediatek/clk-mt7986-apmixed.c | 2 +-
drivers/clk/mediatek/clk-mt7988-apmixed.c | 2 +-
drivers/clk/mediatek/clk-mt8135-apmixedsys.c | 3 +-
drivers/clk/mediatek/clk-mt8135.c | 5 +-
drivers/clk/mediatek/clk-mt8167-apmixedsys.c | 2 +-
drivers/clk/mediatek/clk-mt8173-apmixedsys.c | 14 +-
drivers/clk/mediatek/clk-mt8183-apmixedsys.c | 2 +-
drivers/clk/mediatek/clk-mt8186-apmixedsys.c | 2 +-
drivers/clk/mediatek/clk-mt8188-apmixedsys.c | 2 +-
drivers/clk/mediatek/clk-mt8192-apmixedsys.c | 2 +-
drivers/clk/mediatek/clk-mt8195-apmixedsys.c | 2 +-
drivers/clk/mediatek/clk-mt8195-apusys_pll.c | 3 +-
drivers/clk/mediatek/clk-mt8196-apmixedsys.c | 3 +-
drivers/clk/mediatek/clk-mt8196-mcu.c | 2 +-
drivers/clk/mediatek/clk-mt8196-mfg.c | 2 +-
drivers/clk/mediatek/clk-mt8196-vlpckgen.c | 2 +-
drivers/clk/mediatek/clk-mt8365-apmixedsys.c | 2 +-
drivers/clk/mediatek/clk-mt8516-apmixedsys.c | 2 +-
drivers/clk/mediatek/clk-pll.c | 16 +-
drivers/clk/mediatek/clk-pll.h | 14 +-
drivers/clk/mediatek/clk-pllfh.c | 111 +-
drivers/clk/mediatek/clk-pllfh.h | 2 +-
drivers/clk/mvebu/common.c | 12 +-
drivers/clk/nuvoton/clk-ma35d1-pll.c | 42 +-
drivers/clk/qcom/camcc-sc8280xp.c | 19 -
drivers/clk/qcom/common.c | 4 +-
drivers/clk/qcom/gcc-glymur.c | 33 +-
drivers/clk/qcom/gcc-qcm2290.c | 18 +-
drivers/clk/qcom/gcc-qcs8300.c | 8 +-
drivers/clk/qcom/gcc-sm6115.c | 6 +-
drivers/clk/qcom/gdsc.c | 25 +-
drivers/clk/qcom/gpucc-qcm2290.c | 2 +-
drivers/clk/rockchip/clk-pll.c | 9 +-
drivers/clk/rockchip/clk-rk3288.c | 12 +-
drivers/clk/rockchip/clk-rk3576.c | 11 +-
drivers/clk/samsung/clk-s5pv210-audss.c | 12 +-
drivers/clk/samsung/clk.c | 12 +-
drivers/clk/stm32/clk-stm32mp21.c | 1 +
drivers/clk/stm32/clk-stm32mp25.c | 1 +
drivers/clk/tegra/clk-tegra124-emc.c | 1 +
drivers/clk/tegra/clk-tegra210.c | 12 +-
drivers/clk/ti/adpll.c | 4 +-
drivers/clk/ti/divider.c | 2 +-
drivers/clk/ti/mux.c | 22 +-
drivers/clk/visconti/clkc.c | 2 +-
drivers/clk/x86/clk-pmc-atom.c | 3 +
drivers/clocksource/clps711x-timer.c | 2 +-
drivers/clocksource/timer-armada-370-xp.c | 30 +-
drivers/cpufreq/Kconfig.x86 | 14 +
drivers/cpufreq/amd-pstate-ut.c | 5 +
drivers/cpufreq/amd-pstate.c | 463 ++++-
drivers/cpufreq/amd-pstate.h | 17 +-
drivers/cpufreq/imx6q-cpufreq.c | 6 +-
drivers/cpufreq/intel_pstate.c | 19 +-
drivers/cpufreq/spear-cpufreq.c | 4 +-
drivers/cpuidle/cpuidle-psci.c | 12 +-
drivers/crypto/atmel-ecc.c | 3 +
drivers/crypto/atmel-sha204a.c | 6 +-
drivers/crypto/ccp/sev-dev.c | 17 +-
drivers/crypto/gemini/sl3516-ce-cipher.c | 8 -
drivers/crypto/hisilicon/sec2/sec_crypto.c | 12 +-
.../crypto/intel/keembay/keembay-ocs-aes-core.c | 9 +-
drivers/crypto/intel/qat/qat_common/adf_aer.c | 2 +
drivers/crypto/intel/qat/qat_common/adf_cfg.c | 10 +-
.../crypto/intel/qat/qat_common/adf_cfg_common.h | 1 -
.../crypto/intel/qat/qat_common/adf_cfg_services.c | 2 +-
.../crypto/intel/qat/qat_common/adf_mstate_mgr.c | 3 +-
.../intel/qat/qat_common/adf_transport_debug.c | 3 +-
drivers/crypto/intel/qat/qat_common/qat_algs.c | 1 +
.../crypto/intel/qat/qat_common/qat_compression.c | 3 +-
drivers/crypto/rockchip/rk3288_crypto_ahash.c | 7 +-
drivers/crypto/sa2ul.c | 6 +-
drivers/crypto/xilinx/xilinx-trng.c | 32 +-
drivers/cxl/core/features.c | 12 +-
drivers/cxl/core/mbox.c | 11 +-
drivers/cxl/core/memdev.c | 2 +-
drivers/cxl/core/port.c | 4 +-
drivers/cxl/core/region.c | 7 +-
drivers/cxl/pci.c | 13 +-
drivers/dax/super.c | 12 +-
drivers/dma-buf/dma-heap.c | 80 +-
drivers/dma/dw-edma/dw-edma-core.c | 104 +-
drivers/dma/hisi_dma.c | 2 +-
drivers/dma/mediatek/mtk-uart-apdma.c | 2 +-
drivers/dma/qcom/bam_dma.c | 1 +
drivers/dma/xilinx/xilinx_dma.c | 12 +-
drivers/dma/xilinx/zynqmp_dma.c | 4 +-
drivers/firewire/.kunitconfig | 1 +
drivers/firewire/Kconfig | 15 +
drivers/firewire/core-topology.c | 62 +-
drivers/firewire/node-tree-test.c | 607 ++++++
drivers/firmware/arm_scmi/bus.c | 89 +-
drivers/firmware/arm_scmi/common.h | 2 +
drivers/firmware/arm_scmi/driver.c | 77 +-
drivers/firmware/arm_scmi/notify.c | 21 +
drivers/firmware/arm_scmi/notify.h | 1 +
drivers/firmware/arm_scmi/transports/mailbox.c | 26 +-
drivers/firmware/arm_scmi/transports/smc.c | 15 +-
drivers/firmware/google/coreboot_table.c | 26 +-
drivers/firmware/qcom/Makefile | 1 +
drivers/firmware/qcom/qcom_scm-smc.c | 12 +-
drivers/firmware/qcom/qcom_scm.c | 194 +-
drivers/firmware/qcom/qcom_scm.h | 3 +-
drivers/firmware/qcom/qcom_scm_trace.h | 143 ++
drivers/firmware/qcom/qcom_tzmem.c | 13 +-
drivers/gpio/gpio-mxc.c | 12 +-
drivers/gpio/gpio-pxa.c | 12 +-
drivers/gpio/gpio-sa1100.c | 12 +-
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 74 +-
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 28 +-
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 7 +
.../gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c | 3 +-
.../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 24 +
.../gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 35 +-
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 2 +-
.../gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 2 +-
drivers/gpu/drm/bridge/display-connector.c | 36 +
drivers/gpu/drm/bridge/synopsys/dw-dp.c | 14 +-
drivers/gpu/drm/bridge/tc358767.c | 2 +-
drivers/gpu/drm/drm_dumb_buffers.c | 1 -
drivers/gpu/drm/lima/lima_device.c | 12 +-
drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 2 +-
drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 107 +-
drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 20 +-
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 5 +-
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h | 68 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 4 +
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 3 +-
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 22 +-
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 11 +-
drivers/gpu/drm/msm/dp/dp_ctrl.c | 5 +-
drivers/gpu/drm/msm/dp/dp_display.c | 28 +-
drivers/gpu/drm/msm/dp/dp_panel.c | 4 +-
drivers/gpu/drm/msm/dsi/dsi_host.c | 2 -
drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 1 +
drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 18 +-
drivers/gpu/drm/msm/msm_drv.h | 8 -
drivers/gpu/drm/msm/msm_gem_vma.c | 2 +
drivers/gpu/drm/msm/msm_gpu.c | 6 +-
drivers/gpu/drm/msm/msm_ringbuffer.c | 7 +-
drivers/gpu/drm/msm/msm_ringbuffer.h | 1 +
drivers/gpu/drm/msm/registers/adreno/a6xx_gmu.xml | 248 +--
drivers/gpu/drm/mxsfb/lcdif_kms.c | 15 +-
drivers/gpu/drm/omapdrm/dss/dsi.c | 7 +-
drivers/gpu/drm/omapdrm/dss/dsi.h | 2 -
drivers/gpu/drm/panel/panel-samsung-s6d16d0.c | 10 +-
drivers/gpu/drm/panthor/panthor_drv.c | 2 +-
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 22 +-
drivers/gpu/drm/rockchip/dw_dp-rockchip.c | 45 +-
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 5 +-
drivers/gpu/drm/rockchip/rockchip_vop2_reg.c | 21 +-
drivers/gpu/drm/sun4i/sun4i_crtc.c | 2 +-
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 2 +-
drivers/gpu/drm/sun4i/sun4i_tcon.c | 22 +-
drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 2 +
drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c | 2 +-
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c | 18 +-
drivers/gpu/drm/tve200/tve200_drv.c | 1 +
drivers/gpu/drm/v3d/v3d_sched.c | 60 +-
drivers/gpu/drm/xe/tests/xe_migrate.c | 3 +-
drivers/gpu/drm/xe/xe_gt_idle.c | 3 +-
drivers/gpu/host1x/debug.c | 4 +-
drivers/gpu/host1x/hw/channel_hw.c | 5 +-
drivers/hid/hid-core.c | 9 +
drivers/hid/hid-haptic.c | 2 +-
drivers/hid/hid-lg4ff.c | 8 +
drivers/hid/hid-multitouch.c | 2 +-
drivers/hid/hid-nintendo.c | 1 -
drivers/hid/hid-roccat-kone.c | 8 +-
drivers/hid/hid-steam.c | 516 +++--
drivers/hid/i2c-hid/Makefile | 2 +-
drivers/hid/i2c-hid/i2c-hid-acpi-prp0001.c | 104 +
drivers/hid/i2c-hid/i2c-hid-acpi.c | 54 +-
drivers/hid/i2c-hid/i2c-hid-acpi.h | 33 +
drivers/hid/i2c-hid/i2c-hid-core.c | 2 +-
drivers/hid/i2c-hid/i2c-hid-of-goodix.c | 4 +-
drivers/hv/vmbus_drv.c | 29 +-
drivers/hwmon/coretemp.c | 1 +
drivers/hwmon/cros_ec_hwmon.c | 121 +-
drivers/hwmon/emc1403.c | 73 +-
drivers/hwspinlock/hwspinlock_core.c | 2 +-
drivers/hwtracing/coresight/coresight-etm4x-cfg.c | 2 +-
drivers/hwtracing/coresight/coresight-etm4x-core.c | 111 +-
.../hwtracing/coresight/coresight-etm4x-sysfs.c | 6 +-
drivers/hwtracing/coresight/coresight-etm4x.h | 63 +-
drivers/i2c/busses/i2c-ocores.c | 6 +-
drivers/i2c/busses/i2c-qcom-cci.c | 24 +-
drivers/i3c/master.c | 63 +-
drivers/i3c/master/adi-i3c-master.c | 1 +
drivers/i3c/master/dw-i3c-master.c | 10 +-
drivers/i3c/master/renesas-i3c.c | 28 +-
drivers/idle/intel_idle.c | 194 +-
drivers/iio/accel/dmard09.c | 7 +
drivers/iio/light/apds9306.c | 8 +-
drivers/iio/light/gp2ap002.c | 14 +-
drivers/iio/light/isl29028.c | 2 +-
drivers/iio/light/opt4060.c | 4 +-
drivers/iio/light/tsl2583.c | 2 +-
drivers/iio/light/tsl2772.c | 2 +-
drivers/iio/orientation/hid-sensor-rotation.c | 20 +-
drivers/infiniband/core/cma.c | 6 +-
drivers/infiniband/core/counters.c | 5 +-
drivers/infiniband/core/cq.c | 2 +-
drivers/infiniband/core/device.c | 2 +
drivers/infiniband/core/nldev.c | 20 +-
drivers/infiniband/core/restrack.c | 174 +-
drivers/infiniband/core/restrack.h | 4 +
drivers/infiniband/core/ucma.c | 2 +-
drivers/infiniband/core/uverbs_cmd.c | 10 +-
drivers/infiniband/core/uverbs_std_types_device.c | 42 +
drivers/infiniband/core/uverbs_std_types_dmah.c | 7 +-
drivers/infiniband/core/verbs.c | 83 +-
drivers/infiniband/hw/bnxt_re/ib_verbs.c | 6 +-
drivers/infiniband/hw/cxgb4/device.c | 2 +-
drivers/infiniband/hw/cxgb4/mem.c | 4 +-
drivers/infiniband/hw/efa/efa_verbs.c | 15 +-
drivers/infiniband/hw/erdma/Kconfig | 2 +-
drivers/infiniband/hw/erdma/erdma_cm.c | 6 +-
drivers/infiniband/hw/erdma/erdma_eq.c | 10 +-
drivers/infiniband/hw/erdma/erdma_verbs.c | 39 +-
drivers/infiniband/hw/erdma/erdma_verbs.h | 40 +-
drivers/infiniband/hw/hfi1/chip.c | 4 +-
drivers/infiniband/hw/hfi1/hfi.h | 2 -
drivers/infiniband/hw/hfi1/init.c | 44 +-
drivers/infiniband/hw/hfi1/user_sdma.c | 13 +-
drivers/infiniband/hw/irdma/utils.c | 6 +
drivers/infiniband/hw/irdma/verbs.c | 116 +-
drivers/infiniband/hw/irdma/verbs.h | 3 +
drivers/infiniband/hw/mana/qp.c | 10 +-
drivers/infiniband/hw/mlx5/cong.c | 8 +-
drivers/infiniband/hw/mlx5/main.c | 127 ++
drivers/infiniband/hw/mlx5/mlx5_ib.h | 2 +
drivers/infiniband/hw/mlx5/qp.c | 25 +-
drivers/infiniband/sw/rxe/rxe_odp.c | 1 +
drivers/infiniband/sw/rxe/rxe_req.c | 15 +
drivers/infiniband/sw/rxe/rxe_resp.c | 9 +-
drivers/infiniband/sw/siw/siw_cm.c | 2 +-
drivers/infiniband/ulp/ipoib/ipoib_main.c | 2 +
drivers/infiniband/ulp/isert/ib_isert.c | 85 +-
drivers/infiniband/ulp/isert/ib_isert.h | 1 +
drivers/infiniband/ulp/srp/ib_srp.c | 45 +-
drivers/infiniband/ulp/srpt/ib_srpt.c | 9 +-
drivers/iommu/amd/debugfs.c | 12 +-
drivers/iommu/amd/init.c | 58 +-
drivers/iommu/amd/ppr.c | 2 +-
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 9 +-
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c | 119 +-
drivers/iommu/arm/arm-smmu/qcom_iommu.c | 6 +-
drivers/iommu/dma-iommu.c | 26 +-
drivers/iommu/intel/iommu.c | 31 +-
drivers/iommu/intel/iommu.h | 2 +-
drivers/iommu/intel/pasid.c | 9 +-
drivers/iommu/iommufd/device.c | 13 +-
drivers/iommu/iommufd/iommufd_private.h | 9 +-
drivers/iommu/iommufd/main.c | 20 +
drivers/iommu/iommufd/selftest.c | 5 +-
drivers/iommu/msm_iommu.c | 2 +-
drivers/iommu/mtk_iommu_v1.c | 2 +-
drivers/ipack/devices/ipoctal.c | 56 +-
drivers/irqchip/exynos-combiner.c | 14 +-
drivers/irqchip/irq-armada-370-xp.c | 12 +-
drivers/irqchip/irq-bcm7038-l1.c | 12 +-
drivers/irqchip/irq-gic-v3-its.c | 35 +-
drivers/irqchip/irq-gic-v5-irs.c | 2 +-
drivers/irqchip/irq-gic-v5.c | 11 +-
drivers/irqchip/irq-i8259.c | 12 +-
drivers/irqchip/irq-imx-gpcv2.c | 16 +-
drivers/irqchip/irq-loongson-eiointc.c | 12 +-
drivers/irqchip/irq-loongson-htpic.c | 10 +-
drivers/irqchip/irq-loongson-htvec.c | 12 +-
drivers/irqchip/irq-loongson-pch-lpc.c | 12 +-
drivers/irqchip/irq-loongson-pch-pic.c | 12 +-
drivers/irqchip/irq-mchp-eic.c | 12 +-
drivers/irqchip/irq-mst-intc.c | 12 +-
drivers/irqchip/irq-mtk-cirq.c | 12 +-
drivers/irqchip/irq-realtek-rtl.c | 189 +-
drivers/irqchip/irq-renesas-irqc.c | 1 +
drivers/irqchip/irq-renesas-rzg2l.c | 16 +-
drivers/irqchip/irq-sa11x0.c | 12 +-
drivers/irqchip/irq-sifive-plic.c | 12 +-
drivers/irqchip/irq-sun6i-r.c | 18 +-
drivers/irqchip/irq-tegra.c | 12 +-
drivers/irqchip/irq-vic.c | 12 +-
drivers/leds/leds-gpio.c | 53 +-
drivers/leds/leds-pca9532.c | 18 +-
drivers/leds/leds-st1202.c | 96 +-
drivers/leds/trigger/ledtrig-cpu.c | 14 +-
drivers/macintosh/via-pmu.c | 12 +-
drivers/mailbox/pcc.c | 41 +-
drivers/mailbox/qcom-cpucp-mbox.c | 25 +-
drivers/mailbox/riscv-sbi-mpxy-mbox.c | 12 +-
drivers/mailbox/rockchip-mailbox.c | 17 +-
drivers/md/dm-integrity.c | 139 +-
drivers/md/dm-pcache/cache.c | 7 +
drivers/md/dm-pcache/cache.h | 3 +
drivers/md/dm-pcache/cache_gc.c | 5 +
drivers/md/dm-pcache/cache_key.c | 83 +
drivers/md/dm-pcache/cache_writeback.c | 8 +
drivers/md/md-bitmap.c | 5 +-
drivers/md/md-bitmap.h | 1 +
drivers/md/md-llbitmap.c | 20 +-
drivers/md/md.c | 109 +-
drivers/md/md.h | 1 -
drivers/md/raid1.c | 2 -
drivers/md/raid10.c | 14 +-
drivers/md/raid5-ppl.c | 4 +-
drivers/md/raid5.c | 87 +-
drivers/media/cec/core/cec-pin.c | 8 +-
drivers/media/i2c/rdacm21.c | 5 +-
drivers/media/pci/intel/ipu6/ipu6.c | 10 +-
drivers/media/platform/broadcom/bcm2835-unicam.c | 2 +
drivers/media/platform/qcom/iris/iris_core.c | 12 +-
drivers/media/platform/qcom/iris/iris_state.c | 2 +-
drivers/media/v4l2-core/v4l2-async.c | 15 +-
drivers/mfd/iqs62x.c | 2 +-
drivers/mfd/macsmc.c | 8 +-
drivers/mfd/rave-sp.c | 64 +-
drivers/misc/ad525x_dpot-i2c.c | 1 +
drivers/misc/ad525x_dpot-spi.c | 1 +
drivers/misc/ad525x_dpot.c | 177 +-
drivers/misc/ad525x_dpot.h | 3 +
drivers/misc/bcm-vk/bcm_vk_msg.c | 6 +-
drivers/misc/cardreader/rtsx_pcr.c | 2 +
drivers/misc/cardreader/rtsx_usb.c | 26 +-
drivers/misc/fastrpc.c | 16 +-
drivers/misc/lan966x_pci.c | 1 +
drivers/misc/pci_endpoint_test.c | 11 +-
drivers/misc/sgi-gru/grufault.c | 101 +-
drivers/misc/sgi-gru/gruprocfs.c | 1 -
drivers/misc/sgi-gru/grutables.h | 1 -
drivers/misc/vmw_vmci/vmci_event.c | 4 +-
drivers/mtd/devices/mtd_intel_dg.c | 76 +-
drivers/mtd/mtdpart.c | 3 +-
drivers/mtd/mtdswap.c | 1 +
drivers/mtd/nand/raw/pl35x-nand-controller.c | 10 +-
drivers/mtd/ubi/attach.c | 4 +-
drivers/mtd/ubi/build.c | 11 +-
drivers/mtd/ubi/fastmap.c | 6 +-
drivers/mtd/ubi/io.c | 11 +-
drivers/mtd/ubi/ubi.h | 4 +-
drivers/mtd/ubi/wl.c | 15 +-
drivers/net/amt.c | 3 +
drivers/net/bonding/bond_netlink.c | 2 +-
drivers/net/dsa/b53/b53_common.c | 2 +-
drivers/net/dsa/mv88e6xxx/pcs-6352.c | 5 +-
drivers/net/ethernet/airoha/airoha_npu.c | 2 +-
drivers/net/ethernet/allwinner/sun4i-emac.c | 4 +-
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 8 +-
drivers/net/ethernet/broadcom/bnxt/bnxt_hwmon.c | 2 +-
drivers/net/ethernet/freescale/enetc/enetc.c | 72 +-
drivers/net/ethernet/freescale/enetc/enetc.h | 9 +
drivers/net/ethernet/freescale/enetc/enetc_pf.c | 14 +-
drivers/net/ethernet/freescale/fec_main.c | 6 +-
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c | 9 +-
drivers/net/ethernet/intel/ice/devlink/devlink.c | 32 +-
drivers/net/ethernet/intel/ice/ice_ethtool.c | 66 +-
drivers/net/ethernet/intel/ice/ice_flex_pipe.c | 8 +-
drivers/net/ethernet/intel/ice/ice_lag.c | 3 +-
drivers/net/ethernet/intel/ice/ice_lib.c | 3 +
drivers/net/ethernet/intel/ice/ice_main.c | 10 +-
drivers/net/ethernet/intel/ice/ice_nvm.c | 90 +-
drivers/net/ethernet/intel/ice/ice_nvm.h | 2 +-
drivers/net/ethernet/intel/ice/ice_ptp.c | 6 +-
drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 38 +-
drivers/net/ethernet/intel/ice/ice_sriov.c | 3 +-
drivers/net/ethernet/intel/idpf/idpf_txrx.c | 2 +-
drivers/net/ethernet/intel/igc/igc_main.c | 3 +-
.../net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c | 2 +-
.../ethernet/marvell/octeontx2/af/rvu_debugfs.c | 6 +
.../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 11 +-
.../ethernet/marvell/octeontx2/nic/otx2_common.c | 6 +-
.../ethernet/marvell/octeontx2/nic/otx2_ethtool.c | 3 +-
.../net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 20 +-
.../net/ethernet/marvell/octeontx2/nic/otx2_xsk.c | 3 +-
.../net/ethernet/mellanox/mlx5/core/en/xsk/tx.c | 2 +-
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 20 +-
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 39 +-
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | 2 +-
.../ethernet/mellanox/mlx5/core/esw/adj_vport.c | 37 +-
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 21 +
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 7 +
.../ethernet/mellanox/mlx5/core/eswitch_offloads.c | 211 +-
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 5 +
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c | 222 ++
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h | 11 +
.../net/ethernet/mellanox/mlx5/core/lag/mpesw.c | 39 +
.../net/ethernet/mellanox/mlx5/core/lag/mpesw.h | 14 +
drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c | 116 +-
drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h | 9 +
.../net/ethernet/mellanox/mlx5/core/mlx5_core.h | 1 +
drivers/net/ethernet/mellanox/mlx5/core/port.c | 24 +
drivers/net/ethernet/mellanox/mlx5/core/vport.c | 102 +
drivers/net/ethernet/nvidia/forcedeth.c | 2 +-
drivers/net/ethernet/pensando/ionic/ionic_txrx.c | 27 +-
drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c | 467 +++--
.../net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 1 +
drivers/net/ethernet/realtek/8139cp.c | 2 +-
.../net/ethernet/stmicro/stmmac/dwmac1000_core.c | 2 +-
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 +-
.../net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 2 +-
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 11 +-
.../net/ethernet/stmicro/stmmac/stmmac_selftests.c | 41 +-
drivers/net/ethernet/wangxun/libwx/wx_ethtool.c | 61 +-
drivers/net/ethernet/wangxun/libwx/wx_hw.c | 71 +-
drivers/net/ethernet/wangxun/libwx/wx_lib.c | 99 +-
drivers/net/ethernet/wangxun/libwx/wx_ptp.c | 18 +-
drivers/net/ethernet/wangxun/libwx/wx_sriov.c | 6 +-
drivers/net/ethernet/wangxun/libwx/wx_type.h | 52 +-
drivers/net/ethernet/wangxun/libwx/wx_vf.h | 1 +
drivers/net/ethernet/wangxun/libwx/wx_vf_common.c | 14 +-
drivers/net/ethernet/wangxun/libwx/wx_vf_lib.c | 3 +
drivers/net/ethernet/wangxun/ngbe/ngbe_ethtool.c | 6 +-
drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 48 +-
drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c | 6 +-
drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c | 7 +-
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c | 19 +-
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h | 2 +-
.../net/ethernet/wangxun/txgbevf/txgbevf_main.c | 11 +
drivers/net/gtp.c | 2 +
drivers/net/ipa/ipa_main.c | 6 +-
drivers/net/netdevsim/netdev.c | 2 +
drivers/net/ppp/pppox.c | 17 +
drivers/net/slip/slip.c | 8 -
drivers/net/thunderbolt/main.c | 6 +-
drivers/net/vxlan/vxlan_mdb.c | 9 +-
drivers/net/vxlan/vxlan_vnifilter.c | 6 +-
drivers/net/wireless/ath/ath10k/snoc.c | 9 +-
drivers/net/wireless/ath/ath11k/dp_rx.c | 32 +-
drivers/net/wireless/ath/ath11k/wmi.c | 40 +-
drivers/net/wireless/ath/ath12k/ahb.c | 18 +-
drivers/net/wireless/ath/ath12k/core.c | 27 +-
drivers/net/wireless/ath/ath12k/core.h | 2 -
drivers/net/wireless/ath/ath12k/qmi.c | 168 +-
drivers/net/wireless/ath/ath12k/wmi.c | 28 +-
drivers/net/wireless/ath/ath6kl/wmi.c | 17 +-
drivers/net/wireless/intel/iwlwifi/fw/dump.c | 2 +-
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c | 8 +-
drivers/net/wireless/intel/iwlwifi/mei/main.c | 8 +-
drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +-
drivers/net/wireless/mediatek/mt76/Kconfig | 4 +
drivers/net/wireless/mediatek/mt76/Makefile | 5 +
drivers/net/wireless/mediatek/mt76/dma.c | 125 +-
drivers/net/wireless/mediatek/mt76/dma.h | 69 +-
drivers/net/wireless/mediatek/mt76/mac80211.c | 14 +-
drivers/net/wireless/mediatek/mt76/mcu.c | 12 +-
drivers/net/wireless/mediatek/mt76/mt76.h | 138 ++
drivers/net/wireless/mediatek/mt76/mt76_connac.h | 13 +-
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 2 +-
drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c | 2 +-
drivers/net/wireless/mediatek/mt76/mt7915/init.c | 9 +-
drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 6 +-
drivers/net/wireless/mediatek/mt76/mt7915/main.c | 24 +-
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 10 +-
drivers/net/wireless/mediatek/mt76/mt7915/mcu.h | 6 +-
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h | 18 +
drivers/net/wireless/mediatek/mt76/mt7915/pci.c | 9 +-
drivers/net/wireless/mediatek/mt76/mt7915/soc.c | 2 +-
.../net/wireless/mediatek/mt76/mt7915/testmode.c | 5 +-
drivers/net/wireless/mediatek/mt76/mt7921/mac.c | 3 +
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c | 28 +-
drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 103 +
drivers/net/wireless/mediatek/mt76/mt7925/main.c | 40 +-
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c | 2 +-
.../net/wireless/mediatek/mt76/mt7996/debugfs.c | 74 +-
drivers/net/wireless/mediatek/mt76/mt7996/init.c | 18 +-
drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 55 +-
drivers/net/wireless/mediatek/mt76/mt7996/main.c | 60 +-
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 106 +-
drivers/net/wireless/mediatek/mt76/mt7996/mcu.h | 2 +-
drivers/net/wireless/mediatek/mt76/mt7996/mmio.c | 39 +-
drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h | 26 +
drivers/net/wireless/mediatek/mt76/mt7996/regs.h | 24 +-
drivers/net/wireless/mediatek/mt76/npu.c | 502 +++++
drivers/net/wireless/mediatek/mt76/scan.c | 5 +
drivers/net/wireless/mediatek/mt76/sdio.c | 11 +-
drivers/net/wireless/mediatek/mt76/tx.c | 9 +-
drivers/net/wireless/realtek/rtlwifi/pci.c | 6 +-
drivers/net/wireless/realtek/rtw89/cam.c | 152 +-
drivers/net/wireless/realtek/rtw89/cam.h | 439 +---
drivers/net/wireless/realtek/rtw89/core.c | 52 +-
drivers/net/wireless/realtek/rtw89/core.h | 22 +-
drivers/net/wireless/realtek/rtw89/debug.c | 387 +++-
drivers/net/wireless/realtek/rtw89/fw.c | 58 +-
drivers/net/wireless/realtek/rtw89/fw.h | 9 +-
drivers/net/wireless/realtek/rtw89/mac.c | 6 +-
drivers/net/wireless/realtek/rtw89/mac.h | 2 -
drivers/net/wireless/realtek/rtw89/mac80211.c | 40 +-
drivers/net/wireless/realtek/rtw89/pci.c | 29 +
drivers/net/wireless/realtek/rtw89/pci.h | 1 +
drivers/net/wireless/realtek/rtw89/phy.c | 17 +-
drivers/net/wireless/realtek/rtw89/rtw8851be.c | 1 +
drivers/net/wireless/realtek/rtw89/rtw8852a.c | 7 +-
drivers/net/wireless/realtek/rtw89/rtw8852ae.c | 1 +
drivers/net/wireless/realtek/rtw89/rtw8852be.c | 1 +
drivers/net/wireless/realtek/rtw89/rtw8852bte.c | 1 +
drivers/net/wireless/realtek/rtw89/rtw8852ce.c | 1 +
drivers/net/wireless/realtek/rtw89/rtw8922ae.c | 1 +
drivers/net/wireless/realtek/rtw89/wow.c | 6 +-
drivers/net/wireless/virtual/mac80211_hwsim.c | 5 +-
drivers/net/wireless/zydas/zd1211rw/zd_usb.c | 8 +
drivers/nfc/pn533/pn533.c | 21 +-
drivers/nvdimm/label.c | 15 +-
drivers/nvdimm/nd_virtio.c | 121 +-
drivers/nvdimm/pmem.c | 15 +-
drivers/nvdimm/region_devs.c | 5 +-
drivers/nvdimm/virtio_pmem.c | 17 +-
drivers/nvdimm/virtio_pmem.h | 6 +
drivers/nvme/host/apple.c | 63 +-
drivers/nvme/host/core.c | 79 +-
drivers/nvme/host/fabrics.h | 6 +
drivers/nvme/host/fc.c | 7 +
drivers/nvme/host/ioctl.c | 117 +-
drivers/nvme/host/nvme.h | 68 +
drivers/nvme/host/pci.c | 29 +-
drivers/nvme/host/rdma.c | 1 +
drivers/nvme/host/sysfs.c | 23 +
drivers/nvme/host/tcp.c | 1 +
drivers/nvme/target/core.c | 3 +-
drivers/nvme/target/fabrics-cmd-auth.c | 12 +-
drivers/nvme/target/loop.c | 1 +
drivers/nvme/target/pr.c | 27 +-
drivers/nvme/target/rdma.c | 31 +-
drivers/nvme/target/zns.c | 2 +-
drivers/pci/controller/cadence/pci-j721e.c | 4 +-
drivers/pci/controller/pci-xgene.c | 5 +-
drivers/pci/controller/plda/pcie-starfive.c | 10 +-
drivers/pci/hotplug/pnv_php.c | 2 +-
drivers/pci/hotplug/rpaphp_slot.c | 2 +-
drivers/pci/pci.c | 5 +-
drivers/pci/pcie/aspm.c | 19 +-
drivers/pci/slot.c | 67 +-
drivers/perf/arm_pmuv3.c | 2 +-
drivers/perf/arm_spe_pmu.c | 2 +-
drivers/perf/cxl_pmu.c | 2 +-
drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 736 ++++++-
drivers/phy/qualcomm/phy-qcom-qmp-dp-phy-v8.h | 25 +
.../phy/qualcomm/phy-qcom-qmp-dp-qserdes-com-v8.h | 52 +
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 1 +
drivers/phy/qualcomm/phy-qcom-qmp-pcs-aon-v6.h | 12 +
drivers/phy/qualcomm/phy-qcom-qmp-pcs-aon-v8.h | 17 +
drivers/phy/qualcomm/phy-qcom-qmp-pcs-misc-v5.h | 12 +
drivers/phy/qualcomm/phy-qcom-qmp-pcs-misc-v8.h | 12 +
.../phy/qualcomm/phy-qcom-qmp-qserdes-lalb-v8.h | 639 ++++++
drivers/phy/qualcomm/phy-qcom-qmp-usb-legacy.c | 12 +-
drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 12 +-
drivers/phy/qualcomm/phy-qcom-qmp-usb43-pcs-v8.h | 33 +
.../qualcomm/phy-qcom-qmp-usb43-qserdes-com-v8.h | 224 ++
drivers/phy/qualcomm/phy-qcom-qmp.h | 2 +
drivers/phy/qualcomm/phy-qcom-sgmii-eth.c | 43 +-
drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c | 26 +-
drivers/phy/renesas/Kconfig | 1 +
drivers/phy/renesas/phy-rcar-gen3-usb2.c | 187 +-
drivers/phy/rockchip/phy-rockchip-inno-csidphy.c | 2 +-
drivers/phy/starfive/phy-jh7110-dphy-rx.c | 5 +-
drivers/phy/starfive/phy-jh7110-dphy-tx.c | 5 +-
drivers/phy/sunplus/phy-sunplus-usb2.c | 6 +-
drivers/pinctrl/bcm/pinctrl-bcm2835.c | 1 -
drivers/pinctrl/mediatek/mtk-eint.c | 25 +-
drivers/pinctrl/mediatek/pinctrl-airoha.c | 2198 +++++++++++---------
drivers/pinctrl/pinctrl-eic7700.c | 3 +
drivers/pinctrl/pinctrl-rockchip.c | 10 +
drivers/pinctrl/spacemit/pinctrl-k1.c | 10 +-
drivers/platform/chrome/cros_ec_debugfs.c | 6 +-
drivers/platform/chrome/cros_ec_sensorhub_ring.c | 9 +-
drivers/platform/chrome/cros_ec_typec.c | 6 +
drivers/platform/mellanox/mlxbf-bootctl.c | 1 +
drivers/platform/mellanox/mlxbf-pmc.c | 10 +-
drivers/platform/surface/surface_acpi_notify.c | 6 +-
drivers/platform/x86/acer-wmi.c | 4 +-
drivers/platform/x86/amd/hsmp/hwmon.c | 3 +
drivers/platform/x86/amd/pmc/mp1_stb.c | 23 +-
drivers/platform/x86/dell/dell-wmi-base.c | 17 +-
drivers/platform/x86/dell/dell-wmi-privacy.c | 4 +-
.../x86/dell/dell-wmi-sysman/dell-wmi-sysman.h | 2 +-
.../x86/hp/hp-bioscfg/passwdobj-attributes.c | 5 +
drivers/platform/x86/hp/hp-wmi.c | 4 +
drivers/platform/x86/intel/int1092/intel_sar.c | 39 +-
.../x86/intel/speed_select_if/isst_tpmi_core.c | 14 +-
drivers/platform/x86/lg-laptop.c | 79 +-
drivers/pmdomain/bcm/bcm2835-power.c | 7 +-
drivers/power/reset/sc27xx-poweroff.c | 10 +-
drivers/power/supply/bd99954-charger.h | 23 +-
drivers/power/supply/bq27xxx_battery.c | 6 +-
drivers/power/supply/isp1704_charger.c | 1 +
drivers/power/supply/sbs-battery.c | 7 +-
drivers/power/supply/sc2731_charger.c | 2 +
drivers/powercap/intel_rapl_tpmi.c | 5 +-
drivers/pps/clients/pps-gpio.c | 66 +-
drivers/pps/pps.c | 10 +-
drivers/ptp/ptp_netc.c | 13 +-
drivers/rapidio/rio-scan.c | 1 +
drivers/regulator/adp5055-regulator.c | 2 +-
drivers/regulator/core.c | 6 +-
drivers/regulator/qcom-rpmh-regulator.c | 6 +-
drivers/regulator/tps6594-regulator.c | 19 +-
drivers/remoteproc/qcom_common.c | 4 +-
drivers/remoteproc/qcom_q6v5_adsp.c | 1 +
drivers/remoteproc/remoteproc_core.c | 156 +-
drivers/remoteproc/remoteproc_sysfs.c | 1 -
drivers/rpmsg/qcom_glink_native.c | 44 +-
drivers/rtc/rtc-gamecube.c | 4 +-
drivers/rtc/rtc-pcf85363.c | 17 +-
drivers/rtc/rtc-pcf8563.c | 4 +-
drivers/rtc/rtc-spacemit-p1.c | 5 +-
drivers/rtc/rtc-zynqmp.c | 7 +-
drivers/s390/block/dasd.c | 1 -
drivers/s390/block/dasd_eckd.c | 11 -
drivers/s390/block/dasd_ioctl.c | 6 +-
drivers/s390/char/con3270.c | 19 -
drivers/s390/char/fs3270.c | 7 +-
drivers/s390/char/sclp_ctl.c | 12 +-
drivers/s390/char/tape_char.c | 26 -
drivers/s390/char/vmcp.c | 7 +-
drivers/s390/cio/chsc_sch.c | 7 +-
drivers/s390/crypto/zcrypt_api.c | 195 --
drivers/s390/crypto/zcrypt_card.c | 1 -
drivers/s390/crypto/zcrypt_queue.c | 1 -
drivers/s390/net/qeth_core_main.c | 4 +-
drivers/scsi/ch.c | 4 +-
drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +
drivers/scsi/qla2xxx/qla_attr.c | 1 -
drivers/scsi/qla2xxx/qla_nx2.c | 2 +-
drivers/scsi/scsi_sysfs.c | 77 +-
drivers/scsi/sd.c | 297 ++-
drivers/scsi/ses.c | 4 +-
drivers/scsi/smartpqi/smartpqi_init.c | 18 +
drivers/scsi/sr.c | 4 +-
drivers/scsi/st.c | 4 +-
drivers/sh/clk/core.c | 10 +-
drivers/sh/intc/core.c | 12 +-
drivers/soc/bcm/brcmstb/biuctrl.c | 12 +-
drivers/soc/fsl/qe/gpio.c | 25 +
drivers/soc/fsl/qe/qe_ic.c | 3 +-
drivers/soc/fsl/qe/qe_io.c | 15 +
drivers/soc/qcom/rpmh-rsc.c | 37 +-
drivers/soc/renesas/Kconfig | 1 -
drivers/soc/samsung/exynos-pmu.c | 4 +-
drivers/soc/tegra/pmc.c | 17 +-
drivers/soc/ti/knav_qmss.h | 1 +
drivers/soc/ti/knav_qmss_queue.c | 14 +-
drivers/soundwire/bus.c | 31 +
drivers/soundwire/qcom.c | 2 +-
drivers/spi/spi-amlogic-spisg.c | 2 +-
drivers/spi/spi-davinci.c | 7 +-
drivers/spi/spi-geni-qcom.c | 17 +-
drivers/spi/spi-img-spfi.c | 5 +-
drivers/spi/spi-oc-tiny.c | 24 +-
drivers/spi/spi-sprd-adi.c | 6 +
drivers/staging/fbtft/fbtft-sysfs.c | 2 +-
drivers/staging/gpib/common/gpib_os.c | 21 +-
drivers/staging/gpib/common/iblib.c | 3 -
drivers/staging/greybus/audio_gb.c | 13 +
drivers/staging/greybus/audio_manager_sysfs.c | 2 +-
drivers/staging/media/ipu7/ipu7-isys.c | 1 +
drivers/staging/media/ipu7/ipu7.c | 4 +-
drivers/staging/octeon/ethernet-mem.c | 43 +-
drivers/staging/octeon/ethernet-mem.h | 8 +-
drivers/staging/octeon/ethernet-rx.c | 53 +-
drivers/staging/octeon/ethernet-rx.h | 13 +-
drivers/staging/octeon/ethernet-tx.c | 2 +
drivers/staging/octeon/ethernet.c | 43 +-
drivers/staging/octeon/octeon-ethernet.h | 14 +
drivers/staging/rtl8723bs/core/rtw_ap.c | 8 +-
drivers/staging/rtl8723bs/core/rtw_cmd.c | 89 +-
drivers/staging/rtl8723bs/core/rtw_efuse.c | 1 -
drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 1 -
drivers/staging/rtl8723bs/core/rtw_mlme.c | 29 +-
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 106 +-
drivers/staging/rtl8723bs/core/rtw_recv.c | 27 +-
drivers/staging/rtl8723bs/core/rtw_security.c | 159 +-
drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 3 +-
drivers/staging/rtl8723bs/core/rtw_xmit.c | 97 +-
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c | 2 +-
drivers/staging/rtl8723bs/hal/sdio_ops.c | 2 +-
drivers/staging/rtl8723bs/include/basic_types.h | 1 +
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 29 +-
drivers/staging/rtl8723bs/os_dep/os_intfs.c | 2 +-
drivers/staging/rtl8723bs/os_dep/osdep_service.c | 7 +-
drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 4 +-
drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 2 +-
drivers/staging/sm750fb/Kconfig | 1 +
drivers/staging/sm750fb/sm750.c | 6 +-
drivers/staging/sm750fb/sm750.h | 2 +-
drivers/staging/sm750fb/sm750_accel.c | 6 +-
drivers/staging/sm750fb/sm750_accel.h | 4 +-
drivers/thermal/airoha_thermal.c | 4 +-
.../intel/int340x_thermal/int3400_thermal.c | 4 +-
drivers/thermal/intel/intel_hfi.c | 12 +-
drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 3 -
drivers/thermal/renesas/rcar_thermal.c | 15 +-
drivers/tty/hvc/Kconfig | 2 +-
drivers/tty/serial/8250/8250_core.c | 6 +
drivers/tty/serial/8250/8250_port.c | 21 +-
drivers/tty/serial/amba-pl011.c | 48 +-
drivers/tty/serial/bcm63xx_uart.c | 2 +-
drivers/tty/serial/ma35d1_serial.c | 12 +-
drivers/tty/serial/omap-serial.c | 2 +-
drivers/tty/serial/pch_uart.c | 2 +-
drivers/tty/serial/pxa.c | 2 +-
drivers/tty/serial/qcom_geni_serial.c | 10 +-
drivers/tty/serial/samsung_tty.c | 8 +-
drivers/tty/serial/serial_core.c | 21 +-
drivers/tty/serial/serial_txx9.c | 4 +-
drivers/tty/serial/sunsu.c | 2 +-
drivers/tty/tty_io.c | 4 +-
drivers/ufs/core/ufs-debugfs.c | 2 +-
drivers/ufs/core/ufshcd.c | 5 +-
drivers/uio/uio.c | 5 +
drivers/usb/atm/usbatm.c | 4 +-
drivers/usb/cdns3/cdnsp-gadget.c | 110 +-
drivers/usb/cdns3/cdnsp-gadget.h | 1 +
drivers/usb/cdns3/cdnsp-mem.c | 98 +-
drivers/usb/core/driver.c | 12 +-
drivers/usb/gadget/configfs.c | 4 +-
drivers/usb/gadget/function/f_fs.c | 8 +-
drivers/usb/gadget/function/f_mass_storage.c | 3 +
drivers/usb/gadget/function/f_uac1_legacy.c | 56 -
drivers/usb/gadget/function/u_uac1_legacy.h | 3 -
drivers/usb/gadget/udc/aspeed_udc.c | 50 +-
drivers/usb/gadget/udc/r8a66597-udc.c | 1 -
drivers/usb/misc/usb-ljca.c | 3 +
drivers/usb/mtu3/mtu3_core.c | 11 +-
drivers/usb/renesas_usbhs/common.c | 6 +-
drivers/usb/typec/ucsi/debugfs.c | 1 +
drivers/usb/typec/ucsi/ucsi.c | 2 +
drivers/usb/typec/ucsi/ucsi_huawei_gaokun.c | 68 +-
drivers/vdpa/mlx5/core/mr.c | 2 +-
drivers/vdpa/vdpa_sim/vdpa_sim.c | 25 +-
drivers/vfio/pci/vfio_pci_config.c | 1 +
drivers/vhost/net.c | 3 +-
drivers/video/fbdev/clps711x-fb.c | 2 -
drivers/video/fbdev/kyro/fbdev.c | 24 +-
drivers/video/fbdev/tdfxfb.c | 2 +-
drivers/virt/coco/arm-cca-guest/arm-cca-guest.c | 97 +-
drivers/virtio/virtio.c | 41 +-
drivers/virtio/virtio_balloon.c | 40 +-
drivers/virtio/virtio_pci_common.c | 2 +-
drivers/virtio/virtio_rtc_driver.c | 14 +-
drivers/w1/masters/ds2482.c | 4 +
drivers/xen/xen-acpi-processor.c | 12 +-
drivers/xen/xenbus/xenbus_xs.c | 16 +-
fs/btrfs/bio.c | 68 +-
fs/btrfs/bio.h | 5 +-
fs/btrfs/block-group.c | 3 +-
fs/btrfs/ctree.c | 3 +-
fs/btrfs/defrag.c | 50 +-
fs/btrfs/delayed-inode.c | 4 +-
fs/btrfs/disk-io.c | 51 +-
fs/btrfs/extent-io-tree.c | 10 +-
fs/btrfs/extent-tree.c | 10 +-
fs/btrfs/extent_io.c | 31 +-
fs/btrfs/extent_io.h | 23 +-
fs/btrfs/fiemap.c | 4 +-
fs/btrfs/file.c | 103 +-
fs/btrfs/free-space-tree.c | 4 +-
fs/btrfs/inode-item.c | 7 +-
fs/btrfs/inode.c | 13 +-
fs/btrfs/qgroup.c | 37 +-
fs/btrfs/relocation.c | 5 +-
fs/btrfs/verity.c | 16 +-
fs/btrfs/volumes.c | 9 +-
fs/ceph/dir.c | 2 +-
fs/ceph/file.c | 48 +
fs/erofs/Kconfig | 8 +-
fs/erofs/decompressor.c | 2 +-
fs/erofs/internal.h | 25 +-
fs/erofs/zdata.c | 31 +-
fs/erofs/zmap.c | 82 +-
fs/ext4/dir.c | 20 +-
fs/ext4/ext4.h | 1 +
fs/ext4/file.c | 7 +
fs/ext4/inline.c | 25 +-
fs/ext4/inode.c | 52 +-
fs/ext4/migrate.c | 3 +-
fs/ext4/namei.c | 2 +
fs/ext4/orphan.c | 10 +-
fs/f2fs/f2fs.h | 22 +-
fs/f2fs/gc.c | 5 +-
fs/f2fs/segment.c | 8 +-
fs/f2fs/super.c | 4 +-
fs/fat/nfs.c | 4 +-
fs/fuse/cuse.c | 5 +
fs/fuse/inode.c | 2 +
fs/hfsplus/catalog.c | 25 +-
fs/hfsplus/hfsplus_fs.h | 6 +
fs/hugetlbfs/inode.c | 3 +-
fs/inode.c | 18 +-
fs/isofs/compress.c | 7 +-
fs/nfs/blocklayout/dev.c | 21 +-
fs/nfs/client.c | 14 +-
fs/nfs/dir.c | 7 +
fs/nfs/filelayout/filelayoutdev.c | 3 +-
fs/nfs/flexfilelayout/flexfilelayout.c | 3 +-
fs/nfs/flexfilelayout/flexfilelayoutdev.c | 3 +-
fs/nfs/inode.c | 4 +-
fs/nfs/internal.h | 1 +
fs/nfs/nfs4client.c | 1 +
fs/nfs/nfs4proc.c | 4 +-
fs/nfs/nfs4session.c | 16 +-
fs/nfs/pnfs.c | 35 +-
fs/nfs/pnfs.h | 3 +-
fs/nfs/pnfs_nfs.c | 14 +-
fs/nilfs2/page.c | 17 +-
fs/nilfs2/segment.c | 4 +
fs/nilfs2/the_nilfs.c | 6 +
fs/notify/fanotify/fanotify.c | 1 +
fs/notify/fanotify/fanotify_user.c | 12 +-
fs/ntfs3/fslog.c | 13 +-
fs/ntfs3/fsntfs.c | 8 +-
fs/ntfs3/record.c | 34 +-
fs/ntfs3/super.c | 13 +-
fs/ntfs3/xattr.c | 25 +-
fs/ocfs2/acl.c | 141 +-
fs/ocfs2/acl.h | 19 +-
fs/ocfs2/cluster/heartbeat.c | 86 +-
fs/ocfs2/cluster/heartbeat.h | 5 +
fs/ocfs2/cluster/nodemanager.c | 23 +-
fs/ocfs2/cluster/nodemanager.h | 2 +
fs/ocfs2/cluster/tcp.c | 83 +-
fs/ocfs2/cluster/tcp.h | 1 +
fs/ocfs2/inode.c | 16 +
fs/ocfs2/namei.c | 17 +-
fs/ocfs2/xattr.c | 86 +-
fs/ocfs2/xattr.h | 9 +-
fs/resctrl/rdtgroup.c | 19 +-
fs/smb/client/cifs_debug.c | 2 +-
fs/smb/client/inode.c | 14 -
fs/smb/client/smb2pdu.c | 16 +-
fs/smb/server/Kconfig | 1 -
fs/smb/server/auth.c | 2 +-
fs/smb/server/connection.c | 19 +
fs/smb/server/connection.h | 1 +
fs/smb/server/mgmt/share_config.c | 7 +-
fs/smb/server/mgmt/user_config.c | 1 +
fs/smb/server/mgmt/user_session.c | 24 +-
fs/smb/server/mgmt/user_session.h | 1 +
fs/smb/server/server.c | 4 +-
fs/smb/server/smb2ops.c | 11 +-
fs/smb/server/smb2pdu.c | 15 +-
fs/smb/server/smbacl.c | 4 +-
fs/smb/server/transport_ipc.c | 12 +
fs/smb/server/transport_tcp.c | 6 +
fs/smb/server/vfs.c | 3 -
fs/smb/server/vfs_cache.c | 5 +-
fs/squashfs/cache.c | 2 +-
fs/stat.c | 2 +-
fs/super.c | 4 +-
fs/udf/inode.c | 129 +-
fs/udf/super.c | 23 +-
fs/udf/symlink.c | 2 +
include/acpi/processor.h | 2 +
include/drm/bridge/dw_dp.h | 8 +
include/linux/bio.h | 22 +-
include/linux/blk-mq.h | 16 +
include/linux/blk_types.h | 12 +
include/linux/bpf.h | 19 +-
include/linux/compiler-context-analysis.h | 32 +
include/linux/compiler_types.h | 18 +-
include/linux/dma-buf.h | 5 +
include/linux/efi.h | 4 +-
include/linux/filter.h | 31 +
include/linux/firmware/qcom/qcom_scm.h | 14 +
include/linux/fs.h | 20 +-
include/linux/ftrace.h | 5 +-
include/linux/gpio.h | 162 +-
include/linux/gpio/legacy.h | 173 ++
include/linux/hwmon.h | 3 +
include/linux/i3c/master.h | 3 +
include/linux/ieee80211-uhr.h | 220 ++
include/linux/ieee80211.h | 33 +-
include/linux/ima.h | 7 +-
include/linux/io_uring_types.h | 7 +-
include/linux/leds.h | 2 +
include/linux/libnvdimm.h | 9 +
include/linux/maple_tree.h | 2 +-
include/linux/memory.h | 27 +-
include/linux/memory_hotplug.h | 18 +-
include/linux/mlx5/driver.h | 1 +
include/linux/mlx5/fs.h | 1 +
include/linux/mlx5/mlx5_ifc.h | 9 +-
include/linux/mlx5/vport.h | 7 +
include/linux/mmc/sdio_ids.h | 1 +
include/linux/mroute_base.h | 3 +
include/linux/nfs_xdr.h | 2 +-
include/linux/nvme.h | 4 +
include/linux/pci.h | 14 +-
include/linux/pm_runtime.h | 24 +
include/linux/remoteproc.h | 284 +--
include/linux/rsc_table.h | 364 ++++
include/linux/rtsx_usb.h | 3 +
include/linux/sched/rt.h | 2 +
include/linux/sched/user.h | 3 +-
include/linux/secure_boot.h | 23 +
include/linux/serial_core.h | 20 +
include/linux/soc/airoha/airoha_offload.h | 1 +
include/linux/soc/qcom/ubwc.h | 1 +
include/linux/soundwire/sdw.h | 8 +
include/linux/syscore_ops.h | 17 +-
include/linux/time_namespace.h | 39 +-
include/linux/usb.h | 3 +-
include/linux/virtio.h | 1 +
include/linux/virtio_net.h | 4 +
include/media/rc-map.h | 2 -
include/net/act_api.h | 2 +-
include/net/bluetooth/hci_core.h | 2 +-
include/net/bluetooth/l2cap.h | 5 +
include/net/cfg80211.h | 156 +-
include/net/inetpeer.h | 4 +
include/net/libeth/xsk.h | 2 +-
include/net/netns/ipv4.h | 2 +-
include/net/pkt_sched.h | 1 +
include/net/sch_generic.h | 9 +-
include/net/sock.h | 17 +-
include/net/xdp_sock_drv.h | 22 +-
include/net/xsk_buff_pool.h | 3 +-
include/rdma/ib_verbs.h | 21 +
include/scsi/scsi_driver.h | 7 +-
include/sound/core.h | 2 +
include/trace/events/erofs.h | 7 +-
include/uapi/linux/devlink.h | 1 +
include/uapi/linux/if_xdp.h | 1 +
include/uapi/linux/nl80211.h | 140 ++
include/uapi/linux/time_types.h | 2 +-
include/uapi/rdma/ib_user_ioctl_cmds.h | 6 +
init/Kconfig | 4 +-
io_uring/futex.c | 16 +-
io_uring/io_uring.c | 45 +-
io_uring/io_uring.h | 17 +-
io_uring/msg_ring.c | 3 +-
io_uring/notif.c | 5 +-
io_uring/poll.c | 13 +-
io_uring/poll.h | 2 +-
io_uring/rw.c | 5 +-
io_uring/rw.h | 2 +-
io_uring/timeout.c | 20 +-
io_uring/uring_cmd.c | 5 +-
io_uring/waitid.c | 81 +-
kernel/bpf/arena.c | 2 +
kernel/bpf/bpf_lsm.c | 1 -
kernel/bpf/btf.c | 30 +-
kernel/bpf/cgroup.c | 27 +-
kernel/bpf/cpumask.c | 6 +-
kernel/bpf/helpers.c | 9 +-
kernel/bpf/mmap_unlock_work.h | 51 +-
kernel/bpf/net_namespace.c | 17 +-
kernel/bpf/queue_stack_maps.c | 8 +-
kernel/bpf/ringbuf.c | 2 +-
kernel/bpf/stackmap.c | 192 +-
kernel/bpf/syscall.c | 23 +-
kernel/bpf/task_iter.c | 48 +-
kernel/bpf/verifier.c | 55 +-
kernel/cgroup/cpuset-internal.h | 2 +-
kernel/cgroup/cpuset.c | 118 +-
kernel/cpu_pm.c | 12 +-
kernel/crash_dump_dm_crypt.c | 15 +-
kernel/dma/swiotlb.c | 31 +-
kernel/events/core.c | 90 +-
kernel/events/internal.h | 1 +
kernel/events/ring_buffer.c | 2 +
kernel/futex/core.c | 105 +-
kernel/futex/futex.h | 28 +-
kernel/futex/pi.c | 37 +-
kernel/futex/requeue.c | 20 +-
kernel/futex/waitwake.c | 17 +-
kernel/irq/generic-chip.c | 14 +-
kernel/irq/pm.c | 11 +-
kernel/kcsan/core.c | 12 +-
kernel/locking/lockdep.c | 2 +
kernel/locking/rtmutex_api.c | 2 +
kernel/module/dups.c | 99 +-
kernel/module/stats.c | 2 +-
kernel/power/snapshot.c | 5 +-
kernel/power/wakelock.c | 2 +-
kernel/printk/printk.c | 176 +-
kernel/rcu/tree_plugin.h | 10 +-
kernel/sched/core.c | 16 +
kernel/sched/cpufreq_schedutil.c | 2 +-
kernel/sched/fair.c | 31 +-
kernel/sys.c | 2 +-
kernel/time/Makefile | 1 +
kernel/time/clocksource.c | 8 +-
kernel/time/namespace.c | 165 +-
kernel/time/namespace_internal.h | 28 +
kernel/time/namespace_vdso.c | 160 ++
kernel/time/sched_clock.c | 22 +-
kernel/time/timekeeping.c | 49 +-
kernel/time/timer_migration.c | 4 +-
kernel/trace/ftrace.c | 57 +-
kernel/trace/ring_buffer.c | 67 +-
kernel/trace/trace.c | 111 +-
kernel/trace/trace.h | 12 +-
kernel/trace/trace_btf.c | 31 +-
kernel/trace/trace_btf.h | 3 +-
kernel/trace/trace_events.c | 6 +-
kernel/trace/trace_functions.c | 2 +-
kernel/trace/trace_probe.c | 18 +-
kernel/trace/trace_stack.c | 2 +-
lib/interval_tree_test.c | 4 +-
lib/maple_tree.c | 43 +-
lib/string.c | 3 +-
lib/test_hmm.c | 2 +-
lib/vdso/datastore.c | 25 -
mm/damon/sysfs.c | 6 +-
mm/huge_memory.c | 2 +
mm/khugepaged.c | 6 -
mm/madvise.c | 8 +
mm/memory_hotplug.c | 13 +-
mm/mm_init.c | 19 +-
mm/mremap.c | 21 +-
mm/secretmem.c | 117 +-
net/batman-adv/bridge_loop_avoidance.c | 65 +-
net/batman-adv/distributed-arp-table.c | 58 +-
net/batman-adv/mesh-interface.c | 7 +-
net/batman-adv/types.h | 2 +-
net/bluetooth/hci_conn.c | 20 +-
net/bluetooth/hci_sync.c | 12 +-
net/bluetooth/l2cap_sock.c | 36 +-
net/bluetooth/mgmt.c | 40 +-
net/bluetooth/msft.c | 5 +
net/bluetooth/rfcomm/core.c | 4 +
net/bridge/br_netlink_tunnel.c | 3 +-
net/bridge/br_vlan.c | 4 +-
net/can/bcm.c | 5 +-
net/can/isotp.c | 3 +-
net/can/j1939/socket.c | 3 +-
net/can/raw.c | 3 +-
net/ceph/messenger_v2.c | 5 +
net/core/dev.c | 60 +-
net/core/filter.c | 4 -
net/core/lwt_bpf.c | 15 +-
net/core/net_namespace.c | 25 +-
net/core/page_pool.c | 71 +-
net/core/skbuff.c | 6 +-
net/core/sock.c | 20 +-
net/devlink/netlink_gen.c | 2 +-
net/hsr/hsr_device.c | 2 +
net/ife/ife.c | 14 +-
net/ipv4/inetpeer.c | 38 +-
net/ipv4/ipmr.c | 186 +-
net/ipv4/ipmr_base.c | 16 +
net/ipv4/ping.c | 3 +-
net/ipv4/raw.c | 3 +-
net/ipv4/tcp.c | 6 +-
net/ipv4/tcp_output.c | 2 +-
net/ipv6/ip6mr.c | 22 +-
net/ipv6/raw.c | 3 +-
net/ipv6/route.c | 2 +-
net/ipv6/xfrm6_input.c | 2 +-
net/kcm/kcmsock.c | 3 +
net/mac80211/link.c | 3 +-
net/mac80211/mlme.c | 2 +-
net/mac80211/s1g.c | 2 +-
net/mac80211/spectmgmt.c | 11 +-
net/mac80211/tx.c | 3 +-
net/netfilter/ipvs/ip_vs_ftp.c | 10 +-
net/netfilter/nf_nat_sip.c | 5 +
net/netfilter/nf_tables_api.c | 14 +-
net/netfilter/xt_cgroup.c | 12 +-
net/netfilter/xt_hl.c | 27 +
net/nfc/digital_core.c | 2 +-
net/nfc/llcp_core.c | 29 +-
net/nfc/llcp_sock.c | 14 +-
net/nfc/nci/data.c | 10 +-
net/nfc/nci/rsp.c | 41 +-
net/phonet/pep.c | 2 +-
net/rds/cong.c | 4 +-
net/sched/act_api.c | 7 +-
net/sched/act_bpf.c | 28 +-
net/sched/act_ct.c | 46 +
net/sched/act_ctinfo.c | 11 +
net/sched/act_ife.c | 63 +-
net/sched/act_mpls.c | 2 +-
net/sched/act_pedit.c | 24 +
net/sched/act_police.c | 14 +-
net/sched/act_sample.c | 9 +
net/sched/act_skbedit.c | 2 +-
net/sched/act_skbmod.c | 12 +-
net/sched/act_tunnel_key.c | 80 +
net/sched/cls_api.c | 18 +-
net/sched/sch_api.c | 7 +-
net/sched/sch_cake.c | 2 +-
net/sched/sch_codel.c | 2 +-
net/sched/sch_fifo.c | 2 +-
net/sched/sch_fq.c | 26 +-
net/sched/sch_fq_codel.c | 8 +-
net/sched/sch_fq_pie.c | 3 +-
net/sched/sch_gred.c | 6 +-
net/sched/sch_hhf.c | 4 +
net/sched/sch_htb.c | 7 +-
net/sched/sch_plug.c | 2 +-
net/sched/sch_sfq.c | 3 +-
net/sched/sch_teql.c | 1 +
net/smc/af_smc.c | 2 +-
net/smc/smc_inet.c | 16 +
net/smc/smc_llc.c | 3 +
net/sunrpc/rpcb_clnt.c | 4 +
net/sunrpc/xprtsock.c | 20 +-
net/tls/tls_strp.c | 16 +-
net/vmw_vsock/af_vsock.c | 23 +-
net/wireless/core.c | 57 +-
net/wireless/core.h | 4 +
net/wireless/nl80211.c | 491 ++++-
net/wireless/nl80211.h | 5 +-
net/wireless/pmsr.c | 5 +-
net/wireless/rdev-ops.h | 16 +
net/wireless/reg.c | 4 +-
net/wireless/trace.h | 57 +
net/wireless/util.c | 101 +-
net/xdp/xsk.c | 44 +-
net/xdp/xsk_buff_pool.c | 7 +-
net/xdp/xsk_queue.h | 16 +-
net/xfrm/xfrm_output.c | 4 +-
rust/kernel/cpufreq.rs | 24 +-
rust/uapi/uapi_helper.h | 2 +-
samples/ftrace/ftrace-direct-modify.c | 12 +-
samples/ftrace/ftrace-direct-multi-modify.c | 12 +-
scripts/mod/modpost.c | 6 +-
scripts/tags.sh | 2 +-
security/apparmor/af_unix.c | 2 +-
security/apparmor/apparmorfs.c | 2 +-
security/apparmor/domain.c | 201 +-
security/apparmor/include/lib.h | 31 +-
security/apparmor/include/policy.h | 3 +
security/apparmor/label.c | 26 +-
security/apparmor/lib.c | 20 +-
security/apparmor/mount.c | 17 +-
security/apparmor/policy.c | 22 +-
security/integrity/Makefile | 1 +
security/integrity/efi_secureboot.c | 56 +
security/integrity/ima/ima_appraise.c | 2 +-
security/integrity/ima/ima_efi.c | 47 +-
security/integrity/ima/ima_main.c | 3 +-
security/integrity/integrity.h | 1 +
security/integrity/platform_certs/load_uefi.c | 2 +-
security/smack/smack.h | 5 +-
security/smack/smack_lsm.c | 67 +-
security/smack/smackfs.c | 222 +-
sound/core/control.c | 6 +-
sound/core/control_led.c | 13 +-
sound/core/init.c | 4 +-
sound/core/seq/seq_clientmgr.c | 16 +-
sound/core/seq/seq_midi.c | 61 +-
sound/drivers/mtpav.c | 4 +-
sound/hda/common/proc.c | 2 +-
sound/pci/asihpi/hpi6000.c | 5 +
sound/pci/ice1712/ice1712.c | 7 +-
sound/pci/via82xx_modem.c | 26 +-
sound/soc/apple/mca.c | 6 +-
sound/soc/codecs/rt700-sdw.c | 6 +-
sound/soc/codecs/tas2783-sdw.c | 42 +-
sound/soc/fsl/fsl-asoc-card.c | 4 +-
sound/soc/fsl/fsl_audmix.c | 24 +-
sound/soc/meson/meson-card-utils.c | 17 +-
sound/soc/pxa/pxa-ssp.c | 7 +-
sound/soc/qcom/qdsp6/q6apm.c | 12 +-
sound/soc/soc-dapm.c | 2 +-
sound/soc/sof/topology.c | 18 +-
sound/soc/tegra/tegra210_mixer.c | 10 +-
sound/soc/xilinx/xlnx_formatter_pcm.c | 14 +-
sound/usb/fcp.c | 38 +-
sound/usb/mixer_scarlett2.c | 21 +-
sound/usb/quirks.c | 13 +-
tools/bpf/bpftool/map.c | 16 +-
tools/bpf/bpftool/sign.c | 7 +-
tools/bpf/bpftool/struct_ops.c | 4 +
tools/build/Makefile.feature | 2 -
tools/build/feature/Makefile | 14 -
tools/include/nolibc/arch-powerpc.h | 2 +-
tools/include/nolibc/arch-sparc.h | 2 +-
tools/include/uapi/linux/if_xdp.h | 1 +
tools/lib/bpf/libbpf.c | 3 +-
.../xdrgen/templates/C/enum/declaration/enum.j2 | 1 -
.../xdrgen/templates/C/enum/definition/close.j2 | 1 +
.../xdrgen/templates/C/enum/definition/close_be.j2 | 1 +
.../xdrgen/templates/C/pointer/encoder/string.j2 | 2 +
.../C/pointer/encoder/variable_length_opaque.j2 | 2 +
.../xdrgen/templates/C/struct/encoder/string.j2 | 2 +
.../C/struct/encoder/variable_length_opaque.j2 | 2 +
.../xdrgen/templates/C/union/definition/close.j2 | 5 -
tools/perf/Documentation/perf-c2c.txt | 7 +
tools/perf/builtin-c2c.c | 296 ++-
tools/perf/builtin-ftrace.c | 13 +-
tools/perf/builtin-record.c | 55 +-
tools/perf/builtin-stat.c | 9 +-
.../arch/x86/amdzen5/floating-point.json | 160 +-
.../pmu-events/arch/x86/amdzen5/load-store.json | 8 +-
tools/perf/pmu-events/jevents.py | 5 +-
tools/perf/pmu-events/metric.py | 6 +-
tools/perf/tests/builtin-test.c | 864 +++++++-
tools/perf/tests/shell/kvm.sh | 169 ++
.../perf/tests/shell/lib/perf_metric_validation.py | 11 +-
tools/perf/tests/shell/lib/perf_record.sh | 58 +
tools/perf/tests/shell/pipe_test.sh | 4 +-
.../shell/record+zstd_comp_decomp_multi_record.sh | 63 +
tools/perf/tests/shell/record.sh | 173 +-
tools/perf/tests/shell/record_lbr.sh | 50 +-
tools/perf/tests/shell/stat_all_metrics.sh | 112 +-
tools/perf/tests/shell/stat_bpf_counters.sh | 44 +-
tools/perf/tests/shell/stat_metrics_values.sh | 7 +
tools/perf/tests/shell/test_brstack.sh | 131 +-
tools/perf/tests/shell/trace_record_replay.sh | 38 +-
tools/perf/tests/tests.h | 2 +
tools/perf/ui/browsers/hists.c | 6 +-
tools/perf/util/arm-spe.c | 4 +
tools/perf/util/auxtrace.c | 15 +-
tools/perf/util/bpf-event.c | 3 +-
tools/perf/util/bpf-filter.c | 22 +-
tools/perf/util/cap.c | 4 +-
tools/perf/util/cap.h | 3 +-
tools/perf/util/capstone.c | 13 +-
tools/perf/util/compress.h | 6 +-
tools/perf/util/cs-etm.c | 85 +-
tools/perf/util/data-convert-json.c | 1 +
tools/perf/util/dso.c | 48 +-
tools/perf/util/dso.h | 57 +-
tools/perf/util/evsel.c | 2 +-
tools/perf/util/hist.h | 8 +-
tools/perf/util/intel-bts.c | 2 +-
tools/perf/util/intel-pt.c | 2 +-
tools/perf/util/libbfd.c | 23 +-
tools/perf/util/machine.c | 43 +-
tools/perf/util/metricgroup.c | 7 +-
tools/perf/util/python.c | 66 +-
tools/perf/util/sort.c | 167 +-
tools/perf/util/symbol.c | 3 +-
tools/perf/util/synthetic-events.c | 6 +-
tools/perf/util/thread-stack.c | 2 +-
tools/perf/util/trace-event-read.c | 33 +-
tools/perf/util/util.c | 12 +-
tools/perf/util/zstd.c | 40 +-
tools/sched_ext/include/scx/compat.bpf.h | 110 +-
tools/sched_ext/scx_flatcg.bpf.c | 29 +-
tools/sched_ext/scx_qmap.bpf.c | 16 +-
tools/scripts/Makefile.include | 37 +-
tools/testing/kunit/kunit.py | 2 +-
tools/testing/kunit/kunit_tool_test.py | 12 +
tools/testing/selftests/arm64/fp/fp-ptrace.c | 47 +-
tools/testing/selftests/arm64/fp/sve-test.S | 7 +-
.../selftests/arm64/mte/check_buffer_fill.c | 2 +
.../selftests/arm64/mte/check_child_memory.c | 2 +
.../selftests/arm64/mte/check_gcr_el1_cswitch.c | 1 +
.../selftests/arm64/mte/check_hugetlb_options.c | 2 +
.../selftests/arm64/mte/check_ksm_options.c | 31 +-
.../selftests/arm64/mte/check_mmap_options.c | 2 +
tools/testing/selftests/arm64/mte/check_prctl.c | 2 +-
.../selftests/arm64/mte/check_tags_inclusion.c | 2 +
tools/testing/selftests/arm64/mte/check_user_mem.c | 2 +
tools/testing/selftests/bpf/README.rst | 4 +-
tools/testing/selftests/bpf/network_helpers.c | 10 +-
tools/testing/selftests/bpf/network_helpers.h | 5 +
.../selftests/bpf/prog_tests/global_map_resize.c | 8 +-
.../selftests/bpf/prog_tests/lwt_ip_encap.c | 152 +-
tools/testing/selftests/bpf/prog_tests/mptcp.c | 13 +-
tools/testing/selftests/bpf/prog_tests/sha256.c | 4 +-
.../testing/selftests/bpf/progs/bpf_tracing_net.h | 3 +
tools/testing/selftests/bpf/progs/mptcpify.c | 2 +-
.../selftests/bpf/progs/test_lwt_ip_encap.c | 155 +-
tools/testing/selftests/bpf/test_progs.c | 11 +-
tools/testing/selftests/bpf/test_sockmap.c | 3 +-
tools/testing/selftests/bpf/veristat.c | 76 +-
tools/testing/selftests/bpf/vmtest.sh | 13 +-
tools/testing/selftests/cgroup/test_cpuset_prs.sh | 5 +-
tools/testing/selftests/kselftest_harness.h | 14 +-
tools/testing/selftests/lsm/common.c | 4 +-
tools/testing/selftests/mm/cow.c | 9 +-
tools/testing/selftests/mm/ksm_tests.c | 206 +-
tools/testing/selftests/mm/memfd_secret.c | 30 +-
tools/testing/selftests/proc/proc-maps-race.c | 3 +-
tools/testing/selftests/proc/proc-pidns.c | 1 +
.../selftests/rseq/rseq-x86-thread-pointer.h | 4 +-
.../selftests/sched_ext/ddsp_bogus_dsq_fail.bpf.c | 20 +-
.../selftests/sched_ext/ddsp_vtimelocal_fail.bpf.c | 13 +-
tools/testing/selftests/sched_ext/exit.c | 1 +
tools/testing/selftests/sched_ext/prog_run.c | 36 +-
tools/testing/selftests/timers/leap-a-day.c | 19 +-
tools/testing/selftests/vDSO/vgetrandom-chacha.S | 2 +-
tools/testing/selftests/zram/zram_lib.sh | 2 +-
virt/kvm/kvm_main.c | 18 +-
1613 files changed, 30327 insertions(+), 15639 deletions(-)Greg Kroah-Hartman
maintainerPATCH 45/1518 udf: Fix data loss when converting inline inodes to out of line
6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jan Kara <[email protected]>
[ Upstream commit 62333e480d12ab186f89fe2725b372d12f72d5eb ]
When udf_expand_file_adinicb() converts file from inline format to out of line, we use filemap_fdatawrite() to writeout the data to the new blocks. However since 36580ed08776 ("udf: Do not allocate blocks on page writeback") the writeback actually doesn't allocate the new block and the folio dirty bit is just silently cleared. Thus unless the file is written to after the conversion (as it can easily happen in case of truncate up), the data is just lost. Fix the problem by explicitely allocating the block underlying the data before starting writeback.
--- fs/udf/inode.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)
fs/udf/inode.c +13 -2
@@ -406,6 +406,10 @@ int udf_expand_file_adinicb(struct inode {struct folio *folio;struct udf_inode_info *iinfo =UDF_I (inode); +struct udf_map_rq map = { + .lblk =0 , + .iflags =UDF_MAP_CREATE , + };int err;WARN_ON_ONCE (!inode_is_locked (inode));
@@ -435,20 +439,27 @@ int udf_expand_file_adinicb(struct inode iinfo->i_alloc_type =ICBTAG_FLAG_AD_SHORT ; else iinfo->i_alloc_type = ICBTAG_FLAG_AD_LONG; +up_write (&iinfo->i_data_sem); + +/* Allocate the block underlying the data */ + err =udf_map_block (inode, &map); +if (err <0 ) + goto restore; +folio_mark_dirty (folio);folio_unlock (folio); -up_write (&iinfo->i_data_sem); err =filemap_fdatawrite (inode->i_mapping);if (err) {/* Restore everything back so that we don't lose data... */ folio_lock (folio); +restore:down_write (&iinfo->i_data_sem);memcpy_from_folio (iinfo->i_data + iinfo->i_lenEAttr, folio,0 , inode->i_size); -folio_unlock (folio); iinfo->i_alloc_type =ICBTAG_FLAG_AD_IN_ICB ; iinfo->i_lenAlloc = inode->i_size;up_write (&iinfo->i_data_sem); +folio_unlock (folio); }folio_put (folio);mark_inode_dirty (inode);
Greg Kroah-Hartman
maintainerPATCH 54/1518 io_uring: only call io_should_terminate_tw() once for ctx
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Caleb Sander Mateos <[email protected]>
[ Upstream commit 4531d165ee39edb315b42a4a43e29339fa068e51 ]
io_fallback_req_func() calls io_should_terminate_tw() on each req's ctx. But since the reqs all come from the ctx's fallback_llist, req->ctx will be ctx for all of the reqs. Therefore, compute ts.cancel as io_should_terminate_tw(ctx) just once, outside the loop.
Stable-dep-of: 14572de82e50 ("io_uring/waitid: honor task_work cancellation")
--- io_uring/io_uring.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
io_uring/io_uring.c +2 -3
@@ -292,10 +292,9 @@ static __cold void io_fallback_req_func(percpu_ref_get (&ctx->refs);mutex_lock (&ctx->uring_lock); -llist_for_each_entry_safe (req, tmp, node, io_task_work.node) { - ts.cancel =io_should_terminate_tw (req->ctx); + ts.cancel =io_should_terminate_tw (ctx); +llist_for_each_entry_safe (req, tmp, node, io_task_work.node) req->io_task_work.func (req, ts); - }io_submit_flush_completions (ctx);mutex_unlock (&ctx->uring_lock);percpu_ref_put (&ctx->refs);
Greg Kroah-Hartman
maintainerPATCH 55/1518 nvdimm: virtio_pmem: stop allocating child flush bio
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Li Chen <[email protected]>
[ Upstream commit 40f356e610df95728074b1fc2e2ccb54ca1b5659 ]
pmem_submit_bio() passes the parent bio to nvdimm_flush() for REQ_FUA. For virtio-pmem this makes async_pmem_flush() allocate and submit a child PREFLUSH bio chained to the parent.
That child allocation is in the block submit path. Making it blocking with GFP_NOIO can consume the same global bio mempool that submit_bio() uses, while making it GFP_ATOMIC can fail under pressure. A forced failure of the child allocation produced:
virtio_pmem: forcing child bio allocation failure for test Buffer I/O error on dev pmem0, logical block 0, lost sync page write EXT4-fs (pmem0): I/O error while writing superblock EXT4-fs (pmem0): mount failed
Avoid the child bio without turning REQ_FUA into a synchronous submit-path wait. Let provider flush callbacks return NVDIMM_FLUSH_ASYNC after taking ownership of parent bio completion. pmem_submit_bio() returns in that case, and virtio-pmem queues an ordered WQ_MEM_RECLAIM work item that runs the existing host flush path and completes the parent bio.
This keeps the asynchronous completion model of the child-bio path while removing the child bio allocation from the submit path.
Message-ID: <[email protected]>
Stable-dep-of: e57140944b5a ("nvdimm: virtio_pmem: refcount requests for token lifetime")
--- drivers/nvdimm/nd_virtio.c | 54 ++++++++++++++++++++++++++++++------------- drivers/nvdimm/pmem.c | 5 +++ drivers/nvdimm/region_devs.c | 2 + drivers/nvdimm/virtio_pmem.c | 17 ++++++++++++- drivers/nvdimm/virtio_pmem.h | 4 +++ include/linux/libnvdimm.h | 9 +++++++ 6 files changed, 73 insertions(+), 18 deletions(-)
drivers/nvdimm/nd_virtio.c +38 -16
@@ -9,6 +9,12 @@#include "virtio_pmem.h" #include "nd.h" +struct virtio_pmem_flush_work { +struct work_struct work; +struct nd_region *nd_region; +struct bio *bio; +}; +/* The interrupt handler */ void virtio_pmem_host_ack (struct virtqueue *vq) {
@@ -107,30 +113,46 @@ static int virtio_pmem_flush(struct nd_rreturn err; }; +static void virtio_pmem_flush_work (struct work_struct *work) +{ +struct virtio_pmem_flush_work *flush; +int err; + + flush = container_of(work, struct virtio_pmem_flush_work, work); + err =virtio_pmem_flush (flush->nd_region); +if (err >0 ) + err = -EIO ; +if (err) + flush->bio->bi_status =errno_to_blk_status (err); +bio_endio (flush->bio); +kfree (flush); +} +/* The asynchronous flush callback function */ int async_pmem_flush (struct nd_region *nd_region,struct bio *bio) { -/* -* Create child bio for asynchronous flush and chain with -* parent bio. Otherwise directly call nd_region flush. -*/ -if (bio && bio->bi_iter.bi_sector !=-1 ) { -struct bio *child =bio_alloc (bio->bi_bdev,0 , -REQ_OP_WRITE |REQ_PREFLUSH , -GFP_ATOMIC ); +struct virtio_device *vdev = nd_region->provider_data; +struct virtio_pmem *vpmem = vdev->priv; +struct virtio_pmem_flush_work *flush; +int err; -if (!child) +if (bio && bio->bi_iter.bi_sector !=-1 ) { + flush =kmalloc_obj (*flush,GFP_NOIO ); +if (!flush)return -ENOMEM ; -bio_clone_blkg_association (child, bio); - child->bi_iter.bi_sector =-1 ; -bio_chain (child, bio); -submit_bio (child); -return 0 ; + +INIT_WORK (&flush->work, virtio_pmem_flush_work); + flush->nd_region = nd_region; + flush->bio = bio; +queue_work (vpmem->flush_wq, &flush->work); +return NVDIMM_FLUSH_ASYNC ; } -if (virtio_pmem_flush (nd_region)) + + err =virtio_pmem_flush (nd_region); +if (err >0 )return -EIO ; -return 0 ; +return err; };EXPORT_SYMBOL_GPL (async_pmem_flush);MODULE_DESCRIPTION ("Virtio Persistent Memory Driver" );
drivers/nvdimm/pmem.c +4 -1
@@ -235,8 +235,11 @@ static void pmem_submit_bio(struct bio *if (do_acct)bio_end_io_acct (bio, start); -if ((bio->bi_opf &REQ_FUA ) && !bio->bi_status) +if ((bio->bi_opf &REQ_FUA ) && !bio->bi_status) { ret =nvdimm_flush (nd_region, bio); +if (ret ==NVDIMM_FLUSH_ASYNC ) +return ; + }if (ret) bio->bi_status =errno_to_blk_status (ret);
drivers/nvdimm/region_devs.c +2 -0
@@ -1095,6 +1095,8 @@ int nvdimm_flush(struct nd_region *nd_re rc =generic_nvdimm_flush (nd_region); else { rc = nd_region->flush (nd_region, bio); +if (rc >0 ) +return rc;if (rc && rc != -ENOMEM ) rc = -EIO ; }
drivers/nvdimm/virtio_pmem.c +16 -1
@@ -67,10 +67,17 @@ static int virtio_pmem_probe(struct virtmutex_init (&vpmem->flush_lock); vpmem->vdev = vdev; vdev->priv = vpmem; + vpmem->flush_wq =alloc_ordered_workqueue ("virtio-pmem-flush" , +WQ_MEM_RECLAIM ); +if (!vpmem->flush_wq) { + err = -ENOMEM ; + goto out_err; + } + err =init_vq (vpmem);if (err) {dev_err (&vdev->dev,"failed to initialize virtio pmem vq's\n" ); - goto out_err; + goto out_wq; }if (virtio_has_feature (vdev,VIRTIO_PMEM_F_SHMEM_REGION )) {
@@ -131,6 +138,8 @@ out_nd:nvdimm_bus_unregister (vpmem->nvdimm_bus); out_vq: vdev->config->del_vqs (vdev); +out_wq: +destroy_workqueue (vpmem->flush_wq); out_err:return err; }
@@ -138,14 +147,20 @@ out_err:static void virtio_pmem_remove (struct virtio_device *vdev) {struct nvdimm_bus *nvdimm_bus =dev_get_drvdata (&vdev->dev); +struct virtio_pmem *vpmem = vdev->priv;nvdimm_bus_unregister (nvdimm_bus); +drain_workqueue (vpmem->flush_wq); vdev->config->del_vqs (vdev);virtio_reset_device (vdev); +destroy_workqueue (vpmem->flush_wq); }static int virtio_pmem_freeze (struct virtio_device *vdev) { +struct virtio_pmem *vpmem = vdev->priv; + +drain_workqueue (vpmem->flush_wq); vdev->config->del_vqs (vdev);virtio_reset_device (vdev);
drivers/nvdimm/virtio_pmem.h +4 -0
@@ -15,6 +15,7 @@#include <linux/libnvdimm.h> #include <linux/mutex.h> #include <linux/spinlock.h> +#include <linux/workqueue.h> struct virtio_pmem_request {struct virtio_pmem_req req;
@@ -39,6 +40,9 @@ struct virtio_pmem {/* Serialize flush requests to the device. */ struct mutex flush_lock; +/* Complete asynchronous FUA flushes outside the submit path. */ +struct workqueue_struct *flush_wq; +/* nvdimm bus registers virtio pmem device */ struct nvdimm_bus *nvdimm_bus;struct nvdimm_bus_descriptor nd_desc;
include/linux/libnvdimm.h +9 -0
@@ -126,6 +126,15 @@ struct nd_mapping_desc {struct bio ;struct resource ;struct nd_region ; + +/* +* Provider flush callback return values: +* 0: flush completed synchronously +* <0: flush failed +* >0: flush completion was queued and @bio will be completed later +*/ +#define NVDIMM_FLUSH_ASYNC 1 +struct nd_region_desc {struct resource *res;struct nd_mapping_desc *mapping;
Greg Kroah-Hartman
maintainerPATCH 56/1518 io_uring: add wrapper type for io_req_tw_func_t arg
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Caleb Sander Mateos <[email protected]>
[ Upstream commit c33e779aba6804778c1440192a8033a145ba588d ]
In preparation for uring_cmd implementations to implement functions with the io_req_tw_func_t signature, introduce a wrapper struct io_tw_req to hide the struct io_kiocb * argument. The intention is for only the io_uring core to access the inner struct io_kiocb *. uring_cmd implementations should instead call a helper from io_uring/cmd.h to convert struct io_tw_req to struct io_uring_cmd *.
Stable-dep-of: 14572de82e50 ("io_uring/waitid: honor task_work cancellation")
--- include/linux/io_uring_types.h | 6 +++++- io_uring/futex.c | 16 +++++++++------- io_uring/io_uring.c | 21 ++++++++++++--------- io_uring/io_uring.h | 4 ++-- io_uring/msg_ring.c | 3 ++- io_uring/notif.c | 5 +++-- io_uring/poll.c | 11 ++++++----- io_uring/poll.h | 2 +- io_uring/rw.c | 5 +++-- io_uring/rw.h | 2 +- io_uring/timeout.c | 18 +++++++++++------- io_uring/uring_cmd.c | 3 ++- io_uring/waitid.c | 7 ++++--- 13 files changed, 61 insertions(+), 42 deletions(-)
include/linux/io_uring_types.h +5 -1
@@ -626,7 +626,11 @@ enum { REQ_F_SQE_COPIED = IO_REQ_FLAG(REQ_F_SQE_COPIED_BIT), }; -typedef void (*io_req_tw_func_t )(struct io_kiocb *req,io_tw_token_t tw); +struct io_tw_req { +struct io_kiocb *req; +}; + +typedef void (*io_req_tw_func_t )(struct io_tw_req tw_req,io_tw_token_t tw);struct io_task_work {struct llist_node node;
io_uring/futex.c +9 -7
@@ -41,24 +41,26 @@ void io_futex_cache_free(struct io_ring_io_alloc_cache_free (&ctx->futex_cache, kfree); } -static void __io_futex_complete (struct io_kiocb *req,io_tw_token_t tw) +static void __io_futex_complete (struct io_tw_req tw_req,io_tw_token_t tw) { -hlist_del_init (&req->hash_node); -io_req_task_complete (req, tw); +hlist_del_init (&tw_req.req->hash_node); +io_req_task_complete (tw_req, tw); } -static void io_futex_complete (struct io_kiocb *req,io_tw_token_t tw) +static void io_futex_complete (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *req = tw_req.req;struct io_ring_ctx *ctx = req->ctx;io_tw_lock (ctx, tw);io_cache_free (&ctx->futex_cache, req->async_data);io_req_async_data_clear (req,0 ); -__io_futex_complete (req, tw); +__io_futex_complete (tw_req, tw); } -static void io_futexv_complete (struct io_kiocb *req,io_tw_token_t tw) +static void io_futexv_complete (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *req = tw_req.req; struct io_futex *iof = io_kiocb_to_cmd(req, struct io_futex);struct futex_vector *futexv = req->async_data;
@@ -73,7 +75,7 @@ static void io_futexv_complete(struct io }io_req_async_data_free (req); -__io_futex_complete (req, tw); +__io_futex_complete (tw_req, tw); }static bool io_futexv_claim (struct io_futex *iof)
io_uring/io_uring.c +12 -9
@@ -294,7 +294,7 @@ static __cold void io_fallback_req_func(mutex_lock (&ctx->uring_lock); ts.cancel =io_should_terminate_tw (ctx);llist_for_each_entry_safe (req, tmp, node, io_task_work.node) - req->io_task_work.func (req, ts); + req->io_task_work.func ((struct io_tw_req ){req}, ts);io_submit_flush_completions (ctx);mutex_unlock (&ctx->uring_lock);percpu_ref_put (&ctx->refs);
@@ -542,9 +542,9 @@ static void io_queue_iowq(struct io_kiocio_wq_enqueue (tctx->io_wq, &req->work); } -static void io_req_queue_iowq_tw (struct io_kiocb *req,io_tw_token_t tw) +static void io_req_queue_iowq_tw (struct io_tw_req tw_req,io_tw_token_t tw) { -io_queue_iowq (req); +io_queue_iowq (tw_req.req); }void io_req_queue_iowq (struct io_kiocb *req)
@@ -1171,7 +1171,7 @@ struct llist_node *io_handle_tw_list(str }INDIRECT_CALL_2 (req->io_task_work.func, io_poll_task_func, io_req_rw_complete, - req, ts); + (struct io_tw_req ){req}, ts); node = next; (*count)++;if (unlikely (need_resched ())) {
@@ -1422,7 +1422,7 @@ static int __io_run_local_work_loop(stru io_task_work.node);INDIRECT_CALL_2 (req->io_task_work.func, io_poll_task_func, io_req_rw_complete, - req, tw); + (struct io_tw_req ){req}, tw); *node = next;if (++ret >= events)break ;
@@ -1492,14 +1492,17 @@ static int io_run_local_work(struct io_rreturn ret; } -static void io_req_task_cancel (struct io_kiocb *req,io_tw_token_t tw) +static void io_req_task_cancel (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *req = tw_req.req; +io_tw_lock (req->ctx, tw);io_req_defer_failed (req, req->cqe.res); } -void io_req_task_submit (struct io_kiocb *req,io_tw_token_t tw) +void io_req_task_submit (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *req = tw_req.req;struct io_ring_ctx *ctx = req->ctx;io_tw_lock (ctx, tw);
@@ -1735,9 +1738,9 @@ static int io_iopoll_check(struct io_rinreturn 0 ; } -void io_req_task_complete (struct io_kiocb *req,io_tw_token_t tw) +void io_req_task_complete (struct io_tw_req tw_req,io_tw_token_t tw) { -io_req_complete_defer (req); +io_req_complete_defer (tw_req.req); }/*
io_uring/io_uring.h +2 -2
@@ -160,9 +160,9 @@ struct file *io_file_get_fixed(struct iovoid __io_req_task_work_add (struct io_kiocb *req,unsigned flags);void io_req_task_work_add_remote (struct io_kiocb *req,unsigned flags);void io_req_task_queue (struct io_kiocb *req); -void io_req_task_complete (struct io_kiocb *req,io_tw_token_t tw); +void io_req_task_complete (struct io_tw_req tw_req,io_tw_token_t tw);void io_req_task_queue_fail (struct io_kiocb *req,int ret); -void io_req_task_submit (struct io_kiocb *req,io_tw_token_t tw); +void io_req_task_submit (struct io_tw_req tw_req,io_tw_token_t tw);struct llist_node *io_handle_tw_list (struct llist_node *node,unsigned int *count,unsigned int max_entries);struct llist_node *tctx_task_work_run (struct io_uring_task *tctx,unsigned int max_entries,unsigned int *count);void tctx_task_work (struct callback_head *cb);
io_uring/msg_ring.c +2 -1
@@ -70,8 +70,9 @@ static inline bool io_msg_need_remote(streturn target_ctx->task_complete; } -static void io_msg_tw_complete (struct io_kiocb *req,io_tw_token_t tw) +static void io_msg_tw_complete (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *req = tw_req.req;struct io_ring_ctx *ctx = req->ctx;io_add_aux_cqe (ctx, req->cqe.user_data, req->cqe.res, req->cqe.flags);
io_uring/notif.c +3 -2
@@ -11,8 +11,9 @@static const struct ubuf_info_ops io_ubuf_ops; -static void io_notif_tw_complete (struct io_kiocb *notif,io_tw_token_t tw) +static void io_notif_tw_complete (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *notif = tw_req.req;struct io_notif_data *nd =io_notif_to_data (notif);struct io_ring_ctx *ctx = notif->ctx;
@@ -34,7 +35,7 @@ static void io_notif_tw_complete(struct } nd = nd->next; -io_req_task_complete (notif, tw); +io_req_task_complete ((struct io_tw_req ){notif}, tw); }while (nd); }
io_uring/poll.c +6 -5
@@ -316,8 +316,9 @@ static int io_poll_check_events(struct ireturn IOU_POLL_NO_ACTION ; } -void io_poll_task_func (struct io_kiocb *req,io_tw_token_t tw) +void io_poll_task_func (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *req = tw_req.req;int ret; ret =io_poll_check_events (req, tw);
@@ -338,7 +339,7 @@ void io_poll_task_func(struct io_kiocb * poll = io_kiocb_to_cmd(req, struct io_poll); req->cqe.res =mangle_poll (req->cqe.res & poll->events); }else if (ret ==IOU_POLL_REISSUE ) { -io_req_task_submit (req, tw); +io_req_task_submit (tw_req, tw);return ; }else if (ret !=IOU_POLL_REMOVE_POLL_USE_RES ) { req->cqe.res = ret;
@@ -346,14 +347,14 @@ void io_poll_task_func(struct io_kiocb * }io_req_set_res (req, req->cqe.res,0 ); -io_req_task_complete (req, tw); +io_req_task_complete (tw_req, tw); }else {io_tw_lock (req->ctx, tw);if (ret ==IOU_POLL_REMOVE_POLL_USE_RES ) -io_req_task_complete (req, tw); +io_req_task_complete (tw_req, tw);else if (ret ==IOU_POLL_DONE || ret ==IOU_POLL_REISSUE ) -io_req_task_submit (req, tw); +io_req_task_submit (tw_req, tw);else io_req_defer_failed (req, ret); }
io_uring/poll.h +1 -1
@@ -46,4 +46,4 @@ int io_arm_poll_handler(struct io_kiocbbool io_poll_remove_all (struct io_ring_ctx *ctx,struct io_uring_task *tctx,bool cancel_all); -void io_poll_task_func (struct io_kiocb *req,io_tw_token_t tw); +void io_poll_task_func (struct io_tw_req tw_req,io_tw_token_t tw);
io_uring/rw.c +3 -2
@@ -574,8 +574,9 @@ static inline int io_fixup_rw_res(structreturn res; } -void io_req_rw_complete (struct io_kiocb *req,io_tw_token_t tw) +void io_req_rw_complete (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *req = tw_req.req; struct io_rw *rw = io_kiocb_to_cmd(req, struct io_rw);struct kiocb *kiocb = &rw->kiocb;
@@ -591,7 +592,7 @@ void io_req_rw_complete(struct io_kiocb req->cqe.flags |=io_put_kbuf (req, req->cqe.res,NULL );io_req_rw_cleanup (req,0 ); -io_req_task_complete (req, tw); +io_req_task_complete (tw_req, tw); }static void io_complete_rw (struct kiocb *kiocb,long res)
io_uring/rw.h +1 -1
@@ -46,7 +46,7 @@ int io_read_fixed(struct io_kiocb *req,int io_write_fixed (struct io_kiocb *req,unsigned int issue_flags);void io_readv_writev_cleanup (struct io_kiocb *req);void io_rw_fail (struct io_kiocb *req); -void io_req_rw_complete (struct io_kiocb *req,io_tw_token_t tw); +void io_req_rw_complete (struct io_tw_req tw_req,io_tw_token_t tw);int io_read_mshot_prep (struct io_kiocb *req,const struct io_uring_sqe *sqe);int io_read_mshot (struct io_kiocb *req,unsigned int issue_flags);void io_rw_cache_free (const void *entry);
io_uring/timeout.c +11 -7
@@ -68,8 +68,9 @@ static inline bool io_timeout_finish(strstatic enum hrtimer_restart io_timeout_fn (struct hrtimer *timer); -static void io_timeout_complete (struct io_kiocb *req,io_tw_token_t tw) +static void io_timeout_complete (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *req = tw_req.req; struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout);struct io_timeout_data *data = req->async_data;struct io_ring_ctx *ctx = req->ctx;
@@ -85,7 +86,7 @@ static void io_timeout_complete(struct i } } -io_req_task_complete (req, tw); +io_req_task_complete (tw_req, tw); }static __cold bool io_flush_killed_timeouts (struct list_head *list,int err)
@@ -157,8 +158,10 @@ __cold void io_flush_timeouts(struct io_io_flush_killed_timeouts (&list,0 ); } -static void io_req_tw_fail_links (struct io_kiocb *link,io_tw_token_t tw) +static void io_req_tw_fail_links (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *link = tw_req.req; +io_tw_lock (link->ctx, tw);while (link) {struct io_kiocb *nxt = link->link;
@@ -168,7 +171,7 @@ static void io_req_tw_fail_links(struct res = link->cqe.res; link->link =NULL ;io_req_set_res (link, res,0 ); -io_req_task_complete (link, tw); +io_req_task_complete ((struct io_tw_req ){link}, tw); link = nxt; } }
@@ -317,8 +320,9 @@ int io_timeout_cancel(struct io_ring_ctxreturn 0 ; } -static void io_req_task_link_timeout (struct io_kiocb *req,io_tw_token_t tw) +static void io_req_task_link_timeout (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *req = tw_req.req; struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout);struct io_kiocb *prev = timeout->prev;int ret;
@@ -335,11 +339,11 @@ static void io_req_task_link_timeout(str ret = -ECANCELED ; }io_req_set_res (req, ret ?: -ETIME ,0 ); -io_req_task_complete (req, tw); +io_req_task_complete (tw_req, tw);io_put_req (prev); }else {io_req_set_res (req, -ETIME ,0 ); -io_req_task_complete (req, tw); +io_req_task_complete (tw_req, tw); } }
io_uring/uring_cmd.c +2 -1
@@ -115,8 +115,9 @@ void io_uring_cmd_mark_cancelable(struct }EXPORT_SYMBOL_GPL (io_uring_cmd_mark_cancelable); -static void io_uring_cmd_work (struct io_kiocb *req,io_tw_token_t tw) +static void io_uring_cmd_work (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *req = tw_req.req; struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);unsigned int flags =IO_URING_F_COMPLETE_DEFER ;
io_uring/waitid.c +4 -3
@@ -16,7 +16,7 @@#include "waitid.h" #include "../kernel/exit.h" -static void io_waitid_cb (struct io_kiocb *req,io_tw_token_t tw); +static void io_waitid_cb (struct io_tw_req tw_req,io_tw_token_t tw);#define IO_WAITID_CANCEL_FLAG BIT(31)#define IO_WAITID_REF_MASK GENMASK(30, 0)
@@ -194,8 +194,9 @@ static inline bool io_waitid_drop_issue_return true; } -static void io_waitid_cb (struct io_kiocb *req,io_tw_token_t tw) +static void io_waitid_cb (struct io_tw_req tw_req,io_tw_token_t tw) { +struct io_kiocb *req = tw_req.req;struct io_waitid_async *iwa = req->async_data;struct io_ring_ctx *ctx = req->ctx;int ret;
@@ -229,7 +230,7 @@ static void io_waitid_cb(struct io_kiocb }io_waitid_complete (req, ret); -io_req_task_complete (req, tw); +io_req_task_complete (tw_req, tw); } static int io_waitid_wait(struct wait_queue_entry *wait, unsigned mode,
Greg Kroah-Hartman
maintainerPATCH 57/1518 nvdimm: virtio_pmem: always wake -ENOSPC waiters
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Li Chen <[email protected]>
[ Upstream commit 811808761e19fdea1c25b7c76734b8945f758f27 ]
virtio_pmem_host_ack() reclaims virtqueue descriptors with virtqueue_get_buf(). The -ENOSPC waiter wakeup is tied to completing the returned token. If token completion is skipped for any reason, reclaimed descriptors may not wake a waiter and the submitter may sleep forever waiting for a free slot. Always wake one -ENOSPC waiter for each virtqueue completion before touching the returned token.
Message-ID: <[email protected]>
Stable-dep-of: e57140944b5a ("nvdimm: virtio_pmem: refcount requests for token lifetime")
--- drivers/nvdimm/nd_virtio.c | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-)
drivers/nvdimm/nd_virtio.c +16 -9
@@ -15,26 +15,33 @@ struct virtio_pmem_flush_work {struct bio *bio; }; +static void virtio_pmem_wake_one_waiter (struct virtio_pmem *vpmem) +{ +struct virtio_pmem_request *req_buf; + +if (list_empty (&vpmem->req_list)) +return ; + + req_buf =list_first_entry (&vpmem->req_list, + struct virtio_pmem_request, list); + req_buf->wq_buf_avail = true; +wake_up (&req_buf->wq_buf); +list_del (&req_buf->list); +} +/* The interrupt handler */ void virtio_pmem_host_ack (struct virtqueue *vq) {struct virtio_pmem *vpmem = vq->vdev->priv; -struct virtio_pmem_request *req_data, *req_buf; +struct virtio_pmem_request *req_data;unsigned long flags;unsigned int len;spin_lock_irqsave (&vpmem->pmem_lock, flags);while ((req_data =virtqueue_get_buf (vq, &len)) !=NULL ) { +virtio_pmem_wake_one_waiter (vpmem); req_data->done = true;wake_up (&req_data->host_acked); - -if (!list_empty (&vpmem->req_list)) { - req_buf =list_first_entry (&vpmem->req_list, - struct virtio_pmem_request, list); - req_buf->wq_buf_avail = true; -wake_up (&req_buf->wq_buf); -list_del (&req_buf->list); - } }spin_unlock_irqrestore (&vpmem->pmem_lock, flags); }
Greg Kroah-Hartman
maintainerPATCH 58/1518 io_uring/waitid: honor task_work cancellation
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hui Su <[email protected]>
[ Upstream commit 14572de82e5022899e5856008bc9cac97004a88c ]
io_waitid_cb() may run through the fallback task_work path when task_work_add() can no longer queue work to the originating task. The fallback runs from a kworker and io_uring marks such task work as canceled through tw.cancel.
io_waitid_cb() currently ignores tw.cancel and calls __do_wait(). waitid is task-context dependent: __do_wait() performs child lookup relative to current, and the retry path also uses current->signal->wait_chldexit. If the callback runs from the fallback kworker, current is therefore not the task that submitted the request.
Honor tw.cancel before entering __do_wait(). Complete the request with -ECANCELED and skip the siginfo copy, since canceled task work may run without the submitting task's userspace execution context.
Keep the existing siginfo handling for normal waitid completion and explicit cancellation.
--- io_uring/waitid.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-)
io_uring/waitid.c +12 -4
@@ -125,7 +125,7 @@ static void io_waitid_remove_wq(struct i } } -static void io_waitid_complete (struct io_kiocb *req,int ret) +static void io_waitid_complete (struct io_kiocb *req,int ret,bool copy_si) { struct io_waitid *iw = io_kiocb_to_cmd(req, struct io_waitid);
@@ -137,7 +137,10 @@ static void io_waitid_complete(struct iohlist_del_init (&req->hash_node);io_waitid_remove_wq (req); - ret =io_waitid_finish (req, ret); +if (copy_si) + ret =io_waitid_finish (req, ret); +else +io_waitid_free (req);if (ret <0 )req_set_fail (req);io_req_set_res (req, ret,0 );
@@ -159,7 +162,7 @@ static bool __io_waitid_cancel(struct ioif (atomic_fetch_inc (&iw->refs) &IO_WAITID_REF_MASK )return false; -io_waitid_complete (req, -ECANCELED ); +io_waitid_complete (req, -ECANCELED , true);io_req_queue_tw_complete (req, -ECANCELED );return true; }
@@ -202,6 +205,11 @@ static void io_waitid_cb(struct io_tw_reint ret;io_tw_lock (ctx, tw); +if (unlikely (tw.cancel)) { +io_waitid_complete (req, -ECANCELED , false); +io_req_task_complete (tw_req, tw); +return ; + } ret =__do_wait (&iwa->wo);
@@ -229,7 +237,7 @@ static void io_waitid_cb(struct io_tw_re } } -io_waitid_complete (req, ret); +io_waitid_complete (req, ret, true);io_req_task_complete (tw_req, tw); }
Greg Kroah-Hartman
maintainerPATCH 59/1518 nvdimm: virtio_pmem: use READ_ONCE()/WRITE_ONCE() for wait flags
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Li Chen <[email protected]>
[ Upstream commit 08e72a5ba1ab9dc0adf993ff0f4d606a1e3445a8 ]
Use READ_ONCE()/WRITE_ONCE() for the wait_event() flags (done and wq_buf_avail). They are observed by waiters without pmem_lock, so make the accesses explicit single loads/stores and avoid compiler reordering/caching across the wait/wake paths.
Message-ID: <[email protected]>
Stable-dep-of: e57140944b5a ("nvdimm: virtio_pmem: refcount requests for token lifetime")
--- drivers/nvdimm/nd_virtio.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/nvdimm/nd_virtio.c +7 -7
@@ -24,9 +24,9 @@ static void virtio_pmem_wake_one_waiter( req_buf =list_first_entry (&vpmem->req_list, struct virtio_pmem_request, list); - req_buf->wq_buf_avail = true; +list_del_init (&req_buf->list); +WRITE_ONCE (req_buf->wq_buf_avail, true);wake_up (&req_buf->wq_buf); -list_del (&req_buf->list); }/* The interrupt handler */
@@ -40,7 +40,7 @@ void virtio_pmem_host_ack(struct virtquespin_lock_irqsave (&vpmem->pmem_lock, flags);while ((req_data =virtqueue_get_buf (vq, &len)) !=NULL ) {virtio_pmem_wake_one_waiter (vpmem); - req_data->done = true; +WRITE_ONCE (req_data->done, true);wake_up (&req_data->host_acked); }spin_unlock_irqrestore (&vpmem->pmem_lock, flags);
@@ -72,7 +72,7 @@ static int virtio_pmem_flush(struct nd_rif (!req_data)return -ENOMEM ; - req_data->done = false; +WRITE_ONCE (req_data->done, false);init_waitqueue_head (&req_data->host_acked);init_waitqueue_head (&req_data->wq_buf);INIT_LIST_HEAD (&req_data->list);
@@ -93,12 +93,12 @@ static int virtio_pmem_flush(struct nd_r GFP_ATOMIC)) == -ENOSPC) {dev_info (&vdev->dev,"failed to send command to virtio pmem device, no free slots in the virtqueue\n" ); - req_data->wq_buf_avail = false; +WRITE_ONCE (req_data->wq_buf_avail, false);list_add_tail (&req_data->list, &vpmem->req_list);spin_unlock_irqrestore (&vpmem->pmem_lock, flags);/* A host response results in "host_ack" getting called */ -wait_event (req_data->wq_buf, req_data->wq_buf_avail); +wait_event (req_data->wq_buf,READ_ONCE (req_data->wq_buf_avail));spin_lock_irqsave (&vpmem->pmem_lock, flags); } err1 =virtqueue_kick (vpmem->req_vq);
@@ -112,7 +112,7 @@ static int virtio_pmem_flush(struct nd_r err = -EIO ; }else {/* A host response results in "host_ack" getting called */ -wait_event (req_data->host_acked, req_data->done); +wait_event (req_data->host_acked,READ_ONCE (req_data->done)); err =le32_to_cpu (req_data->resp.ret); }
Greg Kroah-Hartman
maintainerPATCH 60/1518 io_uring/waitid: avoid siginfo copy during ring teardown
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hui Su <[email protected]>
[ Upstream commit 2cf20c4e0f72d523b8673053e7120d092ff1f074 ]
During ring teardown, io_ring_exit_work() cancels outstanding requests from a kworker with a NULL tctx. The waitid cancellation path eventually reaches io_waitid_finish(), which copies the stored siginfo to the userspace pointer supplied with the request.
Ring-wide teardown does not run in the task context that submitted the request, so it must not access that task's userspace pointer. Depending on the address and mm state, the copy may fail with -EFAULT, but the uaccess itself is inappropriate from the teardown kworker.
Use a no-copy cancellation callback when io_waitid_remove_all() is called without an owning task context. Complete the request with -ECANCELED while releasing the waitid state without touching siginfo.
Keep the existing siginfo handling for explicit async cancellation and task-scoped cancellation.
--- io_uring/waitid.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-)
io_uring/waitid.c +15 -4
@@ -146,7 +146,7 @@ static void io_waitid_complete(struct ioio_req_set_res (req, ret,0 ); } -static bool __io_waitid_cancel (struct io_kiocb *req) +static bool __io_waitid_cancel (struct io_kiocb *req,bool copy_si) { struct io_waitid *iw = io_kiocb_to_cmd(req, struct io_waitid);
@@ -162,21 +162,32 @@ static bool __io_waitid_cancel(struct ioif (atomic_fetch_inc (&iw->refs) &IO_WAITID_REF_MASK )return false; -io_waitid_complete (req, -ECANCELED , true); +io_waitid_complete (req, -ECANCELED , copy_si);io_req_queue_tw_complete (req, -ECANCELED );return true; } +static bool io_waitid_cancel_cb (struct io_kiocb *req) +{ +return __io_waitid_cancel (req, true); +} + +static bool io_waitid_cancel_nocopy_cb (struct io_kiocb *req) +{ +return __io_waitid_cancel (req, false); +} +int io_waitid_cancel (struct io_ring_ctx *ctx,struct io_cancel_data *cd,unsigned int issue_flags) { -return io_cancel_remove (ctx, cd, issue_flags, &ctx->waitid_list, __io_waitid_cancel); +return io_cancel_remove (ctx, cd, issue_flags, &ctx->waitid_list, io_waitid_cancel_cb); }bool io_waitid_remove_all (struct io_ring_ctx *ctx,struct io_uring_task *tctx,bool cancel_all) { -return io_cancel_remove_all (ctx, tctx, &ctx->waitid_list, cancel_all, __io_waitid_cancel); +return io_cancel_remove_all (ctx, tctx, &ctx->waitid_list, cancel_all, + tctx ? io_waitid_cancel_cb : io_waitid_cancel_nocopy_cb); }static inline bool io_waitid_drop_issue_ref (struct io_kiocb *req)
Greg Kroah-Hartman
maintainerPATCH 61/1518 nvdimm: virtio_pmem: refcount requests for token lifetime
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Li Chen <[email protected]>
[ Upstream commit e57140944b5a47a7fd5a142faab29a02af040bc8 ]
KASAN reports slab-use-after-free in __wake_up_common():
BUG: KASAN: slab-use-after-free in __wake_up_common+0x114/0x160 Read of size 8 at addr ffff88810fdcb710 by task swapper/0/0 CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.19.0-next-20260220-00006-g1eae5f204ec3 #4 PREEMPT(full) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Arch Linux 1.17.0-2-2 04/01/2014 Call Trace: <IRQ> dump_stack_lvl+0x6d/0xb0 print_report+0x170/0x4e2 ? __pfx__raw_spin_lock_irqsave+0x10/0x10 ? __virt_addr_valid+0x1dc/0x380 kasan_report+0xbc/0xf0 ? __wake_up_common+0x114/0x160 ? __wake_up_common+0x114/0x160 __wake_up_common+0x114/0x160 ? __pfx__raw_spin_lock_irqsave+0x10/0x10 __wake_up+0x36/0x60 virtio_pmem_host_ack+0x11d/0x3b0 ? sched_balance_domains+0x29f/0xb00 ? __pfx_virtio_pmem_host_ack+0x10/0x10 ? _raw_spin_lock_irqsave+0x98/0x100 ? __pfx__raw_spin_lock_irqsave+0x10/0x10 vring_interrupt+0x1c9/0x5e0 ? __pfx_vp_interrupt+0x10/0x10 vp_vring_interrupt+0x87/0x100 ? __pfx_vp_interrupt+0x10/0x10 __handle_irq_event_percpu+0x17f/0x550 ? __pfx__raw_spin_lock+0x10/0x10 handle_irq_event+0xab/0x1c0 handle_fasteoi_irq+0x276/0xae0 __common_interrupt+0x65/0x130 common_interrupt+0x78/0xa0 </IRQ>
virtio_pmem_host_ack() wakes a request that has already been freed by the submitter.
This happens when the request token is still reachable via the virtqueue, but virtio_pmem_flush() returns and frees it.
Fix the token lifetime by refcounting struct virtio_pmem_request. virtio_pmem_flush() holds a submitter reference, and the virtqueue holds an extra reference once the request is queued. The completion path drops the virtqueue reference, and the submitter drops its reference before returning.
Message-ID: <[email protected]>
--- drivers/nvdimm/nd_virtio.c | 32 ++++++++++++++++++++++++++++---- drivers/nvdimm/virtio_pmem.h | 2 ++ 2 files changed, 30 insertions(+), 4 deletions(-)
drivers/nvdimm/nd_virtio.c +28 -4
@@ -15,6 +15,14 @@ struct virtio_pmem_flush_work {struct bio *bio; }; +static void virtio_pmem_req_release (struct kref *kref) +{ +struct virtio_pmem_request *req; + + req = container_of(kref, struct virtio_pmem_request, kref); +kfree (req); +} +static void virtio_pmem_wake_one_waiter (struct virtio_pmem *vpmem) {struct virtio_pmem_request *req_buf;
@@ -42,6 +50,7 @@ void virtio_pmem_host_ack(struct virtquevirtio_pmem_wake_one_waiter (vpmem);WRITE_ONCE (req_data->done, true);wake_up (&req_data->host_acked); +kref_put (&req_data->kref, virtio_pmem_req_release); }spin_unlock_irqrestore (&vpmem->pmem_lock, flags); }
@@ -72,6 +81,7 @@ static int virtio_pmem_flush(struct nd_rif (!req_data)return -ENOMEM ; +kref_init (&req_data->kref);WRITE_ONCE (req_data->done, false);init_waitqueue_head (&req_data->host_acked);init_waitqueue_head (&req_data->wq_buf);
@@ -89,10 +99,23 @@ static int virtio_pmem_flush(struct nd_r* to req_list and wait for host_ack to wake us up when free * slots are available. */ -while ((err =virtqueue_add_sgs (vpmem->req_vq, sgs,1 ,1 , req_data, -GFP_ATOMIC )) == -ENOSPC ) { +for (;;) { + err =virtqueue_add_sgs (vpmem->req_vq, sgs,1 ,1 , req_data, +GFP_ATOMIC ); +if (!err) { +/* +* Take the virtqueue reference while @pmem_lock is +* held so completion cannot run concurrently. +*/ +kref_get (&req_data->kref); +break ; + } + +if (err != -ENOSPC ) +break ; -dev_info (&vdev->dev,"failed to send command to virtio pmem device, no free slots in the virtqueue\n" ); +dev_info_ratelimited (&vdev->dev, +"failed to send command to virtio pmem device, no free slots in the virtqueue\n" );WRITE_ONCE (req_data->wq_buf_avail, false);list_add_tail (&req_data->list, &vpmem->req_list);spin_unlock_irqrestore (&vpmem->pmem_lock, flags);
@@ -101,6 +124,7 @@ static int virtio_pmem_flush(struct nd_rwait_event (req_data->wq_buf,READ_ONCE (req_data->wq_buf_avail));spin_lock_irqsave (&vpmem->pmem_lock, flags); } + err1 =virtqueue_kick (vpmem->req_vq);spin_unlock_irqrestore (&vpmem->pmem_lock, flags);/*
@@ -116,7 +140,7 @@ static int virtio_pmem_flush(struct nd_r err =le32_to_cpu (req_data->resp.ret); } -kfree (req_data); +kref_put (&req_data->kref, virtio_pmem_req_release);return err; };
drivers/nvdimm/virtio_pmem.h +2 -0
@@ -12,12 +12,14 @@#include <linux/module.h> #include <uapi/linux/virtio_pmem.h> +#include <linux/kref.h> #include <linux/libnvdimm.h> #include <linux/mutex.h> #include <linux/spinlock.h> #include <linux/workqueue.h> struct virtio_pmem_request { +struct kref kref;struct virtio_pmem_req req;struct virtio_pmem_resp resp;
Greg Kroah-Hartman
maintainerPATCH 62/1518 accel/amdxdna: return early from a zero-length flush
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Taimuraz Kaitmazov <[email protected]>
[ Upstream commit dc14753664240cedf669623b27ae9922b0618b25 ]
SYNC_BO does not constrain its size, so a request for zero bytes reaches drm_clflush_virt_range(), which ends with an unconditional clflushopt(end - 1). For an empty range that is the byte before the mapping, and abo->mem.kva comes from vmap(), so the access lands in the guard page below the vmalloc area and faults:
BUG: unable to handle page fault for address: ffffd16fbbc70fff #PF: supervisor read access in kernel mode Oops: Oops: 0000 [#1] SMP NOPTI CPU: 7 UID: 1000 Comm: sync_bo_probe RIP: 0010:drm_clflush_virt_range+0x3c/0x70 Call Trace: amdxdna_drm_sync_bo_ioctl+0x124/0x430 [amdxdna] drm_ioctl+0x301/0x4c0 __x64_sys_ioctl+0x115/0x2f0 do_syscall_64+0xa6/0x3d0
Any process that can open the render node can do this. Reproduced 3 of 3 times on a Strix Point NPU (1022:17f0), by calling SYNC_BO with size 0 on an AMDXDNA_BO_SHARE object. The import arm takes the same request but flushes the whole scatterlist, so it survives it.
Nothing needs flushing for an empty range, so answer before choosing a path.
--- drivers/accel/amdxdna/amdxdna_gem.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/accel/amdxdna/amdxdna_gem.c +4 -0
@@ -949,6 +949,9 @@ int amdxdna_drm_sync_bo_ioctl(struct drm goto put_obj; } +if (!args->size) + goto unpin; +if (is_import_bo (abo))drm_clflush_sg (abo->base.sgt);else if (abo->mem.kva)
@@ -958,6 +961,7 @@ int amdxdna_drm_sync_bo_ioctl(struct drmelse drm_WARN (&xdna->ddev,1 ,"Can not get flush memory" ); +unpin:amdxdna_gem_unpin (abo); XDNA_DBG(xdna, "Sync bo %d offset 0x%llx, size 0x%llx\n",
Greg Kroah-Hartman
maintainerPATCH 63/1518 clk: qcom: Fix test_ctl_hi field for DEFAULT_EVO PLLs
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Imran Shaik <[email protected]>
[ Upstream commit 830ead322c39c99bf972425b3c35323ec56c29de ]
CLK_ALPHA_PLL_TYPE_DEFAULT_EVO type PLLs do not have the PLL_TEST_CTL_U1 register, so clk_alpha_pll_configure() does not program test_ctl_hi1_val for this PLL type.
The GCC PLL configurations for QCM2290, Shikra and SM6115 wrongly use test_ctl_hi1_val instead of test_ctl_hi_val, deviating from the hardware recommended settings. Fix them to use test_ctl_hi_val.
--- drivers/clk/qcom/gcc-qcm2290.c | 6 +++--- drivers/clk/qcom/gcc-sm6115.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/clk/qcom/gcc-qcm2290.c +3 -3
@@ -116,7 +116,7 @@ static const struct alpha_pll_config gpl .vco_mask = GENMASK(21, 20), .main_output_mask = BIT(0), .config_ctl_val = 0x4001055B, - .test_ctl_hi1_val = 0x1, + .test_ctl_hi_val = 0x1, };static struct clk_alpha_pll gpll10 = {
@@ -148,7 +148,7 @@ static const struct alpha_pll_config gpl .vco_mask = GENMASK(21, 20), .main_output_mask = BIT(0), .config_ctl_val = 0x4001055B, - .test_ctl_hi1_val = 0x1, + .test_ctl_hi_val = 0x1, };static struct clk_alpha_pll gpll11 = {
@@ -309,7 +309,7 @@ static const struct alpha_pll_config gpl .post_div_val = 0x1 << 8, .post_div_mask = GENMASK(11, 8), .config_ctl_val = 0x4001055B, - .test_ctl_hi1_val = 0x1, + .test_ctl_hi_val = 0x1, };static struct clk_alpha_pll gpll8 = {
drivers/clk/qcom/gcc-sm6115.c +3 -3
@@ -120,7 +120,7 @@ static const struct alpha_pll_config gpl .vco_mask = GENMASK(21, 20), .main_output_mask = BIT(0), .config_ctl_val = 0x4001055b, - .test_ctl_hi1_val = 0x1, + .test_ctl_hi_val = 0x1, .test_ctl_hi_mask = 0x1, };
@@ -173,7 +173,7 @@ static const struct alpha_pll_config gpl .vco_val = 0x2 << 20, .vco_mask = GENMASK(21, 20), .config_ctl_val = 0x4001055b, - .test_ctl_hi1_val = 0x1, + .test_ctl_hi_val = 0x1, .test_ctl_hi_mask = 0x1, };
@@ -367,7 +367,7 @@ static const struct alpha_pll_config gpl .post_div_val = 0x1 << 8, .post_div_mask = GENMASK(11, 8), .config_ctl_val = 0x4001055b, - .test_ctl_hi1_val = 0x1, + .test_ctl_hi_val = 0x1, .test_ctl_hi_mask = 0x1, };
Greg Kroah-Hartman
maintainerPATCH 46/1518 futex: Optimize futex hash bucket access patterns
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Peter Zijlstra <[email protected]>
[ Upstream commit a734d9fca84e1d4fa0cb442ef5f84c88f8212d32 ]
Breno reported significant c2c HITM in a futex hash heavy workload.
It turns out that the hash bucket to private hash table reverse pointer (futex_hash_bucket::priv) was to blame. Notably when the hash buckets are heavily contended, the: 'fph = bh->priv;' load in futex_hash() will typically miss and consequently become quite expensive.
Since this load in particular is quite superfluous, removing it is fairly straight forward. However, removing it does not in fact achieve anything much. The pain moves to the next user, notably: futex_hash_put().
Therefore rework the whole private hash refcounting to avoid needing this back pointer (and removing it). Instead of passing around 'struct futex_hash_bucket *hb', pass around a new structure that contains it and the related 'struct futex_private_hash *fph' pointer in tandem.
Funnily this turns out to remove more code than it adds and significantly improves futex hash performance (as measured by 'perf bench futex hash'):
SKL dual socket 112 threads:
Baseline Patched
shared (16k) 1571857 1641435 + 4.4% autosize (512) 646390 903371 +39.7% -b 256 464395 587014 +26.4% -b 512 715687 995943 +39.2% -b 1024 995085 1396328 +40.3% -b 2048 1293114 1668395 +29.0% -b 4096 2124438 2240228 + 5.5%
Zen3 dual socket 256 threads:
Baseline Patched shared (16k) 1275840 1381279 + 8.2% autosize (512) 1252745 1482179 +18.3% -b 256 856274 955455 +11.5% -b 512 1267490 1544010 +21.8% -b 1024 1424013 1625424 +14.1% -b 2048 1505181 1669342 +10.9% -b 4096 1465993 1688932 +15.2%
AMD EPYC 9D64 (Zen4, single socket) 176 threads:
Baseline Patched Delta shared (16k) 1,230,599 1,368,655 +11.2% autosize (1024) 1,285,440 1,556,946 +21.1% -b 256 1,341,471 1,520,303 +13.3% -b 512 1,438,330 1,599,319 +11.2% -b 1024 1,443,772 1,622,493 +12.4% -b 2048 1,472,108 1,643,975 +11.7% -b 4096 1,333,098 1,570,897 +17.8%
[ Stable adaptation: use mm->futex_phash in __futex_hash(), since this
branch does not contain the mm_struct futex field consolidation. Preserve the final-put use-after-free fix by saving fph->mm before futex_ref_put(), and restore the NULL guard needed by the direct private-hash put callers. futex_key_is_private() is already in futex.h; no new functions are introduced. Keep the bucket-reference conversion so 912edebe8501 applies without changes. ]
Stable-dep-of: 912edebe8501 ("futex: Provide rt_mutex_.*_schedule() equivalents for futex scheduling")
--- kernel/futex/core.c | 103 +++++++++++++++--------------------------------- kernel/futex/futex.h | 28 ++++++------- kernel/futex/pi.c | 21 +++++---- kernel/futex/requeue.c | 20 ++++----- kernel/futex/waitwake.c | 17 +++++-- 5 files changed, 80 insertions(+), 109 deletions(-)
kernel/futex/core.c +34 -69
@@ -125,7 +125,7 @@ late_initcall(fail_futex_debugfs);#endif /* CONFIG_FAIL_FUTEX */ static struct futex_hash_bucket * -__futex_hash (union futex_key *key,struct futex_private_hash *fph); +__futex_hash (union futex_key *key,struct futex_private_hash *fph,struct futex_private_hash **fph_p);#ifdef CONFIG_FUTEX_PRIVATE_HASH static bool futex_ref_get (struct futex_private_hash *fph);
@@ -141,35 +141,14 @@ static bool futex_private_hash_get(strucvoid futex_private_hash_put (struct futex_private_hash *fph) { -struct mm_struct *mm = fph->mm; - -if (futex_ref_put (fph)) -wake_up_var (mm); -} - -/** -* futex_hash_get - Get an additional reference for the local hash. -* @hb: ptr to the private local hash. -* -* Obtain an additional reference for the already obtained hash bucket. The -* caller must already own an reference. -*/ -void futex_hash_get (struct futex_hash_bucket *hb) -{ -struct futex_private_hash *fph = hb->priv; +struct mm_struct *mm;if (!fph)return ; -WARN_ON_ONCE (!futex_private_hash_get (fph)); -} -void futex_hash_put (struct futex_hash_bucket *hb) -{ -struct futex_private_hash *fph = hb->priv; - -if (!fph) -return ; -futex_private_hash_put (fph); + mm = fph->mm; +if (futex_ref_put (fph)) +wake_up_var (mm); } static struct futex_hash_bucket *
@@ -177,14 +156,6 @@ __futex_hash_private(union futex_key *ke {u32 hash; -if (!futex_key_is_private (key)) -return NULL ; - -if (!fph) - fph =rcu_dereference (key->private.mm->futex_phash); -if (!fph || !fph->hash_mask) -return NULL ; - hash =jhash2 ((void *)&key->private.address,sizeof (key->private.address) /4 , key->both.offset);
@@ -205,13 +176,12 @@ static void futex_rehash_private(structspin_lock (&hb_old->lock);plist_for_each_entry_safe (this, tmp, &hb_old->chain, list) { -plist_del (&this->list, &hb_old->chain);futex_hb_waiters_dec (hb_old);WARN_ON_ONCE (this->lock_ptr != &hb_old->lock); - hb_new =__futex_hash (&this->key, new); + hb_new =__futex_hash (&this->key, new,NULL );futex_hb_waiters_inc (hb_new);/* * The new pointer isn't published yet but an already
@@ -265,9 +235,8 @@ static void futex_pivot_hash(struct mm_s } } -struct futex_private_hash *futex_private_hash (void ) +struct futex_private_hash *futex_private_hash (struct mm_struct *mm) { -struct mm_struct *mm = current->mm;/* * Ideally we don't loop. If there is a replacement in progress * then a new private hash is already prepared and a reference can't be
@@ -293,18 +262,17 @@ again: goto again; } -struct futex_hash_bucket *futex_hash (union futex_key *key) +struct futex_bucket_ref futex_hash (union futex_key *key) { -struct futex_private_hash *fph; -struct futex_hash_bucket *hb; - again: scoped_guard(rcu) { - hb =__futex_hash (key,NULL ); - fph = hb->priv; +struct futex_private_hash *fph =NULL ; +struct futex_hash_bucket *hb; + + hb =__futex_hash (key,NULL , &fph);if (!fph ||futex_private_hash_get (fph)) -return hb; +return (struct futex_bucket_ref ){ .hb = hb, .fph = fph }; }futex_pivot_hash (key->private.mm); goto again;
@@ -312,15 +280,9 @@ again:#else /* !CONFIG_FUTEX_PRIVATE_HASH */ -static struct futex_hash_bucket * -__futex_hash_private (union futex_key *key,struct futex_private_hash *fph) -{ -return NULL ; -} - -struct futex_hash_bucket *futex_hash (union futex_key *key) +struct futex_bucket_ref futex_hash (union futex_key *key) { -return __futex_hash (key,NULL ); +return (struct futex_bucket_ref ){ .hb =__futex_hash (key,NULL ,NULL ), .fph =NULL }; }#endif /* CONFIG_FUTEX_PRIVATE_HASH */
@@ -398,6 +360,8 @@ static int futex_mpol(struct mm_struct ** __futex_hash - Return the hash bucket * @key: Pointer to the futex key for which the hash is calculated * @fph: Pointer to private hash if known +* @fph_p: Pointer to a private hash pointer; output for the private hash +* used when set. * * We hash on the keys returned from get_futex_key (see below) and return the * corresponding hash bucket.
@@ -406,18 +370,22 @@ static int futex_mpol(struct mm_struct ** global hash is returned. */ static struct futex_hash_bucket * -__futex_hash (union futex_key *key,struct futex_private_hash *fph) +__futex_hash (union futex_key *key,struct futex_private_hash *fph,struct futex_private_hash **fph_p) {int node = key->both.node;u32 hash; -if (node ==FUTEX_NO_NODE ) { -struct futex_hash_bucket *hb; - - hb =__futex_hash_private (key, fph); -if (hb) -return hb; +#ifdef CONFIG_FUTEX_PRIVATE_HASH +if (node ==FUTEX_NO_NODE &&futex_key_is_private (key)) { +if (!fph) + fph =rcu_dereference (key->private.mm->futex_phash); +if (fph && fph->hash_mask) { +if (fph_p) + *fph_p = fph; +return __futex_hash_private (key, fph); + } } +#endif hash =jhash2 ((u32 *)key, offsetof(typeof(*key), both.offset) / sizeof(u32),
@@ -1362,7 +1330,7 @@ static void exit_pi_state_list(struct ta* on the mutex. */ WARN_ON (curr != current); -guard (private_hash)(); +guard (private_hash)(current->mm);/* * We are a ZOMBIE and nobody can enqueue itself on * pi_state_list anymore, but we have to be careful
@@ -1374,7 +1342,8 @@ static void exit_pi_state_list(struct ta pi_state = list_entry(next, struct futex_pi_state, list); key = pi_state->key;if (1 ) { -CLASS (hb, hb)(&key); +CLASS (hbr, hbr)(&key); + auto hb = hbr.hb;/* * We can race against put_pi_state() removing itself from the
@@ -1556,12 +1525,8 @@ void futex_exec_done(struct task_struct tsk->futex_state =FUTEX_STATE_OK ; } -static void futex_hash_bucket_init (struct futex_hash_bucket *fhb, -struct futex_private_hash *fph) +static void futex_hash_bucket_init (struct futex_hash_bucket *fhb) { -#ifdef CONFIG_FUTEX_PRIVATE_HASH - fhb->priv = fph; -#endif atomic_set (&fhb->waiters,0 );plist_head_init (&fhb->chain);spin_lock_init (&fhb->lock);
@@ -1866,7 +1831,7 @@ static int futex_hash_allocate(unsigned fph->mm = mm;for (i =0 ; i < hash_slots; i++) -futex_hash_bucket_init (&fph->queues[i], fph); +futex_hash_bucket_init (&fph->queues[i]);if (custom) {struct wait_bit_queue_entry __wbq_entry;
@@ -2069,7 +2034,7 @@ static int __init futex_init(void)BUG_ON (!table);for (i =0 ; i < hashsize; i++) -futex_hash_bucket_init (&table[i],NULL ); +futex_hash_bucket_init (&table[i]); futex_queues[n] = table; }
kernel/futex/futex.h +14 -14
@@ -144,7 +144,6 @@ struct futex_hash_bucket {atomic_t waiters;spinlock_t lock;struct plist_head chain; -struct futex_private_hash *priv; }____cacheline_aligned_in_smp ;/*
@@ -184,7 +183,7 @@ typedef void (futex_wake_fn)(struct wake* @requeue_pi_key: the requeue_pi target futex key * @bitset: bitset for the optional bitmasked wakeup * @requeue_state: State field for futex_requeue_pi() -* @drop_hb_ref: Waiter should drop the extra hash bucket reference if true +* @drop_fph: Waiter should drop the extra private hash reference when set * @requeue_wait: RCU wait for futex_requeue_pi() (RT only) * * We use this hashed waitqueue, instead of a normal wait_queue_entry_t, so
@@ -211,7 +210,7 @@ struct futex_q {union futex_key *requeue_pi_key;u32 bitset;atomic_t requeue_state; -bool drop_hb_ref; +struct futex_private_hash *drop_fph;#ifdef CONFIG_PREEMPT_RT struct rcuwait requeue_wait;#endif
@@ -231,28 +230,29 @@ extern struct hrtimer_sleeper * futex_setup_timer(ktime_t *time, struct hrtimer_sleeper *timeout, int flags, u64 range_ns); -extern struct futex_hash_bucket *futex_hash (union futex_key *key); -#ifdef CONFIG_FUTEX_PRIVATE_HASH -extern void futex_hash_get (struct futex_hash_bucket *hb); -extern void futex_hash_put (struct futex_hash_bucket *hb); +struct futex_bucket_ref { +struct futex_hash_bucket *hb; +struct futex_private_hash *fph; +}; -extern struct futex_private_hash *futex_private_hash (void ); +#ifdef CONFIG_FUTEX_PRIVATE_HASH +extern struct futex_private_hash *futex_private_hash (struct mm_struct *mm);extern void futex_private_hash_put (struct futex_private_hash *fph);#else /* !CONFIG_FUTEX_PRIVATE_HASH */ -static inline void futex_hash_get (struct futex_hash_bucket *hb) { } -static inline void futex_hash_put (struct futex_hash_bucket *hb) { } -static inline struct futex_private_hash *futex_private_hash (void ) {return NULL ; } +static inline struct futex_private_hash *futex_private_hash (struct mm_struct *mm) {return NULL ; }static inline void futex_private_hash_put (struct futex_private_hash *fph) { }#endif -DEFINE_CLASS(hb, struct futex_hash_bucket *, - if (_T) futex_hash_put(_T), +extern struct futex_bucket_ref futex_hash (union futex_key *key); + +DEFINE_CLASS(hbr, struct futex_bucket_ref, + if (_T.fph) futex_private_hash_put(_T.fph), futex_hash(key), union futex_key *key); DEFINE_CLASS(private_hash, struct futex_private_hash *, if (_T) futex_private_hash_put(_T), -futex_private_hash (), void); + futex_private_hash(mm), struct mm_struct *mm);/** * futex_match - Check whether two futex keys are equal
kernel/futex/pi.c +11 -10
@@ -1005,7 +1005,8 @@ retry: retry_private:if (1 ) { -CLASS (hb, hb)(&q.key); +CLASS (hbr, hbr)(&q.key); + auto hb = hbr.hb;futex_q_lock (&q, hb);
@@ -1068,7 +1069,7 @@ retry_private:* the thread, performing resize, will block on hb->lock during * the requeue. */ -futex_hash_put (no_free_ptr (hb)); +futex_private_hash_put (no_free_ptr (hbr.fph));/* * Must be done before we enqueue the waiter, here is unfortunately * under the hb lock, but that *should* work because it does nothing.
@@ -1158,11 +1159,9 @@ no_block:futex_unqueue_pi (&q);spin_unlock (q.lock_ptr); -if (q.drop_hb_ref) { -CLASS (hb, hb)(&q.key); -/* Additional reference from futex_unlock_pi() */ -futex_hash_put (hb); - } + +/* Additional reference from futex_unlock_pi() */ +futex_private_hash_put (q.drop_fph); goto out; out_unlock_put_key:
@@ -1218,7 +1217,8 @@ retry:if (ret)return ret; -CLASS (hb, hb)(&key); +CLASS (hbr, hbr)(&key); + auto hb = hbr.hb;spin_lock (&hb->lock); retry_hb:
@@ -1275,8 +1275,9 @@ retry_hb:* Acquire a reference for the leaving waiter to ensure * valid futex_q::lock_ptr. */ -futex_hash_get (hb); - top_waiter->drop_hb_ref = true; +if (futex_key_is_private (&key)) + top_waiter->drop_fph =futex_private_hash (key.private.mm); +__futex_unqueue (top_waiter);raw_spin_unlock_irq (&pi_state->pi_mutex.wait_lock); goto retry_hb;
kernel/futex/requeue.c +10 -10
@@ -249,8 +249,8 @@ void requeue_pi_wake_futex(struct futex_* Acquire a reference for the waiter to ensure valid * futex_q::lock_ptr. */ -futex_hash_get (hb); - q->drop_hb_ref = true; +if (futex_key_is_private (key)) + q->drop_fph =futex_private_hash (key->private.mm); q->lock_ptr = &hb->lock; task =READ_ONCE (q->task);
@@ -467,8 +467,10 @@ retry: retry_private:if (1 ) { -CLASS (hb, hb1)(&key1); -CLASS (hb, hb2)(&key2); +CLASS (hbr, hbr1)(&key1); +CLASS (hbr, hbr2)(&key2); + auto hb1 = hbr1.hb; + auto hb2 = hbr2.hb;futex_hb_waiters_inc (hb2);double_lock_hb (hb1, hb2);
@@ -840,7 +842,8 @@ int futex_wait_requeue_pi(u32 __user *uaswitch (futex_requeue_pi_wakeup_sync (&q)) {case Q_REQUEUE_PI_IGNORE : { -CLASS (hb, hb)(&q.key); +CLASS (hbr, hbr)(&q.key); + auto hb = hbr.hb;/* The waiter is still on uaddr1 */ spin_lock (&hb->lock); ret =handle_early_requeue_pi_wakeup (hb, &q, to);
@@ -910,11 +913,8 @@ int futex_wait_requeue_pi(u32 __user *uadefault :BUG (); } -if (q.drop_hb_ref) { -CLASS (hb, hb)(&q.key); -/* Additional reference from requeue_pi_wake_futex() */ -futex_hash_put (hb); - } +/* Additional reference from requeue_pi_wake_futex() */ +futex_private_hash_put (q.drop_fph); out:if (to) {
kernel/futex/waitwake.c +11 -6
@@ -169,7 +169,8 @@ int futex_wake(u32 __user *uaddr, unsignif ((flags &FLAGS_STRICT ) && !nr_wake)return 0 ; -CLASS (hb, hb)(&key); +CLASS (hbr, hbr)(&key); + auto hb = hbr.hb;/* Make sure we really have tasks to wakeup */ if (!futex_hb_waiters_pending (hb))
@@ -266,8 +267,10 @@ retry: retry_private:if (1 ) { -CLASS (hb, hb1)(&key1); -CLASS (hb, hb2)(&key2); +CLASS (hbr, hbr1)(&key1); +CLASS (hbr, hbr2)(&key2); + auto hb1 = hbr1.hb; + auto hb2 = hbr2.hb;double_lock_hb (hb1, hb2); op_ret =futex_atomic_op_inuser (op, uaddr2);
@@ -409,7 +412,7 @@ int futex_wait_multiple_setup(struct fut* Make sure to have a reference on the private_hash such that we * don't block on rehash after changing the task state below. */ -guard (private_hash)(); +guard (private_hash)(current->mm);/* * Enqueuing multiple futexes is tricky, because we need to enqueue
@@ -446,7 +449,8 @@ retry:u32 val = vs[i].w.val;if (1 ) { -CLASS (hb, hb)(&q->key); +CLASS (hbr, hbr)(&q->key); + auto hb = hbr.hb;futex_q_lock (q, hb); ret =futex_get_value_locked (&uval, uaddr);
@@ -620,7 +624,8 @@ retry: retry_private:if (1 ) { -CLASS (hb, hb)(&q->key); +CLASS (hbr, hbr)(&q->key); + auto hb = hbr.hb;futex_q_lock (q, hb);
Greg Kroah-Hartman
maintainerPATCH 64/1518 ftrace: Take trace_array reference before accessing its ftrace_ops
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Steven Rostedt <[email protected]>
[ Upstream commit 9100191e5acb2e5ea2313f436667bb5fce129f47 ]
The trace instance files set_ftrace_filter and set_ftrace_notrace was updated to work with specific trace instances (trace_arrays). The issue is that when these files are opened, there is a small race window where it will use the ftrace_ops from the inode->private pointer to get a reference to the trace_array and then take its reference. The problem is that the ftrace_ops itself could be freed. If the rmdir on the instance happens at the same time the set_ftrace_filter file is opened, the rmdir could have also freed the ftrace_ops and referencing it will cause a use-after-free bug and crash the kernel.
Instead, pass in the trace_array as the file private data (NULL for the top level instance), and then pass both the trace_array and the ftrace_ops to the ftrace_regex_open() function. If the trace_array is NULL, then it just uses the ftrace_ops without the need to take its reference (like normal). If the ftrace_ops is NULL, that is only the case for the top level instance and the global_ops can be used.
This allows the trace_array to have its reference incremented before touching the ftrace_ops that could also be freed when the instance is.
--- include/linux/ftrace.h | 5 ++- kernel/trace/ftrace.c | 57 ++++++++++++++++++++++++++--------------- kernel/trace/trace.h | 4 +- kernel/trace/trace_functions.c | 2 - kernel/trace/trace_stack.c | 2 - 5 files changed, 44 insertions(+), 26 deletions(-)
include/linux/ftrace.h +3 -2
@@ -797,8 +797,9 @@ unsigned long ftrace_get_addr_new(structunsigned long ftrace_get_addr_curr (struct dyn_ftrace *rec);extern ftrace_func_t ftrace_trace_function; +struct trace_array ; -int ftrace_regex_open (struct ftrace_ops *ops,int flag, +int ftrace_regex_open (struct trace_array *tr,struct ftrace_ops *ops,int flag,struct inode *inode,struct file *file);ssize_t ftrace_filter_write (struct file *file,const char __user *ubuf,size_t cnt,loff_t *ppos);
@@ -1008,7 +1009,7 @@ static inline unsigned long ftrace_locat* have them defined when ftrace is not enabled, but these * functions may still be called. Use a macro instead of inline. */ -#define ftrace_regex_open (ops, flag, inod, file) ({ -ENODEV; }) +#define ftrace_regex_open (tr, ops, flag, inode, file) ({ -ENODEV; })#define ftrace_set_early_filter (ops, buf, enable) do { } while (0)#define ftrace_set_filter_ip (ops, ip, remove, reset) ({ -ENODEV; })#define ftrace_set_filter_ips (ops, ips, cnt, remove, reset) ({ -ENODEV; })
kernel/trace/ftrace.c +37 -20
120 lines not on this page · raw message
kernel/trace/trace.h +2 -2
@@ -1255,7 +1255,7 @@ extern void clear_ftrace_function_probesint register_ftrace_command (struct ftrace_func_command *cmd);int unregister_ftrace_command (struct ftrace_func_command *cmd); -void ftrace_create_filter_files (struct ftrace_ops *ops, +void ftrace_create_filter_files (struct trace_array *tr,struct dentry *parent);void ftrace_destroy_filter_files (struct ftrace_ops *ops);
@@ -1278,11 +1278,11 @@ static inline void clear_ftrace_function { } +#define ftrace_create_filter_files (tr, parent) do { } while (0)/* * The ops parameter passed in is usually undefined. * This must be a macro. */ -#define ftrace_create_filter_files (ops, parent) do { } while (0)#define ftrace_destroy_filter_files (ops) do { } while (0)#endif /* CONFIG_FUNCTION_TRACER && CONFIG_DYNAMIC_FTRACE */
kernel/trace/trace_functions.c +1 -1
@@ -101,7 +101,7 @@ int ftrace_create_function_files(structreturn ret; } -ftrace_create_filter_files (tr->ops, parent); +ftrace_create_filter_files (tr, parent);return 0 ; }
kernel/trace/trace_stack.c +1 -1
@@ -499,7 +499,7 @@ stack_trace_filter_open(struct inode *instruct ftrace_ops *ops = inode->i_private;/* Checks for tracefs lockdown */ -return ftrace_regex_open (ops,FTRACE_ITER_FILTER , +return ftrace_regex_open (NULL , ops,FTRACE_ITER_FILTER , inode, file); }
Greg Kroah-Hartman
maintainerPATCH 65/1518 i3c: master: Do not treat master device as a duplicate target
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Adrian Hunter <[email protected]>
[ Upstream commit 4dc1b3eeba7991905a5b5b8129ebea51be7d87b7 ]
i3c_master_search_i3c_dev_duplicate() searches the bus for another I3C device with the same PID as the reference device. The search can match master->this, causing the controller itself to be returned as a duplicate.
Since the controller is not a target device, it cannot be a duplicate of one. Exclude master->this from matching so that the function only returns real duplicate target devices.
--- drivers/i3c/master.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/i3c/master.c +2 -1
@@ -2295,7 +2295,8 @@ i3c_master_search_i3c_dev_duplicate(strustruct i3c_dev_desc *i3cdev;i3c_bus_for_each_i3cdev (&master->bus, i3cdev) { -if (i3cdev != refdev && i3cdev->info.pid == refdev->info.pid) +if (i3cdev != refdev && i3cdev->info.pid == refdev->info.pid && + i3cdev != master->this)return i3cdev; }
Greg Kroah-Hartman
maintainerPATCH 66/1518 i3c: master: Fix use-after-free of master->this
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Adrian Hunter <[email protected]>
[ Upstream commit feb0ed76601f3c2f91f08688c5a7d8b9d382f720 ]
sysfs attribute callbacks for the master controller device dereference master->this. However, master->this is freed in i3c_master_detach_free_devs() before the master device itself is released.
As a result, sysfs accesses can dereference a freed master->this pointer, leading to a use-after-free.
Keep master->this alive until i3c_masterdev_release(), which is called after the master device and its sysfs state are being torn down. Do not free master->this as part of the normal device detach path.
On the error path in i3c_master_set_info(), reset master->this and bus.cur_master to NULL before freeing the allocated device.
--- drivers/i3c/master.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-)
drivers/i3c/master.c +11 -6
@@ -799,6 +799,11 @@ static struct attribute *i3c_masterdev_a };ATTRIBUTE_GROUPS (i3c_masterdev); +static void i3c_master_free_i3c_dev (struct i3c_dev_desc *dev) +{ +kfree (dev); +} +static void i3c_masterdev_release (struct device *dev) {struct i3c_master_controller *master =dev_to_i3cmaster (dev);
@@ -811,6 +816,8 @@ static void i3c_masterdev_release(structi3c_bus_cleanup (bus);of_node_put (dev->of_node); + +i3c_master_free_i3c_dev (master->this); }static const struct device_type i3c_masterdev_type = {
@@ -1023,11 +1030,6 @@ static void i3c_device_release(struct dekfree (i3cdev); } -static void i3c_master_free_i3c_dev (struct i3c_dev_desc *dev) -{ -kfree (dev); -} -static struct i3c_dev_desc *i3c_master_alloc_i3c_dev (struct i3c_master_controller *master,const struct i3c_device_info *info)
@@ -2046,6 +2048,8 @@ int i3c_master_set_info(struct i3c_mastereturn 0 ; err_free_dev: + master->bus.cur_master =NULL ; + master->this =NULL ;i3c_master_free_i3c_dev (i3cdev);return ret;
@@ -2066,7 +2070,8 @@ static void i3c_master_detach_free_devs( i3cdev->boardinfo->init_dyn_addr, I3C_ADDR_SLOT_FREE); -i3c_master_free_i3c_dev (i3cdev); +if (i3cdev != master->this) +i3c_master_free_i3c_dev (i3cdev); } list_for_each_entry_safe(i2cdev, i2ctmp, &master->bus.devs.i2c,
Greg Kroah-Hartman
maintainerPATCH 67/1518 mm/huge_memory: transfer the pmd dirty bit to the folio on zap
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Usama Arif <[email protected]>
[ Upstream commit fe6cf984939d8e12cb33a99673c8d026c5135e68 ]
zap_huge_pmd_folio() propagates the pmd young bit to the folio for the file case, but not the dirty bit. The pte path does propagate it, in zap_present_folio_ptes() and so does the pmd split path, in __split_huge_pmd_locked().
For most file mappings the omission is harmless, because writing to a shared file mapping goes through page_mkwrite(), which dirties the folio. tmpfs is different: it has no page_mkwrite(), and vma_wants_writenotify() is false for it, so a *read* fault on a MAP_SHARED tmpfs mapping installs a writable pmd via do_read_fault(). do_read_fault() does not call fault_dirty_shared_page(), so subsequent stores through that mapping set only the hardware dirty bit in the pmd and never call folio_mark_dirty(). A shmem folio allocated by a fault is marked uptodate but not dirty (see the clear: block in shmem_get_folio_gfp()), so PG_dirty is never set at all.
Unmapping such a folio - munmap(), or exit_mmap() when the process dies - then loses the only record that it was written, because zap_huge_pmd() drops the pmd without transferring the dirty bit. Reclaim afterwards sees a clean shmem folio: the whole swap-out block in shrink_folio_list() is inside "if (folio_test_dirty(folio))", so pageout() is skipped and the folio falls into __remove_mapping(). There, folio_is_file_lru() is false for a swapbacked folio, so no shadow entry is created and __filemap_remove_folio(folio, NULL) simply empties the i_pages slot. The data is freed without ever being written to swap, and the next fault on that index returns a freshly zeroed folio.
This is silent data loss for any process that keeps state in a MAP_SHARED tmpfs segment across an unmap - for example a cache handed from one process generation to the next through /dev/shm. It requires the folio to be PMD-mapped, so it only shows up once shmem THP is enabled (which is what we did in Meta fleet and started noticing crashes); with THP off the pte path transfers the dirty bit correctly. It also only becomes visible when swap is enabled, because with no swap device shmem folios (which are on the anon LRU) are not scanned by reclaim at all, so the clean folio is never dropped.
Reproduced on x86_64 with a tmpfs mounted huge=within_size: read-fault a 2MB-backed region, write a known pattern through the resulting mapping, munmap, force reclaim of the cgroup, then re-map and read back. Without this patch the region reads back as zeros and vmstat shows zswpout 0 - the data was discarded rather than swapped. With this patch the region reads back correctly and the pages are swapped out as expected. With huge=never, or when the first touch is a write, the test passes either way.
--- mm/huge_memory.c | 2 ++ 1 file changed, 2 insertions(+)
mm/huge_memory.c +2 -0
@@ -2311,6 +2311,8 @@ int zap_huge_pmd(struct mmu_gather *tlb,* Use flush_needed to indicate whether the PMD entry * is present, instead of checking pmd_present() again. */ +if (flush_needed &&pmd_dirty (orig_pmd)) +folio_mark_dirty (folio);if (flush_needed &&pmd_young (orig_pmd) &&likely (vma_has_recency (vma)))folio_mark_accessed (folio);
Greg Kroah-Hartman
maintainerPATCH 68/1518 mm/mremap: reset unfaulted VMA page offset for MREMAP_DONTUNMAP
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: "Lorenzo Stoakes (ARM)" <[email protected]>
[ Upstream commit 35b0fb391b0df57383bc15985bb769f4555c97ba ]
Uniquely an mremap() invocation using the MREMAP_DONTUNMAP flag can reset a faulted VMA into an unfaulted one.
It does so after the page tables have been moved to the copied VMA with MREMAP_DONTUNMAP leaving the old VMA in place which is naturally unfaulted as the page tables it had are no longer present.
However, in doing so, it violates the invariant that the anonymous page offset of an unfaulted VMA is vma->vm_start >> PAGE_SHIFT.
This is because a VMA may have been faulted in, mremap()'d (causing a delta between its page offset and vma->vm_start >> PAGE_SHIFT), and then mremap()'d again with MREMAP_DONTUNMAP resulting in the unfaulting.
This condition is a violation of a fundamental assumption in mm, but now also triggers an assert in assert_sane_pgoff() which explicitly checks for this condition.
Correct it by resetting the VMA's page offset at the point of completing the MREMAP_DONTUNMAP operation.
--- mm/mremap.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-)
mm/mremap.c +16 -5
@@ -1247,18 +1247,29 @@ static void dontunmap_complete(struct vm {unsigned long start = vrm->addr;unsigned long end = vrm->addr + vrm->old_len; -unsigned long old_start = vrm->vma->vm_start; -unsigned long old_end = vrm->vma->vm_end; +struct vm_area_struct *vma = vrm->vma; +unsigned long old_start = vma->vm_start; +unsigned long old_end = vma->vm_end;/* We always clear VM_LOCKED[ONFAULT] on the old VMA. */ -vm_flags_clear (vrm->vma,VM_LOCKED_MASK ); +vm_flags_clear (vma,VM_LOCKED_MASK );/* * anon_vma links of the old vma is no longer needed after its page * table has been moved. */ -if (new_vma != vrm->vma && start == old_start && end == old_end) -unlink_anon_vmas (vrm->vma); +if (new_vma != vma && start == old_start && end == old_end) { +const pgoff_t pgoff_unfaulted = vma->vm_start >>PAGE_SHIFT ; + +unlink_anon_vmas (vma); +/* +* The VMA is now unfaulted and it is an invariant that +* unfaulted anonymous VMAs have page offset equal to +* vma->vm_start >> PAGE_SHIFT. +*/ +if (vma_is_anonymous (vma) && !vma->vm_file) + vma->vm_pgoff = pgoff_unfaulted; + }/* Because we won't unmap we don't need to touch locked_vm. */ }
Greg Kroah-Hartman
maintainerPATCH 69/1518 mm/secretmem: properly account locked pages
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: "Lorenzo Stoakes (ARM)" <[email protected]>
[ Upstream commit 97d34aa65c29cca85e3e9050f4c936389b38a054 ]
secretmem accounts folios by treating memory as if it were mlock()'d and thus limited by the RLIMIT_MEMLOCK limit.
However the folios are unevictable and remain so until the inode is evicted, eliminating usual mlock() semantics - mapping folios then unmapping them does not clear their unevictable state, since it depends on AS_UNEVICTABLE, not PG_mlocked.
A user can therefore easily work around the RLIMIT_MEMLOCK limit - simply map then unmap and VmLck no longer counts the secretmem range. Worse, folios are not accounted in the process's RSS, meaning the OOM killer won't know to kill the process.
Repeatedly mapping/unmapping (or forking) can then result in the consumption of all available system memory with unevictable folios and cause system instability.
A secretmem fd can be passed between processes and over fork so a per-process limit simply does not make sense, so follow the precedent set by io_uring, perf, skbuff, iommufd and xdp by tracking the number of locked pages in user_struct->locked_vm.
Since the scope tracked is actually inode lifetime, the RLIMIT_MEMLOCK applies per-user not per-process, so it doesn't make sense to bypass for users with CAP_IPC_LOCK, therefore remove this bypass.
There is simply no reason to carry on marking the mapping as mlock()'d since it's misleading and the lifecycle is now correctly handled, so remove this too.
Note that secretmem does not support any form of truncation (including hole punching) and the folios are unreclaimable, so the folios need only be accounted on fault and unaccounted on inode destruction.
__secretmem_account_pages() is more or less a duplicate of the code that io_uring etc. use, but since this is a bug fix that needs backporting, defer any de-duplication efforts to a follow-up.
test_mlock_limit() asserts mlock_future_ok() on mmap(), however this has been removed, so remove the test altogether for the fix. A new test will be sent separately for upstream.
--- include/linux/sched/user.h | 3 mm/secretmem.c | 117 +++++++++++++++++++++++++++--- tools/testing/selftests/mm/memfd_secret.c | 30 ------- 3 files changed, 110 insertions(+), 40 deletions(-)
include/linux/sched/user.h +2 -1
@@ -25,7 +25,8 @@ struct user_struct {#if defined(CONFIG_PERF_EVENTS ) || defined(CONFIG_BPF_SYSCALL ) || \ defined(CONFIG_NET ) || defined(CONFIG_IO_URING ) || \ - defined(CONFIG_VFIO_PCI_ZDEV_KVM ) ||IS_ENABLED (CONFIG_IOMMUFD ) + defined(CONFIG_VFIO_PCI_ZDEV_KVM ) ||IS_ENABLED (CONFIG_IOMMUFD ) || \ + defined(CONFIG_SECRETMEM )atomic_long_t locked_vm;#endif #ifdef CONFIG_WATCH_QUEUE
mm/secretmem.c +107 -10
190 lines not on this page · raw message
tools/testing/selftests/mm/memfd_secret.c +1 -29
@@ -57,33 +57,6 @@ static void test_file_apis(int fd)pass ("file IO is blocked as expected\n" ); } -static void test_mlock_limit (int fd) -{ -size_t len; -char *mem; - - len = mlock_limit_cur; -if (len % page_size !=0 ) - len = (len/page_size) * page_size; - - mem =mmap (NULL , len, prot, mode, fd,0 ); -if (mem ==MAP_FAILED ) { -fail ("unable to mmap secret memory\n" ); -return ; - } -munmap (mem, len); - - len = mlock_limit_max *2 ; - mem =mmap (NULL , len, prot, mode, fd,0 ); -if (mem !=MAP_FAILED ) { -fail ("unexpected mlock limit violation\n" ); -munmap (mem, len); -return ; - } - -pass ("mlock limit is respected\n" ); -} -static void test_vmsplice (int fd,const char *desc) {ssize_t transferred;
@@ -297,7 +270,7 @@ static void prepare(void) strerror(errno)); } -#define NUM_TESTS 6 +#define NUM_TESTS 5int main (int argc,char *argv[]) {
@@ -319,7 +292,6 @@ int main(int argc, char *argv[])if (ftruncate (fd, page_size))ksft_exit_fail_msg ("ftruncate failed: %s\n" ,strerror (errno)); -test_mlock_limit (fd);test_file_apis (fd);/* * We have to run the first vmsplice test before any secretmem page was
Greg Kroah-Hartman
maintainerPATCH 70/1518 mm: fix incorrect vm_flags usage when checking allowable orders for tmpfs
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Baolin Wang <[email protected]>
[ Upstream commit 2fd4e7693674b17807a6d082feb01a3fbf86f5f8 ]
Lance reported that when nothing else causes the mm to be considered for khugepaged collapse, an MADV_HUGEPAGE-advised tmpfs VMA alone does not trigger scanning.
After commit 6beeab870e70 ("mm: shmem: move shmem_huge_global_enabled() into shmem_allowable_huge_orders()"), the shmem/tmpfs allowable order check reads vma->flags directly. However, when MADV_HUGEPAGE is handled, khugepaged_enter_vma() is called before the VMA's flags have been updated, so the check uses stale flags and incorrectly rejects the VMA for collapse. As a result, khugepaged does not collapse the tmpfs file into PMD order in time.
Fix this by calling khugepaged_enter_vma() with the new VMA flags in madvise_update_vma(). Meanwhile we can remove the khugepaged_enter_vma() in hugepage_madvise().
--- mm/khugepaged.c | 6 ------ mm/madvise.c | 8 ++++++++ 2 files changed, 8 insertions(+), 6 deletions(-)
mm/khugepaged.c +0 -6
@@ -353,12 +353,6 @@ int hugepage_madvise(struct vm_area_stru#endif *vm_flags &= ~VM_NOHUGEPAGE ; *vm_flags |=VM_HUGEPAGE ; -/* -* If the vma become good for khugepaged to scan, -* register it here without waiting a page fault that -* may not happen any time soon. -*/ -khugepaged_enter_vma (vma, *vm_flags);break ;case MADV_NOHUGEPAGE : *vm_flags &= ~VM_HUGEPAGE ;
mm/madvise.c +8 -0
@@ -177,6 +177,14 @@ static int madvise_update_vma(vm_flags_t/* vm_flags is protected by the mmap_lock held in write mode. */ vma_start_write (vma);vm_flags_reset (vma, new_flags); +/* +* If the vma become good for khugepaged to scan, +* register it here without waiting a page fault that +* may not happen any time soon. +*/ +if (new_flags &VM_HUGEPAGE ) +khugepaged_enter_vma (vma, new_flags); +if (set_new_anon_name)return replace_anon_vma_name (vma, anon_name);
Greg Kroah-Hartman
maintainerPATCH 71/1518 perf/x86/intel: Remove anythread_deprecated bit from perf_capabilities
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dapeng Mi <[email protected]>
[ Upstream commit 8767b4d73018bd3143f4c55b672064fad292f11b ]
AnyThread mode deprecation is enumerated by CPUID.0AH:EDX[15] instead of PERF_CAPABILITIES MSR. It's not a good practice to define a bit to represent "anythread deprecation" in perf_capabilities. It leads to the anythread_deprecated bit could be overwritten by the real value of PERF_CAPABILITIES MSR, just like the below code in update_pmu_cap() does.
if (!intel_pmu_broken_perf_cap()) {
/* Perf Metric (Bit 15) and PEBS via PT (Bit 16) are hybrid enumeration */
rdmsrq(MSR_IA32_PERF_CAPABILITIES, hybrid(pmu, intel_cap).capabilities);
}It leads to the anythread_deprecated bit is cleared to 0 and the "any" attribute is incorrectly shown in the /sys/devices/cpu/format/ folder on these support Perfmon v6 platforms, like Clearwater Forest.
$ grep . /sys/devices/cpu/format/* /sys/devices/cpu/format/acr_mask:config2:0-63 /sys/devices/cpu/format/any:config:21 /sys/devices/cpu/format/cmask:config:24-31
So remove the anythread_deprecated bit from perf_capabilities structure and directly depends on CPUID.0AH:EDX[15] to judge if anythread is deprecated.
--- arch/x86/events/intel/core.c | 10 +++------- arch/x86/events/perf_event.h | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-)
arch/x86/events/intel/core.c +3 -7
@@ -6975,12 +6975,6 @@ __init int intel_pmu_init(void)x86_add_quirk (intel_arch_events_quirk);/* Install first, so it runs last */ -if (version >=5 ) { - x86_pmu.intel_cap.anythread_deprecated = edx.split.anythread_deprecated; -if (x86_pmu.intel_cap.anythread_deprecated) -pr_cont (" AnyThread deprecated, " ); - } -/* * Many features on and after V6 require dynamic constraint, * e.g., Arch PEBS, ACR.
@@ -7778,8 +7772,10 @@ __init int intel_pmu_init(void) &x86_pmu.intel_ctrl);/* AnyThread may be deprecated on arch perfmon v5 or later */ -if (x86_pmu.intel_cap.anythread_deprecated) +if (version >=5 && edx.split.anythread_deprecated) { x86_pmu.format_attrs = intel_arch_formats_attr; +pr_cont ("AnyThread deprecated, " ); + } intel_pmu_check_event_constraints(x86_pmu.event_constraints, x86_pmu.cntr_mask64,
arch/x86/events/perf_event.h +1 -1
@@ -656,7 +656,7 @@ union perf_capabilities { u64 perf_metrics:1; u64 pebs_output_pt_available:1; u64 pebs_timing_info:1; - u64 anythread_deprecated:1; + u64 __reserved:1; u64 rdpmc_metrics_clear:1; };u64 capabilities;
Greg Kroah-Hartman
maintainerPATCH 72/1518 platform/x86/amd/pmc: Fix msg_port restoration in amd_stb_debugfs_open_v2()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mario Limonciello <[email protected]>
[ Upstream commit cbb32ff92f8a62212e0f7384b1de986ced92082b ]
amd_stb_debugfs_open_v2() switches dev->msg_port to MSG_PORT_S2D to query S2D telemetry but only restores it to MSG_PORT_PMC on one path. The early return on the dump_custom_stb path (and the error/allocation returns) leave the port stuck on MSG_PORT_S2D, so subsequent SMU communication - including the s2idle prepare/restore handlers - is directed at the wrong mailbox.
Consolidate the exit path through a single label so the message port is always restored, mirroring the fix in amd_stb_s2d_init().
--- drivers/platform/x86/amd/pmc/mp1_stb.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-)
drivers/platform/x86/amd/pmc/mp1_stb.c +14 -9
@@ -157,7 +157,7 @@ static int amd_stb_debugfs_open_v2(strucstruct amd_pmc_dev *dev = filp->f_inode->i_private;u32 fsize, num_samples, val, stb_rdptr_offset =0 ;struct amd_stb_v2_data *stb_data_arr; -int ret; +int ret =0 ;/* Write dummy postcode while reading the STB buffer */ ret =amd_stb_write (dev,AMD_PMC_STB_DUMMY_PC );
@@ -176,22 +176,24 @@ static int amd_stb_debugfs_open_v2(struc* the enhanced dram size. Note that we land here only for the * platforms that support enhanced dram size reporting. */ -if (dump_custom_stb) -return amd_stb_handle_efr (filp); +if (dump_custom_stb) { + ret =amd_stb_handle_efr (filp); + goto out; + }/* Get the num_samples to calculate the last push location */ ret =amd_pmc_send_cmd (dev,S2D_NUM_SAMPLES , &num_samples, dev->stb_arg.s2d_msg_id, true); -/* Clear msg_port for other SMU operation */ - dev->msg_port =MSG_PORT_PMC ;if (ret) {dev_err (dev->dev,"error: S2D_NUM_SAMPLES not supported : %d\n" , ret); -return ret; + goto out; } fsize =min (num_samples,S2D_TELEMETRY_BYTES_MAX ); stb_data_arr =kmalloc (struct_size (stb_data_arr, data, fsize),GFP_KERNEL ); -if (!stb_data_arr) -return -ENOMEM ; +if (!stb_data_arr) { + ret = -ENOMEM ; + goto out; + } stb_data_arr->size = fsize;
@@ -214,7 +216,10 @@ static int amd_stb_debugfs_open_v2(struc filp->private_data = stb_data_arr; -return 0 ; +out: +/* Restore the default message port for subsequent SMU operations */ + dev->msg_port =MSG_PORT_PMC ; +return ret; } static ssize_t amd_stb_debugfs_read_v2(struct file *filp, char __user *buf, size_t size,
Greg Kroah-Hartman
maintainerPATCH 73/1518 platform/x86: hp-wmi: Add support for OMEN MAX 16-ak0xxx (8DD6)
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Krishna Chomal <[email protected]>
[ Upstream commit a7320d6eb9c4240c948cd9c64582b3bd04cbaf4b ]
The HP OMEN MAX 16-ak0xxx (board ID: 8DD6) has the same WMI interface as other Victus S boards, but requires quirks for correctly switching thermal profile.
After testing we know that (similar to another HP Omen Max 16 device, board ID 8D87), the embedded controller on this board does not expose thermal profile which means we have to intentionally disable EC readback.
Add the DMI board name to victus_s_thermal_profile_boards[] table and map it to omen_v1_no_ec_thermal_params.
Testing on board 8DD6 confirmed that platform profile is registered successfully and fan RPMs are readable and controllable.
--- drivers/platform/x86/hp/hp-wmi.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/platform/x86/hp/hp-wmi.c +4 -0
@@ -194,6 +194,10 @@ static const struct dmi_system_id victus .matches = { DMI_MATCH(DMI_BOARD_NAME, "8D41") }, .driver_data = (void *)&victus_s_thermal_params, }, + { + .matches = { DMI_MATCH(DMI_BOARD_NAME, "8DD6") }, + .driver_data = (void *)&omen_v1_thermal_params, + }, {}, };
Greg Kroah-Hartman
maintainerPATCH 47/1518 i2c: qcom-cci: Remove overcautious disable_irq() calls
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vladimir Zapolskiy <[email protected]>
[ Upstream commit f0285c286bca5a1e018ba25040cef6c7806c31ef ]
In cci_probe() the controller's interrupt is requested using a devres managed API, and in cci_probe() error path and cci_remove() it'd be safe to rely on devres mechanism to free and shutdown the interrupt, thus explicit disable_irq() calls can be removed as unnecessary ones.
Stable-dep-of: f98d49864821 ("i2c: qcom-cci: fix autosuspend cleanup")
--- drivers/i2c/busses/i2c-qcom-cci.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/i2c/busses/i2c-qcom-cci.c +1 -4
@@ -594,7 +594,7 @@ static int cci_probe(struct platform_dev ret =cci_reset (cci);if (ret <0 ) - goto error; + goto disable_clocks;cci_init (cci);
@@ -626,8 +626,6 @@ error_i2c:of_node_put (cci->master[i].adap.dev.of_node); } } -error: -disable_irq (cci->irq); disable_clocks:cci_disable_clocks (cci);
@@ -647,7 +645,6 @@ static void cci_remove(struct platform_d } } -disable_irq (cci->irq);pm_runtime_disable (&pdev->dev);pm_runtime_set_suspended (&pdev->dev); }
Greg Kroah-Hartman
maintainerPATCH 74/1518 staging: sm750fb: fix mono image source stride mismatch in lynxfb_ops_imageblit()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Muhammad Bilal <[email protected]>
[ Upstream commit cc7cd2a9228175c975f62ad56ed7c767701cb4fa ]
sm750_hw_imageblit() advances its monochrome source pointer by src_delta per scanline, and computes the correct rounded-up stride internally as:
bytes_per_scan = (width + start_bit + 7) / 8;
Its only caller, lynxfb_ops_imageblit(), instead passed src_delta as image->width >> 3. For widths not a multiple of 8 this under-counted the stride, so the source pointer fell further behind the real per-scanline layout on every line, corrupting the rendered image.
Rather than just fixing the caller's calculation, remove src_delta as a parameter entirely and have sm750_hw_imageblit() advance by the bytes_per_scan it already computes for itself. There has only ever been one caller, and that caller was passing an out-of-sync derivative of the same width/start_bit values sm750_hw_imageblit() already has, so keeping stride as a separate parameter served no purpose beyond letting the two calculations drift apart, which is exactly what happened here.
Rounding up, rather than down, is the direction consistent with the rest of the fbdev core: struct fb_image mono bitmap data (the same image->data this driver receives) is walked elsewhere with byte strides derived from a ceiling division of width by 8. The generic mono bit iterator in drivers/video/fbdev/core/fb_imageblit.h advances scanlines with "iter->data += BITS_TO_BYTES(iter->width)", and BITS_TO_BYTES() (include/linux/bitops.h) is a ceiling division. sm750_hw_imageblit()'s own "(width + start_bit + 7) / 8" is that same ceiling division with an added start_bit offset, so the caller's ">> 3" (floor) was the one calculation out of step with how this data layout is handled everywhere else.
Found by code review of sm750_hw_imageblit()'s internal stride calculation against what its only caller was passing in, and confirmed with a clean -Werror build. I do not have this hardware, so this has not been exercised at runtime on real sm750 silicon.
--- drivers/staging/sm750fb/sm750.c | 2 +- drivers/staging/sm750fb/sm750.h | 2 +- drivers/staging/sm750fb/sm750_accel.c | 6 ++---- drivers/staging/sm750fb/sm750_accel.h | 4 +--- 4 files changed, 5 insertions(+), 9 deletions(-)
drivers/staging/sm750fb/sm750.c +1 -1
@@ -273,7 +273,7 @@ static void lynxfb_ops_imageblit(structspin_lock (&sm750_dev->slock); sm750_dev->accel.de_imageblit(&sm750_dev->accel, - image->data, image->width >> 3, 0, + image->data, 0, base, pitch, bpp, image->dx, image->dy, image->width, image->height,
drivers/staging/sm750fb/sm750.h +1 -1
@@ -73,7 +73,7 @@ struct lynx_accel { u32 rop2);int (*de_imageblit)(struct lynx_accel *accel,const char *p_srcbuf, -u32 src_delta,u32 start_bit,u32 d_base,u32 d_pitch, +u32 start_bit,u32 d_base,u32 d_pitch,u32 byte_per_pixel,u32 dx,u32 dy,u32 width,u32 height,u32 f_color,u32 b_color,u32 rop2);
drivers/staging/sm750fb/sm750_accel.c +2 -4
@@ -300,8 +300,6 @@ static unsigned int deGetTransparency(st* sm750_hw_imageblit * @accel: Acceleration device data * @pSrcbuf: pointer to start of source buffer in system memory -* @srcDelta: Pitch value (in bytes) of the source buffer, +ive means top down -* and -ive mean button up * @startBit: Mono data can start at any bit in a byte, this value should be * 0 to 7 * @dBase: Address of destination: offset in frame buffer
@@ -316,7 +314,7 @@ static unsigned int deGetTransparency(st* @rop2: ROP value */ int sm750_hw_imageblit (struct lynx_accel *accel,const char *pSrcbuf, -u32 srcDelta,u32 startBit,u32 dBase,u32 dPitch, +u32 startBit,u32 dBase,u32 dPitch,u32 bytePerPixel,u32 dx,u32 dy,u32 width,u32 height,u32 fColor,u32 bColor,u32 rop2) {
@@ -405,7 +403,7 @@ int sm750_hw_imageblit(struct lynx_accelwrite_dpPort (accel, *(unsigned int *)ajRemain); } - pSrcbuf += srcDelta; + pSrcbuf += ulBytesPerScan; }return 0 ;
drivers/staging/sm750fb/sm750_accel.h +1 -3
@@ -220,8 +220,6 @@ int sm750_hw_copyarea(struct lynx_accel/** * sm750_hw_imageblit * @pSrcbuf: pointer to start of source buffer in system memory -* @srcDelta: Pitch value (in bytes) of the source buffer, +ive means top down -*>----- and -ive mean button up * @startBit: Mono data can start at any bit in a byte, this value should be *>----- 0 to 7 * @dBase: Address of destination: offset in frame buffer
@@ -236,7 +234,7 @@ int sm750_hw_copyarea(struct lynx_accel* @rop2: ROP value */ int sm750_hw_imageblit (struct lynx_accel *accel,const char *pSrcbuf, -u32 srcDelta,u32 startBit,u32 dBase,u32 dPitch, +u32 startBit,u32 dBase,u32 dPitch,u32 bytePerPixel,u32 dx,u32 dy,u32 width,u32 height,u32 fColor,u32 bColor,u32 rop2);
Greg Kroah-Hartman
maintainerPATCH 75/1518 tracing/probes: Fix anon_stack check for unnamed bitfields in btf_find_struct_member
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: "Masami Hiramatsu (Google)" <[email protected]>
[ Upstream commit f36d94a20ca185bcadef3a10b980cd2cfd72d53a ]
btf_find_struct_member() traverses into nested anonymous structures and unions by pushing members with !member->name_off onto anon_stack. However, it does not consider the unnamed bitfields (e.g. int : 5 or unsigned int : 0) which also have member->name_off == 0.
If such an unnamed bitfield is pushed to anon_stack, the btf_find_struct_member() return an error even if there are other valid entries in anon_stack.
To fix this, only push unnamed struct/union members to anon_stack. Also move the btf_type_is_struct() check to the entry of this function because now it is sure only struct/union are pushed to anon_stack.
--- kernel/trace/trace_btf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
kernel/trace/trace_btf.c +6 -6
@@ -75,24 +75,24 @@ const struct btf_member *btf_find_struct {struct btf_anon_stack *anon_stack;const struct btf_member *member; +const struct btf_type *mtype;u32 tid, cur_offset =0 ;const char *name;int i, top =0 ; +if (!btf_type_is_struct (type)) +return ERR_PTR (-EINVAL ); + anon_stack =kcalloc (BTF_ANON_STACK_MAX ,sizeof (*anon_stack),GFP_KERNEL );if (!anon_stack)return ERR_PTR (-ENOMEM ); retry: -if (!btf_type_is_struct (type)) { - member =ERR_PTR (-EINVAL ); - goto out; - } -for_each_member (i, type, member) {if (!member->name_off) {/* Anonymous union/struct: push it for later use */ -if (btf_type_skip_modifiers (btf, member->type, &tid) && + mtype =btf_type_skip_modifiers (btf, member->type, &tid); +if (mtype &&btf_type_is_struct (mtype) && top <BTF_ANON_STACK_MAX ) { anon_stack[top].tid = tid; anon_stack[top++].offset = cur_offset +
Greg Kroah-Hartman
maintainerPATCH 76/1518 usb: cdnsp: fix wakeup from S3 after controller context loss
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pawel Laszczak <[email protected]>
[ Upstream commit eae6460f617382044c5afe5ef202f4d8b2c099b5 ]
CDNSP controller may lose its runtime register programming across S3 suspend/resume, depending on SoC power domain configuration. After resume the operational and interrupter registers may contain reset values, which prevents the gadget side from recovering correctly and breaks wakeup from S3.
Fix this by detecting whether the controller lost its register context after resume and handling both cases:
- If context was lost (CFG_3XPORT_U1_PIPE_CLK_GATE_EN set or power lost): reset the controller and reprogram the state required for normal operation, including the command ring, DCBAA pointer, doorbell base, event ring, ERST base/size and event ring dequeue pointer.
- If context was retained: restart the controller directly without reprogramming registers. Issue a wakeup if the link was in U3 before suspend.
Move the basic controller register programming out of the one-time memory initialization path and make it reusable from the resume path. Also separate ring allocation from ring initialization so that rings can be reinitialized without reallocating DMA memory.
Always perform the full suspend sequence regardless of the current link state. Previously, if the device was already in U3, the suspend callback returned early without stopping the controller, which could lead to commands being issued on a disabled slot during resume.
--- drivers/usb/cdns3/cdnsp-gadget.c | 110 +++++++++++++++++++++++++++++++++++++-- drivers/usb/cdns3/cdnsp-gadget.h | 1 drivers/usb/cdns3/cdnsp-mem.c | 98 ++++++++++++---------------------- 3 files changed, 142 insertions(+), 67 deletions(-)
drivers/usb/cdns3/cdnsp-gadget.c +106 -4
@@ -1820,6 +1820,82 @@ static void cdnsp_get_rev_cap(struct cdn readl(&pdev->rev_cap->tx_buff_size)); } +static void cdnsp_set_event_deq (struct cdnsp_device *pdev) +{ +dma_addr_t deq; +u64 temp; + + deq =cdnsp_trb_virt_to_dma (pdev->event_ring->deq_seg, + pdev->event_ring->dequeue); + +/* Update controller event ring dequeue pointer */ + temp =cdnsp_read_64 (&pdev->ir_set->erst_dequeue); + temp &=ERST_PTR_MASK ; + +/* +* Don't clear the EHB bit (which is RW1C) because +* there might be more events to service. +*/ + temp &= ~ERST_EHB ; + +cdnsp_write_64 (((u64 )deq & (u64 )~ERST_PTR_MASK ) | temp, + &pdev->ir_set->erst_dequeue); +} + +static void cdnsp_add_interrupter (struct cdnsp_device *pdev) +{ +u64 erst_base; +u32 erst_size; + +/* Set ERST count with the number of entries in the segment table. */ + erst_size =readl (&pdev->ir_set->erst_size); + erst_size &=ERST_SIZE_MASK ; + erst_size |=ERST_NUM_SEGS ; +writel (erst_size, &pdev->ir_set->erst_size); + +/* Set the segment table base address. */ + erst_base =cdnsp_read_64 (&pdev->ir_set->erst_base); + erst_base &=ERST_PTR_MASK ; + erst_base |= (pdev->erst.erst_dma_addr & (u64 )~ERST_PTR_MASK ); +cdnsp_write_64 (erst_base, &pdev->ir_set->erst_base); + +/* Set the event ring dequeue address. */ +cdnsp_set_event_deq (pdev); +} + +/* Set up basic CDNSP registers */ +static void cdnsp_init (struct cdnsp_device *pdev) +{ +unsigned int val; +u64 val_64; + + val =readl (&pdev->op_regs->config_reg); + val |= ((val & ~MAX_DEVS ) |CDNSP_DEV_MAX_SLOTS ) |CONFIG_U3E ; +writel (val, &pdev->op_regs->config_reg); + +/* Initialize the Command ring */ +cdnsp_ring_init (pdev, pdev->cmd_ring); + +/* Set the address in the Command Ring Control register */ + val_64 =cdnsp_read_64 (&pdev->op_regs->cmd_ring); + val_64 = (val_64 & (u64 )CMD_RING_RSVD_BITS ) | + (pdev->cmd_ring->first_seg->dma & (u64 )~CMD_RING_RSVD_BITS ) | + pdev->cmd_ring->cycle_state; +cdnsp_write_64 (val_64, &pdev->op_regs->cmd_ring); + +/* Set Device Context Base Address Array pointer */ +cdnsp_write_64 (pdev->dcbaa->dma, &pdev->op_regs->dcbaa_ptr); + +/* Set Doorbell array pointer */ + val =readl (&pdev->cap_regs->db_off); + val &=DBOFF_MASK ; + pdev->dba = (void __iomem *)pdev->cap_regs + val; + +/* Initialize the Primary interrupter */ +cdnsp_ring_init (pdev, pdev->event_ring); +cdnsp_add_interrupter (pdev); +} +static int cdnsp_gen_setup (struct cdnsp_device *pdev) {int ret;
@@ -1885,6 +1961,8 @@ static int cdnsp_gen_setup(struct cdnsp_if (ret)return ret; +cdnsp_init (pdev); +/* * Software workaround for U1: after transition * to U1 the controller starts gating clock, and in some cases,
@@ -2015,9 +2093,6 @@ static int cdnsp_gadget_suspend(struct cstruct cdnsp_device *pdev = cdns->gadget_dev;unsigned long flags; -if (pdev->link_state ==XDEV_U3 ) -return 0 ; -spin_lock_irqsave (&pdev->lock, flags);cdnsp_disconnect_gadget (pdev);cdnsp_stop (pdev);
@@ -2031,12 +2106,38 @@ static int cdnsp_gadget_resume(struct cdstruct cdnsp_device *pdev = cdns->gadget_dev;enum usb_device_speed max_speed;unsigned long flags; +bool context_lost; +u32 val;int ret;if (!pdev->gadget_driver)return 0 ;spin_lock_irqsave (&pdev->lock, flags); + val =readl (&pdev->port3x_regs->mode_2); + context_lost = !!(val &CFG_3XPORT_U1_PIPE_CLK_GATE_EN ) || lost_power; + +if (context_lost) { +cdnsp_halt (pdev); +cdnsp_set_apb_timeout_value (pdev); + +/* Reset the internal controller memory state and registers. */ + ret =cdnsp_reset (pdev); +if (ret) + goto unlock; + + val =readl (&pdev->port3x_regs->mode_2); + val &= ~CFG_3XPORT_U1_PIPE_CLK_GATE_EN ; +writel (val, &pdev->port3x_regs->mode_2); + +cdnsp_clear_cmd_ring (pdev); + +memset (pdev->event_ring->first_seg->trbs,0 , +sizeof (union cdnsp_trb ) * (TRBS_PER_SEGMENT )); + +cdnsp_init (pdev); + } + max_speed = pdev->gadget_driver->max_speed;/* Limit speed if necessary. */
@@ -2044,9 +2145,10 @@ static int cdnsp_gadget_resume(struct cd ret =cdnsp_run (pdev, max_speed); -if (pdev->link_state ==XDEV_U3 ) +if (!context_lost && pdev->link_state ==XDEV_U3 )__cdnsp_gadget_wakeup (pdev); +unlock:spin_unlock_irqrestore (&pdev->lock, flags);return ret;
drivers/usb/cdns3/cdnsp-gadget.h +1 -0
@@ -1509,6 +1509,7 @@ int cdnsp_endpoint_init(struct cdnsp_devint cdnsp_ring_expansion (struct cdnsp_device *pdev,struct cdnsp_ring *ring,unsigned int num_trbs,gfp_t flags); +void cdnsp_ring_init (struct cdnsp_device *pdev,struct cdnsp_ring *ring);struct cdnsp_ring *cdnsp_dma_to_transfer_ring (struct cdnsp_ep *ep,u64 address); int cdnsp_alloc_stream_info(struct cdnsp_device *pdev, struct cdnsp_ep *pep,
drivers/usb/cdns3/cdnsp-mem.c +35 -63
166 lines not on this page · raw message
Greg Kroah-Hartman
maintainerPATCH 77/1518 usb: gadget: f_mass_storage: fix null pointer dereference in fsg_common_set_num_buffers()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jeffin Philip <[email protected]>
[ Upstream commit 2c0f5ca48674a5b5f9fa4a9c3325aa48053af0bc ]
Previously fsg_num_buffers_validate() was removed as it was not necessary due to Kconfig setting the limits for n from 2 to 256 with default as 2. However, setting the page content in such a way that kstrtou8() reflects n value as either 0 or 1 bypasses these restrictions leading to a null pointer dereference if n is 0. Fix this by adding a check for n < 2 and returning -EINVAL if n is either 0 or 1 consistent with Kconfig logic.
--- drivers/usb/gadget/function/f_mass_storage.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/usb/gadget/function/f_mass_storage.c +3 -0
@@ -2748,6 +2748,9 @@ int fsg_common_set_num_buffers(struct fsstruct fsg_buffhd *bh, *buffhds;int i; +if (n <2 ) +return -EINVAL ; + buffhds =kcalloc (n,sizeof (*buffhds),GFP_KERNEL );if (!buffhds)return -ENOMEM ;
Greg Kroah-Hartman
maintainerPATCH 78/1518 wifi: rtw89: pci: add .shutdown callback to stop rfkill polling on reboot
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: "Yuhang.chen" <[email protected]>
[ Upstream commit 667c12782aaf8dd3cb2213e528fe63a73cb63345 ]
Since the hardware rfkill polling was introduced, arm64 platforms can panic with an asynchronous SError during warm reboot:
SError Interrupt on CPU8, code 0x00000000be000011 -- SError
Workqueue: events_power_efficient rfkill_poll [rfkill]
rtw89_pci_ops_read8+0x94/0x160 [rtw89_pci]
rtw89_core_rfkill_poll+0x50/0x1e0 [rtw89_core]
rtw89_ops_rfkill_poll+0x40/0x68 [rtw89_core]
ieee80211_rfkill_poll+0x3c/0x70 [mac80211]
cfg80211_rfkill_poll+0x40/0x2a0 [cfg80211]
rfkill_poll+0x30/0x88 [rfkill]
Kernel panic - not syncing: Asynchronous SError InterruptOn the reboot path the kernel only runs device_shutdown(), which calls each driver's .shutdown callback; .remove is not invoked. The rtw89 PCI driver had no .shutdown callback, so nothing stopped the rfkill polling work while the platform was tearing the PCIe link down. Once the link is gone, the next MMIO read from the poll handler targets a non-responding device and is reported as a fatal asynchronous SError on arm64.
Add rtw89_pci_shutdown(), wired to all rtw89 PCI device drivers, which sets a new RTW89_FLAG_SHUTDOWN flag (mirroring the USB RTW89_FLAG_UNPLUGGED pattern). When the flag is set, rtw89_ops_rfkill_poll() returns early, so no MMIO read is issued to the chip after shutdown begins and the SError no longer occurs.
This does not call the full .remove path from .shutdown, to keep the shutdown handler minimal and avoid running the non-idempotent teardown twice.
--- drivers/net/wireless/realtek/rtw89/core.h | 1 + drivers/net/wireless/realtek/rtw89/mac80211.c | 3 ++- drivers/net/wireless/realtek/rtw89/pci.c | 13 +++++++++++++ drivers/net/wireless/realtek/rtw89/pci.h | 1 + drivers/net/wireless/realtek/rtw89/rtw8851be.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852ae.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852be.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852bte.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852ce.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8922ae.c | 1 + 10 files changed, 23 insertions(+), 1 deletion(-)
drivers/net/wireless/realtek/rtw89/core.h +1 -0
@@ -5042,6 +5042,7 @@ enum rtw89_flags {RTW89_FLAG_CHANGING_INTERFACE ,RTW89_FLAG_HW_RFKILL_STATE ,RTW89_FLAG_UNPLUGGED , +RTW89_FLAG_SHUTDOWN , NUM_OF_RTW89_FLAGS, };
drivers/net/wireless/realtek/rtw89/mac80211.c +2 -1
@@ -1879,7 +1879,8 @@ static void rtw89_ops_rfkill_poll(structlockdep_assert_wiphy (hw->wiphy);/* wl_disable GPIO get floating when entering LPS */ -if (test_bit (RTW89_FLAG_RUNNING , rtwdev->flags)) +if (test_bit (RTW89_FLAG_RUNNING , rtwdev->flags) || +test_bit (RTW89_FLAG_SHUTDOWN , rtwdev->flags))return ;rtw89_core_rfkill_poll (rtwdev, false);
drivers/net/wireless/realtek/rtw89/pci.c +13 -0
@@ -4829,6 +4829,19 @@ void rtw89_pci_remove(struct pci_dev *pd }EXPORT_SYMBOL (rtw89_pci_remove); +void rtw89_pci_shutdown (struct pci_dev *pdev) +{ +struct ieee80211_hw *hw =pci_get_drvdata (pdev); +struct rtw89_dev *rtwdev; + +if (!hw) +return ; + + rtwdev = hw->priv; +set_bit (RTW89_FLAG_SHUTDOWN , rtwdev->flags); +} +EXPORT_SYMBOL (rtw89_pci_shutdown); +MODULE_AUTHOR ("Realtek Corporation" );MODULE_DESCRIPTION ("Realtek PCI 802.11ax wireless driver" );MODULE_LICENSE ("Dual BSD/GPL" );
drivers/net/wireless/realtek/rtw89/pci.h +1 -0
@@ -1737,6 +1737,7 @@ struct pci_device_id;int rtw89_pci_probe (struct pci_dev *pdev,const struct pci_device_id *id);void rtw89_pci_remove (struct pci_dev *pdev); +void rtw89_pci_shutdown (struct pci_dev *pdev);void rtw89_pci_basic_cfg (struct rtw89_dev *rtwdev,bool resume);void rtw89_pci_ops_reset (struct rtw89_dev *rtwdev);int rtw89_pci_ltr_set (struct rtw89_dev *rtwdev,bool en);
drivers/net/wireless/realtek/rtw89/rtw8851be.c +1 -0
@@ -92,6 +92,7 @@ static struct pci_driver rtw89_8851be_dr .id_table = rtw89_8851be_id_table, .probe = rtw89_pci_probe, .remove = rtw89_pci_remove, + .shutdown = rtw89_pci_shutdown, .driver.pm = &rtw89_pm_ops, .err_handler = &rtw89_pci_err_handler, };
drivers/net/wireless/realtek/rtw89/rtw8852ae.c +1 -0
@@ -94,6 +94,7 @@ static struct pci_driver rtw89_8852ae_dr .id_table = rtw89_8852ae_id_table, .probe = rtw89_pci_probe, .remove = rtw89_pci_remove, + .shutdown = rtw89_pci_shutdown, .driver.pm = &rtw89_pm_ops, .err_handler = &rtw89_pci_err_handler, };
drivers/net/wireless/realtek/rtw89/rtw8852be.c +1 -0
@@ -96,6 +96,7 @@ static struct pci_driver rtw89_8852be_dr .id_table = rtw89_8852be_id_table, .probe = rtw89_pci_probe, .remove = rtw89_pci_remove, + .shutdown = rtw89_pci_shutdown, .driver.pm = &rtw89_pm_ops, .err_handler = &rtw89_pci_err_handler, };
drivers/net/wireless/realtek/rtw89/rtw8852bte.c +1 -0
@@ -98,6 +98,7 @@ static struct pci_driver rtw89_8852bte_d .id_table = rtw89_8852bte_id_table, .probe = rtw89_pci_probe, .remove = rtw89_pci_remove, + .shutdown = rtw89_pci_shutdown, .driver.pm = &rtw89_pm_ops, .err_handler = &rtw89_pci_err_handler, };
drivers/net/wireless/realtek/rtw89/rtw8852ce.c +1 -0
@@ -121,6 +121,7 @@ static struct pci_driver rtw89_8852ce_dr .id_table = rtw89_8852ce_id_table, .probe = rtw89_pci_probe, .remove = rtw89_pci_remove, + .shutdown = rtw89_pci_shutdown, .driver.pm = &rtw89_pm_ops, .err_handler = &rtw89_pci_err_handler, };
drivers/net/wireless/realtek/rtw89/rtw8922ae.c +1 -0
@@ -109,6 +109,7 @@ static struct pci_driver rtw89_8922ae_dr .id_table = rtw89_8922ae_id_table, .probe = rtw89_pci_probe, .remove = rtw89_pci_remove, + .shutdown = rtw89_pci_shutdown, .driver.pm = &rtw89_pm_ops_be, .err_handler = &rtw89_pci_err_handler, };
Greg Kroah-Hartman
maintainerPATCH 79/1518 dm-pcache: reject a kset that overruns its segment
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bryam Vargas <[email protected]>
[ Upstream commit 7ac1f10f987a2ffae4aecf0e2ceca8f552b665cb ]
cache_replay(), the writeback worker and the GC worker read a kset of get_kset_onmedia_size() bytes and advance the position by it. A forged key_num makes that size exceed the segment's remaining space, so the advance walks past the segment and trips the cache_pos_advance() BUG_ON.
Reject a kset whose on-media size exceeds cache_seg_remain() before use.
--- drivers/md/dm-pcache/cache.h | 1 + drivers/md/dm-pcache/cache_gc.c | 5 +++++ drivers/md/dm-pcache/cache_key.c | 5 +++++ drivers/md/dm-pcache/cache_writeback.c | 8 ++++++++ 4 files changed, 19 insertions(+)
drivers/md/dm-pcache/cache.h +1 -0
@@ -180,6 +180,7 @@ struct pcache_cache {u32 advance;int ret; } writeback_ctx; +atomic_t writeback_errors;char gc_kset_onmedia_buf[PCACHE_KSET_ONMEDIA_SIZE_MAX ];struct delayed_work gc_work;
drivers/md/dm-pcache/cache_gc.c +5 -0
@@ -134,6 +134,11 @@ void pcache_cache_gc_fn(struct work_strucontinue ; } +if (get_kset_onmedia_size (kset_onmedia) >cache_seg_remain (&key_tail)) { +atomic_inc (&cache->gc_errors); +return ; + } +for (i =0 ; i < kset_onmedia->key_num; i++) {struct pcache_cache_key key_tmp = {0 };
drivers/md/dm-pcache/cache_key.c +5 -0
@@ -811,6 +811,11 @@ int cache_replay(struct pcache_cache *ca }/* Replay the kset and check for errors. */ +if (get_kset_onmedia_size (kset_onmedia) >cache_seg_remain (pos)) { + ret = -EIO ; + goto out; + } + ret =kset_replay (cache, kset_onmedia);if (ret) goto out;
drivers/md/dm-pcache/cache_writeback.c +8 -0
@@ -229,6 +229,9 @@ void cache_writeback_fn(struct work_struif (pcache_is_stopping (pcache)) goto unlock; +if (atomic_read (&cache->writeback_errors)) + goto unlock; + kset_onmedia = (struct pcache_cache_kset_onmedia *)cache->wb_kset_onmedia_buf;mutex_lock (&cache->dirty_tail_lock);
@@ -246,6 +249,11 @@ void cache_writeback_fn(struct work_stru goto queue_work; } +if (get_kset_onmedia_size (kset_onmedia) >cache_seg_remain (&dirty_tail)) { +atomic_inc (&cache->writeback_errors); + goto unlock; + } + ret =cache_kset_insert_tree (cache, kset_onmedia);if (ret) { delay =PCACHE_CACHE_WRITEBACK_INTERVAL ;
Greg Kroah-Hartman
maintainerPATCH 80/1518 dm-pcache: bound the logical key offset from persistent memory
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bryam Vargas <[email protected]>
[ Upstream commit 97fc4b53dbe4a983fdf093243067fa6a64562307 ]
cache_key_decode() takes a key's logical off from the cache device and later indexes req_key_tree->subtrees[] by it in get_subtree(). An off past the device forms a subtree pointer outside the array, which rb_insert() writes through during replay.
Reject a key of zero length, or whose off+len (computed in 64 bits) exceeds the device size, before it is used.
--- drivers/md/dm-pcache/cache_key.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/md/dm-pcache/cache_key.c +9 -0
@@ -90,10 +90,19 @@ int cache_key_decode(struct pcache_cache struct pcache_cache_key *key) {struct dm_pcache *pcache =CACHE_TO_PCACHE (cache); +u64 dev_bytes = (u64 )cache->dev_size <<SECTOR_SHIFT ; key->off = key_onmedia->off; key->len = key_onmedia->len; +if (key_onmedia->len ==0 || + key_onmedia->len > dev_bytes || + key_onmedia->off > dev_bytes - key_onmedia->len) { +pcache_dev_err (pcache,"key off %llu + len %u exceeds device size\n" , + key_onmedia->off, key_onmedia->len); +return -EIO ; + } + key->cache_pos.cache_seg = &cache->segments[key_onmedia->cache_seg_id]; key->cache_pos.seg_off = key_onmedia->cache_seg_off;
Greg Kroah-Hartman
maintainerPATCH 81/1518 dm-pcache: validate the persisted dirty_tail chain at load
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bryam Vargas <[email protected]>
[ Upstream commit 58d620ee9e01d4bdbceaf2ae1450d307a2a9d58b ]
The writeback worker follows the persisted dirty_tail chain, which is decoded from the cache device independently of the key_tail chain that cache_replay() walks and bounds. A crafted image, whose on-media fields are authenticated only by a crc32c with a fixed seed, can aim dirty_tail at a chain of last ksets that never terminates, so cache_writeback_fn() re-arms itself with no delay forever.
Walk the dirty_tail chain once at load with the same hop cap cache_replay() uses and fail the table load with -EIO if it does not reach an end within n_segs hops.
--- drivers/md/dm-pcache/cache.c | 7 +++ drivers/md/dm-pcache/cache.h | 2 + drivers/md/dm-pcache/cache_key.c | 69 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+)
drivers/md/dm-pcache/cache.c +7 -0
@@ -197,6 +197,7 @@ static int cache_tail_init(struct pcache {struct dm_pcache *pcache =CACHE_TO_PCACHE (cache);bool new_cache = !(cache->cache_info.flags &PCACHE_CACHE_FLAGS_INIT_DONE ); +int ret;if (new_cache) {__set_bit (0 , cache->seg_map);
@@ -213,6 +214,12 @@ static int cache_tail_init(struct pcachepcache_dev_err (pcache,"Corrupted key tail or dirty tail.\n" );return -EIO ; } + + ret =cache_verify_dirty_tail (cache); +if (ret) { +pcache_dev_err (pcache,"dirty tail chain does not terminate (crafted cache image?)\n" ); +return ret; + } }return 0 ;
drivers/md/dm-pcache/cache.h +2 -0
@@ -652,6 +652,8 @@ static inline int cache_decode_dirty_tai &cache->dirty_tail_index); } +int cache_verify_dirty_tail (struct pcache_cache *cache); +int pcache_cache_init (void );void pcache_cache_exit (void );#endif /* _PCACHE_CACHE_H */
drivers/md/dm-pcache/cache_key.c +69 -0
75 lines not on this page · raw message
Greg Kroah-Hartman
maintainerPATCH 82/1518 KVM: arm64: nv: Fully update VNCR fixmap state in kvm_translate_vncr()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Oliver Upton <[email protected]>
[ Upstream commit 5949004d7032767e8fde1e8c986a33f241b2a192 ]
kvm_translate_vncr() first invalidates the pseudo-TLB entry and corresponding fixmap in anticipation of installing a new translation.
While the fixmap invalidation does clear the mapping from host stage-1, it does not clear the L1_VNCR_MAPPED flag. Depending on the state of the VNCR TLB at vcpu_put(), this could potentially precipitate a BUG_ON() if vt->cpu is reset.
Share a helper with kvm_vcpu_put_hw_mmu(), ensuring that KVM's view of the VNCR fixmap is in sync with the state of the VNCR TLB. Give it a slightly verbose name to make it obvious that it is meant to be used local to a CPU, unlike other VNCR TLB maintenance.
Stable-dep-of: 38640bc32be3 ("KVM: arm64: Handle VNCR TLB invalidation race with vcpu_put() VNCR unmapping")
--- arch/arm64/kvm/nested.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-)
arch/arm64/kvm/nested.c +17 -10
@@ -771,18 +771,24 @@ void kvm_vcpu_load_hw_mmu(struct kvm_vcp } } +static void this_cpu_reset_vncr_fixmap (struct kvm_vcpu *vcpu) +{ +if (!host_data_test_flag (L1_VNCR_MAPPED )) +return ; + +BUG_ON (vcpu->arch.vncr_tlb->cpu !=smp_processor_id ()); +BUG_ON (is_hyp_ctxt (vcpu)); + +clear_fixmap (vncr_fixmap (vcpu->arch.vncr_tlb->cpu)); + vcpu->arch.vncr_tlb->cpu =-1 ; +host_data_clear_flag (L1_VNCR_MAPPED ); +atomic_dec (&vcpu->kvm->arch.vncr_map_count); +} +void kvm_vcpu_put_hw_mmu (struct kvm_vcpu *vcpu) {/* Unconditionally drop the VNCR mapping if we have one */ -if (host_data_test_flag (L1_VNCR_MAPPED )) { -BUG_ON (vcpu->arch.vncr_tlb->cpu !=smp_processor_id ()); -BUG_ON (is_hyp_ctxt (vcpu)); - -clear_fixmap (vncr_fixmap (vcpu->arch.vncr_tlb->cpu)); - vcpu->arch.vncr_tlb->cpu =-1 ; -host_data_clear_flag (L1_VNCR_MAPPED ); -atomic_dec (&vcpu->kvm->arch.vncr_map_count); - } +this_cpu_reset_vncr_fixmap (vcpu);/* * Keep a reference on the associated stage-2 MMU if the vCPU is
@@ -1244,7 +1250,8 @@ static int kvm_translate_vncr(struct kvm* We also prepare the next walk wilst we're at it. */ scoped_guard(write_lock, &vcpu->kvm->mmu_lock) { -invalidate_vncr (vt); +this_cpu_reset_vncr_fixmap (vcpu); + vt->valid = false; vt->wi = (struct s1_walk_info ) { .regime =TR_EL20 ,
Greg Kroah-Hartman
maintainerPATCH 83/1518 KVM: arm64: Handle VNCR TLB invalidation race with vcpu_put() VNCR unmapping
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Marc Zyngier <[email protected]>
[ Upstream commit 38640bc32be3fcf9526d477155bc19d3f146231f ]
While VNCR TLB invalidation always occurs under the MMU lock, vcpu_put() doesn't, while it unmaps the VNCR page.
The problem is that the invalidation evaluates vncr_tlb::cpu to decide whether an unmapping needs to take place (cpu != -1) before performing it. On the other hand, this_cpu_reset_vncr_fixmap() unconditionally unmaps if L1_VNCR_MAPPED is set.
These two obviously can race, with a TOCTOU pattern on the TLBI path, and a BUG_ON() on the vcpu_put() path. And the two can end-up calling vncr_fixmap(-1), with extra lethal effects.
Move the reset of vncr_tlb::cpu to -1 to a common function, and make this update atomic so that only a single thread can reset the field and perform the corresponding unmap. The vcpu_put() still need to unconditionally unmap the current VNCR to close another ugly race.
Finally, the assignment of vncr_tlb::cpu is moved to be kept in sync with the actual mapping, similar to L1_VNCR_MAPPED being set.
--- arch/arm64/kvm/nested.c | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-)
arch/arm64/kvm/nested.c +32 -10
@@ -27,7 +27,7 @@ struct vncr_tlb {bool hpa_writable;/* -1 when not mapped on a CPU */ -int cpu; +atomic_t cpu;/* * true if the TLB is valid. Can only be changed with the
@@ -771,16 +771,40 @@ void kvm_vcpu_load_hw_mmu(struct kvm_vcp } } +/* +* Unmapping an L1 VNCR can happen concurrently without the mmu lock being +* effective (vcpu_put() vs TLBI handling). The atomic_xchg below ensures +* that only one CPU sets it to -1 while getting a valid CPU number back. +*/ +static int unmap_l1_vncr (struct vncr_tlb *vt) +{ +int cpu =atomic_xchg_relaxed (&vt->cpu,-1 ); + +if (cpu !=-1 ) +clear_fixmap (vncr_fixmap (cpu)); + +return cpu; +} +static void this_cpu_reset_vncr_fixmap (struct kvm_vcpu *vcpu) {if (!host_data_test_flag (L1_VNCR_MAPPED ))return ; -BUG_ON (vcpu->arch.vncr_tlb->cpu !=smp_processor_id ());BUG_ON (is_hyp_ctxt (vcpu)); -clear_fixmap (vncr_fixmap (vcpu->arch.vncr_tlb->cpu)); - vcpu->arch.vncr_tlb->cpu =-1 ; +/* +* Unconditionally unmap the local VNCR if we have lost the race +* against a concurrent TLBI. Otherwise we could end-up running +* another vcpu with VNCR still mapped if the TLBI thread is +* preempted between the exchange and the clear_fixmap(). +* +* Note that we do not care about the TLBI nuking the fixmap behind +* the back of an running vcpu. This will only generate a fault and +* possibly a retranslation. +*/ +if (unmap_l1_vncr (vcpu->arch.vncr_tlb) ==-1 ) +clear_fixmap (vncr_fixmap (smp_processor_id ()));host_data_clear_flag (L1_VNCR_MAPPED );atomic_dec (&vcpu->kvm->arch.vncr_map_count); }
@@ -870,8 +894,7 @@ u16 get_asid_by_regime(struct kvm_vcpu *static void invalidate_vncr (struct vncr_tlb *vt) { vt->valid = false; -if (vt->cpu !=-1 ) -clear_fixmap (vncr_fixmap (vt->cpu)); +unmap_l1_vncr (vt); } static bool vncr_tlb_intersects(struct vncr_tlb *vt, u64 addr,
@@ -1321,7 +1344,7 @@ static int kvm_translate_vncr(struct kvm vt->hpa = pfn <<PAGE_SHIFT ; vt->hpa_writable = writable; vt->valid = true; - vt->cpu =-1 ; +atomic_set (&vt->cpu,-1 );kvm_make_request (KVM_REQ_MAP_L1_VNCR_EL2 , vcpu);kvm_release_faultin_page (vcpu->kvm, page, false, vt->wr.pw && vt->hpa_writable);
@@ -1452,8 +1475,6 @@ static void kvm_map_l1_vncr(struct kvm_vif (vt->wr.nG &&get_asid_by_regime (vcpu,TR_EL20 ) != vt->wr.asid)return ; - vt->cpu =smp_processor_id (); -if (vt->hpa_writable && vt->wr.pw && vt->wr.pr) prot =PAGE_KERNEL ;else if (vt->wr.pr)
@@ -1468,7 +1489,8 @@ static void kvm_map_l1_vncr(struct kvm_v* FIXME: WO doesn't work at all, need POE support in the kernel. */ if (pgprot_val (prot) !=pgprot_val (PAGE_NONE )) { -__set_fixmap (vncr_fixmap (vt->cpu), vt->hpa, prot); +atomic_set (&vt->cpu,smp_processor_id ()); +__set_fixmap (vncr_fixmap (atomic_read (&vt->cpu)), vt->hpa, prot);host_data_set_flag (L1_VNCR_MAPPED );atomic_inc (&vcpu->kvm->arch.vncr_map_count); }
Greg Kroah-Hartman
maintainerPATCH 48/1518 tracing: Make printk_trace global for tracing system
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Steven Rostedt <[email protected]>
[ Upstream commit 1c53d781d42541adc5ba76b4f843a3ff382e01fb ]
The printk_trace is used to determine which trace_array trace_printk() writes to. By making it a global variable among the tracing subsystem it will allow the trace_printk functions to be moved out of trace.c and still have direct access to that variable.
Stable-dep-of: f2951ebd15c3 ("tracing: Take trace_array reference when opening options file")
--- kernel/trace/trace.c | 2 +- kernel/trace/trace.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
kernel/trace/trace.c +1 -1
@@ -537,7 +537,7 @@ static struct trace_array global_trace = .trace_flags = TRACE_DEFAULT_FLAGS, }; -static struct trace_array *printk_trace = &global_trace; +struct trace_array *printk_trace = &global_trace;/* List of trace_arrays interested in the top level trace_marker */ static LIST_HEAD (marker_copies);
kernel/trace/trace.h +2 -0
@@ -479,6 +479,8 @@ extern bool trace_clock_in_ns(struct traextern unsigned long trace_adjust_address (struct trace_array *tr,unsigned long addr); +extern struct trace_array *printk_trace; +/* * The global tracer (top) should be the first trace array added, * but we check the flag anyway.
Greg Kroah-Hartman
maintainerPATCH 84/1518 media: dt-bindings: nxp,imx8-isi: Drop fsl,blk-ctrl requirement for i.MX8ULP
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Guoniu Zhou <[email protected]>
[ Upstream commit fc312f830d8df6c082bd6f7250aa5c0ff063eea4 ]
The i.MX8ULP variant does not require the fsl,blk-ctrl property. Add fsl,imx8ulp-isi to the exception list alongside fsl,imx91-isi.
--- Documentation/devicetree/bindings/media/nxp,imx8-isi.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/media/nxp,imx8-isi.yaml +10 -1
@@ -66,7 +66,6 @@ required: - interrupts - clocks - clock-names - - fsl,blk-ctrl - ports allOf:
@@ -109,6 +108,16 @@ allOf: - port@0 - port@1 + - if: + properties: + compatible: + not: + contains: + const: fsl,imx8ulp-isi + then: + required: + - fsl,blk-ctrl + additionalProperties: false examples: