summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2026-09-28of/irq: Fix device node refcount leak in of_check_msi_parent()Fuad Tabba
of_msi_xlate() documents @msi_np as a filter when it points at a node on entry, handing back a reference only when it points at NULL. The msi-map branch does that. of_check_msi_parent() keeps the reference from the 1:1 msi-parent match either way. pci_msi_domain_get_msi_rid() is the only caller that passes a node in, from irq_domain_get_of_node(), and it puts nothing, so a 1:1 match there leaks the MSI controller node. Fixes: 119aaeed0b67 ("of/irq: Add msi-parent check to of_msi_xlate()") Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://lore.kernel.org/all/20260826113604.010C01F000E9@smtp.kernel.org/ Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev> Link: https://lore.kernel.org/all/20260826113604.010C01F000E9@smtp.kernel.org/ Link: https://patch.msgid.link/20260907112944.313618-2-fuad.tabba@linux.dev Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
2026-09-28Merge tag 'nvme-7.3-2026-09-25' of git://git.infradead.org/nvme into block-7.3Jens Axboe
Pull NVMe fixes from Keith: "- Fix use-after-free of the command effects log on multipath heads - Fix target namespace disable race with in-flight I/O and attribute changes - Fix out-of-bounds write in in-band authentication - Fix out-of-bounds reads parsing SGL segments and ANA logs - Fix zoned limits on multipath heads when the zone info query fails - Fix reservation preempt and abort matching against a nil host id - Fix lockdep key lifetime by reverting the per-socket dynamic keys and delaying socket reclassification past the TLS handshake - Fix controller reset and delete races that trigger spurious warnings - Add a dma pool alignment quirk for the Micron 4100AT - Preserve the target namespace device path on allocation failure - Fix -Wformat-security build warnings" * tag 'nvme-7.3-2026-09-25' of git://git.infradead.org/nvme: nvme-multipath: set BLK_FEAT_ZONED only after the zone info is known nvme: fix command effects log lifetime for multipath heads nvmet: don't allow I/O admission after percpu ns reference is killed nvmet: defer setting ns->enabled to false in nvmet_ns_disable() nvmet: copy the hostid into the ctrl before creating PR pc_refs nvmet-auth: fix out-of-bounds write in nvmet_auth_challenge() nvmet: pci-epf: reject too-short SGL segments nvme-multipath: fix underflow in ANA log bounds checks nvme: work around all -Wformat-security warnings nvme: work around -Wformat-security warning nvme: do not reset controllers in NVME_CTRL_NEW state nvme-tcp: delay nvme_tcp_reclassify_socket() Revert "nvme-tcp: lockdep: use dynamic lockdep keys per socket instance" nvmet: preserve device path on allocation failure nvme-fc: do not warn on controller removal race nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for Micron 4100AT
2026-09-28pmdomain: rockchip: drop duplicated errno from supply failure messageShawn Lin
dev_err_probe() already appends the error code. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
2026-09-28pmdomain: Merge branch fixes into nextUlf Hansson
Merge the pmdomain fixes for v7.3-rc[n] into the next branch, to allow them to get tested together with the pmdomain changes that are targeted for the next release. Signed-off-by: Ulf Hansson <ulfh@kernel.org>
2026-09-28pmdomain: rockchip: don't ignore clock lookup errors on attachShawn Lin
rockchip_pd_attach_dev() treated every of_clk_get() error as the end of the clock list, so a clock that exists but is not available yet (e.g. -EPROBE_DEFER) was silently skipped and the device ended up without pm_clk management. Only -ENOENT means there are no more clocks. Fixes: 7c696693a4f5 ("soc: rockchip: power-domain: Add power domain driver") Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson <ulfh@kernel.org>
2026-09-28pmdomain: rockchip: fix clock leak on domain probe failureShawn Lin
When of_clk_get() failed in the middle of the loop, the references of the clocks acquired so far were leaked instead of being released by the error path. Fixes: d909072d0521 ("soc: rockchip: power-domain: use clk_bulk APIs") Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson <ulfh@kernel.org>
2026-09-28pmdomain: rockchip: propagate subdomain add errorsShawn Lin
rockchip_pm_add_subdomain() ignored the return value of its recursive call, so a failure deeper in the hierarchy was silently dropped and probe still succeeded with an incomplete domain tree. Fixes: 6be05b5ec161 ("soc: rockchip: power-domain: add support for sub-power domains") Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson <ulfh@kernel.org>
2026-09-28pmdomain: core: add support system-wide resume latency constraintsKevin Hilman (TI)
In addition to checking for CPU latency constraints when checking if OK to power down a domain, also check for QoS latency constraints in all devices of a domain and use that in determining the final latency constraint to use for the domain. Since cpu_system_power_down_ok() is used for system-wide suspend, the per-device constratints are only relevant if the LATENCY_SYS QoS flag is set. Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Reviewed-by: Kendall Willis <k-willis@ti.com> Signed-off-by: Kevin Hilman (TI) <khilman@baylibre.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
2026-09-28pmdomain: core: add genpd_for_each_child() helperKevin Hilman (TI)
Add a new internal helper function genpd_for_each_child() that recursively iterates over all devices in a PM domain and its child domains (subdomains). This helper is useful for governors and other core PM domain code that needs to examine or apply operations to all devices within a domain hierarchy. The function takes a callback that is invoked for each device, and supports early termination if the callback returns a non-zero value. The helper is defined in a new internal header drivers/pmdomain/core.h and implemented in drivers/pmdomain/core.c, making it available to other PM domain subsystem components. The first user of this helper is the cpu_system_power_down_ok() governor function, which uses it to check device QoS latency constraints across the entire domain hierarchy. Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Signed-off-by: Kevin Hilman (TI) <khilman@baylibre.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
2026-09-28firewire: cdev: use kzalloc_flex() to allocate structure with byte arrayTakashi Sakamoto
Some event structures have a trailing flexible array member of bytes to store event-specific data. Use kzalloc_flex() to allocate the structure together with storage for the flexible array member. Link: https://lore.kernel.org/r/20260928125718.50974-4-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2026-09-28firewire: cdev: use kzalloc_flex() to allocate structure with quadlet arrayTakashi Sakamoto
Some event structures have a trailing flexible array member of quadlets to store event-specific data. Use kzalloc_flex() to allocate the structure together with storage for the flexible array member. Link: https://lore.kernel.org/r/20260928125718.50974-3-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2026-09-28firewire: core: use kzalloc_flex() to allocate structure with quadlet arrayTakashi Sakamoto
fw_core_handle_request() is now called in process context, so GFP_KERNEL is available. The fw_request structure has a trailing flexible array member of quadlets to store packet data. Use kzalloc_flex() to allocate the structure together with storage for the flexible array member. Link: https://lore.kernel.org/r/20260928125718.50974-2-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2026-09-28drm/exynos: fimd: fix clock leak on resume error pathjiawen
exynos_fimd_resume() can fail when clk_prepare_enable() succeeds for bus_clk but fails for lcd_clk. The function returns the error without disabling bus_clk, leaving it prepared and enabled. Disable bus_clk before returning the error to keep the clock state balanced. Signed-off-by: jiawen <1298662399@qq.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2026-09-28drm/exynos: vidi: use memdup_user() instead of kmalloc() and copy_from_user()Mohammad Shahid
Use memdup_user() to replace the open-coded kmalloc() and copy_from_user() sequence. This simplifies the code while preserving the existing behavior. This issue was reported by memdup_user.cocci. Signed-off-by: Mohammad Shahid <mdshahid03@gmail.com> Included linux/string.h header file on top of exynos_drm_vidi.c Signed-off-by: Inki Dae <inki.dae@samsung.com>
2026-09-28drm/exynos/fimd: fix register offset type in fimd_trigger()Chen-Yu Tsai
Sparse reports: exynos_drm_fimd.c:992:39: warning: incorrect type in initializer (different address spaces) exynos_drm_fimd.c:992:39: expected void *timing_base exynos_drm_fimd.c:992:39: got void [noderef] __iomem * exynos_drm_fimd.c:1005:33: warning: incorrect type in argument 1 (different address spaces) exynos_drm_fimd.c:1005:33: expected void const volatile [noderef] __iomem *addr exynos_drm_fimd.c:1005:33: got void * exynos_drm_fimd.c:1007:33: warning: incorrect type in argument 2 (different address spaces) exynos_drm_fimd.c:1007:33: expected void volatile [noderef] __iomem *addr exynos_drm_fimd.c:1007:33: got void * Add "__iomem" to *timing_base to fix its type. Fixes: 3854fab24e89 ("drm/exynos: fimd: support LCD I80 interface") Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2026-09-28spi: spi-qpic-snand: drop ecceng_to_qspi() macroGabor Juhos
The ecceng_to_qspi() macro is only used within the nand_to_qcom_snand() function. Drop the macro and use the respective container_of() macro call directly in the function instead to simplify the code. No functional changes. Signed-off-by: Gabor Juhos <j4g8y7@gmail.com> Link: https://patch.msgid.link/20260927-qpic-snand-drop-ecceng_to_qspi-v1-1-993e9ec1c2d4@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
2026-09-28ASoC: amd: Fix borrowed ACPI codec device referencesMark Brown
Yibo Tan <lhfff@tju.edu.cn> says: Two AMD machine drivers treat a borrowed ACPI physical device pointer as an owned reference. The ES8336 driver drops it on a GPIO lookup failure; the ACP3x driver drops it on an allocation failure and also stores it beyond probe. Both paths produced a KASAN use-after-free during device unregister in focused tests calling the production callbacks. The corresponding fixed tests reached the same failure paths without a kernel diagnostic. The tests did not exercise a complete sound card or physical hardware. The changed ACP3x object builds with W=1 with CONFIG_ACPI=y and CONFIG_ACPI=n. The ES8336 object builds with W=1 with CONFIG_ACPI=y. Link: https://patch.msgid.link/20260922185057.954150-1-lhfff@tju.edu.cn
2026-09-28RDMA/mlx5: Fix signed integer overflow in EQE qp_srq type shiftYishai Hadas
eqe->data.qp_srq.type is a u8. Shifting it left by MLX5_USER_INDEX_LEN (24) without a cast promotes it to signed int, causing undefined behaviour for values >= 128. All currently used type values are well below 128, so this does not manifest with current hardware. Cast to u32 before the shift to make the code well-defined across the full range. Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-16-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing itYishai Hadas
create_resource_common() inserted the resource into the radix tree before its initialization was complete. A firmware EQE in that window finds a zero refcount_t and calls refcount_inc() on it; the refcount API treats this as a use-after-free, saturates the counter, and permanently breaks the resource's lifecycle tracking. Move the initialization before the radix_tree_insert(). Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-15-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/mlx5: Set QP event handler before firmware QPC insertionYishai Hadas
Four QP creation paths assigned base->container_mibqp and base->mqp.event after the firmware create call that inserts the QP into dev->qp_table.tree. A firmware error EQE in that window reaches qp->event() with a NULL pointer. Move both assignments before the firmware call. Also set ibqp.qp_num inside mlx5_qpc_create_qp() before create_resource_common() so an EQE arriving early does not observe qp_num==0. In addition, add a WARN_ON_ONCE(!qp->event) guard in rsc_event_notifier() as a safeguard for future regressions. Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-14-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/mlx5: Set RQ event handler for raw-packet QPYishai Hadas
create_raw_packet_qp() creates a separate firmware RQ object but never assigned rq->base.mqp.event. Any firmware event on this resource (e.g. WQ_CATAS_ERROR, WQ_ACCESS_ERROR) calls through a NULL pointer. Set the event pointer before the RQ is inserted into the resource table. Fixes: 0fb2ed66a14c ("IB/mlx5: Add create and destroy functionality for Raw Packet QP") Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-13-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/mlx5: Set SRQ event handler before xarray insertionYishai Hadas
mlx5_cmd_create_srq() stores the SRQ into the xarray before srq->msrq.event was assigned. A firmware SRQ event arriving in that window calls through a NULL pointer. Move the assignment before mlx5_cmd_create_srq(). Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-12-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/mlx5: Set WQ event handler before firmware RQ insertionYishai Hadas
create_rq() inserts the RQ into dev->qp_table.tree, making it visible to rsc_event_notifier() before rwq->core_qp.event was assigned. A firmware WQ_CATAS_ERROR event in that window finds a NULL event pointer. Move the assignment before create_rq(). Fixes: 350d0e4c7e4b ("IB/mlx5: Track asynchronous events on a receive work queue") Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-11-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/mlx5: Fix mlx5_ib_dev_res_init() failure when XRC cap is absentYishai Hadas
mlx5_ib_dev_res_init() returns -EOPNOTSUPP when the firmware XRC capability is absent, failing driver probe on XRC-less devices. Make XRC optional throughout the devr resource path: initialize cq_lock and srq_lock unconditionally (needed for every QP creation), skip xrcd allocation and the XRC-type placeholder SRQ (s0) when xrc=0, and guard their cleanup paths accordingly. Fixes: f4375443b786 ("RDMA/mlx5: Get XRCD number directly for the internal use") Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-9-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/umem: Derive DMA direction from IB access flagsYishai Hadas
Map non-writable user memory DMA_TO_DEVICE: when no write access is granted, the NIC only reads the pages and DMA_BIDIRECTIONAL is unnecessarily broad. Where the IOMMU enforces direction this prevents the device writing to read-only buffers; where it does not the mapping is still semantically correct. Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-8-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/umem: Map CQ buffers DMA_FROM_DEVICEYishai Hadas
For a CQ ring the device writes CQEs and the CPU only reads. DMA_FROM_DEVICE is the correct direction. Use it explicitly in ib_umem_get_cq_buf() and ib_umem_get_cq_buf_or_va() rather than deriving it from the access flags: CQ callers pass IB_ACCESS_LOCAL_WRITE so that get_user_pages() pins a writable private page (FOLL_WRITE), which the device needs to DMA-write CQEs into. That flag would yield DMA_BIDIRECTIONAL from the access-flag derivation, which is wrong for the bus direction. Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-7-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/umem: Support an explicit DMA direction other than DMA_BIDIRECTIONALYishai Hadas
Add a dma_dir field to struct ib_umem to record the direction chosen at map time and reuse it at unmap. Thread an explicit dma_data_direction parameter through the internal pinning helpers so each caller can supply the direction that matches the device's actual access pattern. All existing callers still pass DMA_BIDIRECTIONAL, so this is a pure mechanism addition with no behavioural change. Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-6-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/umem: Reuse ib_umem_get_cq_buf_or_va() for VA-only CQ pinningYishai Hadas
Several drivers pin their CQ ring buffer via ib_umem_get_va() rather than the CQ-specific helper. Switch them to ib_umem_get_cq_buf_or_va() so the subsequent DMA_FROM_DEVICE change covers all CQ paths at once. For shared helpers used by both CQ and non-CQ callers (qedr, mana, erdma, hns) a new is_cq parameter selects the appropriate pinning function; non-CQ callers pass false. vmw_pvrdma's CQ is excluded: it embeds a ring-state header that the driver CPU-writes after polling, making it genuinely bidirectional. This is a pure refactor with no functional change. Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-5-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/vmw_pvrdma: Pin QP and SRQ rings writable to match device DMA write accessYishai Hadas
pvrdma embeds a pvrdma_ring_state header directly inside the QP and SRQ ring buffers, and the hypervisor writes cons_head into that header. Pinning with access=0 does not force a private page copy (no FOLL_WRITE), so the hypervisor may write into a shared page. Pass IB_ACCESS_LOCAL_WRITE for all three rings. The SRQ ring_state is not currently used by the driver but is pinned writable for consistency. Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver") Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-4-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/hns: Pin CQ buffer writable to match device DMA write accessYishai Hadas
alloc_cq_buf() leaves user_access zero-initialized, but the device writes CQEs into the CQ buffer. Set IB_ACCESS_LOCAL_WRITE so the buffer is pinned writable, matching the device's write access. Fixes: 744b7bdfa79e ("RDMA/hns: Support 0 hop addressing for CQE buffer") Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-3-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/erdma: Pin CQ buffer writable to match device DMA write accessYishai Hadas
erdma_init_user_cq() pins the CQ ring with access=0, but the device writes CQEs into it. Pass IB_ACCESS_LOCAL_WRITE so the buffer is pinned writable and marked dirty on unpin. Fixes: 155055771704 ("RDMA/erdma: Add verbs implementation") Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-2-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28RDMA/irdma: Free IRQ when CEQ vector mapping failsSerhat Kumral
irdma_cfg_ceq_vector() registers an IRQ handler before requesting the CEQ-to-vector mapping through the virtual channel. If the mapping fails, the function returns without releasing the IRQ resources. The caller destroys the CEQ, leaving the IRQ handler registered and potentially referencing freed memory. Call irdma_destroy_irq() on mapping failure to release the IRQ resources and drain the associated tasklet before the caller destroys the CEQ. Use the same dev_id passed to request_irq(), accounting for CEQ0 sharing its interrupt vector with the AEQ. Fixes: b800e82feba7 ("RDMA/irdma: Add GEN3 support for AEQ and CEQ") Assisted-by: Claude:claude-opus-5 Signed-off-by: Serhat Kumral <serhatkumral1@gmail.com> Link: https://patch.msgid.link/20260918110428.36586-1-serhatkumral1@gmail.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
2026-09-28platform/x86/intel/pmt: Do not remap when using callbacksMichael J. Ruhl
A callback indicates that the parent driver is responsible for accessing the data area. Creating a PMT memory remap is redundant. If a read_telem callback has been provided, do not create a remap. Enforce API usage where necessary. Clean up open coded resource usage. Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Link: https://patch.msgid.link/20260923181115.2514193-27-michael.j.ruhl@intel.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-09-28platform/x86/intel/pmt: Add register access callbacksMichael J. Ruhl
Some HW does not have direct MMIO access to PMT control and data features. Augment the current callback infrastructure (data access) to allow a registered driver to customize read/write access to the control paths for PMT usage. Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Link: https://patch.msgid.link/20260923181115.2514193-26-michael.j.ruhl@intel.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-09-28platform/x86/intel/pmt: refactor rc with a return valueMichael J. Ruhl
Upcoming changes will include possible failures from HW accesses. Refactor pmt_crashlog_rc() with a return value. Update all necessary usage to use the return code. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Link: https://patch.msgid.link/20260923181115.2514193-25-michael.j.ruhl@intel.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-09-28clk: renesas: r8a78000: Add SGASYNCD8_PERW_BUSWolfram Sang
Add support for the SGASYNCD8_PERW_BUS clock, which is a fixed 133 MHz clock serving as the functional clock parent for I2C cores 1 to 8. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/8c4912ada9c3d6776ae64d3896ffc1f45a98c51a.1790326477.git.geert+renesas@glider.be
2026-09-28Merge tag 'ath-next-20260927' of ↵Johannes Berg
git://git.kernel.org/pub/scm/linux/kernel/git/ath/ath Jeff Johnson says: ================== ath.git patches for v7.4 (PR #2) For ath10k, document NVMEM device tree bindings. For ath11k, fix an error path resource leak. For ath12k, fix monitor RX buffer lifecycle issues, properly align QMI memory to meet firmware requirements, extend datapath device stats coverage, and a few other cleanups. ================== Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-28wifi: libertas: fix RX OOB access from device-controlled pkt_ptrTianchu Chen
lbs_process_rxed_packet() computes the packet header pointer as skb->data + rxpd->pkt_ptr, where pkt_ptr is a 32-bit value supplied by the device, and never checks it against the packet length. The only validation (skb->len < ETH_HLEN + 8 + sizeof(struct rxpd)) bounds the total length, not pkt_ptr. A bogus device can report an arbitrary pkt_ptr: - the memcmp() against the RFC1042 header reads 6 bytes at pkt_ptr + 14, potentially past the skb buffer - if the compared bytes happen to match, the EthernetII header reconstruction writes 12 bytes at pkt_ptr + 8; - hdrchop derived from pkt_ptr is later passed to skb_pull(). Validate pkt_ptr before using it: it must leave room for a full struct rxpackethdr within the received frame. It is not expected to affect the driver behavior in most cases, only invalid pkt_ptr packets being dropped. Discovered by Atuin - Automated Vulnerability Discovery Engine. Assisted-by: LLM Signed-off-by: Tianchu Chen <flynnnchen@tencent.com> Link: https://patch.msgid.link/f22d4f23e5e54b1debd6038b3b75119f97920a73@linux.dev Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-28wifi: mwifiex: Reattach interfaces on suspend failureBrian Norris
If our .suspend() fails, we forget to unwind the early steps -- namely, re-attaching our network interfaces. This commonly occurs if, for example, we fail to program WoWLAN patterns to the device. Without this, the interface won't work again. Tested on a Rockchip RK3399 Gru/Kevin Chromebook, with Marvell 8997 PCIe WLAN. Signed-off-by: Brian Norris <briannorris@chromium.org> Link: https://patch.msgid.link/20260925172218.1.Ie4146d413a6be79caa11cf34e19b23f514ad3f5e@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-28wifi: b43legacy: work around stack frame size warningArnd Bergmann
I came across a rare warning in the b43legacy driver while building randconfig kernels using clang-21.1.8, with KASAN enabled: drivers/net/wireless/broadcom/b43legacy/main.c:3250:12: error: stack frame size (1392) exceeds limit (1280) in 'b43legacy_wireless_core_init' [-Werror,-Wframe-larger-than] 3250 | static int b43legacy_wireless_core_init(struct b43legacy_wldev *dev) | ^ There are no actual large variables on the stack here, just excessive spills, and the code looks fine otherwise, so this is really an optimization quirk in the compiler. Marking the prepare_phy_data_for_init() function as noinline completely avoids the issue, with no function in this file using more than 200 bytes of stack space, same as without KASAN. Link: https://pastebin.com/raw/KpV124Ep # .config Link: https://pastebin.com/CxWfsBN0 # assembler output, truncated Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20260925130749.4191347-1-arnd@kernel.org Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-28wifi: cw1200: fix link_id_db OOB access via device-controlled link IDTianchu Chen
cw1200_rx_cb() stores the link ID from the device-supplied WSM header (a 4-bit field, range 0-15) into priv->action_linkid for P2P public action frames without an upper bound check. The work handler cw1200_link_id_reset() then uses it to index link_id_db[], which has only CW1200_MAX_STA_IN_AP_MODE (5) entries, so a device reporting a link ID of 6-15 makes the driver read and write cw1200_common fields past the array (a status copy and a constant store onto adjacent work/lock/timer fields), corrupting driver state. The first link ID check in the same function (used for timestamp tracking) already validates against CW1200_MAX_STA_IN_AP_MODE and degrades out-of-range IDs to untracked handling, so out-of-range link IDs on the RX path are anticipated; the P2P remap branch was missed. Add the same bound to the remap branch. This is expected to keep driver behavior unchanged in most cases: the driver itself only assigns link IDs 1..5, and a P2P public action frame carrying any other ID now degrades to the same untracked handling the first branch already applies, instead of corrupting memory. Discovered by Atuin - Automated Vulnerability Discovery Engine. Assisted-by: LLM Signed-off-by: Tianchu Chen <flynnnchen@tencent.com> Link: https://patch.msgid.link/969ee752d023e7431481605c320fa0636cc6f20c@linux.dev Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-28Merge tag 'mm81x-next-2026-09-24' of ↵Johannes Berg
https://github.com/MorseMicroLabs/linux-wireless Lachlan Hodges says: ==================== mm81x 7.4 PR #1: - buffered multicast improvements - tx bandwidth selection improvements - misc minor bug fixes (mostly LLM) ==================== Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-28thunderbolt: Disable CL states for the Anker Prime TB5 dockKurt Lieber
The Anker Prime TB5 dock identifies itself in the DROM as 01ea:83b5. Its router config space is an Intel Barlow Ridge 80G hub (8087:5786). The upstream lane adapter advertises CL0s, CL1, and CL2. With CLx left enabled, TMU uni-directional LowRes setup fails with -ENOTCONN, the USB3 and DisplayPort tunnels are aborted, and the router reconnects in a loop. Loading thunderbolt with clx=0 keeps the link up on this machine. Match the DROM id together with the Barlow Ridge hub id and disable CL states for this dock only. QUIRK_NO_CLX takes the same early-out as the module parameter, without disabling CLx for every other router. Closes: https://lore.kernel.org/linux-usb/SJ0PR15MB4696D491504DB667AA8E0617A3812@SJ0PR15MB4696.namprd15.prod.outlook.com/ Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Kurt Lieber <kurt@lieber.org> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
2026-09-28wifi: mwifiex: bound SDIO fw dump count by memory table sizeTianchu Chen
mwifiex_sdio_fw_dump() reads the number of memory regions (dump_num) from a device register and uses it to index the static 15-entry mem_type_mapping_tbl[] without any bounds check. A bogus device can report a dump_num larger than the table; each out-of-table loop iteration then reads entry->mem_name and entry->done_flag and stores a vmalloc pointer and a device-controlled size past the end of the table, into adjacent .data (up to ~5.6KiB when dump_num is 255). The dump path runs after command timeouts or firmware crashes, so a bogus device can first force an error to trigger the dump and then report a bogus dump_num. Limit dump_num to the table size instead of aborting the dump. This is not expected to change the behavior on normal devices. Discovered by Atuin - Automated Vulnerability Discovery Engine. Assisted-by: LLM Signed-off-by: Tianchu Chen <flynnnchen@tencent.com> Acked-by: Brian Norris <briannorris@chromium.org> Link: https://patch.msgid.link/33a45fd59b5569cbce79142d2e012e191989ec26@linux.dev Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-28wifi: mac80211_hwsim: Support NAN deferred schedule completionAndrei Otcheretianski
Simulate firmware completing a deferred NAN schedule update in mac80211_hwsim by calling ieee80211_nan_sched_update_done() from a delayed work, so that the completion notification reaches user space after the update request returns, as it would with real hardware. This doesn't really implement the schedule update flow and doesn't announce anything to the peers. However, it should be good enough meanwhile for some minimal testing. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20260922144356.81f62b390ef6.I21654fe82a0065a055a1b958297b2beb4337a1f0@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-28drm/i915/vrr: Disable DC balance by defaultMitul Golani
Disable VRR DC balance by default due to timing issues observed on some panel/TCON combinations. Keep the module parameter to enable DC balance during debugging and to isolate DC balance effects from underlying VRR/display timing issues. --v2: - Make enable_dc_balance a bool and keep it disabled by default; fix the parameter type/value mismatch and correct the description (Chaitanya Kumar Borah, Jani Nikula) - Explain in the commit message why the feature is gated and why a module parameter is used (Jani Nikula) --v3: - Commit message update (Jani Nikula) Fixes: 555819270707 ("drm/i915/vrr: Enable DC Balance") Cc: <stable@vger.kernel.org> # v7.0+ Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Link: https://patch.msgid.link/20260917074322.2606738-1-mitulkumar.ajitkumar.golani@intel.com (cherry picked from commit d1ef78f0581e856c4238c751e9ae2884ce58c275) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2026-09-28wifi: mac80211_hwsim: claim support for Control Integrity ProtocolBenjamin Berg
The mac80211_hwsim driver never actually generates control frames. As such, it can simply claim the Control Integrity protocol (CIP). Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Link: https://patch.msgid.link/20260921144048.6a4047ca21a1.If483ea588361a90b58a52493936cc0bbbc74c075@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-28wifi: mac80211: add cigtk parameter to ieee80211_gtk_rekey_addBenjamin Berg
The CIGTK keys use a key index of 0 or 1, which is not unique. As such, a new parameter is needed to differentiate the key type. Add the parameter to prepare for handling the CIGTK in the future. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Link: https://patch.msgid.link/20260921144048.8bfea7df6b06.I3d046fbe7dfb3883471773f84e7a791b5b97000e@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-28wifi: cfg80211: add Control Integrity Protocol (CIP) APIsBenjamin Berg
The Control Integrity Protocol consists of a set of capabilities for the MIC padding as well as a new CIGTK that can be installed. The CIGTK uses a fixed GMAC-256 cipher for which no RSN extension is defined as it is bound to the pairwise cipher being GCMP-256. The CIGTK uses the key index 0 and 1, making it necessary to add a new key type for it. Add a new CIP feature flag and attributes for CIP Capabilities and enabling the feature for stations and the association. Also extend the cfg80211 API to pass the key type rather than a single pairwise boolean. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Link: https://patch.msgid.link/20260921144048.aa7939493375.I49c0be0a1b05d625cc307e9bdd13c32a6c18667f@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-28gpio: pxa: stop reading gpio_chip::base in direction callbacksAreeb Ul Haq Mirza
__gpio_is_inverted() identifies GPIO86-89 on PXA26x by comparing its argument against hardware line numbers, and its other callers pass the hardware index from irqd_to_hwirq(). The direction_input() and direction_output() callbacks instead pass chip->base + offset. Pass the offset directly, which is the same conversion that commit 566e684e70cb ("gpio: pxa: use new pinctrl GPIO helpers") made for the pinctrl calls in these functions. No functional change: the driver never sets chip->base, which stays zero because struct pxa_gpio_chip is allocated with devm_kzalloc(). This removes a dependency on gpio_chip::base, as tracked in drivers/gpio/TODO. Signed-off-by: Areeb Ul Haq Mirza <auhmirza02@gmail.com> Link: https://patch.msgid.link/20260924140242.126159-1-auhmirza02@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>